]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
07a1c2c3
DE
12014-11-22 Doug Evans <xdje42@gmail.com>
2
3 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
4
b2a919a8
DE
52014-11-21 Doug Evans <dje@google.com>
6
7 * psymtab.c (psymtab_search_name): Fix whitespace.
8
278289d5
YQ
92014-11-21 Yao Qi <yao@codesourcery.com>
10
11 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
12 errno.
13 * gnulib/import/Makefile.am: Re-generated.
14 * gnulib/import/Makefile.in: Likewise.
15 * gnulib/import/m4/gnulib-cache.m4: Likewise.
16
e01e2baa
YQ
172014-11-21 Yao Qi <yao@codesourcery.com>
18
19 * gdb_wchar.h: Include wchar.h and wctype.h.
20 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
21 include wchar.h and wctype.h.
22 Don't check HAVE_WCHAR_H.
23
f0c00af8
YQ
242014-11-21 Yao Qi <yao@codesourcery.com>
25
26 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
27 and wctype-h.
28 * gnulib/import/Makefile.am: Re-generated.
29 * gnulib/import/Makefile.in: Likewise.
30 * gnulib/import/m4/gnulib-cache.m4: Likewise.
31
0cae13bb
YQ
322014-11-21 Yao Qi <yao@codesourcery.com>
33
34 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
35 memchr.
36 * gnulib/import/Makefile.am: Re-generated.
37 * gnulib/import/Makefile.in: Likewise.
38 * gnulib/import/m4/gnulib-cache.m4: Likewise.
39
9c232dda
YQ
402014-11-21 Yao Qi <yao@codesourcery.com>
41
42 * common/common-defs.h: Include alloca.h
43 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
44 * configure: Re-generated.
45 * defs.h: Remove code handling alloca.
46 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
47 or not.
48
00d7f58f
YQ
492014-11-21 Yao Qi <yao@codesourcery.com>
50
51 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
52 alloca.
53 * gnulib/import/Makefile.am: Re-generated.
54 * gnulib/import/Makefile.in: Likewise..
55 * gnulib/import/m4/gnulib-cache.m4: Likewise.
56
6068ad5d
YQ
572014-11-21 Yao Qi <yao@codesourcery.com>
58
59 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
60 alphabetical order.
61
45e44d27
JB
622014-11-21 Joel Brobecker <brobecker@adacore.com>
63
64 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
65 flag_unsigned if HIGH_BOUND is constant and negative.
66
7e7cbeb3
SDJ
672014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
68
69 PR breakpoints/10737
70 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
71 modifier from "struct gdbarch" when compiling without Expat (XML)
72 support.
73 (get_syscall_by_number): Likewise.
74 (get_syscall_by_name): Likewise.
75 (get_syscall_names): Likewise.
76
458c8db8
SDJ
772014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
78
79 PR breakpoints/10737
80 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
81 set_xml_syscall_file_name to provide gdbarch.
82 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
83 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
84 * breakpoint.c (print_it_catch_syscall): Adjust call to
85 get_syscall_by_number to provide gdbarch.
86 (print_one_catch_syscall): Likewise.
87 (print_mention_catch_syscall): Likewise.
88 (print_recreate_catch_syscall): Likewise.
89 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
90 and get_syscall_by_name to provide gdbarch.
91 (catch_syscall_completer): Adjust call to get_syscall_names to
92 provide gdbarch.
93 * gdbarch.c: Regenerate.
94 * gdbarch.h: Likewise.
95 * gdbarch.sh: Forward declare "struct syscalls_info".
96 (xml_syscall_file): New variable.
97 (syscalls_info): Likewise.
98 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
99 set_xml_syscall_file_name to provide gdbarch.
100 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
101 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
102 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
103 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
104 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
105 * xml-syscall.c: Include gdbarch.h.
106 (set_xml_syscall_file_name): Accept gdbarch parameter.
107 (get_syscall_by_number): Likewise.
108 (get_syscall_by_name): Likewise.
109 (get_syscall_names): Likewise.
110 (my_gdb_datadir): Delete global variable.
111 (struct syscalls_info) <my_gdb_datadir>: New variable.
112 (struct syscalls_info) <sysinfo>: Rename variable to
113 "syscalls_info".
114 (sysinfo): Delete global variable.
115 (have_initialized_sysinfo): Likewise.
116 (xml_syscall_file): Likewise.
117 (sysinfo_free_syscalls_desc): Rename to...
118 (syscalls_info_free_syscalls_desc): ... this.
119 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
120 code to the new layout of "struct syscalls_info".
121 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
122 "syscalls_info".
123 (syscall_create_syscall_desc): Likewise.
124 (syscall_start_syscall): Likewise.
125 (syscall_parse_xml): Likewise.
126 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
127 (init_sysinfo): Rename to...
128 (init_syscalls_info): ...this. Add gdbarch as a parameter.
129 Adjust function to deal with gdbarch.
130 (xml_get_syscall_number): Delete parameter sysinfo. Accept
131 gdbarch as a parameter. Adjust code.
132 (xml_get_syscall_name): Likewise.
133 (xml_list_of_syscalls): Likewise.
134 (set_xml_syscall_file_name): Accept gdbarch as parameter.
135 (get_syscall_by_number): Likewise.
136 (get_syscall_by_name): Likewise.
137 (get_syscall_names): Likewise.
138 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
139 (get_syscall_by_number): Likewise.
140 (get_syscall_by_name): Likewise.
141 (get_syscall_names): Likewise.
142
43f3e411
DE
1432014-11-20 Doug Evans <xdje42@gmail.com>
144
145 Split struct symtab into two: struct symtab and compunit_symtab.
146 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
147 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
148 to "struct compunit_symtab *". All callers updated.
149 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
150 "struct symtab *" argument to "struct compunit_symtab *".
151 All callers updated.
152 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
153 result to "struct compunit_symtab *". All callers updated.
154 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
155 Change result to "struct compunit_symtab *". All callers updated.
156 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
157 hange type to "struct compunit_symtab *". All uses updated.
158 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
159 Change type to "struct compunit_symtab *". All uses updated.
160 * buildsym.c (struct buildsym_compunit): New struct.
161 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
162 (buildsym_compunit): New static global.
163 (finish_block_internal): Update to fetch objfile from
164 buildsym_compunit.
165 (make_blockvector): Delete objfile argument.
166 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
167 debugformat, producer.
168 (start_buildsym_compunit): New function.
169 (free_buildsym_compunit): Renamed from free_subfiles_list.
170 All callers updated.
171 (patch_subfile_names): Rewrite to use buildsym_compunit.
172 (get_compunit_symtab): New function.
173 (get_macro_table): Delete argument comp_dir. All callers updated.
174 (start_symtab): Change result to "struct compunit_symtab *".
175 All callers updated. Create the subfile of the main source file.
176 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
177 (reset_symtab_globals): Update.
178 (end_symtab_get_static_block): Update to use buildsym_compunit.
179 (end_symtab_without_blockvector): Rewrite.
180 (end_symtab_with_blockvector): Change result to
181 "struct compunit_symtab *". All callers updated.
182 Update to use buildsym_compunit. Don't set symtab->dirname,
183 instead set it in the compunit.
184 Explicitly make sure main symtab is first in its list.
185 Set debugformat, producer, blockvector, block_line_section, and
186 macrotable in the compunit.
187 (end_symtab_from_static_block): Change result to
188 "struct compunit_symtab *". All callers updated.
189 (end_symtab, end_expandable_symtab): Ditto.
190 (set_missing_symtab): Change symtab argument to
191 "struct compunit_symtab *". All callers updated.
192 (augment_type_symtab): Ditto.
193 (record_debugformat): Update to use buildsym_compunit.
194 (record_producer): Update to use buildsym_compunit.
195 * buildsym.h (struct subfile) <dirname>: Delete.
196 <producer, debugformat>: Delete.
197 <buildsym_compunit>: New member.
198 (get_compunit_symtab): Declare.
199 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
200 from primary_symtab. Change type to "struct compunit_symtab *".
201 All uses updated.
202 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
203 All callers updated.
204 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
205 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
206 symtab. Change type to "struct compunit_symtab *". All uses updated.
207 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
208 All callers updated.
209 (dw2_find_last_source_symtab): Ditto.
210 (dw2_lookup_symbol): Ditto.
211 (recursively_find_pc_sect_compunit_symtab): Renamed from
212 recursively_find_pc_sect_symtab. Change result to
213 "struct compunit_symtab *". All callers updated.
214 (dw2_find_pc_sect_compunit_symtab): Renamed from
215 dw2_find_pc_sect_symtab. Change result to
216 "struct compunit_symtab *". All callers updated.
217 (get_compunit_symtab): Renamed from get_symtab. Change result to
218 "struct compunit_symtab *". All callers updated.
219 (recursively_compute_inclusions): Change type of immediate_parent
220 argument to "struct compunit_symtab *". All callers updated.
221 (compute_compunit_symtab_includes): Renamed from
222 compute_symtab_includes. All callers updated. Rewrite to compute
223 includes of compunit_symtabs and not symtabs.
224 (process_full_comp_unit): Update to work with struct compunit_symtab.
225 (process_full_type_unit): Ditto.
226 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
227 (dwarf_decode_lines): Remove special case handling of main subfile.
228 (macro_start_file): Delete argument comp_dir. All callers updated.
229 (dwarf_decode_macro_bytes): Ditto.
230 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
231 use struct compunit_symtab.
232 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
233 * jit.c (finalize_symtab): Build compunit_symtab.
234 * jv-lang.c (get_java_class_symtab): Change result to
235 "struct compunit_symtab *". All callers updated.
236 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
237 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
238 comp_dir. Change type to "struct compunit_symtab *".
239 All uses updated.
240 (new_macro_table): Change comp_dir argument to cust,
241 "struct compunit_symtab *". All callers updated.
242 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
243 nr_primary_symtabs. All uses updated.
244 (count_symtabs_and_blocks): Update to handle compunits.
245 (report_command_stats): Update output, "primary symtabs" renamed to
246 "compunits".
247 * mdebugread.c (new_symtab): Change result to
248 "struct compunit_symtab *". All callers updated.
249 (parse_procedure): Change type of search_symtab argument to
250 "struct compunit_symtab *". All callers updated.
251 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
252 separate loop.
253 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
254 symtabs. Change type to "struct compunit_symtab *". All uses updated.
255 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
256 All uses updated.
257 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
258 All uses updated.
259 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
260 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
261 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
262 symtab. Change type to "struct compunit_symtab *". All uses updated.
263 * psymtab.c (psymtab_to_symtab): Change result type to
264 "struct compunit_symtab *". All callers updated.
265 (find_pc_sect_compunit_symtab_from_partial): Renamed from
266 find_pc_sect_symtab_from_partial. Change result type to
267 "struct compunit_symtab *". All callers updated.
268 (lookup_symbol_aux_psymtabs): Change result type to
269 "struct compunit_symtab *". All callers updated.
270 (find_last_source_symtab_from_partial): Ditto.
271 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
272 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
273 and macro_table from compunit.
274 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
275 type to "struct compunit_symtab *". All callers updated.
276 (debug_qf_lookup_symbol): Ditto.
277 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
278 debug_qf_find_pc_sect_symtab, change result type to
279 "struct compunit_symtab *". All callers updated.
280 * symfile.c (allocate_symtab): Delete objfile argument.
281 New argument cust.
282 (allocate_compunit_symtab): New function.
283 (add_compunit_symtab_to_objfile): New function.
284 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
285 Change result type to "struct compunit_symtab *". All uses updated.
286 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
287 Change result type to "struct compunit_symtab *". All uses updated.
288 * symmisc.c (print_objfile_statistics): Compute blockvector count in
289 separate loop.
290 (dump_symtab_1): Update test for primary source symtab.
291 (maintenance_info_symtabs): Update to handle compunit symtabs.
292 (maintenance_check_symtabs): Ditto.
293 * symtab.c (set_primary_symtab): Delete.
294 (compunit_primary_filetab): New function.
295 (compunit_language): New function.
296 (iterate_over_some_symtabs): Change type of arguments "first",
297 "after_last" to "struct compunit_symtab *". All callers updated.
298 Update to loop over symtabs in each compunit.
299 (error_in_psymtab_expansion): Rename symtab argument to cust,
300 and change type to "struct compunit_symtab *". All callers updated.
301 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
302 Change result type to "struct compunit_symtab *". All callers updated.
303 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
304 Change result type to "struct compunit_symtab *". All callers updated.
305 (find_pc_sect_line): Only loop over symtabs within selected compunit
306 instead of all symtabs in the objfile.
307 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
308 <compunit_symtab> New member.
309 <block_line_section>: Moved to compunit_symtab.
310 <locations_valid>: Ditto.
311 <epilogue_unwind_valid>: Ditto.
312 <macro_table>: Ditto.
313 <dirname>: Ditto.
314 <debugformat>: Ditto.
315 <producer>: Ditto.
316 <objfile>: Ditto.
317 <call_site_htab>: Ditto.
318 <includes>: Ditto.
319 <user>: Ditto.
320 <primary>: Delete
321 (SYMTAB_COMPUNIT): New macro.
322 (SYMTAB_BLOCKVECTOR): Update definition.
323 (SYMTAB_OBJFILE): Update definition.
324 (SYMTAB_DIRNAME): Update definition.
325 (struct compunit_symtab): New type. Common members among all source
326 symtabs within a compilation unit moved here. All uses updated.
327 (COMPUNIT_OBJFILE): New macro.
328 (COMPUNIT_FILETABS): New macro.
329 (COMPUNIT_DEBUGFORMAT): New macro.
330 (COMPUNIT_PRODUCER): New macro.
331 (COMPUNIT_DIRNAME): New macro.
332 (COMPUNIT_BLOCKVECTOR): New macro.
333 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
334 (COMPUNIT_LOCATIONS_VALID): New macro.
335 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
336 (COMPUNIT_CALL_SITE_HTAB): New macro.
337 (COMPUNIT_MACRO_TABLE): New macro.
338 (ALL_COMPUNIT_FILETABS): New macro.
339 (compunit_symtab_ptr): New typedef.
340 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
341
005e2509
JB
3422014-11-20 Joel Brobecker <brobecker@adacore.com>
343
344 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
345 if the TYPE_CODE of range_type's base type does not match
346 the TYPE_CODE of encoding_type's base type.
347
2b0f535a
JB
3482014-11-19 Joel Brobecker <brobecker@adacore.com>
349
350 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
351 it starts with '<'.
352
8908fca5
JB
3532014-11-19 Joel Brobecker <brobecker@adacore.com>
354
355 * ada-lang.c (ada_is_redundant_range_encoding): New function.
356 (ada_is_redundant_index_type_desc): New function.
357 (to_fixed_array_type): Ignore parallel XA type if redundant.
358
4a46959e
JB
3592014-11-19 Joel Brobecker <brobecker@adacore.com>
360
361 * ada-lang.c (constrained_packed_array_type): Set the length
362 of the return array as if both bounds where zero if that
363 returned array's index type is dynamic.
364
2acf986b
YQ
3652014-11-19 Yao Qi <yao@codesourcery.com>
366
367 * config/i386/go32.mh (CC): Remove.
368
439247b6
DE
3692014-11-18 Doug Evans <xdje42@gmail.com>
370
371 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
372 updated.
373
4d663531
DE
3742014-11-18 Doug Evans <xdje42@gmail.com>
375
376 * buildsym.c (buildsym_objfile): New static global.
377 (buildsym_comp_dir): New static global.
378 (finish_block_internal): Delete arg objfile. All callers updated.
379 (finish_block): Delete arg objfile. All callers updated.
380 (start_subfile): Delete arg dirname. All callers updated.
381 (patch_subfile_names): Update buildsym_comp_dir.
382 (get_macro_table): Delete arg objfile. All callers updated.
383 (start_symtab): New arg objfile. All callers updated.
384 Rename arg dirname to comp_dir.
385 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
386 (end_symtab_get_static_block): Delete arg objfile. All callers
387 updated.
388 (end_symtab_without_blockvector): Ditto.
389 (end_symtab_with_blockvector): Ditto.
390 (end_symtab_from_static_block): Ditto.
391 (end_symtab): Ditto.
392 (end_expandable_symtab): Ditto.
393 (augment_type_symtab): Ditto.
394 * coffread.c (coff_start_symtab): New arg objfile. All callers
395 updated.
396
8435453b
DE
3972014-11-18 Doug Evans <xdje42@gmail.com>
398
399 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
400 updated.
401
ee6f8984
DE
4022014-11-18 Doug Evans <xdje42@gmail.com>
403
404 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
405 symtab.dirname updated to use it.
406
eb822aa6
DE
4072014-11-18 Doug Evans <xdje42@gmail.com>
408
409 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
410 symtab.objfile updated to use it.
411
98387a29
DE
4122014-11-18 Doug Evans <xdje42@gmail.com>
413
414 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
415
aff08958
DE
4162014-11-18 Doug Evans <xdje42@gmail.com>
417
418 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
419 SYMBOL_OBJFILE.
420 * findvar.c (default_read_var_value): Ditto.
421 * jv-lang.c (add_class_symtab_symbol): Ditto.
422 * parse.c (operator_check_standard): Ditto.
423 * printcmd.c (address_info): Ditto.
424 * symtab.c (fixup_symbol_section): Ditto.
425 (skip_prologue_sal): Ditto.
426 * tracepoint.c (scope_info): Ditto.
427 * valops.c (find_function_in_inferior): Ditto.
428 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
429 * python/py-symbol.c (set_symbol): Ditto.
430
7bab9b58
DE
4312014-11-18 Doug Evans <xdje42@gmail.com>
432
433 * buildsym.c (main_subfile): New static global.
434 (free_subfiles_list): New function.
435 (start_symtab): Set main_subfile.
436 (restart_symtab): Replace init of subfiles, current_subfile with
437 call to free_subfiles_list.
438 (watch_main_source_file_lossage): Use main_subfile.
439 (reset_symtab_globals): Replace init of current_subfile with call
440 to free_subfiles_list.
441 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
442 functions, split out from ...
443 (end_symtab_from_static_block): ... here. Rewrite to call them.
444
f194fefb
DE
4452014-11-18 Doug Evans <xdje42@gmail.com>
446
447 The result of symtab expansion is always a primary symtab.
448 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
449 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
450 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
451 (psymtab_to_symtab): Add comment and assert.
452 (map_matching_symbols_psymtab): Remove unnecessary test for
453 non-primary symtab.
454
34248c3a
DE
4552014-11-15 Doug Evans <xdje42@gmail.com>
456
457 PR symtab/17559
458 * symtab.c (find_pc_line_symtab): New function.
459 * symtab.h (find_pc_line_symtab): Declare.
460 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
461 find_pc_symtab.
462 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
463 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
464 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
465 * tui/tui-win.c (make_visible_with_new_height): Ditto.
466 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
467 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
468
2097ae25
DE
4692014-11-15 Doug Evans <xdje42@gmail.com>
470
471 * symtab.c (expand_symtab_containing_pc): Renamed from
472 find_pc_sect_symtab_via_partial. All callers updated.
473
1ada499f
YQ
4742014-11-15 Yao Qi <yao@codesourcery.com>
475
476 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
477
355e2102
JB
4782014-11-14 Joel Brobecker <brobecker@adacore.com>
479
480 * common/common-defs.h: Move <stdarg.h> #include ahead of
481 <stdio.h> #include.
482
83030110
PA
4832014-11-14 Pedro Alves <palves@redhat.com>
484
485 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
486 [!PHONY_ICONV] (gdb_iconv): New function.
487 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
488
a8719064
DE
4892014-11-13 Doug Evans <dje@google.com>
490
491 PR symtab/17591
492 * dwarf2read.c (find_slot_in_mapped_hash): Handle
493 "(anonymous namespace)".
494
60f7655a
DE
4952014-11-13 Doug Evans <dje@google.com>
496
497 * dwarf2read.c (update_enumeration_type_from_children): Avoid
498 infinite loop.
499
5784b3ca
JK
5002014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
501
502 * NEWS (maint set target-async): Fix typo.
503
6218dc4b
PA
5042014-11-12 Pedro Alves <palves@redhat.com>
505
506 * infrun.c (enum infwait_states, infwait_state): Delete.
507
af48d08f
PA
5082014-11-12 Pedro Alves <palves@redhat.com>
509
510 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
511 Rewrite stepping over a permanent breakpoint.
512 (thread_still_needs_step_over, proceed): Don't set
513 stepping_over_breakpoint for permanent breakpoints.
514 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
515 single-step breakpoints out of the target on hardware step
516 targets.
517 (process_event_stop_test): If stepping a permanent breakpoint
518 doesn't hit the step-resume breakpoint, delete the step-resume
519 breakpoint.
520 (switch_back_to_stepped_thread): Also check if the stepped thread
521 has advanced already on hardware step targets.
522 (currently_stepping): Return true if the thread stepped a
523 breakpoint.
524
1a853c52
PA
5252014-11-12 Pedro Alves <palves@redhat.com>
526
527 Mark locations as permanent, not the whole breakpoint.
528 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
529 (mark_breakpoints_out): Don't mark permanent breakpoints as
530 uninserted.
531 (breakpoint_init_inferior): Use mark_breakpoints_out.
532 (breakpoint_here_p): Adjust.
533 (bpstat_stop_status, describe_other_breakpoints): Remove handling
534 of permanent breakpoints.
535 (make_breakpoint_permanent): Mark each location as permanent,
536 instead of marking the breakpoint.
537 (add_location_to_breakpoint): If the location is permanent, mark
538 it as such, and as inserted.
539 (init_breakpoint_sal): Don't make the breakpoint permanent here.
540 (bp_location_compare, update_global_location_list): Adjust.
541 (update_breakpoint_locations): Don't make the breakpoint permanent
542 here.
543 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
544 breakpoints.
545 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
546 (struct bp_location) <permanent>: New field.
547 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
548 reference to bp_permanent.
549
ae9bb220
PA
5502014-11-12 Pedro Alves <palves@redhat.com>
551
552 * arch-utils.c (default_skip_permanent_breakpoint): New function.
553 * arch-utils.h (default_skip_permanent_breakpoint): New
554 declaration.
555 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
556 Install default_skip_permanent_breakpoint as default method.
557 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
558 (i386_gdbarch_init): Don't install it.
559 * infrun.c (resume): Assume there's always a
560 gdbarch_skip_permanent_breakpoint implementation.
561 * gdbarch.h, gdbarch.c: Regenerate.
562
015de688
DC
5632014-11-11 Daniel Colascione <dancol@dancol.org>
564
565 Warn about cross-PID-namespace debugging.
566 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
567 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
568 * linux-thread-db.c (check_pid_namespace_match): New function.
569 (thread_db_inferior_created): Call it.
570
26a84859
DE
5712014-11-10 Doug Evans <xdje42@gmail.com>
572
573 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
574 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
575
712a2e6d
DE
5762014-11-10 Doug Evans <xdje42@gmail.com>
577
578 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
579
af3768e9
DE
5802014-11-10 Doug Evans <xdje42@gmail.com>
581
582 PR symtab/17564
583 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
584 (lookup_static_symbol): Move definition to new location and rewrite.
585 (lookup_symbol_in_objfile): New function.
586 (lookup_symbol_global_iterator_cb): Call it.
587
b1f28d99
UW
5882014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
589
590 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
591
b7a084be
PA
5922014-11-07 Pedro Alves <palves@redhat.com>
593
594 * infrun.c (process_event_stop_test) <subroutine check>: Don't
595 check if we did a "nexti" inside a prologue.
596 * symtab.c (in_prologue): Delete function.
597 * symtab.h (in_prologue): Delete declaration.
598
67be31e5
DE
5992014-11-06 Doug Evans <xdje42@gmail.com>
600
601 * symtab.h (lookup_global_symbol): Improve function comment.
602
08724ab7
DE
6032014-11-06 Doug Evans <xdje42@gmail.com>
604
605 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
606 All callers updated.
607 * symtab.h (lookup_global_symbol): Update decl.
608 (lookup_static_symbol): Move decl to better location.
609
d9060ba6
DE
6102014-11-06 Doug Evans <xdje42@gmail.com>
611
612 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
613
74016e12
DE
6142014-11-06 Doug Evans <xdje42@gmail.com>
615
616 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
617 All callers updated.
618 (lookup_symbol_in_all_objfiles): Renamed from
619 lookup_symbol_aux_symtabs. All callers updated.
620 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
621 All callers updated.
622 (lookup_symbol_in_objfile_symtabs): Renamed from
623 lookup_symbol_aux_objfile. All callers updated.
624
d1a2d36d
DE
6252014-11-06 Doug Evans <xdje42@gmail.com>
626
627 * symtab.c (lookup_symbol_in_block): Renamed from
628 lookup_symbol_aux_block. All callers updated.
629
24d864bb
DE
6302014-11-06 Doug Evans <xdje42@gmail.com>
631
632 * symtab.c (lookup_static_symbol): Renamed from
633 lookup_static_symbol_aux. All callers updated.
634 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
635 All callers updated.
636
358d6ab3
DE
6372014-11-06 Doug Evans <xdje42@gmail.com>
638
639 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
640 * block.c (block_lookup_symbol): Use it.
641 * cp-support.c (make_symbol_overload_list_block): Use it.
642 * symtab.c (iterate_over_symbols): Use it.
643
16b2eaa1
DE
6442014-11-06 Doug Evans <xdje42@gmail.com>
645
646 * symtab.c (lookup_block_symbol): Moved to ...
647 * block.c (block_lookup_symbol): ... here and renamed.
648 All callers updated.
649 * block.h (block_lookup_symbol): Declare.
650 * symtab.h (lookup_block_symbol): Delete.
651
2dd2cd1c
DE
6522014-11-06 Doug Evans <xdje42@gmail.com>
653
654 * ada-lang.c (ada_make_symbol_completion_list): Use
655 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
656 * symtab.c (lookup_objfile_from_block): Ditto.
657
d4c58915
DE
6582014-11-06 Doug Evans <xdje42@gmail.com>
659
660 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
661 TYPE_CODE_STRUCT.
662
9c1877ea
DE
6632014-11-06 Doug Evans <xdje42@gmail.com>
664
665 * objfiles.c (get_objfile_arch): Constify.
666 * objfiles.h (get_objfile_arch): Update prototype.
667 * solib.c (solib_global_lookup): Fetch arch from objfile,
668 not target_gdbarch.
669
426a4079
SL
6702014-11-06 Sandra Loosemore <sandra@codesourcery.com>
671
672 * nios2-tdep.c (wild_insn): Delete.
673 (profiler_insn, irqentry_insn): Delete.
674 (nios2_match_sequence): Delete.
675 (nios2_analyze_prologue): Update comments. Remove matching
676 of obsolete profiler_insn and irqentry_insn sequences.
677
ee11262d
AM
6782014-11-05 Alan Modra <amodra@gmail.com>
679
680 * charset.c (convert_between_encodings): Shrink obstack using
681 obstack_blank_fast.
682 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
683 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
684 to char* before doing pointer arithmetic.
ee11262d 685
c87e6d00
SM
6862014-11-04 Simon Marchi <simon.marchi@ericsson.com>
687
688 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
689
441ef17f
PA
6902014-11-04 Pedro Alves <palves@redhat.com>
691
692 * breakpoint.c (breakpoint_thread_match): Delete function.
693 * breakpoint.h (breakpoint_thread_match): Delete declaration.
694
e0f52461
SC
6952014-11-03 Siva Chandra Reddy <sivachandra@google.com>
696
697 PR c++/17494
698 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
699 the method args also under EVAL_SKIP when evaluating method
700 calls under EVAL_SKIP.
701
a0b4d890
YQ
7022014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
703
704 * dwarf2loc.c (read_pieced_value): Do big endian
705 processing only if gdb_regnum is not -1.
706 (write_pieced_value): Ditto.
707
7082014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
709
710 * arm-linux-tdep.c (arm_linux_init_abi): Use
711 info.byte_order_for_code to choose endianity of breakpoint
712 instructions snippets.
713
7142014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
715
716 * arm-tdep.c (extract_arm_insn): Use
717 gdbarch_byte_order_for_code to read arm instruction.
718
e82149ff
DE
7192014-11-02 Doug Evans <xdje42@gmail.com>
720
721 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
722
d7ee84f1
DE
7232014-11-02 Doug Evans <xdje42@gmail.com>
724
725 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
726 main_subfile before returning.
727
4f072d17
DE
7282014-10-31 Doug Evans <xdje42@gmail.com>
729
730 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
731 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
732
8301c89e
DE
7332014-10-31 Doug Evans <xdje42@gmail.com>
734
735 * valops.c (value_cast_pointers): Fix whitespace.
736 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
737 Ditto.
738
02be9a71
DE
7392014-10-30 Doug Evans <dje@google.com>
740
741 * NEWS: Mention ability add attributes to gdb.Objfile and
742 gdb.Progspace objects.
743 * python/py-objfile.c (objfile_object): New member dict.
744 (objfpy_dealloc): Py_XDECREF dict.
745 (objfpy_initialize): Initialize dict.
746 (objfile_getset): Add __dict__.
747 (objfile_object_type): Set tp_dictoffset member.
748 * python/py-progspace.c (progspace_object): New member dict.
749 (pspy_dealloc): Py_XDECREF dict.
750 (pspy_initialize): Initialize dict.
751 (pspace_getset): Add __dict__.
752 (pspace_object_type): Set tp_dictoffset member.
753
6427bef6
YQ
7542014-10-30 Yao Qi <yao@codesourcery.com>
755
756 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
757 replace '\\' with '\\\\'.
758
f60325be
JB
7592014-10-29 Joel Brobecker <brobecker@adacore.com>
760
761 GDB 7.8.1 released.
762
ab917dfb
PA
7632014-10-29 Pedro Alves <palves@redhat.com>
764
765 PR gdb/17408
766 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
767 instead of assuming a thread with a stepping range is always
768 stepping.
769
d3d4baed
PA
7702014-10-29 Pedro Alves <palves@redhat.com>
771
772 PR python/17372
773 * event-top.c (change_line_handler): Call
774 gdb_rl_callback_handler_remove instead of
775 rl_callback_handler_remove.
776 (callback_handler_installed): New global.
777 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
778 (gdb_rl_callback_handler_reinstall): New functions.
779 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
780 gdb_rl_callback_handler_install instead of
781 rl_callback_handler_remove and rl_callback_handler_install.
782 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
783 instead of rl_callback_handler_remove.
784 * event-top.h (gdb_rl_callback_handler_remove)
785 (gdb_rl_callback_handler_install)
786 (gdb_rl_callback_handler_reinstall): New declarations.
787 * infrun.c (reinstall_readline_callback_handler_cleanup): New
788 cleanup function.
789 (fetch_inferior_event): Install it.
790 * top.c (gdb_readline_wrapper_line) Call
791 gdb_rl_callback_handler_remove instead of
792 rl_callback_handler_remove.
793 (gdb_readline_wrapper_cleanup): Don't call
794 rl_callback_handler_install.
795
6e5d7f39
PA
7962014-10-29 Pedro Alves <palves@redhat.com>
797
798 * event-top.c (command_line_handler): Clear the first byte of
799 linebuffer, when it is first allocated.
800
551cb6a5
PA
8012014-10-29 Pedro Alves <palves@redhat.com>
802
803 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
804 TRY_CATCH.
805
1e1e619b
PA
8062014-10-29 Pedro Alves <palves@redhat.com>
807
808 PR tui/16138
809 PR tui/17519
810 * tui/tui-interp.c (tui_is_toplevel): Delete global.
811 (tui_allowed_p): Delete function.
812 * tui/tui.c: Include "interps.h".
813 (tui_enable): Don't use tui_allowed_p. Error out here with
814 detailed error messages if the TUI is the top level interpreter,
815 or if output is not a terminal. Use newterm instead of initscr,
816 and error out if initializing the terminal fails. Also error out if
817 the terminal doesn't support cursor addressing.
818 * tui/tui.h (tui_allowed_p): Delete declaration.
819
6041179a
JB
8202014-10-29 Joel Brobecker <brobecker@adacore.com>
821
822 * arm-tdep.c (arm_skip_stack_protector): Return early if
823 address loaded by first "ldr" instruction does not have
824 a corresponding minimal symbol. Update comment.
825
6ae274b7
YQ
8262014-10-29 Yao Qi <yao@codesourcery.com>
827
828 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
829 loaded address correctly of ldr instruction.
830
7f5ef605
PA
8312014-10-28 Pedro Alves <palves@redhat.com>
832
833 PR gdb/12623
834 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
835 field.
836 * infrun.c (resume) <stepping breakpoint instruction>: Set the
837 thread's stepped_breakpoint field. Skip if reverse debugging.
838 Add comment.
839 (init_thread_stepping_state, handle_signal_stop): Clear the
840 thread's stepped_breakpoint field.
841
7d1a114c
PA
8422014-10-27 Pedro Alves <palves@redhat.com>
843
844 * remote.c (remote_thread_alive): New, factored out from ...
845 (remote_thread_alive): ... this.
846 (remote_update_thread_list): Bail out before deleting threads if
847 the target returned an empty list, and, the current thread has a
848 magic/fake ptid.
849
e5f8a7cc
PA
8502014-10-27 Pedro Alves <palves@redhat.com>
851
852 * infrun.c (handle_signal_stop): Also skip handlers when a random
853 signal arrives while handling a "stepi" or a "nexti". Set the
854 thread's 'step_after_step_resume_breakpoint' flag.
855
71e396f9
LM
8562014-10-27 Luis Machado <lgustavo@codesourcery.com>
857
858 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
859 (arm_record_ld_st_imm_offset): Reimplement to cover all
860 load/store cases for ARM opcode 010.
861 (arm_record_ld_st_multiple): Reimplement to cover all
862 load/store cases for ARM opcode 100.
863
3aee438b
DE
8642014-10-26 Doug Evans <xdje42@gmail.com>
865
866 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
867
f88cb4b6
DE
8682014-10-26 Doug Evans <xdje42@gmail.com>
869
870 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
871 parameter "kind" to "block_index".
872 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
873 "block_index".
874 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
875
a023a30f
DE
8762014-10-26 Doug Evans <xdje42@gmail.com>
877
878 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
879
4c35218e
DE
8802014-10-26 Doug Evans <xdje42@gmail.com>
881
882 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
883 obstack_alloc.
884
f08e8df3
DE
8852014-10-26 Doug Evans <xdje42@gmail.com>
886
887 * parser-defs.h (block_found): Move decl from here ...
888 * symtab.h (block_found): ... to here.
889
cf901d3b
DE
8902014-10-26 Doug Evans <xdje42@gmail.com>
891
892 * symtab.h (struct field_of_this_result): Fix typo in comment.
893 (lookup_symbol_in_language): Move function comment here.
894 (lookup_symbol): Improve function comment.
895 (basic_lookup_symbol_nonlocal): Ditto.
896 (lookup_symbol_static, lookup_symbol_global): Ditto.
897 (lookup_symbol_aux_block): Ditto.
898 (lookup_language_this): Add function comment.
899 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
900 function comment.
901 (lookup_block_symbol): Improve function comment.
902 (lookup_struct): Fix capitalization in function comment.
903 (lookup_transparent_type): Add function comment.
904 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
905 Improve function comment.
906 (lookup_objfile_from_block): Add function comment.
907 * symtab.c (lookup_symbol_in_language): Update function comment.
908 (lookup_symbol, lookup_language_this): Ditto.
909 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
910 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
911 (basic_lookup_symbol_nonlocal): Ditto.
912 (lookup_symbol_static, lookup_symbol_global): Ditto.
913 (lookup_transparent_type, lookup_block_symbol): Ditto.
914
ff6c39cf
DE
9152014-10-25 Doug Evans <xdje42@gmail.com>
916
917 * symtab.c (types_info): Delete forward decl.
918 (functions_info, variables_info, sources_info): Ditto.
919 (_initialize_symtab): Rewrite forward decl to use
920 initialize_file_ftype.
921
ec201f0c
DE
9222014-10-25 Doug Evans <xdje42@gmail.com>
923
924 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
925
ca040673
DE
9262014-10-25 Doug Evans <xdje42@gmail.com>
927
928 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
929 of local var child_die.
930
6f259a23
DB
9312014-10-24 Don Breazeal <donb@codesourcery.com>
932
933 * infrun.c (follow_fork_inferior): Update fork message printing
934 to use target_terminal_ours_for_output instead of
935 target_terminal_ours, to use _() for all format strings, to print
936 "vfork" instead of "fork" for vforks, and to add a detach message.
937 (handle_vfork_child_exec_or_exit): Update message printing to use
938 target_terminal_ours_for_output instead of target_terminal_ours, to
939 use _() for all format strings, and to fix some formatting.
940
09dd9a69
PA
9412014-10-24 Pedro Alves <palves@redhat.com>
942
943 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
944 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
945 * config/vax/vax.mh: Delete.
946 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
947 obsolete configurations section.
948 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
949 * vax-nat.c: Delete file.
950
5ab806de
PA
9512014-10-24 Pedro Alves <palves@redhat.com>
952
953 * NEWS (Removed targets): Add OS/arch column.
954
3433cfa5
SC
9552014-10-24 Siva Chandra Reddy <sivachandra@google.com>
956
957 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
958 on the arg type of a constructor only if it is of reference type.
959
96ba4233
SL
9602014-10-23 Sandra Loosemore <sandra@codesourcery.com>
961
962 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
963 accessors and constants from nios2 opcodes update.
964 (nios2_get_next_pc): Likewise.
965
28153fd3
DE
9662014-10-19 Doug Evans <xdje42@gmail.com>
967
968 * gdbthread.h (set_running): Fix comment.
969 (set_executing, finish_thread_state): Fix comment.
970
fc9b8e47
DE
9712014-10-18 Doug Evans <xdje42@gmail.com>
972
973 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
974
4ffbba72
DE
9752014-10-17 Doug Evans <dje@google.com>
976
977 * NEWS: Mention new event gdb.clear_objfiles.
978 * python/py-event.h (emit_clear_objfiles_event): Clear
979 * python/py-events.h (events_object): New member clear_objfiles.
980 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
981 event.
982 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
983 emit clear_objfiles event.
984 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
985 function.
986 (emit_clear_objfiles_event): New function.
987 (clear_objfiles): New event.
988 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
989 Declare.
990 * python/python.c (_initialize_python): Call
991 gdbpy_initialize_clear_objfiles_event.
992
d096d8c1
DE
9932014-10-17 Doug Evans <dje@google.com>
994
995 * NEWS: Mention new gdb.Objfile.progspace attribute.
996 * python/py-objfile.c (objfpy_get_progspace): New function.
997 (objfile_getset): New entry for "progspace".
998
6c4486e6
PA
9992014-10-17 Pedro Alves <palves@redhat.com>
1000
1001 PR gdb/17471
1002 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1003 returns a copy of the input.
1004 (run_command_1, continue_command, step_1, jump_command)
1005 (signal_command, until_command, advance_command, finish_command)
1006 (attach_command): Adjust and install a cleanup to free the
1007 stripped args.
1008
0ff33695
PA
10092014-10-17 Pedro Alves <palves@redhat.com>
1010
1011 PR gdb/17300
1012 * infcmd.c (continue_1): If continuing all threads in the
1013 foreground, make sure the inferior's terminal settings are put in
1014 effect.
1015
6fdebc3d
PA
10162014-10-17 Pedro Alves <palves@redhat.com>
1017
1018 PR gdb/17472
1019 * annotate.c (annotate_breakpoints_invalid): Use
1020 target_terminal_our_for_output instead of target_terminal_ours.
1021 Give back the terminal to the target.
1022 (annotate_frames_invalid): Likewise.
1023
5842f62a
PA
10242014-10-17 Pedro Alves <palves@redhat.com>
1025
1026 * target.c (enum terminal_state): New enum.
1027 (terminal_state): New global.
1028 (target_terminal_init): New function.
1029 (target_terminal_inferior): Skip if inferior already owns the
1030 terminal.
1031 (target_terminal_ours, target_terminal_ours_for_output): New
1032 functions.
1033 * target.h (target_terminal_init): Convert to function prototype.
1034 (target_terminal_ours_for_output): Convert to function prototype
1035 and tweak comment.
1036 (target_terminal_ours): Convert to function prototype and tweak
1037 comment.
1038 * windows-nat.c (do_initial_windows_stuff): Call
1039 target_terminal_init instead of child_terminal_init_with_pgrp.
1040
32a8097b
PA
10412014-10-17 Pedro Alves <palves@redhat.com>
1042
1043 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1044 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1045 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1046 solib-osf.c.
1047 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1048 * ada-lang.h [__alpha__ && __osf__]
1049 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1050 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1051 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1052 GDB_OSABI_OSF1.
1053 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1054 files.
1055 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1056 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1057 * configure: Regenerate.
1058 * configure.ac: Remove references to osf.
1059 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1060 section. Remove all other references to osf.
1061 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1062 Remove all other references to osf.
1063 * dec-thread.c: Delete file.
1064 * defs.h (GDB_OSABI_OSF1): Delete.
1065 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1066 defined.
1067 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1068 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1069 Delete code.
1070 (unconditionally_kill_inferior)
1071 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1072 * solib-osf.c: Delete file.
1073
80134cf5
PA
10742014-10-17 Pedro Alves <palves@redhat.com>
1075
1076 * remote.c (clear_threads_listing_context): Move higher up, out of
1077 the HAVE_LIBEXPAT guard.
1078
89c7137f
TG
10792014-10-16 Tristan Gingold <gingold@adacore.com>
1080
1081 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1082 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1083 on amd64.
1084
44ee4a52
PA
10852014-10-15 Pedro Alves <palves@redhat.com>
1086
1087 * dec-thread.c (dec_thread_count_gdb_threads)
1088 (dec_thread_add_gdb_thread): Delete.
1089 (dec_thread_update_thread_list): Delete.
1090 (dec_thread_find_new_threads): Rename to ...
1091 (dec_thread_update_thread_list): ... this. Delete GDB-size
1092 threads that are no longer found in dec_thread_list.
1093 (resync_thread_list): Delete.
1094 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1095 resync_thread_list.
1096
ab970af1
PA
10972014-10-15 Pedro Alves <palves@redhat.com>
1098
1099 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1100 * remote.c (remote_update_thread_list): Skip calling prune_threads
1101 if any thread listing method is supported, and instead walk over
1102 the set of remote threads listed, deleting those that are not
1103 found in GDB's thread list.
1104
e8032dde
PA
11052014-10-15 Pedro Alves <palves@redhat.com>
1106
1107 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1108 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1109 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1110 (bsd_uthread_target): Adjust.
1111 * corelow.c (core_open): Adjust.
1112 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1113 (dec_thread_update_thread_list): New function.
1114 (init_dec_thread_ops): Adjust.
1115 * gdbthread.h (prune_threads): New declaration.
1116 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1117 (thread_db_update_thread_list): ... this. Call prune_threads.
1118 (init_thread_db_ops): Adjust.
1119 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1120 (procfs_update_thread_list): ... this. Call prune_threads.
1121 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1122 Adjust.
1123 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1124 (obsd_update_thread_list): ... this. Call prune_threads.
1125 (obsd_add_target): Adjust.
1126 * procfs.c (procfs_target): Adjust.
1127 (procfs_notice_thread): Update comment.
1128 (procfs_find_new_threads): Rename to ...
1129 (procfs_update_thread_list): ... this. Call prune_threads.
1130 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1131 comment.
1132 (ravenscar_wait): Adjust.
1133 (ravenscar_find_new_threads): Rename to ...
1134 (ravenscar_update_thread_list): ... this. Call prune_threads.
1135 (init_ravenscar_thread_ops): Adjust.
1136 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1137 (record_btrace_update_thread_list): ... this. Adjust comment.
1138 (init_record_btrace_ops): Adjust.
1139 * remote.c (remote_threads_info): Rename to ...
1140 (remote_update_thread_list): ... this. Call prune_threads.
1141 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1142 Adjust.
1143 * sol-thread.c (check_for_thread_db): Adjust.
1144 (sol_find_new_threads_callback): Rename to ...
1145 (sol_update_thread_list_callback): ... this.
1146 (sol_find_new_threads): Rename to ...
1147 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1148 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1149 * target-delegates.c: Regenerate.
1150 * target.c (target_find_new_threads): Rename to ...
1151 (target_update_thread_list): ... this.
1152 * target.h (struct target_ops): Rename to_find_new_threads field
1153 to to_update_thread_list.
1154 (target_find_new_threads): Rename to ...
1155 (target_update_thread_list): ... this.
1156 * thread.c (prune_threads): Make extern.
1157 (update_thread_list): Adjust.
1158
6dc54d91
PA
11592014-10-15 Pedro Alves <palves@redhat.com>
1160
1161 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1162 Add describing comment. Return -1 if the qL packet is not
1163 supported.
1164 (struct thread_item, thread_item_t): Move higher up in
1165 the file. Add comments.
1166 (struct threads_parsing_context): Move higher up in
1167 the file, add comments, and remote to ...
1168 (struct threads_listing_context): ... this.
1169 (remote_newthread_step): Don't add the thread to GDB's thread
1170 database here. Instead push it to the thread_listing_context
1171 list.
1172 (remote_find_new_threads): Rename to ...
1173 (remote_get_threads_with_ql): ... this. Add target_ops and
1174 targets_listing_context parameters. Pass down context.
1175 (start_thread): Adjust.
1176 (clear_threads_parsing_context): Rename to ...
1177 (clear_threads_listing_context): ... this.
1178 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1179 remote_threads_info.
1180 (remote_get_threads_with_qthreadinfo): Ditto.
1181 (remote_threads_info): Reimplement.
1182
36728e82
PA
11832014-10-15 Pedro Alves <palves@redhat.com>
1184
1185 * infrun.c (resume): Don't force displaced-stepping for all
1186 single-steps on software single-stepping archs.
1187
34b7e8a6
PA
11882014-10-15 Pedro Alves <palves@redhat.com>
1189
1190 * breakpoint.c (single_step_breakpoints): Delete global.
1191 (insert_single_step_breakpoint): Adjust to store the breakpoint
1192 pointer in the current thread.
1193 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1194 (cancel_single_step_breakpoints): Delete functions.
1195 (breakpoint_has_location_inserted_here): Make extern.
1196 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1197 breakpoint list.
1198 * breakpoint.h (breakpoint_has_location_inserted_here): New
1199 declaration.
1200 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1201 (cancel_single_step_breakpoints): Remove declarations.
1202 * gdbthread.h (struct thread_control_state)
1203 <single_step_breakpoints>: New field.
1204 (delete_single_step_breakpoints)
1205 (thread_has_single_step_breakpoints_set)
1206 (thread_has_single_step_breakpoint_here): New declarations.
1207 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1208 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1209 (singlestep_pc): Delete globals.
1210 (infrun_thread_ptid_changed): Remove references to removed
1211 globals.
1212 (resume_cleanups): Delete the current thread's single-step
1213 breakpoints.
1214 (maybe_software_singlestep): Remove references to removed globals.
1215 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1216 delete_single_step_breakpoints.
1217 (init_wait_for_inferior): Remove references to removed globals.
1218 (delete_thread_infrun_breakpoints): Delete the thread's
1219 single-step breakpoints too.
1220 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1221 single-step breakpoints here.
1222 (delete_stopped_threads_single_step_breakpoints): New function.
1223 (adjust_pc_after_break): Adjust to use
1224 thread_has_single_step_breakpoints_set.
1225 (handle_inferior_event): Remove references to removed globals.
1226 Use delete_stopped_threads_single_step_breakpoints.
1227 (handle_signal_stop): Adjust to per-thread single-step
1228 breakpoints. Swap test order to do cheaper tests first.
1229 (switch_back_to_stepped_thread): Extend debug output. Remove
1230 references to removed globals.
1231 * record-full.c (record_full_wait_1): Adjust to per-thread
1232 single-step breakpoints.
1233 * thread.c (delete_single_step_breakpoints)
1234 (thread_has_single_step_breakpoints_set)
1235 (thread_has_single_step_breakpoint_here): New functions.
1236 (clear_thread_inferior_resources): Also delete the thread's
1237 single-step breakpoints.
1238
5b834a0a
PA
12392014-10-15 Pedro Alves <palves@redhat.com>
1240
1241 * thread.c (delete_thread_breakpoint): New function.
1242 (delete_step_resume_breakpoint)
1243 (delete_exception_resume_breakpoint): Use it.
1244 (delete_at_next_stop): New function.
1245 (clear_thread_inferior_resources): Use delete_at_next_stop.
1246
a1fd2fa5
PA
12472014-10-15 Pedro Alves <palves@redhat.com>
1248
1249 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1250 (breakpoint_inserted_here_p): ... here. Remove special case for
1251 software single-step breakpoints.
1252 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1253 (software_breakpoint_inserted_here_p): ... here. Remove special
1254 case for software single-step breakpoints.
1255 (bp_target_info_copy_insertion_state)
1256 (deprecated_insert_raw_breakpoint)
1257 (deprecated_remove_raw_breakpoint): Delete functions.
1258 * breakpoint.h (deprecated_insert_raw_breakpoint)
1259 (deprecated_remove_raw_breakpoint): Remove declarations.
1260
7c16b83e
PA
12612014-10-15 Pedro Alves <palves@redhat.com>
1262
1263 PR breakpoints/9649
1264 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1265 Delete array globals.
1266 (single_step_breakpoints): New global.
1267 (breakpoint_xfer_memory): Remove special handling for single-step
1268 breakpoints.
1269 (update_breakpoints_after_exec): Delete bp_single_step
1270 breakpoints.
1271 (detach_breakpoints): Remove special handling for single-step
1272 breakpoints.
1273 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1274 (bpstat_stop_status): Add comment.
1275 (bpstat_what, bptype_string, print_one_breakpoint_location)
1276 (adjust_breakpoint_address, init_bp_location): Handle
1277 bp_single_step.
1278 (new_single_step_breakpoint): New function.
1279 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1280 handling for single-step breakpoints.
1281 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1282 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1283 Rewrite.
1284 (detach_single_step_breakpoints, find_single_step_breakpoint):
1285 Delete functions.
1286 (breakpoint_has_location_inserted_here): New function.
1287 (single_step_breakpoint_inserted_here_p): Rewrite.
1288 * breakpoint.h: Remove FIXME.
1289 (enum bptype) <bp_single_step>: New enum value.
1290 (insert_single_step_breakpoint): Update comment.
1291 * infrun.c (resume_cleanups)
1292 (delete_step_thread_step_resume_breakpoint): Remove single-step
1293 breakpoints.
1294 (fetch_inferior_event): Install a cleanup that removes infrun
1295 breakpoints.
1296 (switch_back_to_stepped_thread) <expect thread advanced also>:
1297 Clear step-over info.
1298
0cbcdb96
PA
12992014-10-15 Pedro Alves <palves@redhat.com>
1300
1301 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1302 (delete_thread_infrun_breakpoints): New function, with parts
1303 salvaged from delete_step_resume_breakpoint_callback.
1304 (delete_step_thread_step_resume_breakpoint): Delete.
1305 (for_each_just_stopped_thread_callback_func): New typedef.
1306 (for_each_just_stopped_thread): New function.
1307 (delete_just_stopped_threads_infrun_breakpoints): New function.
1308 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1309 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1310 ... this. Adjust.
1311 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1312
963f9c80
PA
13132014-10-15 Pedro Alves <palves@redhat.com>
1314
1315 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1316 trying to step past a non-steppable watchpoint.
1317 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1318 field.
1319 * infrun.c (struct step_over_info): Add new field
1320 'nonsteppable_watchpoint_p' and adjust comments.
1321 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1322 Adjust.
1323 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1324 (stepping_past_nonsteppable_watchpoint): New function.
1325 (step_over_info_valid_p): Also return true if stepping past a
1326 nonsteppable watchpoint.
1327 (proceed): Adjust call to set_step_over_info. Remove reference to
1328 init_infwait_state.
1329 (init_wait_for_inferior): Remove reference to init_infwait_state.
1330 (waiton_ptid): Delete global.
1331 (struct execution_control_state)
1332 <stepped_after_stopped_by_watchpoint>: Delete field.
1333 (wait_for_inferior, fetch_inferior_event): Always pass
1334 minus_one_ptid to target_wait.
1335 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1336 field.
1337 (init_infwait_state): Delete function.
1338 (handle_inferior_event): Remove infwait_state handling.
1339 (handle_signal_stop) <watchpoints handling>: Adjust after
1340 stepped_after_stopped_by_watchpoint removal. Don't remove
1341 breakpoints here nor set infwait_state. Set the thread's
1342 stepping_over_watchpoint flag, and call keep_going instead.
1343 (keep_going): Handle stepping_over_watchpoint. Adjust
1344 set_step_over_info calls.
1345 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1346 function.
1347
6cc83d2a
PA
13482014-10-15 Pedro Alves <palves@redhat.com>
1349
1350 * infrun.c (step_over_info_valid_p): New function.
1351 (resume): Use step_over_info_valid_p instead of checking the
1352 threads's trap_expected flag.
1353
6979730b
DE
13542014-10-15 Doug Evans <dje@google.com>
1355 Walfred Tedeschi <walfred.tedeschi@intel.com>
1356
1357 PR python/17364
1358 * python/lib/gdb/__init__.py (packages): Add "printer".
1359 * python/lib/gdb/command/bound_registers.py: Moved to ...
1360 * python/lib/gdb/printer/bound_registers.py: ... here.
1361 Add printer to global set of builtin printers. Rename printer from
1362 "bound" to "mpx_bound128".
1363 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1364 registered as global "builtin" printer.
1365 (add_builtin_pretty_printer): New function.
1366 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1367 gdb/printer/__init__.py.
1368
35a49624
IB
13692014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1370
1371 * Makefile.in (SFILES): Remove d-support.c.
1372 (COMMON_OBS): Remove d-support.o.
1373 * d-lang.h (d_parse_symbol): Remove declaration.
1374 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1375 * d-support.c: Remove file.
1376
8fa0c4f8
AA
13772014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1378
1379 * gdb/infrun.c (process_event_stop_test): Apply
1380 gdbarch_addr_bits_remove to longjmp resume address.
1381
3666da81
PA
13822014-10-15 Pedro Alves <palves@redhat.com>
1383
1384 * regformats/microblaze.dat: Delete file.
1385
449aa9df
AKA
13862014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1387
1388 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1389 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1390
ebb8ece2
SC
13912014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1392
1393 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1394 as non-trivial.
1395
82c48ac7
SC
13962014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1397
1398 PR c++/13403
1399 PR c++/15154
1400 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1401 with qualified args.
1402
c40cc657
JB
14032014-10-14 Joel Brobecker <brobecker@adacore.com>
1404
1405 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1406 of the case where the second operand is a pointer.
1407 <BINOP_SUB>: Likewise.
1408
0ea5cda8
SDJ
14092014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1410
1411 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1412 only if it is not NULL.
1413 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1414 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1415 (struct probe_ops) <clear_semaphore>: Likewise.
1416 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1417 not NULL.
1418 (stop_tracing): Likewise, for clear_semaphore.
1419
f7088df3
SDJ
14202014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1421
1422 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1423 using language_c, instead of current_language.
1424
4e1bbde0
DE
14252014-10-13 Doug Evans <dje@google.com>
1426
6ff5a0f6 1427 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1428 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1429 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1430 (pspy_new, pspace_to_pspace_object): Call it.
1431
c780cc2f
JK
14322014-10-13 Miroslav Franc <mfranc@redhat.com>
1433 Jan Kratochvil <jan.kratochvil@redhat.com>
1434
1435 Fix "save breakpoints" for "catch" command.
1436 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1437 newline.
1438
99894e11
JK
14392014-10-12 Miroslav Franc <mfranc@redhat.com>
1440
1441 Fix "save breakpoints" for "disable $bpnum" command.
1442 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1443
3831839c
PA
14442014-10-10 Pedro Alves <palves@redhat.com>
1445
1446 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1447 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1448 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1449 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1450 and been removed.
1451 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1452 * configure.ac: Remove references to IRIX.
1453 * configure.host: Add *-*-irix* to the obsolete hosts section.
1454 Remove all other references to irix.
1455 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1456 Delete files.
1457
cc3afae2
AKA
14582014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1459
1460 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1461 isn't valid, release the tdesc arch data and return NULL.
1462
cdfa0b0a
PA
14632014-10-10 Pedro Alves <palves@redhat.com>
1464
1465 * linux-tdep.c: Include observer.h.
1466 (linux_inferior_data): New global.
1467 (struct linux_info): New structure.
1468 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1469 (get_linux_inferior_data): New functions.
1470 (linux_vsyscall_range): Rename to ...
1471 (linux_vsyscall_range_raw): ... this.
1472 (linux_vsyscall_range): New function; handles caching.
1473 (_initialize_linux_tdep): Register linux_inferior_data. Install
1474 inferior_exit and inferior_appeared observers.
1475
8b9a549d
PA
14762014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1477 Pedro Alves <palves@redhat.com>
1478
1479 PR symtab/14466
1480 * solib-svr4.c (svr4_read_so_list): Rename to ...
1481 (svr4_current_sos_1): ... this and change the function comment.
1482 (svr4_current_sos): New function.
1483
3437254d
PA
14842014-10-10 Pedro Alves <palves@redhat.com>
1485
1486 * arch-utils.c (default_vsyscall_range): New function.
1487 * arch-utils.h (default_vsyscall_range): New declaration.
1488 * gdbarch.sh (vsyscall_range): New hook.
1489 * gdbarch.h, gdbarch.c: Regenerate.
1490 * linux-tdep.c (linux_vsyscall_range): New function.
1491 (linux_init_abi): Install linux_vsyscall_range as
1492 vsyscall_range gdbarch hook.
1493 * memrange.c (address_in_mem_range): New function.
1494 * memrange.h (address_in_mem_range): New declaration.
1495 * symfile-mem.c (find_vdso_size): Delete function.
1496 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1497
31cc0b80
PA
14982014-10-10 Pedro Alves <palves@redhat.com>
1499
1500 * infrun.c (normal_stop): Fix typo in comment.
1501
3e3286a2
SDJ
15022014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1503
1504 PR tdep/9390
1505 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1506 typo when using logical AND to determine instruction type.
1507
fcbdedf8
YQ
15082014-10-09 Yao Qi <yao@codesourcery.com>
1509
1510 * infrun.c (handle_signal_stop): Remove local variable
1511 'printed'.
1512
db984616
SS
15132014-10-08 Stan Shebs <stan@codesourcery.com>
1514
1515 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1516
3ba37e6c
GB
15172014-10-08 Gary Benson <gbenson@redhat.com>
1518
1519 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1520
a442d071
GB
15212014-10-08 Gary Benson <gbenson@redhat.com>
1522
1523 * common/common-defs.h: Include common-exceptions.h.
1524 * exceptions.h: Do not include common-exceptions.h.
1525
6f1947e8
GB
15262014-10-08 Gary Benson <gbenson@redhat.com>
1527
1528 * common/common-defs.h: Include cleanups.h.
1529 * common/common-exceptions.c: Do not include cleanups.h.
1530 * utils.h: Likewise.
1531
c765fdb9
GB
15322014-10-08 Gary Benson <gbenson@redhat.com>
1533
1534 * ada-lang.c: Do not include exceptions.h.
1535 * ada-valprint.c: Likewise.
1536 * amd64-tdep.c: Likewise.
1537 * auto-load.c: Likewise.
1538 * block.c: Likewise.
1539 * break-catch-throw.c: Likewise.
1540 * breakpoint.c: Likewise.
1541 * btrace.c: Likewise.
1542 * c-lang.c: Likewise.
1543 * cli/cli-cmds.c: Likewise.
1544 * cli/cli-interp.c: Likewise.
1545 * cli/cli-script.c: Likewise.
1546 * completer.c: Likewise.
1547 * corefile.c: Likewise.
1548 * corelow.c: Likewise.
1549 * cp-abi.c: Likewise.
1550 * cp-support.c: Likewise.
1551 * cp-valprint.c: Likewise.
1552 * darwin-nat.c: Likewise.
1553 * dwarf2-frame-tailcall.c: Likewise.
1554 * dwarf2-frame.c: Likewise.
1555 * dwarf2loc.c: Likewise.
1556 * dwarf2read.c: Likewise.
1557 * eval.c: Likewise.
1558 * event-loop.c: Likewise.
1559 * event-top.c: Likewise.
1560 * f-valprint.c: Likewise.
1561 * frame-unwind.c: Likewise.
1562 * frame.c: Likewise.
1563 * gdbtypes.c: Likewise.
1564 * gnu-v2-abi.c: Likewise.
1565 * gnu-v3-abi.c: Likewise.
1566 * guile/scm-auto-load.c: Likewise.
1567 * guile/scm-breakpoint.c: Likewise.
1568 * guile/scm-cmd.c: Likewise.
1569 * guile/scm-frame.c: Likewise.
1570 * guile/scm-lazy-string.c: Likewise.
1571 * guile/scm-param.c: Likewise.
1572 * guile/scm-symbol.c: Likewise.
1573 * guile/scm-type.c: Likewise.
1574 * hppa-hpux-tdep.c: Likewise.
1575 * i386-tdep.c: Likewise.
1576 * inf-loop.c: Likewise.
1577 * infcall.c: Likewise.
1578 * infcmd.c: Likewise.
1579 * infrun.c: Likewise.
1580 * interps.c: Likewise.
1581 * interps.h: Likewise.
1582 * jit.c: Likewise.
1583 * linespec.c: Likewise.
1584 * linux-nat.c: Likewise.
1585 * linux-thread-db.c: Likewise.
1586 * m32r-rom.c: Likewise.
1587 * main.c: Likewise.
1588 * memory-map.c: Likewise.
1589 * mi/mi-cmd-break.c: Likewise.
1590 * mi/mi-cmd-stack.c: Likewise.
1591 * mi/mi-interp.c: Likewise.
1592 * mi/mi-main.c: Likewise.
1593 * monitor.c: Likewise.
1594 * nto-procfs.c: Likewise.
1595 * objc-lang.c: Likewise.
1596 * p-valprint.c: Likewise.
1597 * parse.c: Likewise.
1598 * ppc-linux-tdep.c: Likewise.
1599 * printcmd.c: Likewise.
1600 * probe.c: Likewise.
1601 * python/py-auto-load.c: Likewise.
1602 * python/py-breakpoint.c: Likewise.
1603 * python/py-cmd.c: Likewise.
1604 * python/py-finishbreakpoint.c: Likewise.
1605 * python/py-frame.c: Likewise.
1606 * python/py-framefilter.c: Likewise.
1607 * python/py-function.c: Likewise.
1608 * python/py-gdb-readline.c: Likewise.
1609 * python/py-inferior.c: Likewise.
1610 * python/py-infthread.c: Likewise.
1611 * python/py-lazy-string.c: Likewise.
1612 * python/py-linetable.c: Likewise.
1613 * python/py-param.c: Likewise.
1614 * python/py-prettyprint.c: Likewise.
1615 * python/py-symbol.c: Likewise.
1616 * python/py-type.c: Likewise.
1617 * python/py-value.c: Likewise.
1618 * python/python-internal.h: Likewise.
1619 * python/python.c: Likewise.
1620 * record-btrace.c: Likewise.
1621 * record-full.c: Likewise.
1622 * regcache.c: Likewise.
1623 * remote-fileio.c: Likewise.
1624 * remote-mips.c: Likewise.
1625 * remote.c: Likewise.
1626 * rs6000-aix-tdep.c: Likewise.
1627 * rs6000-nat.c: Likewise.
1628 * skip.c: Likewise.
1629 * solib-darwin.c: Likewise.
1630 * solib-dsbt.c: Likewise.
1631 * solib-frv.c: Likewise.
1632 * solib-ia64-hpux.c: Likewise.
1633 * solib-spu.c: Likewise.
1634 * solib-svr4.c: Likewise.
1635 * solib.c: Likewise.
1636 * spu-tdep.c: Likewise.
1637 * stack.c: Likewise.
1638 * stap-probe.c: Likewise.
1639 * symfile-mem.c: Likewise.
1640 * symmisc.c: Likewise.
1641 * target.c: Likewise.
1642 * thread.c: Likewise.
1643 * top.c: Likewise.
1644 * tracepoint.c: Likewise.
1645 * tui/tui-interp.c: Likewise.
1646 * typeprint.c: Likewise.
1647 * utils.c: Likewise.
1648 * valarith.c: Likewise.
1649 * valops.c: Likewise.
1650 * valprint.c: Likewise.
1651 * value.c: Likewise.
1652 * varobj.c: Likewise.
1653 * windows-nat.c: Likewise.
1654 * xml-support.c: Likewise.
1655
484933d1
MR
16562014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1657
1658 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1659 name implies.
1660 (extended_mips16_next_pc): Update accordingly.
1661
ab50adb6
MR
16622014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1663
1664 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1665 function.
1666 (micromips_instruction_is_compact_branch): Likewise.
1667 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1668 or a compact jump, reaching a jump delay slot, or seeing a
1669 second non-prologue instruction.
1670 (micromips_scan_prologue): Also terminate scanning upon seeing a
1671 compact branch or jump, or reaching a branch or jump delay slot.
1672 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1673 or jump delay slot, or seeing a second non-prologue instruction.
1674 (mips32_instruction_has_delay_slot): Retain instruction
1675 examination code only, update arguments accordingly and move
1676 instruction fetch pieces to...
1677 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1678 (micromips_instruction_has_delay_slot): Likewise and to...
1679 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1680 (mips16_instruction_has_delay_slot): Likewise and to...
1681 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1682 (mips_single_step_through_delay): Update accordingly.
1683 (mips_adjust_breakpoint_address): Likewise.
1684
ae790652
MR
16852014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1686
1687 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1688 !mustbe32 also return 1 for 32-bit instructions.
1689 (mips16_instruction_has_delay_slot): Likewise. Add an
1690 explanatory comment.
1691
9b807e7b
MR
16922014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1693
1694 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1695 symbols special.
1696
0d5ed153
MR
16972014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1698
1699 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1700 update comments.
1701 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1702 for the breakpoint's address. Don't preinitialize `placed_size'.
1703 (insert_bp_location): Set `reqstd_address' rather than
1704 `placed_address'.
1705 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1706 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1707 address.
1708 (bkpt_remove_location): Likewise.
1709 (deprecated_insert_raw_breakpoint): Likewise.
1710 (deprecated_remove_raw_breakpoint): Likewise.
1711 (find_single_step_breakpoint): Likewise.
1712 * mem-break.c (default_memory_insert_breakpoint): Use
1713 `reqstd_address' for the breakpoint's address. Don't set
1714 `placed_address' or `placed_size' if breakpoint contents couldn't
1715 have been determined.
1716 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1717 the breakpoint's address.
1718 (remote_insert_hw_breakpoint): Likewise. Don't set
1719 `placed_address' or `placed_size' if breakpoint couldn't have been
1720 set.
1721 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1722 `reqstd_address' for the breakpoint's address.
1723 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1724 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1725 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1726 * microblaze-linux-tdep.c
1727 (microblaze_linux_memory_remove_breakpoint): Likewise.
1728 * monitor.c (monitor_insert_breakpoint): Likewise.
1729 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1730 (procfs_insert_hw_breakpoint): Likewise.
1731 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1732 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1733 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1734 * remote-mips.c (mips_insert_breakpoint): Likewise.
1735 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1736
3e871532
LM
17372014-10-03 Luis Machado <lgustavo@codesourcery.com>
1738
1739 * valops.c (value_assign): Check for bit field assignments
1740 before calling architecture-specific register value
1741 conversion functions.
1742
ec48dc8b
PM
17432014-10-03 Pierre Muller <muller@sourceware.org>
1744
1745 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1746
b57bacec
PA
17472014-10-02 Pedro Alves <palves@redhat.com>
1748
1749 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1750 threads_are_executing.
1751 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1752 describing comment.
1753 * gdbthread.h (threads_are_executing): Declare.
1754 (handle_signal_stop) <random signals>: Don't print about the
1755 signal here if stopping.
1756 (end_stepping_range): Don't notify observers here.
1757 (normal_stop): Update the thread list. If stopped by a random
1758 signal or a stepping range ended, notify observers.
1759 * thread.c (threads_executing): New global.
1760 (init_thread_list): Clear 'threads_executing'.
1761 (set_executing): Set or clear 'threads_executing'.
1762 (threads_are_executing): New function.
1763 (update_threads_executing): New function.
1764 (update_thread_list): Use it.
1765
13fd3ff3
PA
17662014-10-02 Pedro Alves <palves@redhat.com>
1767
1768 PR breakpoints/17431
1769 * breakpoint.c (update_breakpoints_after_exec): Don't create
1770 overlay, longjmp, std terminate nor exception breakpoints here.
1771
32990ada
PA
17722014-10-02 Pedro Alves <palves@redhat.com>
1773
1774 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1775 Adjust comments.
1776 * inferior.c (find_inferior_for_program_space): Give preference to
1777 the current inferior.
1778 * inferior.h (find_inferior_for_program_space): Update comment.
1779 * progspace.c (switch_to_program_space_and_thread): Prefer the
1780 current inferior if it's bound to the program space requested. If
1781 the inferior found doesn't have a PID yet, don't bother looking up
1782 a thread.
1783 * progspace.h (switch_to_program_space_and_thread): Adjust
1784 comment.
1785 * thread.c (any_thread_of_process, any_live_thread_of_process):
1786 Give preference to the current thread.
1787
0fec99e8
PA
17882014-10-01 Pedro Alves <palves@redhat.com>
1789
1790 * breakpoint.c (insert_bp_location): Error out if inserting a
1791 software breakpoint at a read-only address.
1792 * target.c (memory_xfer_check_region): New function, factored out
1793 from ...
1794 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1795 ULONGEST.
1796 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1797 against the memory region attributes.
1798
2ddf4301
SM
17992014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1800
1801 * NEWS: Announce new exit-code field in -list-thread-groups
1802 output.
1803 * inferior.c (exit_inferior_1): Don't clear exit code.
1804 (inferior_appeared): Clear exit code.
1805 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1806 code.
1807
5fdeec1d
PA
18082014-10-01 Pedro Alves <palves@redhat.com>
1809
1810 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1811 GENERATED" along with emacs/vi read-only markers.
1812 * regformats/aarch64.dat: Regenerate.
1813 * regformats/arm-with-iwmmxt.dat: Regenerate.
1814 * regformats/arm-with-neon.dat: Regenerate.
1815 * regformats/arm-with-vfpv2.dat: Regenerate.
1816 * regformats/arm-with-vfpv3.dat: Regenerate.
1817 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1818 * regformats/i386/amd64-avx.dat: Regenerate.
1819 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1820 * regformats/i386/amd64-avx512.dat: Regenerate.
1821 * regformats/i386/amd64-linux.dat: Regenerate.
1822 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1823 * regformats/i386/amd64-mpx.dat: Regenerate.
1824 * regformats/i386/amd64.dat: Regenerate.
1825 * regformats/i386/i386-avx-linux.dat: Regenerate.
1826 * regformats/i386/i386-avx.dat: Regenerate.
1827 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1828 * regformats/i386/i386-avx512.dat: Regenerate.
1829 * regformats/i386/i386-linux.dat: Regenerate.
1830 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1831 * regformats/i386/i386-mmx.dat: Regenerate.
1832 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1833 * regformats/i386/i386-mpx.dat: Regenerate.
1834 * regformats/i386/i386.dat: Regenerate.
1835 * regformats/i386/x32-avx-linux.dat: Regenerate.
1836 * regformats/i386/x32-avx.dat: Regenerate.
1837 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1838 * regformats/i386/x32-avx512.dat: Regenerate.
1839 * regformats/i386/x32-linux.dat: Regenerate.
1840 * regformats/i386/x32.dat: Regenerate.
1841 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1842 * regformats/mips-dsp-linux.dat: Regenerate.
1843 * regformats/mips-linux.dat: Regenerate.
1844 * regformats/mips64-dsp-linux.dat: Regenerate.
1845 * regformats/mips64-linux.dat: Regenerate.
1846 * regformats/nios2-linux.dat: Regenerate.
1847 * regformats/rs6000/powerpc-32.dat: Regenerate.
1848 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1849 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1850 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1851 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1852 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1853 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1854 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1855 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1856 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1857 * regformats/s390-linux32.dat: Regenerate.
1858 * regformats/s390-linux32v1.dat: Regenerate.
1859 * regformats/s390-linux32v2.dat: Regenerate.
1860 * regformats/s390-linux64.dat: Regenerate.
1861 * regformats/s390-linux64v1.dat: Regenerate.
1862 * regformats/s390-linux64v2.dat: Regenerate.
1863 * regformats/s390-te-linux64.dat: Regenerate.
1864 * regformats/s390x-linux64.dat: Regenerate.
1865 * regformats/s390x-linux64v1.dat: Regenerate.
1866 * regformats/s390x-linux64v2.dat: Regenerate.
1867 * regformats/s390x-te-linux64.dat: Regenerate.
1868 * regformats/tic6x-c62x-linux.dat: Regenerate.
1869 * regformats/tic6x-c62x.dat: Regenerate.
1870 * regformats/tic6x-c64x-linux.dat: Regenerate.
1871 * regformats/tic6x-c64x.dat: Regenerate.
1872 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1873 * regformats/tic6x-c64xp.dat: Regenerate.
1874
db74e4ba
PA
18752014-10-01 Pedro Alves <palves@redhat.com>
1876
1877 * features/Makefile: Update comments.
1878 (XMLTOC): List all xml files we build C files from.
1879 (clean-cfiles): New rule.
1880
d63f2f84
PA
18812014-10-01 Pedro Alves <palves@redhat.com>
1882
1883 * features/i386/amd64-avx512-linux.c: Regenerate.
1884 * features/i386/amd64-avx512.c: Regenerate.
1885 * features/i386/x32-avx512-linux.c: Regenerate.
1886 * features/i386/x32-avx512.c: Regenerate.
1887
20ad026d
PA
18882014-10-01 Pedro Alves <palves@redhat.com>
1889
1890 * features/Makefile (WHICH): Remove arm-with-m,
1891 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1892
acc9fe45
PA
18932014-10-01 Pedro Alves <palves@redhat.com>
1894
1895 * features/Makefile (clean): New rule.
1896
e001e535
PA
18972014-10-01 Pedro Alves <palves@redhat.com>
1898
1899 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1900 (zmm14h): Add missing end quotes.
1901
bdc14417
PA
19022014-10-01 Pedro Alves <palves@redhat.com>
1903
1904 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1905 * features/aarch64.c: Regenerate.
1906
d83ad864
DB
19072014-09-30 Don Breazeal <donb@codesourcery.com>
1908
1909 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1910 code so as to work with follow_fork_inferior.
1911 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1912 (inf_ttrace_create_inferior): Remove reference to
1913 inf_ttrace_vfork_ppid.
1914 (inf_ttrace_attach): Ditto.
1915 (inf_ttrace_detach): Ditto.
1916 (inf_ttrace_kill): Use current_inferior instead of
1917 inf_ttrace_vfork_ppid.
1918 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1919 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1920 inferior away from the parent.
1921 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1922 target_follow_fork.
1923 (follow_fork_inferior): New function.
1924 (follow_inferior_reset_breakpoints): Make function static.
1925 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1926 * linux-nat.c (linux_child_follow_fork): Move target-independent
1927 code to infrun.c:follow_fork_inferior.
1928
29082443
AA
19292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1930
1931 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1932 * gdbarch.c: Regenerate.
1933 * gdbarch.h: Likewise.
1934 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1935 gdbarch method 'regset_from_core_section'.
1936 (get_core_register_section): Remove handling for the case that
1937 regset == NULL and regset_from_core_section is defined.
1938 (get_core_registers): Drop check for deleted method.
1939 * procfs.c (procfs_do_thread_registers): Adjust comment.
1940
f968fe80
AA
19412014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1942
1943 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1944 (linux_nat_make_corefile_notes): Remove.
1945 (linux_target_install_ops): Do not set target method
1946 'make_corefile_notes'.
1947 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1948 Remove field.
1949 (linux_corefile_thread_callback): Instead of args->collect, call
1950 linux_collect_thread_registers.
1951 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1952 NULL unless there is a regset iterator.
1953 (linux_make_corefile_notes_1): Remove.
1954 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1955 by linux_make_corefile_notes.
1956 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1957
174ad59a
AA
19582014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1959
1960 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1961 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1962 Remove.
1963 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1964
97094034
AA
19652014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1966
1967 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1968 (xtensa_iterate_over_regset_sections): New.
1969 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1970
f73d3ce7
AA
19712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1972
1973 * vax-tdep.c (vax_regset_from_core_section): Remove.
1974 (vax_iterate_over_regset_sections): New.
1975 (vax_gdbarch_init): Adjust gdbarch initialization.
1976
cb24567a
AA
19772014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1978
1979 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1980 (tilegx_regset_from_core_section): Remove.
1981 (tilegx_iterate_over_regset_sections): New.
1982 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1983
e5139de8
AA
19842014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1985
1986 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1987 (sparc_iterate_over_regset_sections): New.
1988 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1989 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1990 targets.
1991 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1992 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1993 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1994 target method 'make_corefile_notes'.
1995
c6d41a6f
AA
19962014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1997
1998 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1999 'sizeof_gregset' and 'sizeof_fpregset'.
2000 * sh-tdep.c (sh_regset_from_core_section): Remove.
2001 (sh_iterate_over_regset_sections): New.
2002 (sh_gdbarch_init): Adjust gdbarch initialization.
2003 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2004 sizeof_fpregset.
2005 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2006 'sizeof_gregset'.
2007
9845a0b5
AA
20082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2009
2010 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2011 (score7_linux_iterate_over_regset_sections): New.
2012 (score_gdbarch_init): Adjust gdbarch initialization.
2013
23ea9aeb
AA
20142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2015
2016 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2017 FreeBSD targets.
2018 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2019 method 'make_corefile_notes'.
2020 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2021 (ppcfbsd_regset_from_core_section): Remove.
2022 (ppcfbsd_iterate_over_regset_sections): New.
2023 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2024 initialization.
2025 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2026 (ppcnbsd_iterate_over_regset_sections): New.
2027 (ppcnbsd_init_abi): Adjust.
2028 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2029 (ppcobsd_iterate_over_regset_sections): New.
2030 (ppcobsd_init_abi): Adjust.
2031 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2032 (rs6000_aix_iterate_over_regset_sections): New.
2033 (rs6000_aix_init_osabi): Adjust.
2034
c5b8d704
AA
20352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2036
2037 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2038 (nios2_regset_from_core_section): Remove.
2039 (nios2_iterate_over_regset_sections): New.
2040 (nios2_linux_init_abi): Adjust gdbarch initialization.
2041
3636e608
AA
20422014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2043
2044 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2045 (am33_iterate_over_regset_sections): New.
2046 (am33_linux_init_osabi): Adjust gdbarch initialization.
2047
d4036235
AA
20482014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2049
2050 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2051 (mips_linux_iterate_over_regset_sections): New.
2052 (mips_linux_init_abi): Adjust gdbarch initialization.
2053 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2054 (mips64obsd_iterate_over_regset_sections): New.
2055 (mips64obsd_init_abi): Adjust.
2056 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2057 (mipsnbsd_iterate_over_regset_sections): New.
2058 (mipsnbsd_init_abi): Adjust.
2059
b61ddd6e
AA
20602014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2061
2062 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2063 (m88k_iterate_over_regset_sections): New.
2064 (m88k_gdbarch_init): Adjust gdbarch initialization.
2065
55a2906a
AA
20662014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2067
2068 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2069 (ia64_linux_iterate_over_regset_sections): New.
2070 (ia64_linux_init_abi): Adjust gdbarch initialization.
2071
022c98ab
AA
20722014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2073
2074 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2075 (m68kbsd_iterate_over_regset_sections): New.
2076 (m68kbsd_init_abi): Adjust gdbarch initialization.
2077 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2078 (m68k_linux_iterate_over_regset_sections): New.
2079 (m68k_linux_init_abi): Adjust gdbarch initialization.
2080
5fac247f
AA
20812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2082
2083 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2084 (m32r_linux_regset_from_core_section): Remove.
2085 (m32r_linux_iterate_over_regset_sections): New.
2086 (m32r_linux_init_abi): Adjust gdbarch initialization.
2087
490496c3
AA
20882014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2089
2090 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2091 (amd64obsd_iterate_over_regset_sections): New.
2092 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2093 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2094 Remove.
2095 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2096 regset_from_core_section initialization.
2097 * i386-tdep.c (i386_regset_from_core_section): Remove.
2098 (i386_iterate_over_regset_sections): New.
2099 (i386_gdbarch_init): Adjust gdbarch initialization.
2100 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2101 (i386_iterate_over_regset_sections): New prototype.
2102 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2103 Remove.
2104 (i386obsd_aout_iterate_over_regset_sections): New.
2105 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2106 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2107 targets.
2108 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2109 (amd64fbsd_init_abi): Call fbsd_init_abi.
2110 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2111 (i386fbsd4_init_abi): Call fbsd_init_abi.
2112 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2113 target method 'make_corefile_notes'.
2114 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2115
50c5eb53
AA
21162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2117
2118 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2119 (hppa_hpux_iterate_over_regset_sections): New.
2120 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2121 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2122 (hppa_linux_iterate_over_regset_sections): New.
2123 (hppa_linux_init_abi): Adjust.
2124 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2125 (hppanbsd_iterate_over_regset_sections): New.
2126 (hppanbsd_init_abi): Adjust.
2127 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2128 (hppaobsd_iterate_over_regset_sections): New.
2129 (hppaobsd_init_abi): Adjust.
2130
66afae4f
AA
21312014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2132
2133 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2134 (frv_linux_iterate_over_regset_sections): New.
2135 (frv_linux_init_abi): Adjust gdbarch initialization.
2136
ed09174e
AA
21372014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2138
2139 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2140 (armbsd_iterate_over_regset_sections): New prototype.
2141 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2142 (armbsd_iterate_over_regset_sections): New.
2143 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2144 initialization.
2145
dff2166e
AA
21462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2147
2148 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2149 (alpha_linux_iterate_over_regset_sections): New.
2150 (alpha_linux_init_abi): Adjust gdbarch initialization.
2151 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2152 prototype.
2153 (alphanbsd_iterate_over_regset_sections): New prototype.
2154
4108500a
AA
21552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2156
2157 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2158 Remove.
2159 (aarch64_linux_iterate_over_regset_sections): New.
2160 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2161
a904c024
AA
21622014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2163
2164 * fbsd-tdep.c: New file.
2165 * fbsd-tdep.h: New file.
2166 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2167 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2168 (ALLDEPFILES): Add fbsd-tdep.c.
2169
8f0435f7
AA
21702014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2171
2172 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2173 parameter.
2174 * gdbarch.h: Regenerate.
2175 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2176 iterator.
2177 (get_core_register_section): Add parameter 'regset' and use it, if
2178 set. Add parameter 'min_size' and verify the bfd section size
2179 against it.
2180 (get_core_registers_cb): Add parameter 'regset' and pass it to
2181 get_core_register section. For the "standard" register sections
2182 ".reg" and ".reg2", set an appropriate default for human_name.
2183 (get_core_registers): Don't abort when the gdbarch has an iterator
2184 but no regset_from_core_section. Add NULL/0 for parameters
2185 'regset'/'min_size' in calls to get_core_register_section.
2186 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2187 'regset' and use it instead of calling the
2188 regset_from_core_section gdbarch method.
2189 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2190 * i386-tdep.c (i386_supply_xstateregset)
2191 (i386_collect_xstateregset, i386_xstateregset): Moved to
2192 i386-linux-tdep.c.
2193 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2194 .reg-xstate.
2195 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2196 core file support only if the regset iterator hasn't been set.
2197 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2198 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2199 Moved from i386-tdep.c and renamed to *_linux*.
2200 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2201 each callback invocation. Allow any .reg-xstate size when reading
2202 from a core file.
2203 * amd64-tdep.c (amd64_supply_xstateregset)
2204 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2205 amd64-linux-tdep.c.
2206 (amd64_regset_from_core_section): Remove.
2207 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2208 install an amd64-specific regset_from_core_section gdbarch method.
2209 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2210 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2211 Moved from amd64-tdep.c and renamed to *_linux*.
2212 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2213 to each callback invocation. Allow any .reg-xstate size when
2214 reading from a core file.
2215 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2216 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2217 each callback invocation.
2218 (arm_linux_init_abi): No longer set the regset_from_core_section
2219 gdbarch method.
2220 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2221 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2222 each callback invocation.
2223 (ppc_linux_init_abi): No longer set the regset_from_core_section
2224 gdbarch method.
2225 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2226 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2227 (s390_regset_from_core_section): Remove.
2228 (s390_iterate_over_regset_sections): Add regset parameter to each
2229 callback invocation.
2230 (s390_gdbarch_init): No longer set the regset_from_core_section
2231 gdbarch method. Drop initialization of deleted tdep fields.
2232
5aa82d05
AA
22332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2234
2235 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2236 (amd64_linux_iterate_over_regset_sections): New.
2237 (amd64_linux_init_abi_common): Don't install the regset section
2238 list, but the new iterator in gdbarch.
2239 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2240 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2241 (arm_linux_iterate_over_regset_sections): ...here. New function.
2242 (arm_linux_init_abi): Set iterator instead of section list.
2243 * corelow.c (get_core_registers_cb): New function, logic moved
2244 from...
2245 (get_core_registers): ...loop body here. Use new iterator method
2246 instead of walking through the regset section list.
2247 * gdbarch.sh: Remove 'core_regset_sections'. New method
2248 'iterate_over_regset_sections'. New typedef
2249 'iterate_over_regset_sections_cb'.
2250 * gdbarch.c: Regenerate.
2251 * gdbarch.h: Likewise.
2252 * i386-linux-tdep.c (i386_linux_regset_sections)
2253 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2254 Remove.
2255 (i386_linux_iterate_over_regset_sections): New.
2256 (i386_linux_init_abi): Don't choose a regset section list, but
2257 install new iterator in gdbarch.
2258 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2259 (linux_collect_regset_section_cb): New function, logic moved
2260 from...
2261 (linux_collect_thread_registers): ...loop body here. Use iterator
2262 method instead of walking through list.
2263 (linux_make_corefile_notes_1): Check for presence of iterator
2264 method instead of regset section list.
2265 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2266 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2267 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2268 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2269 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2270 (ppc_linux_init_abi): Don't choose from above regset section
2271 lists, but install new iterator in gdbarch.
2272 * regset.h (struct core_regset_section): Remove.
2273 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2274 have_linux_v1, have_linux_v2, and have_tdb.
2275 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2276 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2277 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2278 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2279 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2280 (s390_iterate_over_regset_sections): ...here. New function. Use
2281 new tdep fields.
2282 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2283 regset section lists, but install new iterator.
2284
2eca4a8d
JK
22852014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2286
2287 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2288
a73c2b56
SM
22892014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2290
2291 * progspace.c (print_program_space): Don't prune program spaces
2292 before printing them.
2293
03d46957
PA
22942014-09-25 Pedro Alves <palves@redhat.com>
2295
2296 * infrun.c (user_visible_resume_ptid): Don't check
2297 singlestep_breakpoints_inserted_p.
2298
e558d7c1
PA
22992014-09-25 Pedro Alves <palves@redhat.com>
2300
2301 * breakpoint.c (should_be_inserted): Add debug output.
2302
7f89fd65
PA
23032014-09-25 Pedro Alves <palves@redhat.com>
2304
2305 * infrun.c (stepping_past_instruction_at)
2306 (clear_exit_convenience_vars): Point at infrun.h instead of
2307 inferior.h.
2308 (handle_signal_stop): Fix typo.
2309
b7576e5c
YQ
23102014-09-24 Yao Qi <yao@codesourcery.com>
2311
2312 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2313 bitmask.
2314
9a6cf368
GB
23152014-09-22 Gary Benson <gbenson@redhat.com>
2316
2317 * target.c (target_stop): Updated comment.
2318
03f4463b
GB
23192014-09-22 Gary Benson <gbenson@redhat.com>
2320
2321 * target/target.h (target_stop_ptid): Renamed as...
2322 (target_stop_and_wait): New function. Updated comment.
2323 All uses updated.
2324 (target_continue_ptid): Renamed as...
2325 (target_continue_no_signal): New function. Updated comment.
2326 All uses updated.
2327
a25a5a45
PA
23282014-09-22 Pedro Alves <palves@redhat.com>
2329
2330 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2331 and "auto" merged.
2332 * breakpoint.c (enum ugll_insert_mode): New enum.
2333 (always_inserted_mode): Now a plain boolean.
2334 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2335 (breakpoints_always_inserted_mode): Delete.
2336 (breakpoints_should_be_inserted_now): New function.
2337 (insert_breakpoints): Pass UGLL_INSERT to
2338 update_global_location_list instead of calling
2339 insert_breakpoint_locations manually.
2340 (create_solib_event_breakpoint_1): New, factored out from ...
2341 (create_solib_event_breakpoint): ... this.
2342 (create_and_insert_solib_event_breakpoint): Use
2343 create_solib_event_breakpoint_1 instead of calling
2344 insert_breakpoint_locations manually.
2345 (update_global_location_list): Change parameter type from boolean
2346 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2347 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2348 (update_global_location_list_nothrow): Change parameter type from
2349 boolean to enum ugll_insert_mode.
2350 (_initialize_breakpoint): "breakpoint always-inserted" option is
2351 now a boolean command. Update help text.
2352 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2353 (breakpoints_should_be_inserted_now): New declaration.
2354 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2355 Remove breakpoints_always_inserted_mode check.
2356 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2357 * remote.c (remote_start_remote): Likewise.
2358
04086b45
PA
23592014-09-22 Pedro Alves <palves@redhat.com>
2360
2361 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2362 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2363 Instead, pass UGLL_INSERT to update_global_location_list.
2364 (update_global_location_list): Change parameter type from boolean
2365 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2366 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2367 (create_solib_event_breakpoint_1): New, factored out from ...
2368 (create_solib_event_breakpoint): ... this.
2369 (create_and_insert_solib_event_breakpoint): Use
2370 create_solib_event_breakpoint_1 instead of calling
2371 insert_breakpoint_locations manually.
2372 (update_global_location_list): Handle UGLL_INSERT.
2373
44702360
PA
23742014-09-22 Pedro Alves <palves@redhat.com>
2375
2376 * breakpoint.c (enum ugll_insert_mode): New enum.
2377 (update_global_location_list)
2378 (update_global_location_list_nothrow): Change parameter type from
2379 boolean to enum ugll_insert_mode. All callers adjusted.
2380
93c6145a
JB
23812014-09-19 Joel Brobecker <brobecker@adacore.com>
2382
2383 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2384 SystemTap support in GDB.
2385
89a5711c
DB
23862014-09-19 Don Breazeal <donb@codesourcery.com>
2387
2388 * linux-nat.c (linux_handle_extended_wait): Call
2389 linux_ptrace_get_extended_event.
2390 (wait_lwp): Call linux_is_extended_waitstatus.
2391 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2392 and linux_is_extended_waitstatus.
2393 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2394 linux_ptrace_get_extended_event.
2395 (linux_ptrace_get_extended_event): New function.
2396 (linux_is_extended_waitstatus): New function.
2397 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2398 (linux_is_extended_waitstatus): New declarations.
2399
c3b7b696
YQ
24002014-09-19 Yao Qi <yao@codesourcery.com>
2401
2402 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2403 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2404 comments. Callers update.
2405 (dwarf_decode_lines): Likewise.
2406 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2407 comments. Skip the line table if 'lowpc' is greater than
2408 'address'. Don't check
2409 dwarf2_per_objfile->has_section_at_zero.
2410
2b4fd423
DE
24112014-09-18 Doug Evans <dje@google.com>
2412
2413 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2414 * python/py-symtab.c (stpy_get_producer): New function.
2415 (symtab_object_getset): Add "producer" attribute.
2416
5e43d467
UW
24172014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2418
2419 PR gdb/17384
2420 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2421 (do_captured_read_memory_integer): Remove.
2422 (safe_read_memory_integer): Use target_read_memory directly instead
2423 of catching errors in do_captured_read_memory_integer.
2424
04e79979
MR
24252014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2426
2427 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2428 not gdb/doc.
2429
76aeec5b
SDJ
24302014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2431
2432 * objc-lang.c (find_implementation_from_class): Remove dead code.
2433
2f693f9d
SDJ
24342014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2435
2436 PR cli/7233
2437 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2438 "fprintf_unfiltered (gdb_stdlog...)".
2439
bb9d5f81
PP
24402014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2441
2442 PR breakpoints/12526
2443 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2444 val_bitsize.
2445 * breakpoint.c (watch_command_1): Use these fields to retain
2446 bitfield information.
2447 (extract_bitfield_from_watchpoint_value): New function.
2448 (watchpoint_check): Use it.
2449 (update_watchpoint): Use it. Optimize the address and length of a
2450 HW watchpoint pointing to a bitfield.
2451 * value.h (unpack_value_bitfield): New prototype.
2452 * value.c (unpack_value_bitfield): Make extern.
2453
05db5edd
ST
24542014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2455
2456 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2457 x86-dregs.o.
2458 * gnu-nat.c (inf_threads): New function.
2459 * gnu-nat.h (inf_threads_ftype): New typedef.
2460 (inf_threads): New declaration.
2461 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2462 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2463 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2464 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2465 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2466 (i386_gnu_dr_get_control): New functions.
2467 (reg_addr): New structure.
2468 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2469 i386 debugging register hooks.
2470 * NEWS: Mention this.
2471
5a578da5
OJ
24722014-08-13 Omair Javaid <omair.javaid@linaro.org>
2473
2474 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2475 vector data transfer instructions.
2476 (arm_record_coproc_data_proc): Updated.
2477
f20f80dd
OJ
24782014-08-13 Omair Javaid <omair.javaid@linaro.org>
2479
2480 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2481 arm_record_exreg_ld_st_insn.
2482 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2483 load/store insns.
2484
851f26ae
OJ
24852014-08-13 Omair Javaid <omair.javaid@linaro.org>
2486
2487 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2488 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2489 processing instructions.
2490
1e1b6563
OJ
24912014-08-13 Omair Javaid <omair.javaid@linaro.org>
2492
2493 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2494 for advance SIMD struct ld/st insn.
2495 (thumb2_record_decode_insn_handler): Replace stub handler with
2496 thumb2_record_asimd_struct_ld_st.
2497
60cc5e93
OJ
24982014-08-13 Omair Javaid <omair.javaid@linaro.org>
2499
2500 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2501 for asimd, vfp and coprocessor insns.
2502 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2503 and coprocessor insns.
2504 (thumb2_record_coproc_insn): New function.
2505 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2506 handlers.
2507 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2508 opcode 110 insns.
2509
81219e53
DE
25102014-09-13 Doug Evans <xdje42@gmail.com>
2511
2512 * NEWS: Mention new "queue-signal" command.
2513 * infcmd.c (queue_signal_command): New function.
2514 (_initialize_infcmd): Add new queue-signal command.
2515
d36bf488
DE
25162014-09-13 Doug Evans <xdje42@gmail.com>
2517
2518 * linux-nat.c (wait_lwp): Add debugging printf.
2519 (linux_nat_wait_1): Ditto.
2520
f37f681c
PA
25212014-09-12 Pedro Alves <palves@redhat.com>
2522
2523 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2524 (create_and_insert_solib_event_breakpoint): New functions.
2525 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2526 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2527 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2528 (remove_dbx_link_breakpoint): Delete function.
2529 (insert_dbx_link_bpt_in_file): Use
2530 create_and_insert_solib_event_breakpoint instead of
2531 deprecated_insert_raw_breakpoint.
2532 (procfs_wait): Don't check whether we hit __dbx_link here.
2533 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2534 here.
2535 * solib-irix.c (base_breakpoint): Delete global.
2536 (disable_break): Delete function.
2537 (enable_break): Use create_solib_event_breakpoint
2538 instead of deprecated_insert_raw_breakpoint.
2539 (irix_solib_handle_event): New function.
2540 (irix_solib_create_inferior_hook): Don't run the target or disable
2541 the mapping-complete breakpoint here.
2542 (_initialize_irix_solib): Install irix_solib_handle_event as
2543 so_ops->handle_event hook.
2544
9d9bf2df
EBM
25452014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2546 Ulrich Weigand  <uweigand@de.ibm.com>
2547
2548 PR tdep/17379
2549 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2550 instead of read_memory_unsigned_integer.
2551
b006a80e
GB
25522014-09-12 Gary Benson <gbenson@redhat.com>
2553
2554 * nat/linux-waitpid.c: Include common-defs.h.
2555 [GDBSERVER]: Add FIXME comment.
2556 [!GDBSERVER]: Don't include defs.h or signal.h.
2557 (linux_debug) [!GDBSERVER]: Remove empty block.
2558
296b1496
GB
25592014-09-12 Gary Benson <gbenson@redhat.com>
2560
2561 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2562 Don't include defs.h or server.h.
2563
53f81362
GB
25642014-09-12 Gary Benson <gbenson@redhat.com>
2565
2566 * nat/linux-btrace.c: Include common-defs.h.
2567 Don't include defs.h, server.h or gdbthread.h.
2568 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2569
727605ca
GB
25702014-09-12 Gary Benson <gbenson@redhat.com>
2571
2572 * common/agent.c: Include common-defs.h.
2573 Don't include defs.h or server.h.
2574 * common/buffer.c: Likewise.
2575 * common/common-debug.c: Likewise.
2576 * common/common-utils.c: Likewise.
2577 * common/errors.c: Likewise.
2578 * common/filestuff.c: Likewise.
2579 * common/format.c: Likewise.
2580 * common/gdb_vecs.c: Likewise.
2581 * common/print-utils.c: Likewise.
2582 * common/ptid.c: Likewise.
2583 * common/rsp-low.c: Likewise.
2584 * common/signals.c: Likewise.
2585 * common/vec.c: Likewise.
2586 * common/xml-utils.c: Likewise.
2587 * nat/linux-osdata.c: Likewise.
2588 * nat/linux-procfs.c: Likewise.
2589 * nat/linux-ptrace.c: Likewise.
2590 * nat/mips-linux-watch.c: Likewise.
2591 * target/waitstatus.c: Likewise.
2592
361c8ade
GB
25932014-09-12 Tom Tromey <tromey@redhat.com>
2594 Gary Benson <gbenson@redhat.com>
2595
2596 * common/common-regcache.h: New file.
2597 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2598 * regcache.h: Include common-regcache.h.
2599 (regcache_read_pc): Don't declare.
2600 * regcache.c (get_thread_regcache_for_ptid): New function.
2601 * nat/linux-btrace.c: Don't include regcache.h.
2602 Include common-regcache.h.
2603 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2604
a01cbb49
TS
26052014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2606
2607 * regcache.h (struct regset): Declare.
2608
98880d46
PA
26092014-09-11 Pedro Alves <palves@redhat.com>
2610
2611 PR gdb/17347
2612 * main.c: Include "infrun.h".
2613 (catch_command_errors, catch_command_errors_const): Wait for the
2614 foreground command to complete.
2615 * top.c (maybe_wait_sync_command_done): New function, factored out
2616 from ...
2617 (maybe_wait_sync_command_done): ... here.
2618 * top.h (maybe_wait_sync_command_done): New declaration.
2619
bd9269f7
GB
26202014-09-11 Tom Tromey <tromey@redhat.com>
2621 Gary Benson <gbenson@redhat.com>
2622
2623 * common/symbol.h: New file.
2624 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2625 * minsyms.c (find_minimal_symbol_address): New function.
2626 * common/agent.c: Include common/symbol.h.
2627 [!GDBSERVER]: Don't include objfiles.h.
2628 (agent_look_up_symbols): Use find_minimal_symbol_address.
2629
f8c1d06b
GB
26302014-09-11 Gary Benson <gbenson@redhat.com>
2631
2632 * target/target.h (target_stop_ptid, target_continue_ptid):
2633 Declare.
2634 * target.c (target_stop_ptid, target_continue_ptid): New
2635 functions.
2636 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2637 (agent_run_command): Always use target_stop_ptid and
2638 target_continue_ptid.
2639
721ec300
GB
26402014-09-11 Tom Tromey <tromey@redhat.com>
2641 Gary Benson <gbenson@redhat.com>
2642
2643 * target/target.h: New file.
2644 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2645 * target.h: Include target/target.h.
2646 (target_read_memory, target_write_memory): Don't declare.
2647 * target.c (target_read_uint32): New function.
2648 * common/agent.c: Include target/target.h.
2649 [!GDBSERVER]: Don't include target.h.
2650 (helper_thread_id): Type changed to uint32_t.
2651 (agent_get_helper_thread_id): Use target_read_uint32.
2652 (agent_run_command): Always use target_read_memory and
2653 target_write_memory.
2654 (agent_capability): Type changed to uint32_t.
2655 (agent_capability_check): Use target_read_uint32.
2656
c5e92cca
GB
26572014-09-11 Gary Benson <gbenson@redhat.com>
2658
2659 * common/common-debug.h (show_debug_regs): Declare.
2660 * common/common-debug.c (show_debug_regs): Define.
2661 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2662 all uses with show_debug_regs. Replace all uses that considered
2663 debug_hw_points as a multi-value integer with straight boolean
2664 uses.
2665 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2666 with show_debug_regs.
2667 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2668 all uses with show_debug_regs.
2669 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2670 uses with show_debug_regs.
2671
eeef931a
UW
26722014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2673
2674 * findvar.c (address_from_register): Handle targets requiring
2675 a special conversion routine even for plain pointer types.
2676
8efa9855
UW
26772014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2678
2679 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2680 (store_register): Do not call exec_one_dummy_insn.
2681
eb479039
JB
26822014-09-10 Joel Brobecker <brobecker@adacore.com>
2683
2684 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2685 dereference it first. Use value_enclosing_type instead of
2686 value_type.
2687 (ada_array_length): Likewise.
2688
deede10c
JB
26892014-09-10 Joel Brobecker <brobecker@adacore.com>
2690
2691 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2692 Adjust function implementation and documentation accordingly.
2693 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2694 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2695 Update call to ada_value_ptr_subscript.
2696
7828a5f5
JB
26972014-09-10 Joel Brobecker <brobecker@adacore.com>
2698
2699 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2700 instead of VAL's type.
2701
35782f14
JB
27022014-09-10 Joel Brobecker <brobecker@adacore.com>
2703
2704 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2705
d342a0da
DE
27062014-09-09 Doug Evans <xdje42@gmail.com>
2707
2708 PR guile/17367
2709 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2710 last parameter to pkg-config, not first.
2711 * configure.ac: Pass --with-guile provided pkg-config path to
2712 GDB_GUILE_PROGRAM_NAMES.
2713 * configure: Regenerate.
2714
b4a3d263
GKB
27152014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2716
2717 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2718 Bertazi".
2719
6e466374
MR
27202014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2721
2722 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2723 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2724 the list of sections determining GDB_OSABI_IRIX.
2725
a1ada89a
JH
27262014-09-09 James Hogan <james.hogan@imgtec.com>
2727
2728 * MAINTAINERS (Write After Approval): Add "James Hogan".
2729
86db008d
JH
27302014-09-09 James Hogan <james.hogan@imgtec.com>
2731
2732 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2733
72fde3df
JB
27342014-09-09 Joel Brobecker <brobecker@adacore.com>
2735
2736 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2737
92d8d229
DE
27382014-09-08 Doug Evans <xdje42@gmail.com>
2739
2740 PR 17247
2741 * guile.c: #include <signal.h>.
2742 (_initialize_guile): Block SIGCHLD while initializing Guile.
2743
2744 Replaces the following, which is reverted.
2745
2746 2014-07-26 Doug Evans <xdje42@gmail.com>
2747
2748 PR 17185
2749 * configure.ac: Add check for header gc/gc.h.
2750 Add check for function setenv.
2751 * configure: Regenerate.
2752 * config.in: Regenerate.
2753 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2754
d81412aa
DE
27552014-09-08 Doug Evans <xdje42@gmail.com>
2756
2757 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2758 with named constant. Fix style of pointer comparison.
2759 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2760
a9f116cb
GKB
27612014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2762
2763 PR gdb/17035
2764 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2765 decide whether we display the command on "show user".
2766 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2767 printing command name.
2768 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2769 * cli/cli-decode.c (cli_user_command_p): Create helper function
2770 to verify whether cmd_list_element is a user-defined command.
2771
c75bd3a2
JK
27722014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2773
2774 PR python/17355
2775 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2776 Fix goto out of TRY_CATCH.
2777
faa42425 27782014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 2779 Tom Tromey <tromey@redhat.com>
faa42425
DE
2780
2781 PR 15276
2782 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2783 $_any_caller_matches.
2784 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2785 * python/lib/gdb/function/caller_is.py: New file.
2786
0d41ba00
DE
27872014-09-06 Doug Evans <xdje42@gmail.com>
2788
2789 * infcmd.c (program_info): Fix typo.
2790
474ca4f6
SDJ
27912014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2792
2793 PR gdb/17235
2794 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2795 'number'. New variable 'has_digit'. Rewrite code to deal with
2796 subexpressions on SDT probes.
2797
ebf13736
PA
27982014-09-04 Pedro Alves <palves@redhat.com>
2799
2800 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2801 the input is only one character long.
2802
eb0b0463
SDJ
28032014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2804
2805 PR fortran/17237
2806 * f-valprint.c (f_val_print): Specify the correct print option to
2807 use when printing integer values.
2808
5ee44bfa
GB
28092014-09-04 Gary Benson <gbenson@redhat.com>
2810
2811 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2812 Remove code to cope with LWPs wrapped as PIDs.
2813 Add assertions to ensure no wrapped LWPs are passed.
2814
4875ffdb
PA
28152014-09-04 Pedro Alves <palves@redhat.com>
2816
2817 * value.c (value_ranges_copy_adjusted): New function, factored out
2818 from ...
2819 (value_contents_copy_raw): ... here.
2820 (unpack_value_bits_as_long_1): Rename back to ...
2821 (unpack_bits_as_long): ... this. Remove 'original_value' and
2822 'result' parameters. Change return type to LONGEST.
2823 (unpack_value_bits_as_long): Delete.
2824 (unpack_value_field_as_long_1): Delete.
2825 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2826 (unpack_value_bitfield): New function.
2827 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2828 (value_fetch_lazy): Use unpack_value_bitfield.
2829 * value.h (unpack_value_bits_as_long): Delete declaration.
2830
5f3b99cf
SS
28312014-09-03 Sasha Smundak <asmundak@google.com>
2832
2833 * python/py-frame.c (frapy_read_register): New function.
2834
ac740bc7
JH
28352014-09-03 James Hogan <james.hogan@imgtec.com>
2836
2837 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2838 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2839
7d793aa9
SDJ
28402014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2841
2842 PR python/16699
2843 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2844 function.
2845 (add_cmd): Set "completer_handle_brkchars" to NULL.
2846 * cli/cli-decode.h (struct cmd_list_element)
2847 <completer_handle_brkchars>: New field.
2848 * command.h (completer_ftype_void): New typedef.
2849 (set_cmd_completer_handle_brkchars): New prototype.
2850 * completer.c (set_gdb_completion_word_break_characters): New
2851 function.
2852 (complete_line_internal): Call "completer_handle_brkchars"
2853 callback from command.
2854 * completer.h: Include "command.h".
2855 (set_gdb_completion_word_break_characters): New prototype.
2856 * python/py-cmd.c (cmdpy_completer_helper): New function.
2857 (cmdpy_completer_handle_brkchars): New function.
2858 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2859 (cmdpy_init): Set completer_handle_brkchars to
2860 cmdpy_completer_handle_brkchars.
2861
97ea6506
GB
28622014-09-03 Gary Benson <gbenson@redhat.com>
2863
2864 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2865 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2866 Loop conditions changed to equivalent form.
2867 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2868 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2869 ALL_DEBUG_ADDRESS_REGISTERS.
2870
d1437815
JB
28712014-09-03 Joel Brobecker <brobecker@adacore.com>
2872
2873 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2874 description fix.
2875
9b94fcf1
DE
28762014-09-02 Doug Evans <dje@google.com>
2877
2878 * typeprint.c (find_global_typedef): Fix comment.
2879
df7e5265
GB
28802014-09-02 Gary Benson <gbenson@redhat.com>
2881
2882 * i386-nat.h: Renamed as...
2883 * x86-nat.h: New file. All type, function and variable name
2884 prefixes changed from "i386_" to "x86_". All references updated.
2885 * i386-nat.c: Renamed as...
2886 * x86-nat.c: New file. All type, function and variable name
2887 prefixes changed from "i386_" to "x86_". All references updated.
2888 * common/i386-xstate.h: Renamed as...
2889 * common/x86-xstate.h: New file. All type, function and variable
2890 name prefixes changed from "i386_" to "x86_". All references
2891 updated.
2892 * nat/i386-cpuid.h: Renamed as...
2893 * nat/x86-cpuid.h: New file. All type, function and variable name
2894 prefixes changed from "i386_" to "x86_". All references updated.
2895 * nat/i386-gcc-cpuid.h: Renamed as...
2896 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2897 name prefixes changed from "i386_" to "x86_". All references
2898 updated.
2899 * nat/i386-dregs.h: Renamed as...
2900 * nat/x86-dregs.h: New file. All type, function and variable name
2901 prefixes changed from "i386_" to "x86_". All references updated.
2902 * nat/i386-dregs.c: Renamed as...
2903 * nat/x86-dregs.c: New file. All type, function and variable name
2904 prefixes changed from "i386_" to "x86_". All references updated.
2905
1c3569d4
MR
29062014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2907
2908 * varobj.c (_initialize_varobj): Move to the end of file.
2909
ff55e1b5
GB
29102014-08-29 Gary Benson <gbenson@redhat.com>
2911
2912 * common/common-exceptions.h: New file.
2913 * common/common-exceptions.c: Likewise.
2914 * Makefile.in (SFILES): Add common/common-exceptions.c.
2915 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2916 (COMMON_OBS): Add common-exceptions.o.
2917 (common-exceptions.o): New rule.
2918 * exceptions.h (common-exceptions.h): Include.
2919 (gdb_setjmp.h): Do not include.
2920 (return_reason): Moved to common-exceptions.h.
2921 (enum return_reason): Likewise.
2922 (RETURN_MASK): Likewise.
2923 (typedef return_mask): Likewise.
2924 (enum errors): Likewise.
2925 (struct gdb_exception): Likewise.
2926 (exceptions_state_mc_init): Likewise.
2927 (exceptions_state_mc_action_iter): Likewise.
2928 (exceptions_state_mc_action_iter_1): Likewise.
2929 (TRY_CATCH): Likewise.
2930 (throw_exception): Likewise.
2931 (throw_verror): Likewise.
2932 (throw_vquit): Likewise.
2933 (throw_error): Likewise.
2934 (throw_quit): Likewise.
2935 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2936 (enum catcher_action): Likewise.
2937 (struct catcher): Likewise.
2938 (current_catcher): Likewise.
2939 (catcher_list_size): Likewise.
2940 (exceptions_state_mc_init): Likewise.
2941 (catcher_pop): Likewise.
2942 (exceptions_state_mc): Likewise.
2943 (exceptions_state_mc_action_iter): Likewise.
2944 (exceptions_state_mc_action_iter_1): Likewise.
2945 (throw_exception): Likewise.
2946 (exception_messages): Likewise.
2947 (exception_messages_size): Likewise.
2948 (throw_it): Likewise.
2949 (throw_verror): Likewise.
2950 (throw_vquit): Likewise.
2951 (throw_error): Likewise.
2952 (throw_quit): Likewise.
2953 (prepare_to_throw_exception): New function.
2954
e9bcb658
GB
29552014-08-29 Gary Benson <gbenson@redhat.com>
2956
2957 * common/gdb_setjmp.h: New file.
2958 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2959 * configure.ac: Move sigsetjmp check...
2960 * common/common.m4: ...here.
2961 * configure: Regenerate.
2962 * cp-support.c (SIGJMP_BUF): Delete.
2963 (SIGSETJMP): Likewise.
2964 (SIGLONGJMP): Likewise.
2965 * exceptions.h (gdb_setjmp.h): Include.
2966 (setjmp.h): Do not include.
2967 (EXCEPTIONS_SIGJMP_BUF): Delete.
2968 (EXCEPTIONS_SIGSETJMP): Likewise.
2969 (EXCEPTIONS_SIGLONGJMP): Likewise.
2970 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2971 from gdb_setjmp.h.
2972 * exceptions.c: Likewise.
2973
e3180625
GB
29742014-08-29 Gary Benson <gbenson@redhat.com>
2975
2976 * cleanups.h: Moved to...
2977 * common/cleanups.h: New file.
2978 * cleanups.c: Moved to...
2979 * common/cleanups.c: New file. Include common-defs.h and
2980 cleanups.h. Do not include defs.h.
2981 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2982 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2983 (cleanups.o): New rule.
2984
e3d6ba5d
GB
29852014-08-29 Gary Benson <gbenson@redhat.com>
2986
2987 * common/errors.h (internal_warning): New declaration.
2988 (internal_vwarning): Likewise.
2989 * common/errors.c (internal_warning): New function.
2990 * utils.h (internal_warning): Don't declare.
2991 (internal_vwarning): Likewise.
2992 * utils.c (internal_warning): Removed.
2993
075c7033
GB
29942014-08-29 Gary Benson <gbenson@redhat.com>
2995
2996 * main.c (captured_main): Use warning during startup.
2997 Prefix startup warning messages with command name.
2998
91b35fd0
GB
29992014-08-29 Gary Benson <gbenson@redhat.com>
3000
3001 * main.c (captured_main): Handle usage errors with error.
3002
b1ec390e
GB
30032014-08-29 Gary Benson <gbenson@redhat.com>
3004
3005 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3006 exit pair with a call to error. Wrap the message with _().
3007
fd0ef3dd
GB
30082014-08-29 Gary Benson <gbenson@redhat.com>
3009
3010 * main.c (captured_main): Replace a fprintf/exit
3011 pair with a call to error. Wrap the message with _().
3012
e0e6bcab
GB
30132014-08-29 Gary Benson <gbenson@redhat.com>
3014
3015 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3016 pairs with calls to error. Wrap the message with _().
3017
0d2f5c07
GB
30182014-08-29 Gary Benson <gbenson@redhat.com>
3019
3020 * utils.c (vwarning): Protect calls to target_terminal_ours
3021 and wrap_here.
3022
5df43998
GB
30232014-08-29 Gary Benson <gbenson@redhat.com>
3024
3025 * exceptions.c (print_flush): Protect calls to
3026 target_terminal_ours and wrap_here.
3027
2437fd32
GB
30282014-08-29 Gary Benson <gbenson@redhat.com>
3029
3030 * utils.h (filtered_printing_initialized): New declaration.
3031 * utils.c (abort_with_message): New function.
3032 (internal_vproblem): Use abort_with_message for first level
3033 recursive internal problems, and if gdb_stderr is not set up.
3034 Protect calls to target_terminal_ours, begin_line and query.
3035
f1f58506
DE
30362014-08-28 Doug Evans <dje@google.com>
3037
3038 * symtab.c (in_prologue): Move definition to better spot.
3039 (skip_prologue_using_sal): Ditto.
3040
aab2f208
DE
30412014-08-28 Doug Evans <dje@google.com>
3042
3043 * symtab.c (find_function_start_sal): Move definition to better spot.
3044
6b65d1b6
YQ
30452014-08-28 Yao Qi <yao@codesourcery.com>
3046
3047 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3048 found_stack_adjust in forward scan. Remove condition check
3049 on found_stack_adjust which is always true. Indent the code.
3050
a1b34d15
YQ
30512014-08-28 Yao Qi <yao@codesourcery.com>
3052
3053 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3054 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3055 (dwarf_decode_lines): Remove argument
3056 want_line_info. Remove condition check on want_line_info.
3057 Callers update.
3058
d5962de5
DE
30592014-08-27 Doug Evans <dje@google.com>
3060
3061 * dwarf2read.c (dwarf_record_line): Fix typo.
3062
9b139002
SDJ
30632014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3064
3065 * target.h (struct target_ops::to_terminal_save_ours): Remove
3066 declaration.
3067 (target_terminal_save_ours): Remove macro.
3068 * target-delegates.c: Regenerate.
3069 * inf-child.c (inf_child_target): Don't set the nonexistent
3070 field to_terminal_save_ours.
3071 * inferior.h (child_terminal_save_ours): Remove declaration.
3072 * terminal.h (gdb_save_tty_state): New declaration.
3073 * inflow.c (child_terminal_save_ours): Rename to ...
3074 (gdb_save_tty_state): ... this.
3075 * tui/tui.c: Include terminal.h.
3076 (tui_enable): Use gdb_save_tty_state instead of
3077 target_terminal_save_ours.
3078 (tui_disable): Likewise.
3079
9debeba0
DE
30802014-08-25 Doug Evans <dje@google.com>
3081
3082 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3083 Pass NULL instead of 0 for context pointer.
3084
428fc5fc
YQ
30852014-08-25 Yao Qi <yao@codesourcery.com>
3086
3087 * dwarf2read.c: Fix grammatical error.
3088
cdc07690
YQ
30892014-08-24 Yao Qi <yao@codesourcery.com>
3090
3091 * dwarf2read.c (scan_partial_symbols): Update comments.
3092 Rename argument 'need_pc' with 'set_addrmap'.
3093 (add_partial_namespace): Rename argument 'need_pc' with
3094 'set_addrmap'.
3095 (add_partial_module): Likewise.
3096 (add_partial_subprogram): Likewise. Update comments.
3097 (dwarf2_name): Fix typo.
3098
a05a36a5
DE
30992014-08-22 Doug Evans <dje@google.com>
3100
3101 PR 17276
3102 * dwarf2read.c (dwarf_record_line_p): New function.
3103 (dwarf_decode_lines_1): Ignore subsequent line number entries
3104 for the same line if any entry had a non-zero discriminator.
3105
252a6764
DE
31062014-08-22 Doug Evans <dje@google.com>
3107
3108 * buildsym.h (record_line_ftype): New typedef.
3109 (record_line): Use it.
3110 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3111 (dwarf_decode_lines_1): Call them.
3112
510db052
YQ
31132014-08-22 Yao Qi <yao@codesourcery.com>
3114
3115 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3116 (ctf_end): Remove code.
3117
22fd09ae
JK
31182014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3119
3120 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3121 (linux_make_corefile_notes): call update_thread_list, protected against
3122 exceptions.
3123
656e8868
PA
31242014-08-21 Pedro Alves <palves@redhat.com>
3125
3126 * infcmd.c (attach_command): Remove comment.
3127
de589d04
WN
31282014-08-21 Bin Cheng <bin.cheng@arm.com>
3129
3130 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3131 unsigned LONGEST to ULONGEST.
3132
2a31c623
PA
31332014-08-20 Pedro Alves <palves@redhat.com>
3134
3135 * Makefile.in (check-read1): New rule.
3136
d36430db
JB
31372014-08-20 Joel Brobecker <brobecker@adacore.com>
3138
3139 * value.c (value_from_contents_and_address): Strip resolved_type's
3140 typedef layers before checking its TYPE_DATA_LOCATION.
3141
000339af
PA
31422014-08-20 Pedro Alves <palves@redhat.com>
3143
3144 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3145
5f52445b
YQ
31462014-08-20 Yao Qi <yao@codesourcery.com>
3147
3148 * amd64-tdep.c (amd64_classify): Add a blank line after the
3149 example. Move "*/" to a new line.
3150 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3151 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3152 * dwarf2read.c (psymtab_include_file_name): Likewise.
3153
9a0dc9e3
PA
31542014-08-19 Andrew Burgess <aburgess@broadcom.com>
3155 Pedro Alves <palves@redhat.com>
3156
3157 PR symtab/14604
3158 PR symtab/14605
3159 * ada-lang.c (coerce_unspec_val_to_type): Use
3160 value_contents_copy_raw.
3161 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3162 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3163 * cp-valprint.c (cp_print_value_fields): Let the common printing
3164 code handle optimized out values.
3165 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3166 * d-valprint.c (dynamic_array_type): Use
3167 value_bits_any_optimized_out.
3168 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3169 check_any_valid fields.
3170 (check_pieced_value_bits): Delete and inline ...
3171 (check_pieced_synthetic_pointer): ... here.
3172 (check_pieced_value_validity): Delete.
3173 (check_pieced_value_invalid): Delete.
3174 (pieced_value_funcs): Remove check_validity and check_any_valid
3175 fields.
3176 (read_pieced_value): Use mark_value_bits_optimized_out.
3177 (write_pieced_value): Switch to use
3178 mark_value_bytes_optimized_out.
3179 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3180 of assuming the whole value is optimized out.
3181 * findvar.c (read_frame_register_value): Remove special handling
3182 of optimized out registers.
3183 (value_from_register): Use mark_value_bytes_optimized_out.
3184 * frame-unwind.c (frame_unwind_got_optimized): Use
3185 mark_value_bytes_optimized_out.
3186 * jv-valprint.c (java_value_print): Adjust.
3187 (java_print_value_fields): Let the common printing code handle
3188 optimized out values.
3189 * mips-tdep.c (mips_print_register): Remove special handling of
3190 optimized out registers.
3191 * opencl-lang.c (lval_func_check_validity): Delete.
3192 (lval_func_check_any_valid): Delete.
3193 (opencl_value_funcs): Remove check_validity and check_any_valid
3194 fields.
3195 * p-valprint.c (pascal_object_print_value_fields): Let the common
3196 printing code handle optimized out values.
3197 * stack.c (read_frame_arg): Remove special handling of optimized
3198 out values. Fetch both VAL and ENTRYVAL before comparing
3199 contents. Adjust to value_available_contents_eq rename.
3200 * valprint.c (valprint_check_validity)
3201 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3202 (val_print_array_elements): Adjust.
3203 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3204 (value_bits_any_optimized_out): New function.
3205 (value_entirely_covered_by_range_vector): New function, factored
3206 out from value_entirely_unavailable.
3207 (value_entirely_unavailable): Reimplement.
3208 (value_entirely_optimized_out): New function.
3209 (insert_into_bit_range_vector): New function, factored out from
3210 mark_value_bits_unavailable.
3211 (mark_value_bits_unavailable): Reimplement.
3212 (struct ranges_and_idx): New struct.
3213 (find_first_range_overlap_and_match): New function, factored out
3214 from value_available_contents_bits_eq.
3215 (value_available_contents_bits_eq): Rename to ...
3216 (value_contents_bits_eq): ... this. Check both unavailable
3217 contents and optimized out contents.
3218 (value_available_contents_eq): Rename to ...
3219 (value_contents_eq): ... this.
3220 (allocate_value_lazy): Remove reference to the old optimized_out
3221 boolean.
3222 (allocate_optimized_out_value): Use
3223 mark_value_bytes_optimized_out.
3224 (require_not_optimized_out): Adjust to check whether the
3225 optimized_out vec is empty.
3226 (ranges_copy_adjusted): New function, factored out from
3227 value_contents_copy_raw.
3228 (value_contents_copy_raw): Also copy the optimized out ranges.
3229 Assert the destination ranges aren't optimized out.
3230 (value_contents_copy): Update comment, remove call to
3231 require_not_optimized_out.
3232 (value_contents_equal): Adjust to check whether the optimized_out
3233 vec is empty.
3234 (set_value_optimized_out, value_optimized_out_const): Delete.
3235 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3236 New functions.
3237 (value_entirely_optimized_out, value_bits_valid): Delete.
3238 (value_copy): Take a VEC copy of the 'optimized_out' field.
3239 (value_primitive_field): Remove special handling of optimized out.
3240 (value_fetch_lazy): Assert that lazy values have no unavailable
3241 regions. Use value_bits_any_optimized_out. Remove some special
3242 handling for optimized out values.
3243 * value.h: Add intro comment about <optimized out> and
3244 <unavailable>.
3245 (struct lval_funcs): Remove check_validity and check_any_valid
3246 fields.
3247 (set_value_optimized_out, value_optimized_out_const): Remove.
3248 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3249 New declarations.
3250 (value_bits_any_optimized_out): New declaration.
3251 (value_bits_valid): Delete declaration.
3252 (value_available_contents_eq): Rename to ...
3253 (value_contents_eq): ... this, and extend comments.
3254
6694c411
JK
32552014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3256
3257 Fix -fsanitize=address on unreadable inferior strings.
3258 * valprint.c (val_print_string): Fix access before BUFFER.
3259
89a1c21a
SM
32602014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3261
3262 * target.c (target_struct_size): Remove.
3263 (target_struct_allocsize): Remove.
3264 (DEFAULT_ALLOCSIZE): Remove.
3265 (target_ops_p): New typedef.
3266 (DEF_VEC_P (target_ops_p)): New vector type.
3267 (target_structs): Change type to VEC (target_ops_p).
3268 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3269 (find_default_run_target): Rewrite for loop following changes to
3270 target_structs.
3271
cb417230
JB
32722014-08-19 Joel Brobecker <brobecker@adacore.com>
3273
3274 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3275 Adjust code accordingly. Adjust function description comment.
3276
817e0957
YQ
32772014-08-19 Yao Qi <yao@codesourcery.com>
3278
3279 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3280 types.
3281
2974be62
AM
32822014-08-19 Alan Modra <amodra@gmail.com>
3283
3284 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3285 * config.in: Regenerate.
3286 * configure: Regenerate.
3287
34abf635
GB
32882014-08-19 Tom Tromey <tromey@redhat.com>
3289 Gary Benson <gbenson@redhat.com>
3290
3291 * common/common-debug.h: New file.
3292 * common/common-debug.c: Likewise.
3293 * debug.c: Likewise.
3294 * Makefile.in (SFILES): Add common/common-debug.c.
3295 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3296 (COMMON_OBS): Add common-debug.o and debug.o.
3297 (common-debug.o): New rule.
3298 * common/common-defs.h: Include common-debug.h.
3299 * common/agent.c (debug_agent_printf): New function.
3300 (DEBUG_AGENT): Redefine.
3301 * nat/i386-dregs.c (debug_printf): Undefine.
3302
f6e94d78
GB
33032014-08-19 Gary Benson <gbenson@redhat.com>
3304
3305 * common/common-defs.h: Include print-utils.h.
3306 * utils.h: Do not include print-utils.h.
3307
9239eeab
GB
33082014-08-19 Tom Tromey <tromey@redhat.com>
3309 Gary Benson <gbenson@redhat.com>
3310
3311 * common/common-types.h: New file.
3312 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3313 * common/common-defs.h: Include common-types.h.
3314 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3315 (ULONGEST): Remove.
3316
ef87c8bb
GB
33172014-08-19 Tom Tromey <tromey@redhat.com>
3318 Gary Benson <gbenson@redhat.com>
3319
3320 * common/errors.h: New file.
3321 * common/errors.c: Likewise.
3322 * Makefile.in (SFILES): Add common/errors.c.
3323 (HFILES_NO_SRCDIR): Add common/errors.h.
3324 (COMMON_OBS): Add errors.o.
3325 (errors.o): New rule.
3326 * common/common-defs.h: Include errors.h.
3327 * utils.h (perror_with_name, error, verror, warning, vwarning):
3328 Don't declare.
3329 * common/common-utils.h: (malloc_failure, internal_error):
3330 Likewise.
3331
196a707b
GB
33322014-08-19 Gary Benson <gbenson@redhat.com>
3333
3334 * utils.c (internal_vproblem): Always print the message.
3335
ded4fc8f
DE
33362014-08-18 Doug Evans <dje@google.com>
3337
3338 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3339
950c97d8
JB
33402014-08-18 Joel Brobecker <brobecker@adacore.com>
3341
3342 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3343 Return 0 if TYPE is dynamic.
3344 (print_range): Add handling of dynamic ranges.
3345
3cdcd0ce
JB
33462014-08-18 Keven Boell <keven.boell@intel.com>
3347 Joel Brobecker <brobecker@adacore.com>
3348
3349 * gdbtypes.h (struct main_type): Add field "data_location".
3350 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3351 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3352 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3353 a dynamic data location.
3354 (resolve_dynamic_type): Add DW_AT_data_location handling.
3355 (copy_recursive, copy_type): Copy the data_location information
3356 when present.
3357 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3358 * value.c (value_from_contents_and_address): Add
3359 DW_AT_data_location handling.
3360
08412b07
JB
33612014-08-18 Keven Boell <keven.boell@intel.com>
3362 Joel Brobecker <brobecker@adacore.com>
3363
3364 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3365 field "get_object_address".
3366 * dwarf2expr.c (execute_stack_op): Add handling for
3367 DW_OP_push_object_address.
3368 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3369 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3370 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3371 (dwarf_expr_get_obj_addr): New function.
3372 (dwarf_expr_ctx_funcs): Add get_object_address field.
3373 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3374 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3375 (dwarf2_evaluate_property): Add parameter "address". Use it.
3376 (needs_get_obj_addr): New function.
3377 (needs_frame_ctx_funcs): Add get_object_address field.
3378 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3379 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3380 (resolve_dynamic_array): Likewise.
3381
84754697
JB
33822014-08-18 Joel Brobecker <brobecker@adacore.com>
3383
3384 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3385 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3386 fixed value for records and unions for which some GNAT encodings
3387 are present.
3388
da5c522f
JB
33892014-08-18 Joel Brobecker <brobecker@adacore.com>
3390
3391 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3392 rewrite to avoid "else if" and "else" constructs. Should be
3393 a no-op in practice.
3394
0d72a7c3
JB
33952014-08-18 Joel Brobecker <brobecker@adacore.com>
3396
3397 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3398 of lexical block.
3399
e66d4446
SC
34002014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3401
3402 PR c++/17132
3403 * eval.c: Update all calls to find_overload_match.
3404 * valarith.c: Likewise.
3405 (value_user_defined_cpp_op, value_user_defined_op): New
3406 argument NOSIDE. Update all callers.
3407 * valops.c (find_overload_match): New argument NOSIDE.
3408 * value.h (find_overload_match): Update signature.
3409
940df408
SC
34102014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3411
3412 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3413 'items' methods instead of 'iteritems' method on dictionaries.
3414
699ca60a
DE
34152014-08-15 Doug Evans <dje@google.com>
3416
3417 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3418 closer to use.
3419
37780ee5
DE
34202014-08-15 Doug Evans <dje@google.com>
3421
3422 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3423
0ad93d4f
DE
34242014-08-15 Doug Evans <dje@google.com>
3425
3426 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3427
20d8c372
DE
34282014-08-15 Doug Evans <dje@google.com>
3429
3430 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3431 unused.
3432
cb039ba4
EZ
34332014-08-15 Eli Zaretskii <eliz@gnu.org>
3434
3435 * dcache.h: Include target.h, to avoid compile time warnings.
3436
eb7a547a
JB
34372014-08-15 Joel Brobecker <brobecker@adacore.com>
3438
3439 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3440 frame_info" partial declaration.
3441 * gdbarch.h: Regenerate.
3442
783cecc8
YQ
34432014-08-15 Yao Qi <yao@codesourcery.com>
3444
3445 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3446 Add parameter 'decode_for_pst_p'. Callers update.
3447
65c749e7
YQ
34482014-08-13 Yao Qi <yao@codesourcery.com>
3449
3450 PR build/17104
3451 * configure.ac: Use local variable 'pos'.
3452 * configure: Regenerated.
3453
d769e349
DE
34542014-08-11 Doug Evans <dje@google.com>
3455
3456 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3457 message, it is redundant with "Reading symbols from ..." message.
3458
24f1235e
DE
34592014-08-10 Doug Evans <xdje42@gmail.com>
3460
3461 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3462
dcd2e6ef
YQ
34632014-08-09 Yao Qi <yao@codesourcery.com>
3464
3465 PR remote/9053
3466 * remote.c (remote_xfer_partial): Remove dead code.
3467
070bdf0b
AA
34682014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3469
3470 * ia64-linux-tdep.c: Include "regset.h".
3471 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3472 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3473 (ia64_linux_supply_fpregset): New function.
3474 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3475 (ia64_linux_regset_from_core_section): New function.
3476 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3477 method.
3478
08f9f542
AA
34792014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3480
3481 * m68klinux-tdep.c: Include "regset.h".
3482 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3483 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3484 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3485 (m68k_linux_regset_from_core_section): New function.
3486 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3487 method.
3488
8f1cee41
AA
34892014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3490
3491 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3492 function. Move logic to...
3493 (tilegx_linux_regmap): ... this new register map.
3494 (tilegx_linux_regset): Refer to register map, replace supply
3495 method by regcache_supply_regset, and add collect method.
3496 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3497 TILEGX_FIRST_EASY_REGNUM.
3498
c5741217
AA
34992014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3500
3501 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3502 that calls regcache_supply_regset and handles the EPC register
3503 separately. Move main logic to...
3504 (score7_linux_gregmap): ... this new register map.
3505 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3506 (score7_linux_gregset): Refer to register map. Add collect method.
3507 (score7_linux_regset_from_core_section): Replace
3508 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3509 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3510 (struct regset): Delete unused forward declaraction.
3511 (struct pt_regs): Delete structure definition.
3512 (elf_gregset_t): Delete typedef.
3513
81580573
AA
35142014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3515
3516 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3517 (nios2_core_regset): Add collect method.
3518
ba199d7d
AA
35192014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3520
3521 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3522 platform-independent and don't write to read-only input buffer.
3523 (m32r_linux_collect_gregset): New function.
3524 (m32r_linux_gregset): Add collect method.
3525
0006a9da
AA
35262014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3527
3528 * hppa-linux-tdep.c (greg_map): Rename to...
3529 (hppa_linux_gregmap): ... this. Also convert to
3530 regcache_map_entry format.
3531 (hppa_linux_supply_regset): Delete function.
3532 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3533 (hppa_linux_fpregmap): ... this new register map.
3534 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3535 register map, replace supply method by regcache_supply_regset, and
3536 add collect method regcache_collect_regset.
3537
901e1b23
AA
35382014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3539
3540 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3541 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3542 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3543 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3544 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3545 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3546 (frv_linux_supply_gregset): Replace main logic by call to
3547 regcache_supply_regset, but keep clearing gr32-gr63.
3548 (frv_linux_supply_fpregset): Delete function.
3549 (frv_linux_gregset): Refer to appropriate register map and add
3550 regcache_collect_regset as the collect method.
3551 (frv_linux_fpregset): Likewise. Also exchange the supply method
3552 by regcache_supply_regset.
3553
1d6e7555
AA
35542014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3555
3556 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3557 by call to alpha_supply_int_regs.
3558 (alpha_linux_collect_gregset): New function.
3559 (alpha_linux_supply_fpregset): Replace logic by call to
3560 alpha_supply_fp_regs.
3561 (alpha_linux_collect_fpregset): New function.
3562 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3563
d4d793bf
AA
35642014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3565
3566 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3567 by call to regcache_collect_regset.
3568 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3569 instead of aarch64_linux_supply_gregset/_fpregset.
3570 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3571 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3572 header file instead.
3573 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3574 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3575 functions. Move logic to ...
3576 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3577 register maps.
3578 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3579 refer to new register maps, replace *_regset_from_core by
3580 regcache_supply_regset, and also use regcache_collect_regset.
3581 * aarch64-linux-tdep.h: Include "regset.h".
3582 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3583 Delete prototypes.
3584 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3585 macros, moved from C source file.
3586 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3587 variable declarations.
3588
99b7da5d
AA
35892014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3590
3591 * s390-linux-nat.c: Include "regset.h".
3592 (regmap_gregset): Delete macro.
3593 (s390_64_regmap_gregset): New register map for
3594 regcache_supply/_collect_regset.
3595 (s390_64_gregset): New regset.
3596 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3597 (regmap_fpregset): Delete macro.
3598 (s390_native_supply, s390_native_collect): Delete functions.
3599 (supply_gregset, fill_gregset): Replace s390-specific regmap
3600 handling by a call to regcache_supply/_collect_regset.
3601 (supply_fpregset, fill_fpregset): Call regcache_supply/
3602 _collect_regset instead of s390_native_supply/_collect.
3603 (fetch_regset, store_regset): Likewise. Also change the last
3604 parameter to a regset instead of a regmap.
3605 (s390_linux_fetch_inferior_registers)
3606 (390_linux_store_inferior_registers): Adjust last parameter in
3607 calls to fetch_regset and store_regset.
3608 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3609 (s390_gregmap): ... this. Also make static const and convert to
3610 regcache_map_entry format.
3611 (s390x_regmap_gregset): Delete.
3612 (s390_regmap_fpregset): Rename to...
3613 (s390_fpregmap): ... this. Make static const and convert to
3614 regcache_map_entry format.
3615 (s390_regmap_upper, s390_regmap_last_break)
3616 (s390x_regmap_last_break, s390_regmap_system_call)
3617 (s390_regmap_tdb): Likewise.
3618 (s390_supply_regset, s390_collect_regset): Remove functions.
3619 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3620 s390_supply_regset.
3621 (s390_gregset, s390_fpregset, s390_upper_regset)
3622 (s390_last_break_regset, s390x_last_break_regset)
3623 (s390_system_call_regset, s390_tdb_regset): Make global and
3624 replace s390_supply/_collect_regset by regcache_supply/
3625 _collect_regset.
3626 (s390x_gregset): Delete.
3627 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3628 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3629 (s390_regmap_fpregset, s390_regmap_last_break)
3630 (s390x_regmap_last_break, s390_regmap_system_call)
3631 (s390_regmap_tdb): Delete global variable declarations.
3632 (s390_gregset, s390_fpregset, s390_last_break_regset)
3633 (s390x_last_break_regset, s390_system_call_regset)
3634 (s390_tdb_regset): New global variable declarations.
3635
0b309272
AA
36362014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3637
3638 * regcache.c: Include "regset.h".
3639 (regcache_transfer_regset): New local function.
3640 (regcache_supply_regset, regcache_collect_regset): New functions.
3641 * regcache.h (struct regcache_map_entry): New structure.
3642 (REGCACHE_MAP_SKIP): New enum value.
3643 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3644
7fefa8d7
AA
36452014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3646
3647 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3648 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3649 (ppc_linux_collect_gregset ): Likewise.
3650 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3651 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3652 (ppc_collect_vrregset): Likewise.
3653 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3654 Likewise.
3655
96c4f946
YQ
36562014-08-07 Yao Qi <yao@codesourcery.com>
3657
3658 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3659 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3660 * remote.c (remote_read_bytes): Likewise.
3661
fffbe6a8
YQ
36622014-08-07 Yao Qi <yao@codesourcery.com>
3663
3664 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3665
5ee8a82c
YQ
36662014-08-07 Yao Qi <yao@codesourcery.com>
3667
3668 PR remote/17230
3669 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3670 TARGET_XFER_OK instead of 0.
3671
bb974a24
GB
36722014-08-07 Gary Benson <gbenson@redhat.com>
3673
3674 * common/common-defs.h: Include errno.h.
3675 * defs.h: Do not include errno.h.
3676 * ada-typeprint.c: Likewise.
3677 * c-typeprint.c: Likewise.
3678 * core-regset.c: Likewise.
3679 * corefile.c: Likewise.
3680 * corelow.c: Likewise.
3681 * event-loop.c: Likewise.
3682 * f-typeprint.c: Likewise.
3683 * gnu-nat.c: Likewise.
3684 * go32-nat.c: Likewise.
3685 * i386gnu-nat.c: Likewise.
3686 * m2-typeprint.c: Likewise.
3687 * nat/linux-btrace.c: Likewise.
3688 * p-typeprint.c: Likewise.
3689 * procfs.c: Likewise.
3690 * remote-sim.c: Likewise.
3691 * rs6000-nat.c: Likewise.
3692 * target.c: Likewise.
3693 * typeprint.c: Likewise.
3694 * ui-file.c: Likewise.
3695 * valops.c: Likewise.
3696 * valprint.c: Likewise.
3697
6d3d12eb
GB
36982014-08-07 Gary Benson <gbenson@redhat.com>
3699
3700 * common/common-defs.h: Include string.h.
3701 * aarch64-tdep.c: Do not include string.h.
3702 * ada-exp.y: Likewise.
3703 * ada-lang.c: Likewise.
3704 * ada-lex.l: Likewise.
3705 * ada-typeprint.c: Likewise.
3706 * ada-valprint.c: Likewise.
3707 * aix-thread.c: Likewise.
3708 * alpha-linux-tdep.c: Likewise.
3709 * alpha-mdebug-tdep.c: Likewise.
3710 * alpha-nat.c: Likewise.
3711 * alpha-osf1-tdep.c: Likewise.
3712 * alpha-tdep.c: Likewise.
3713 * alphanbsd-tdep.c: Likewise.
3714 * amd64-dicos-tdep.c: Likewise.
3715 * amd64-linux-tdep.c: Likewise.
3716 * amd64-nat.c: Likewise.
3717 * amd64-sol2-tdep.c: Likewise.
3718 * amd64fbsd-tdep.c: Likewise.
3719 * amd64obsd-tdep.c: Likewise.
3720 * arch-utils.c: Likewise.
3721 * arm-linux-nat.c: Likewise.
3722 * arm-linux-tdep.c: Likewise.
3723 * arm-tdep.c: Likewise.
3724 * arm-wince-tdep.c: Likewise.
3725 * armbsd-tdep.c: Likewise.
3726 * armnbsd-nat.c: Likewise.
3727 * armnbsd-tdep.c: Likewise.
3728 * armobsd-tdep.c: Likewise.
3729 * avr-tdep.c: Likewise.
3730 * ax-gdb.c: Likewise.
3731 * ax-general.c: Likewise.
3732 * bcache.c: Likewise.
3733 * bfin-tdep.c: Likewise.
3734 * breakpoint.c: Likewise.
3735 * build-id.c: Likewise.
3736 * buildsym.c: Likewise.
3737 * c-exp.y: Likewise.
3738 * c-lang.c: Likewise.
3739 * c-typeprint.c: Likewise.
3740 * c-valprint.c: Likewise.
3741 * charset.c: Likewise.
3742 * cli-out.c: Likewise.
3743 * cli/cli-cmds.c: Likewise.
3744 * cli/cli-decode.c: Likewise.
3745 * cli/cli-dump.c: Likewise.
3746 * cli/cli-interp.c: Likewise.
3747 * cli/cli-logging.c: Likewise.
3748 * cli/cli-script.c: Likewise.
3749 * cli/cli-setshow.c: Likewise.
3750 * cli/cli-utils.c: Likewise.
3751 * coffread.c: Likewise.
3752 * common/agent.c: Likewise.
3753 * common/buffer.c: Likewise.
3754 * common/buffer.h: Likewise.
3755 * common/common-utils.c: Likewise.
3756 * common/filestuff.c: Likewise.
3757 * common/filestuff.c: Likewise.
3758 * common/format.c: Likewise.
3759 * common/print-utils.c: Likewise.
3760 * common/rsp-low.c: Likewise.
3761 * common/signals.c: Likewise.
3762 * common/vec.h: Likewise.
3763 * common/xml-utils.c: Likewise.
3764 * core-regset.c: Likewise.
3765 * corefile.c: Likewise.
3766 * corelow.c: Likewise.
3767 * cp-abi.c: Likewise.
3768 * cp-name-parser.y: Likewise.
3769 * cp-support.c: Likewise.
3770 * cp-valprint.c: Likewise.
3771 * cris-tdep.c: Likewise.
3772 * d-exp.y: Likewise.
3773 * darwin-nat.c: Likewise.
3774 * dbxread.c: Likewise.
3775 * dcache.c: Likewise.
3776 * demangle.c: Likewise.
3777 * dicos-tdep.c: Likewise.
3778 * disasm.c: Likewise.
3779 * doublest.c: Likewise.
3780 * dsrec.c: Likewise.
3781 * dummy-frame.c: Likewise.
3782 * dwarf2-frame.c: Likewise.
3783 * dwarf2loc.c: Likewise.
3784 * dwarf2read.c: Likewise.
3785 * elfread.c: Likewise.
3786 * environ.c: Likewise.
3787 * eval.c: Likewise.
3788 * event-loop.c: Likewise.
3789 * exceptions.c: Likewise.
3790 * exec.c: Likewise.
3791 * expprint.c: Likewise.
3792 * f-exp.y: Likewise.
3793 * f-lang.c: Likewise.
3794 * f-typeprint.c: Likewise.
3795 * f-valprint.c: Likewise.
3796 * fbsd-nat.c: Likewise.
3797 * findcmd.c: Likewise.
3798 * findvar.c: Likewise.
3799 * fork-child.c: Likewise.
3800 * frame.c: Likewise.
3801 * frv-linux-tdep.c: Likewise.
3802 * frv-tdep.c: Likewise.
3803 * gdb.c: Likewise.
3804 * gdb_bfd.c: Likewise.
3805 * gdbarch.c: Likewise.
3806 * gdbarch.sh: Likewise.
3807 * gdbtypes.c: Likewise.
3808 * gnu-nat.c: Likewise.
3809 * gnu-v2-abi.c: Likewise.
3810 * gnu-v3-abi.c: Likewise.
3811 * go-exp.y: Likewise.
3812 * go-lang.c: Likewise.
3813 * go32-nat.c: Likewise.
3814 * guile/guile.c: Likewise.
3815 * guile/scm-auto-load.c: Likewise.
3816 * hppa-hpux-tdep.c: Likewise.
3817 * hppa-linux-nat.c: Likewise.
3818 * hppanbsd-tdep.c: Likewise.
3819 * hppaobsd-tdep.c: Likewise.
3820 * i386-cygwin-tdep.c: Likewise.
3821 * i386-dicos-tdep.c: Likewise.
3822 * i386-linux-tdep.c: Likewise.
3823 * i386-nto-tdep.c: Likewise.
3824 * i386-sol2-tdep.c: Likewise.
3825 * i386-tdep.c: Likewise.
3826 * i386bsd-tdep.c: Likewise.
3827 * i386gnu-nat.c: Likewise.
3828 * i386nbsd-tdep.c: Likewise.
3829 * i386obsd-tdep.c: Likewise.
3830 * i387-tdep.c: Likewise.
3831 * ia64-libunwind-tdep.c: Likewise.
3832 * ia64-linux-nat.c: Likewise.
3833 * inf-child.c: Likewise.
3834 * inf-ptrace.c: Likewise.
3835 * inf-ttrace.c: Likewise.
3836 * infcall.c: Likewise.
3837 * infcmd.c: Likewise.
3838 * inflow.c: Likewise.
3839 * infrun.c: Likewise.
3840 * interps.c: Likewise.
3841 * iq2000-tdep.c: Likewise.
3842 * irix5-nat.c: Likewise.
3843 * jv-exp.y: Likewise.
3844 * jv-lang.c: Likewise.
3845 * jv-typeprint.c: Likewise.
3846 * jv-valprint.c: Likewise.
3847 * language.c: Likewise.
3848 * linux-fork.c: Likewise.
3849 * linux-nat.c: Likewise.
3850 * lm32-tdep.c: Likewise.
3851 * m2-exp.y: Likewise.
3852 * m2-typeprint.c: Likewise.
3853 * m32c-tdep.c: Likewise.
3854 * m32r-linux-nat.c: Likewise.
3855 * m32r-linux-tdep.c: Likewise.
3856 * m32r-rom.c: Likewise.
3857 * m32r-tdep.c: Likewise.
3858 * m68hc11-tdep.c: Likewise.
3859 * m68k-tdep.c: Likewise.
3860 * m68kbsd-tdep.c: Likewise.
3861 * m68klinux-nat.c: Likewise.
3862 * m68klinux-tdep.c: Likewise.
3863 * m88k-tdep.c: Likewise.
3864 * machoread.c: Likewise.
3865 * macrocmd.c: Likewise.
3866 * main.c: Likewise.
3867 * mdebugread.c: Likewise.
3868 * mem-break.c: Likewise.
3869 * memattr.c: Likewise.
3870 * memory-map.c: Likewise.
3871 * mep-tdep.c: Likewise.
3872 * mi/mi-cmd-break.c: Likewise.
3873 * mi/mi-cmd-disas.c: Likewise.
3874 * mi/mi-cmd-env.c: Likewise.
3875 * mi/mi-cmd-stack.c: Likewise.
3876 * mi/mi-cmd-var.c: Likewise.
3877 * mi/mi-cmds.c: Likewise.
3878 * mi/mi-console.c: Likewise.
3879 * mi/mi-getopt.c: Likewise.
3880 * mi/mi-interp.c: Likewise.
3881 * mi/mi-main.c: Likewise.
3882 * mi/mi-parse.c: Likewise.
3883 * microblaze-rom.c: Likewise.
3884 * microblaze-tdep.c: Likewise.
3885 * mingw-hdep.c: Likewise.
3886 * minidebug.c: Likewise.
3887 * minsyms.c: Likewise.
3888 * mips-irix-tdep.c: Likewise.
3889 * mips-linux-tdep.c: Likewise.
3890 * mips-tdep.c: Likewise.
3891 * mips64obsd-tdep.c: Likewise.
3892 * mipsnbsd-tdep.c: Likewise.
3893 * mipsread.c: Likewise.
3894 * mn10300-linux-tdep.c: Likewise.
3895 * mn10300-tdep.c: Likewise.
3896 * monitor.c: Likewise.
3897 * moxie-tdep.c: Likewise.
3898 * mt-tdep.c: Likewise.
3899 * nat/linux-btrace.c: Likewise.
3900 * nat/linux-osdata.c: Likewise.
3901 * nat/linux-procfs.c: Likewise.
3902 * nat/linux-ptrace.c: Likewise.
3903 * nat/linux-waitpid.c: Likewise.
3904 * nbsd-tdep.c: Likewise.
3905 * nios2-linux-tdep.c: Likewise.
3906 * nto-procfs.c: Likewise.
3907 * nto-tdep.c: Likewise.
3908 * objc-lang.c: Likewise.
3909 * objfiles.c: Likewise.
3910 * opencl-lang.c: Likewise.
3911 * osabi.c: Likewise.
3912 * osdata.c: Likewise.
3913 * p-exp.y: Likewise.
3914 * p-lang.c: Likewise.
3915 * p-typeprint.c: Likewise.
3916 * parse.c: Likewise.
3917 * posix-hdep.c: Likewise.
3918 * ppc-linux-nat.c: Likewise.
3919 * ppc-sysv-tdep.c: Likewise.
3920 * ppcfbsd-tdep.c: Likewise.
3921 * ppcnbsd-tdep.c: Likewise.
3922 * ppcobsd-tdep.c: Likewise.
3923 * printcmd.c: Likewise.
3924 * procfs.c: Likewise.
3925 * prologue-value.c: Likewise.
3926 * python/py-auto-load.c: Likewise.
3927 * python/py-gdb-readline.c: Likewise.
3928 * ravenscar-thread.c: Likewise.
3929 * regcache.c: Likewise.
3930 * registry.c: Likewise.
3931 * remote-fileio.c: Likewise.
3932 * remote-m32r-sdi.c: Likewise.
3933 * remote-mips.c: Likewise.
3934 * remote-notif.c: Likewise.
3935 * remote-sim.c: Likewise.
3936 * remote.c: Likewise.
3937 * reverse.c: Likewise.
3938 * rs6000-aix-tdep.c: Likewise.
3939 * ser-base.c: Likewise.
3940 * ser-go32.c: Likewise.
3941 * ser-mingw.c: Likewise.
3942 * ser-pipe.c: Likewise.
3943 * ser-tcp.c: Likewise.
3944 * ser-unix.c: Likewise.
3945 * serial.c: Likewise.
3946 * sh-tdep.c: Likewise.
3947 * sh64-tdep.c: Likewise.
3948 * shnbsd-tdep.c: Likewise.
3949 * skip.c: Likewise.
3950 * sol-thread.c: Likewise.
3951 * solib-dsbt.c: Likewise.
3952 * solib-frv.c: Likewise.
3953 * solib-osf.c: Likewise.
3954 * solib-som.c: Likewise.
3955 * solib-spu.c: Likewise.
3956 * solib-target.c: Likewise.
3957 * solib.c: Likewise.
3958 * somread.c: Likewise.
3959 * source.c: Likewise.
3960 * sparc-nat.c: Likewise.
3961 * sparc-sol2-tdep.c: Likewise.
3962 * sparc-tdep.c: Likewise.
3963 * sparc64-tdep.c: Likewise.
3964 * sparc64fbsd-tdep.c: Likewise.
3965 * sparc64nbsd-tdep.c: Likewise.
3966 * sparcnbsd-tdep.c: Likewise.
3967 * spu-linux-nat.c: Likewise.
3968 * spu-multiarch.c: Likewise.
3969 * spu-tdep.c: Likewise.
3970 * stabsread.c: Likewise.
3971 * stack.c: Likewise.
3972 * std-regs.c: Likewise.
3973 * symfile.c: Likewise.
3974 * symmisc.c: Likewise.
3975 * symtab.c: Likewise.
3976 * target.c: Likewise.
3977 * thread.c: Likewise.
3978 * tilegx-linux-nat.c: Likewise.
3979 * tilegx-tdep.c: Likewise.
3980 * top.c: Likewise.
3981 * tracepoint.c: Likewise.
3982 * tui/tui-command.c: Likewise.
3983 * tui/tui-data.c: Likewise.
3984 * tui/tui-disasm.c: Likewise.
3985 * tui/tui-file.c: Likewise.
3986 * tui/tui-layout.c: Likewise.
3987 * tui/tui-out.c: Likewise.
3988 * tui/tui-regs.c: Likewise.
3989 * tui/tui-source.c: Likewise.
3990 * tui/tui-stack.c: Likewise.
3991 * tui/tui-win.c: Likewise.
3992 * tui/tui-windata.c: Likewise.
3993 * tui/tui-winsource.c: Likewise.
3994 * typeprint.c: Likewise.
3995 * ui-file.c: Likewise.
3996 * ui-out.c: Likewise.
3997 * user-regs.c: Likewise.
3998 * utils.c: Likewise.
3999 * v850-tdep.c: Likewise.
4000 * valarith.c: Likewise.
4001 * valops.c: Likewise.
4002 * valprint.c: Likewise.
4003 * value.c: Likewise.
4004 * varobj.c: Likewise.
4005 * vax-tdep.c: Likewise.
4006 * vaxnbsd-tdep.c: Likewise.
4007 * vaxobsd-tdep.c: Likewise.
4008 * windows-nat.c: Likewise.
4009 * xcoffread.c: Likewise.
4010 * xml-support.c: Likewise.
4011 * xstormy16-tdep.c: Likewise.
4012 * xtensa-linux-nat.c: Likewise.
4013
dccbb609
GB
40142014-08-07 Gary Benson <gbenson@redhat.com>
4015
4016 * common/common-defs.h: Include gdb_assert.h.
4017 * aarch64-tdep.c: Do not include gdb_assert.h.
4018 * addrmap.c: Likewise.
4019 * aix-thread.c: Likewise.
4020 * alpha-linux-tdep.c: Likewise.
4021 * alpha-mdebug-tdep.c: Likewise.
4022 * alphanbsd-tdep.c: Likewise.
4023 * amd64-nat.c: Likewise.
4024 * amd64-tdep.c: Likewise.
4025 * amd64bsd-nat.c: Likewise.
4026 * amd64fbsd-nat.c: Likewise.
4027 * amd64fbsd-tdep.c: Likewise.
4028 * amd64nbsd-nat.c: Likewise.
4029 * amd64nbsd-tdep.c: Likewise.
4030 * amd64obsd-nat.c: Likewise.
4031 * amd64obsd-tdep.c: Likewise.
4032 * arch-utils.c: Likewise.
4033 * arm-tdep.c: Likewise.
4034 * armbsd-tdep.c: Likewise.
4035 * auxv.c: Likewise.
4036 * bcache.c: Likewise.
4037 * bfin-tdep.c: Likewise.
4038 * blockframe.c: Likewise.
4039 * breakpoint.c: Likewise.
4040 * bsd-kvm.c: Likewise.
4041 * bsd-uthread.c: Likewise.
4042 * buildsym.c: Likewise.
4043 * c-exp.y: Likewise.
4044 * c-lang.c: Likewise.
4045 * charset.c: Likewise.
4046 * cleanups.c: Likewise.
4047 * cli-out.c: Likewise.
4048 * cli/cli-decode.c: Likewise.
4049 * cli/cli-dump.c: Likewise.
4050 * cli/cli-logging.c: Likewise.
4051 * cli/cli-script.c: Likewise.
4052 * cli/cli-utils.c: Likewise.
4053 * coffread.c: Likewise.
4054 * common/common-utils.c: Likewise.
4055 * common/queue.h: Likewise.
4056 * common/signals.c: Likewise.
4057 * common/vec.h: Likewise.
4058 * complaints.c: Likewise.
4059 * completer.c: Likewise.
4060 * corelow.c: Likewise.
4061 * cp-abi.c: Likewise.
4062 * cp-name-parser.y: Likewise.
4063 * cp-namespace.c: Likewise.
4064 * cp-support.c: Likewise.
4065 * cris-tdep.c: Likewise.
4066 * dbxread.c: Likewise.
4067 * dictionary.c: Likewise.
4068 * doublest.c: Likewise.
4069 * dsrec.c: Likewise.
4070 * dummy-frame.c: Likewise.
4071 * dwarf2-frame-tailcall.c: Likewise.
4072 * dwarf2-frame.c: Likewise.
4073 * dwarf2expr.c: Likewise.
4074 * dwarf2loc.c: Likewise.
4075 * dwarf2read.c: Likewise.
4076 * eval.c: Likewise.
4077 * event-loop.c: Likewise.
4078 * exceptions.c: Likewise.
4079 * expprint.c: Likewise.
4080 * f-valprint.c: Likewise.
4081 * fbsd-nat.c: Likewise.
4082 * findvar.c: Likewise.
4083 * frame-unwind.c: Likewise.
4084 * frame.c: Likewise.
4085 * frv-tdep.c: Likewise.
4086 * gcore.c: Likewise.
4087 * gdb-dlfcn.c: Likewise.
4088 * gdb_bfd.c: Likewise.
4089 * gdbarch.c: Likewise.
4090 * gdbarch.sh: Likewise.
4091 * gdbtypes.c: Likewise.
4092 * gnu-nat.c: Likewise.
4093 * gnu-v3-abi.c: Likewise.
4094 * go-lang.c: Likewise.
4095 * guile/scm-exception.c: Likewise.
4096 * guile/scm-gsmob.c: Likewise.
4097 * guile/scm-lazy-string.c: Likewise.
4098 * guile/scm-math.c: Likewise.
4099 * guile/scm-pretty-print.c: Likewise.
4100 * guile/scm-safe-call.c: Likewise.
4101 * guile/scm-utils.c: Likewise.
4102 * guile/scm-value.c: Likewise.
4103 * h8300-tdep.c: Likewise.
4104 * hppa-hpux-nat.c: Likewise.
4105 * hppa-tdep.c: Likewise.
4106 * hppanbsd-tdep.c: Likewise.
4107 * hppaobsd-tdep.c: Likewise.
4108 * i386-darwin-nat.c: Likewise.
4109 * i386-darwin-tdep.c: Likewise.
4110 * i386-nto-tdep.c: Likewise.
4111 * i386-tdep.c: Likewise.
4112 * i386bsd-nat.c: Likewise.
4113 * i386fbsd-tdep.c: Likewise.
4114 * i386gnu-nat.c: Likewise.
4115 * i386nbsd-tdep.c: Likewise.
4116 * i386obsd-tdep.c: Likewise.
4117 * i387-tdep.c: Likewise.
4118 * ia64-libunwind-tdep.c: Likewise.
4119 * ia64-tdep.c: Likewise.
4120 * inf-ptrace.c: Likewise.
4121 * inf-ttrace.c: Likewise.
4122 * infcall.c: Likewise.
4123 * infcmd.c: Likewise.
4124 * infrun.c: Likewise.
4125 * inline-frame.c: Likewise.
4126 * interps.c: Likewise.
4127 * jv-lang.c: Likewise.
4128 * jv-typeprint.c: Likewise.
4129 * linux-fork.c: Likewise.
4130 * linux-nat.c: Likewise.
4131 * linux-thread-db.c: Likewise.
4132 * m32c-tdep.c: Likewise.
4133 * m32r-linux-nat.c: Likewise.
4134 * m32r-tdep.c: Likewise.
4135 * m68k-tdep.c: Likewise.
4136 * m68kbsd-nat.c: Likewise.
4137 * m68kbsd-tdep.c: Likewise.
4138 * m88k-tdep.c: Likewise.
4139 * machoread.c: Likewise.
4140 * macroexp.c: Likewise.
4141 * macrotab.c: Likewise.
4142 * maint.c: Likewise.
4143 * mdebugread.c: Likewise.
4144 * memory-map.c: Likewise.
4145 * mep-tdep.c: Likewise.
4146 * mi/mi-common.c: Likewise.
4147 * microblaze-tdep.c: Likewise.
4148 * mingw-hdep.c: Likewise.
4149 * mips-linux-nat.c: Likewise.
4150 * mips-linux-tdep.c: Likewise.
4151 * mips-tdep.c: Likewise.
4152 * mips64obsd-tdep.c: Likewise.
4153 * mipsnbsd-tdep.c: Likewise.
4154 * mn10300-linux-tdep.c: Likewise.
4155 * mn10300-tdep.c: Likewise.
4156 * moxie-tdep.c: Likewise.
4157 * mt-tdep.c: Likewise.
4158 * nat/linux-btrace.c: Likewise.
4159 * nat/linux-osdata.c: Likewise.
4160 * nat/linux-ptrace.c: Likewise.
4161 * nat/mips-linux-watch.c: Likewise.
4162 * nios2-linux-tdep.c: Likewise.
4163 * nios2-tdep.c: Likewise.
4164 * objc-lang.c: Likewise.
4165 * objfiles.c: Likewise.
4166 * obsd-nat.c: Likewise.
4167 * opencl-lang.c: Likewise.
4168 * osabi.c: Likewise.
4169 * parse.c: Likewise.
4170 * ppc-linux-nat.c: Likewise.
4171 * ppc-sysv-tdep.c: Likewise.
4172 * ppcfbsd-nat.c: Likewise.
4173 * ppcfbsd-tdep.c: Likewise.
4174 * ppcnbsd-nat.c: Likewise.
4175 * ppcnbsd-tdep.c: Likewise.
4176 * ppcobsd-nat.c: Likewise.
4177 * ppcobsd-tdep.c: Likewise.
4178 * printcmd.c: Likewise.
4179 * procfs.c: Likewise.
4180 * prologue-value.c: Likewise.
4181 * psymtab.c: Likewise.
4182 * python/py-lazy-string.c: Likewise.
4183 * python/py-value.c: Likewise.
4184 * regcache.c: Likewise.
4185 * reggroups.c: Likewise.
4186 * registry.c: Likewise.
4187 * remote-sim.c: Likewise.
4188 * remote.c: Likewise.
4189 * rs6000-aix-tdep.c: Likewise.
4190 * rs6000-tdep.c: Likewise.
4191 * s390-linux-tdep.c: Likewise.
4192 * score-tdep.c: Likewise.
4193 * ser-base.c: Likewise.
4194 * ser-mingw.c: Likewise.
4195 * sh-tdep.c: Likewise.
4196 * sh64-tdep.c: Likewise.
4197 * solib-darwin.c: Likewise.
4198 * solib-spu.c: Likewise.
4199 * solib-svr4.c: Likewise.
4200 * source.c: Likewise.
4201 * sparc-nat.c: Likewise.
4202 * sparc-sol2-tdep.c: Likewise.
4203 * sparc-tdep.c: Likewise.
4204 * sparc64-sol2-tdep.c: Likewise.
4205 * sparc64-tdep.c: Likewise.
4206 * sparc64fbsd-tdep.c: Likewise.
4207 * sparc64nbsd-tdep.c: Likewise.
4208 * sparc64obsd-tdep.c: Likewise.
4209 * sparcnbsd-tdep.c: Likewise.
4210 * sparcobsd-tdep.c: Likewise.
4211 * spu-multiarch.c: Likewise.
4212 * spu-tdep.c: Likewise.
4213 * stabsread.c: Likewise.
4214 * stack.c: Likewise.
4215 * symfile.c: Likewise.
4216 * symtab.c: Likewise.
4217 * target-descriptions.c: Likewise.
4218 * target-memory.c: Likewise.
4219 * target.c: Likewise.
4220 * tic6x-linux-tdep.c: Likewise.
4221 * tic6x-tdep.c: Likewise.
4222 * tilegx-linux-nat.c: Likewise.
4223 * tilegx-tdep.c: Likewise.
4224 * top.c: Likewise.
4225 * tramp-frame.c: Likewise.
4226 * tui/tui-out.c: Likewise.
4227 * tui/tui-winsource.c: Likewise.
4228 * ui-out.c: Likewise.
4229 * user-regs.c: Likewise.
4230 * utils.c: Likewise.
4231 * v850-tdep.c: Likewise.
4232 * valops.c: Likewise.
4233 * value.c: Likewise.
4234 * varobj.c: Likewise.
4235 * vax-nat.c: Likewise.
4236 * xml-syscall.c: Likewise.
4237 * xml-tdesc.c: Likewise.
4238 * xstormy16-tdep.c: Likewise.
4239 * xtensa-linux-nat.c: Likewise.
4240 * xtensa-tdep.c: Likewise.
4241
e76df0d0
GB
42422014-08-07 Gary Benson <gbenson@redhat.com>
4243
4244 * common/common-defs.h: Include common-utils.h.
4245 * defs.h: Do not include common-utils.h.
4246 * common/gdb_assert.h: Likewise.
4247 * darwin-nat.h: Likewise.
4248 * nat/linux-btrace.c: Likewise.
4249 * target/waitstatus.h: Likewise.
4250
4cb9c816
GB
42512014-08-07 Gary Benson <gbenson@redhat.com>
4252
4253 * common/common-defs.h: Include ptid.h.
4254 * defs.h: Do not include ptid.h.
4255 * inferior.h: Likewise.
4256 * infrun.h: Likewise.
4257 * nat/linux-btrace.h: Likewise.
4258 * nat/linux-osdata.h: Likewise.
4259 * target/waitstatus.h: Likewise.
4260
3995eeee
GB
42612014-08-07 Gary Benson <gbenson@redhat.com>
4262
4263 * common/common-defs.h: Include gdb_locale.h.
4264 * defs.h: Do not include gdb_locale.h.
4265
cb9f1a9b
GB
42662014-08-07 Gary Benson <gbenson@redhat.com>
4267
4268 * common/common-defs.h: Include gdb/signals.h.
4269 * defs.h: Do not include gdb/signals.h.
4270
a5fceff8
GB
42712014-08-07 Gary Benson <gbenson@redhat.com>
4272
4273 * common/common-defs.h: Include pathmax.h.
4274 * defs.h: Do not include pathmax.h.
4275
b9391142
GB
42762014-08-07 Gary Benson <gbenson@redhat.com>
4277
4278 * common/common-defs.h: Include libiberty.h.
4279 * defs.h: Do not include libiberty.h.
4280 * common/queue.h: Likewise.
4281 * cp-name-parser.y: Likewise.
4282 * mi/mi-cmd-catch.c: Likewise.
4283 * python/python.c: Likewise.
4284
0e443c87
GB
42852014-08-07 Gary Benson <gbenson@redhat.com>
4286
4287 * common/common-defs.h: Include ansidecl.h.
4288 * defs.h: Do not include ansidecl.h.
4289 * common/buffer.h: Likewise.
4290 * common/common-utils.h: Likewise.
4291
8ebb3f56
GB
42922014-08-07 Gary Benson <gbenson@redhat.com>
4293
4294 * common/common-defs.h: Include stddef.h.
4295 * defs.h: Do not include stddef.h.
4296 * common/common-utils.h: Likewise.
4297 * amd64fbsd-nat.c: Likewise.
4298 * bcache.c: Likewise.
4299 * charset.c: Likewise.
4300 * common/buffer.h: Likewise.
4301 * common/vec.h: Likewise.
4302 * i386bsd-nat.c: Likewise.
4303 * nat/linux-btrace.h: Likewise.
4304 * ppcfbsd-nat.c: Likewise.
4305 * ppcnbsd-tdep.h: Likewise.
4306 * ppcobsd-nat.c: Likewise.
4307 * ppcobsd-tdep.h: Likewise.
4308 * python/py-gdb-readline.c: Likewise.
4309
8980bdf6
GB
43102014-08-07 Gary Benson <gbenson@redhat.com>
4311
4312 * common/common-defs.h: Include stdarg.h.
4313 * defs.h: Do not include stdarg.h.
4314 * ada-lang.c: Likewise.
4315 * common/common-utils.h: Likewise.
4316 * guile/scm-string.c: Likewise.
4317 * guile/scm-utils.c: Likewise.
4318 * m32c-tdep.c: Likewise.
4319
d7096f71
GB
43202014-08-07 Gary Benson <gbenson@redhat.com>
4321
4322 * common/common-defs.h: Include stdlib.h.
4323 * defs.h: Do not include stdlib.h.
4324 * addrmap.c: Likewise.
4325 * bcache.c: Likewise.
4326 * common/buffer.c: Likewise.
4327 * common/common-utils.c: Likewise.
4328 * cp-name-parser.y: Likewise.
4329 * go32-nat.c: Likewise.
4330 * mn10300-linux-tdep.c: Likewise.
4331 * nat/linux-osdata.c: Likewise.
4332 * tui/tui.c: Likewise.
4333 * windows-nat.c: Likewise.
4334
d02f550d
GB
43352014-08-07 Gary Benson <gbenson@redhat.com>
4336
4337 * common/common-defs.h: Include stdio.h.
4338 * defs.h: Do not include stdio.h.
4339 * ada-lang.c: Likewise.
4340 * common/buffer.c: Likewise.
4341 * common/common-utils.c: Likewise.
4342 * cp-name-parser.y: Likewise.
4343 * gnu-nat.c: Likewise.
4344 * go32-nat.c: Likewise.
4345 * i386gnu-nat.c: Likewise.
4346 * proc-api.c: Likewise.
4347 * proc-events.c: Likewise.
4348 * proc-flags.c: Likewise.
4349 * proc-why.c: Likewise.
4350 * python/python-internal.h: Likewise.
4351 * target-memory.c: Likewise.
4352 * tui/tui-io.c: Likewise.
4353 * tui/tui.c: Likewise.
4354
b6d7a4bf
SM
43552014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4356
4357 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4358 (scan_dyntag_auxv): Same.
4359
af19829b
YQ
43602014-08-06 Yao Qi <yao@codesourcery.com>
4361
4362 * amd64-linux-nat.c: Remove duplicated include
4363 "x86-linux-nat.h".
4364 * i386-linux-nat.c: Likewise.
4365
8e07a239
YQ
43662014-08-06 Yao Qi <yao@codesourcery.com>
4367
4368 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4369 operand" with "Special opcode" in comments.
4370
7bfe8241
GB
43712014-08-05 Gary Benson <gbenson@redhat.com>
4372
4373 * interps.c (initialize_interps): Remove prototype.
4374 (interpreter_initialized): Remove static global.
4375 (interp_add): Do not call initialize_interps.
4376 (initialize_interps): Remove function.
4377
d6c95504
GB
43782014-08-05 Gary Benson <gbenson@redhat.com>
4379
4380 * utils.c (vwarning): Remove spurious va_end.
4381
241fd515
AM
43822014-08-05 Alan Modra <amodra@gmail.com>
4383
4384 * charset.c (convert_between_encodings): Cast result of obstack_base.
4385 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4386 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4387 (read_unwind_info): Use size_t for some locals.
4388 * jit.c (finalize_symtab): Likewise.
4389 * utils.c (hashtab_obstack_allocate): Likewise.
4390 * symmisc.c (print_objfile_statistics): Update format strings.
4391
dc304a94
JK
43922014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4393
4394 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4395 (Changes in GDB 7.8): ... here.
4396
3cecbbbe
TT
43972014-08-04 Tom Tromey <tromey@redhat.com>
4398
4399 * target.c (set_targetdebug): New function.
4400 (initialize_targets): Pass set_targetdebug when creating "set
4401 debug target".
4402
6908c509
JB
44032014-08-01 Joel Brobecker <brobecker@adacore.com>
4404
4405 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4406 if detecting a variable-sized field that is not the last field.
4407 Fix struct type length computation.
4408
53e8f97d
JB
44092014-08-01 Joel Brobecker <brobecker@adacore.com>
4410
4411 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4412 Add debug trace.
4413
e068c55d
JB
44142014-08-01 Joel Brobecker <brobecker@adacore.com>
4415
4416 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4417 Remove "+ 8" offset in computation of CHAIN_VMA.
4418
4d4ca2a1
DE
44192014-07-31 Doug Evans <dje@google.com>
4420
4421 * inflow.c (child_terminal_inferior): Add comment.
4422 (child_terminal_ours_for_output): Add comment.
4423 (child_terminal_ours): Add comment.
4424 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4425 (linux_nat_terminal_ours): Add comment.
4426
462f517e
GB
44272014-07-31 Gary Benson <gbenson@redhat.com>
4428
4429 * common/btrace-common.h: Do not include defs.h or server.h.
4430 * nat/mips-linux-watch.h: Likewise.
4431 * gdb-dlfcn.h: Do not include defs.h.
4432 * tracefile.h: Likewise.
4433
74228e77
RM
44342014-07-30 Roland McGrath <mcgrathr@google.com>
4435
4436 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4437
014f9477
TT
44382014-07-30 Tom Tromey <tromey@redhat.com>
4439
4440 * bsd-kvm.c (bsd_kvm_open): Constify.
4441 * corelow.c (core_open): Constify.
4442 * ctf.c (ctf_open): Constify.
4443 * dbug-rom.c (dbug_open): Constify.
4444 * exec.c (exec_open): Constify.
4445 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4446 * microblaze-rom.c (picobug_open): Constify.
4447 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4448 Constify.
4449 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4450 * record-btrace.c (record_btrace_open): Constify.
4451 * record-full.c (record_full_core_open_1, record_full_open_1)
4452 (record_full_open): Constify.
4453 * remote-m32r-sdi.c (m32r_open): Constify.
4454 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4455 (rockhopper_open, lsi_open): Constify.
4456 * remote-sim.c (gdbsim_open): Constify.
4457 * remote.c (remote_open, extended_remote_open, remote_open_1):
4458 Constify.
4459 * target.h (struct target_ops) <to_open>: Make "arg" const.
4460 * tracefile-tfile.c (tfile_open): Constify.
4461
e799154c
TT
44622014-07-30 Tom Tromey <tromey@redhat.com>
4463
4464 * breakpoint.c (map_breakpoint_numbers): Update.
4465 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4466 (get_number_const): New function.
4467 (get_number): Rewrite using get_number_const.
4468 (init_number_or_range): Make "string" const.
4469 (number_is_in_list): Make "list" const.
4470 * cli/cli-utils.h (get_number_const): Declare.
4471 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4472 (init_number_or_range, number_is_in_list): Update.
4473 * printcmd.c (map_display_numbers): Update.
4474 * value.c (value_from_history_ref): Constify.
4475 * value.h (value_from_history_ref): Update.
4476
5f08566b
TT
44772014-07-30 Tom Tromey <tromey@redhat.com>
4478
4479 * corefile.c (hook_type, call_extra_exec_file_hooks)
4480 (specify_exec_file_hook): Constify.
4481 * exec.c (exec_file_attach): Make "filename" const.
4482 * gdbcore.h (deprecated_exec_file_display_hook)
4483 (specify_exec_file_hook, exec_file_attach): Constify.
4484 * main.c (captured_main): Use catch_command_errors_const.
4485
8981c758
TT
44862014-07-30 Tom Tromey <tromey@redhat.com>
4487
4488 * target.c (open_target): New function.
4489 (add_target_with_completer, add_deprecated_target_alias): Use
4490 set_cmd_sfunc, set_cmd_context.
4491 (debug_to_open): Remove.
4492 (setup_target_debug): Update.
4493
a1c7835a
YQ
44942014-07-30 Yao Qi <yao@codesourcery.com>
4495
4496 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4497 comments.
4498 * parse.c (exp_iterate): Update comments.
4499
976411d6
GB
45002014-07-30 Gary Benson <gbenson@redhat.com>
4501
4502 * common/common-defs.h: New file.
4503 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4504 * defs.h: Include common-defs.h.
4505 Do not include config.h or build-gnulib/config.h.
4506
5d4848a4
GB
45072014-07-30 Gary Benson <gbenson@redhat.com>
4508
4509 * common/common-utils.h: Do not include config.h.
4510 * nat/linux-btrace.h: Likewise.
4511
d41f6d8e
GB
45122014-07-30 Gary Benson <gbenson@redhat.com>
4513
4514 * btrace.c: Include defs.h.
4515 * common/ptid.c: Include defs.h or server.h as appropriate.
4516 * nat/mips-linux-watch.c: Likewise.
4517
84202f9c
TT
45182014-07-29 Tom Tromey <tromey@redhat.com>
4519
4520 * target.c (target_is_pushed): Simplify.
4521
2530441c
JB
45222014-07-29 Joel Brobecker <brobecker@adacore.com>
4523
4524 GDB 7.8 released.
4525
7e09a223
YQ
45262014-07-29 Yao Qi <yao@codesourcery.com>
4527
4528 PR gdb/17206
4529 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4530
7ebdbe92
DE
45312014-07-28 Doug Evans <xdje42@gmail.com>
4532
4533 PR guile/17203
4534 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4535 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4536 parameters.
4537
f347ffc9
WN
45382014-07-28 Will Newton <will.newton@linaro.org>
4539
4540 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4541 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4542 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4543 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4544 (THUMB2_EABI_SYSCALL): Likewise.
4545 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4546 struct tramp_frame.
4547 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4548 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4549
37c5f1f7
DE
45502014-07-27 Doug Evans <xdje42@gmail.com>
4551
4552 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4553
0c3abbc7
DE
45542014-07-27 Doug Evans <xdje42@gmail.com>
4555
4556 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4557
e76c5d17
DE
45582014-07-26 Ludovic Courtès <ludo@gnu.org>
4559 Doug Evans <xdje42@gmail.com>
4560
4561 PR guile/17146
4562 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4563 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4564 * configure.ac: Try to use guild to compile an scm file, if it fails
4565 then disable guile support.
4566 * configure: Regenerate.
4567 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4568 GUILE_FILE_LIST.
4569 (GUILE_COMPILED_FILES): New variable.
4570 (GUILE_FILES) Update.
4571 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4572 (stamp-guile): Compile scm files.
4573 * guile/guile.c (boot_guile_support): New function.
4574 (standard_throw_args_p): New function.
4575 (print_standard_throw_error, print_throw_error): New functions.
4576 (handle_boot_error): New function.
4577 (initialize_scheme_side): Rewrite to call boot_guile_support.
4578 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4579 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4580
186fcde0
DE
45812014-07-26 Ludovic Courtès <ludo@gnu.org>
4582 Doug Evans <xdje42@gmail.com>
4583
4584 PR guile/17146
4585 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4586 * guile/lib/gdb/support.scm: New file.
4587 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4588 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4589 All uses updated.
4590 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4591 All uses updated.
4592 (%assert-type): Ditto, and renamed to assert-type.
4593 (%exception-print-style): Delete.
4594
4df42755
DE
45952014-07-26 Doug Evans <xdje42@gmail.com>
4596
4597 PR build/17105
4598 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4599 * configure: Regenerate.
4600 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4601 PYTHON_FILES.
4602 (PYTHON_FILES): New variable.
4603 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4604 (GUILE_FILES): New variable.
4605 (stamp-python, install-python, uninstall-python): Handle empty
4606 file list.
4607 (stamp-guile, install-guile, uninstall-guile): Ditto.
4608
ee7333ae
DE
46092014-07-26 Doug Evans <xdje42@gmail.com>
4610
4611 PR guile/17177
4612 * guile/lib/gdb.scm (pretty-printers): Export.
4613 (set-pretty-printers!): Export.
4614 * guile/lib/gdb/printing.scm (gdb module): Update.
4615 (prepend-pretty-printer!, append-pretty-printer!): Update.
4616 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4617 (pretty_printer_list_var): Delete.
4618 (pretty_printer_list): New static global.
4619 (gdbscm_pretty_printers): New function.
4620 (gdbscm_set_pretty_printers_x): New function.
4621 (ppscm_find_pretty_printer_from_gdb): Update.
4622 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4623 (gdbscm_initialize_pretty_printers): Update.
4624
74edf516
DE
46252014-07-26 Doug Evans <xdje42@gmail.com>
4626
4627 PR 17185
4628 * configure.ac: Add check for header gc/gc.h.
4629 Add check for function setenv.
4630 * configure: Regenerate.
4631 * config.in: Regenerate.
4632 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4633
d54398a7
MR
46342014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4635
4636 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4637 variation in gdbarch matching.
4638
ab16fce8
TT
46392014-07-25 Tom Tromey <tromey@redhat.com>
4640
4641 * exec.c (using_exec_ops): Remove.
4642 (exec_close_1): Update. Remove extraneous block, reindent.
4643 (add_target_sections): Use target_is_pushed.
4644
88056fbb
PA
46452014-07-25 Pedro Alves <palves@redhat.com>
4646
4647 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4648 * monitor.c (monitor_create_inferior): Likewise.
4649 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4650 * remote-sim.c (gdbsim_create_inferior): Likewise.
4651 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4652 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4653 * windows-nat.c (do_initial_windows_stuff): Likewise.
4654
70509625
PA
46552014-07-25 Pedro Alves <palves@redhat.com>
4656
4657 * NEWS: Mention signal passing and "signal" command changes.
4658 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4659 comment.
4660 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4661 call.
4662 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4663 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4664 (jump_command): Adjust clear_proceed_status call.
4665 (signal_command): Warn if other thread that are resumed have
4666 signals that will be delivered. Adjust clear_proceed_status call.
4667 (until_next_command, finish_command)
4668 (proceed_after_attach_callback, attach_command_post_wait)
4669 (attach_command): Adjust clear_proceed_status call.
4670 * infrun.c (proceed_after_vfork_done): Likewise.
4671 (proceed_after_attach_callback): Adjust comment.
4672 (clear_proceed_status_thread): Clear stop_signal if not in pass
4673 state.
4674 (clear_proceed_status_callback): Delete.
4675 (clear_proceed_status): New 'step' parameter. Only clear the
4676 proceed status of threads the command being prepared is about to
4677 resume.
4678 (proceed): If passed in an explicit signal, override stop_signal
4679 with it. Don't pass the last stop signal to the thread we're
4680 resuming.
4681 (init_wait_for_inferior): Adjust clear_proceed_status call.
4682 (switch_back_to_stepped_thread): Clear the signal if it should not
4683 be passed.
4684 * infrun.h (clear_proceed_status): New 'step' parameter.
4685 (user_visible_resume_ptid): Add comment.
4686 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4687 signal is in pass state.
4688 * remote.c (append_pending_thread_resumptions): Likewise.
4689 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4690
d8be2939
TT
46912014-07-25 Tom Tromey <tromey@redhat.com>
4692
4693 * target.h (target_stopped_data_address)
4694 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4695 parentheses.
4696
7d0d9d2b
PL
46972014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4698
4699 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4700 comments.
4701 (avr_pointer_to_address): Likewise.
4702
e9e7f724
TT
47032014-07-24 Tom Tromey <tromey@redhat.com>
4704
4705 * monitor.c (compile_pattern): Update.
4706 * target.h (struct target_ops) <to_shortname, to_longname,
4707 to_doc>: Now const.
4708
1947513d
TT
47092014-07-24 Tom Tromey <tromey@redhat.com>
4710
4711 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4712 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4713 (add_info_alias, add_com): Make "doc" const.
4714 (print_doc_line): Make "str" const.
4715 (delete_cmd): Update.
4716 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4717 (print_doc_line): Update.
4718 * cli/cli-script.c (document_command): Update.
4719 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4720 (add_com, add_info, add_info_alias): Update.
4721 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4722 * python/py-cmd.c (cmdpy_destroyer): Update.
4723
64e61d29
TT
47242014-07-24 Tom Tromey <tromey@redhat.com>
4725
4726 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4727 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4728 (help_cmd_list): Constify.
4729 (lookup_cmd): Update.
4730 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4731 const.
4732 (help_cmd_list, apropos_cmd): Update.
4733 * cli/cli-script.c (show_user): Update.
4734 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4735 * cli/cli-setshow.h (cmd_show_list): Update.
4736 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4737 (cmd_show_list): Update.
4738 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4739 * python/py-cmd.c (cmdpy_destroyer): Update.
4740
429e55ea
TT
47412014-07-24 Tom Tromey <tromey@redhat.com>
4742
4743 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4744 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4745 const.
4746 * command.h (deprecate_cmd): Update.
4747 * maint.c (maintenance_do_deprecate): Add casts.
4748
64669f3b
TT
47492014-07-24 Tom Tromey <tromey@redhat.com>
4750
4751 * cli/cli-decode.c (help_cmd): Make parameter "const".
4752 * cli/cli-decode.h (help_cmd): Update.
4753
d3d3328b
TT
47542014-07-24 Tom Tromey <tromey@redhat.com>
4755
4756 * stack.c (up_silently_base, down_silently_base): Make argument
4757 const.
4758
414842dc
TT
47592014-07-24 Tom Tromey <tromey@redhat.com>
4760
4761 * solib.c (solib_add): Make "pattern" const.
4762 * solib.h (solib_add): Update.
4763
baa336ce
TT
47642014-07-24 Tom Tromey <tromey@redhat.com>
4765
4766 * remote.c (remote_serial_open, print_packet, putpkt)
4767 (putpkt_binary): Constify.
4768 * remote.h (putpkt): Update.
4769
5a19e2d0
TT
47702014-07-24 Tom Tromey <tromey@redhat.com>
4771
4772 * monitor.c (monitor_open): Make "args" const.
4773 * monitor.h (monitor_open): Update.
4774
fc4baa5e
TT
47752014-07-24 Tom Tromey <tromey@redhat.com>
4776
4777 * maint.c (match_bfd_flags): Make "string" const.
4778 (print_bfd_section_info): Remove casts.
4779 (print_objfile_section_info): Make "string" const.
4780
0d5f0dbe
TT
47812014-07-24 Tom Tromey <tromey@redhat.com>
4782
4783 * inf-child.c (inf_child_open_target): Make "arg" const.
4784 * inf-child.h (inf_child_open_target): Update.
4785
41c77899
TT
47862014-07-24 Tom Tromey <tromey@redhat.com>
4787
4788 * environ.c (unset_in_environ): Make "var" const.
4789 * environ.h (unset_in_environ): Update.
4790
93db0d79
TT
47912014-07-24 Tom Tromey <tromey@redhat.com>
4792
4793 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4794 Make "cmd" const.
4795 (scan_filename_with_cleanup): Likewise.
4796 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4797 Make arguments const.
4798 (restore_command): Update.
4799
36d6eb95
PA
48002014-07-24 Pedro Alves <palves@redhat.com>
4801
4802 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4803
8009206a
TT
48042014-07-24 Tom Tromey <tromey@redhat.com>
4805 Gary Benson <gbenson@redhat.com>
4806
4807 * nat/linux-ptrace.c (additional_flags): New global.
4808 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4809 additional_flags; don't check GDBSERVER.
4810 (linux_ptrace_set_additional_flags): New function.
4811 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4812 Declare.
4813 * linux-nat.c (_initialize_linux_nat): Call
4814 linux_ptrace_set_additional_flags.
4815
a7068b60
TT
48162014-07-24 Tom Tromey <tromey@redhat.com>
4817
4818 * make-target-delegates (munge_type, write_debugmethod): New
4819 functions.
4820 (debug_names): New global.
4821 ($TARGET_DEBUG_PRINTER): New global.
4822 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4823 name.
4824 Write debug methods. Generate init_debug_target.
4825 * target-debug.h: New file.
4826 * target-delegates.c: Rebuild.
4827 * target.c: Include target-debug.h.
4828 (debug_target): Hoist definition.
4829 (target_kill, target_get_section_table, target_memory_map)
4830 (target_flash_erase, target_flash_done, target_detach)
4831 (target_disconnect, target_wait, target_resume)
4832 (target_pass_signals, target_program_signals, target_follow_fork)
4833 (target_mourn_inferior, target_search_memory)
4834 (target_thread_address_space, target_close)
4835 (target_find_new_threads, target_core_of_thread)
4836 (target_verify_memory, target_insert_mask_watchpoint)
4837 (target_remove_mask_watchpoint): Remove targetdebug code.
4838 (debug_to_post_attach, debug_to_prepare_to_store)
4839 (debug_to_files_info, debug_to_insert_breakpoint)
4840 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4841 (debug_to_region_ok_for_hw_watchpoint)
4842 (debug_to_can_accel_watchpoint_condition)
4843 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4844 (debug_to_watchpoint_addr_within_range)
4845 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4846 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4847 (debug_to_terminal_init, debug_to_terminal_inferior)
4848 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4849 (debug_to_terminal_save_ours, debug_to_terminal_info)
4850 (debug_to_load, debug_to_post_startup_inferior)
4851 (debug_to_insert_fork_catchpoint)
4852 (debug_to_remove_fork_catchpoint)
4853 (debug_to_insert_vfork_catchpoint)
4854 (debug_to_remove_vfork_catchpoint)
4855 (debug_to_insert_exec_catchpoint)
4856 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4857 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4858 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4859 (setup_target_debug): Call init_debug_target.
4860 * target.h (TARGET_DEBUG_PRINTER): New macro.
4861 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4862 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4863
2c51604d
GB
48642014-07-24 Gary Benson <gbenson@redhat.com>
4865
4866 * exceptions.h (throw_vfatal): Renamed to...
4867 (throw_vquit): New declaration.
4868 (throw_quit): Likewise.
4869 * exceptions.c (throw_vfatal): Renamed to...
4870 (throw_vquit): New function.
4871 (throw_quit): Likewise.
4872 (throw_error): Call throw_verror rather than throw_it.
4873 * utils.h (vfatal): Removed.
4874 (fatal): Likewise.
4875 * utils.c (vfatal): Removed.
4876 (fatal): Likewise.
4877 (internal_verror): Replaced call to fatal with call to throw_quit.
4878 (quit): Replaced calls to fatal with calls to throw_quit.
4879
34211963
ME
48802014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4881
4882 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4883 target_read_code.
4884
a52b4d3e
ME
48852014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4886
4887 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4888 less than zero in conditional expression.
4889
a8bdc56b
TT
48902014-07-23 Tom Tromey <tromey@redhat.com>
4891
4892 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4893 ($INTRO_PART): Don't match whitespace.
4894 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4895 argument matching.
4896 ($METHOD): Add $METHOD_TRAILER.
4897 (trim): Rewrite.
4898 (scan_target_h): New sub.
4899 Change main loop not to collect state.
4900 * target-delegates.c: Rebuild.
4901
91b52240
GB
49022014-07-23 Gary Benson <gbenson@redhat.com>
4903
4904 * cp-support.c (gdb_demangle): Fix build on systems without
4905 sigaltstack.
4906
45326f6f
JK
49072014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4908
4909 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4910 for reference entry value target data value.
4911
e214cf6c
JK
49122014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4913
4914 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4915 value_available_contents_eq.
4916
bddbbedd
PA
49172014-07-22 Pedro Alves <palves@redhat.com>
4918
4919 * value.c (allocate_optimized_out_value): Don't mark value as
4920 non-lazy.
4921
45c71484
JW
49222014-07-22 Jiong Wang <jiong.wang@arm.com>
4923
4924 * MAINTAINERS (Write After Approval): Update my email address.
4925
9597b22a
DE
49262014-07-20 Doug Evans <dje@google.com>
4927
4928 PR server/17147
4929 * remote.c (putpkt_binary): Add text to error message.
4930
91101fe5
YQ
49312014-07-20 Yao Qi <yao@codesourcery.com>
4932
4933 * eval.c: Remove "Chill" from comments.
4934 * gdbtypes.h: Likewise.
4935 * symtab.h: Likewise.
4936
c9402c95
YQ
49372014-07-20 Yao Qi <yao@codesourcery.com>
4938
4939 * std-operator.def: Update comments to TERNOP_SLICE.
4940
ae8fddda
YQ
49412014-07-20 Yao Qi <yao@codesourcery.com>
4942
4943 * std-operator.def: Remove BINOP_RANGE.
4944 * breakpoint.c (watchpoint_exp_is_const): Update.
4945 * expprint.c (dump_subexp_body_standard): Likewise.
4946 * eval.c (init_array_element): Remove dead code.
4947 (evaluate_subexp_standard): Likewise.
4948
9c816640
YQ
49492014-07-20 Yao Qi <yao@codesourcery.com>
4950
4951 * std-operator.def: Remove BINOP_IN.
4952 * breakpoint.c (watchpoint_exp_is_const): Update.
4953 * eval.c (evaluate_subexp_standard): Likewise.
4954 * expprint.c (dump_subexp_body_standard): Likewise.
4955
164224e9
ME
49562014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4957
4958 * microblaze-tdep.c (microblaze_register_names): Add
4959 the rshr and rslr register names.
4960 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4961 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4962 Use of tdesc_numbered_register. Use of
4963 microblaze_register_g_packet_guesses. Use of
4964 tdesc_use_registers. Use of set_gdbarch_register_type.
4965 (microblaze_register_g_packet_guesses): New.
4966 * microblaze-tdep.h (microblaze_reg_num): Add
4967 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4968 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4969 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4970 * features/microblaze-core.xml: New file.
4971 * features/microblaze-stack-protect.xml: New file.
4972 * features/microblaze-with-stack-protect.c: New file.
4973 * features/microblaze-with-stack-protect.xml: New file.
4974 * features/microblaze.xml: New file.
4975 * features/microblaze.c: New file.
4976 * features/Makefile (microblaze-with-stack-protect): Add
4977 microblaze-with-stack-protect microblaze and microblaze-expedite.
4978 * regformats/microblaze-with-stack-protect.dat: New file.
4979 * regformats/microblaze.dat: New file.
4980 * doc/gdb.texinfo (MicroBlaze Features): Added.
4981
e8b2341c
TT
49822014-07-18 Tom Tromey <tromey@redhat.com>
4983
4984 * exec.c (exec_ops): Now static.
4985 * exec.h (exec_ops): Don't declare.
4986
44e89118
TT
49872014-07-18 Tom Tromey <tromey@redhat.com>
4988
4989 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4990 to find_target_beneath.
4991 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4992 find_target_beneath.
4993 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4994
b0ed115f
TT
49952014-07-18 Tom Tromey <tromey@redhat.com>
4996
4997 PR gdb/17130:
4998 * utils.c (quit): Use target_supports_terminal_ours.
4999 * target.h (target_supports_terminal_ours): Declare.
5000 * target.c (target_supports_delete_record): Don't check
5001 to_delete_record against NULL.
5002 (target_supports_terminal_ours): New function.
5003
e75fdfca
TT
50042014-07-18 Tom Tromey <tromey@redhat.com>
5005
5006 PR gdb/17130:
5007 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5008 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5009 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5010 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5011 * windows-nat.c (windows_xfer_partial): Always delegate.
5012 * record-btrace.c (record_btrace_xfer_partial): Simplify
5013 delegation.
5014 (record_btrace_fetch_registers, record_btrace_store_registers)
5015 (record_btrace_prepare_to_store, record_btrace_resume)
5016 (record_btrace_wait, record_btrace_find_new_threads)
5017 (record_btrace_thread_alive): Likewise.
5018 * procfs.c (procfs_xfer_partial): Always delegate.
5019 * corelow.c (core_xfer_partial): Always delegate.
5020 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5021
83814951
TT
50222014-07-18 Tom Tromey <tromey@redhat.com>
5023
5024 * exec.c (exec_make_note_section): Move earlier.
5025
b8b8facf
DE
50262014-07-17 Doug Evans <dje@google.com>
5027
74b49205 5028 PR gdb/17170
b8b8facf
DE
5029 * maint.c (count_symtabs_and_blocks): Handle NULL
5030 current_program_space.
5031 (report_command_stats): Check global enabled flag in addition to
5032 recorded enabled flag.
5033 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5034
69ff6be5
PA
50352014-07-16 Pedro Alves <palves@redhat.com>
5036
5037 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5038
252db1b5
TT
50392014-07-16 Tom Tromey <tromey@redhat.com>
5040
5041 * target.h (struct target_ops) <to_delete_record>: Reformat
5042 comment.
5043
a432721e
TT
50442014-07-16 Tom Tromey <tromey@redhat.com>
5045
5046 * target-delegates.c: Rebuild.
5047
487d9753
PL
50482014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5049
5050 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5051 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5052 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5053 (avr_pointer_to_address): Likewise.
5054 (avr_address_class_type_flags): New function.
5055 (avr_address_class_type_flags_to_name): Likewise.
5056 (avr_address_class_name_to_type_flags): Likewise.
5057 (avr_gdbarch_init): Set address_class_type_flags,
5058 address_class_type_flags_to_name and
5059 address_class_name_to_type_flags.
5060
57745c90
PA
50612014-07-15 Pedro Alves <palves@redhat.com>
5062
5063 * linux-nat.c (kill_callback): Save errno and work with saved
5064 copy.
5065
2d40be18
SM
50662014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5067
5068 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5069
572f6555
EBM
50702014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5071
5072 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5073 breakpoint support correctly.
5074
cc1c52ad
PA
50752014-07-14 Pedro Alves <palves@redhat.com>
5076
5077 * utils.c (prompt_for_continue): Call target_terminal_ours.
5078
1e973570
PA
50792014-07-14 Pedro Alves <palves@redhat.com>
5080
5081 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5082 catch_errors. Don't re-enable stdin or notify observers where,
5083 and rethrow error.
5084 (fetch_inferior_event_wrapper): Delete.
5085
93d6eb10
PA
50862014-07-14 Pedro Alves <palves@redhat.com>
5087
5088 PR gdb/17072
5089 * top.c: Include "inf-loop.h".
5090 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5091 field.
5092 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5093 was async before.
5094 (gdb_readline_wrapper): Store whether the target is async, and
5095 make it sync.
5096
0017922d
PA
50972014-07-14 Pedro Alves <palves@redhat.com>
5098
5099 PR gdb/17072
5100 * top.c (gdb_readline_wrapper_line): Tweak comment.
5101 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5102 the input handler callback.
5103
94696ad3
PA
51042014-07-14 Pedro Alves <palves@redhat.com>
5105
5106 PR gdb/17072
5107 * main.c: Include event-top.h.
5108 (handle_command_errors): New function.
5109 (catch_command_errors, catch_command_errors_const): Use it.
5110
9d1e69a2
PA
51112014-07-14 Pedro Alves <palves@redhat.com>
5112
5113 * exceptions.c (catch_command_errors, catch_command_errors_const):
5114 Moved to main.c.
5115 * exceptions.h (catch_command_errors_ftype)
5116 (catch_command_errors_const_ftype): Moved to main.c.
5117 (catch_command_errors, catch_command_errors_const): Delete
5118 declarations.
5119 * main.c (catch_command_errors_ftype)
5120 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5121 (catch_command_errors, catch_command_errors_const)): Moved here
5122 from exceptions.c and make static.
5123
feefc97b
PA
51242014-07-14 Pedro Alves <palves@redhat.com>
5125
5126 * exceptions.c (print_any_exception): Delete.
5127 (catch_exceptions_with_msg): Use exception_print instead of
5128 print_any_exception.
5129 (catch_errors): Use exception_fprintf instead of
5130 print_any_exception.
5131 (catch_command_errors, catch_command_errors_const): Use
5132 exception_print instead of print_any_exception.
5133
c933f875
PA
51342014-07-14 Pedro Alves <palves@redhat.com>
5135
5136 * infcall.c (run_inferior_call): Set 'sync_execution' while
5137 running the inferior call.
5138
feb6f816
PA
51392014-07-14 Pedro Alves <palves@redhat.com>
5140
5141 * value.c (value_contents_equal): Delete function.
5142 * value.h (value_contents_equal): Delete declaration.
5143
d98b7a16
TT
51442014-07-14 Tom Tromey <tromey@redhat.com>
5145
5146 PR exp/17106:
5147 * gdbtypes.c (is_dynamic_type_internal): New function, from
5148 is_dynamic_type.
5149 (is_dynamic_type): Rewrite.
5150 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5151 (resolve_dynamic_struct): Likewise.
5152 (resolve_dynamic_type_internal): New function, from
5153 resolve_dynamic_type.
5154 (resolve_dynamic_type): Rewrite.
5155
548740d6
TT
51562014-07-14 Tom Tromey <tromey@redhat.com>
5157
5158 * target.c (target_require_runnable): Also check record_stratum.
5159 Update comment.
5160
808f7ab1
YQ
51612014-07-11 Yao Qi <yao@codesourcery.com>
5162
5163 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5164 thumb_instruction_restores_sp return true.
5165
540314bd
YQ
51662014-07-11 Yao Qi <yao@codesourcery.com>
5167
5168 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5169 (thumb_in_function_epilogue_p): Call
5170 thumb_instruction_restores_sp.
5171
1db01f22
YQ
51722014-07-11 Yao Qi <yao@codesourcery.com>
5173
5174 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5175 'add sp, #imm'.
5176 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5177
3116063b
GB
51782014-07-11 Gary Benson <gbenson@redhat.com>
5179
5180 * amd64-linux-nat.c (gdbcore.h): Remove include.
5181 (regset.h): Likewise.
5182 (nat/linux-btrace.h): Likewise.
5183 (btrace.h): Likewise.
5184 (gdb_assert.h): Likewise.
5185 (string.h): Likewise.
5186 (sys/uio.h): Likewise.
5187 (sys/debugreg.h): Likewise.
5188 (sys/syscall.h): Likewise.
5189 (sys/procfs.h): Likewise.
5190 (sys/user.h): Likewise.
5191 (asm/ptrace.h): Likewise.
5192 (i386-nat.h): Likewise.
5193 * i386-linux-nat.c (i386-nat.h): Likewise.
5194 (regset.h): Likewise.
5195 (target.h): Likewise.
5196 (linux-nat.h): Likewise.
5197 (nat/linux-btrace.h): Likewise.
5198 (btrace.h): Likewise.
5199 (gdb_assert.h): Likewise.
5200 (string.h): Likewise.
5201 (sys/uio.h): Likewise.
5202 (sys/user.h): Likewise.
5203 (sys/procfs.h): Likewise.
5204 (sys/reg.h): Likewise.
5205 (sys/debugreg.h): Likewise.
5206 (ORIG_EAX): Remove definition.
5207
040baaf6
GB
52082014-07-11 Gary Benson <gbenson@redhat.com>
5209
5210 * i386-linux-nat.h: New file.
5211 * x86-linux-nat.h: Likewise.
5212 * x86-linux-nat.c: Likewise.
5213 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5214 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5215 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5216 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5217 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5218 (PTRACE_SETREGSET): Likewise.
5219 (arch_lwp_info): Now in x86-linux-nat.c.
5220 (have_ptrace_getregset): Now in x86-linux-nat.h.
5221 (x86_linux_dr_get): Now in x86-linux-nat.c.
5222 (x86_linux_dr_set): Likewise.
5223 (x86_linux_dr_get_addr): Likewise.
5224 (x86_linux_dr_get_control): Likewise.
5225 (x86_linux_dr_get_status): Likewise.
5226 (update_debug_registers_callback): Likewise.
5227 (x86_linux_dr_set_control): Likewise.
5228 (x86_linux_dr_set_addr): Likewise.
5229 (x86_linux_prepare_to_resume): Likewise.
5230 (x86_linux_new_thread): Likewise.
5231 (x86_linux_new_fork): Likewise.
5232 (x86_linux_get_thread_area): Likewise.
5233 (super_post_startup_inferior): Likewise.
5234 (x86_linux_child_post_startup_inferior): Likewise.
5235 (AMD64_LINUX_USER64_CS): Likewise.
5236 (AMD64_LINUX_X32_DS): Likewise.
5237 (x86_linux_read_description): Likewise.
5238 (x86_linux_enable_btrace): Likewise.
5239 (x86_linux_disable_btrace): Likewise.
5240 (x86_linux_teardown_btrace): Likewise.
5241 (x86_linux_read_btrace): Likewise.
5242 (x86_linux_create_target): Likewise.
5243 (x86_linux_add_target): Likewise.
5244 * i386-linux-nat.c (x86-linux-nat.h): New include.
5245 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5246 (PTRACE_SETREGSET): Likewise.
5247 (arch_lwp_info): Now in x86-linux-nat.c.
5248 (have_ptrace_getregset): Now in x86-linux-nat.h.
5249 (x86_linux_dr_get): Now in x86-linux-nat.c.
5250 (x86_linux_dr_set): Likewise.
5251 (x86_linux_dr_get_addr): Likewise.
5252 (x86_linux_dr_get_control): Likewise.
5253 (x86_linux_dr_get_status): Likewise.
5254 (update_debug_registers_callback): Likewise.
5255 (x86_linux_dr_set_control): Likewise.
5256 (x86_linux_dr_set_addr): Likewise.
5257 (x86_linux_prepare_to_resume): Likewise.
5258 (x86_linux_new_thread): Likewise.
5259 (x86_linux_new_fork): Likewise.
5260 (x86_linux_get_thread_area): Likewise.
5261 (super_post_startup_inferior): Likewise.
5262 (x86_linux_child_post_startup_inferior): Likewise.
5263 (AMD64_LINUX_USER64_CS): Likewise.
5264 (AMD64_LINUX_X32_DS): Likewise.
5265 (x86_linux_read_description): Likewise.
5266 (x86_linux_enable_btrace): Likewise.
5267 (x86_linux_disable_btrace): Likewise.
5268 (x86_linux_teardown_btrace): Likewise.
5269 (x86_linux_read_btrace): Likewise.
5270 (x86_linux_create_target): Likewise.
5271 (x86_linux_add_target): Likewise.
5272
1aa7e42c
GB
52732014-07-11 Gary Benson <gbenson@redhat.com>
5274
5275 * amd64-linux-nat.c: Comment and whitespace changes.
5276 * i386-linux-nat.c: Comment and whitespace changes.
5277
c1e246a0
GB
52782014-07-11 Gary Benson <gbenson@redhat.com>
5279
5280 * amd64-linux-nat.c (x86_linux_create_target): New function.
5281 (x86_linux_add_target): Likewise.
5282 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5283 * i386-linux-nat.c (x86_linux_create_target): New function.
5284 (x86_linux_add_target): Likewise.
5285 (_initialize_i386_linux_nat): Delegate to the above new functions.
5286
8c420b8d
GB
52872014-07-11 Gary Benson <gbenson@redhat.com>
5288
5289 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5290 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5291 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5292 (ps_get_thread_area): Delegate to the above.
5293
cb1da100
GB
52942014-07-11 Gary Benson <gbenson@redhat.com>
5295
5296 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5297 x86_linux_read_description. All uses updated. amd64-specific
5298 code conditionalized. Conditionalized i386-specific code added.
5299 Redundant cast removed.
5300 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5301 x86_linux_read_description. All uses updated. i386-specific
5302 code conditionalized. Conditionalized amd64-specific code added.
5303 One sizeof replaced with the actual type it is describing.
5304
2acf3cd0
GB
53052014-07-11 Gary Benson <gbenson@redhat.com>
5306
5307 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5308 x86_linux_dr_get. All uses updated.
5309 (amd64_linux_dr_set): Renamed to
5310 x86_linux_dr_set. All uses updated.
5311 (amd64_linux_dr_get_addr): Renamed to
5312 x86_linux_dr_get_addr. All uses updated.
5313 (amd64_linux_dr_get_control): Renamed to
5314 x86_linux_dr_get_control. All uses updated.
5315 (amd64_linux_dr_get_status): Renamed to
5316 x86_linux_dr_get_status. All uses updated.
5317 (amd64_linux_dr_set_control): Renamed to
5318 x86_linux_dr_set_control. All uses updated.
5319 (amd64_linux_dr_set_addr): Renamed to
5320 x86_linux_dr_set_addr. All uses updated.
5321 (amd64_linux_prepare_to_resume): Renamed to
5322 x86_linux_prepare_to_resume. All uses updated.
5323 (amd64_linux_new_thread): Renamed to
5324 x86_linux_new_thread. All uses updated.
5325 (amd64_linux_new_fork): Renamed to
5326 x86_linux_new_fork. All uses updated.
5327 (amd64_linux_child_post_startup_inferior): Renamed to
5328 x86_linux_child_post_startup_inferior. All uses updated.
5329 (amd64_linux_enable_btrace): Renamed to
5330 x86_linux_enable_btrace. All uses updated.
5331 (amd64_linux_disable_btrace): Renamed to
5332 x86_linux_disable_btrace. All uses updated.
5333 (amd64_linux_teardown_btrace): Renamed to
5334 x86_linux_teardown_btrace. All uses updated.
5335 (amd64_linux_read_btrace): Renamed to
5336 x86_linux_read_btrace. All uses updated.
5337 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5338 x86_linux_dr_get. All uses updated.
5339 (i386_linux_dr_set): Renamed to
5340 x86_linux_dr_set. All uses updated.
5341 (i386_linux_dr_get_addr): Renamed to
5342 x86_linux_dr_get_addr. All uses updated.
5343 (i386_linux_dr_get_control): Renamed to
5344 x86_linux_dr_get_control. All uses updated.
5345 (i386_linux_dr_get_status): Renamed to
5346 x86_linux_dr_get_status. All uses updated.
5347 (i386_linux_dr_set_control): Renamed to
5348 x86_linux_dr_set_control. All uses updated.
5349 (i386_linux_dr_set_addr): Renamed to
5350 x86_linux_dr_set_addr. All uses updated.
5351 (i386_linux_prepare_to_resume): Renamed to
5352 x86_linux_prepare_to_resume. All uses updated.
5353 (i386_linux_new_thread): Renamed to
5354 x86_linux_new_thread. All uses updated.
5355 (i386_linux_new_fork): Renamed to
5356 x86_linux_new_fork. All uses updated.
5357 (i386_linux_child_post_startup_inferior): Renamed to
5358 x86_linux_child_post_startup_inferior. All uses updated.
5359 (i386_linux_enable_btrace): Renamed to
5360 x86_linux_enable_btrace. All uses updated.
5361 (i386_linux_disable_btrace): Renamed to
5362 x86_linux_disable_btrace. All uses updated.
5363 (i386_linux_teardown_btrace): Renamed to
5364 x86_linux_teardown_btrace. All uses updated.
5365 (i386_linux_read_btrace): Renamed to
5366 x86_linux_read_btrace. All uses updated.
5367
b9c1d481
AS
53682014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5369
5370 * remote.c (extended_remote_post_attach): New function.
5371 (init_extended_remote_ops): Install it as to_post_attach method.
5372
7180e04a
PA
53732014-07-09 Pedro Alves <palves@redhat.com>
5374
5375 * infcmd.c (attach_command_post_wait): Don't call
5376 target_terminal_inferior here.
5377 (attach_command): Call it here instead.
5378
9a9a7608
AB
53792014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5380
5381 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5382 field.
5383 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5384 from varobj.c, with additional checks.
5385 (c_varobj_ops): Fill in is_path_expr_parent field.
5386 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5387 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5388 field.
5389 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5390 ops method.
5391 (varobj_default_is_path_expr_parent): New function.
5392 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5393 (varobj_default_is_path_expr_parent): Declare new function.
5394
1f267ae3
MM
53952014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5396
5397 * infcmd.c (finish_backward): Turn internal error into normal error.
5398
b2ee242b
PA
53992014-07-07 Pedro Alves <palves@redhat.com>
5400
8a869bca 5401 PR gdb/17096
b2ee242b
PA
5402 * remote.c (async_handle_remote_sigint)
5403 (async_handle_remote_sigint_twice): Call
5404 gdb_call_async_signal_handler instead of
5405 mark_async_signal_handler.
5406
38e229b2
TT
54072014-07-07 Tom Tromey <tromey@redhat.com>
5408
5409 * target-delegates.c: Rebuild.
5410 * target.c (target_info_record): Remove.
5411 * record.c (info_record_command): Unconditionally call
5412 to_info_record.
5413 * target.h (struct target_ops) <to_info_record>: Use
5414 TARGET_DEFAULT_IGNORE.
5415 (target_info_record): Remove.
5416
f0f9ff95
TT
54172014-07-07 Tom Tromey <tromey@redhat.com>
5418
5419 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5420 TARGET_DEFAULT_NORETURN.
5421 * target.c (generic_tls_error): New function.
5422 (target_translate_tls_address): Don't search target stack.
5423 * target-delegates.c: Rebuild.
5424 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5425 stack.
5426 * linux-thread-db.c (thread_db_get_thread_local_address):
5427 Unconditionally call beneath target.
5428
4a5be5ee
MK
54292014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5430
5431 * cli/cli-logging.c (pop_output_files): Assign targerr to
5432 gdb_stdtargerr.
5433
92c3b204
AB
54342014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5435
5436 * MAINTAINERS (Write After Approval): Update my email address.
5437
9b11e3a7
GB
54382014-07-02 Gary Benson <gbenson@redhat.com>
5439
5440 * proc-service.c (ps_xfer_memory): Update comment.
5441 (ps_pstop): Remove unused function.
5442 (ps_pcontinue): Likewise.
5443 (ps_lstop): Likewise.
5444 (ps_lcontinue): Likewise.
5445 (ps_lgetxregsize): Likewise.
5446 (ps_lgetxregs): Likewise.
5447 (ps_lsetxregs): Likewise.
5448 (ps_plog): Likewise.
5449 (ps_ptread): Likewise.
5450 (ps_ptwrite): Likewise.
5451
cf363f18
MW
54522014-07-01 Mark Wielaard <mjw@redhat.com>
5453
5454 * dwarf2read.c (add_array_cv_type): New function.
5455 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5456 (read_tag_volatile_type): Likewise.
5457
82ae6c8d
TT
54582014-07-01 Tom Tromey <tromey@redhat.com>
5459
5460 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5461 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5462 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5463 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5464 * command.h (cmd_cfunc_ftype): Move earlier.
5465 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5466 (add_com, add_info): Use cmd_cfunc_ftype.
5467
96142726
TT
54682014-06-30 Tom Tromey <tromey@redhat.com>
5469
5470 * symtab.c (operator_chars): Make parameters and return type
5471 const.
5472 (file_matches): Make "files" const.
5473 (struct search_symbols_data) <files>: Now const.
5474 (search_symbols): Make "regexp" and "files" parameters const.
5475 Update.
5476 (symtab_symbol_info): Remove cast.
5477 (rbreak_command): Update.
5478 * symtab.h (search_symbols): Update.
5479
b67a2c6f
YQ
54802014-06-27 Yao Qi <yao@codesourcery.com>
5481
5482 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5483 Change parameter type to 'struct thread_info *'. Caller
5484 updated.
5485 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5486 Update declaration.
5487 * dummy-frame.c (struct dummy_frame_id): New.
5488 (dummy_frame_id_eq): New function.
5489 (struct dummy_frame) <id>: Change its type to 'struct
5490 dummy_frame_id'.
5491 (dummy_frame_push): Add parameter ptid and save it in
5492 dummy_frame_id.
5493 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5494 inferior_ptid.
5495 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5496 to inferior_ptid.
5497 (lookup_dummy_frame): Change parameter type to 'struct
5498 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5499 instead of frame_id_eq.
5500 (dummy_frame_pop): Add parameter ptid. Callers updated.
5501 Update comments. Compose dummy_frame_id and pass it to
5502 lookup_dummy_frame.
5503 (dummy_frame_discard): Add parameter ptid.
5504 (dummy_frame_sniffer): Compose dummy_frame_id and call
5505 dummy_frame_id_eq instead of frame_id_eq.
5506 (fprint_dummy_frames): Print ptid.
5507 * dummy-frame.h: Remove comments.
5508 (dummy_frame_push): Add ptid in declaration.
5509 (dummy_frame_pop, dummy_frame_discard): Likewise.
5510
5b10184c
TT
55112014-06-26 Tom Tromey <tromey@redhat.com>
5512
5513 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5514 * command.h (error_no_arg): Update.
5515
06900326
TT
55162014-06-26 Tom Tromey <tromey@redhat.com>
5517
5518 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5519 (do_show_command): Make "arg" const.
5520 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5521
c2bcbb1d
TT
55222014-06-26 Tom Tromey <tromey@redhat.com>
5523
5524 * record-full.c (record_full_get_bookmark): Make "args" const.
5525 (record_full_goto_bookmark): Make "raw_bookmark" const.
5526 * record.c (record_goto): New function.
5527 (cmd_record_goto): Use it. Now static.
5528 * record.h (record_goto): Declare.
5529 (cmd_record_goto): Remove declaration.
5530 * target-delegates.c: Rebuild.
5531 * target.h (struct target_ops) <to_get_bookmark,
5532 to_goto_bookmark>: Make parameter const.
5533
9cbe5fff
TT
55342014-06-26 Tom Tromey <tromey@redhat.com>
5535
5536 * defs.h (generic_load): Update.
5537 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5538 * monitor.c (monitor_load): Make "args" const.
5539 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5540 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5541 const.
5542 (mips_load): Make "file" const.
5543 * remote-sim.c (gdbsim_load): Make "args" const.
5544 * remote.c (remote_load): Make "name" const.
5545 * symfile.c (generic_load): Make "args" const.
5546 * target-delegates.c: Rebuild.
5547 * target.c (target_load): Make "arg" const.
5548 (debug_to_load): Make "args" const.
5549 * target.h (struct target_ops) <to_load>: Make parameter const.
5550 (target_load): Update.
5551
34a68019
TT
55522014-06-26 Tom Tromey <tromey@redhat.com>
5553
5554 PR symtab/16902:
5555 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5556 (dwarf2_physname, read_partial_die)
5557 (guess_partial_die_structure_name, fixup_partial_die)
5558 (guess_full_die_structure_name, anonymous_struct_prefix)
5559 (dwarf2_name): Use per-BFD obstack.
5560
efc889c1
YQ
55612014-06-26 Yao Qi <yao@codesourcery.com>
5562
5563 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5564 dummyframe and this_id into inner block below.
5565
4395285e
YQ
55662014-06-26 Yao Qi <yao@codesourcery.com>
5567
5568 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5569 with "signal_pass[0]" in the initialization of signal_pass.
5570
aef92902
MM
55712014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5572
5573 * record-btrace.c (record_btrace_generating_corefile)
5574 (record_btrace_prepare_to_generate_core)
5575 (record_btrace_done_generating_core): New.
5576 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5577 (record_btrace_store_registers, record_btrace_prepare_to_store):
5578 Forward request when generating a core file.
5579 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5580 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5581 to_done_generating_core.
5582
5fff78c4
MM
55832014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5584
5585 * target.h (target_ops) <to_prepare_to_generate_core>
5586 <to_done_generating_core>: New.
5587 (target_prepare_to_generate_core, target_done_generating_core): New.
5588 * target.c (target_prepare_to_generate_core)
5589 (target_done_generating_core): New.
5590 * target-delegates.c: Regenerate.
5591 * gcore.c: (write_gcore_file): Rename to ...
5592 (write_gcore_file_1): ...this.
5593 (write_gcore_file): Call target_prepare_to_generate_core
5594 and target_done_generating_core.
5595
1d1f1ccb
MM
55962014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5597
5598 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5599 * gcore.c (write_gcore_file): Free memory returned from
5600 make_corefile_notes.
5601 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5602 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5603
3343ef86
YQ
56042014-06-24 Yao Qi <yao@codesourcery.com>
5605
5606 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5607 (arm_linux_init_abi): Set skip_trampoline_code with
5608 gdbarch_skip_trampoline_code instead of
5609 find_solib_trampoline_target.
5610
18d18ac8
YQ
56112014-06-24 Yao Qi <yao@codesourcery.com>
5612
5613 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5614 arm_skip_bx_reg returns non-zero.
5615
80d8d390
YQ
56162014-06-24 Yao Qi <yao@codesourcery.com>
5617
5618 * arm-tdep.c (arm_skip_bx_reg): New function.
5619 (arm_skip_stub): Call arm_skip_bx_reg.
5620
6a18a01c
DB
56212014-06-23 Don Breazeal <donb@codesourcery.com>
5622
5623 * MAINTAINERS: Add myself as write-after-approval maintainer.
5624
8e9db26e
PA
56252014-06-23 Pedro Alves <palves@redhat.com>
5626
5627 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5628 DR_CONTROL before setting DR0..DR3.
5629 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5630 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5631 bits of DR_CONTROL related to the debug register slot being
5632 disabled. If all slots are vacant, clear local slowdown as well,
5633 and assert DR_CONTROL is 0.
5634
70afc5b7
SC
56352014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5636
5637 * python/lib/gdb/command/xmethods.py
5638 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5639 current progspace only if the string "progspace" matches LOCUS_RE.
5640
840ed64d
JK
56412014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5642
5643 Fix --with-system-readline with readline-6.3 patch 5.
5644 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5645 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5646 types.
5647
26f2dc30
TT
56482014-06-20 Tom Tromey <tromey@redhat.com>
5649
5650 * dwarf2read.c (dw2_get_real_path): Use correct type in
5651 OBSTACK_CALLOC.
5652 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5653
125f8a3d
GB
56542014-06-20 Gary Benson <gbenson@redhat.com>
5655
5656 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5657 * common/glibc_thread_db.h: Likewise.
5658 * common/i386-cpuid.h: Likewise.
5659 * common/i386-gcc-cpuid.h: Likewise.
5660 * common/linux-btrace.h: Likewise.
5661 * common/linux-osdata.h: Likewise.
5662 * common/linux-procfs.h: Likewise.
5663 * common/linux-ptrace.h: Likewise.
5664 * common/mips-linux-watch.h: Likewise.
5665 * common/linux-btrace.c: Moved to nat.
5666 * common/linux-osdata.c: Likewise.
5667 * common/linux-procfs.c: Likewise.
5668 * common/linux-ptrace.c: Likewise.
5669 * common/mips-linux-watch.c: Likewise.
5670 * nat/gdb_thread_db.h: Moved from common.
5671 * nat/glibc_thread_db.h: Likewise.
5672 * nat/i386-cpuid.h: Likewise.
5673 * nat/i386-gcc-cpuid.h: Likewise.
5674 * nat/linux-btrace.c: Likewise.
5675 * nat/linux-btrace.h: Likewise.
5676 * nat/linux-osdata.c: Likewise.
5677 * nat/linux-osdata.h: Likewise.
5678 * nat/linux-procfs.c: Likewise.
5679 * nat/linux-procfs.h: Likewise.
5680 * nat/linux-ptrace.c: Likewise.
5681 * nat/linux-ptrace.h: Likewise.
5682 * nat/mips-linux-watch.c: Likewise.
5683 * nat/mips-linux-watch.h: Likewise.
5684 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5685 (object file files): Reordered.
5686 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5687 of glibc_thread_db.h.
5688
42995dbd
GB
56892014-06-20 Gary Benson <gbenson@redhat.com>
5690
5691 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5692 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5693 (i386_dr_low): Likewise.
5694 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5695 (i386_dr_low_set_addr): Likewise.
5696 (i386_dr_low_get_addr): Likewise.
5697 (i386_dr_low_can_set_control): Likewise.
5698 (i386_dr_low_set_control): Likewise.
5699 (i386_dr_low_get_control): Likewise.
5700 (i386_dr_low_get_status): Likewise.
5701 (i386_get_debug_register_length): Likewise.
5702 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5703 (i386_dr_low): Likewise.
5704 * nat/i386-dregs.c (i386-low.h): Remove include.
5705 (i386-nat.h): Likewise.
5706 (nat/i386-dregs.h): New include.
5707 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5708 (i386_dr_low_set_addr): Likewise.
5709 (i386_dr_low_get_addr): Likewise.
5710 (i386_dr_low_can_set_control): Likewise.
5711 (i386_dr_low_set_control): Likewise.
5712 (i386_dr_low_get_control): Likewise.
5713 (i386_dr_low_get_status): Likewise.
5714 (i386_get_debug_register_length): Likewise.
5715 (debug_hw_points): Likewise.
5716
3ed9baed
IB
57172014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5718
5719 * Makefile.in (SFILES): Add d-exp.y.
5720 (YYFILES): Add d-exp.c.
5721 (YYOBJ): Add d-exp.o.
5722 (local-maintainer-clean): Delete d-exp.c.
5723 * d-exp.y: New file.
5724 * d-lang.h (d_parse): New declaration.
5725 (d_error): New declaration.
5726 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5727 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5728 PREC_ORDER operators.
5729 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5730
78c164b0
YQ
57312014-06-19 Yao Qi <yao@codesourcery.com>
5732
5733 * gdbthread.h (any_running): Remove the declaration.
5734 * thread.c (any_running): Remove.
5735
f6e29b6e
YQ
57362014-06-19 Yao Qi <yao@codesourcery.com>
5737
5738 * gdbthread.h (struct thread_info) <state>: Change its type to
5739 'enum thread_state'. Update comments.
5740
034f788c
PA
57412014-06-19 Pedro Alves <palves@redhat.com>
5742
5743 * gdbthread.h (ALL_THREADS): Delete.
5744 (ALL_NON_EXITED_THREADS): New macro.
5745 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5746 instead of ALL_THREADS.
5747 * infrun.c (find_thread_needs_step_over)
5748 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5749 instead of ALL_THREADS.
5750 * record-btrace.c (record_btrace_open)
5751 (record_btrace_stop_recording, record_btrace_close)
5752 (record_btrace_is_replaying, record_btrace_resume)
5753 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5754 * remote.c (append_pending_thread_resumptions): Likewise.
5755 * thread.c (thread_apply_all_command): Likewise.
5756
46e33252
GB
57572014-06-19 Gary Benson <gbenson@redhat.com>
5758
5759 * i386-nat.c (i386_stopped_by_watchpoint):
5760 Use i386_dr_stopped_by_watchpoint.
5761 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5762 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5763
3a8ee006
GB
57642014-06-19 Gary Benson <gbenson@redhat.com>
5765
5766 * nat/i386-dregs.c: New file.
5767 * Makefile.in (i386-dregs.o): New rule.
5768 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5769 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5770 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5771 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5772 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5773 * config/i386/go32.mh (NATDEPFILES): Likewise.
5774 * config/i386/linux.mh (NATDEPFILES): Likewise.
5775 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5776 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5777 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5778 * i386-nat.h (debug_hw_points): New declaration.
5779 * i386-nat.c (breakpoint.h): Remove include.
5780 (command.h): Likewise.
5781 (target.h): Likewise.
5782 (gdb_assert.h): Likewise.
5783 (debug_hw_points): Made nonstatic.
5784 (debug_printf): Now in i386-dregs.c.
5785 (TARGET_HAS_DR_LEN_8): Likewise.
5786 (DR_CONTROL_SHIFT): Likewise.
5787 (DR_CONTROL_SIZE): Likewise.
5788 (DR_RW_EXECUTE): Likewise.
5789 (DR_RW_WRITE): Likewise.
5790 (DR_RW_READ): Likewise.
5791 (DR_RW_IORW): Likewise.
5792 (DR_LEN_1): Likewise.
5793 (DR_LEN_2): Likewise.
5794 (DR_LEN_4): Likewise.
5795 (DR_LEN_8): Likewise.
5796 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5797 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5798 (DR_ENABLE_SIZE): Likewise.
5799 (DR_LOCAL_SLOWDOWN): Likewise.
5800 (DR_GLOBAL_SLOWDOWN): Likewise.
5801 (DR_CONTROL_RESERVED): Likewise.
5802 (I386_DR_CONTROL_MASK): Likewise.
5803 (I386_DR_VACANT): Likewise.
5804 (I386_DR_LOCAL_ENABLE): Likewise.
5805 (I386_DR_GLOBAL_ENABLE): Likewise.
5806 (I386_DR_DISABLE): Likewise.
5807 (I386_DR_SET_RW_LEN): Likewise.
5808 (I386_DR_GET_RW_LEN): Likewise.
5809 (I386_DR_WATCH_HIT): Likewise.
5810 (i386_wp_op_t): Likewise.
5811 (i386_show_dr): Likewise.
5812 (i386_length_and_rw_bits): Likewise.
5813 (i386_insert_aligned_watchpoint): Likewise.
5814 (i386_remove_aligned_watchpoint): Likewise.
5815 (i386_handle_nonaligned_watchpoint): Likewise.
5816 (i386_update_inferior_debug_regs): Likewise.
5817 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5818 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5819 (i386_region_ok_for_watchpoint):
5820 Use i386_dr_region_ok_for_watchpoint.
5821 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5822
322a8e06
GB
58232014-06-19 Gary Benson <gbenson@redhat.com>
5824
5825 * i386-nat.c (i386_insert_hw_breakpoint): Use
5826 i386_insert_watchpoint.
5827 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5828
8f26655c
GB
58292014-06-19 Gary Benson <gbenson@redhat.com>
5830
5831 * i386-nat.c (i386_dr_show): Renamed to
5832 i386_show_dr and made static. All uses updated.
5833 (i386_dr_length_and_rw_bits): Renamed to
5834 i386_length_and_rw_bits and made static.
5835 All uses updated.
5836 (i386_dr_insert_aligned_watchpoint): Renamed to
5837 i386_insert_aligned_watchpoint and made static.
5838 All uses updated.
5839 (i386_dr_remove_aligned_watchpoint): Renamed to
5840 i386_remove_aligned_watchpoint and made static.
5841 All uses updated.
5842 (i386_dr_update_inferior_debug_regs): Renamed to
5843 i386_update_inferior_debug_regs and made static.
5844 All uses updated.
5845 * nat/i386-dregs.h (i386_dr_show): Removed.
5846 (i386_dr_length_and_rw_bits): Likewise.
5847 (i386_dr_insert_aligned_watchpoint): Likewise.
5848 (i386_dr_remove_aligned_watchpoint): Likewise.
5849 (i386_dr_update_inferior_debug_regs): Likewise.
5850
992c7d70
GB
58512014-06-19 Gary Benson <gbenson@redhat.com>
5852
5853 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5854 * configure: Regenerate.
5855 * config.in: Likewise.
5856 * main.c (signal.h): New include.
5857 (setup_alternate_signal_stack): New function.
5858 (captured_main): Call the above.
5859 * cp-support.c (signal.h): New include.
5860 (catch_demangler_crashes): New flag.
5861 (SIGJMP_BUF): New define.
5862 (SIGSETJMP): Likewise.
5863 (SIGLONGJMP): Likewise.
5864 (gdb_demangle_jmp_buf): New static global.
5865 (gdb_demangle_attempt_core_dump): Likewise.
5866 (gdb_demangle_signal_handler): New function.
5867 (gdb_demangle): If catch_demangler_crashes is set, install the
5868 above signal handler before calling bfd_demangle, and restore
5869 the original signal handler afterwards. Display the offending
5870 symbol and call demangler_warning the first time a segmentation
5871 fault is caught.
5872 (_initialize_cp_support): New maint set/show command.
5873
eae7090b
GB
58742014-06-19 Gary Benson <gbenson@redhat.com>
5875
5876 * utils.h (resource_limit_kind): New enum.
5877 (can_dump_core): New declaration.
5878 (warn_cant_dump_core): Likewise.
5879 (dump_core): Likewise.
5880 * utils.c (dump_core): Made nonstatic. Added new
5881 parameter "limit_kind".
5882 (can_dump_core): Made nonstatic. Moved printing code to...
5883 (warn_cant_dump_core): New function.
5884 (can_dump_core_warn): Likewise.
5885 (internal_vproblem): Replace calls to can_dump_core with
5886 calls to can_dump_core_warn. Supply new argument to each.
5887
57fcfb1b
GB
58882014-06-19 Gary Benson <gbenson@redhat.com>
5889
5890 * utils.h (demangler_vwarning): New declaration.
5891 (demangler_warning): Likewise.
5892 * utils.c (struct internal_problem)
5893 <user_settable_should_quit>: New field.
5894 <user_settable_should_dump_core>: Likewise
5895 (internal_error_problem): Add values for above new fields.
5896 (internal_warning_problem): Likewise.
5897 (demangler_warning_problem): New static global.
5898 (demangler_vwarning): New function.
5899 (demangler_warning): Likewise.
5900 (add_internal_problem_command): Selectively add commands.
5901 (_initialize_utils): New internal problem command.
5902 * maint.c (maintenance_demangler_warning): New function.
5903 (_initialize_maint_cmds): New command.
5904
17a40b44
TT
59052014-06-18 Tom Tromey <tromey@redhat.com>
5906
5907 * f-valprint.c (info_common_command_for_block): Update.
5908 * symtab.h (struct general_symbol_info) <common_block>: Now
5909 const.
5910
346d1dfe
TT
59112014-06-18 Tom Tromey <tromey@redhat.com>
5912
5913 * symtab.h (struct symtab) <blockvector>: Now const.
5914 * ada-lang.c (ada_add_global_exceptions): Update.
5915 * buildsym.c (augment_type_symtab): Update.
5916 * dwarf2read.c (dw2_lookup_symbol): Update.
5917 * jit.c (finalize_symtab): Update.
5918 * jv-lang.c (add_class_symtab_symbol): Update.
5919 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5920 Update.
5921 * objfiles.c (objfile_relocate1): Update.
5922 * psymtab.c (lookup_symbol_aux_psymtabs)
5923 (maintenance_check_psymtabs): Update.
5924 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5925 Update.
5926 * spu-tdep.c (spu_catch_start): Update.
5927 * symmisc.c (dump_symtab_1): Update.
5928 * symtab.c (lookup_global_symbol_from_objfile)
5929 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5930 (basic_lookup_transparent_type_quick)
5931 (basic_lookup_transparent_type, find_pc_sect_symtab)
5932 (find_pc_sect_line, search_symbols): Update.
5933 * block.c (find_block_in_blockvector): Make "bl" const.
5934 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5935 const.
5936 (blockvector_contains_pc): Make "bv" const.
5937 (block_for_pc_sect): Update.
5938 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5939 (blockvector_contains_pc): Update.
5940 * breakpoint.c (resolve_sal_pc): Update.
5941 * inline-frame.c (block_starting_point_at): Update.
5942
1834676b
TT
59432014-06-18 Tom Tromey <tromey@redhat.com>
5944
5945 * completer.c (complete_line): Make "line_buffer" const.
5946 * completer.h (complete_line): Update.
5947
ac1a991b
TT
59482014-06-18 Tom Tromey <tromey@redhat.com>
5949
5950 * symtab.c (add_macro_name): Remove unneeded cast.
5951
5bc98e52
TT
59522014-06-18 Tom Tromey <tromey@redhat.com>
5953
5954 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5955 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5956
8236def8
TT
59572014-06-18 Tom Tromey <tromey@redhat.com>
5958
5959 * probe.c (info_probes_for_ops): Make "arg" const.
5960 * probe.h (info_probes_for_ops): Update.
5961
3977b71f
TT
59622014-06-18 Tom Tromey <tromey@redhat.com>
5963
5964 * varobj.c (varobj_create): Update.
5965 * valops.c (value_of_this): Update.
5966 * tracepoint.c (add_local_symbols, scope_info): Update.
5967 * symtab.h (struct general_symbol_info) <block>: Now const.
5968 * symtab.c (skip_prologue_sal)
5969 (default_make_symbol_completion_list_break_on)
5970 (skip_prologue_using_sal): Update.
5971 * stack.h (iterate_over_block_locals)
5972 (iterate_over_block_local_vars): Update.
5973 * stack.c (print_frame_args): Update.
5974 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5975 parameter const.
5976 (get_selected_block): Make return type const.
5977 * python/py-frame.c (frapy_block): Update.
5978 * python/py-block.c (gdbpy_block_for_pc): Update.
5979 * p-exp.y (%union) <bval>: Now const.
5980 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5981 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5982 * m2-exp.y (%union) <bval>: Now const.
5983 * linespec.c (get_current_search_block): Make return type const.
5984 (create_sals_line_offset, find_label_symbols): Update.
5985 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5986 Update.
5987 (block_starting_point_at): Make "block" const.
5988 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5989 (check_exception_resume): Update.
5990 * guile/scm-frame.c (gdbscm_frame_block): Update.
5991 * guile/scm-block.c (gdbscm_lookup_block): Update.
5992 * frame.h (get_frame_block): Update.
5993 (get_selected_block): Make return type const.
5994 * frame.c (frame_id_inner): Update.
5995 * f-valprint.c (info_common_command_for_block)
5996 (info_common_command): Update.
5997 * dwarf2loc.c (dwarf2_find_location_expression)
5998 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5999 (locexpr_describe_location_piece): Update.
6000 * c-exp.y (%union) <bval>: Now const.
6001 * breakpoint.c (resolve_sal_pc): Update.
6002 * blockframe.c (get_frame_block):Make return type const.
6003 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6004 (block_innermost_frame): Update.
6005 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6006 (block_for_pc, block_for_pc_sect): Update.
6007 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6008 'pblock' const.
6009 (block_for_pc_sect, block_for_pc): Make return type const.
6010 * ax-gdb.c (gen_expr): Update.
6011 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6012 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6013 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6014 (ada_read_var_value): Update.
6015 * ada-exp.y (struct name_info) <block>: Now const.
6016 (%union): Likewise.
6017 (block_lookup): Constify.
6018
b9228891
GB
60192014-06-18 Gary Benson <gbenson@redhat.com>
6020
6021 * nat/i386-dregs.h: New file.
6022 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6023 * i386-nat.h (i386-dregs.h): New include.
6024 (DR_FIRSTADDR): Now in i386-dregs.h.
6025 (DR_LASTADDR): Likewise.
6026 (DR_NADDR): Likewise.
6027 (DR_STATUS): Likewise.
6028 (DR_CONTROL): Likewise.
6029 (i386_debug_reg_state): Likewise.
6030 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6031
a1aa2221
LM
60322014-06-18 Don Breazeal <donb@codesourcery.com>
6033
6034 * breakpoint.c (set_longjmp_breakpoint): Call
6035 momentary_breakpoint_from_master with additional argument.
6036 (set_longjmp_breakpoint_for_call_dummy): Call
6037 momentary_breakpoint_from_master with additional argument.
6038 (set_std_terminate_breakpoint): Call
6039 momentary_breakpoint_from_master with additional argument.
6040 (momentary_breakpoint_from_master): Add argument to function
6041 definition and use it to initialize structure member flag.
74228e77 6042 (clone_momentary_breakpoint): Call
a1aa2221
LM
6043 momentary_breakpoint_from_master with additional argument.
6044 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6045 member flags set in momentary_breakpoint_from_master.
6046
4be83cc2
GB
60472014-06-18 Gary Benson <gbenson@redhat.com>
6048
6049 * i386-nat.c (i386_show_dr): Renamed to
6050 i386_dr_show and made nonstatic. All uses updated.
6051 (i386_length_and_rw_bits): Renamed to
6052 i386_dr_length_and_rw_bits and made nonstatic.
6053 All uses updated.
6054 (i386_insert_aligned_watchpoint): Renamed to
6055 i386_dr_insert_aligned_watchpoint and made nonstatic.
6056 All uses updated.
6057 (i386_remove_aligned_watchpoint): Renamed to
6058 i386_dr_remove_aligned_watchpoint and made nonstatic.
6059 All uses updated.
6060 (i386_update_inferior_debug_regs): Renamed to
6061 i386_dr_update_inferior_debug_regs and made nonstatic.
6062 All uses updated.
6063
131aa0d4
GB
60642014-06-18 Gary Benson <gbenson@redhat.com>
6065
6066 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6067 (i386_dr_low_can_set_control): Likewise.
6068 (i386_dr_low_set_addr): Likewise.
6069 (i386_dr_low_set_control): Likewise.
6070 (i386_dr_low_get_addr): Likewise.
6071 (i386_dr_low_get_status): Likewise.
6072 (i386_dr_low_get_control): Likewise.
6073 (i386_insert_aligned_watchpoint): Use new macros.
6074 (i386_update_inferior_debug_regs): Likewise.
6075 (i386_stopped_data_address): Likewise.
6076
d9305f7f
GB
60772014-06-18 Gary Benson <gbenson@redhat.com>
6078
6079 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6080 New parameter. All uses updated.
6081
ea008da4
GB
60822014-06-18 Gary Benson <gbenson@redhat.com>
6083
6084 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6085 All uses updated.
6086
1b6d4134
GB
60872014-06-18 Gary Benson <gbenson@redhat.com>
6088
6089 * i386-nat.c (debug_printf): New macro.
6090 (i386_get_debug_register_length): Likewise.
6091 (TARGET_HAS_DR_LEN_8): Use above macro.
6092 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6093 and printf_unfiltered. Use phex to format values.
6094
9b4550ef
GB
60952014-06-18 Gary Benson <gbenson@redhat.com>
6096
6097 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6098 Make const.
6099
6e62758f
GB
61002014-06-18 Gary Benson <gbenson@redhat.com>
6101
6102 * i386-nat.c: Comment changes.
6103
51c79e94
GB
61042014-06-18 Gary Benson <gbenson@redhat.com>
6105
6106 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6107
3e11889a
GB
61082014-06-18 Gary Benson <gbenson@redhat.com>
6109
6110 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6111 (i386_insert_aligned_watchpoint): Likewise.
6112 (i386_remove_aligned_watchpoint): Likewise.
6113 (i386_handle_nonaligned_watchpoint): Likewise.
6114
fc6e2f03
GB
61152014-06-18 Gary Benson <gbenson@redhat.com>
6116
6117 * i386-nat.c: Whitespace changes.
6118
2afe7d50
SB
61192014-06-17 Samuel Bronson <naesten@gmail.com>
6120
6121 * MAINTAINERS: Update Roland McGrath's email address.
6122 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6123 Red Hat a while ago, and giving me a current address.
2afe7d50 6124
3bca49ee
TT
61252014-06-17 Tom Tromey <tromey@redhat.com>
6126
6127 * utils.h (savestring): Remove declaration.
6128
6e366df1
TT
61292014-06-17 Tom Tromey <tromey@redhat.com>
6130
6131 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6132
6be47f0c
KS
61332014-06-16 Keith Seitz <keiths@redhat.com>
6134
6135 PR mi/15863
6136 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6137 to update the varobj if inferior_ptid is null_ptid.
6138
7bc112c1
TT
61392014-06-16 Tom Tromey <tromey@redhat.com>
6140
6141 * target.h (struct target_ops) <to_info_proc>: Make parameter
6142 const.
6143 (target_info_proc): Update.
6144 * target.c (target_info_proc): Make "args" const.
6145 * procfs.c (procfs_info_proc): Update.
6146 * linux-tdep.c (linux_info_proc): Update.
6147 (linux_core_info_proc_mappings): Make "args" const.
6148 (linux_core_info_proc): Update.
6149 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6150 * gdbarch.c: Rebuild.
6151 * gdbarch.h: Rebuild.
6152 * corelow.c (core_info_proc): Update.
6153
fee354ee
TT
61542014-06-16 Tom Tromey <tromey@redhat.com>
6155
6156 * target.h (struct target_ops) <to_disconnect>: Make parameter
6157 const.
6158 (target_disconnect): Update.
6159 * target.c (target_disconnect): Make "args" const.
6160 * target-delegates.c: Rebuild.
6161 * remote.c (remote_disconnect): Update.
6162 * record.h (record_disconnect): Update.
6163 * record.c (record_disconnect): Update.
6164 * inf-child.c (inf_child_disconnect): Update.
6165
a30bf1f1
TT
61662014-06-16 Tom Tromey <tromey@redhat.com>
6167
6168 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6169 * target.c (debug_to_rcmd, default_rcmd): Update.
6170 * target-delegates.c: Rebuild.
6171 * remote.c (remote_rcmd): Update.
6172 * monitor.c (monitor_rcmd): Update.
6173
d03de421
PA
61742014-06-16 Pedro Alves <palves@redhat.com>
6175
6176 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6177 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6178 have OBJF_SHARED set.
6179 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6180 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6181 instead of OBJF_USERLOADED.
6182 * objfiles.h (OBJF_SHARED): Update comment.
6183 (userloaded_objfile_contains_address_p): Rename to ...
6184 (shared_objfile_contains_address_p): ... this, and update
6185 comments.
6186 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6187 new objfile.
6188 (remove_symbol_file_command): Skip objfiles that don't have
6189 OBJF_SHARED set.
6190
99f4262f
TT
61912014-06-16 Tom Tromey <tromey@redhat.com>
6192
6193 * minsyms.h (prim_record_minimal_symbol)
6194 (prim_record_minimal_symbol_and_info): Update comments.
6195
97d66cc6
EZ
61962014-06-14 Eli Zaretskii <eliz@gnu.org>
6197
6198 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6199 or --without-guile, according to how GDB was built.
6200
635c7e8a
TT
62012014-06-13 Tom Tromey <tromey@redhat.com>
6202
6203 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6204 to help_list.
6205 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6206 to help_list.
6207 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6208 help_list.
6209 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6210 help_list.Pass all_commands, not -1, to help_list.
6211 * cli/cli-dump.c (dump_command, append_command)
6212 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6213 (binary_dump_command, binary_append_command): Pass all_commands,
6214 not -1, to help_list.
6215 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6216 -1, to help_list.
6217 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6218 -1, to help_list.
6219 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6220 help_list.
6221 * top.c (set_history): Pass all_commands, not -1, to help_list.
6222 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6223 all_commands, not -1, to help_list.
6224 * symfile.c (overlay_command): Pass all_commands, not -1, to
6225 help_list.
6226 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6227 help_list.
6228 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6229 help_list.
6230 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6231 -1, to help_list.
6232 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6233 not -1, to help_list.
6234 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6235 not -1, to help_list.
6236 * maint.c (maintenance_command, maintenance_info_command)
6237 (maintenance_print_command, maintenance_set_cmd): Pass
6238 all_commands, not -1, to help_list.
6239 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6240 help_list.
6241 * language.c (set_check): Pass all_commands, not -1, to help_list.
6242 * infcmd.c (unset_command): Pass all_commands, not -1, to
6243 help_list.
6244 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6245 help_list.
6246 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6247 help_list.
6248 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6249 help_list.
6250 * breakpoint.c (save_command): Pass all_commands, not -1, to
6251 help_list.
6252 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6253 all_commands, not -1, to help_list.
6254
b94ade42
PL
62552014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6256
6257 * regcache.c (struct register_to_invalidate): New structure.
6258 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6259 functions.
6260 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6261
31f628ae
YQ
62622014-06-12 Yao Qi <yao@codesourcery.com>
6263
6264 * varobj.c (varobj_get_num_children): Call
6265 varobj_is_dynamic_p.
6266 (varobj_list_children): Likewise.
6267 (varobj_update): Likewise. Update comments.
6268
cde5ef40
YQ
62692014-06-12 Yao Qi <yao@codesourcery.com>
6270
6271 * varobj.c (varobj_pretty_printed_p): Rename to ...
6272 (varobj_is_dynamic_p): ... this. New function.
6273 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6274 (varobj_is_dynamic_p): Declare.
6275 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6276 (mi_print_value_p, varobj_update_one): Likewise.
6277
576ea091
YQ
62782014-06-12 Pedro Alves <pedro@codesourcery.com>
6279 Yao Qi <yao@codesourcery.com>
6280
6281 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6282 (varobj_get_iterator): Wrap up code for pretty-printer by
6283 "#if HAVE_PYTHON" and "#endif".
6284 (update_dynamic_varobj_children): Likewise.
6285
827f100c
YQ
62862014-06-12 Pedro Alves <pedro@codesourcery.com>
6287 Yao Qi <yao@codesourcery.com>
6288
6289 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6290 gdb_python_initialized is false. Move some code from varobj.c.
6291 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6292 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6293 (struct varobj_item): Moved to varobj-iter.h".
6294 (varobj_clear_saved_item): New function.
6295 (update_dynamic_varobj_children): Move python-related code to
6296 py-varobj.c.
6297 (free_variable): Call varobj_clear_saved_item and
6298 varobj_iter_delete.
6299
e5250216
YQ
63002014-06-12 Pedro Alves <pedro@codesourcery.com>
6301 Yao Qi <yao@codesourcery.com>
6302
6303 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6304 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6305 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6306 (py-varobj.o): New rule.
6307 * python/py-varobj.c: New file.
6308 * python/python-internal.h (py_varobj_get_iterator): Declare.
6309 * varobj-iter.h: New file.
6310 * varobj.c: Include "varobj-iter.h"
6311 (struct varobj) <child_iter>: Change its type from "PyObject *"
6312 to "struct varobj_iter *".
6313 <saved_item>: Likewise.
6314 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6315 [HAVE_PYTHON] (varobj_get_iterator): New function.
6316 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6317 python-specific code to python/py-varobj.c.
6318 (install_visualizer): Call varobj_iter_delete instead of
6319 Py_XDECREF.
6320 * varobj.h (varobj_ensure_python_env): Declare.
6321
5a2e0d6e
YQ
63222014-06-12 Yao Qi <yao@codesourcery.com>
6323
6324 * varobj.c (struct varobj_item): New structure.
6325 (create_child_with_value): Update declaration.
6326 (varobj_add_child): Replace arguments 'name' and 'value' with
6327 'item'. All callers updated.
6328 (install_dynamic_child): Likewise.
6329 (update_dynamic_varobj_children): Likewise.
6330 (varobj_add_child): Likewise.
6331 (create_child_with_value): Likewise.
6332
919b9a93
JB
63332014-06-11 Joel Brobecker <brobecker@adacore.com>
6334
6335 * NEWS: Create a new section for the next release branch.
6336 Rename the section of the current branch, now that it has
6337 been cut.
6338
71a55bdf
JB
63392014-06-11 Joel Brobecker <brobecker@adacore.com>
6340
6341 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6342 * version.in: Bump version to 7.8.50.DATE-cvs.
6343
364fe1f7
PA
63442014-06-11 Pedro Alves <palves@redhat.com>
6345
6346 PR remote/17028
6347 * ser-mingw.c (net_windows_socket_check_pending): New function.
6348 (net_windows_select_thread): Ignore spurious wakeups. Use
6349 net_windows_socket_check_pending.
6350 (net_windows_wait_handle): Check for pending events with
6351 ioctlsocket, through net_windows_socket_check_pending, instead of
6352 checking the socket's event.
6353
5a6c7709
SC
63542014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6355
6356 * python/python-internal.h (gdb_PyObject_GetAttrString)
6357 (gdb_PyObject_HasAttrString): New inline function definitions.
6358 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6359 char * of the second argument to PyObject_GetAttrString.
74228e77 6360
0e58ee40
JB
63612014-06-10 Joel Brobecker <brobecker@adacore.com>
6362
6363 * serial.c (serial_write): Fix index of character to be printed
6364 in call to serial_logchar when serial debug traces are enabled.
6365
d190df30
JB
63662014-06-10 Joel Brobecker <brobecker@adacore.com>
6367
6368 * gdbtypes (resolve_dynamic_range): Add function description.
6369
b4b01d36
PA
63702014-06-09 Pedro Alves <palves@redhat.com>
6371
6372 * linux-nat.c (linux_child_follow_fork): Initialize status with
6373 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6374 inner block. Only pass the signal to PTRACE_DETACH if in pass
6375 state.
6376
3657956b
GB
63772014-06-09 Gary Benson <gbenson@redhat.com>
6378
6379 * common/signals.c (gdb_signal_from_host): Reorder to separate
6380 the always-available ANSI-standard signals from the signals that
6381 require checking.
6382 (do_gdb_signal_to_host): Likewise.
6383 * proc-events.c (signal_table): Likewise.
6384
c077881a
HZ
63852014-06-08 Hui Zhu <hui@codesourcery.com>
6386
6387 * common/linux-ptrace.c (linux_disable_event_reporting): New
6388 function.
6389 * common/linux-ptrace.h (linux_disable_event_reporting): New
6390 declaration.
6391 * linux-nat.c (linux_child_follow_fork): Do a single step before
6392 detach.
6393
4186eb54
KS
63942014-06-07 Keith Seitz <keiths@redhat.com>
6395
6396 Revert:
6397 PR c++/16253
6398 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6399 from symbol_matches_domain in symtab.c. All local callers
6400 of symbol_matches_domain updated.
6401 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6402 search STRUCT_DOMAIN.
6403 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6404 independently. standard_lookup will do that automatically.
6405 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6406 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6407 (cp_lookup_symbol_in_namespace): Likewise.
6408 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6409 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6410 may return a STRUCT_DOMAIN match.
6411 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6412 * cp-support.c: Include language.h.
6413 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6414 VAR_DOMAIN.
6415 * psymtab.c (match_partial_symbol): Compare the requested
6416 domain with the symbol's domain directly.
6417 (lookup_partial_symbol): Likewise.
6418 * symtab.c (lookup_symbol_in_language): Explain when/why
6419 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6420 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6421 appropriate languages.
6422 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6423 and moved to ada-lang.c
6424 (lookup_block_symbol): Explain that this function only returns
6425 symbol matching the requested DOMAIN.
6426 Compare the requested domain with the symbol's domain directly.
6427 (iterate_over_symbols): Compare the requested domain with the
6428 symbol's domain directly.
6429 * symtab.h (symbol_matches_domain): Remove.
6430
25326a28 64312014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6432
6433 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6434 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6435 (gdbscm_guile_version_is_at_least): Declare.
6436 (gdbscm_scm_string_to_int): Declare.
6437 * guile/guile.c (gdbscm_guile_major_version): New global.
6438 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6439 (guile_datadir): New static global.
6440 (gdbscm_guile_data_directory): New function.
6441 (initialize_scheme_side): Update.
6442 (misc_guile_functions): Add guile-data-directory.
6443 (initialize_gdb_module): Fetch guile version number.
6444 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6445 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6446 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6447 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6448 comments.
6449 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6450 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6451 * guile/scm-value.c (gdbscm_value_to_string): Only call
6452 scm_port_conversion_strategy if Guile version >= 2.0.6.
6453
0a770bb2 64542014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6455
6456 * main.c (print_gdb_help): Add -q and --silent.
6457
73ba372c
GB
64582014-06-06 Gary Benson <gbenson@redhat.com>
6459
6460 * common/signals.c: Remove preprocessor conditionals for
6461 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6462 SIGSEGV and SIGTERM.
6463 * proc-events.c: Likewise.
6464
c33b2f12
MM
64652014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6466
6467 * symfile.c (symfile_free_objfile): Remove restriction to
6468 OBJF_USERLOADED.
6469 * symfile-mem.c (symbol_file_add_from_memory): Call
6470 add_target_sections_of_objfile.
6471
fb934770
LC
64722014-06-05 Ludovic Courtès <ludo@gnu.org>
6473
6474 * guile/scm-value.c (gdbscm_history_append_x): Use
6475 'vlscm_get_value_smob_arg_unsafe' instead of
6476 'vlscm_scm_to_value'.
6477
6ef284bd
SM
64782014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6479
6480 PR mi/15806
6481 * utils.c (printchar): Don't escape at all if quoter is NUL.
6482 Update function documentation to clarify effect of parameter
6483 QUOTER.
6484 * remote.c (escape_buffer): Pass '\\' as the quoter to
6485 fputstrn_unfiltered.
6486 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6487 generate the output.
6488 (mi_solib_unloaded): Same.
6489
270c9937
JB
64902014-06-05 Joel Brobecker <brobecker@adacore.com>
6491
6492 * development.sh: Delete.
6493 * Makefile.in (config.status): Adjust dependency on development.sh.
6494 * configure.ac: Adjust development.sh source call.
6495 * configure: Regenerate.
6496
16f691fb
DE
64972014-06-04 Doug Evans <xdje42@gmail.com>
6498
6499 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6500 is_scheme_bkpt, spec.
6501 (bpscm_make_breakpoint_smob): Initialize new members.
6502 (gdbscm_create_breakpoint_x): Split into two ...
6503 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6504 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6505 (scheme_function breakpoint_functions): Update.
6506 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6507 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6508 register-breakpoint!.
6509
ef7cab6b
JB
65102014-06-04 Joel Brobecker <brobecker@adacorer.com>
6511
6512 PR server/17023
6513 * mem-break.c (z_type_supported): Return zero if
6514 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6515
012370f6
TT
65162014-06-04 Tom Tromey <tromey@redhat.com>
6517
6518 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6519 value_from_contents_and_address_unresolved.
6520 (ada_template_to_fixed_record_type_1): Likewise.
6521 (ada_which_variant_applies): Likewise.
6522 * value.h (value_from_contents_and_address_unresolved): Declare.
6523 * value.c (value_from_contents_and_address_unresolved): New
6524 function.
6525 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6526 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6527 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6528
92e2a17f
TT
65292014-06-04 Tom Tromey <tromey@redhat.com>
6530
6531 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6532
c0939df1
TT
65332014-06-04 Tom Tromey <tromey@redhat.com>
6534
6535 * procfs.c (procfs_attach): Make "args" const.
6536 * windows-nat.c (windows_attach): Make "args" const.
6537 * nto-procfs.c (procfs_attach): Make "args" const.
6538 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6539 * go32-nat.c (go32_attach): Make "args" const.
6540 * gnu-nat.c (gnu_attach): Make "args" const.
6541 * darwin-nat.c (darwin_attach): Make "args" const.
6542 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6543 * linux-nat.c (linux_nat_attach): Make "args" const.
6544 * remote.c (extended_remote_attach_1, extended_remote_attach):
6545 Make "args" const.
6546 * target.h (struct target_ops) <to_attach>: Make "args" const.
6547 (find_default_attach): Likewise.
6548 * utils.c (parse_pid_to_attach): Make "args" const.
6549 * utils.h (parse_pid_to_attach): Update.
6550
8eaff7cd
TT
65512014-06-04 Tom Tromey <tromey@redhat.com>
6552
6553 * target-delegates.c: Rebuild.
6554 * target.c (default_thread_address_space): New function.
6555 (target_thread_address_space): Simplify.
6556 * target.h (struct target_ops) <to_thread_address_space>: Add
6557 TARGET_DEFAULT_FUNC.
6558
1913f160
DE
65592014-06-04 Doug Evans <xdje42@gmail.com>
6560
6561 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6562
70ad5bff
MM
65632014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6564
6565 * record-btrace.c: Include event-loop.h and inf-loop.h.
6566 (record_btrace_resume_exec_dir)
6567 (record_btrace_async_inferior_event_handler)
6568 (record_btrace_handle_async_inferior_event): New.
6569 (record_btrace_open): Create async event handler.
6570 (record_btrace_close): Delete async event handler.
6571 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6572 Mark async event handler.
6573 (record_btrace_execution_direction): New.
6574 (init_record_btrace_ops): Initialize to_execution_direction.
6575
b6210538
DE
65762014-06-03 Doug Evans <xdje42@gmail.com>
6577
6578 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6579 (gdbscm_make_parameter): Ditto.
6580
a5b1fd27
DE
65812014-06-03 Doug Evans <dje@google.com>
6582
6583 * exec.c (exec_close_1): Call clear_section_table instead of
6584 resize_section_table.
6585 (clear_section_table): New function.
6586 (resize_section_table): Make static. Rename arg num_added to
6587 adjustment.
6588 * exec.h (clear_section_table): Declare.
6589 (resize_section_table): Delete.
6590 * progspace.c (release_program_space): Call clear_section_table
6591 instead of resize_section_table.
6592
0c6e92a5
SC
65932014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6594
6595 * NEWS (Python Scripting): Add entry about the new xmethods
6596 feature.
6597
883964a7
SC
65982014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6599
6600 * python/py-xmethods.c: New file.
6601 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6602 (objfpy_dealloc): XDECREF on the new xmethods field.
6603 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6604 field.
6605 (objfpy_get_xmethods): New function.
6606 (objfile_getset): New entry 'xmethods'.
6607 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6608 (pspy_dealloc): XDECREF on the new xmethods field.
6609 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6610 field.
6611 (pspy_get_xmethods): New function.
6612 (pspace_getset): New entry 'xmethods'.
6613 * python/python-internal.h: Add declarations for new functions.
6614 * python/python.c (_initialize_python): Invoke
6615 gdbpy_initialize_xmethods.
6616 * python/lib/gdb/__init__.py (xmethods): New
6617 attribute.
6618 * python/lib/gdb/xmethod.py: New file.
6619 * python/lib/gdb/command/xmethods.py: New file.
6620
58992dc5
SC
66212014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6622
6623 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6624 best match method returned by find_overload_match is an xmethod.
6625 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6626 the best matching operator returned by find_overload_match is an
6627 xmethod.
6628 * valops.c: #include "extension.h".
6629 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6630 Return void. The list of matching source methods is returned in
6631 "fn_list" and a vector of matching debug method workers is
6632 returned in "xm_worker_vec". Update all callers.
6633 (value_find_oload_method_list): Likewise.
6634 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6635 non-NULL, then the index of the best matching method in this
6636 vector is returned. Update all callers.
6637 (find_overload_match): Include xmethods while performing overload
6638 resolution.
6639
e81e7f5e
SC
66402014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6641
6642 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6643 * extension-priv.h (struct extension_language_ops): Add the
6644 xmethod interface.
6645 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6646 get_matching_xmethod_workers, get_xmethod_argtypes,
6647 invoke_xmethod, free_xmethod_worker,
6648 free_xmethod_worker_vec): New functions.
6649 * extension.h: #include "common/vec.h".
6650 New function declarations.
6651 (struct xmethod_worker): New struct.
6652 (VEC (xmethod_worker_ptr)): New vector type.
6653 (xmethod_worker_ptr): New typedef.
6654 (xmethod_worker_vec): Likewise.
6655 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6656 builtin_type.
6657 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6658 (struct builtin_type): New field "xmethod".
6659 * valarith.c (value_ptradd): Assert that the value argument is not
6660 lval_xcallable.
6661 * valops.c (value_must_coerce_to_target): Return 0 for
6662 lval_xcallable values.
6663 * value.c (struct value): New field XM_WORKER in the field
6664 LOCATION.
6665 (value_address, value_raw_address): Return 0 for lval_xcallable
6666 values.
6667 (set_value_address): Assert that the value is not an
6668 lval_xcallable.
6669 (value_free): Free the associated xmethod worker when freeing
6670 lval_xcallable values.
6671 (set_value_component_location): Assert that the WHOLE value is not
6672 lval_xcallable.
6673 (value_of_xmethod, call_xmethod): New functions.
6674 * value.h: Declare "struct xmethod_worker".
6675 Declare new functions value_of_xmethod, call_xmethod.
6676
ef370185
JB
66772014-06-03 Joel Brobecker <brobecker@adacore.com>
6678 Pedro Alves <palves@redhat.com>
6679
6680 PR breakpoints/17000
6681 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6682 New function, extracted from software_breakpoint_inserted_here_p.
6683 (software_breakpoint_inserted_here_p): Replace factored out code
6684 by call to find_non_raw_software_breakpoint_inserted_here.
6685 (bp_target_info_copy_insertion_state): New function.
6686 (bkpt_insert_location): Handle the case of a single-step
6687 breakpoint already inserted at the same address.
6688 (bkpt_remove_location): Handle the case of a single-step
6689 breakpoint still inserted at the same address.
6690 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6691 breakpoint already inserted at the same address.
6692 (deprecated_remove_raw_breakpoint): Handle the case of a
6693 non-raw breakpoint still inserted at the same address.
6694 (find_single_step_breakpoint): New function, extracted from
6695 single_step_breakpoint_inserted_here_p.
6696 (find_single_step_breakpoint): New function,
6697 factored out from single_step_breakpoint_inserted_here_p.
6698 (single_step_breakpoint_inserted_here_p): Reimplement.
6699
1e2ccb61
BM
67002014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6701
6702 Pushed by Joel Brobecker <brobecker@adacore.com>
6703 * source.c (show_substitute_path_command): Fix display of matching
6704 substitution rules.
6705
d3448d85
GB
67062014-06-03 Gary Benson <gbenson@redhat.com>
6707
6708 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6709
06eb1586
DE
67102014-06-02 Doug Evans <xdje42@gmail.com>
6711
6712 Add parameter support for Guile.
6713 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6714 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6715 (scm-param.o): New rule.
6716 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6717 (gdbscm_misc_error): Declare.
6718 (gdbscm_canonicalize_command_name): Declare.
6719 (gdbscm_scm_to_host_string): Declare.
6720 (gdbscm_scm_from_host_string): Declare.
6721 (gdbscm_initialize_parameters): Declare.
6722 * guile/guile.c (initialize_gdb_module): Call
6723 gdbscm_initialize_parameters.
6724 * guile/lib/gdb.scm: Export parameter symbols.
6725 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6726 cmdscm_canonicalize_name and made public. All callers updated.
6727 * guile/scm-exception.c (gdbscm_misc_error): New function.
6728 * guile/scm-param.c: New file.
6729 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6730 (gdbscm_scm_to_host_string): New function.
6731 (gdbscm_scm_from_host_string): New function.
6732 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6733
e698b8c4
DE
67342014-06-02 Doug Evans <xdje42@gmail.com>
6735
6736 Add command support for Guile.
6737 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6738 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6739 (scm-cmd.o): New rule.
6740 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6741 (gdbscm_user_error_p): Declare.
6742 (gdbscm_parse_command_name): Declare.
6743 (gdbscm_valid_command_class_p): Declare.
6744 (gdbscm_initialize_commands): Declare.
6745 * guile/guile.c (initialize_gdb_module): Call
6746 gdbscm_initialize_commands.
6747 * guile/lib/gdb.scm: Export command symbols.
6748 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6749 (throw-user-error): New function.
6750 * guile/scm-cmd.c: New file.
6751 * guile/scm-exception.c (user_error_symbol): New static global.
6752 (gdbscm_user_error_p): New function.
6753 (gdbscm_initialize_exceptions): Set user_error_symbol.
6754 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6755
fb1f94b0
PM
67562014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6757
6758 * top.c (command_loop): Handle comments here...
6759 (command_line_input): ... not here.
6760
ded03782
DE
67612014-06-02 Doug Evans <xdje42@gmail.com>
6762
6763 Add progspace support for Guile.
6764 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6765 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6766 (scm-progspace.o): New rule.
6767 * guile/guile-internal.h (pspace_smob): New typedef.
6768 (psscm_pspace_smob_pretty_printers): Declare.
6769 (psscm_pspace_smob_from_pspace): Declare.
6770 (psscm_scm_from_pspace): Declare.
6771 * guile/guile.c (initialize_gdb_module): Call
6772 gdbscm_initialize_pspaces.
6773 * guile/lib/gdb.scm: Export progspace symbols.
6774 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6775 support.
6776 (append-pretty-printer!): Ditto.
6777 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6778 Implement.
6779 * guile/scm-progspace.c: New file.
6780
397998fc
AM
67812014-06-03 Alan Modra <amodra@gmail.com>
6782
6783 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6784 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6785
6aa5f3a6
DE
67862014-06-02 Doug Evans <dje@google.com>
6787
6788 Add support for skeletonless type units.
6789 * dwarf2read.c (struct dwarf2_per_objfile): New member
6790 n_allocated_type_units.
6791 (struct dwarf2_per_objfile) <tu_stats>: New member
6792 nr_all_type_units_reallocs.
6793 (create_signatured_type_table_from_index): Initialize
6794 n_allocated_type_units
6795 (create_all_type_units): Ditto.
6796 (add_type_unit): Move up in file. New arg slot.
6797 All callers updated. Increase space for all_type_units more
6798 efficiently.
6799 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6800 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6801 (lookup_dwp_signatured_type): Ditto.
6802 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6803 All callers updated.
6804 (build_type_psymtabs_1): Leave type_unit_groups as
6805 NULL if no TUs present.
6806 (print_tu_stats): New function.
6807 (process_skeletonless_type_unit): New function.
6808 (process_dwo_file_for_skeletonless_type_units): New
6809 function.
6810 (process_skeletonless_type_units): New function.
6811 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6812 Call print tu_stats if debugging enabled.
6813
41fac0cf
PA
68142014-06-02 Pedro Alves <palves@redhat.com>
6815
6816 * breakpoint.c (build_target_command_list): Don't build a command
6817 list if we have any duplicate location that isn't a dprintf.
6818
cd1608cc
PA
68192014-06-02 Pedro Alves <palves@redhat.com>
6820
6821 * breakpoint.c (dprintf_breakpoint_hit): New function.
6822 (initialize_breakpoint_ops): Install it as dprintf's
6823 breakpoint_hit method.
6824
486ef3b9
JB
68252014-06-02 Joel Brobecker <brobecker@adacore.com>
6826
6827 * source.c (substitute_path_rule_matches): Simplify using
6828 filename_ncmp instead of FILENAME_CMP.
6829
230cd560
JB
68302014-06-02 Joel Brobecker <brobecker@adacore.com>
6831
6832 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6833
16954d5d
LC
68342014-06-01 Ludovic Courtès <ludo@gnu.org>
6835
6836 * configure.ac: When Guile is available, check for the
6837 availability of 'scm_new_smob'.
6838 * configure, config.h.in: Regenerate.
6839 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6840 function.
6841
53e8a631
AB
68422014-05-30 Andrew Burgess <aburgess@broadcom.com>
6843
6844 * frame.c (struct frame_info): Add stop_string field.
6845 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6846 (get_prev_frame_always): Old content moved into
6847 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6848 TRY_CATCH, handle MEMORY_ERROR exceptions.
6849 (frame_stop_reason_string): New function definition.
6850 * frame.h (unwind_stop_reason_to_string): Extend comment to
6851 mention frame_stop_reason_string.
6852 (frame_stop_reason_string): New function declaration.
6853 * stack.c (frame_info): Switch to frame_stop_reason_string.
6854 (backtrace_command_1): Switch to frame_stop_reason_string.
6855 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6856 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6857 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6858
70e38b8e
AB
68592014-05-30 Andrew Burgess <aburgess@broadcom.com>
6860
6861 * frame.c (frame_stop_reason_string): Rename to ...
6862 (unwind_stop_reason_to_string): this.
6863 * frame.h (frame_stop_reason_string): Rename to ...
6864 (unwind_stop_reason_to_string): this.
6865 * stack.c (frame_info): Update call to frame_stop_reason_string.
6866 (backtrace_command_1): Likewise.
6867 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6868 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6869
938f0e2f
AB
68702014-05-30 Andrew Burgess <aburgess@broadcom.com>
6871
6872 * frame.c (remove_prev_frame): New function.
6873 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6874 remove_prev_frame.
6875
a09dd441
PA
68762014-05-29 Pedro Alves <palves@redhat.com>
6877
6878 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6879 and make it const. When a single-step decays to a continue,
6880 clear 'step', not 'hw_step'. Pass whether the caller wanted
6881 to step to user_visible_resume_ptid, not what we ask the
6882 target to do.
6883
bdc36728
PA
68842014-05-29 Pedro Alves <palves@redhat.com>
6885
6886 * infrun.c (process_event_stop_test, handle_step_into_function)
6887 (handle_step_into_function_backward): Adjust.
6888 Don't set the even thread's stop_step and call stop_waiting before
6889 calling end_stepping_range. Instead do that ...
6890 (end_stepping_range): ... here. Take an ecs pointer parameter.
6891
22bcd14b
PA
68922014-05-29 Pedro Alves <palves@redhat.com>
6893
6894 * infrun.c (stop_stepping): Rename to ...
6895 (stop_waiting): ... this.
6896 (proceed): Update comment.
6897 (process_event_stop_test, handle_inferior_event)
6898 (handle_signal_stop, handle_step_into_function)
6899 (handle_step_into_function_backward): Update.
6900
4ae57c05
PA
69012014-05-29 Pedro Alves <palves@redhat.com>
6902
6903 * infcall.c (run_inferior_call): Don't check whether the current
6904 thread is running after the proceed call.
6905
329ea579
PA
69062014-05-29 Pedro Alves <palves@redhat.com>
6907 Tom Tromey <tromey@redhat.com>
6908
6909 * NEWS: Mention "maint set target-async", "set mi-async", and that
6910 background execution commands are now always available.
6911 * target.h (target_async_permitted): Update comment.
6912 * target.c (target_async_permitted, target_async_permitted_1):
6913 Default to 1.
6914 (set_target_async_command): Rename to ...
6915 (maint_set_target_async_command): ... this.
6916 (show_target_async_command): Rename to ...
6917 (maint_show_target_async_command): ... this.
6918 (_initialize_target): Adjust.
6919 * infcmd.c (prepare_execution_command): Make extern.
6920 * inferior.h (prepare_execution_command): Declare.
6921 * infrun.c (set_observer_mode): Leave target async alone.
6922 * mi/mi-interp.c (mi_interpreter_init): Install
6923 mi_on_sync_execution_done as sync_execution_done observer.
6924 (mi_on_sync_execution_done): New function.
6925 (mi_execute_command_input_handler): Don't print the prompt if we
6926 just started a synchronous command with an async target.
6927 (mi_on_resume): Check sync_execution before printing prompt.
6928 * mi/mi-main.h (mi_async_p): Declare.
6929 * mi/mi-main.c: Include gdbcmd.h.
6930 (mi_async_p): New function.
6931 (mi_async, mi_async_1): New globals.
6932 (set_mi_async_command, show_mi_async_command, mi_async): New
6933 functions.
6934 (exec_continue): Call prepare_execution_command.
6935 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6936 (mi_execute_async_cli_command): Use mi_async_p.
6937 (_initialize_mi_main): Install "set mi-async". Make
6938 "target-async" a deprecated alias.
6939
92bcb5f9
PA
69402014-05-29 Pedro Alves <palves@redhat.com>
6941
6942 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6943 (_initialize_cli_interp): Adjust.
6944 * event-loop.c: Include "observer.h".
6945 (start_event_loop): Notify 'command_error' observers instead of
6946 calling display_gdb_prompt. Remove FIXME comment.
6947 * event-top.c (display_gdb_prompt): Remove call into the
6948 interpreters.
6949 * inf-loop.c: Include "observer.h".
6950 (inferior_event_handler): Notify 'command_error' observers instead
6951 of calling display_gdb_prompt.
6952 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6953 observers instead of calling display_gdb_prompt.
6954 * interps.c (interp_set): Don't call display_gdb_prompt.
6955 (current_interp_display_prompt_p): Delete.
6956 * interps.h (interp_prompt_p): Delete declaration.
6957 (interp_prompt_p_ftype): Delete.
6958 (struct interp_procs) <prompt_proc_p>: Delete field.
6959 (current_interp_display_prompt_p): Delete declaration.
6960 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6961 (_initialize_mi_interp): Adjust.
6962 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6963 'command_error' observers.
6964 (tui_on_sync_execution_done, tui_on_command_error): New
6965 functions.
6966 (tui_display_prompt_p): Delete.
6967 (_initialize_tui_interp): Adjust.
6968
fd664c91
PA
69692014-05-29 Pedro Alves <palves@redhat.com>
6970
6971 PR gdb/13860
6972 * cli/cli-interp.c: Include infrun.h and observer.h.
6973 (cli_uiout, cli_interp): New globals.
6974 (cli_on_signal_received, cli_on_end_stepping_range)
6975 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6976 functions.
6977 (cli_interpreter_init): Install them as 'end_stepping_range',
6978 'signal_received' 'signal_exited', 'exited' and 'no_history'
6979 observers.
6980 (_initialize_cli_interp): Remove cli_interp local.
6981 * infrun.c (handle_inferior_event): Call the several stop reason
6982 observers instead of printing the stop reason directly.
6983 (end_stepping_range): New function.
6984 (print_end_stepping_range_reason, print_signal_exited_reason)
6985 (print_exited_reason, print_signal_received_reason)
6986 (print_no_history_reason): Make static, and add an uiout
6987 parameter. Print to that instead of to CURRENT_UIOUT.
6988 * infrun.h (print_end_stepping_range_reason)
6989 (print_signal_exited_reason, print_exited_reason)
6990 (print_signal_received_reason print_no_history_reason): New
6991 declarations.
6992 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6993 'mi_uiout'.
6994 <cli_uiout>: New field.
6995 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6996 uiout for CLI output. Install 'signal_received',
6997 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6998 observers.
6999 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7000 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7001 (mi_on_no_history): New functions.
7002 (ui_out_free_cleanup): Delete function.
7003 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7004 instead use the one already stored in the MI interpreter data.
7005 (mi_ui_out): Adjust.
7006 * tui/tui-interp.c: Include infrun.h and observer.h.
7007 (tui_interp): New global.
7008 (tui_on_signal_received, tui_on_end_stepping_range)
7009 (tui_on_signal_exited, tui_on_exited)
7010 (tui_on_no_history): New functions.
7011 (tui_init): Install them as 'end_stepping_range',
7012 'signal_received' 'signal_exited', 'exited' and 'no_history'
7013 observers.
7014 (_initialize_tui_interp): Delete tui_interp local.
7015
8817a6f2
PA
70162014-05-29 Pedro Alves <palves@redhat.com>
7017
7018 PR gdb/15713
7019 * linux-nat.c (linux_nat_resume_callback): Rename the second
7020 parameter to 'except'. Skip LP if it points to EXCEPT.
7021 (linux_nat_resume): Don't mark the event lwp as not stopped
7022 before resuming sibling lwps. Instead ask
7023 linux_nat_resume_callback to skip the event lwp. Mark it as not
7024 stopped after actually resuming it.
7025 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7026 resuming it.
7027 (wait_lwp): Mark the lwp as stopped here.
7028 (stop_wait_callback): Mark the lwp as not stopped right after
7029 resuming it. Don't mark lwps as stopped here.
7030 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7031 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7032
251bde03
PA
70332014-05-29 Pedro Alves <palves@redhat.com>
7034
7035 PR PR15693
7036 * infrun.c (resume): Determine how much to resume depending on
7037 whether the caller wanted a step, not whether we can hardware step
7038 the target. Mark all threads that we intend to run as running,
7039 unless we're calling an inferior function.
7040 (normal_stop): If the thread is running an infcall, don't finish
7041 thread state.
7042 * target.c (target_resume): Don't mark threads as running here.
7043
7f3c0343
JB
70442014-05-28 Joel Brobecker <brobecker@adacore.com>
7045
7046 * serial.c (_initialize_serial): Remove support for
7047 the "set remotebaud" and "show remotebaud" commands.
7048 * NEWS: Add entry documenting the removal of that command.
7049
ee34b3f9
YQ
70502014-05-28 Yao Qi <yao@codesourcery.com>
7051
7052 * charset.c: Fix typo in comments.
7053
add6c04d
GB
70542014-05-27 Gary Benson <gbenson@redhat.com>
7055
7056 * utils.c (internal_vproblem): Prompt for a bug report.
7057
92c48fc5
AW
70582014-05-26 Andy Wingo <wingo@igalia.com>
7059
7060 * guile/scm-arch.c (arscm_mark_arch_smob):
7061 * guile/scm-block.c (bkscm_mark_block_smob)
7062 (bkscm_mark_block_syms_progress_smob):
7063 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7064 * guile/scm-exception.c (exscm_mark_exception_smob):
7065 * guile/scm-frame.c (frscm_mark_frame_smob):
7066 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7067 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7068 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7069 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7070 (ppscm_mark_pretty_printer_worker_smob):
7071 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7072 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7073 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7074 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7075 mark functions.
7076 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7077 function.
7078
b2715b27
AW
70792014-05-26 Andy Wingo <wingo@igalia.com>
7080 Doug Evans <xdje42@gmail.com>
7081
7082 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7083 empty_base_class. All uses updated.
7084 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7085 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7086 Adapt all callers.
7087 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7088 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7089 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7090 (gdbscm_gsmob_has_property_p, add_property_name)
7091 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7092 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7093 (gdb-object-has-property?, gdb-object-properties): Remove.
7094 (gdb-object-kind): Renamed from gsmob-kind.
7095
214ab2da
AW
70962014-05-26 Andy Wingo <wingo@igalia.com>
7097
7098 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7099 * configure: Regenerate.
7100
589fdceb
MM
71012014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7102
7103 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7104
67b5c0c1
MM
71052014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7106
7107 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7108 (replay_memory_access_read_only, replay_memory_access_read_write)
7109 (replay_memory_access_types, replay_memory_access)
7110 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7111 (cmd_set_record_btrace, cmd_show_record_btrace)
7112 (cmd_show_replay_memory_access): New.
7113 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7114 (record_btrace_remove_breakpoint): Replace
7115 record_btrace_allow_memory_access with replay_memory_access.
7116 (_initialize_record_btrace): Add commands.
7117 * NEWS: Announce it.
7118
036cd381
RR
71192014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7120
7121 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7122
c77c1e42
RR
71232014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7124
7125 * MAINTAINERS (Write After Approval): Move self back from
7126 paper trail.
7127
45741a9c
PA
71282014-05-22 Pedro Alves <palves@redhat.com>
7129
7130 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7131 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7132 (disable_randomization, enum exec_direction_kind)
7133 (execution_direction, stop_registers, start_remote)
7134 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7135 (wait_for_inferior, normal_stop, get_last_target_status)
7136 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7137 (insert_step_resume_breakpoint_at_sal)
7138 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7139 (set_step_info, print_stop_event, signal_stop_state)
7140 (signal_print_state, signal_pass_state, signal_stop_update)
7141 (signal_print_update, signal_pass_update)
7142 (update_signals_program_target, clear_exit_convenience_vars)
7143 (displaced_step_dump_bytes, update_observer_mode)
7144 (signal_catch_update, gdb_signal_from_command): Move
7145 declarations ...
7146 * infrun.h: ... to this new file.
7147 * amd64-tdep.c: Include infrun.h.
7148 * annotate.c: Include infrun.h.
7149 * arch-utils.c: Include infrun.h.
7150 * arm-linux-tdep.c: Include infrun.h.
7151 * arm-tdep.c: Include infrun.h.
7152 * break-catch-sig.c: Include infrun.h.
7153 * breakpoint.c: Include infrun.h.
7154 * common/agent.c: Include infrun.h instead of inferior.h.
7155 * corelow.c: Include infrun.h.
7156 * event-top.c: Include infrun.h.
7157 * go32-nat.c: Include infrun.h.
7158 * i386-tdep.c: Include infrun.h.
7159 * inf-loop.c: Include infrun.h.
7160 * infcall.c: Include infrun.h.
7161 * infcmd.c: Include infrun.h.
7162 * infrun.c: Include infrun.h.
7163 * linux-fork.c: Include infrun.h.
7164 * linux-nat.c: Include infrun.h.
7165 * linux-thread-db.c: Include infrun.h.
7166 * monitor.c: Include infrun.h.
7167 * nto-tdep.c: Include infrun.h.
7168 * procfs.c: Include infrun.h.
7169 * record-btrace.c: Include infrun.h.
7170 * record-full.c: Include infrun.h.
7171 * remote-m32r-sdi.c: Include infrun.h.
7172 * remote-mips.c: Include infrun.h.
7173 * remote-notif.c: Include infrun.h.
7174 * remote-sim.c: Include infrun.h.
7175 * remote.c: Include infrun.h.
7176 * reverse.c: Include infrun.h.
7177 * rs6000-tdep.c: Include infrun.h.
7178 * s390-linux-tdep.c: Include infrun.h.
7179 * solib-irix.c: Include infrun.h.
7180 * solib-osf.c: Include infrun.h.
7181 * solib-svr4.c: Include infrun.h.
7182 * target.c: Include infrun.h.
7183 * top.c: Include infrun.h.
7184 * windows-nat.c: Include infrun.h.
7185 * mi/mi-interp.c: Include infrun.h.
7186 * mi/mi-main.c: Include infrun.h.
7187 * python/py-threadevent.c: Include infrun.h.
7188
98eb56a4
PA
71892014-05-22 Pedro Alves <palves@redhat.com>
7190
7191 * infrun.c (handle_inferior_event): Store the exit code for
7192 --return-child-result here, instead of ...
7193 (print_exited_reason): ... here.
7194
17b2616c
PA
71952014-05-21 Pedro Alves <palves@redhat.com>
7196
7197 PR gdb/13860
7198 * gdbthread.h (struct thread_control_state): New field
7199 `command_interp'.
7200 * infrun.c (follow_fork): Copy the new thread control field to the
7201 child fork thread.
7202 (clear_proceed_status_thread): Clear the new thread control field.
7203 (proceed): Set the new thread control field.
7204 * interps.h (command_interp): Declare.
7205 * interps.c (command_interpreter): New global.
7206 (command_interp): New function.
7207 (interp_exec): Set `command_interpreter' while here.
7208 * cli-out.c (cli_uiout_dtor): New function.
7209 (cli_ui_out_impl): Install it.
7210 * mi/mi-interp.c: Include cli-out.h.
7211 (mi_cmd_interpreter_exec): Add comment.
7212 (restore_current_uiout_cleanup): New function.
7213 (ui_out_free_cleanup): New function.
7214 (mi_on_normal_stop): If finishing an execution command started by
7215 a CLI command, or any kind of breakpoint-like event triggered,
7216 print the stop event to the output (CLI) stream.
7217 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7218
5166082f
PA
72192014-05-21 Pedro Alves <palves@redhat.com>
7220
7221 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7222 current source line having changed.
7223 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7224 * infrun.c (normal_stop): Adjust call to
7225 set_current_sal_from_frame.
7226 * source.c (clear_lines_listed_range): New function.
7227 (set_current_source_symtab_and_line, identify_source_line): Clear
7228 the lines listed range.
7229 (line_info): Handle the first "info line" after the current source
7230 line having changed.
7231 * stack.c (print_stack_frame): Remove center handling.
7232 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7233 center sal.line.
7234
c1ee2fb3
PA
72352014-05-21 Pedro Alves <palves@redhat.com>
7236
7237 * inf-child.c (inf_child_mourn_inferior): New function.
7238 * inf-child.h (inf_child_mourn_inferior): New declaration.
7239 * darwin-nat.c (darwin_mourn_inferior): Use
7240 inf_child_mourn_inferior.
7241 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7242 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7243 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7244 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7245 * windows-nat.c (windows_mourn_inferior): Likewise.
7246
5c6d4fb2
DE
72472014-05-21 Doug Evans <xdje42@gmail.com>
7248
250748cb 7249 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7250
4a2722c5
DE
72512014-05-21 Doug Evans <xdje42@gmail.com>
7252
17292b30 7253 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7254 (gdbscm_out_of_range_error): Ditto.
7255 (gdbscm_memory_error): Ditto.
250748cb
DE
7256 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7257 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7258 (gdbscm_out_of_range_error): Update.
7259 (gdbscm_memory_error): Update.
7260 (gdbscm_scm_to_target_string_unsafe): Delete.
7261
6a3cb8e8
PA
72622014-05-21 Pedro Alves <palves@redhat.com>
7263
7264 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7265 globals.
7266 (inf_child_open_target): New function.
7267 (inf_child_open): Use inf_child_open_target to push the target
7268 instead of erroring out.
7269 (inf_child_disconnect, inf_child_close)
7270 (inf_child_maybe_unpush_target): New functions.
7271 (inf_child_target): Install inf_child_disconnect and
7272 inf_child_close. Store a pointer to the returned object.
7273 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7274 declarations.
7275 * target.c (auto_connect_native_target): New global.
7276 (show_default_run_target): New function.
7277 (find_default_run_target): Return NULL if automatically connecting
7278 to the native target is disabled.
7279 (_initialize_target): Install set/show auto-connect-native-target.
7280 * NEWS: Mention "set auto-connect-native-target", and "target
7281 native".
7282 * linux-nat.c (super_close): New global.
7283 (linux_nat_close): Call super_close.
7284 (linux_nat_add_target): Store a pointer to the base class's
7285 to_close method.
7286 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7287 inf_child_maybe_unpush.
7288 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7289 already pushed.
7290 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7291 the inferior. Use inf_child_maybe_unpush_target.
7292 (inf_ttrace_attach): Don't push the target if it is already
7293 pushed.
7294 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7295 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7296 after mourning the inferior. Use inf_child_maybe_unpush_target.
7297 (darwin_attach_pid): Don't push the target if it is already
7298 pushed.
7299 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7300 mourning the inferior. Use inf_child_maybe_unpush_target.
7301 (gnu_detach): Use inf_child_maybe_unpush_target.
7302 * go32-nat.c (go32_create_inferior): Don't push the target if it
7303 is already pushed.
7304 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7305 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7306 (procfs_open): Rename to ...
7307 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7308 comments. Can target_preopen before changing node. Call
7309 inf_child_open_target to push the target explicitly.
7310 (procfs_attach): Don't push the target if it is already pushed.
7311 (procfs_detach): Use inf_child_maybe_unpush_target.
7312 (procfs_create_inferior): Don't push the target if it is already
7313 pushed.
7314 (nto_native_ops): New global.
7315 (procfs_open): Reimplement.
7316 (procfs_native_open): New function.
7317 (init_procfs_targets): Install procfs_native_open as to_open of
7318 "target native". Store a pointer to the "native" target in
7319 nto_native_ops.
7320 * procfs.c (procfs_attach): Don't push the target if it is already
7321 pushed.
7322 (procfs_detach): Use inf_child_maybe_unpush_target.
7323 (procfs_mourn_inferior): Only unpush the target after mourning the
7324 inferior. Use inf_child_maybe_unpush_target.
7325 (procfs_init_inferior): Don't push the target if it is already
7326 pushed.
7327 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7328 if it is already pushed.
7329
930ee1b1
PA
73302014-05-21 Pedro Alves <palves@redhat.com>
7331
7332 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7333 and "procfs" targets are now called "native" instead.
7334
1f5d1b13
PA
73352014-05-21 Pedro Alves <palves@redhat.com>
7336
7337 * go32-nat.c (go32_open): Delete.
7338 (go32_target): Don't override the to_open method.
7339
132f8e03
PA
73402014-05-21 Pedro Alves <palves@redhat.com>
7341
7342 * nto-procfs.c (procfs_can_run): New function.
7343 (nto_procfs_ops): New global.
7344 (init_procfs_targets): New, based on procfs_target. Install
7345 "target native" in addition to "target procfs".
7346 (_initialize_procfs): Call init_procfs_targets instead of adding
7347 the target here.
7348
03c136c3
PA
73492014-05-21 Pedro Alves <palves@redhat.com>
7350
7351 * windows-nat.c (windows_target): Don't override to_shortname,
7352 to_longname or to_doc.
7353
a635d0f3
PA
73542014-05-21 Pedro Alves <palves@redhat.com>
7355
7356 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7357 to_doc.
7358
4f9b5133
PA
73592014-05-21 Pedro Alves <palves@redhat.com>
7360
7361 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7362 to_shortname, to_longname or to_doc.
7363
bc85afde
PA
73642014-05-21 Pedro Alves <palves@redhat.com>
7365
7366 * go32-nat.c (go32_target): Don't override to_shortname,
7367 to_longname or to_doc.
7368
4ebfc96e
PA
73692014-05-21 Pedro Alves <palves@redhat.com>
7370
7371 * inf-child.c (inf_child_open): Remove mention of "child".
7372 (inf_child_target): Rename target to "native" instead of "child".
7373
2648dfed
AA
73742014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7375
7376 * Makefile.in (SFILES): Delete "regset.c".
7377 (COMMON_OBS): Delete "regset.o".
7378 * regset.c: Remove.
7379 * regset.h (regset_alloc): Delete prototype.
7380
b13feb94
AA
73812014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7382
7383 * sparc-linux-tdep.c (sparc32_linux_gregset)
7384 (sparc32_linux_fpregset): New static regset structures.
7385 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7386 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7387 'fpregset' fields.
7388 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7389 (sparc64_linux_fpregset): New static regset structures.
7390 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7391 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7392 New static regset structures.
7393 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7394 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7395 New static regset structures.
7396 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7397 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7398 New static regset structures.
7399 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7400 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7401 New static regset structures.
7402 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7403
b4fd25c9
AA
74042014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7405
7406 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7407 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7408 register maps ("regmaps") from "*regset" to "*regmap". Do this
7409 for all regmap types and variables.
7410 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7411 (sparc32_linux_supply_core_gregset)
7412 (sparc32_linux_collect_core_gregset)
7413 (sparc32_linux_supply_core_fpregset)
7414 (sparc32_linux_collect_core_fpregset): Likewise.
7415 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7416 (sparc_gregmap, sparc_fpregmap): ... these.
7417 (sparc_supply_gregset, sparc_collect_gregset)
7418 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7419 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7420 (_initialize_sparc_nat): Rename regmaps.
7421 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7422 (sparc_gregmap, sparc_fpregmap): ... these.
7423 (sparc_supply_gregset, sparc_collect_gregset)
7424 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7425 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7426 Rename macros to...
7427 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7428 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7429 Likewise.
7430 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7431 Rename to...
7432 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7433 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7434 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7435 regmaps.
7436 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7437 (sparc32_bsd_fpregset): Rename to...
7438 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7439 (sparc32_bsd_fpregmap): ... these.
7440 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7441 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7442 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7443 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7444 (struct sparc_gregmap, struct sparc_fpregmap)
7445 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7446 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7447 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7448 (sparc32_supply_regset, sparc32_collect_gregset)
7449 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7450 prototypes.
7451 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7452 (sparc64_linux_ptrace_gregmap): ... this.
7453 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7454 (_initialize_sparc64_linux_nat): Rename regmaps.
7455 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7456 (sparc64_linux_core_gregmap): ... this.
7457 (sparc64_linux_supply_core_gregset)
7458 (sparc64_linux_collect_core_gregset)
7459 (sparc64_linux_supply_core_fpregset)
7460 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7461 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7462 (sparc64_sol2_fpregset): Rename to...
7463 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7464 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7465 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7466 regmaps.
7467 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7468 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7469 (sparc64_bsd_fpregset): Rename to...
7470 (struct sparc_gregmap, sparc64_sol2_gregmap)
7471 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7472 (sparc64_bsd_fpregmap): ... these.
7473 (sparc64_supply_gregset, sparc64_collect_gregset)
7474 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7475 prototypes.
7476 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7477 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7478 (sparc64fbsd_gregmap): ... this.
7479 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7480 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7481 Rename regmaps.
7482 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7483 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7484 (sparc64nbsd_collect_fpregset): Likewise.
7485 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7486 (sparc64nbsd_gregmap): ... this.
7487 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7488 regmaps.
7489 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7490 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7491 (sparc64obsd_gregmap): ... this.
7492 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7493 regmaps.
7494 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7495 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7496 (sparc32nbsd_gregmap): ... this.
7497 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7498 regmaps.
7499
8fea3224
AA
75002014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7501
7502 * score-tdep.c (score7_linux_gregset): New static regset
7503 structure.
7504 (score7_linux_regset_from_core_section): Remove dynamic regset
7505 allocation.
7506 (score_gdbarch_init): Drop allocation of tdep structure.
7507 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7508
24534243
AA
75092014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7510
7511 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7512 regset structures.
7513 (am33_regset_from_core_section): Remove dynamic regset
7514 allocations.
7515
b7195f27
AA
75162014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7517
7518 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7519 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7520 structures.
7521 (mips_linux_regset_from_core_section): Remove dynamic regset
7522 allocations.
7523 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7524 'gregset64', 'fpregset', and 'fpregset64'.
7525 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7526 deleted tdep fields.
7527
ecc37a5a
AA
75282014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7529
7530 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7531 regset structures.
7532 (amd64_regset_from_core_section): Remove dynamic regset
7533 allocations.
7534 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7535 structure.
7536 (amd64obsd_regset_from_core_section): Remove dynamic regset
7537 allocation.
7538 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7539 Likewise.
7540 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7541 x86-common regset supply function.
7542 * i386-tdep.c (i386_collect_gregset): Make static.
7543 (i386_gregset): New global regset structure.
7544 (i386_fpregset, i386_xstateregset): New static regset structures.
7545 (i386_regset_from_core_section): Remove dynamic regset
7546 allocations.
7547 (i386_gdbarch_init): Remove initialization of tdep fields
7548 'gregset', 'fpregset', and 'xstateregset'.
7549 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7550 'fpregset', and 'xstateregset'.
7551 (i386_collect_gregset): Remove prototype.
7552 (i386_gregset): New declaration.
7553 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7554 structure.
7555 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7556 allocation.
7557
b7611c43
AA
75582014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7559
7560 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7561 (arm_linux_vfpregset): New static regset structures.
7562 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7563 regset structures.
7564 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7565 and 'vfpregset' fields.
7566
a069a2bd
AA
75672014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7568
7569 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7570 (aarch64_linux_fpregset): New static regset structures.
7571 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7572 of regset structures.
7573 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7574 'fpregset' fields.
7575
09424cff
AA
75762014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7577
7578 * regset.h (struct regset): Remove gdbarch field.
7579 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7580 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7581 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7582 Likewise.
7583 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7584 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7585 (ppc32_linux_vsxregset): Likewise.
7586 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7587 via the regcache instead of the regset.
7588 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7589 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7590 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7591 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7592 Likewise.
7593
3ca7dae4
AA
75942014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7595
7596 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7597 Constify structures.
7598 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7599 (alphanbsd_aout_gregset): Likewise.
7600 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7601 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7602 Likewise.
7603 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7604 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7605 Likewise.
7606 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7607 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7608 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7609 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7610 * m88k-tdep.c (m88k_gregset): Likewise.
7611 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7612 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7613 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7614 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7615 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7616 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7617 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7618 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7619 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7620 Likewise.
7621 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7622 * sh-tdep.h (sh_corefile_gregset): Likewise.
7623 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7624 * vax-tdep.c (vax_gregset): Likewise.
7625
5876f503
JK
76262014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7627
7628 Fix TLS access for -static -pthread.
7629 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7630 (try_thread_db_load_1): Initialize it.
7631 (thread_db_get_thread_local_address): Call it if LM is zero.
7632 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7633 * target.h (struct target_ops) (to_get_thread_local_address): Add
7634 load_module_addr comment.
7635
0256a6ac
PA
76362014-05-21 Pedro Alves <palves@redhat.com>
7637
7638 * dcache.c (dcache_read_memory_partial): If reading the cache line
7639 fails, fallback to reading just the memory the caller wanted.
7640
227533ac
DE
76412014-05-20 Doug Evans <dje@google.com>
7642
7643 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7644 instead of get_current_arch.
7645
936d2992
PA
76462014-05-20 Pedro Alves <palves@redhat.com>
7647
7648 * NEWS: Mention that compare-sections now works with all targets.
7649
7650 * remote.c (PACKET_qCRC): New enum value.
7651 (remote_verify_memory): Don't send qCRC if the target has no
7652 execution. Use packet_support/packet_ok. If the target doesn't
7653 support the qCRC packet, fallback to a deep memory copy.
7654 (compare_sections_command): Say "target image" instead of "remote
7655 executable".
7656 (_initialize_remote): Add PACKET_qCRC to the list of config
7657 packets that have no associated command. Extend comment.
7658 * target.c (simple_verify_memory, default_verify_memory): New
7659 function.
7660 * target.h (struct target_ops) <to_verify_memory>: Default to
7661 default_verify_memory.
7662 (simple_verify_memory): New declaration.
7663 * target-delegates.c: Regenerate.
7664
e59fa00f
MM
76652014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7666
7667 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7668
f2205de0
HZ
76692014-05-20 Hui Zhu <hui@codesourcery.com>
7670 Yao Qi <yao@codesourcery.com>
7671
7672 PR backtrace/16558
7673 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7674 and change address of sp and pc.
7675
c4e54771
TT
76762014-05-19 Tom Tromey <tromey@redhat.com>
7677
7678 * gdbtypes.c (rank_function): Use XNEWVEC.
7679 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7680
73051182
DE
76812014-05-19 Doug Evans <dje@google.com>
7682
7683 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7684 build_type_unit_groups and moved closer to only caller. Remove
7685 arguments. All references updated. Remove outdated .gdb_index
7686 comment.
7687 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7688 build_type_psymtabs_1.
7689
8832e7e3
DE
76902014-05-19 Doug Evans <dje@google.com>
7691
7692 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7693 n_type_unit_groups, all_type_unit_groups. All uses removed.
7694 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7695 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7696 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7697 (add_type_unit_group_to_table): Delete.
7698
cd8ae15e
DE
76992014-05-19 Doug Evans <dje@google.com>
7700
7701 * eval.c (evaluate_subexp_standard): Add some comments.
7702
08f4850b
DE
77032014-05-17 Doug Evans <xdje42@gmail.com>
7704
7705 * progspace.c (remove_program_space): Delete, unused.
7706 * progspace.h (remove_program_space): Ditto.
7707
bed8455c
DE
77082014-05-17 Doug Evans <xdje42@gmail.com>
7709
7710 * inferior.c (prune_inferiors): Fix comment.
7711 (remove_inferior_command): Call prune_program_spaces.
7712
8d551b02
DE
77132014-05-16 Doug Evans <dje@google.com>
7714
7715 New command line option -D.
7716 * NEWS: Mention it.
7717 * main.c (set_gdb_data_directory): New function.
7718 (captured_main): Recognize -D. Flag error for --data-directory "".
7719 Call set_gdb_data_directory.
7720 (print_gdb_help): Print --data-directory, -D.
7721 * main.h (set_gdb_data_directory): Declare.
7722 * top.c (staged_gdb_datadir): New static global.
7723 (set_gdb_datadir): Call set_gdb_data_directory
7724 (show_gdb_datadir): New function.
7725 (init_main): Update init of data-directory parameter.
7726
18848e28
GF
77272014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7728
7729 Import the "dirfd" gnulib module.
7730 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7731 * gnulib/aclocal.m4: Update.
7732 * gnulib/config.in: Update.
7733 * gnulib/configure: Update.
7734 * gnulib/import/Makefile.am: Update.
7735 * gnulib/import/Makefile.in: Update.
7736 * gnulib/import/dirfd.c: New.
7737 * gnulib/import/m4/dirfd.m4: New.
7738 * gnulib/import/m4/gnulib-cache.m4: Update.
7739 * gnulib/import/m4/gnulib-comp.m4: Update.
7740
95c64f92
YQ
77412014-05-16 Pierre Muller <muller@sourceware.org>
7742 Yao Qi <yao@codesourcery.com>
7743
7744 * valprint.c (print_wchar): Move the code on checking whether
7745 W is a printable wide char to the default branch of switch
7746 statement below. Call wchar_printable instead of gdb_iswprint.
7747
cac395ea
TM
77482014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7749
19679eca 7750 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
7751 ldr.w and ldrd instructions.
7752
83655187
DE
77532014-05-15 Doug Evans <dje@google.com>
7754
7755 * dwarf2read.c (read_structure_type): Delete outdated comments.
7756
dd756689
TT
77572014-05-14 Tom Tromey <tromey@redhat.com>
7758
7759 * macrocmd.c (print_macro_definition): Reindent.
7760
75ddda77
DE
77612014-05-13 Doug Evans <xdje42@gmail.com>
7762
7763 * python/py-cmd.c (cmdpy_completer): Add comment.
7764 (completers): Make const.
7765
b0f16a3e
SM
77662014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7767
7768 * infrun.c (resume): Remove should_resume (unused). Move up
7769 declaration of resume_ptid.
7770
033c3379
TT
77712014-05-13 Tom Tromey <tromey@redhat.com>
7772
7773 * language.h (unop_type_check): Remove.
7774 (binop_type_check): Don't declare.
7775
9b44a3a5
AA
77762014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7777
7778 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7779 call to regcache_raw_collect.
7780
303a33fa
SM
77812014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7782
7783 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7784 mi_console->quote as the quoting character.
7785
196100a0
SM
77862014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7787
7788 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7789
f989a1c8
TT
77902014-04-29 Tom Tromey <tromey@redhat.com>
7791
7792 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7793 "show debug varobj".
7794
9404b58f
KM
77952014-05-07 Kyle McMartin <kyle@redhat.com>
7796
7797 Pushed by Joel Brobecker <brobecker@adacore.com>.
7798 * aarch64-tdep.c (aarch64_software_single_step): New function.
7799 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7800 with aarch64_software_single_step.
7801
5e49ba57
JB
78022014-05-05 Joel Brobecker <brobecker@adacore.com>
7803
7804 GDB 7.7.1 released.
7805
c888a17d
KS
78062014-05-05 Keith Seitz <keiths@redhat.com>
7807
7808 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7809 variable or history value is successfully parsed.
7810
290a839c
YQ
78112014-05-05 Yao Qi <yao@codesourcery.com>
7812 Pedro Alves <palves@redhat.com>
7813
7814 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7815 address of blocks that intersects the requested range. Trim
7816 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7817 sections.
7818 * ctf.c (ctf_xfer_partial): Likewise.
7819
91256dc2
YQ
78202014-05-05 Yao Qi <yao@codesourcery.com>
7821
7822 * printcmd.c (display_command): Remove the check to
7823 target_has_execution.
7824
07284463
MK
78252014-05-03 Mark Kettenis <kettenis@gnu.org>
7826
7827 * ppcobsd-nat.c: Include "obsd-nat.h".
7828 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7829 add_target.
7830 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7831
30a1e6cc
SDJ
78322014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7833
7834 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7835 and 16-bit signed and unsigned arguments. Update comment.
7836 (stap_parse_probe_arguments): Extend code to handle such
7837 arguments. Use warning instead of complaint to notify about
7838 unrecognized bitness.
7839
f33da99a
SDJ
78402014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7841
7842 PR breakpoints/16889
7843 * stap-probe.c (stap_parse_probe_arguments): Simplify
7844 check for non-prefixed probes (i.e., probes whose
7845 arguments do not start with "N@"). Always set the
7846 argument type to a sane value.
7847
95cf3b38
DT
78482014-05-01 David Taylor <dtaylor@emc.com>
7849
7850 * remote.c (compare_sections_command): Add -r option to compare
7851 all loadable read-only sections.
7852
1cfdf534
SC
78532014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7854
7855 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7856 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7857 Update all callers.
7858 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7859 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7860 Remove unused CORE_ADDR argument. Update all callers.
7861
ca4f7f8b
PA
78622014-04-29 Pedro Alves <palves@redhat.com>
7863
7864 * remote.c (struct packet_config) <detect>: Extend comment.
7865 (add_packet_config_cmd): Don't set the config's detect or support
7866 fields here.
7867 (init_all_packet_configs): Also initialize the config's 'detect'
7868 field.
7869 (reset_all_packet_configs_support): New function.
7870 (remote_open_1): Call reset_all_packet_configs_support instead of
7871 init_all_packet_configs.
7872 (_initialize_remote): Initialize all packet configs. Assert that
7873 all packets have an associated command, except a few known
7874 outliers.
7875
11c1ba78
JB
78762014-04-28 Joel Brobecker <brobecker@adacore.com>
7877
7878 * dwarf2read.c (read_subrange_type): Handle dynamic
7879 DW_AT_lower_bound attributes.
7880
8739bc53
JB
78812014-04-28 Joel Brobecker <brobecker@adacore.com>
7882
7883 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7884 dynamic bounds before computing its upper bound.
7885 (ada_discrete_type_low_bound): Same as above with the lower bound.
7886
6f8a3220
JB
78872014-04-28 Joel Brobecker <brobecker@adacore.com>
7888
7889 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7890 range types. Adjust the array handling implementation to
7891 take advantage of this change.
7892 (resolve_dynamic_range): New function, mostly extracted from
7893 resolve_dynamic_bounds.
7894 (resolve_dynamic_array): New function, mostly extracted from
7895 resolve_dynamic_bounds.
7896 (resolve_dynamic_bounds): Delete.
7897 (resolve_dynamic_type): Reimplement. Add handling of
7898 TYPE_CODE_RANGE types.
7899
4d072ce4
JB
79002014-04-28 Joel Brobecker <brobecker@adacore.com>
7901
7902 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7903 handling of parallel ___XA types.
7904
52865325
JB
79052014-04-28 Joel Brobecker <brobecker@adacore.com>
7906
7907 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7908 unnecessary second call to static_unwrap_type.
7909
433e77fa
HZ
79102014-04-27 Hui Zhu <hui@codesourcery.com>
7911
7912 * stack.c (print_frame_info): Call do_gdb_disassembly with
7913 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7914
b51a69ee
DE
79152014-04-26 Doug Evans <xdje42@gmail.com>
7916
7917 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7918
7ae1a6a6
PA
79192014-04-25 Pedro Alves <palves@redhat.com>
7920
7921 PR server/16255
7922 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7923 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7924 and newline from built string.
7925 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7926 (linux_ptrace_attach_fail_reason): ... this.
7927 * linux-nat.c (linux_nat_attach): Adjust to use
7928 linux_ptrace_attach_fail_reason.
7929
4082afcc
PA
79302014-04-25 Pedro Alves <palves@redhat.com>
7931
7932 * remote.c (struct remote_state): Remove multi_process_aware,
7933 non_stop_aware, cond_tracepoints, cond_breakpoints,
7934 breakpoint_commands, fast_tracepoints, static_tracepoints,
7935 install_in_trace, disconnected_tracing,
7936 enable_disable_tracepoints, string_tracing, and
7937 augmented_libraries_svr4_read fields.
7938 (remote_multi_process_p): Move further below in the file.
7939 (struct packet_config): Add comments.
7940 (update_packet_config): Delete function.
7941 (show_packet_config_cmd): Use packet_config_support.
7942 (add_packet_config_cmd): Use NULL as set callback.
7943 (packet_ok): "set remote foo-packet"-style commands no longer
7944 change config->supported -- adjust.
7945 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7946 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7947 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7948 (PACKET_QNonStop, PACKET_multiprocess_feature)
7949 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7950 (PACKET_DisconnectedTracing_feature)
7951 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7952 (set_remote_protocol_packet_cmd): Delete function.
7953 (packet_config_support, packet_support): New functions.
7954 (set_remote_protocol_Z_packet_cmd): Don't call
7955 update_packet_config.
7956 (remote_query_attached, remote_pass_signals)
7957 (remote_program_signals, remote_threads_info)
7958 (remote_threads_extra_info, remote_start_remote): Use
7959 packet_support.
7960 (remote_start_remote): Use packet_config_support and
7961 packet_support.
7962 (init_all_packet_configs): Set all packets to unknown support,
7963 instead of calling update_packet_config.
7964 (remote_check_symbols): Use packet_support.
7965 (remote_supported_packet): Unconditionally set the packet config's
7966 support status.
7967 (remote_multi_process_feature, remote_non_stop_feature)
7968 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7969 (remote_breakpoint_commands_feature)
7970 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7971 (remote_install_in_trace_feature)
7972 (remote_disconnected_tracing_feature)
7973 (remote_enable_disable_tracepoint_feature)
7974 (remote_string_tracing_feature)
7975 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7976 (remote_protocol_features): Adjust to use remote_supported_packet
7977 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7978 "ConditionalTracepoints", "ConditionalBreakpoints",
7979 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7980 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7981 "EnableDisableTracepoints", and "tracenz".
7982 (remote_query_supported): Use packet_support.
7983 (remote_open_1): Adjust.
7984 (extended_remote_attach_1): Use packet_support. Switch on the
7985 result of packet_ok instead of checking whether the packet ended
7986 up disabled.
7987 (remote_vcont_resume): Use packet_support.
7988 (remote_resume, remote_stop_ns, fetch_register_using_p)
7989 (remote_prepare_to_store, store_register_using_P)
7990 (check_binary_download, remote_write_bytes): Use packet_support.
7991 (remote_vkill): Use packet_support. Switch on the result of
7992 packet_ok instead of checking whether the packet ended up
7993 disabled.
7994 (extended_remote_supports_disable_randomization): Use
7995 packet_support.
7996 (extended_remote_run): Switch on the result of packet_ok instead
7997 of checking whether the packet ended up disabled.
7998 (remote_insert_breakpoint, remote_remove_breakpoint)
7999 (remote_insert_watchpoint, remote_remove_watchpoint)
8000 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8001 packet_support.
8002 (remote_search_memory): Use packet_config_support.
8003 (remote_get_thread_local_address, remote_get_tib_address)
8004 (remote_hostio_send_command, remote_can_execute_reverse): Use
8005 packet_support.
8006 (remote_supports_cond_tracepoints)
8007 (remote_supports_cond_breakpoints)
8008 (remote_supports_fast_tracepoints)
8009 (remote_supports_static_tracepoints)
8010 (remote_supports_install_in_trace)
8011 (remote_supports_enable_disable_tracepoint)
8012 (remote_supports_string_tracing)
8013 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8014 the packet config says the feature is enabled or disabled.
8015 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8016 (remote_get_trace_status): Use packet_support.
8017 (remote_set_disconnected_tracing): Adjust to check whether the
8018 feature is enabled with packet_support.
8019 (remote_set_trace_buffer_size, remote_use_agent)
8020 (remote_can_use_agent, remote_supports_btrace): Use
8021 packet_support.
8022 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8023 Use packet_config_support.
8024 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8025 the packet config says the feature is enabled or disabled.
8026 (set_range_stepping): Use packet_support.
8027
bdb52a22
TT
80282014-04-25 Tom Tromey <tromey@redhat.com>
8029
8030 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8031 argument.
8032
e9475ead
SA
80332014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8034
8035 * NEWS: Mention support for C99 variable length arrays.
8036
82eacd52
JB
80372014-04-24 Joel Brobecker <brobecker@adacore.com>
8038
8039 * ada-lang.c (standard_exc): Expand introductory comment.
8040
01f9f808
MS
80412014-04-24 Michael Sturm <michael.sturm@mintel.com>
8042 Walfred Tedeschi <walfred.tedeschi@intel.com>
8043
8044 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8045 AVX512 registers.
8046 (amd64_linux_read_description): Add code to handle AVX512 xstate
8047 mask and return respective tdesc.
8048 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8049 and features/i386/x32-avx512-linux.c.
8050 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8051 (amd64_linux_core_read_description): Add code to handle AVX512
8052 xstate mask and return respective tdesc.
8053 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8054 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8055 calculation.
8056 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8057 (tdesc_amd64_avx512_linux): New prototype.
8058 (tdesc_x32_avx512_linux): Likewise.
8059 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8060 features/i386/x32-avx512.c.
8061 (amd64_ymm_avx512_names): New register names for pseudo
8062 registers YMM16-31.
8063 (amd64_ymmh_avx512_names): New register names for raw registers
8064 YMMH16-31.
8065 (amd64_k_names): New register names for K registers.
8066 (amd64_zmmh_names): New register names for ZMM raw registers.
8067 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8068 (amd64_xmm_avx512_names): New register names for XMM16-31
8069 registers.
8070 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8071 registers.
8072 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8073 if feature is present.
8074 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8075 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8076 (AMD64_NUM_REGS): Adjust to new number of registers.
8077 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8078 registers supplied via XSTATE by AVX512 registers.
8079 (i386_linux_read_description): Add case for AVX512.
8080 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8081 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8082 (i386_linux_core_read_description): Add case for AVX512.
8083 (i386_linux_init_abi): Install supported register note section
8084 for AVX512.
8085 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8086 AVX512.
8087 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8088 registers to be number of zmm7h + 1.
8089 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8090 * i386-tdep.c: Include features/i386/i386-avx512.c.
8091 (i386_zmm_names): Add ZMM pseudo register names array.
8092 (i386_zmmh_names): Add ZMM raw register names array.
8093 (i386_k_names): Add K raw register names array.
8094 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8095 registers. AVX512 has 16 more ZMM registers than there are YMM
8096 registers.
8097 (i386_zmmh_regnum_p): Add function to look up register number of
8098 ZMM raw registers.
8099 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8100 (i386_k_regnum_p): Likewise for K raw registers.
8101 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8102 registers added by AVX512.
8103 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8104 registers added by AVX512.
8105 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8106 added by AVX512.
8107 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8108 (i386_pseudo_register_name): Add ZMM pseudo registers.
8109 (i386_zmm_type): Construct and return vector registers type for ZMM
8110 registers.
8111 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8112 ZMM0-31 pseudo registers and K registers.
8113 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8114 and YMM16-31 registers from register cache.
8115 (i386_pseudo_register_write): Add code to write K, ZMM and
8116 YMM16-31 registers.
8117 (i386_register_reggroup_p): Add code to include/exclude AVX512
8118 registers in/from respective register groups.
8119 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8120 registers if feature is present in xcr0.
8121 (i386_gdbarch_init): Add code to initialize AVX512 feature
8122 variables in tdep structure, wire in pseudo registers and call
8123 initialize_tdesc_i386_avx512.
8124 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8125 variables.
8126 (i386_regnum): Add AVX512 registers.
8127 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8128 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8129 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8130 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8131 512 bits wide.
8132 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8133 (i386_ymm_avx512_regnum_p): Likewise.
8134 (i386_k_regnum_p): Likewise.
8135 (i386_zmm_regnum_p): Likewise.
8136 (i386_zmmh_regnum_p): Likewise.
8137 * i387-tdep.c : Update year in copyright notice.
8138 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8139 XSAVE buffer.
8140 (XSAVE_YMM_AVX512_ADDR): New macro.
8141 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8142 XSAVE buffer.
8143 (XSAVE_XMM_AVX512_ADDR): New macro.
8144 (xsave_avx512_k_offset): New table for K register offsets in
8145 XSAVE buffer.
8146 (XSAVE_AVX512_K_ADDR): New macro.
8147 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8148 in XSAVE buffer.
8149 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8150 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8151 buffer.
8152 (i387_collect_xsave): Add code to collect AVX512 registers from
8153 XSAVE buffer.
8154 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8155 of XMM16-31 registers.
8156 (I387_NUM_K_REGS): New define for number of K registers.
8157 (I387_K0_REGNUM): New define for K0 register number.
8158 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8159 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8160 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8161 registers.
8162 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8163 (I387_XMM16_REGNUM): New define for XMM16 register number.
8164 (I387_YMM0_REGNUM): New define for YMM0 register number.
8165 (I387_KEND_REGNUM): New define for last K register number.
8166 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8167 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8168 number.
8169 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8170 number.
8171 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8172 size.
8173 * features/Makefile: Add AVX512 related files.
8174 * features/i386/32bit-avx512.xml: New file.
8175 * features/i386/64bit-avx512.xml: Likewise.
8176 * features/i386/amd64-avx512-linux.c: Likewise.
8177 * features/i386/amd64-avx512-linux.xml: Likewise.
8178 * features/i386/amd64-avx512.c: Likewise.
8179 * features/i386/amd64-avx512.xml: Likewise.
8180 * features/i386/i386-avx512-linux.c: Likewise.
8181 * features/i386/i386-avx512-linux.xml: Likewise.
8182 * features/i386/i386-avx512.c: Likewise.
8183 * features/i386/i386-avx512.xml: Likewise.
8184 * features/i386/x32-avx512-linux.c: Likewise.
8185 * features/i386/x32-avx512-linux.xml: Likewise.
8186 * features/i386/x32-avx512.c: Likewise.
8187 * features/i386/x32-avx512.xml: Likewise.
8188 * regformats/i386/amd64-avx512-linux.dat: New file.
8189 * regformats/i386/amd64-avx512.dat: Likewise.
8190 * regformats/i386/i386-avx512-linux.dat: Likewise.
8191 * regformats/i386/i386-avx512.dat: Likewise.
8192 * regformats/i386/x32-avx512-linux.dat: Likewise.
8193 * regformats/i386/x32-avx512.dat: Likewise.
8194 * NEWS: Add note about new support for AVX512.
8195
8196
08351840
PA
81972014-04-23 Pedro Alves <palves@redhat.com>
8198
8199 * breakpoint.c (insert_bp_location): Tolerate errors if the
8200 breakpoint is set in a user-loaded objfile.
8201 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8202 location is marked shlib_disabled. If the breakpoint is set in a
8203 user-loaded objfile is a GDB-side memory breakpoint, validate it
8204 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8205 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8206 flag.
8207 * mem-break.c (memory_validate_breakpoint): New function.
8208 * objfiles.c (userloaded_objfile_contains_address_p): New
8209 function.
8210 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8211 * target.h (memory_validate_breakpoint): New declaration.
8212
076855f9
PA
82132014-04-23 Pedro Alves <palves@redhat.com>
8214
8215 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8216 the breakpoint is set in a shared library, only suppress
8217 errors for software breakpoints, not hardware breakpoints.
8218
483805cf
PA
82192014-04-22 Pedro Alves <palves@redhat.com>
8220
8221 * infrun.c (schedlock_applies): New function, factored out from
8222 find_thread_needs_step_over.
8223 (find_thread_needs_step_over): Use it.
8224 (switch_back_to_stepped_thread): Always clear trap_expected if the
8225 step over is finished. Return early if scheduler locking applies.
8226 Look for the stepping thread and a potential step-over thread with
8227 a single loop.
8228 (currently_stepping_or_nexting_callback): Delete.
8229
a75fef0e
NC
82302014-04-22 Nick Clifton <nickc@redhat.com>
8231
8232 * NEWS: Mention that ARM sim now supports tracing.
8233
48b6e87e
YQ
82342014-04-22 Yao Qi <yao@codesourcery.com>
8235
8236 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8237 to ...
8238 * tracefile.c (tracefile_fetch_registers): ... it. New
8239 function.
8240 * tracefile.h (tracefile_fetch_registers): Declare.
8241 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8242 tracefile_fetch_registers.
8243
17617f2d
EZ
82442014-04-19 Eli Zaretskii <eliz@gnu.org>
8245
8246 PR gdb/14018
8247 * windows-nat.c (thread_rec): Don't display a warning when
8248 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8249 fails for any reason, set th->suspended to -1, so that we don't
8250 try to resume such a thread. Also, don't return NULL in these
8251 cases, to avoid completely ruin the session due to "PC register is
8252 not available" error.
8253 (do_windows_fetch_inferior_registers): Check errors in
8254 GetThreadContext call.
8255 (windows_continue): Accept an additional argument KILLED; if not
8256 zero, ignore errors in the SetThreadContext call, since the
8257 inferior was killed and is shutting down.
8258 (windows_resume, get_windows_debug_event)
8259 (windows_create_inferior, windows_mourn_inferior)
8260 (windows_kill_inferior): All callers of windows_continue changed
8261 to adjust to its new calling sequence.
8262
5723a6fd
YQ
82632014-04-19 Yao Qi <yao@codesourcery.com>
8264
8265 * ctf.c (ctf_open): Call post_create_inferior.
8266
614d5099
YQ
82672014-04-19 Yao Qi <yao@codesourcery.com>
8268
8269 * ctf.c (handle_id): New static variable.
8270 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8271 value. Get the declaration of event "register" and get length
8272 of field "contents".
8273
dac3e710
YQ
82742014-04-19 Yao Qi <yao@codesourcery.com>
8275
8276 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8277
2bca57ba
SC
82782014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8279
8280 * valops.c (oload_method_static): Remove unnecessary argument
8281 METHOD. Update all callers.
8282
51d48146
PA
82832014-04-18 Pedro alves <palves@redhat.com>
8284 Tom Tromey <tromey@redhat.com>
8285
8286 PR backtrace/15558
8287 * frame.c (get_prev_frame_1): Rename to ...
8288 (get_prev_frame_always): ... this, and make extern. Adjust.
8289 (skip_artificial_frames): Use get_prev_frame_always.
8290 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8291 (get_frame_unwind_stop_reason): Adjust to rename.
8292 * frame.h (get_prev_frame_always): Declare.
8293 * inline-frame.c: Include frame.h.
8294 (inline_frame_this_id): Use get_prev_frame_always.
8295
1bdad2e0
TG
82962014-04-18 Tristan Gingold <gingold@adacore.com>
8297
8298 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8299 code by using bfd_mach_o_get_base_address.
8300
7ce16bd4
UW
83012014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8302
8303 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8304 (spu_ax_pseudo_register_collect): New function.
8305 (spu_ax_pseudo_register_push_stack): Likewise.
8306 (spu_dwarf_reg_to_regnum): Likewise.
8307 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8308
2ed3c037
UW
83092014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8310
8311 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8312 Replace FRAME argument with FRAME_ID.
8313 * gdbarch.c, gdbarch.h: Regenerate.
8314 * findvar.c (default_value_from_register): Add GDBARCH argument;
8315 replace FRAME by FRAME_ID. No longer call get_frame_id.
8316 (value_from_register): Update call to gdbarch_value_from_register.
8317 * value.h (default_value_from_register): Update prototype.
8318 * s390-linux-tdep.c (s390_value_from_register): Update interface
8319 and call to default_value_from_register.
8320 * spu-tdep.c (spu_value_from_register): Likewise.
8321
8322 * findvar.c (address_from_register): Remove TYPE argument.
8323 Do not call value_from_register; use gdbarch_value_from_register
8324 with null_frame_id instead.
8325 * value.h (address_from_register): Update prototype.
8326 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8327 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8328 address_from_register interface change.
8329
71e50e83
YQ
83302014-04-17 Yao Qi <yao@codesourcery.com>
8331
8332 * gdbtypes.h: Update comments to link to types and macros'
8333 definitions.
8334
7a23c549
SC
83352014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8336
8337 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8338
22869d73
KS
83392014-04-16 Keith Seitz <keiths@redhat.com>
8340
8341 PR gdb/15827
8342 * dwarf2read.c (skip_one_die): Check that all relative-offset
8343 sibling DIEs fall within range of the current reader's buffer.
8344 (read_partial_die): Likewise.
8345
c4f87ca6
KS
83462014-04-16 Keith Seitz <keiths@redhat.com>
8347
8348 PR c++/16597
8349 * cp-namespace.c (lookup_symbol_file): If the type name of
8350 `this' is NULL, return immediately.
8351
b50c8614
KS
83522014-04-14 Keith Seitz <keiths@redhat.com>
8353
8354 PR c++/16253
8355 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8356 from symbol_matches_domain in symtab.c. All local callers
8357 of symbol_matches_domain updated.
8358 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8359 search STRUCT_DOMAIN.
8360 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8361 independently. standard_lookup will do that automatically.
8362 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8363 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8364 (cp_lookup_symbol_in_namespace): Likewise.
8365 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8366 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8367 may return a STRUCT_DOMAIN match.
8368 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8369 * cp-support.c: Include language.h.
8370 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8371 VAR_DOMAIN.
8372 * psymtab.c (match_partial_symbol): Compare the requested
8373 domain with the symbol's domain directly.
8374 (lookup_partial_symbol): Likewise.
8375 * symtab.c (lookup_symbol_in_language): Explain when/why
8376 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8377 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8378 appropriate languages.
8379 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8380 and moved to ada-lang.c
8381 (lookup_block_symbol): Explain that this function only returns
8382 symbol matching the requested DOMAIN.
8383 Compare the requested domain with the symbol's domain directly.
8384 (iterate_over_symbols): Compare the requested domain with the
8385 symbol's domain directly.
8386 * symtab.h (symbol_matches_domain): Remove.
8387
3d567982
TT
83882014-04-14 Tom Tromey <tromey@redhat.com>
8389
8390 PR c++/15246:
8391 * c-exp.y (type_aggregate_p): New function.
8392 (qualified_name, classify_inner_name): Use it.
8393 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8394 and TYPE_TARGET_TYPE of an enum type.
8395 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8396 an enum type.
8397 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8398 handle TYPE_DECLARED_CLASS.
8399 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8400 types.
8401 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8402 * valops.c (enum_constant_from_type): New function.
8403 (value_aggregate_elt): Use it.
8404 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8405 TYPE_CODE_ENUM.
8406
c848d642
TT
84072014-04-14 Tom Tromey <tromey@redhat.com>
8408
8409 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8410 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8411 const.
8412 * value.h (value_aggregate_elt): Update.
8413
0626fc76
TT
84142014-04-14 Tom Tromey <tromey@redhat.com>
8415
8416 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8417
5ecaaa66
SA
84182014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8419
8420 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8421 (evaluate_subexp_standard): Pass noside argument.
8422 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8423 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8424 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8425 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8426 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8427
1612e0c0
SA
84282014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8429
8430 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8431 points to a constant blob.
8432
c451ebe5
SA
84332014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8434
8435 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8436 property and store it as the high bound and flag the range accordingly.
8437 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8438 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8439 * gdbtypes.h (enum range_flags): New enum.
8440 (struct range_bounds): Add flags member.
8441
1d42e4c4
SA
84422014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8443
8444 * c-typeprint.c (c_type_print_varspec_suffix): Added
8445 check for not yet resolved high bound. If unresolved, print
8446 "variable length" string to the console instead of random
8447 length.
8448
9f1f738a
SA
84492014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8450
8451 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8452 value.
8453 (ada_template_to_fixed_record_type_1): Likewise.
8454 (ada_to_fixed_type_1): Likewise.
8455 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8456 (cp_print_value): Likewise.
8457 * d-valprint.c (dynamic_array_type): Likewise.
8458 * findvar.c (address_of_variable): Likewise.
8459 * jv-valprint.c (java_value_print): Likewise.
8460 * valops.c (value_ind): Likewise.
8461 * value.c (coerce_ref): Likewise.
8462
3c8452d4
SA
84632014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8464
8465 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8466 value and retrieve the dynamic type size.
8467
4ad88275
SA
84682014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8469
8470 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8471 passed to sizeof is dynamic evaluate the argument to compute the length.
8472
80180f79
SA
84732014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8474 Joel Brobecker <brobecker@adacore.com>
8475
8476 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8477 (dwarf2_evaluate_property): New function.
8478 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8479 * dwarf2read.c (attr_to_dynamic_prop): New function.
8480 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8481 attribute.
8482 * gdbtypes.c: Include dwarf2loc.h.
8483 (is_dynamic_type): New function.
8484 (resolve_dynamic_type): New function.
8485 (resolve_dynamic_bounds): New function.
8486 (get_type_length): New function.
8487 (check_typedef): Use get_type_length to compute type length.
8488 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8489 (TYPE_LOW_BOUND_KIND): New macro.
8490 (is_dynamic_type): New function prototype.
8491 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8492 to resolve dynamic properties of the type. Update comment.
8493 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8494
a1556843
RH
84952014-04-14 Richard Henderson <rth@redhat.com>
8496
8497 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8498
0be03e84
DE
84992014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8500 Doug Evans <xdje42@gmail.com>
8501
8502 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8503 dereference TYPE_CODE_REF values.
8504
6b662e19
JB
85052014-04-11 Joel Brobecker <brobecker@adacore.com>
8506
8507 Revert the following changes due to regressions:
8508
8509 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8510 (dwarf2_evaluate_property): New function.
8511 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8512 * dwarf2read.c (attr_to_dynamic_prop): New function.
8513 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8514 attribute.
8515 * gdbtypes.c: Include dwarf2loc.h.
8516 (is_dynamic_type): New function.
8517 (resolve_dynamic_type): New function.
8518 (resolve_dynamic_bounds): New function.
8519 (get_type_length): New function.
8520 (check_typedef): Use get_type_length to compute type length.
8521 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8522 (TYPE_LOW_BOUND_KIND): New macro.
8523 (is_dynamic_type): New function prototype.
8524 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8525 to resolve dynamic properties of the type. Update comment.
8526 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8527
8528 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8529 passed to sizeof is dynamic evaluate the argument to compute the length.
8530
8531 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8532 value and retrieve the dynamic type size.
8533
8534 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8535 (ada_template_to_fixed_record_type_1): Likewise.
8536 (ada_to_fixed_type_1): Likewise.
8537 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8538 (cp_print_value): Likewise.
8539 * d-valprint.c (dynamic_array_type): Likewise.
8540 * eval.c (evaluate_subexp_with_coercion): Likewise.
8541 * findvar.c (address_of_variable): Likewise.
8542 * jv-valprint.c (java_value_print): Likewise.
8543 * valops.c (value_ind): Likewise.
8544 * value.c (coerce_ref): Likewise.
8545
8546 * c-typeprint.c (c_type_print_varspec_suffix): Added
8547 check for not yet resolved high bound. If unresolved, print
8548 "variable length" string to the console instead of random
8549 length.
8550
8551 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8552 property and store it as the high bound and flag the range accordingly.
8553 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8554 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8555 * gdbtypes.h (enum range_flags): New enum.
8556 (struct range_bounds): Add flags member.
8557
8558 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8559 points to a constant blob.
8560
8561 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8562 (evaluate_subexp_standard): Pass noside argument.
8563 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8564 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8565 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8566 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8567 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8568
245a5f0b
KS
85692014-04-11 Keith Seitz <keiths@redhat.com>
8570
8571 PR c++/16675
8572 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8573 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8574 reference types.
8575
3bce8237
SA
85762014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8577
8578 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8579 (evaluate_subexp_standard): Pass noside argument.
8580 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8581 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8582 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8583 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8584 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8585
92b09522
SA
85862014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8587
8588 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8589 points to a constant blob.
8590
e1969afb
SA
85912014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8592
8593 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8594 property and store it as the high bound and flag the range accordingly.
8595 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8596 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8597 * gdbtypes.h (enum range_flags): New enum.
8598 (struct range_bounds): Add flags member.
8599
b86138fb
SA
86002014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8601
8602 * c-typeprint.c (c_type_print_varspec_suffix): Added
8603 check for not yet resolved high bound. If unresolved, print
8604 "variable length" string to the console instead of random
8605 length.
8606
bcd629a4
SA
86072014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8608
8609 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8610 (ada_template_to_fixed_record_type_1): Likewise.
8611 (ada_to_fixed_type_1): Likewise.
8612 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8613 (cp_print_value): Likewise.
8614 * d-valprint.c (dynamic_array_type): Likewise.
8615 * eval.c (evaluate_subexp_with_coercion): Likewise.
8616 * findvar.c (address_of_variable): Likewise.
8617 * jv-valprint.c (java_value_print): Likewise.
8618 * valops.c (value_ind): Likewise.
8619 * value.c (coerce_ref): Likewise.
8620
04b19544
SA
86212014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8622
8623 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8624 value and retrieve the dynamic type size.
8625
26cb189f
SA
86262014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8627
8628 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8629 passed to sizeof is dynamic evaluate the argument to compute the length.
8630
37c1ab67
SA
86312014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8632
8633 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8634 (dwarf2_evaluate_property): New function.
8635 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8636 * dwarf2read.c (attr_to_dynamic_prop): New function.
8637 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8638 attribute.
8639 * gdbtypes.c: Include dwarf2loc.h.
8640 (is_dynamic_type): New function.
8641 (resolve_dynamic_type): New function.
8642 (resolve_dynamic_bounds): New function.
8643 (get_type_length): New function.
8644 (check_typedef): Use get_type_length to compute type length.
8645 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8646 (TYPE_LOW_BOUND_KIND): New macro.
8647 (is_dynamic_type): New function prototype.
8648 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8649 to resolve dynamic properties of the type. Update comment.
8650 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8651
729efb13
SA
86522014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8653
8654 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8655 declaring high/low bounds and change uses accordingly. Call
8656 create_range_type instead of create_static_range_type.
8657 * gdbtypes.c (create_range_type): New function.
8658 (create_range_type): Convert bounds into struct bound_prop and pass
8659 them to create_range_type.
8660 * gdbtypes.h (struct bound_prop): New struct.
8661 (create_range_type): New function prototype.
8662 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8663 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8664 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8665 part of the bound.
8666 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8667
0c9c3474
SA
86682014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8669
8670 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8671 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8672 * ada-lang.c: All uses of create_range_type updated.
8673 * coffread.c: All uses of create_range_type updated.
8674 * dwarf2read.c: All uses of create_range_type updated.
8675 * f-exp.y: All uses of create_range_type updated.
8676 * m2-valprint.c: All uses of create_range_type updated.
8677 * mdebugread.c: All uses of create_range_type updated.
8678 * stabsread.c: All uses of create_range_type updated.
8679 * valops.c: All uses of create_range_type updated.
8680 * valprint.c: All uses of create_range_type updated.
8681
9d497a19
PA
86822014-04-10 Pedro Alves <palves@redhat.com>
8683
8684 * breakpoint.c (single_step_breakpoints)
8685 (single_step_gdbarch): Move up in the file.
8686 (one_breakpoint_xfer_memory): New function, factored out from ...
8687 (breakpoint_xfer_memory): ... here. Also process single-step
8688 breakpoints.
8689
15a9128a
TG
86902014-04-09 Tristan Gingold <gingold@adacore.com>
8691
8692 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8693 comments.
8694 (darwin_decode_exception_message): Free port only after use.
8695
9c97a070
PL
86962014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8697
8698 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8699 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8700 when setting the size of call_length.
8701
7af389b8
SC
87022014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8703
8704 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8705 dereference TYPE_CODE_REF values.
8706
86ad98c3
JB
87072014-04-07 Joel Brobecker <brobecker@adacore.com>
8708
8709 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8710 end of warning message.
8711
b0aeadb3
DE
87122014-04-03 Doug Evans <dje@google.com>
8713
8714 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8715 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8716
5979d6b6
AM
87172014-04-02 Alan Modra <amodra@gmail.com>
8718
8719 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8720 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8721 (struct symbol_file_add_from_memory_args): Add size field.
8722 (find_vdso_size): New function.
8723 (add_vsyscall_page): Attempt to find vdso size.
8724
0d60c288
DE
87252014-04-01 Doug Evans <dje@google.com>
8726
8727 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8728
a41f2563
TG
87292014-04-01 Tristan Gingold <gingold@adacore.com>
8730
8731 * darwin-nat.c (darwin_encode_reply): Add prototype.
8732 (darwin_decode_exception_message): Reply to unknown inferiors.
8733 (darwin_decode_message): Handle message by id. Ignore message
8734 to unknown inferior.
8735 (darwin_wait): Discard unknown messages, add debug trace.
8736
11a865c8
DE
87372014-03-31 Doug Evans <dje@google.com>
8738
8739 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8740 comp_dir_string.
8741
770e7fc7
DE
87422014-03-31 Doug Evans <dje@google.com>
8743
8744 New option "set print symbol-loading".
8745 * NEWS: Mention it.
8746 * solib.c (solib_read_symbols): Only print symbol loading messages
8747 if requested.
8748 (solib_add): If symbol loading is in "brief" mode, notify user
8749 symbols are being loaded.
8750 (reload_shared_libraries_1): Ditto.
8751 * symfile.c (print_symbol_loading_off): New static global.
8752 (print_symbol_loading_brief): New static global.
8753 (print_symbol_loading_full): New static global.
8754 (print_symbol_loading_enums): New static global.
8755 (print_symbol_loading): New static global.
8756 (print_symbol_loading_p): New function.
8757 (symbol_file_add_with_addrs): Only print symbol loading messages
8758 if requested.
8759 (_initialize_symfile): Register "print symbol-loading" set/show
8760 command.
8761 * symfile.h (print_symbol_loading_p): Declare.
8762
c32c64b7
DE
87632014-03-30 Doug Evans <xdje42@gmail.com>
8764
8765 * infrun.c (set_last_target_status): New function.
8766 (handle_inferior_event): Call it.
8767
7c0bc051
DE
87682014-03-30 Doug Evans <xdje42@gmail.com>
8769
8770 * inferior.h (enum stop_kind): Improve comment.
8771
8776cfe9
JB
87722014-03-28 Joel Brobecker <brobecker@adacore.com>
8773
8774 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8775 a reference, strip the reference layer before calling
8776 the lang_ops value_has_mutated callback.
8777
410a0ff2
SDJ
87782014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8779
8780 Remove some globals from our parser.
8781 * language.c (unk_lang_parser): Add "struct parser_state"
8782 argument.
8783 * language.h (struct language_defn) <la_parser>: Likewise.
8784 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8785 (initialize_expout): Add "struct parser_state" argument.
8786 Rewrite function to use the parser state.
8787 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8788 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8789 write_exp_elt_longcst, write_exp_elt_dblcst,
8790 write_exp_elt_decfloatcst, write_exp_elt_type,
8791 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8792 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8793 write_dollar_variable): Likewise.
8794 (parse_exp_in_context_1): Use parser state.
8795 (insert_type_address_space): Add "struct parser_state" argument.
8796 Use parser state.
8797 (increase_expout_size): New function.
8798 * parser-defs.h: Forward declare "struct language_defn" and
8799 "struct parser_state".
8800 (expout, expout_size, expout_ptr): Remove extern declarations.
8801 (parse_gdbarch, parse_language): Rewrite macro declarations to
8802 accept the parser state.
8803 (struct parser_state): New struct.
8804 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8805 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8806 write_exp_elt_decfloatcst, write_exp_elt_type,
8807 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8808 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8809 write_exp_msymbol, write_dollar_variable,
8810 mark_struct_expression, insert_type_address_space): Add "struct
8811 parser_state" argument.
8812 (increase_expout_size): New function.
8813 * utils.c (do_clear_parser_state): New function.
8814 (make_cleanup_clear_parser_state): Likewise.
8815 * utils.h (make_cleanup_clear_parser_state): New function
8816 prototype.
8817 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8818 Update calls to write_exp* in order to pass the parser state.
8819 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8820 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8821 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8822 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8823 * stap-probe.c (stap_parse_register_operand): Likewise.
8824 (stap_parse_single_operand): Likewise.
8825 (stap_parse_argument_1): Likewise.
8826 (stap_parse_argument): Use parser state.
8827 * stap-probe.h: Include "parser-defs.h".
8828 (struct stap_parse_info) <pstate>: New field.
8829 * c-exp.y (parse_type): Rewrite to use parser state.
8830 (yyparse): Redefine to c_parse_internal.
8831 (pstate): New global variable.
8832 (parse_number): Add "struct parser_state" argument.
8833 (write_destructor_name): Likewise.
8834 (type_exp): Update calls to write_exp* and similars in order to
8835 use parser state.
8836 (exp1, exp, variable, qualified_name, space_identifier,
8837 typename, typebase): Likewise.
8838 (write_destructor_name, parse_number, lex_one_token,
8839 classify_name, classify_inner_name, c_parse): Add "struct
8840 parser_state" argument. Update function to use parser state.
8841 * c-lang.h: Forward declare "struct parser_state".
8842 (c_parse): Add "struct parser_state" argument.
8843 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8844 (yyparse): Redefine macro to ada_parse_internal.
8845 (pstate): New variable.
8846 (write_int, write_object_renaming, write_var_or_type,
8847 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8848 type_int, type_long, type_long_long, type_float, type_double,
8849 type_long_double, type_char, type_boolean, type_system_address):
8850 Add "struct parser_state" argument.
8851 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8852 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8853 var_or_type, aggregate, aggregate_component_list,
8854 positional_list, others, component_group,
8855 component_associations): Update calls to write_exp* and similar
8856 functions in order to use parser state.
8857 (ada_parse, write_var_from_sym, write_int,
8858 write_exp_op_with_string, write_object_renaming,
8859 find_primitive_type, write_selectors, write_ambiguous_var,
8860 write_var_or_type, write_name_assoc, type_int, type_long,
8861 type_long_long, type_float, type_double, type_long_double,
8862 type_char, type_boolean, type_system_address): Add "struct
8863 parser_state" argument. Adjust function to use parser state.
8864 * ada-lang.c (parse): Likewise.
8865 * ada-lang.h: Forward declare "struct parser_state".
8866 (ada_parse): Add "struct parser_state" argument.
8867 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8868 calls to both functions.
8869 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8870 parser state.
8871 (yyparse): Redefine macro to f_parse_internal.
8872 (pstate): New variable.
8873 (parse_number): Add "struct parser_state" argument.
8874 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8875 and similars in order to use parser state.
8876 (parse_number): Adjust code to use parser state.
8877 (yylex): Likewise.
8878 (f_parse): New function.
8879 * f-lang.h: Forward declare "struct parser_state".
8880 (f_parse): Add "struct parser_state" argument.
8881 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8882 parser state.
8883 (yyparse): Redefine macro for java_parse_internal.
8884 (pstate): New variable.
8885 (push_expression_name, push_expression_name, insert_exp): Add
8886 "struct parser_state" argument.
8887 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8888 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8889 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8890 PostIncrementExpression, PostDecrementExpression,
8891 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8892 UnaryExpressionNotPlusMinus, CastExpression,
8893 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8894 RelationalExpression, EqualityExpression, AndExpression,
8895 ExclusiveOrExpression, InclusiveOrExpression,
8896 ConditionalAndExpression, ConditionalOrExpression,
8897 ConditionalExpression, Assignment, LeftHandSide): Update
8898 calls to write_exp* and similars in order to use parser state.
8899 (parse_number): Ajust code to use parser state.
8900 (yylex): Likewise.
8901 (java_parse): New function.
8902 (push_variable): Add "struct parser_state" argument. Adjust
8903 code to user parser state.
8904 (push_fieldnames, push_qualified_expression_name,
8905 push_expression_name, insert_exp): Likewise.
8906 * jv-lang.h: Forward declare "struct parser_state".
8907 (java_parse): Add "struct parser_state" argument.
8908 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8909 parser state.
8910 (yyparse): Redefine macro to m2_parse_internal.
8911 (pstate): New variable.
8912 (type_exp, exp, fblock, variable, type): Update calls to
8913 write_exp* and similars to use parser state.
8914 (yylex): Likewise.
8915 (m2_parse): New function.
8916 * m2-lang.h: Forward declare "struct parser_state".
8917 (m2_parse): Add "struct parser_state" argument.
8918 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8919 * objc-lang.h: Forward declare "struct parser_state".
8920 (end_msglist): Add "struct parser_state" argument.
8921 * p-exp.y (parse_type): Rewrite macro to use parser state.
8922 (yyparse): Redefine macro to pascal_parse_internal.
8923 (pstate): New variable.
8924 (parse_number): Add "struct parser_state" argument.
8925 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8926 write_exp* and similars in order to use parser state.
8927 (parse_number, yylex): Adjust code to use parser state.
8928 (pascal_parse): New function.
8929 * p-lang.h: Forward declare "struct parser_state".
8930 (pascal_parse): Add "struct parser_state" argument.
8931 * go-exp.y (parse_type): Rewrite macro to use parser state.
8932 (yyparse): Redefine macro to go_parse_internal.
8933 (pstate): New variable.
8934 (parse_number): Add "struct parser_state" argument.
8935 (type_exp, exp1, exp, variable, type): Update calls to
8936 write_exp* and similars in order to use parser state.
8937 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8938 to use parser state.
8939 (go_parse): Likewise.
8940 * go-lang.h: Forward declare "struct parser_state".
8941 (go_parse): Add "struct parser_state" argument.
8942
342587c4
DE
89432014-03-27 Doug Evans <dje@google.com>
8944
8945 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8946
33e80786
DE
89472014-03-27 Doug Evans <dje@google.com>
8948
8949 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8950 Remove argument abbrev_section. All callers updated.
8951
1dbab08b
DE
89522014-03-27 Doug Evans <dje@google.com>
8953
8954 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8955 addr_base, ranges_base.
8956
318d3177
KS
89572014-03-26 Keith Seitz <keiths@redhat.com>
8958
8959 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8960 types, not VAR_DOMAIN.
8961
1e54db15
SL
89622014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8963
8964 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8965 "ra" registers.
8966 * features/nios2-linux.c: Regenerated.
8967 * features/nios2.c: Regenerated.
8968
d3839ede
PA
89692014-03-25 Pedro Alves <palves@redhat.com>
8970
8971 * cli/cli-script.c (script_from_file): Force the interpreter to
8972 sync mode.
8973
7588d2ec
PL
89742014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8975
8976 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8977 small stack allocation.
8978
a6290449
TG
89792014-03-24 Tristan Gingold <gingold@adacore.com>
8980
8981 * darwin-nat.c (exc_server): Remove unused prototype.
8982 (darwin_dump_message): Correctly display data on x86_64.
8983 (darwin_encode_reply): Fix style.
8984 Add comments and fix indentation.
8985
31ae9d24 89862014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8987
8988 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8989
6339bfc4
DE
89902014-03-22 Doug Evans <xdje42@gmail.com>
8991
8992 * infcmd.c: Whitespace fixes.
8993 (interrupt_command): Merge two function comments into one.
8994
0a07590b
DE
89952014-03-22 Doug Evans <xdje42@gmail.com>
8996
8997 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8998 All uses updated.
8999
b55fbac4
YQ
90002014-03-22 Yao Qi <yao@codesourcery.com>
9001
9002 * remote.c (target_read_live_memory): Remove.
9003 (memory_xfer_live_readonly_partial): Rename it to
9004 remote_xfer_live_readonly_partial. Remove argument 'object'.
9005 All callers updated. Call remote_read_bytes_1
9006 instead of target_read_live_memory.
9007 * tracepoint.c (set_traceframe_number): Remove.
9008 (make_cleanup_restore_traceframe_number): Likewise .
9009 * tracepoint.h (set_traceframe_number): Remove declaration.
9010 (make_cleanup_restore_traceframe_number): Likewise.
9011
9217e74e
YQ
90122014-03-22 Yao Qi <yao@codesourcery.com>
9013
9014 * remote.c (remote_read_bytes): Move code on reading from the
9015 remote stub to ...
9016 (remote_read_bytes_1): ... here. New function.
9017
8acf9577
YQ
90182014-03-22 Yao Qi <yao@codesourcery.com>
9019
9020 * ctf.c (ctf_xfer_partial): Check the return value of
9021 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9022 return TARGET_XFER_UNAVAILABLE.
9023 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9024 * target.c (target_read_live_memory): Move it to remote.c.
9025 (memory_xfer_live_readonly_partial): Likewise.
9026 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9027 * remote.c (target_read_live_memory): Moved from target.c.
9028 (memory_xfer_live_readonly_partial): Likewise.
9029 (remote_read_bytes): Factored out from
9030 memory_xfer_partial_1.
9031
feef67ab
DE
90322014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9033
9034 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9035 NULL pointer.
9036
b65dc60b
PA
90372014-03-21 Pedro Alves <palves@redhat.com>
9038
9039 * infrun.c (normal_stop): Extend comment.
9040
b4ab256d
HZ
90412014-03-21 Hui Zhu <hui@codesourcery.com>
9042 Pedro Alves <palves@redhat.com>
9043
9044 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9045 static buffer.
9046 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9047 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9048 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9049
deba7593
MR
90502014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9051
9052 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9053 `z' formatted output modifier.
9054
1bff71c3
SDJ
90552014-03-20 Tom Tromey <tromey@redhat.com>
9056 Sergio Durigan Junior <sergiodj@redhat.com>
9057
9058 * probe.c (parse_probes): Turn assert into an ordinary error.
9059 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9060 exceptions when parsing probes. Rearrange the code for clarity.
9061
90e28950
TT
90622014-03-20 Tom Tromey <tromey@redhat.com>
9063
9064 PR gdb/14135
9065 * top.c (execute_command): Only dispatch events if the command
9066 started the target.
9067
beb460e8
PA
90682014-03-20 Tom Tromey <tromey@redhat.com>
9069
9070 PR cli/15718
9071 * infcall.c: Include event-top.h.
9072 (run_inferior_call): Call async_disable_stdin if needed.
9073
99619bea
PA
90742014-03-20 Pedro Alves <palves@redhat.com>
9075
9076 * infrun.c (prepare_to_proceed): Delete.
9077 (thread_still_needs_step_over): New function.
9078 (find_thread_needs_step_over): New function.
9079 (proceed): If the current thread needs a step-over, set its
9080 steping_over_breakpoint flag. Adjust to use
9081 find_thread_needs_step_over instead of prepare_to_proceed.
9082 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9083 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9084 breakpoint.
9085 (switch_back_to_stepped_thread): Step over breakpoints of all
9086 threads not the stepping thread, before switching back to the
9087 stepping thread.
9088
2adfaa28
PA
90892014-03-20 Pedro Alves <palves@redhat.com>
9090
9091 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9092 extern.
9093 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9094 * infrun.c (saved_singlestep_ptid)
9095 (stepping_past_singlestep_breakpoint): Delete.
9096 (resume): Remove stepping_past_singlestep_breakpoint handling.
9097 (proceed): Store the prev_pc of the stepping thread too.
9098 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9099 singlestep_pc.
9100 (enum infwait_states): Delete infwait_thread_hop_state.
9101 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9102 field.
9103 (handle_inferior_event): Adjust.
9104 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9105 handling and the thread-hop code. Before removing single-step
9106 breakpoints, check whether the thread hit a single-step breakpoint
9107 of another thread. If it did, the trap is not a random signal.
9108 (switch_back_to_stepped_thread): If the event thread hit a
9109 single-step breakpoint, unblock it before switching to the
9110 stepping thread. Handle the case of the stepped thread having
9111 advanced already.
9112 (keep_going): Handle the case of the current thread moving past a
9113 single-step breakpoint.
9114
31e77af2
PA
91152014-03-20 Pedro Alves <palves@redhat.com>
9116
9117 PR breakpoints/7143
9118 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9119 are being stepped over.
9120 (breakpoint_address_match): Make extern.
9121 * breakpoint.h (breakpoint_address_match): New declaration.
9122 * inferior.h (stepping_past_instruction_at): New declaration.
9123 * infrun.c (struct step_over_info): New type.
9124 (step_over_info): New global.
9125 (set_step_over_info, clear_step_over_info)
9126 (stepping_past_instruction_at): New functions.
9127 (handle_inferior_event): Clear the step-over info when
9128 trap_expected is cleared.
9129 (resume): Remove now stale comment.
9130 (clear_proceed_status): Clear step-over info.
9131 (proceed): Adjust step-over handling to set or clear the step-over
9132 info instead of removing all breakpoints.
9133 (handle_signal_stop): When setting up a thread-hop, don't remove
9134 breakpoints here.
9135 (stop_stepping): Clear step-over info.
9136 (keep_going): Adjust step-over handling to set or clear step-over
9137 info and then always inserting breakpoints, instead of removing
9138 all breakpoints when stepping over one.
9139
b9f437de
PA
91402014-03-20 Pedro Alves <palves@redhat.com>
9141
9142 * infrun.c (previous_inferior_ptid): Adjust comment.
9143 (deferred_step_ptid): Delete.
9144 (infrun_thread_ptid_changed, prepare_to_proceed)
9145 (init_wait_for_inferior): Adjust.
9146 (handle_signal_stop): Delete deferred_step_ptid handling.
9147
06c868a8
JK
91482014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9149
9150 PR gdb/15358
9151 * defs.h (sync_quit_force_run): New declaration.
9152 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9153 * event-top.c (async_sigterm_handler): New declaration.
9154 (async_sigterm_token): New variable.
9155 (async_init_signals): Create also async_sigterm_token.
9156 (async_sigterm_handler): New function.
9157 (sync_quit_force_run): New variable.
9158 (handle_sigterm): Replace quit_force call by other calls.
9159 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9160
dea80df0
MR
91612014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9162
9163 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9164 offset into SPE pseudo registers.
9165
0c7e1a46
PA
91662014-03-18 Pedro Alves <palves@redhat.com>
9167
9168 PR gdb/13860
9169 * inferior.h (print_stop_event): Declare.
9170 * infrun.c (print_stop_event): New, factored out from ...
9171 (normal_stop): ... this.
9172 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9173 of bpstat_print/print_stack_frame.
9174
9c1fcd01
TT
91752014-03-17 Tom Tromey <tromey@redhat.com>
9176
9177 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9178
11aa919a
PMR
91792014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9180
9181 * ada-lang.c (decode_constrained_packed_array): Perform a
9182 minimal coercion for reference with coerce_ref instead of
9183 ada_coerce_ref.
9184
d4ccb5e0
TG
91852014-03-17 Tristan Gingold <gingold@adacore.com>
9186
9187 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9188 (darwin_solib_create_inferior_hook): Emit a warning if version
9189 is unhandled.
9190
49840f2a
UW
91912014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9192
9193 * python/py-value.c (get_field_flag): Cast flag_name argument to
9194 PyObject_GetAttrString to support Python 2.4.
9195
ed4123e5
JK
91962014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9197
9198 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9199 (Global Maintainers): Remove Jan Kratochvil.
9200
d6b64346
PA
92012014-03-14 Pedro Alves <palves@redhat.com>
9202
9203 * inferior.h (terminal_ours_for_output): Rename to ...
9204 (child_terminal_ours_for_output): ... this.
9205 (terminal_save_ours): Rename to ...
9206 (child_terminal_save_ours): ... this.
9207 (terminal_ours): Rename to ...
9208 (child_terminal_ours): ... this.
9209 (terminal_inferior): Rename to ...
9210 (child_terminal_inferior): ... this.
9211 (terminal_init_inferior): Rename to ...
9212 (child_terminal_init_inferior): ... this.
9213 (terminal_init_inferior_with_pgrp): Rename to ...
9214 (child_terminal_init_inferior_with_pgrp): ... this.
9215 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9216 (child_terminal_init_with_pgrp): ... this.
9217 (terminal_save_ours): Rename to ...
9218 (child_terminal_save_ours): ... this.
9219 (terminal_init_inferior): Rename to ...
9220 (child_terminal_init): ... this. Adjust.
9221 (terminal_inferior): Rename to ...
9222 (child_terminal_inferior): ... this.
9223 (terminal_ours_for_output): Rename to ...
9224 (child_terminal_ours_for_output): ... this. Adjust.
9225 (terminal_ours): Rename to ...
9226 (child_terminal_ours): ... this.
9227 (terminal_ours_1): Rename to ...
9228 (child_terminal_ours_1): ... this. Adjust.
9229 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9230 * windows-nat.c (do_initial_windows_stuff): Adjust.
9231 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9232 (gnu_terminal_init): ... this. Adjust.
9233 (gnu_target): Adjust.
9234 * inf-child.c (inf_child_target): Adjust.
9235
5a1e8c7a
DE
92362014-03-13 Doug Evans <xdje42@gmail.com>
9237
9238 PR guile/16612
9239 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9240 new eq?-hashtab.
9241
350e1a76
DE
92422014-03-13 Doug Evans <xdje42@gmail.com>
9243
9244 * value.c (record_latest_value): Call release_value_or_incref
9245 instead of release_value.
9246
a69900ae
PA
92472014-03-13 Pedro Alves <palves@redhat.com>
9248
9249 * procfs.c (procfs_target): Don't override to_shortname,
9250 to_longname or to_doc.
9251
5db9f0bd
PA
92522014-03-13 Pedro Alves <palves@redhat.com>
9253
9254 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9255 Unix in user visible strings.
9256
5e3a2c38
SS
92572014-03-12 Stan Shebs <stan@codesourcery.com>
9258
9259 * gdbtypes.h: Annotate comments for Doxygen, add a page
9260 block comment with some general info.
9261
8bc2fe48
PA
92622014-03-12 Pedro Alves <palves@redhat.com>
9263
9264 * infcmd.c (prepare_execution_command): New function, factored out
9265 from several execution commands.
9266 (run_command_1, continue_command, step_1, jump_command)
9267 (signal_command, until_command, advance_command, finish_command)
9268 (attach_command): Use prepare_execution_command.
9269
638c5f49
OJ
92702014-03-12 Omair Javaid <omair.javaid@linaro.org>
9271
9272 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9273 (MAX_BPTS): Define.
9274 (MAX_WPTS): Define.
9275 (struct arm_linux_thread_points): Removed.
9276 (struct arm_linux_process_info): New.
9277 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9278 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9279 (arm_linux_find_breakpoints_by_tid): Removed.
9280 (struct arch_lwp_info): New.
9281 (arm_linux_find_process_pid): New functions.
9282 (arm_linux_add_process): New functions.
9283 (arm_linux_process_info_get): New functions.
9284 (arm_linux_forget_process): New function.
9285 (arm_linux_get_debug_reg_state): New function.
9286 (struct update_registers_data): New.
9287 (update_registers_callback): New function.
9288 (arm_linux_insert_hw_breakpoint1): Updated.
9289 (arm_linux_remove_hw_breakpoint1): Updated.
9290 (arm_linux_insert_hw_breakpoint): Updated.
9291 (arm_linux_remove_hw_breakpoint): Updated.
9292 (arm_linux_insert_watchpoint): Updated.
9293 (arm_linux_remove_watchpoint): Updated.
9294 (arm_linux_new_thread): Updated.
9295 (arm_linux_prepare_to_resume): New function.
9296 (arm_linux_new_fork): New function.
9297 (_initialize_arm_linux_nat): Updated.
9298
6d03af93
PA
92992014-03-12 Pedro Alves <palves@redhat.com>
9300
9301 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9302
b3ccfe11
TT
93032014-03-12 Tom Tromey <tromey@redhat.com>
9304
9305 * inf-child.c (return_zero): New function.
9306 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9307 * aix-thread.c (aix_thread_inferior_created): New function.
9308 (aix_thread_attach): Remove.
9309 (init_aix_thread_ops): Don't set to_attach.
9310 (_initialize_aix_thread): Register inferior_created observer.
9311 * corelow.c (init_core_ops): Don't set to_attach or
9312 to_create_inferior.
9313 * exec.c (init_exec_ops): Don't set to_attach or
9314 to_create_inferior.
9315 * infcmd.c (run_command_1): Use find_run_target. Make direct
9316 target calls.
9317 (attach_command): Use find_attach_target. Make direct target
9318 calls.
9319 * record-btrace.c (init_record_btrace_ops): Don't set
9320 to_create_inferior.
9321 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9322 Remove.
9323 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9324 set to_create_inferior.
9325 * target.c (complete_target_initialization): Add assertion.
9326 (target_create_inferior): Remove.
9327 (find_default_attach, find_default_create_inferior): Remove.
9328 (find_attach_target, find_run_target): New functions.
9329 (find_default_is_async_p, find_default_can_async_p)
9330 (target_supports_non_stop, target_attach): Remove.
9331 (init_dummy_target): Don't set to_create_inferior or
9332 to_supports_non_stop.
9333 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9334 TARGET_DEFAULT_FUNC.
9335 <to_create_inferior>: Add comment.
9336 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9337 TARGET_DEFAULT_RETURN.
9338 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9339 (find_attach_target, find_run_target): Declare.
9340 (target_create_inferior): Remove.
9341 (target_has_execution_1): Update comment.
9342 (target_supports_non_stop): Remove.
9343 * target-delegates.c: Rebuild.
9344
91f83b02
PA
93452014-03-12 Pedro Alves <palves@redhat.com>
9346
9347 * inf-child.h: Update comment to not mention Unix.
9348
f1aea813
PA
93492014-03-12 Pedro Alves <palves@redhat.com>
9350
9351 * inf-child.c: Update top comment to not mention Unix. Add
9352 generic comment describing how this target is meant to be used.
9353 (inf_child_post_attach, inf_child_post_startup_inferior)
9354 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9355 Unix in comment.
9356
ee8e9165
PA
93572014-03-12 Pedro Alves <palves@redhat.com>
9358
9359 * nto-procfs.c: Include inf-child.h.
9360 (procfs_ops): Delete global.
9361 (procfs_can_run): Delete method.
9362 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9363 target pointer instead of referencing procfs_ops.
9364 (procfs_prepare_to_store): Delete.
9365 (init_procfs_ops): Delete function.
9366 (procfs_target): New function, based on init_procfs_ops, but
9367 inherit inf_child_target.
9368 (_initialize_procfs): Use procfs_target.
9369
51a9c8c5
PA
93702014-03-12 Pedro Alves <palves@redhat.com>
9371
9372 * windows-nat.c: Include inf-child.h.
9373 (windows_ops): Delete global.
9374 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9375 methods.
9376 (init_windows_ops): Delete function.
9377 (windows_target): New function, based on init_windows_ops, but
9378 inherit inf_child_target.
9379 (_initialize_windows_nat): Use windows_target. Install x86
9380 specific target methods here.
9381
c1966e26
DE
93822014-03-10 Doug Evans <xdje42@gmail.com>
9383
9384 * guile/guile.c (call_initialize_gdb_module): New function.
9385 (initialize_guile): Replace call to scm_init_guile with call to
9386 scm_with_guile.
9387
023db19c
JB
93882014-03-10 Joel Brobecker <brobecker@adacore.com>
9389
9390 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9391 in call to TYPE_CODE macro.
9392
5ec18f2b
JG
93932014-03-10 Jerome Guitton <guitton@adacore.com>
9394
8668be63
JB
9395 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9396 Resolve tagged types to full view.
5ec18f2b 9397
7d03f2eb
HZ
93982014-03-10 Hui Zhu <hui@codesourcery.com>
9399
9400 * target.h (target_insert_breakpoint): Remove "hardware" from its
9401 comments.
9402
c5164cbc
DE
94032014-03-07 Doug Evans <dje@google.com>
9404
9405 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9406
c4a3fee2
DE
94072014-03-07 Doug Evans <dje@google.com>
9408
9409 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9410 Remove unused local comp_dir_attr. Assert exactly one of
9411 stub_comp_unit_die, stub_comp_dir is non-NULL.
9412
3156469c
JB
94132014-03-07 Joel Brobecker <brobecker@adacore.com>
9414
9415 * target.h (complete_target_initialization, add_target):
9416 Add comment.
9417
c1a7b7c6
PA
94182014-03-07 Pedro Alves <palves@redhat.com>
9419
9420 * go32-nat.c: Include inf-child.h.
9421 (go32_ops): Delete global.
9422 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9423 Delete methods.
9424 (go32_create_inferior): Push the passed in target pointer instead
9425 of referencing go32_ops.
9426 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9427 (go32_target): New function, based on init_go32_ops, but inherit
9428 inf_child_target.
9429 (_initialize_go32_nat): Use go32_target. Move parts of
9430 init_go32_ops here.
9431
d3c1a85f
JB
94322014-03-06 Joel Brobecker <brobecker@adacore.com>
9433
9434 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9435 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9436 SYMBOL_VALUE_ADDRESS.
9437 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9438
5fa1d40e
YQ
94392014-03-06 Yao Qi <yao@codesourcery.com>
9440
9441 * breakpoint.c (get_tracepoint_by_number): Remove argument
9442 optional_p. All callers updated. Adjust comments. Update
9443 output message.
9444 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9445
0c13193f
YQ
94462014-03-06 Yao Qi <yao@codesourcery.com>
9447
9448 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9449 early if get_number returns zero. Use 'p' instead of 'args'.
9450
2217da06
YQ
94512014-03-06 Yao Qi <yao@codesourcery.com>
9452
9453 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9454 message.
9455
cc3da688
YQ
94562014-03-06 Yao Qi <yao@codesourcery.com>
9457
9458 PR breakpoints/16508
9459 * tracepoint.c (check_trace_running): New function.
9460 (trace_find_command): Move code to check_trace_running and
9461 call check_trace_running.
9462 (trace_find_pc_command): Likewise.
9463 (trace_find_tracepoint_command): Likewise.
9464 (trace_find_line_command): Likewise.
9465 (trace_find_range_command): Likewise.
9466 * tracepoint.h (check_trace_running): Likewise.
9467 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9468
6a5f844b
YQ
94692014-03-06 Yao Qi <yao@codesourcery.com>
9470
9471 * target.h (struct target_ops) <to_traceframe_info>: Use
9472 TARGET_DEFAULT_NORETURN (tcomplain ()).
9473 * target-delegates.c: Regenerated.
9474
0f26cec1
PA
94752014-03-05 Pedro Alves <palves@redhat.com>
9476
9477 PR gdb/16575
9478 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9479 void. Update comment.
9480 (dcache_xfer_memory): Delete.
9481 (dcache_read_memory_partial): New, based on the read bits of
9482 dcache_xfer_memory.
9483 (dcache_update): Add status parameter. Use ULONGEST for len, and
9484 adjust. Discard cache lines if the reason for the update was
9485 error.
9486 * dcache.h (dcache_xfer_memory): Delete declaration.
9487 (dcache_read_memory_partial): New declaration.
9488 (dcache_update): Update prototype.
9489 * target.c (raw_memory_xfer_partial): Update the dcache here.
9490 (memory_xfer_partial_1): Don't handle dcache writes here.
9491
b2b255bd
MF
94922014-03-05 Mike Frysinger <vapier@gentoo.org>
9493
9494 * remote-sim.c (gdbsim_load): Add const to prog.
9495
5d9cf8a4
TT
94962014-03-03 Tom Tromey <tromey@redhat.com>
9497
9498 * elfread.c (probe_key): Change to bfd_data.
9499 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9500 now per-BFD, not per-objfile.
9501 * stap-probe.c (stap_probe_destroy): Update comment.
9502 (handle_stap_probe): Allocate on the per-BFD obstack.
9503
729662a5
TT
95042014-03-03 Tom Tromey <tromey@redhat.com>
9505
9506 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9507 * breakpoint.c (create_longjmp_master_breakpoint): Use
9508 get_probe_address.
9509 (add_location_to_breakpoint, bkpt_probe_insert_location)
9510 (bkpt_probe_remove_location): Update.
9511 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9512 * elfread.c (elf_symfile_relocate_probe): Remove.
9513 (elf_probe_fns): Update.
9514 (insert_exception_resume_breakpoint): Change type of "probe"
9515 parameter to bound_probe.
9516 (check_exception_resume): Update.
9517 * objfiles.c (objfile_relocate1): Don't relocate probes.
9518 * probe.c (bound_probe_s): New typedef.
9519 (parse_probes): Use get_probe_address. Set sal's objfile.
9520 (find_probe_by_pc): Return a bound_probe.
9521 (collect_probes): Return a VEC(bound_probe_s).
9522 (compare_probes): Update.
9523 (gen_ui_out_table_header_info): Change type of "probes"
9524 parameter. Update.
9525 (info_probes_for_ops): Update.
9526 (get_probe_address): New function.
9527 (probe_safe_evaluate_at_pc): Update.
9528 * probe.h (struct probe_ops) <get_probe_address>: New field.
9529 <set_semaphore, clear_semaphore>: Add objfile parameter.
9530 (struct probe) <objfile>: Remove field.
9531 <arch>: New field.
9532 <address>: Update comment.
9533 (struct bound_probe): New.
9534 (find_probe_by_pc): Return a bound_probe.
9535 (get_probe_address): Declare.
9536 * solib-svr4.c (struct probe_and_action) <address>: New field.
9537 (hash_probe_and_action, equal_probe_and_action): Update.
9538 (register_solib_event_probe): Add address parameter.
9539 (solib_event_probe_at): Update.
9540 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9541 get_probe_address.
9542 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9543 (stap_get_probe_address): New function.
9544 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9545 (compile_probe_arg): Update.
9546 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9547 address.
9548 (handle_stap_probe): Don't relocate the probe.
9549 (stap_relocate): Remove.
9550 (stap_gen_info_probes_table_values): Update.
9551 (stap_probe_ops): Remove stap_relocate.
9552 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9553 (debug_sym_probe_fns): Update.
9554 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9555 * symtab.c (init_sal): Use memset.
9556 * symtab.h (struct symtab_and_line) <objfile>: New field.
9557 * tracepoint.c (start_tracing, stop_tracing): Update.
9558
ff887920
TT
95592014-03-03 Tom Tromey <tromey@redhat.com>
9560
9561 * probe.h (parse_probes, find_probe_by_pc)
9562 (find_probes_in_objfile): Fix comments.
9563
f0407826
DE
95642014-03-02 Doug Evans <xdje42@gmail.com>
9565
9566 * infrun.c (handle_signal_stop): Replace test for
9567 TARGET_WAITKIND_STOPPED with an assert.
9568
35e6a711
DE
95692014-03-02 Doug Evans <xdje42@gmail.com>
9570
9571 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9572
667f9d0b
DE
95732014-03-02 Doug Evans <xdje42@gmail.com>
9574
9575 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9576
dc92ace0
MK
95772014-03-01 Mark Kettenis <kettenis@gnu.org>
9578
9579 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9580
a900370f
MK
95812014-03-01 Mark Kettenis <kettenis@gnu.org>
9582
9583 * i386obsd-nat.c: Include "obsd-nat.h".
9584 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9585 add_target.
9586 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9587
b72a7981
MK
95882014-03-01 Mark Kettenis <kettenis@gnu.org>
9589
9590 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9591
96c70aba
MK
95922014-03-01 Mark Kettenis <kettenis@gnu.org>
9593
9594 * mips64obsd-nat.c: Include "obsd-nath".
9595 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9596 add_target
9597 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9598
874a80af
MK
95992014-03-01 Mark Kettenis <kettenis@gnu.org>
9600
8fd408f1
MK
9601 * amd64obsd-nat.c: Include "obsd-nat,h.
9602 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9603 add_target.
874a80af
MK
9604 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9605
9cf95373
SC
96062014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9607
9608 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9609 (find_overload_match): Update call to find_oload_champ.
9610 (find_oload_champ_namespace_loop): Likewise
9611
863e4da4
MK
96122014-02-28 Mark Kettenis <kettenis@gnu.org>
9613
025cac40
MK
9614 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9615
1ed586ce
MK
9616 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9617 * config/sparc/obsd64.mh: New file.
9618 * sparc64obsd-nat.c: New file.
9619
863e4da4
MK
9620 * obsd-nat.h: New file.
9621 * obsd-nat.c: New file.
9622 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9623 (ALLDEPFILES): Add obsd-nat.c.
9624
89de4da4
TT
96252014-02-28 Tom Tromey <tromey@redhat.com>
9626
9627 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9628 * cli-out.h (cli_ui_out_impl): Now const.
9629 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9630 * ui-out.c (struct ui_out) <impl>: Now const.
9631 (default_ui_out_impl): Now const.
9632 (ui_out_new): Make 'impl' parameter const.
9633 * ui-out.h (ui_out_new): Update.
9634
c725e7b6
MK
96352014-02-27 Mark Kettenis <kettenis@gnu.org>
9636
9637 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9638
670b46b3
MK
96392014-02-27 Mark Kettenis <kettenis@gnu.org>
9640
9641 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9642
c91550fc
JK
96432014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9644
9645 Additional PR 8882 fix.
9646 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9647
2fa0369e
PA
96482014-02-27 Pedro Alves <palves@redhat.com>
9649
9650 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9651 isn't set.
9652
d632a097
PA
96532014-02-27 Pedro Alves <palves@redhat.com>
9654
9655 PR 12702
9656 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9657 * nat/linux-waitpid.c: Include string.h.
9658 (status_to_str): Moved here and made extern.
9659 * nat/linux-waitpid.h (status_to_str): New declaration.
9660
2ebd5a35
HZ
96612014-02-27 Hui Zhu <hui@codesourcery.com>
9662
9663 PR 12702
9664 * infrun.c (ptid_match): Move ...
9665 * common/ptid.c (ptid_match): ... here.
9666 * inferior.h (ptid_match): Move ...
9667 * common/ptid.h (ptid_match): ... here.
9668
3cdd631f
MK
96692014-02-27 Mark Kettenis <kettenis@gnu.org>
9670
9671 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9672 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9673 gdb_target_obs.
9674
bee30a64
MK
96752014-02-27 Mark Kettenis <kettenis@gnu.org>
9676
9677 * obsd-tdep.c (obsd_auxv_parse): New function.
9678 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
9679
9680 * gdbarch.sh (auxv_parse): New.
9681 * gdbarch.h: Regenerated.
9682 * gdbarch.c: Regenerated.
9683 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9684
7a5a839f
LC
96852014-02-26 Ludovic Courtès <ludo@gnu.org>
9686
9687 * guile/scm-value.c (gdbscm_history_append_x): New function.
9688 (value_functions): Add it.
9689
31aa7e4e
JB
96902014-02-27 Joel Brobecker <brobecker@adacore.com>
9691
9692 * dwarf2read.c (attr_value_as_address): New function.
9693 (dwarf2_find_base_address, read_call_site_scope): Use
9694 attr_value_as_address in place of DW_ADDR.
9695 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9696 the low and high addresses. Slight rework of the handling
9697 of the high pc being a constant form, and limit it to
9698 DWARF verson 4 or higher.
9699 (dwarf2_record_block_ranges): Likewise.
9700 (read_partial_die): Likewise.
9701 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9702
9b333ba3
TT
97032014-02-26 Tom Tromey <tromey@redhat.com>
9704
9705 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9706
5f6cac40
TT
97072014-02-26 Tom Tromey <tromey@redhat.com>
9708
9709 * elfread.c (elf_read_minimal_symbols): Return early if
9710 minimal symbols have already been read. Add "ei" parameter.
9711 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9712 * minsyms.c (prim_record_minimal_symbol_full): Update.
9713 * objfiles.h (struct objstats) <n_minsyms>: Move...
9714 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9715 * symmisc.c (print_objfile_statistics): Update.
9716
2750ef27
TT
97172014-02-26 Tom Tromey <tromey@redhat.com>
9718
9719 * elfread.c (elf_read_minimal_symbols): New function, from
9720 elf_symfile_read.
9721 (elf_symfile_read): Call it.
9722
34643a32
TT
97232014-02-26 Tom Tromey <tromey@redhat.com>
9724
9725 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9726 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9727 (lookup_minimal_symbol_solib_trampoline)
9728 (lookup_minimal_symbol_by_pc_section_1)
9729 (lookup_minimal_symbol_and_objfile): Update.
9730 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9731 Don't allocate a minimal symbol if minsyms have already been read.
9732 (build_minimal_symbol_hash_tables): Update.
9733 (install_minimal_symbols): Do nothing if minsyms already read.
9734 Use the per-BFD obstack.
9735 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9736 * objfiles.c (allocate_objfile): Call
9737 terminate_minimal_symbol_table later.
9738 (have_minimal_symbols): Update.
9739 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9740 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9741 Move from struct objfile.
9742 <minsyms_read>: New field.
9743 (struct objfile) <msymbols, minimal_symbol_count,
9744 msymbol_hash, msymbol_demangled_hash>: Move.
9745 (ALL_OBJFILE_MSYMBOLS): Update.
9746 * symfile.c (read_symbols): Set minsyms_read.
9747 (reread_symbols): Update.
9748 * symmisc.c (dump_objfile, dump_msymbols): Update.
9749
2273f0ac
TT
97502014-02-26 Tom Tromey <tromey@redhat.com>
9751
9752 * minsyms.c (msymbols_sort): Remove.
9753 * minsyms.h (msymbols_sort): Remove.
9754 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9755 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9756 * elfread.c (elf_symtab_read): Don't add section offsets.
9757 * xcoffread.c (record_minimal_symbol): Don't add section offset
9758 to minimal symbol address.
9759 * somread.c (text_offset, data_offset): Remove.
9760 (som_symtab_read): Don't add section offsets to minimal symbol
9761 addresses.
9762 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9763 Don't add section offsets to minimal symbols.
9764 * coffread.c (coff_symtab_read): Don't add section offsets
9765 to minimal symbol addresses.
9766 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9767 to minimal symbol addresses.
9768 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9769 section offset to minimal symbol addresses.
9770 * mdebugread.c (parse_partial_symbols): Don't add section
9771 offset to minimal symbol addresses.
9772 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9773 offset to minimal symbol addresses.
9774
77e371c0
TT
97752014-02-26 Tom Tromey <tromey@redhat.com>
9776
9777 * ada-lang.c (ada_main_name): Update.
9778 (ada_add_standard_exceptions): Update.
9779 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9780 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9781 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9782 * auxv.c (ld_so_xfer_auxv): Update.
9783 * avr-tdep.c (avr_scan_prologue): Update.
9784 * ax-gdb.c (gen_var_ref): Update.
9785 * blockframe.c (get_pc_function_start)
9786 (find_pc_partial_function_gnu_ifunc): Update.
9787 * breakpoint.c (create_overlay_event_breakpoint)
9788 (create_longjmp_master_breakpoint)
9789 (create_std_terminate_master_breakpoint)
9790 (create_exception_master_breakpoint): Update.
9791 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9792 * c-valprint.c (c_val_print): Update.
9793 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9794 * common/agent.c (agent_look_up_symbols): Update.
9795 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9796 * dwarf2loc.c (call_site_to_target_addr): Update.
9797 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9798 * elfread.c (elf_gnu_ifunc_record_cache)
9799 (elf_gnu_ifunc_resolve_by_got): Update.
9800 * findvar.c (default_read_var_value): Update.
9801 * frame.c (inside_main_func): Update.
9802 * frv-tdep.c (frv_frame_this_id): Update.
9803 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9804 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9805 Update.
9806 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9807 (hppa_hpux_find_dummy_bpaddr): Update.
9808 * hppa-tdep.c (hppa_symbol_address): Update.
9809 * infcmd.c (until_next_command): Update.
9810 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9811 Update.
9812 * linespec.c (minsym_found, add_minsym): Update.
9813 * linux-nat.c (get_signo): Update.
9814 * linux-thread-db.c (inferior_has_bug): Update.
9815 * m32c-tdep.c (m32c_return_value)
9816 (m32c_m16c_address_to_pointer): Update.
9817 * m32r-tdep.c (m32r_frame_this_id): Update.
9818 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9819 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9820 * maint.c (maintenance_translate_address): Update.
9821 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9822 (frob_address): New function.
9823 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9824 frob_address. Rename parameter to "pc_in".
9825 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9826 addresses.
9827 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9828 Update.
9829 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9830 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9831 * objc-lang.c (find_objc_msgsend): Update.
9832 * objfiles.c (objfile_relocate1): Update.
9833 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9834 * p-valprint.c (pascal_val_print): Update.
9835 * parse.c (write_exp_msymbol): Update.
9836 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9837 (ppc_elfv2_skip_entrypoint): Update.
9838 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9839 * printcmd.c (build_address_symbolic, msym_info)
9840 (address_info): Update.
9841 * proc-service.c (ps_pglobal_lookup): Update.
9842 * psymtab.c (find_pc_sect_psymtab_closer)
9843 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9844 Change msymbol parameter to bound_minimal_symbol.
9845 * ravenscar-thread.c (get_running_thread_id): Update.
9846 * remote.c (remote_check_symbols): Update.
9847 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9848 address.
9849 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9850 * solib-dsbt.c (lm_base): Update.
9851 * solib-frv.c (lm_base, main_got): Update.
9852 * solib-irix.c (locate_base): Update.
9853 * solib-som.c (som_solib_create_inferior_hook)
9854 (link_map_start): Update.
9855 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9856 * solib-svr4.c (elf_locate_base, enable_break): Update.
9857 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9858 (flush_ea_cache): Update.
9859 * stabsread.c (define_symbol, scan_file_globals): Update.
9860 * stack.c (find_frame_funname): Update.
9861 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9862 (debug_qf_find_pc_sect_symtab): Update.
9863 * symfile.c (simple_read_overlay_table)
9864 (simple_overlay_update): Update.
9865 * symfile.h (struct quick_symbol_functions)
9866 <find_pc_sect_symtab>: Change type of msymbol to
9867 bound_minimal_symbol.
9868 * symmisc.c (dump_msymbols): Update.
9869 * symtab.c (find_pc_sect_symtab_via_partial)
9870 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9871 (search_symbols, print_msymbol_info): Update.
9872 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9873 (MSYMBOL_VALUE_ADDRESS): Redefine.
9874 (BMSYMBOL_VALUE_ADDRESS): New macro.
9875 * tracepoint.c (scope_info): Update.
9876 * tui/tui-disasm.c (tui_find_disassembly_address)
9877 (tui_get_begin_asm_address): Update.
9878 * valops.c (find_function_in_inferior): Update.
9879 * value.c (value_static_field, value_fn_field): Update.
9880
3b7344d5
TT
98812014-02-26 Tom Tromey <tromey@redhat.com>
9882
9883 * ada-lang.c (ada_update_initial_language): Update.
9884 (ada_main_name, ada_has_this_exception_support): Update.
9885 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9886 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9887 * arm-tdep.c (arm_skip_stub): Update.
9888 * auxv.c (ld_so_xfer_auxv): Update.
9889 * avr-tdep.c (avr_scan_prologue): Update.
9890 * ax-gdb.c (gen_var_ref): Update.
9891 * breakpoint.c (struct breakpoint_objfile_data)
9892 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9893 type to bound_minimal_symbol.
9894 (create_overlay_event_breakpoint)
9895 (create_longjmp_master_breakpoint)
9896 (create_std_terminate_master_breakpoint)
9897 (create_exception_master_breakpoint): Update.
9898 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9899 * c-exp.y (classify_name): Update.
9900 * coffread.c (coff_symfile_read): Update.
9901 * common/agent.c (agent_look_up_symbols): Update.
9902 * d-lang.c (d_main_name): Update.
9903 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9904 * dec-thread.c (enable_dec_thread): Update.
9905 * dwarf2loc.c (call_site_to_target_addr): Update.
9906 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9907 * eval.c (evaluate_subexp_standard): Update.
9908 * findvar.c (struct minsym_lookup_data) <result>: Change type
9909 to bound_minimal_symbol.
9910 <objfile>: Remove.
9911 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9912 * frame.c (inside_main_func): Update.
9913 * frv-tdep.c (frv_frame_this_id): Update.
9914 * gcore.c (call_target_sbrk): Update.
9915 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9916 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9917 Update.
9918 * go-lang.c (go_main_name): Update.
9919 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9920 (hppa_hpux_find_import_stub_for_addr): Update.
9921 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9922 Update. Change return type.
9923 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9924 type.
9925 * jit.c (jit_breakpoint_re_set_internal): Update.
9926 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9927 Update.
9928 * linux-nat.c (get_signo): Update.
9929 * linux-thread-db.c (inferior_has_bug): Update
9930 * m32c-tdep.c (m32c_return_value)
9931 (m32c_m16c_address_to_pointer): Update.
9932 * m32r-tdep.c (m32r_frame_this_id): Update.
9933 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9934 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9935 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9936 lookup_minimal_symbol. Change return type.
9937 (lookup_minimal_symbol): Remove.
9938 (lookup_bound_minimal_symbol): Update.
9939 (lookup_minimal_symbol_text): Change return type.
9940 (lookup_minimal_symbol_solib_trampoline): Change return type.
9941 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9942 (lookup_minimal_symbol_solib_trampoline): Change return type.
9943 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9944 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9945 (value_nsstring, find_imps): Update.
9946 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9947 * p-lang.c (pascal_main_name): Update.
9948 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9949 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9950 * proc-service.c (ps_pglobal_lookup): Update.
9951 * ravenscar-thread.c (get_running_thread_msymbol): Change
9952 return type.
9953 (has_ravenscar_runtime, get_running_thread_id): Update.
9954 * remote.c (remote_check_symbols): Update.
9955 * sol-thread.c (ps_pglobal_lookup): Update.
9956 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9957 * solib-dsbt.c (lm_base): Update.
9958 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9959 Update.
9960 * solib-irix.c (locate_base): Update.
9961 * solib-som.c (som_solib_create_inferior_hook)
9962 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9963 Update.
9964 * solib-spu.c (spu_enable_break): Update.
9965 * solib-svr4.c (elf_locate_base, enable_break): Update.
9966 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9967 (flush_ea_cache): Update.
9968 * stabsread.c (define_symbol): Update.
9969 * symfile.c (simple_read_overlay_table): Update.
9970 * symtab.c (find_pc_sect_line): Update.
9971 * tracepoint.c (scope_info): Update.
9972 * tui-disasm.c (tui_get_begin_asm_address): Update.
9973 * value.c (value_static_field): Update.
9974
40c1a007
TT
99752014-02-26 Tom Tromey <tromey@redhat.com>
9976
9977 * minsyms.c (prim_record_minimal_symbol_full): Use
9978 SET_MSYMBOL_VALUE_ADDRESS.
9979 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9980 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9981 SET_MSYMBOL_VALUE_ADDRESS.
9982 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9983 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9984
efd66ac6
TT
99852014-02-26 Tom Tromey <tromey@redhat.com>
9986
9987 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9988 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9989 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9990 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9991 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9992 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9993 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9994 * ada-lang.c (ada_main_name): Update.
9995 (ada_lookup_simple_minsym): Update.
9996 (ada_make_symbol_completion_list): Update.
9997 (ada_add_standard_exceptions): Update.
9998 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9999 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10000 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10001 * arm-tdep.c (skip_prologue_function): Update.
10002 (arm_skip_stack_protector, arm_skip_stub): Update.
10003 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10004 (arm_wince_skip_main_prologue): Update.
10005 * auxv.c (ld_so_xfer_auxv): Update.
10006 * avr-tdep.c (avr_scan_prologue): Update.
10007 * ax-gdb.c (gen_var_ref): Update.
10008 * block.c (call_site_for_pc): Update.
10009 * blockframe.c (get_pc_function_start): Update.
10010 (find_pc_partial_function_gnu_ifunc): Update.
10011 * breakpoint.c (create_overlay_event_breakpoint): Update.
10012 (create_longjmp_master_breakpoint): Update.
10013 (create_std_terminate_master_breakpoint): Update.
10014 (create_exception_master_breakpoint): Update.
10015 (resolve_sal_pc): Update.
10016 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10017 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10018 Update.
10019 * c-valprint.c (c_val_print): Update.
10020 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10021 * coffread.c (coff_symfile_read): Update.
10022 * common/agent.c (agent_look_up_symbols): Update.
10023 * dbxread.c (find_stab_function_addr): Update.
10024 (end_psymtab): Update.
10025 * dwarf2loc.c (call_site_to_target_addr): Update.
10026 (func_verify_no_selftailcall): Update.
10027 (tailcall_dump): Update.
10028 (call_site_find_chain_1): Update.
10029 (dwarf_expr_reg_to_entry_parameter): Update.
10030 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10031 (elf_gnu_ifunc_resolve_by_got): Update.
10032 * f-valprint.c (info_common_command): Update.
10033 * findvar.c (read_var_value): Update.
10034 * frame.c (get_prev_frame_1): Update.
10035 (inside_main_func): Update.
10036 * frv-tdep.c (frv_skip_main_prologue): Update.
10037 (frv_frame_this_id): Update.
10038 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10039 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10040 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10041 (gnuv3_skip_trampoline): Update.
10042 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10043 (hppa64_hpux_in_solib_call_trampoline): Update.
10044 (hppa_hpux_skip_trampoline_code): Update.
10045 (hppa64_hpux_search_dummy_call_sequence): Update.
10046 (hppa_hpux_find_import_stub_for_addr): Update.
10047 (hppa_hpux_find_dummy_bpaddr): Update.
10048 * hppa-tdep.c (hppa_symbol_address)
10049 (hppa_lookup_stub_minimal_symbol): Update.
10050 * i386-tdep.c (i386_skip_main_prologue): Update.
10051 (i386_pe_skip_trampoline_code): Update.
10052 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10053 * infcall.c (get_function_name): Update.
10054 * infcmd.c (until_next_command): Update.
10055 * jit.c (jit_breakpoint_re_set_internal): Update.
10056 (jit_inferior_init): Update.
10057 * linespec.c (minsym_found): Update.
10058 (add_minsym): Update.
10059 * linux-fork.c (info_checkpoints_command): Update.
10060 * linux-nat.c (get_signo): Update.
10061 * linux-thread-db.c (inferior_has_bug): Update.
10062 * m32c-tdep.c (m32c_return_value): Update.
10063 (m32c_m16c_address_to_pointer): Update.
10064 (m32c_m16c_pointer_to_address): Update.
10065 * m32r-tdep.c (m32r_frame_this_id): Update.
10066 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10067 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10068 * maint.c (maintenance_translate_address): Update.
10069 * minsyms.c (add_minsym_to_hash_table): Update.
10070 (add_minsym_to_demangled_hash_table): Update.
10071 (msymbol_objfile): Update.
10072 (lookup_minimal_symbol): Update.
10073 (iterate_over_minimal_symbols): Update.
10074 (lookup_minimal_symbol_text): Update.
10075 (lookup_minimal_symbol_by_pc_name): Update.
10076 (lookup_minimal_symbol_solib_trampoline): Update.
10077 (lookup_minimal_symbol_by_pc_section_1): Update.
10078 (lookup_minimal_symbol_and_objfile): Update.
10079 (prim_record_minimal_symbol_full): Update.
10080 (compare_minimal_symbols): Update.
10081 (compact_minimal_symbols): Update.
10082 (build_minimal_symbol_hash_tables): Update.
10083 (install_minimal_symbols): Update.
10084 (terminate_minimal_symbol_table): Update.
10085 (find_solib_trampoline_target): Update.
10086 (minimal_symbol_upper_bound): Update.
10087 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10088 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10089 (mips_skip_pic_trampoline_code): Update.
10090 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10091 * objc-lang.c (selectors_info): Update.
10092 (classes_info): Update.
10093 (find_methods): Update.
10094 (find_imps): Update.
10095 (find_objc_msgsend): Update.
10096 * objfiles.c (objfile_relocate1): Update.
10097 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10098 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10099 * p-valprint.c (pascal_val_print): Update.
10100 * parse.c (write_exp_msymbol): Update.
10101 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10102 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10103 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10104 * printcmd.c (build_address_symbolic): Update.
10105 (sym_info): Update.
10106 (address_info): Update.
10107 * proc-service.c (ps_pglobal_lookup): Update.
10108 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10109 (find_pc_sect_psymtab): Update.
10110 * python/py-framefilter.c (py_print_frame): Update.
10111 * ravenscar-thread.c (get_running_thread_id): Update.
10112 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10113 Update.
10114 * remote.c (remote_check_symbols): Update.
10115 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10116 (rs6000_skip_trampoline_code): Update.
10117 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10118 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10119 * solib-dsbt.c (lm_base): Update.
10120 * solib-frv.c (lm_base): Update.
10121 (main_got): Update.
10122 * solib-irix.c (locate_base): Update.
10123 * solib-som.c (som_solib_create_inferior_hook): Update.
10124 (som_solib_desire_dynamic_linker_symbols): Update.
10125 (link_map_start): Update.
10126 * solib-spu.c (spu_enable_break): Update.
10127 (ocl_enable_break): Update.
10128 * solib-svr4.c (elf_locate_base): Update.
10129 (enable_break): Update.
10130 * spu-tdep.c (spu_get_overlay_table): Update.
10131 (spu_catch_start): Update.
10132 (flush_ea_cache): Update.
10133 * stabsread.c (define_symbol): Update.
10134 (scan_file_globals): Update.
10135 * stack.c (find_frame_funname): Update.
10136 (frame_info): Update.
10137 * symfile.c (simple_read_overlay_table): Update.
10138 (simple_overlay_update): Update.
10139 * symmisc.c (dump_msymbols): Update.
10140 * symtab.c (fixup_section): Update.
10141 (find_pc_sect_line): Update.
10142 (skip_prologue_sal): Update.
10143 (search_symbols): Update.
10144 (print_msymbol_info): Update.
10145 (rbreak_command): Update.
10146 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10147 (completion_list_objc_symbol): Update.
10148 (default_make_symbol_completion_list_break_on): Update.
10149 * tracepoint.c (scope_info): Update.
10150 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10151 (tui_get_begin_asm_address): Update.
10152 * valops.c (find_function_in_inferior): Update.
10153 * value.c (value_static_field): Update.
10154 (value_fn_field): Update.
10155
50e65b17
TT
101562014-02-26 Tom Tromey <tromey@redhat.com>
10157
10158 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10159 bound minimal symbols. Move code that knows about minsym
10160 table layout...
10161 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10162 function.
10163 * minsyms.h (minimal_symbol_upper_bound): Declare.
10164 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10165 minimal_symbol_upper_bound.
10166
1b588015
JB
101672014-02-27 Joel Brobecker <brobecker@adacore.com>
10168
10169 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10170 Use the type's name if its basic type does not have a tag.
10171
dbb9c2b1
JB
101722014-02-27 Joel Brobecker <brobecker@adacore.com>
10173
10174 * dwarf2read.c (read_subrange_type): Add comment.
10175
55426c9d
JB
101762014-02-27 Joel Brobecker <brobecker@adacore.com>
10177
10178 * dwarf2read.c (update_enumeration_type_from_children): New
10179 function, mostly extracted from process_structure_scope.
10180 (read_enumeration_type): Call update_enumeration_type_from_children.
10181 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10182 and flag_flag_enum fields.
10183
f2fce0ca
PA
101842014-02-26 Pedro Alves <palves@redhat.com>
10185
10186 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10187 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10188 to_xfer_partial method.
10189
7a44e40e
PA
101902014-02-26 Pedro Alves <palves@redhat.com>
10191
10192 * target.c (complete_target_initialization): Don't install
10193 default_xfer_partial as to_xfer_partial hook.
10194 (nomemory): Delete.
10195 (update_current_target): Don't INHERIT nor de_fault
10196 deprecated_xfer_memory. Delete de_fault macro.
10197 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10198 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10199 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10200 field.
10201
bd265cd0
PA
102022014-02-26 Pedro Alves <palves@redhat.com>
10203
10204 * go32-nat.c (my_write_child): New function.
10205 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10206 (go32_xfer_partial): New function.
10207 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10208 Instead install a to_xfer_partial hook.
10209
9d46c4e5
PA
102102014-02-26 Pedro Alves <palves@redhat.com>
10211
10212 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10213 to_xfer_partial helper. Rewrite.
10214 (procfs_xfer_partial): New function.
10215 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10216 Install a to_xfer_partial hook.
10217
a1583b1f
PA
102182014-02-26 Pedro Alves <palves@redhat.com>
10219
10220 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10221 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10222 (m32r_xfer_partial): New function.
10223 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10224 Install a to_xfer_partial hook.
10225
6df1b29f
PA
102262014-02-26 Pedro Alves <palves@redhat.com>
10227
10228 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10229 helper.
10230 (mips_xfer_partial): New function.
10231 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10232 hook. Install a to_xfer_partial hook.
10233
dc53a7ad
JB
102342014-02-26 Joel Brobecker <brobecker@adacore.com>
10235
10236 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10237 * gdbtypes.c (create_array_type_with_stride): New function,
10238 renaming create_array_type, but with an added parameter
10239 called "bit_stride".
10240 (create_array_type): Re-implement using
10241 create_array_type_with_stride.
10242 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10243 and DW_AT_bit_stride attributes.
10244
12ab52e9
PA
102452014-02-26 Pedro Alves <palves@redhat.com>
10246
10247 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10248 task-specific breakpoints.
10249
d16461ae
PA
102502014-02-25 Pedro Alves <palves@redhat.com>
10251
10252 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10253 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10254
a8b16220
SS
102552014-02-25 Stan Shebs <stan@codesourcery.com>
10256
10257 * defs.h: Annotate comments for Doxygen.
10258
b9e795ee
TT
102592014-02-25 Tom Tromey <tromey@redhat.com>
10260
10261 * target.h (target_ignore): Don't declare.
10262 * target.c (target_ignore): Remove.
10263
849c862e
JK
102642014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10265
10266 PR gdb/16626
10267 * auto-load.c (auto_load_objfile_script_1): Change filename to
10268 debugfile.
10269
475109d8
JB
102702014-02-25 Joel Brobecker <brobecker@adacore.com>
10271
10272 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10273 documentation. Adjust prototype to match the target_ops
10274 to_xfer_partial method. Adjust implementation accordingly.
10275
e186c3bd
HZ
102762014-02-25 Hui Zhu <hui@codesourcery.com>
10277
10278 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10279 to_traceframe_info.
10280
6d451942
KB
102812014-02-25 Kevin Buettner <kevinb@redhat.com>
10282
041ab8b4 10283 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10284 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10285 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10286 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10287 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10288 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10289 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10290 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10291 New constants.
10292 (rl78_register_type): Use a data pointer type for SP and
10293 new pseudo registers mentioned above. Use a 16 bit integer
10294 type for all other register pairs.
10295 (rl78_register_name, rl78_g10_register_name): Update for
10296 new pseudo registers.
10297 (rl78_pseudo_register_read): Likewise.
10298 (rl78_pseudo_register_write): Likewise.
10299 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10300 to the newly added pseudo registers.
10301
eddf0bae
DE
103022014-02-24 Doug Evans <dje@google.com>
10303
10304 * value.c (record_latest_value): Fix comment.
10305 * printcmd.c (print_command_1): Remove code to handle -1 return from
10306 record_latest_value.
10307
e96027e0
PA
103082014-02-24 Pedro Alves <palves@redhat.com>
10309
10310 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10311 deprecated_xfer_memory hook.
10312 (procfs_xfer_partial): Call procfs_xfer_memory instead
10313 of the deprecated_xfer_memory target hook.
10314 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10315 helper.
10316
0837c976
YZ
103172014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10318
10319 * windows-nat.c (windows_xfer_shared_libraries): Return
10320 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10321 requested object is TARGET_OBJECT_LIBRARIES.
10322
bc113b4e
YQ
103232014-02-24 Yao Qi <yao@codesourcery.com>
10324
10325 * target.h (enum target_xfer_status)
10326 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10327 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10328 explicitly. New.
10329 * corefile.c (memory_error_message): User updated.
10330 * exec.c (section_table_read_available_memory): Likewise.
10331 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10332 * target.c (target_xfer_status_to_string): Likewise.
10333 (raw_memory_xfer_partial): Likewise.
10334 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10335 * valops.c (read_value_memory): Likewise.
10336 * exec.h: Update comments.
10337
01cb8804
YQ
103382014-02-24 Yao Qi <yao@codesourcery.com>
10339
10340 * target.c (target_xfer_status_to_string): Rename argument err
10341 to status.
10342 * target.h (target_xfer_status_to_string): Update declaration.
10343 Replace target_xfer_error_to_string with
10344 target_xfer_status_to_string in comment.
10345
93063aa6
YQ
103462014-02-24 Yao Qi <yao@codesourcery.com>
10347
10348 * mips-linux-nat.c (super_close): Update its type.
10349 (mips_linux_close): Pass 'self' to super_close.
10350
5c328c05
YQ
103512014-02-24 Yao Qi <yao@codesourcery.com>
10352
10353 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10354 * corefile.c (read_memory): Adjusted.
10355 * target.c (target_write_with_progress): Adjusted.
10356
f73023dd
YQ
103572014-02-23 Yao Qi <yao@codesourcery.com>
10358
10359 Revert two patches:
10360
10361 2013-10-25 Yao Qi <yao@codesourcery.com>
10362
10363 * remote.c (remote_traceframe_info): Return early if
10364 traceframe is not selected.
10365
10366 2013-07-19 Yao Qi <yao@codesourcery.com>
10367
10368 * target.c (update_current_target): Change the default action
10369 of 'to_traceframe_info' from tcomplain to return_zero.
10370 * target.h (struct target_ops) <to_traceframe_info>: Add more
10371 comments.
10372
5a2eb0ef
YQ
103732014-02-23 Yao Qi <yao@codesourcery.com>
10374
10375 * valops.c (read_value_memory): Rewrite it. Call
10376 target_xfer_partial in a loop.
10377 * exec.h (section_table_available_memory): Remove declaration.
10378 Move comments to ...
10379 * exec.c (section_table_available_memory): ... here. Make it
10380 static.
10381
1ee79381
YQ
103822014-02-23 Yao Qi <yao@codesourcery.com>
10383
10384 * exec.c (section_table_read_available_memory): New function.
10385 * exec.h (section_table_read_available_memory): Declare.
10386 * ctf.c (ctf_xfer_partial): Call
10387 section_table_read_available_memory.
10388 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10389
1ca49d37
YQ
103902014-02-23 Yao Qi <yao@codesourcery.com>
10391
10392 * ctf.c (ctf_xfer_partial): Move code to ...
10393 * exec.c (exec_read_partial_read_only): ... it. New function.
10394 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10395 * tracefile.c: Include "exec.h".
10396 * exec.h (exec_read_partial_read_only): Declare.
10397
a283690e
YQ
103982014-02-23 Yao Qi <yao@codesourcery.com>
10399
10400 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10401 (tfile_has_memory): Remove.
10402 (init_tfile_ops): Don't set fields to_has_all_memory and
10403 to_has_memory of tfile_ops.
10404 * tracefile.c (tracefile_has_all_memory): New function.
10405 (tracefile_has_memory): New function.
10406 (init_tracefile_ops): Initialize fields to_has_all_memory and
10407 to_has_memory of 'ops'.
10408
12e03cd0
YQ
104092014-02-23 Yao Qi <yao@codesourcery.com>
10410
10411 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10412 (ctf_thread_alive, ctf_get_trace_status): Remove.
10413 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10414 init_tracefile_ops.
10415 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10416 (tfile_has_stack, tfile_has_registers): Remove.
10417 (tfile_thread_alive): Remove.
10418 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10419 init_tracefile_ops.
10420 * tracefile.c (tracefile_has_stack): New function.
10421 (tracefile_has_registers): New function.
10422 (tracefile_thread_alive): New function.
10423 (tracefile_get_trace_status): New function.
10424 (init_tracefile_ops): New function.
10425 * tracefile.h (init_tracefile_ops): Declare.
10426
11395323
YQ
104272014-02-23 Yao Qi <yao@codesourcery.com>
10428
10429 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10430 (O_LARGEFILE): Likewise.
10431 (tfile_ops): Likewise.
10432 (TRACE_HEADER_SIZE): Likewise.
10433 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10434 (cur_data_size): Likewise.
10435 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10436 (tfile_close, tfile_files_info): Likewise.
10437 (tfile_get_trace_status): Likewise.
10438 (tfile_get_tracepoint_status): Likewise.
10439 (tfile_get_traceframe_address): Likewise.
10440 (tfile_trace_find, match_blocktype): Likewise.
10441 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10442 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10443 (tfile_get_trace_state_variable_value): Likewise.
10444 (tfile_has_all_memory, tfile_has_memory): Likewise.
10445 (tfile_has_stack, tfile_has_registers): Likewise.
10446 (tfile_thread_alive, build_traceframe_info): Likewise.
10447 (tfile_traceframe_info, init_tfile_ops): Likewise.
10448 (_initialize_tracepoint): Don't call init_tfile_ops
10449 and add_target_with_completer.
10450 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10451 exec.h, completer.h and filenames.h.
10452 (_initialize_tracefile_tfile): New function.
10453
7951c4eb
YQ
104542014-02-23 Yao Qi <yao@codesourcery.com>
10455
10456 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10457 tracefile-tfile.o.
10458 (HFILES_NO_SRCDIR): Add tracefile.h.
10459 * ctf.c: Include "tracefile.h".
10460 * tracefile.h: New file.
10461 * tracefile.c: New file
10462 * tracefile-tfile.c: New file.
10463 * tracepoint.c: Include "tracefile.h".
10464 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10465 (stop_reason_names): Add const.
10466 (trace_file_writer_xfree): Move it to tracefile.c.
10467 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10468 (trace_save_ctf): Likewise.
10469 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10470 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10471 (tfile_write_header, tfile_write_regblock_type): Likewise.
10472 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10473 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10474 (tfile_write_raw_data, tfile_end): Likewise.
10475 (tfile_trace_file_writer_new): Likewise.
10476 (free_uploaded_tp): Make it extern.
10477 (free_uploaded_tsv): Make it extern.
10478 (_initialize_tracepoint): Move code to register command 'tsave'
10479 to tracefile.c.
10480 * tracepoint.h (stop_reason_names): Declare.
10481 (struct trace_frame_write_ops): Move it to tracefile.h.
10482 (struct trace_file_write_ops): Likewise.
10483 (struct trace_file_writer): Likewise.
10484 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10485
184cd072
JK
104862014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10487
10488 PR gdb/16594
10489 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10490 process name.
10491 (get_cores_used_by_process): New parameter num_cores, use it.
10492 (linux_xfer_osdata_processes): Pass num_cores to it.
10493 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10494 process name.
10495
c63528fc
AK
104962014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10497
10498 * target.c (memory_xfer_partial): Fix length arg in call to
10499 breakpoint_xfer_memory.
10500
d7b30f67
SDJ
105012014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10502
10503 PR tdep/16397
10504 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10505 number comes after the + or - signs. Adjust length of register
10506 name to be extracted.
10507
8838afaf
TT
105082014-02-20 Tom Tromey <tromey@redhat.com>
10509
10510 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10511 (ada_varobj_ops): Mark "extern".
10512
05227d14
TT
105132014-02-20 Tom Tromey <tromey@redhat.com>
10514
10515 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10516
1254eefc
DE
105172014-02-20 Doug Evans <xdje42@gmail.com>
10518
10519 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10520 All callers updated.
10521 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10522 All callers updated.
10523 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10524 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10525
adde2bff
DE
105262014-02-20 lin zuojian <manjian2006@gmail.com>
10527 Joel Brobecker <brobecker@adacore.com>
10528 Doug Evans <xdje42@gmail.com>
10529
10530 PR symtab/16581
10531 * dwarf2read.c (struct die_info): New member in_process.
10532 (reset_die_in_process): New function.
10533 (process_die): Set it at the start, reset when returning.
10534 (inherit_abstract_dies): Only call process_die if origin_child_die
10535 not already being processed.
10536
3be75f87
JB
105372014-02-20 Joel Brobecker <brobecker@adacore.com>
10538
10539 * windows-nat.c (handle_unload_dll): Add function documentation.
10540 (do_initial_windows_stuff): Add comment explaining why we wait
10541 until after inferior initialization has finished before
10542 processing all DLLs.
10543
47f7ffdb
JB
105442014-02-20 Joel Brobecker <brobecker@adacore.com>
10545
10546 * windows-nat.c (get_module_name): Delete.
10547 (windows_get_exec_module_filename): New function, mostly
10548 inspired from get_module_name.
10549 (windows_pid_to_exec_file): Replace call to get_module_name
10550 by call to windows_get_exec_module_filename.
10551
1cd9feab
JB
105522014-02-20 Joel Brobecker <brobecker@adacore.com>
10553
10554 * windows-nat.c (handle_load_dll): Rewrite this function's
10555 introductory comment. Remove code using get_module_name
10556 to get the DLL's name.
10557
ea39ad35
JB
105582014-02-20 Joel Brobecker <brobecker@adacore.com>
10559
10560 * windows-nat.c (get_windows_debug_event): Ignore
10561 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10562 if windows_initialization_done == 0.
10563 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10564 Adjust implementation to always load all DLLs.
10565 (do_initial_windows_stuff): Replace call to
10566 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10567
95060284
JB
105682014-02-20 Joel Brobecker <brobecker@adacore.com>
10569
10570 * windows-nat.c (_initialize_windows_nat): Deprecate the
10571 "dll-symbols" command. Turn the "add-shared-symbol-files"
10572 and "assf" aliases into commands, and deprecate them as well.
10573 * NEWS: Add entry explaining that "dll-symbols" and its two
10574 aliases are now deprecated.
10575
8d4fdb12
JB
105762014-02-20 Joel Brobecker <brobecker@adacore.com>
10577
10578 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10579 new-line in debug string. Remove trailing spaces.
10580
1b281443
SS
105812014-02-19 Stan Shebs <stan@codesourcery.com>
10582
10583 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10584
f7bd0f78
SC
105852014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10586
10587 * NEWS: Add entry for the new feature
10588 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10589 and class values.
10590
399ebc3d
SS
105912014-02-19 Stan Shebs <stan@codesourcery.com>
10592
10593 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10594
c658158d
PA
105952014-02-19 Pedro Alves <palves@redhat.com>
10596
10597 * common/ptid.h (struct ptid): Mention that process_stratum
10598 targets should prefer ptid.lwp.
10599
ba348170
PA
106002014-02-19 Pedro Alves <palves@redhat.com>
10601
10602 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10603 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10604 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10605 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10606 store remote thread ids rather than ptid.tid.
10607 (_initialize_remote): Adjust.
10608
ac01945b
TT
106092014-02-19 Tom Tromey <tromey@redhat.com>
10610
10611 * target.c (target_get_unwinder): Rewrite.
10612 (target_get_tailcall_unwinder): Rewrite.
10613 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10614 (record_btrace_to_get_tailcall_unwinder): New function.
10615 (init_record_btrace_ops): Update.
10616 * target.h (struct target_ops) <to_get_unwinder,
10617 to_get_tailcall_unwinder>: Now function pointers. Use
10618 TARGET_DEFAULT_RETURN.
10619
8476dc92
TT
106202014-02-19 Tom Tromey <tromey@redhat.com>
10621
10622 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10623 argument.
10624 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10625
c0eca49f
TT
106262014-02-19 Tom Tromey <tromey@redhat.com>
10627
10628 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10629 directly.
10630 * target-delegates.c: Rebuild.
10631 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10632 TARGET_DEFAULT_FUNC.
10633 * target.c (default_target_decr_pc_after_break): Rename from
10634 forward_target_decr_pc_after_break. Simplify.
10635 (target_decr_pc_after_break): Rely on delegation.
10636
596b6b39
TT
106372014-02-19 Tom Tromey <tromey@redhat.com>
10638
10639 * target.c (update_current_target): Do not INHERIT to_doc or
10640 to_magic. Do not de_fault to_open or to_close.
10641
b427c1bc
TT
106422014-02-19 Tom Tromey <tromey@redhat.com>
10643
10644 * gcore.h (objfile_find_memory_regions): Declare.
10645 * gcore.c (objfile_find_memory_regions): No longer static. Add
10646 "self" argument.
10647 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10648 * exec.c: Include gcore.h.
10649 (exec_set_find_memory_regions): Remove.
10650 (exec_find_memory_regions): Remove.
10651 (exec_do_find_memory_regions): Remove.
10652 (init_exec_ops): Update.
10653 * defs.h (exec_set_find_memory_regions): Remove.
10654
9b144037
TT
106552014-02-19 Tom Tromey <tromey@redhat.com>
10656
10657 * target-delegates.c: Rebuild.
10658 * target.h (struct target_ops) <to_extra_thread_info,
10659 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10660 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10661 not 0, in TARGET_DEFAULT_RETURN.
10662
555bbdeb
TT
106632014-02-19 Tom Tromey <tromey@redhat.com>
10664
10665 * target.c (complete_target_initialization): Remove casts. Use
10666 return_zero_has_execution.
10667 (return_zero): Add "ignore" argument.
10668 (return_zero_has_execution): New function.
10669 (init_dummy_target): Remove casts. Use
10670 return_zero_has_execution.
10671
be4ddd36
TT
106722014-02-19 Tom Tromey <tromey@redhat.com>
10673
10674 * target.c (update_current_target): Update comments. Do not
10675 INHERIT to_stratum.
10676
2117c711
TT
106772014-02-19 Tom Tromey <tromey@redhat.com>
10678
10679 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10680 needed.
10681 * corelow.c (core_read_description): Delegate when needed.
10682 * remote.c (remote_read_description): Delegate when needed.
10683 * target-delegates.c: Rebuild.
10684 * target.c (target_read_description): Rewrite.
10685 * target.h (struct target_ops) <to_read_description>: Update
10686 comment. Use TARGET_DEFAULT_RETURN.
10687
e88ef65c
TT
106882014-02-19 Tom Tromey <tromey@redhat.com>
10689
10690 * target-delegates.c: Rebuild.
10691 * target.c (update_current_target): Don't inherit or default
10692 to_can_run.
10693 (find_default_run_target): Check against delegate_can_run.
10694 * target.h (struct target_ops) <to_can_run>: Use
10695 TARGET_DEFAULT_RETURN.
10696
86a0854a
TT
106972014-02-19 Tom Tromey <tromey@redhat.com>
10698
10699 * target-delegates.c: Rebuild.
10700 * target.c (target_disconnect): Unconditionally delegate.
10701 * target.h (struct target_ops) <to_disconnect>: Use
10702 TARGET_DEFAULT_NORETURN.
10703
ee97f592
TT
107042014-02-19 Tom Tromey <tromey@redhat.com>
10705
10706 * record.c (record_stop): Unconditionally delegate.
10707 * target-delegates.c: Rebuild.
10708 * target.c (target_stop_recording): Unconditionally delegate.
10709 * target.h (struct target_ops) <to_stop_recording>: Use
10710 TARGET_DEFAULT_IGNORE.
10711
6dc7fcf4
TT
107122014-02-19 Tom Tromey <tromey@redhat.com>
10713
10714 * target-delegates.c: Rebuild.
10715 * target.c (target_enable_btrace): Unconditionally delegate.
10716 * target.h (struct target_ops) <to_enable_btrace>: Use
10717 TARGET_DEFAULT_NORETURN.
10718
eb5b20d4
TT
107192014-02-19 Tom Tromey <tromey@redhat.com>
10720
10721 * target-delegates.c: Rebuild.
10722 * target.c (target_read_btrace): Unconditionally delegate.
10723 * target.h (struct target_ops) <to_read_btrace>: Use
10724 TARGET_DEFAULT_NORETURN.
10725
9ace480d
TT
107262014-02-19 Tom Tromey <tromey@redhat.com>
10727
10728 * target-delegates.c: Rebuild.
10729 * target.c (target_teardown_btrace): Unconditionally delegate.
10730 * target.h (struct target_ops) <to_teardown_btrace>: Use
10731 TARGET_DEFAULT_NORETURN.
10732
8dc292d3
TT
107332014-02-19 Tom Tromey <tromey@redhat.com>
10734
10735 * target-delegates.c: Rebuild.
10736 * target.c (target_disable_btrace): Unconditionally delegate.
10737 * target.h (struct target_ops) <to_disable_btrace>: Use
10738 TARGET_DEFAULT_NORETURN.
10739
58a5184e
TT
107402014-02-19 Tom Tromey <tromey@redhat.com>
10741
10742 * target-delegates.c: Rebuild.
10743 * target.c (default_search_memory): New function.
10744 (simple_search_memory): Update comment.
10745 (target_search_memory): Unconditionally delegate.
10746 * target.h (struct target_ops) <to_search_memory>: Use
10747 TARGET_DEFAULT_FUNC.
10748
8de71aab
TT
107492014-02-19 Tom Tromey <tromey@redhat.com>
10750
10751 * auxv.c (default_auxv_parse): No longer static.
10752 (target_auxv_parse): Unconditionally delegate.
10753 * auxv.h (default_auxv_parse): Declare.
10754 * target-delegates.c: Rebuild.
10755 * target.c: Include auxv.h.
10756 * target.h (struct target_ops) <to_auxv_parse>: Use
10757 TARGET_DEFAULT_FUNC.
10758
6b2c5a57
TT
107592014-02-19 Tom Tromey <tromey@redhat.com>
10760
10761 * target-delegates.c: Rebuild.
10762 * target.c (target_memory_map): Unconditionally delegate.
10763 * target.h (struct target_ops) <to_memory_map>: Use
10764 TARGET_DEFAULT_RETURN.
10765
cbffc065
TT
107662014-02-19 Tom Tromey <tromey@redhat.com>
10767
10768 * target-delegates.c: Rebuild.
10769 * target.c (target_thread_alive): Unconditionally delegate.
10770 * target.h (struct target_ops) <to_thread_alive>: Use
10771 TARGET_DEFAULT_RETURN.
10772
f09e2107
TT
107732014-02-19 Tom Tromey <tromey@redhat.com>
10774
10775 * target-delegates.c: Rebuild.
10776 * target.c (target_save_record): Unconditionally delegate.
10777 * target.h (struct target_ops) <to_save_record>: Use
10778 TARGET_DEFAULT_NORETURN.
10779
07366925
TT
107802014-02-19 Tom Tromey <tromey@redhat.com>
10781
10782 * target-delegates.c: Rebuild.
10783 * target.c (target_delete_record): Unconditionally delegate.
10784 * target.h (struct target_ops) <to_delete_record>: Use
10785 TARGET_DEFAULT_NORETURN.
10786
dd2e9d25
TT
107872014-02-19 Tom Tromey <tromey@redhat.com>
10788
10789 * target-delegates.c: Rebuild.
10790 * target.c (target_record_is_replaying): Unconditionally
10791 delegate.
10792 * target.h (struct target_ops) <to_record_is_replaying>: Use
10793 TARGET_DEFAULT_RETURN.
10794
671e76cc
TT
107952014-02-19 Tom Tromey <tromey@redhat.com>
10796
10797 * target-delegates.c: Rebuild.
10798 * target.c (target_goto_record_begin): Unconditionally delegate.
10799 * target.h (struct target_ops) <to_goto_record_begin>: Use
10800 TARGET_DEFAULT_NORETURN.
10801
e9179bb3
TT
108022014-02-19 Tom Tromey <tromey@redhat.com>
10803
10804 * target-delegates.c: Rebuild.
10805 * target.c (target_goto_record_end): Unconditionally delegate.
10806 * target.h (struct target_ops) <to_goto_record_end>: Use
10807 TARGET_DEFAULT_NORETURN.
10808
05969c84
TT
108092014-02-19 Tom Tromey <tromey@redhat.com>
10810
10811 * target-delegates.c: Rebuild.
10812 * target.c (target_goto_record): Unconditionally delegate.
10813 * target.h (struct target_ops) <to_goto_record>: Use
10814 TARGET_DEFAULT_NORETURN.
10815
3679abfa
TT
108162014-02-19 Tom Tromey <tromey@redhat.com>
10817
10818 * target-delegates.c: Rebuild.
10819 * target.c (target_insn_history): Unconditionally delegate.
10820 * target.h (struct target_ops) <to_insn_history>: Use
10821 TARGET_DEFAULT_NORETURN.
10822
8444ab58
TT
108232014-02-19 Tom Tromey <tromey@redhat.com>
10824
10825 * target-delegates.c: Rebuild.
10826 * target.c (target_insn_history_from): Unconditionally delegate.
10827 * target.h (struct target_ops) <to_insn_history_from>: Use
10828 TARGET_DEFAULT_NORETURN.
10829
c29302cc
TT
108302014-02-19 Tom Tromey <tromey@redhat.com>
10831
10832 * target-delegates.c: Rebuild.
10833 * target.c (target_insn_history_range): Unconditionally delegate.
10834 * target.h (struct target_ops) <to_insn_history_range>: Use
10835 TARGET_DEFAULT_NORETURN.
10836
170049d4
TT
108372014-02-19 Tom Tromey <tromey@redhat.com>
10838
10839 * target-delegates.c: Rebuild.
10840 * target.c (target_call_history): Unconditionally delegate.
10841 * target.h (struct target_ops) <to_call_history>: Use
10842 TARGET_DEFAULT_NORETURN.
10843
16fc27d6
TT
108442014-02-19 Tom Tromey <tromey@redhat.com>
10845
10846 * target-delegates.c: Rebuild.
10847 * target.c (target_call_history_from): Unconditionally delegate.
10848 * target.h (struct target_ops) <to_call_history_from>: Use
10849 TARGET_DEFAULT_NORETURN.
10850
115d9817
TT
108512014-02-19 Tom Tromey <tromey@redhat.com>
10852
10853 * target-delegates.c: Rebuild.
10854 * target.c (target_call_history_range): Unconditionally delegate.
10855 * target.h (struct target_ops) <to_call_history_range>: Use
10856 TARGET_DEFAULT_NORETURN.
10857
eb276a6b
TT
108582014-02-19 Tom Tromey <tromey@redhat.com>
10859
10860 * target-delegates.c: Rebuild.
10861 * target.c (target_verify_memory): Unconditionally delegate.
10862 * target.h (struct target_ops) <to_verify_memory>: Use
10863 TARGET_DEFAULT_NORETURN.
10864
9e538d0d
TT
108652014-02-19 Tom Tromey <tromey@redhat.com>
10866
10867 * target-delegates.c: Rebuild.
10868 * target.c (target_core_of_thread): Unconditionally delegate.
10869 * target.h (struct target_ops) <to_core_of_thread>: Use
10870 TARGET_DEFAULT_RETURN.
10871
f6fb2925
TT
108722014-02-19 Tom Tromey <tromey@redhat.com>
10873
10874 * target-delegates.c: Rebuild.
10875 * target.c (target_flash_done): Unconditionally delegate.
10876 * target.h (struct target_ops) <to_flash_done>: Use
10877 TARGET_DEFAULT_NORETURN.
10878
e8a6c6ac
TT
108792014-02-19 Tom Tromey <tromey@redhat.com>
10880
10881 * target-delegates.c: Rebuild.
10882 * target.c (target_flash_erase): Unconditionally delegate.
10883 * target.h (struct target_ops) <to_flash_erase>: Use
10884 TARGET_DEFAULT_NORETURN.
10885
7e35c012
TT
108862014-02-19 Tom Tromey <tromey@redhat.com>
10887
10888 * target-delegates.c: Rebuild.
10889 * target.c (target_get_section_table): Unconditionally delegate.
10890 * target.h (struct target_ops) <to_get_section_table>: Use
10891 TARGET_DEFAULT_RETURN.
10892
770234d3
TT
108932014-02-19 Tom Tromey <tromey@redhat.com>
10894
10895 * target-delegates.c: Rebuild.
10896 * target.c (target_pid_to_str): Unconditionally delegate.
10897 (init_dummy_target): Don't initialize to_pid_to_str.
10898 (default_pid_to_str): Rename from dummy_pid_to_str.
10899 * target.h (struct target_ops) <to_pid_to_str>: Use
10900 TARGET_DEFAULT_FUNC.
10901
09b0dc2b
TT
109022014-02-19 Tom Tromey <tromey@redhat.com>
10903
10904 * target-delegates.c: Rebuild.
10905 * target.c (target_find_new_threads): Unconditionally delegate.
10906 * target.h (struct target_ops) <to_find_new_threads>: Use
10907 TARGET_DEFAULT_RETURN.
10908
7d4f8efa
TT
109092014-02-19 Tom Tromey <tromey@redhat.com>
10910
10911 * target-delegates.c: Rebuild.
10912 * target.c (target_program_signals): Unconditionally delegate.
10913 * target.h (struct target_ops) <to_program_signals>: Use
10914 TARGET_DEFAULT_IGNORE.
10915
035cad7f
TT
109162014-02-19 Tom Tromey <tromey@redhat.com>
10917
10918 * target-delegates.c: Rebuild.
10919 * target.c (target_pass_signals): Unconditionally delegate.
10920 * target.h (struct target_ops) <to_pass_signals>: Use
10921 TARGET_DEFAULT_IGNORE.
10922
8d657035
TT
109232014-02-19 Tom Tromey <tromey@redhat.com>
10924
10925 * target-delegates.c: Rebuild.
10926 * target.c (default_mourn_inferior): New function.
10927 (target_mourn_inferior): Unconditionally delegate.
10928 * target.h (struct target_ops) <to_mourn_inferior>: Use
10929 TARGET_DEFAULT_FUNC.
10930
098dba18
TT
109312014-02-19 Tom Tromey <tromey@redhat.com>
10932
10933 * target-delegates.c: Rebuild.
10934 * target.c (default_follow_fork): New function.
10935 (target_follow_fork): Unconditionally delegate.
10936 * target.h (struct target_ops) <to_follow_fork>: Use
10937 TARGET_DEFAULT_FUNC.
10938
423a4807
TT
109392014-02-19 Tom Tromey <tromey@redhat.com>
10940
10941 * target-delegates.c: Rebuild.
10942 * target.c (target_kill): Unconditionally delegate.
10943 * target.h (struct target_ops) <to_kill>: Use
10944 TARGET_DEFAULT_NORETURN.
10945
6c7e5e5c
TT
109462014-02-19 Tom Tromey <tromey@redhat.com>
10947
10948 * target-delegates.c: Rebuild.
10949 * target.c (target_masked_watch_num_registers): Unconditionally
10950 delegate.
10951 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10952 Use TARGET_DEFAULT_RETURN.
10953
8b1c364c
TT
109542014-02-19 Tom Tromey <tromey@redhat.com>
10955
10956 * target-delegates.c: Rebuild.
10957 * target.c (target_remove_mask_watchpoint): Unconditionally
10958 delegate.
10959 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10960 TARGET_DEFAULT_RETURN.
10961
cd4ae029
TT
109622014-02-19 Tom Tromey <tromey@redhat.com>
10963
10964 * target-delegates.c: Rebuild.
10965 * target.c (target_insert_mask_watchpoint): Unconditionally
10966 delegate.
10967 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10968 TARGET_DEFAULT_RETURN.
10969
a134316b
TT
109702014-02-19 Tom Tromey <tromey@redhat.com>
10971
10972 * target-delegates.c: Rebuild.
10973 * target.c (target_ranged_break_num_registers): Unconditionally
10974 delegate.
10975 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10976 Use TARGET_DEFAULT_RETURN.
10977
ad5989bd
TT
109782014-02-19 Tom Tromey <tromey@redhat.com>
10979
10980 * target-delegates.c: Rebuild.
10981 * target.c (target_fetch_registers): Unconditionally delegate.
10982 * target.h (struct target_ops) <to_fetch_registers>: Use
10983 TARGET_DEFAULT_NORETURN.
10984
46ee7e8d
TT
109852014-02-19 Tom Tromey <tromey@redhat.com>
10986
10987 * target-delegates.c: Rebuild.
10988 * target.c (update_current_target): Don't inherit or default
10989 to_stop.
10990 * target.h (struct target_ops) <to_stop>: Use
10991 TARGET_DEFAULT_IGNORE.
10992
843f59ed
TT
109932014-02-19 Tom Tromey <tromey@redhat.com>
10994
10995 * target-delegates.c: Rebuild.
10996 * target.c (update_current_target): Don't inherit or default
10997 to_can_run_breakpoint_commands.
10998 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10999 Use TARGET_DEFAULT_RETURN.
11000
ccfde2a0
TT
110012014-02-19 Tom Tromey <tromey@redhat.com>
11002
11003 * target-delegates.c: Rebuild.
11004 * target.c (update_current_target): Don't inherit or default
11005 to_supports_evaluation_of_breakpoint_conditions.
11006 * target.h (struct target_ops)
11007 <to_supports_evaluation_of_breakpoint_conditions>: Use
11008 TARGET_DEFAULT_RETURN.
11009
0de91722
TT
110102014-02-19 Tom Tromey <tromey@redhat.com>
11011
11012 * target-delegates.c: Rebuild.
11013 * target.c (update_current_target): Don't inherit or default
11014 to_augmented_libraries_svr4_read.
11015 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11016 Use TARGET_DEFAULT_RETURN.
11017
9a7d8b48
TT
110182014-02-19 Tom Tromey <tromey@redhat.com>
11019
11020 * target-delegates.c: Rebuild.
11021 * target.c (update_current_target): Don't inherit or default
11022 to_can_use_agent.
11023 * target.h (struct target_ops) <to_can_use_agent>: Use
11024 TARGET_DEFAULT_RETURN.
11025
d9db5b21
TT
110262014-02-19 Tom Tromey <tromey@redhat.com>
11027
11028 * target-delegates.c: Rebuild.
11029 * target.c (update_current_target): Don't inherit or default
11030 to_use_agent.
11031 * target.h (struct target_ops) <to_use_agent>: Use
11032 TARGET_DEFAULT_NORETURN.
11033
92155eeb
TT
110342014-02-19 Tom Tromey <tromey@redhat.com>
11035
11036 * target-delegates.c: Rebuild.
11037 * target.c (update_current_target): Don't inherit or default
11038 to_traceframe_info.
11039 (return_null): Remove.
11040 * target.h (struct target_ops) <to_traceframe_info>: Use
11041 TARGET_DEFAULT_RETURN.
11042
d6522a22
TT
110432014-02-19 Tom Tromey <tromey@redhat.com>
11044
11045 * target-delegates.c: Rebuild.
11046 * target.c (update_current_target): Don't inherit or default
11047 to_static_tracepoint_markers_by_strid.
11048 * target.h (struct target_ops)
11049 <to_static_tracepoint_markers_by_strid>: Use
11050 TARGET_DEFAULT_NORETURN.
11051
4c3e4425
TT
110522014-02-19 Tom Tromey <tromey@redhat.com>
11053
11054 * target-delegates.c: Rebuild.
11055 * target.c (update_current_target): Don't inherit or default
11056 to_static_tracepoint_marker_at.
11057 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11058 Use TARGET_DEFAULT_RETURN.
11059
dcd6917f
TT
110602014-02-19 Tom Tromey <tromey@redhat.com>
11061
11062 * target-delegates.c: Rebuild.
11063 * target.c (update_current_target): Don't inherit or default
11064 to_set_permissions.
11065 * target.h (struct target_ops) <to_set_permissions>: Use
11066 TARGET_DEFAULT_IGNORE.
11067
22bcceee
TT
110682014-02-19 Tom Tromey <tromey@redhat.com>
11069
11070 * target-delegates.c: Rebuild.
11071 * target.c (update_current_target): Don't inherit or default
11072 to_get_tib_address.
11073 * target.h (struct target_ops) <to_get_tib_address>: Use
11074 TARGET_DEFAULT_NORETURN.
11075
8586ccaa
TT
110762014-02-19 Tom Tromey <tromey@redhat.com>
11077
11078 * target-delegates.c: Rebuild.
11079 * target.c (update_current_target): Don't inherit or default
11080 to_set_trace_notes.
11081 * target.h (struct target_ops) <to_set_trace_notes>: Use
11082 TARGET_DEFAULT_RETURN.
11083
91df8d1d
TT
110842014-02-19 Tom Tromey <tromey@redhat.com>
11085
11086 * target-delegates.c: Rebuild.
11087 * target.c (update_current_target): Don't initialize
11088 to_set_trace_buffer_size.
11089 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11090 TARGET_DEFAULT_IGNORE.
11091
8d526939
TT
110922014-02-19 Tom Tromey <tromey@redhat.com>
11093
11094 * target-delegates.c: Rebuild.
11095 * target.c (update_current_target): Don't inherit or default
11096 to_set_circular_trace_buffer.
11097 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11098 TARGET_DEFAULT_IGNORE.
11099
0bcfeddf
TT
111002014-02-19 Tom Tromey <tromey@redhat.com>
11101
11102 * target-delegates.c: Rebuild.
11103 * target.c (update_current_target): Don't inherit or default
11104 to_set_disconnected_tracing.
11105 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11106 TARGET_DEFAULT_IGNORE.
11107
9249843f
TT
111082014-02-19 Tom Tromey <tromey@redhat.com>
11109
11110 * target-delegates.c: Rebuild.
11111 * target.c (update_current_target): Don't inherit or default
11112 to_get_min_fast_tracepoint_insn_len.
11113 (return_minus_one): Remove.
11114 * target.h (struct target_ops)
11115 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11116
ace92e7d
TT
111172014-02-19 Tom Tromey <tromey@redhat.com>
11118
11119 * target-delegates.c: Rebuild.
11120 * target.c (update_current_target): Don't inherit or default
11121 to_get_raw_trace_data.
11122 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11123 TARGET_DEFAULT_NORETURN.
11124
08120467
TT
111252014-02-19 Tom Tromey <tromey@redhat.com>
11126
11127 * target-delegates.c: Rebuild.
11128 * target.c (update_current_target): Don't inherit or default
11129 to_upload_trace_state_variables.
11130 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11131 Use TARGET_DEFAULT_RETURN.
11132
1e949b00
TT
111332014-02-19 Tom Tromey <tromey@redhat.com>
11134
11135 * target-delegates.c: Rebuild.
11136 * target.c (update_current_target): Don't inherit or default
11137 to_upload_tracepoints.
11138 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11139 TARGET_DEFAULT_RETURN.
11140
a2e6c147
TT
111412014-02-19 Tom Tromey <tromey@redhat.com>
11142
11143 * target-delegates.c: Rebuild.
11144 * target.c (update_current_target): Don't inherit or default
11145 to_save_trace_data.
11146 * target.h (struct target_ops) <to_save_trace_data>: Use
11147 TARGET_DEFAULT_NORETURN.
11148
959bcd0b
TT
111492014-02-19 Tom Tromey <tromey@redhat.com>
11150
11151 * target-delegates.c: Rebuild.
11152 * target.c (update_current_target): Don't inherit or default
11153 to_get_trace_state_variable_value.
11154 * target.h (struct target_ops)
11155 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11156
afc94e66
TT
111572014-02-19 Tom Tromey <tromey@redhat.com>
11158
11159 * target-delegates.c: Rebuild.
11160 * target.c (update_current_target): Don't inherit or default
11161 to_trace_find.
11162 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11163
e51c07ea
TT
111642014-02-19 Tom Tromey <tromey@redhat.com>
11165
11166 * target-delegates.c: Rebuild.
11167 * target.c (update_current_target): Don't inherit or default
11168 to_trace_stop.
11169 * target.h (struct target_ops) <to_trace_stop>: Use
11170 TARGET_DEFAULT_NORETURN.
11171
6fea14cd
TT
111722014-02-19 Tom Tromey <tromey@redhat.com>
11173
11174 * target-delegates.c: Rebuild.
11175 * target.c (update_current_target): Don't inherit or default
11176 to_get_tracepoint_status.
11177 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11178 TARGET_DEFAULT_NORETURN.
11179
4072d4ff
TT
111802014-02-19 Tom Tromey <tromey@redhat.com>
11181
11182 * target-delegates.c: Rebuild.
11183 * target.c (update_current_target): Don't inherit or default
11184 to_get_trace_status.
11185 * target.h (struct target_ops) <to_get_trace_status>: Use
11186 TARGET_DEFAULT_RETURN.
11187
25da2e80
TT
111882014-02-19 Tom Tromey <tromey@redhat.com>
11189
11190 * target-delegates.c: Rebuild.
11191 * target.c (update_current_target): Don't inherit or default
11192 to_trace_start.
11193 * target.h (struct target_ops) <to_trace_start>: Use
11194 TARGET_DEFAULT_NORETURN.
11195
86dd181d
TT
111962014-02-19 Tom Tromey <tromey@redhat.com>
11197
11198 * target-delegates.c: Rebuild.
11199 * target.c (update_current_target): Don't inherit or default
11200 to_trace_set_readonly_regions.
11201 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11202 Use TARGET_DEFAULT_NORETURN.
11203
05c41993
TT
112042014-02-19 Tom Tromey <tromey@redhat.com>
11205
11206 * target-delegates.c: Rebuild.
11207 * target.c (update_current_target): Don't inherit or default
11208 to_disable_tracepoint.
11209 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11210 TARGET_DEFAULT_NORETURN.
11211
151f70f1
TT
112122014-02-19 Tom Tromey <tromey@redhat.com>
11213
11214 * target-delegates.c: Rebuild.
11215 * target.c (update_current_target): Don't inherit or default
11216 to_enable_tracepoint.
11217 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11218 TARGET_DEFAULT_NORETURN.
11219
94eb98b9
TT
112202014-02-19 Tom Tromey <tromey@redhat.com>
11221
11222 * target-delegates.c: Rebuild.
11223 * target.c (update_current_target): Don't inherit or default
11224 to_download_trace_state_variable.
11225 * target.h (struct target_ops) <to_download_trace_state_variable>:
11226 Use TARGET_DEFAULT_NORETURN.
11227
719acc4a
TT
112282014-02-19 Tom Tromey <tromey@redhat.com>
11229
11230 * target-delegates.c: Rebuild.
11231 * target.c (update_current_target): Don't inherit or default
11232 to_can_download_tracepoint.
11233 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11234 TARGET_DEFAULT_RETURN.
11235
9a980a22
TT
112362014-02-19 Tom Tromey <tromey@redhat.com>
11237
11238 * target-delegates.c: Rebuild.
11239 * target.c (update_current_target): Don't inherit or default
11240 to_download_tracepoint.
11241 * target.h (struct target_ops) <to_download_tracepoint>: Use
11242 TARGET_DEFAULT_NORETURN.
11243
5536135b
TT
112442014-02-19 Tom Tromey <tromey@redhat.com>
11245
11246 * target-delegates.c: Rebuild.
11247 * target.c (update_current_target): Don't inherit or default
11248 to_trace_init.
11249 * target.h (struct target_ops) <to_trace_init>: Use
11250 TARGET_DEFAULT_RETURN.
11251
9409d39e
TT
112522014-02-19 Tom Tromey <tromey@redhat.com>
11253
11254 * target-delegates.c: Rebuild.
11255 * target.c (update_current_target): Don't inherit or default
11256 to_supports_string_tracing.
11257 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11258 TARGET_DEFAULT_RETURN.
11259
aab1b22d
TT
112602014-02-19 Tom Tromey <tromey@redhat.com>
11261
11262 * target-delegates.c: Rebuild.
11263 * target.c (update_current_target): Don't inherit or default
11264 to_supports_enable_disable_tracepoint.
11265 * target.h (struct target_ops)
11266 <to_supports_enable_disable_tracepoint>: Use
11267 TARGET_DEFAULT_RETURN.
11268
a7304748
TT
112692014-02-19 Tom Tromey <tromey@redhat.com>
11270
11271 * target-delegates.c: Rebuild.
11272 * target.c (update_current_target): Don't inherit or default
11273 to_supports_multi_process.
11274 * target.h (struct target_ops) <to_supports_multi_process>: Use
11275 TARGET_DEFAULT_RETURN.
11276
4229b31d
TT
112772014-02-19 Tom Tromey <tromey@redhat.com>
11278
11279 * target-delegates.c: Rebuild.
11280 * target.c (update_current_target): Don't inherit or default
11281 to_get_ada_task_ptid.
11282 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11283 TARGET_DEFAULT_FUNC.
11284
43eba180
TT
112852014-02-19 Tom Tromey <tromey@redhat.com>
11286
11287 * target-delegates.c: Rebuild.
11288 * target.c (update_current_target): Don't inherit or default
11289 to_thread_architecture.
11290 * target.h (struct target_ops) <to_thread_architecture>: Use
11291 TARGET_DEFAULT_FUNC.
11292
fe31bf5b
TT
112932014-02-19 Tom Tromey <tromey@redhat.com>
11294
11295 * target-delegates.c: Rebuild.
11296 * target.c (update_current_target): Don't inherit or default
11297 to_execution_direction.
11298 * target.h (struct target_ops) <to_execution_direction>: Use
11299 TARGET_DEFAULT_FUNC.
11300
53e1cfc7
TT
113012014-02-19 Tom Tromey <tromey@redhat.com>
11302
11303 * target-delegates.c: Rebuild.
11304 * target.c (update_current_target): Don't inherit or default
11305 to_can_execute_reverse.
11306 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11307 TARGET_DEFAULT_RETURN.
11308 (target_can_execute_reverse): Unconditionally delegate.
11309
9bb9d61d
TT
113102014-02-19 Tom Tromey <tromey@redhat.com>
11311
11312 * target-delegates.c: Rebuild.
11313 * target.c (update_current_target): Don't inherit or default
11314 to_goto_bookmark.
11315 (dummy_goto_bookmark): Remove.
11316 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11317 * target.h (struct target_ops) <to_goto_bookmark>: Use
11318 TARGET_DEFAULT_NORETURN.
11319
3dbafbbb
TT
113202014-02-19 Tom Tromey <tromey@redhat.com>
11321
11322 * target-delegates.c: Rebuild.
11323 * target.c (update_current_target): Don't inherit or default
11324 to_get_bookmark.
11325 (dummy_get_bookmark): Remove.
11326 (init_dummy_target): Don't inherit or default to_get_bookmark.
11327 * target.h (struct target_ops) <to_get_bookmark>: Use
11328 TARGET_DEFAULT_NORETURN
11329
16f796b1
TT
113302014-02-19 Tom Tromey <tromey@redhat.com>
11331
11332 * target-delegates.c: Rebuild.
11333 * target.c (update_current_target): Don't inherit or default
11334 to_make_corefile_notes.
11335 (init_dummy_target): Don't initialize to_make_corefile_notes.
11336 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11337 TARGET_DEFAULT_FUNC.
11338
0b5a2719
TT
113392014-02-19 Tom Tromey <tromey@redhat.com>
11340
11341 * target-delegates.c: Rebuild.
11342 * target.c (update_current_target): Don't inherit or default
11343 to_find_memory_regions.
11344 (init_dummy_target): Don't initialize to_find_memory_regions.
11345 * target.h (struct target_ops) <to_find_memory_regions>: Use
11346 TARGET_DEFAULT_FUNC.
11347
d9cb0195
TT
113482014-02-19 Tom Tromey <tromey@redhat.com>
11349
11350 * target-delegates.c: Rebuild.
11351 * target.c (update_current_target): Don't inherit or default
11352 to_log_command.
11353 * target.h (struct target_ops) <to_log_command>: Use
11354 TARGET_DEFAULT_IGNORE.
11355 (target_log_command): Unconditionally delegate.
11356
830ca330
TT
113572014-02-19 Tom Tromey <tromey@redhat.com>
11358
11359 * target-delegates.c: Rebuild.
11360 * target.c (update_current_target): Don't inherit or default
11361 to_pid_to_exec_file.
11362 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11363 TARGET_DEFAULT_RETURN.
11364
825828fc
TT
113652014-02-19 Tom Tromey <tromey@redhat.com>
11366
11367 * target-delegates.c: Rebuild.
11368 * target.c (update_current_target): Don't inherit or default
11369 to_thread_name.
11370 (target_thread_name): Unconditionally delegate.
11371 * target.h (struct target_ops) <to_thread_name>: Use
11372 TARGET_DEFAULT_RETURN.
11373
4a7e6dda
TT
113742014-02-19 Tom Tromey <tromey@redhat.com>
11375
11376 * target-delegates.c: Rebuild.
11377 * target.c (update_current_target): Don't inherit or default
11378 to_extra_thread_info.
11379 * target.h (struct target_ops) <to_extra_thread_info>: Use
11380 TARGET_DEFAULT_RETURN.
11381
0db88c1d
TT
113822014-02-19 Tom Tromey <tromey@redhat.com>
11383
11384 * target-delegates.c: Rebuild.
11385 * target.c (update_current_target): Don't inherit or default
11386 to_has_exited.
11387 * target.h (struct target_ops) <to_has_exited>: Use
11388 TARGET_DEFAULT_RETURN..
11389
6a9fa051
TT
113902014-02-19 Tom Tromey <tromey@redhat.com>
11391
11392 * target-delegates.c: Rebuild.
11393 * target.c (update_current_target): Don't inherit or default
11394 to_set_syscall_catchpoint.
11395 (return_one): Remove.
11396 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11397 TARGET_DEFAULT_RETURN.
11398
62f64d7a
TT
113992014-02-19 Tom Tromey <tromey@redhat.com>
11400
11401 * target-delegates.c: Rebuild.
11402 * target.c (update_current_target): Don't inherit or default
11403 to_insert_exec_catchpoint.
11404 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11405 TARGET_DEFAULT_RETURN.
11406
cda0f38c
TT
114072014-01-08 Tom Tromey <tromey@redhat.com>
11408
11409 * target-delegates.c: Rebuild.
11410 * target.c (update_current_target): Don't inherit or default
11411 to_insert_exec_catchpoint.
11412 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11413 TARGET_DEFAULT_RETURN.
11414
95c3375e
TT
114152014-02-19 Tom Tromey <tromey@redhat.com>
11416
11417 * target-delegates.c: Rebuild.
11418 * target.c (update_current_target): Don't inherit or default
11419 to_remove_vfork_catchpoint.
11420 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11421 TARGET_DEFAULT_RETURN.
11422
7e18a8dc
TT
114232014-02-19 Tom Tromey <tromey@redhat.com>
11424
11425 * target-delegates.c: Rebuild.
11426 * target.c (update_current_target): Don't inherit or default
11427 to_insert_vfork_catchpoint.
11428 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11429 TARGET_DEFAULT_RETURN.
11430
e1a21fb7
TT
114312014-02-19 Tom Tromey <tromey@redhat.com>
11432
11433 * target-delegates.c: Rebuild.
11434 * target.c (update_current_target): Don't inherit or default
11435 to_remove_fork_catchpoint.
11436 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11437 TARGET_DEFAULT_RETURN.
11438
5958ebeb
TT
114392014-02-19 Tom Tromey <tromey@redhat.com>
11440
11441 * target-delegates.c: Rebuild.
11442 * target.c (update_current_target): Don't inherit or default
11443 to_insert_fork_catchpoint.
11444 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11445 TARGET_DEFAULT_RETURN.
11446
340ba4bf
TT
114472014-02-19 Tom Tromey <tromey@redhat.com>
11448
11449 * target-delegates.c: Rebuild.
11450 * target.c (update_current_target): Don't inherit or default
11451 to_post_startup_inferior.
11452 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11453 TARGET_DEFAULT_IGNORE.
11454
7634da87
TT
114552014-02-19 Tom Tromey <tromey@redhat.com>
11456
11457 * target-delegates.c: Rebuild.
11458 * target.c (update_current_target): Don't inherit or default
11459 to_load.
11460 * target.h (struct target_ops) <to_load>: Use
11461 TARGET_DEFAULT_NORETURN.
11462
e19e919f
TT
114632014-02-19 Tom Tromey <tromey@redhat.com>
11464
11465 * target-delegates.c: Rebuild.
11466 * target.c (update_current_target): Don't inherit or default
11467 to_terminal_info.
11468 * target.h (struct target_ops) <to_terminal_info>: Use
11469 TARGET_DEFAULT_FUNC.
11470
c6ea8f79
TT
114712014-02-19 Tom Tromey <tromey@redhat.com>
11472
11473 * target-delegates.c: Rebuild.
11474 * target.c (update_current_target): Don't inherit or default
11475 to_terminal_save_ours.
11476 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11477 TARGET_DEFAULT_IGNORE.
11478
e4a733f1
TT
114792014-02-19 Tom Tromey <tromey@redhat.com>
11480
11481 * target-delegates.c: Rebuild.
11482 * target.c (update_current_target): Don't inherit or default
11483 to_terminal_ours.
11484 * target.h (struct target_ops) <to_terminal_ours>: Use
11485 TARGET_DEFAULT_IGNORE.
11486
74fcbef9
TT
114872014-02-19 Tom Tromey <tromey@redhat.com>
11488
11489 * target-delegates.c: Rebuild.
11490 * target.c (update_current_target): Don't inherit or default
11491 to_terminal_ours_for_output.
11492 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11493 TARGET_DEFAULT_IGNORE.
11494
ddeaacc9
TT
114952014-02-19 Tom Tromey <tromey@redhat.com>
11496
11497 * target-delegates.c: Rebuild.
11498 * target.c (update_current_target): Don't inherit or default
11499 to_terminal_inferior.
11500 * target.h (struct target_ops) <to_terminal_inferior>: Use
11501 TARGET_DEFAULT_IGNORE.
11502
0343661d
TT
115032014-02-19 Tom Tromey <tromey@redhat.com>
11504
11505 * target-delegates.c: Rebuild.
11506 * target.c (update_current_target): Don't inherit or default
11507 to_terminal_init.
11508 * target.h (struct target_ops) <to_terminal_init>: Use
11509 TARGET_DEFAULT_IGNORE.
11510
77cdffe9
TT
115112014-02-19 Tom Tromey <tromey@redhat.com>
11512
11513 * target-delegates.c: Rebuild.
11514 * target.c (update_current_target): Don't inherit or default
11515 to_can_accel_watchpoint_condition.
11516 * target.h (struct target_ops)
11517 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11518
d03655e4
TT
115192014-02-19 Tom Tromey <tromey@redhat.com>
11520
11521 * target-delegates.c: Rebuild.
11522 * target.c (update_current_target): Don't inherit or default
11523 to_region_ok_for_hw_watchpoint.
11524 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11525 Use TARGET_DEFAULT_FUNC.
11526
65f160a9
TT
115272014-02-19 Tom Tromey <tromey@redhat.com>
11528
11529 * target-delegates.c: Rebuild.
11530 * target.c (update_current_target): Don't inherit or default
11531 to_watchpoint_addr_within_range.
11532 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11533 Use TARGET_DEFAULT_FUNC.
11534
61dd109f
TT
115352014-02-19 Tom Tromey <tromey@redhat.com>
11536
11537 * target-delegates.c: Rebuild.
11538 * target.c (update_current_target): Don't inherit or default
11539 to_remove_watchpoint.
11540 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11541 TARGET_DEFAULT_NORETURN.
11542
016facd4
TT
115432014-02-19 Tom Tromey <tromey@redhat.com>
11544
11545 * target-delegates.c: Rebuild.
11546 * target.c (update_current_target): Don't inherit or default
11547 to_insert_watchpoint.
11548 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11549 TARGET_DEFAULT_RETURN.
11550
418dabac
TT
115512014-02-19 Tom Tromey <tromey@redhat.com>
11552
11553 * target-delegates.c: Rebuild.
11554 * target.c (update_current_target): Don't inherit or default
11555 to_remove_hw_breakpoint.
11556 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11557 TARGET_DEFAULT_RETURN.
11558
61b371f9
TT
115592014-02-19 Tom Tromey <tromey@redhat.com>
11560
11561 * target-delegates.c: Rebuild.
11562 * target.c (update_current_target): Don't inherit or default
11563 to_insert_hw_breakpoint.
11564 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11565 TARGET_DEFAULT_RETURN.
11566
52b51d06
TT
115672014-02-19 Tom Tromey <tromey@redhat.com>
11568
11569 * target-delegates.c: Rebuild.
11570 * target.c (update_current_target): Don't inherit or default
11571 to_can_use_hw_breakpoint.
11572 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11573 TARGET_DEFAULT_RETURN.
11574
f86e59b2
TT
115752014-02-19 Tom Tromey <tromey@redhat.com>
11576
11577 * target-delegates.c: Rebuild.
11578 * target.c (update_current_target): Don't inherit or default
11579 to_files_info.
11580 * target.h (struct target_ops) <to_files_info>: Use
11581 TARGET_DEFAULT_IGNORE.
11582
6c628163
TT
115832014-02-19 Tom Tromey <tromey@redhat.com>
11584
11585 * target-delegates.c: Rebuild.
11586 * target.c (update_current_target): Don't inherit or default
11587 to_store.
11588 * target.h (struct target_ops) <to_store>: Use
11589 TARGET_DEFAULT_NORETURN.
11590
bebd3233
TT
115912014-02-19 Tom Tromey <tromey@redhat.com>
11592
11593 * target-delegates.c: Rebuild.
11594 * target.c (update_current_target): Don't inherit or default
11595 to_post_attach.
11596 * target.h (struct target_ops) <to_post_attach>: Use
11597 TARGET_DEFAULT_IGNORE.
11598
a53f3625
TT
115992014-02-19 Tom Tromey <tromey@redhat.com>
11600
11601 * target-delegates.c: Rebuild.
11602 * target.c (update_current_target): Don't inherit or default
11603 to_rcmd.
11604 (default_rcmd): New function.
11605 (do_monitor_command): Unconditionally delegate.
11606 * target.h (struct target_ops) <to_rmcd>: Use
11607 TARGET_DEFAULT_FUNC.
11608
e9a29200
TT
116092014-02-19 Tom Tromey <tromey@redhat.com>
11610
11611 * target-delegates.c: Rebuild.
11612 * target.c (init_dummy_target): Don't initialize to_attach.
11613 (target_attach): Unconditionally delegate.
11614 * target.h (struct target_ops) <to_attach>: Use
11615 TARGET_DEFAULT_FUNC.
11616
09da0d0a
TT
116172014-02-19 Tom Tromey <tromey@redhat.com>
11618
11619 * target-delegates.c: Rebuild.
11620 * target.c (target_detach): Unconditionally delegate.
11621 (init_dummy_target): Don't initialize to_detach.
11622 * target.h (struct target_ops) <to_detach>: Use
11623 TARGET_DEFAULT_IGNORE.
11624
5436ff03
TT
116252014-02-19 Tom Tromey <tromey@redhat.com>
11626
11627 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11628 Add argument.
11629 (target_augmented_libraries_svr4_read): Add argument.
11630 * target.c (update_current_target): Update.
11631 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11632 argument.
11633
f0d960ea
TT
116342014-02-19 Tom Tromey <tromey@redhat.com>
11635
11636 * target.h (struct target_ops) <to_call_history_range>: Add
11637 argument.
11638 * target.c (target_call_history_range): Add argument.
11639 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11640 argument.
11641 (record_btrace_call_history_from): Update.
11642
ec0aea04
TT
116432014-02-19 Tom Tromey <tromey@redhat.com>
11644
11645 * target.h (struct target_ops) <to_call_history_from>: Add
11646 argument.
11647 * target.c (target_call_history_from): Add argument.
11648 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11649 argument.
11650
5df2fcba
TT
116512014-02-19 Tom Tromey <tromey@redhat.com>
11652
11653 * target.h (struct target_ops) <to_call_history>: Add argument.
11654 * target.c (target_call_history): Add argument.
11655 * record-btrace.c (record_btrace_call_history): Add 'self'
11656 argument.
11657
4e99c6b7
TT
116582014-02-19 Tom Tromey <tromey@redhat.com>
11659
11660 * target.h (struct target_ops) <to_insn_history_range>: Add
11661 argument.
11662 * target.c (target_insn_history_range): Add argument.
11663 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11664 argument.
11665 (record_btrace_insn_history_from): Update.
11666
9abc3ff3
TT
116672014-02-19 Tom Tromey <tromey@redhat.com>
11668
11669 * target.h (struct target_ops) <to_insn_history_from>: Add
11670 argument.
11671 * target.c (target_insn_history_from): Add argument.
11672 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11673 argument.
11674
7a6c5609
TT
116752014-02-19 Tom Tromey <tromey@redhat.com>
11676
11677 * target.h (struct target_ops) <to_insn_history>: Add argument.
11678 * target.c (target_insn_history): Add argument.
11679 * record-btrace.c (record_btrace_insn_history): Add 'self'
11680 argument.
11681
606183ac
TT
116822014-02-19 Tom Tromey <tromey@redhat.com>
11683
11684 * target.h (struct target_ops) <to_goto_record>: Add argument.
11685 * target.c (target_goto_record): Add argument.
11686 * record-full.c (record_full_goto): Add 'self' argument.
11687 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11688
307a1b91
TT
116892014-02-19 Tom Tromey <tromey@redhat.com>
11690
11691 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11692 * target.c (target_goto_record_end): Add argument.
11693 * record-full.c (record_full_goto_end): Add 'self' argument.
11694 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11695
08475817
TT
116962014-02-19 Tom Tromey <tromey@redhat.com>
11697
11698 * target.h (struct target_ops) <to_goto_record_begin>: Add
11699 argument.
11700 * target.c (target_goto_record_begin): Add argument.
11701 * record-full.c (record_full_goto_begin): Add 'self' argument.
11702 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11703 argument.
11704
1c63c994
TT
117052014-02-19 Tom Tromey <tromey@redhat.com>
11706
11707 * target.h (struct target_ops) <to_record_is_replaying>: Add
11708 argument.
11709 * target.c (target_record_is_replaying): Add argument.
11710 * record-full.c (record_full_is_replaying): Add 'self' argument.
11711 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11712 argument.
11713 (record_btrace_xfer_partial, record_btrace_store_registers)
11714 (record_btrace_prepare_to_store, record_btrace_resume)
11715 (record_btrace_wait, record_btrace_decr_pc_after_break)
11716 (record_btrace_find_new_threads, record_btrace_thread_alive):
11717 Update.
11718
d1b55219
TT
117192014-02-19 Tom Tromey <tromey@redhat.com>
11720
11721 * target.h (struct target_ops) <to_delete_record>: Add argument.
11722 * target.c (target_delete_record): Add argument.
11723 * record-full.c (record_full_delete): Add 'self' argument.
11724
1390f529
TT
117252014-02-19 Tom Tromey <tromey@redhat.com>
11726
11727 * target.h (struct target_ops) <to_save_record>: Add argument.
11728 * target.c (target_save_record): Add argument.
11729 * record-full.c (record_full_save): Add 'self' argument.
11730 (record_full_save): Add 'self' argument.
11731
630d6a4a
TT
117322014-02-19 Tom Tromey <tromey@redhat.com>
11733
11734 * target.h (struct target_ops) <to_info_record>: Add argument.
11735 * target.c (target_info_record): Add argument.
11736 * record.c (info_record_command): Add argument.
11737 * record-full.c (record_full_info): Add 'self' argument.
11738 * record-btrace.c (record_btrace_info): Add 'self' argument.
11739
c6cd7c02
TT
117402014-02-19 Tom Tromey <tromey@redhat.com>
11741
11742 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11743 * target.c (target_stop_recording): Add argument.
11744 * record.c (record_stop): Add argument.
11745 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11746 argument.
11747
39c49f83
TT
117482014-02-19 Tom Tromey <tromey@redhat.com>
11749
11750 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11751 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11752 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11753 argument.
11754 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11755 (_initialize_amd64_linux_nat): Use it.
11756 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11757 (_initialize_i386_linux_nat): Use it.
11758
1777056d
TT
117592014-02-19 Tom Tromey <tromey@redhat.com>
11760
11761 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11762 * target.c (target_teardown_btrace): Add argument.
11763 * remote.c (remote_teardown_btrace): Add 'self' argument.
11764 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11765 argument.
11766 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11767 argument.
11768
25e95349
TT
117692014-02-19 Tom Tromey <tromey@redhat.com>
11770
11771 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11772 * target.c (target_disable_btrace): Add argument.
11773 * remote.c (remote_disable_btrace): Add 'self' argument.
11774 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11775 argument.
11776 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11777 argument.
11778
e3c49f88
TT
117792014-02-19 Tom Tromey <tromey@redhat.com>
11780
11781 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11782 * target.c (target_enable_btrace): Add argument.
11783 * remote.c (remote_enable_btrace): Add 'self' argument.
11784 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11785 argument.
11786 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11787 argument.
11788
fe38f897
TT
117892014-02-19 Tom Tromey <tromey@redhat.com>
11790
11791 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11792 (target_can_use_agent): Add argument.
11793 * target.c (update_current_target): Update.
11794 * remote.c (remote_can_use_agent): Add 'self' argument.
11795 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11796
2c152180
TT
117972014-02-19 Tom Tromey <tromey@redhat.com>
11798
11799 * target.h (struct target_ops) <to_use_agent>: Add argument.
11800 (target_use_agent): Add argument.
11801 * target.c (update_current_target): Update.
11802 * remote.c (remote_use_agent): Add 'self' argument.
11803 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11804
a893e81f
TT
118052014-02-19 Tom Tromey <tromey@redhat.com>
11806
11807 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11808 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11809 (target_traceframe_info): Add argument.
11810 * target.c (update_current_target): Update.
11811 * remote.c (remote_traceframe_info): Add 'self' argument.
11812 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11813
c686c57f
TT
118142014-02-19 Tom Tromey <tromey@redhat.com>
11815
11816 * target.h (target_static_tracepoint_markers_by_strid): Add
11817 argument.
11818 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11819 'self' argument.
11820 * target.c (update_current_target): Update.
11821 * remote.c (struct target_ops)
11822 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11823 * linux-nat.c (struct target_ops)
11824 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11825
61fc905d
TT
118262014-02-19 Tom Tromey <tromey@redhat.com>
11827
11828 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11829 Add argument.
11830 (target_static_tracepoint_marker_at): Add argument.
11831 * target.c (update_current_target): Update.
11832 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11833 argument.
11834
c378d69d
TT
118352014-02-19 Tom Tromey <tromey@redhat.com>
11836
11837 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11838 (target_set_permissions): Add argument.
11839 * target.c (update_current_target): Update.
11840 * remote.c (remote_set_permissions): Add 'self' argument.
11841 (remote_start_remote): Update.
11842
bd7ae0f5
TT
118432014-02-19 Tom Tromey <tromey@redhat.com>
11844
11845 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11846 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11847 (target_get_tib_address): Add argument.
11848 * target.c (update_current_target): Update.
11849 * remote.c (remote_get_tib_address): Add 'self' argument.
11850
d9e68a2c
TT
118512014-02-19 Tom Tromey <tromey@redhat.com>
11852
11853 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11854 (target_set_trace_notes): Add argument.
11855 * target.c (update_current_target): Update.
11856 * remote.c (remote_set_trace_notes): Add 'self' argument.
11857
4da384be
TT
118582014-02-19 Tom Tromey <tromey@redhat.com>
11859
11860 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11861 argument.
11862 (target_set_trace_buffer_size): Add argument.
11863 * target.c (update_current_target): Update.
11864 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11865
736d5b1f
TT
118662014-02-19 Tom Tromey <tromey@redhat.com>
11867
11868 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11869 argument.
11870 (target_set_circular_trace_buffer): Add argument.
11871 * target.c (update_current_target): Update.
11872 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11873 argument.
11874
37b25738
TT
118752014-02-19 Tom Tromey <tromey@redhat.com>
11876
11877 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11878 argument.
11879 (target_set_disconnected_tracing): Add argument.
11880 * target.c (update_current_target): Update.
11881 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11882
0e67620a
TT
118832014-02-19 Tom Tromey <tromey@redhat.com>
11884
11885 * target.h (struct target_ops)
11886 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11887 (target_get_min_fast_tracepoint_insn_len): Add argument.
11888 * target.c (update_current_target): Update.
11889 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11890 argument.
11891
88ee6f45
TT
118922014-02-19 Tom Tromey <tromey@redhat.com>
11893
11894 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11895 argument.
11896 (target_get_raw_trace_data): Add argument.
11897 * target.c (update_current_target): Update.
11898 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11899
181e3713
TT
119002014-02-19 Tom Tromey <tromey@redhat.com>
11901
11902 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11903 Add argument.
11904 (target_upload_trace_state_variables): Add argument.
11905 * target.c (update_current_target): Update.
11906 * remote.c (remote_upload_trace_state_variables): Add 'self'
11907 argument.
11908 (remote_start_remote): Update.
11909
ab6617cc
TT
119102014-02-19 Tom Tromey <tromey@redhat.com>
11911
11912 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11913 argument.
11914 (target_upload_tracepoints): Add argument.
11915 * target.c (update_current_target): Update.
11916 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11917 (remote_start_remote): Update.
11918
dc3decaf
TT
119192014-02-19 Tom Tromey <tromey@redhat.com>
11920
11921 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11922 (target_save_trace_data): Add argument.
11923 * target.c (update_current_target): Update.
11924 * remote.c (remote_save_trace_data): Add 'self' argument.
11925
4011015b
TT
119262014-02-19 Tom Tromey <tromey@redhat.com>
11927
11928 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11929 argument.
11930 * target.h (struct target_ops)
11931 <to_get_trace_state_variable_value>: Add argument.
11932 (target_get_trace_state_variable_value): Add argument.
11933 * target.c (update_current_target): Update.
11934 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11935 argument.
11936 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11937
bd4c6793
TT
119382014-02-19 Tom Tromey <tromey@redhat.com>
11939
11940 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11941 * target.h (struct target_ops) <to_trace_find>: Add argument.
11942 (target_trace_find): Add argument.
11943 * target.c (update_current_target): Update.
11944 * remote.c (remote_trace_find): Add 'self' argument.
11945 * ctf.c (ctf_trace_find): Add 'self' argument.
11946
74499f1b
TT
119472014-02-19 Tom Tromey <tromey@redhat.com>
11948
11949 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11950 (target_trace_stop): Add argument.
11951 * target.c (update_current_target): Update.
11952 * remote.c (remote_trace_stop): Add 'self' argument.
11953
db90e85c
TT
119542014-02-19 Tom Tromey <tromey@redhat.com>
11955
11956 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11957 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11958 argument.
11959 (target_get_tracepoint_status): Add argument.
11960 * target.c (update_current_target): Update.
11961 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11962
8bd200f1
TT
119632014-02-19 Tom Tromey <tromey@redhat.com>
11964
11965 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11966 * target.h (struct target_ops) <to_get_trace_status>: Add
11967 argument.
11968 (target_get_trace_status): Add argument.
11969 * target.c (update_current_target): Update.
11970 * remote.c (remote_get_trace_status): Add 'self' argument.
11971 (remote_start_remote, remote_can_download_tracepoint): Update.
11972 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11973
e2d1aae3
TT
119742014-02-19 Tom Tromey <tromey@redhat.com>
11975
11976 * target.h (struct target_ops) <to_trace_start>: Add argument.
11977 (target_trace_start): Add argument.
11978 * target.c (update_current_target): Update.
11979 * remote.c (remote_trace_start): Add 'self' argument.
11980
583f9a86
TT
119812014-02-19 Tom Tromey <tromey@redhat.com>
11982
11983 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11984 Add argument.
11985 (target_trace_set_readonly_regions): Add argument.
11986 * target.c (update_current_target): Update.
11987 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11988 argument.
11989
780b049c
TT
119902014-02-19 Tom Tromey <tromey@redhat.com>
11991
11992 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11993 argument.
11994 (target_disable_tracepoint): Add argument.
11995 * target.c (update_current_target): Update.
11996 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11997
46670d57
TT
119982014-02-19 Tom Tromey <tromey@redhat.com>
11999
12000 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12001 argument.
12002 (target_enable_tracepoint): Add argument.
12003 * target.c (update_current_target): Update.
12004 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12005
559d2b81
TT
120062014-02-19 Tom Tromey <tromey@redhat.com>
12007
12008 * target.h (struct target_ops) <to_download_trace_state_variable>:
12009 Add argument.
12010 (target_download_trace_state_variable): Add argument.
12011 * target.c (update_current_target): Update.
12012 * remote.c (remote_download_trace_state_variable): Add 'self'
12013 argument.
12014
a52a8357
TT
120152014-02-19 Tom Tromey <tromey@redhat.com>
12016
12017 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12018 argument.
12019 (target_can_download_tracepoint): Add argument.
12020 * target.c (update_current_target): Update.
12021 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12022
548f7808
TT
120232014-02-19 Tom Tromey <tromey@redhat.com>
12024
12025 * target.h (struct target_ops) <to_download_tracepoint>: Add
12026 argument.
12027 (target_download_tracepoint): Add argument.
12028 * target.c (update_current_target): Update.
12029 * remote.c (remote_download_tracepoint): Add 'self' argument.
12030
ecae04e1
TT
120312014-02-19 Tom Tromey <tromey@redhat.com>
12032
12033 * target.h (struct target_ops) <to_trace_init>: Add argument.
12034 (target_trace_init): Add argument.
12035 * target.c (update_current_target): Update.
12036 * remote.c (remote_trace_init): Add 'self' argument.
12037
fab5aa7c
TT
120382014-02-19 Tom Tromey <tromey@redhat.com>
12039
12040 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12041 * target.c (target_fileio_readlink): Add argument.
12042 * remote.c (remote_hostio_readlink): Add 'self' argument.
12043 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12044
dbbca37d
TT
120452014-02-19 Tom Tromey <tromey@redhat.com>
12046
12047 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12048 * target.c (target_fileio_unlink): Add argument.
12049 * remote.c (remote_hostio_unlink): Add 'self' argument.
12050 (remote_file_delete): Update.
12051 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12052
df39ea25
TT
120532014-02-19 Tom Tromey <tromey@redhat.com>
12054
12055 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12056 * target.c (target_fileio_close): Add argument.
12057 * remote.c (remote_hostio_close): Add 'self' argument.
12058 (remote_hostio_close_cleanup): Update.
12059 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12060 Update.
12061 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12062
a3be983c
TT
120632014-02-19 Tom Tromey <tromey@redhat.com>
12064
12065 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12066 * target.c (target_fileio_pread): Add argument.
12067 * remote.c (remote_hostio_pread): Add 'self' argument.
12068 (remote_bfd_iovec_pread, remote_file_get): Update.
12069 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12070
0d866f62
TT
120712014-02-19 Tom Tromey <tromey@redhat.com>
12072
12073 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12074 * target.c (target_fileio_pwrite): Add argument.
12075 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12076 (remote_file_put): Update.
12077 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12078
cd897586
TT
120792014-02-19 Tom Tromey <tromey@redhat.com>
12080
12081 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12082 * target.c (target_fileio_open): Add argument.
12083 * remote.c (remote_hostio_open): Add 'self' argument.
12084 (remote_bfd_iovec_open): Add 'self' argument.
12085 (remote_file_put): Add 'self' argument.
12086 (remote_file_get): Add 'self' argument.
12087 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12088
78eff0ec
TT
120892014-02-19 Tom Tromey <tromey@redhat.com>
12090
12091 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12092 Add argument.
12093 (target_can_run_breakpoint_commands): Add argument.
12094 * target.c (update_current_target): Update.
12095 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12096 argument.
12097 (remote_insert_breakpoint): Add 'self' argument.
12098 (remote_insert_hw_breakpoint): Add 'self' argument.
12099 (remote_can_run_breakpoint_commands): Add 'self' argument.
12100
efcc2da7
TT
121012014-02-19 Tom Tromey <tromey@redhat.com>
12102
12103 * target.h (struct target_ops)
12104 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12105 (target_supports_evaluation_of_breakpoint_conditions): Add
12106 argument.
12107 * target.c (update_current_target): Update.
12108 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12109 argument.
12110 (remote_insert_breakpoint): Add 'self' argument.
12111 (remote_insert_hw_breakpoint): Add 'self' argument.
12112 (remote_supports_cond_breakpoints): Add 'self' argument.
12113
6de37a3a
TT
121142014-02-19 Tom Tromey <tromey@redhat.com>
12115
12116 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12117 argument.
12118 (target_supports_string_tracing): Add argument.
12119 * target.c (update_current_target): Update.
12120 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12121
2bfc0540
TT
121222014-02-19 Tom Tromey <tromey@redhat.com>
12123
12124 * target.h (struct target_ops)
12125 <to_supports_disable_randomization>: Add argument.
12126 * target.c (find_default_supports_disable_randomization): Add
12127 argument.
12128 (target_supports_disable_randomization): Add argument.
12129 (find_default_supports_disable_randomization): Add 'self'
12130 argument.
12131 * remote.c (extended_remote_supports_disable_randomization): Add
12132 'self' argument.
12133 (remote_supports_disable_randomization): Add 'self' argument.
12134 (extended_remote_create_inferior): Update.
12135 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12136 'self' argument.
12137
7d178d6a
TT
121382014-02-19 Tom Tromey <tromey@redhat.com>
12139
12140 * target.h (struct target_ops)
12141 <to_supports_enable_disable_tracepoint>: Add argument.
12142 (target_supports_enable_disable_tracepoint): Add argument.
12143 * target.c (update_current_target): Update.
12144 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12145 argument.
12146
86ce2668
TT
121472014-02-19 Tom Tromey <tromey@redhat.com>
12148
12149 * target.h (struct target_ops) <to_supports_multi_process>: Add
12150 argument.
12151 (target_supports_multi_process): Add argument.
12152 * target.c (update_current_target): Update.
12153 * remote.c (remote_supports_multi_process): Add 'self' argument.
12154 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12155 argument.
12156 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12157 argument.
12158
4c612759
TT
121592014-02-19 Tom Tromey <tromey@redhat.com>
12160
12161 * target.h (struct target_ops) <to_execution_direction>: Add
12162 argument.
12163 (target_execution_direction): Add argument.
12164 * target.c (default_execution_direction): Add 'self' argument.
12165 * record-full.c (record_full_execution_direction): Add 'self'
12166 argument.
12167
19db3e69
TT
121682014-02-19 Tom Tromey <tromey@redhat.com>
12169
12170 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12171 argument.
12172 (target_can_execute_reverse): Add argument.
12173 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12174 * record-full.c (record_full_can_execute_reverse): Add 'self'
12175 argument.
12176 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12177 argument.
12178
1e6b91a4
TT
121792014-02-19 Tom Tromey <tromey@redhat.com>
12180
12181 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12182 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12183 argument.
12184 (target_get_ada_task_ptid): Add argument.
12185 * target.c (update_current_target): Update.
12186 (default_get_ada_task_ptid): Add 'self' argument.
12187 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12188 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12189 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12190 argument.
12191 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12192 argument.
12193 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12194 argument.
12195 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12196 argument.
12197 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12198 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12199 argument.
12200
3c80fb48
TT
122012014-02-19 Tom Tromey <tromey@redhat.com>
12202
12203 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12204 (target_goto_bookmark): Add argument.
12205 * target.c (dummy_goto_bookmark): Add 'self' argument.
12206 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12207
dd0e2830
TT
122082014-02-19 Tom Tromey <tromey@redhat.com>
12209
12210 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12211 (target_get_bookmark): Add argument.
12212 * target.c (dummy_get_bookmark): Add 'self' argument.
12213 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12214
fc6691b2
TT
122152014-02-19 Tom Tromey <tromey@redhat.com>
12216
12217 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12218 argument.
12219 (target_make_corefile_notes): Add argument.
12220 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12221 * procfs.c (procfs_make_note_section): Add 'self' argument.
12222 (procfs_make_note_section): Add 'self' argument.
12223 (procfs_make_note_section): Add 'self' argument.
12224 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12225 argument.
12226 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12227 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12228 * exec.c (exec_make_note_section): Add 'self' argument.
12229 (exec_make_note_section): Add 'self' argument.
12230
2e73927c
TT
122312014-02-19 Tom Tromey <tromey@redhat.com>
12232
12233 * target.h (struct target_ops) <to_find_memory_regions>: Add
12234 argument.
12235 (target_find_memory_regions): Add argument.
12236 * target.c (dummy_find_memory_regions): Add 'self' argument.
12237 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12238 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12239 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12240 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12241 * exec. (exec_do_find_memory_regions): New global.
12242 (exec_set_find_memory_regions): Rewrite.
12243 (exec_find_memory_regions): New function.
12244 (init_exec_ops): Use exec_find_memory_regions.
12245
2a9a2795
TT
122462014-02-19 Tom Tromey <tromey@redhat.com>
12247
12248 * target.h (struct target_ops) <to_supports_non_stop>: Add
12249 argument.
12250 * target.c (find_default_supports_non_stop): Add argument.
12251 (target_supports_non_stop): Add argument.
12252 (find_default_supports_non_stop): Add 'self' argument.
12253 * remote.c (remote_supports_non_stop): Add 'self' argument.
12254 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12255
4ab76ea3
TT
122562014-02-19 Tom Tromey <tromey@redhat.com>
12257
12258 * target.h (struct target_ops) <to_log_command>: Add argument.
12259 (target_log_command): Add argument.
12260 * serial.h (serial_log_command): Add 'self' argument.
12261 * serial.c (serial_log_command): Add 'self' argument.
12262
8dd27370
TT
122632014-02-19 Tom Tromey <tromey@redhat.com>
12264
12265 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12266 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12267 argument.
12268 (target_pid_to_exec_file): Add argument.
12269 * target.c (debug_to_pid_to_exec_file): Add argument.
12270 (update_current_target): Update.
12271 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12272 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12273 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12274 (linux_handle_extended_wait): Update.
12275 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12276 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12277 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12278 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12279
1aac633b
TT
122802014-02-19 Tom Tromey <tromey@redhat.com>
12281
12282 * target.h (struct target_ops) <to_rcmd>: Add argument.
12283 (target_rcmd): Add argument.
12284 * target.c (debug_to_rcmd): Add argument.
12285 (update_current_target, do_monitor_command): Update.
12286 * remote.c (remote_rcmd): Add 'self' argument.
12287 * monitor.c (monitor_rcmd): Add 'self' argument.
12288
1eab8a48
TT
122892014-02-19 Tom Tromey <tromey@redhat.com>
12290
12291 * windows-nat.c (windows_stop): Add 'self' argument.
12292 * target.h (struct target_ops) <to_stop>: Add argument.
12293 * target.c (target_stop): Add argument.
12294 (debug_to_stop): Add argument.
12295 (update_current_target): Update.
12296 * remote.c (remote_stop): Add 'self' argument.
12297 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12298 (gdbsim_cntrl_c): Update.
12299 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12300 * procfs.c (procfs_stop): Add 'self' argument.
12301 * nto-procfs.c (procfs_stop): Add 'self' argument.
12302 * monitor.c (monitor_stop): Add 'self' argument.
12303 (monitor_open): Update.
12304 * linux-nat.c (linux_nat_stop): Add argument.
12305 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12306 * gnu-nat.c (gnu_stop): Add 'self' argument.
12307 * darwin-nat.c (darwin_stop): Add 'self' argument.
12308
503a628d
TT
123092014-02-19 Tom Tromey <tromey@redhat.com>
12310
12311 * target.h (struct target_ops) <to_thread_name>: Add argument.
12312 * target.c (target_thread_name): Add argument.
12313 (update_current_target): Update.
12314 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12315
c15906d8
TT
123162014-02-19 Tom Tromey <tromey@redhat.com>
12317
12318 * target.h (struct target_ops) <to_extra_thread_info>: Add
12319 argument.
12320 (target_extra_thread_info): Add argument.
12321 * target.c (update_current_target): Update.
12322 * remote.c (remote_threads_extra_info): Add 'self' argument.
12323 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12324 argument.
12325 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12326 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12327 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12328 argument.
12329 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12330 argument.
12331 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12332 argument.
12333 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12334 argument.
12335
daf5e9b6
TT
123362014-02-19 Tom Tromey <tromey@redhat.com>
12337
12338 * target.h (struct target_ops) <to_program_signals>: Add argument.
12339 * target.c (target_program_signals): Add argument.
12340 * remote.c (remote_program_signals): Add 'self' argument.
12341
94bedb42
TT
123422014-02-19 Tom Tromey <tromey@redhat.com>
12343
12344 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12345 * target.c (target_pass_signals): Add argument.
12346 * remote.c (remote_pass_signals): Add 'self' argument.
12347 (remote_start_remote): Update.
12348 * procfs.c (procfs_pass_signals): Add 'self' argument.
12349 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12350 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12351 (linux_nat_create_inferior, linux_nat_attach): Update.
12352
da82bd6b
TT
123532014-02-19 Tom Tromey <tromey@redhat.com>
12354
12355 * windows-nat.c (windows_can_run): Add 'self' argument.
12356 * target.h (struct target_ops) <to_can_run>: Add argument.
12357 (target_can_run): Add argument.
12358 * target.c (debug_to_can_run): Add argument.
12359 (update_current_target): Update.
12360 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12361 * inf-child.c (inf_child_can_run): Add 'self' argument.
12362 * go32-nat.c (go32_can_run): Add 'self' argument.
12363
d796e1d6
TT
123642014-02-19 Tom Tromey <tromey@redhat.com>
12365
12366 * target.h (struct target_ops) <to_has_exited>: Add argument.
12367 (target_has_exited): Add argument.
12368 * target.c (debug_to_has_exited): Add argument.
12369 (update_current_target): Update.
12370
ff214e67
TT
123712014-02-19 Tom Tromey <tromey@redhat.com>
12372
12373 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12374 argument.
12375 (target_set_syscall_catchpoint): Add argument.
12376 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12377 argument.
12378 * target.c (update_current_target): Update.
12379
758e29d2
TT
123802014-02-19 Tom Tromey <tromey@redhat.com>
12381
12382 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12383 argument.
12384 (target_remove_exec_catchpoint): Add argument.
12385 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12386 (update_current_target): Update.
12387 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12388 argument.
12389
ba025e51
TT
123902014-02-19 Tom Tromey <tromey@redhat.com>
12391
12392 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12393 argument.
12394 (target_insert_exec_catchpoint): Add argument.
12395 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12396 (update_current_target): Update.
12397 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12398 argument.
12399
e98cf0cd
TT
124002014-02-19 Tom Tromey <tromey@redhat.com>
12401
12402 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12403 argument.
12404 (target_remove_vfork_catchpoint): Add argument.
12405 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12406 (update_current_target): Update.
12407 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12408 argument.
12409
3ecc7da0
TT
124102014-02-19 Tom Tromey <tromey@redhat.com>
12411
12412 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12413 argument.
12414 (target_insert_vfork_catchpoint): Add argument.
12415 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12416 (update_current_target): Update.
12417 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12418 argument.
12419
973fc227
TT
124202014-02-19 Tom Tromey <tromey@redhat.com>
12421
12422 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12423 argument.
12424 (target_remove_fork_catchpoint): Add argument.
12425 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12426 (update_current_target): Update.
12427 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12428 argument.
12429
a863b201
TT
124302014-02-19 Tom Tromey <tromey@redhat.com>
12431
12432 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12433 argument.
12434 (target_insert_fork_catchpoint): Add argument.
12435 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12436 (update_current_target): Update.
12437 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12438 argument.
12439
2e97a79e
TT
124402014-02-19 Tom Tromey <tromey@redhat.com>
12441
12442 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12443 argument.
12444 (target_post_startup_inferior): Add argument.
12445 * target.c (debug_to_post_startup_inferior): Add argument.
12446 (update_current_target): Update.
12447 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12448 argument.
12449 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12450 argument.
12451 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12452 argument.
12453 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12454 argument.
12455 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12456 'self' argument.
12457 (super_post_startup_inferior): Likewise.
12458 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12459 'self' argument.
12460 (super_post_startup_inferior): Likewise.
12461 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12462 Add 'self' argument.
12463 (super_post_startup_inferior): Likewise.
12464
71a9f134
TT
124652014-02-19 Tom Tromey <tromey@redhat.com>
12466
12467 * target.h (struct target_ops) <to_load>: Add argument.
12468 * target.c (target_load): Add argument.
12469 (debug_to_load): Add argument.
12470 (update_current_target): Update.
12471 * remote.c (remote_load): Add 'self' argument.
12472 * remote-sim.c (gdbsim_load): Add 'self' argument.
12473 * remote-mips.c (mips_load): Add 'self' argument.
12474 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12475 * monitor.c (monitor_load): Add 'self' argument.
12476 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12477
0a4f40a2
TT
124782014-02-19 Tom Tromey <tromey@redhat.com>
12479
12480 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12481 (target_terminal_info): Add argument.
12482 * target.c (debug_to_terminal_info): Add argument.
12483 (default_terminal_info): Likewise.
12484 * inflow.c (child_terminal_info): Add 'self' argument.
12485 * inferior.h (child_terminal_info): Add 'self' argument.
12486 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12487
ae3bd431
TT
124882014-02-19 Tom Tromey <tromey@redhat.com>
12489
12490 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12491 argument.
12492 (target_terminal_save_ours): Add argument.
12493 * target.c (debug_to_terminal_save_ours): Add argument.
12494 (update_current_target): Update.
12495 * inflow.c (terminal_save_ours): Add 'self' argument.
12496 * inferior.h (terminal_save_ours): Add 'self' argument.
12497
e3594fd1
TT
124982014-02-19 Tom Tromey <tromey@redhat.com>
12499
12500 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12501 (target_terminal_ours): Add argument.
12502 * target.c (debug_to_terminal_ours): Add argument.
12503 (update_current_target): Update.
12504 * remote.c (remote_terminal_ours): Add 'self' argument.
12505 (remote_close): Update.
12506 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12507 * inflow.c (terminal_ours): Add 'self' argument.
12508 * inferior.h (terminal_ours): Add 'self' argument.
12509 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12510
2e1e1a19
TT
125112014-02-19 Pedro Alves <palves@redhat.com>
12512 Tom Tromey <tromey@redhat.com>
12513
12514 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12515 argument.
12516 (target_terminal_ours_for_output): Add argument.
12517 * target.c (debug_to_terminal_ours_for_output): Add argument.
12518 (update_current_target): Update.
12519 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12520 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12521 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12522
d2f640d4
TT
125232014-02-19 Tom Tromey <tromey@redhat.com>
12524
12525 * target.h (struct target_ops) <to_terminal_inferior>: Add
12526 argument.
12527 * target.c (target_terminal_inferior): Add argument.
12528 (update_current_target): Update.
12529 * remote.c (remote_terminal_inferior): Add 'self' argument.
12530 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12531 * inflow.c (terminal_inferior): Add 'self' argument.
12532 * inferior.h (terminal_inferior): Add 'self' argument.
12533 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12534 (go32_terminal_inferior): Add 'self' argument.
12535
c42bf286
TT
125362014-02-19 Tom Tromey <tromey@redhat.com>
12537
12538 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12539 (target_terminal_init): Add argument.
12540 * target.c (debug_to_terminal_init): Add argument.
12541 (update_current_target): Update.
12542 * inflow.c (terminal_init_inferior): Add 'self' argument.
12543 * inferior.h (terminal_init_inferior): Add 'self' argument.
12544 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12545 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12546
c3a5ff89
TT
125472014-02-19 Tom Tromey <tromey@redhat.com>
12548
12549 * target.h (struct target_ops)
12550 <to_can_accel_watchpoint_condition>: Add argument.
12551 (target_can_accel_watchpoint_condition): Add argument.
12552 * target.c (debug_to_can_accel_watchpoint_condition): Add
12553 argument.
12554 (update_current_target): Update.
12555 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12556 'self' argument.
12557
31568a15
TT
125582014-02-19 Tom Tromey <tromey@redhat.com>
12559
12560 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12561 Add argument.
12562 (target_region_ok_for_hw_watchpoint): Add argument.
12563 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12564 (default_region_ok_for_hw_watchpoint): Add argument.
12565 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12566 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12567 argument.
12568 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12569 argument.
12570 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12571 argument.
12572 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12573 'self' argument.
12574 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12575 'self' argument.
12576 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12577 'self' argument.
12578 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12579 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12580 'self' argument.
12581 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12582 Add 'self' argument.
12583
7bb99c53
TT
125842014-02-19 Tom Tromey <tromey@redhat.com>
12585
12586 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12587 argument.
12588 (target_insert_watchpoint): Add argument.
12589 * target.c (debug_to_insert_watchpoint): Add argument.
12590 (update_current_target): Update.
12591 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12592 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12593 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12594 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12595 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12596 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12597 argument.
12598 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12599 (procfs_insert_hw_watchpoint): Add 'self' argument.
12600 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12601 argument.
12602 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12603 argument.
12604 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12605 argument.
12606 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12607 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12608 argument.
12609 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12610 'self' argument.
12611
11b5219a
TT
126122014-02-19 Tom Tromey <tromey@redhat.com>
12613
12614 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12615 argument.
12616 (target_remove_watchpoint): Add argument.
12617 * target.c (debug_to_remove_watchpoint): Add argument.
12618 (update_current_target): Update.
12619 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12620 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12621 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12622 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12623 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12624 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12625 argument.
12626 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12627 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12628 argument.
12629 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12630 argument.
12631 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12632 argument.
12633 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12634 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12635 argument.
12636 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12637 'self' argument.
12638
a64dc96c
TT
126392014-02-19 Tom Tromey <tromey@redhat.com>
12640
12641 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12642 argument.
12643 (target_remove_hw_breakpoint): Add argument.
12644 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12645 (update_current_target): Update.
12646 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12647 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12648 argument.
12649 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12650 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12651 argument.
12652 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12653 'self' argument.
12654
23a26771
TT
126552014-02-19 Tom Tromey <tromey@redhat.com>
12656
12657 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12658 argument.
12659 (target_insert_hw_breakpoint): Add argument.
12660 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12661 (update_current_target): Update.
12662 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12663 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12664 argument.
12665 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12666 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12667 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12668 argument.
12669 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12670 'self' argument.
12671
5461485a
TT
126722014-02-19 Tom Tromey <tromey@redhat.com>
12673
12674 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12675 argument.
12676 (target_can_use_hardware_watchpoint): Add argument.
12677 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12678 (update_current_target): Update.
12679 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12680 argument.
12681 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12682 argument.
12683 * remote.c (remote_check_watch_resources): Add 'self' argument.
12684 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12685 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12686 argument.
12687 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12688 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12689 argument.
12690 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12691 argument.
12692 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12693 argument.
12694 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12695 argument.
12696 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12697 argument.
12698 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12699 argument.
12700 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12701 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12702 argument.
12703 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12704 'self' argument.
12705
f045800c
TT
127062014-02-19 Tom Tromey <tromey@redhat.com>
12707
12708 * target.h (struct target_ops) <to_post_attach>: Add argument.
12709 (target_post_attach): Add argument.
12710 * target.c (debug_to_post_attach): Add argument.
12711 (update_current_target): Update.
12712 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12713 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12714 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12715 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12716 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12717
de90e03d
TT
127182014-02-19 Tom Tromey <tromey@redhat.com>
12719
12720 * windows-nat.c (windows_close): Add 'self' argument.
12721 * tracepoint.c (tfile_close): Add 'self' argument.
12722 * target.h (struct target_ops) <to_close>: Add argument.
12723 * target.c (target_close): Add argument.
12724 (update_current_target): Update.
12725 * remote.c (remote_close): Add 'self' argument.
12726 * remote-sim.c (gdbsim_close): Add 'self' argument.
12727 * remote-mips.c (mips_close): Add 'self' argument.
12728 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12729 * record-full.c (record_full_close): Add 'self' argument.
12730 * record-btrace.c (record_btrace_close): Add 'self' argument.
12731 * monitor.h (monitor_close): Add 'self' argument.
12732 * monitor.c (monitor_close): Add 'self' argument.
12733 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12734 * linux-nat.c (linux_nat_close): Add argument.
12735 * go32-nat.c (go32_close): Add 'self' argument.
12736 * exec.c (exec_close_1): Add 'self' argument.
12737 * ctf.c (ctf_close): Add 'self' argument.
12738 * corelow.c (core_close): Add 'self' argument.
12739 (core_close_cleanup): Update.
12740 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12741 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12742
9dd130a0
TT
127432014-02-19 Tom Tromey <tromey@redhat.com>
12744
12745 * remote.c (remote_load): New function.
12746 (init_remote_ops): Use it.
12747
46917d26
TT
127482014-02-19 Tom Tromey <tromey@redhat.com>
12749
12750 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12751 argument.
12752 * common/linux-btrace.h (linux_supports_btrace): Update.
12753 * remote.c (remote_supports_btrace): Add "self" argument.
12754 * target-delegates.c: Rebuild.
12755 * target.c (target_supports_btrace): Remove.
12756 * target.h (struct target_ops) <to_supports_btrace>: Add
12757 target_ops argument.
12758 (target_supports_btrace): New define.
12759
6b84065d
TT
127602014-02-19 Tom Tromey <tromey@redhat.com>
12761
12762 * record-full.c (record_full_beneath_to_resume_ops)
12763 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12764 (record_full_beneath_to_wait)
12765 (record_full_beneath_to_store_registers_ops)
12766 (record_full_beneath_to_store_registers)
12767 (record_full_beneath_to_xfer_partial_ops)
12768 (record_full_beneath_to_xfer_partial)
12769 (record_full_beneath_to_insert_breakpoint_ops)
12770 (record_full_beneath_to_insert_breakpoint)
12771 (record_full_beneath_to_remove_breakpoint_ops)
12772 (record_full_beneath_to_remove_breakpoint)
12773 (record_full_beneath_to_stopped_by_watchpoint)
12774 (record_full_beneath_to_stopped_data_address)
12775 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12776 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12777 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12778 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12779 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12780 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12781 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12782 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12783 (record_full_resume, record_full_wait_1)
12784 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12785 (record_full_store_registers, record_full_xfer_partial)
12786 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12787 (record_full_async, record_full_core_xfer_partial): Use target
12788 delegation.
12789 * target-delegates.c: Rebuild.
12790 * target.c (current_xfer_partial): Remove.
12791 (update_current_target): Do not INHERIT or de_fault
12792 to_insert_breakpoint, to_remove_breakpoint,
12793 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12794 to_is_async_p, to_async. Do not set to_xfer_partial field.
12795 (default_xfer_partial): Simplify.
12796 (current_xfer_partial): Remove.
12797 (target_wait, target_resume): Simplify.
12798 (find_default_can_async_p, find_default_is_async_p): Update.
12799 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12800 to_xfer_partial, to_stopped_by_watchpoint,
12801 to_stopped_data_address.
12802 (target_store_registers): Simplify.
12803 (forward_target_remove_breakpoint)
12804 (forward_target_insert_breakpoint): Remove.
12805 (target_remove_breakpoint, target_insert_breakpoint)
12806 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12807 * target.h (struct target_ops) <to_resume, to_wait,
12808 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12809 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12810 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12811 markup.
12812 (forward_target_remove_breakpoint)
12813 (forward_target_insert_breakpoint): Remove.
12814 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12815 directly.
12816 (record_btrace_insert_breakpoint): Delegate directly.
12817
1101cb7b
TT
128182014-02-19 Tom Tromey <tromey@redhat.com>
12819
12820 PR build/7701:
12821 * target-delegates.c: New file.
12822 * target.c: Include target-delegates.c.
12823 (init_dummy_target): Call install_dummy_methods.
12824 (complete_target_initialization): Call install_delegators.
12825 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12826 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12827 * make-target-delegates: New file.
12828
8b06beed
TT
128292014-02-19 Tom Tromey <tromey@redhat.com>
12830
12831 * record.c (find_record_target): Use find_target_at.
12832 * target.c (find_target_at): New function.
12833 * target.h (find_target_at): Declare.
12834
6a109b6b
TT
128352014-02-19 Tom Tromey <tromey@redhat.com>
12836
12837 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12838 Add 'ops' argument.
12839 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12840 'ops' argument.
12841 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12842 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12843 'ops' argument.
12844 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12845 argument.
12846 * linux-nat.c (save_sigtrap): Update.
12847 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12848 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12849 (linux_nat_close): Update.
12850 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12851 argument.
12852 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12853 argument.
12854 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12855 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12856 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12857 (tmp_to_async): Add 'ops' argument.
12858 (record_full_stopped_by_watchpoint, record_full_async)
12859 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12860 argument.
12861 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12862 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12863 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12864 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12865 (remote_is_async_p, remote_async): Add 'ops' argument.
12866 (remote_stopped_data_address): Update.
12867 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12868 * target.c (update_current_target)
12869 (find_default_can_async_p, find_default_is_async_p): Update.
12870 (init_dummy_target): Update.
12871 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12872 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12873 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12874 (target_can_async_p, target_is_async_p, target_async)
12875 (target_stopped_by_watchpoint): Update.
12876
e095146b
YQ
128772014-02-19 Yao Qi <yao@codesourcery.com>
12878
12879 PR gdb/16220
12880 * gdbarch.sh: Remove startup_gdbarch.
12881 * gdbarch.c: Regenerated.
12882 * gdbarch.h: Likewise.
12883
bc3c6b36
KB
128842014-02-17 Kevin Buettner <kevinb@redhat.com>
12885
12886 * rl78-tdep.c (rl78_g10_register_name): New function.
12887 (rl78_return_value): Add g10 support.
12888 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12889 g10.
12890
98dc0167 128912014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12892
12893 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12894 (SUBDIR_GUILE_SRCS): Ditto.
12895 (scm-gsmob.o): Ditto.
12896
842c05cd
YQ
128972014-02-17 Yao Qi <yao@codesourcery.com>
12898
12899 * gnu-nat.c (ILL_RPC): Declare defined function.
12900
25c0bd04
YQ
129012014-02-17 Yao Qi <yao@codesourcery.com>
12902
12903 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12904 mach_msg_type_number_t.
12905 (gnu_write_inferior): Likewise.
12906
a9a758e3
YQ
129072014-02-17 Yao Qi <yao@codesourcery.com>
12908
12909 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12910 in format string.
12911 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12912 (inf_validate_procs, inf_signal): Likewise.
12913 (S_exception_raise_request): Likewise.
12914 (do_mach_notify_dead_name): Likewise.
12915 (steal_exc_port): Likewise.
12916 (gnu_read_inferior): Change 'copy_count''s type to
12917 mach_msg_type_number_t.
12918 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12919 format string.
12920
bae8023e
TS
129212014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12922
c82f56d9
TS
12923 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12924 flag. Adjust all users; in particular...
12925 (gnu_wait): ..., don't decrement its value in here...
12926 (gnu_create_inferior): ..., and instead set the flag in here,
12927 around the startup_inferior call, and call that one with
12928 START_INFERIOR_TRAPS_EXPECTED.
12929
3398af6a
TS
12930 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12931 (ILL_RPC): ... new macro.
12932 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12933 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12934 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12935 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12936 functions with ILL_RPC macro.
12937 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12938 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12939 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12940 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12941 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12942 (S_proc_getlogin_reply, S_proc_getsid_reply)
12943 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12944 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12945 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12946 (S_proc_getnports_reply, S_proc_is_important_reply)
12947 (S_proc_get_code_reply): New stub functions, generated with
12948 ILL_RPC macro.
12949
d47642c9
TS
12950 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12951 collected the type check structures.
12952
bae8023e
TS
12953 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12954
8a55ffb0
DE
129552014-02-14 Doug Evans <dje@google.com>
12956
12957 * target.c (target_write_partial): Fix result type.
12958
c2853f3d
JM
129592014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12960
12961 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12962 the proper offsets to access fpregset_t.
12963
ac61d2db
SA
129642014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12965
12966 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12967 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12968 * h8300-tdep.c (setmachinelist): Remove global.
12969 * hppa-tdep.c (hppa_sigtramp): Remove global.
12970 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12971 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12972 * ravenscar-thread.c (update_target_observer): Remove global.
12973 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12974
9d2d0b8b
TT
129752014-02-12 Tom Tromey <tromey@redhat.com>
12976
12977 * common/rsp-low.c: Update comments.
12978 * common/rsp-low.h: Update comments.
12979
a7191e8b
TT
129802014-02-12 Tom Tromey <tromey@redhat.com>
12981
12982 * common/rsp-low.c (convert_ascii_to_int): Remove.
12983 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12984
ff0e980e
TT
129852014-02-12 Tom Tromey <tromey@redhat.com>
12986
12987 * common/rsp-low.h (unhexify): Don't declare.
12988 * common/rsp-low.c (unhexify): Remove.
12989
e9371aff
TT
129902014-02-12 Tom Tromey <tromey@redhat.com>
12991
12992 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12993 * common/rsp-low.c (convert_int_to_ascii): Remove.
12994
971dc0b8
TT
129952014-02-12 Tom Tromey <tromey@redhat.com>
12996
12997 * common/rsp-low.h (hexify): Don't declare.
12998 * common/rsp-low.c (hexify): Remove.
12999
0a822afb
TT
130002014-02-12 Tom Tromey <tromey@redhat.com>
13001
13002 * common/rsp-low.c (hexify): Never take strlen of argument.
13003
9f1b45b0
TT
130042014-02-12 Tom Tromey <tromey@redhat.com>
13005
13006 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13007 * remote.c (extended_remote_run, remote_rcmd)
13008 (remote_download_trace_state_variable, remote_save_trace_data)
13009 (remote_set_trace_notes): Update.
13010 * tracepoint.c (encode_source_string, tfile_write_status)
13011 (tfile_write_uploaded_tsv): Update.
13012
9c3d6531
TT
130132014-02-12 Tom Tromey <tromey@redhat.com>
13014
13015 * tracepoint.c: Include rsp-low.h.
13016 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13017 * remote.c: Include rsp-low.h.
13018 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13019 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13020 (remote_unescape_input): Move to common/rsp-low.c.
13021 * common/rsp-low.h: New file.
13022 * common/rsp-low.c: New file.
13023 * Makefile.in (SFILES): Add common/rsp-low.c.
13024 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13025 (COMMON_OBS): Add rsp-low.o.
13026 (rsp-low.o): New target.
13027
01fd3ea5
TT
130282014-02-12 Tom Tromey <tromey@redhat.com>
13029
13030 * utils.h: Include print-utils.h.
13031 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13032 (int_string, core_addr_to_string, core_addr_to_string_nz)
13033 (hex_string, hex_string_custom): Don't declare.
13034 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13035 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13036 (hex_string_custom, int_string, core_addr_to_string)
13037 (core_addr_to_string_nz, host_address_to_string): Move to
13038 common/print-utils.c.
13039 * common/print-utils.h: New file.
13040 * common/print-utils.c: New file
13041 * Makefile.in (SFILES): Add common/print-utils.c.
13042 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13043 (COMMON_OBS): Add print-utils.o.
13044 (print-utils.o): New target.
13045
9fb50108
TT
130462014-02-12 Tom Tromey <tromey@redhat.com>
13047
13048 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13049
0548b5db
MK
130502014-02-12 Mark Kettenis <kettenis@gnu.org>
13051
13052 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13053
493443a4
MK
130542014-02-12 Mark Kettenis <kettenis@gnu.org>
13055
13056 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13057 if a PT_IO ptrace request returns sucessfully but indicates that 0
13058 bytes were transferred.
13059
706d0883
PA
130602014-02-12 Pedro Alves <palves@redhat.com>
13061 Kevin Buettner <kevinb@redhat.com>
13062
13063 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13064 TYPE_INSTANCE_FLAG_CODE_SPACE.
13065
5caa2f0b
PA
130662014-02-12 Pedro Alves <palves@redhat.com>
13067
13068 * h8300-tdep.c (pseudo_from_raw_register)
13069 (raw_from_pseudo_register): New functions.
13070 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13071 them.
13072
76fd5f74
PA
130732014-02-12 Pedro Alves <palves@redhat.com>
13074
13075 * h8300-tdep.c (h8300_register_sim_regno): New function.
13076 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13077 gdbarch_register_sim_regno hook.
13078
8f008406
SA
130792014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13080
13081 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13082
195abc10
SA
130832014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13084
13085 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13086
93ffa5b9
MK
130872014-02-12 Mark Kettenis <kettenis@gnu.org>
13088
13089 * obsd-tdep.h (obsd_init_abi): New prototype.
13090 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13091 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13092 (obsd_init_abi): New functions.
13093 * i386obsd-tdep.c: Include "obsd-tdep.h".
13094 (i386obsd_init_abi): Call obsd_init_abi.
13095 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13096 (amd64obsd_init_abi): Call obsd_init_abi.
13097 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13098 obsd-tdep.c to gdb_target_obs.
13099
49caec94
JM
131002014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13101
13102 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13103 double float arguments to 16-byte in the argument slots.
13104
e1402065
DE
131052014-02-11 Doug Evans <xdje42@gmail.com>
13106
13107 * configure.ac: Don't crash if pkg-config is not found and guile
13108 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13109 in guile checks.
13110 * configure: Regenerate.
13111
edcc890f
YQ
131122014-02-11 Yao Qi <yao@codesourcery.com>
13113
13114 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13115 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13116 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13117 * gnu-nat.c (gnu_xfer_memory): Likewise.
13118 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13119 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13120 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13121 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13122
9b409511
YQ
131232014-02-11 Yao Qi <yao@codesourcery.com>
13124
13125 * target.h (enum target_xfer_error): Rename to ...
13126 (enum target_xfer_status): ... it. New. All users updated.
13127 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13128 New.
13129 (TARGET_XFER_STATUS_ERROR_P): New macro.
13130 (target_xfer_error_to_string): Remove declaration.
13131 (target_xfer_status_to_string): Declare.
13132 (target_xfer_partial_ftype): Adjust it.
13133 (struct target_ops) <to_xfer_partial>: Return
13134 target_xfer_status. Add argument xfered_len. Update
13135 comments.
13136 * target.c (target_xfer_error_to_string): Rename to ...
13137 (target_xfer_status_to_string): ... it. New. All callers
13138 updated.
13139 (target_read_live_memory): Likewise. Call target_xfer_partial
13140 instead of target_read.
13141 (memory_xfer_live_readonly_partial): Return
13142 target_xfer_status. Add argument xfered_len.
13143 (raw_memory_xfer_partial): Likewise.
13144 (memory_xfer_partial_1): Likewise.
13145 (memory_xfer_partial): Likewise.
13146 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13147 properly. Update debug message.
13148 (default_xfer_partial, current_xfer_partial): Likewise.
13149 (target_write_partial): Likewise.
13150 (target_read_partial): Likewise. All callers updated.
13151 (read_whatever_is_readable): Likewise.
13152 (target_write_with_progress): Likewise.
13153 (target_read_alloc_1): Likewise.
13154
13155 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13156 * auxv.c (procfs_xfer_auxv): Likewise.
13157 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13158 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13159 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13160 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13161 * corefile.c (read_memory): Adjust.
13162 * corelow.c (core_xfer_partial): Likewise.
13163 * ctf.c (ctf_xfer_partial): Likewise.
13164 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13165 updated.
13166 (darwin_xfer_partial): Likewise.
13167 * exec.c (section_table_xfer_memory_partial): Likewise. All
13168 callers updated.
13169 (exec_xfer_partial): Likewise.
13170 * exec.h (section_table_xfer_memory_partial): Update
13171 declaration.
13172 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13173 negative.
13174 (gnu_xfer_partial): Likewise.
13175 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13176 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13177 (ia64_hpux_xfer_solib_got): Likewise.
13178 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13179 type of 'partial_len' to ULONGEST.
13180 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13181 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13182 (linux_nat_xfer_partial): Likewise.
13183 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13184 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13185 * monitor.c (monitor_xfer_memory): Likewise.
13186 (monitor_xfer_partial): Likewise.
13187 * procfs.c (procfs_xfer_partial): Likewise.
13188 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13189 * record-full.c (record_full_xfer_partial): Likewise.
13190 (record_full_core_xfer_partial): Likewise.
13191 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13192 (gdbsim_xfer_partial): Likewise.
13193 * remote.c (remote_write_bytes_aux): Likewise. All callers
13194 updated.
13195 (remote_write_bytes, remote_read_bytes): Likewise. All
13196 callers updated.
13197 (remote_flash_erase): Likewise. All callers updated.
13198 (remote_write_qxfer): Likewise. All callers updated.
13199 (remote_read_qxfer): Likewise. All callers updated.
13200 (remote_xfer_partial): Likewise.
13201 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13202 (rs6000_xfer_shared_libraries): Likewise.
13203 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13204 (sol_thread_xfer_partial): Likewise.
13205 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13206 (sparc_xfer_partial): Likewise.
13207 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13208 updated.
13209 (spu_xfer_partial): Likewise.
13210 * spu-multiarch.c (spu_xfer_partial): Likewise.
13211 * tracepoint.c (tfile_xfer_partial): Likewise.
13212 * windows-nat.c (windows_xfer_memory): Likewise.
13213 (windows_xfer_shared_libraries): Likewise.
13214 (windows_xfer_partial): Likewise.
13215 * valprint.c: Replace 'target_xfer_error' with
13216 'target_xfer_status' in comments.
13217
a8e63083
JB
132182014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13219
13220 Checked in by Joel Brobecker <brobecker@adacore.com>.
13221 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13222
e86b67d3
JB
132232014-02-11 Joel Brobecker <brobecker@adacore.com>
13224
13225 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13226 function parameters.
13227
4b7d1f7f
WN
132282014-02-10 Will Newton <will.newton@linaro.org>
13229
13230 * elfread.c (elf_rel_plt_read): Look for a .got section if
13231 looking up .got.plt fails.
13232 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13233 on address passed to elf_gnu_ifunc_record_cache.
13234 (elf_gnu_ifunc_resolve_addr): Likewise.
13235 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13236
961842b2
JM
132372014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13238
13239 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13240 (X_RETTURN): New macro.
13241 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13242
13243 * sparc64-tdep.c (sparc64_init_abi): Hook
13244 sparc_in_function_epilogue_p.
13245
3f03e7b1
GB
132462014-02-10 Gary Benson <gbenson@redhat.com>
13247
13248 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13249 Rename name_matcher to symbol_matcher.
13250
96f861ef
GB
132512014-02-10 Gary Benson <gbenson@redhat.com>
13252
13253 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13254 Use expand_symtabs_file_matcher_ftype and
13255 expand_symtabs_symbol_matcher_ftype.
13256
ee01b665
JB
132572014-02-10 Joel Brobecker <brobecker@adacore.com>
13258
13259 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13260 (struct ada_symbol_cache): New.
13261 (ada_free_symbol_cache): Forward declare.
13262 (struct ada_pspace_data): New.
13263 (ada_pspace_data_handle): New static global.
13264 (get_ada_pspace_data, ada_pspace_data_cleanup)
13265 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13266 (cache_space, cache): Delete, now folded inside struct
13267 ada_pspace_data.
13268 (ada_get_symbol_cache): New function.
13269 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13270 implementation.
13271 (_initialize_ada_language): Remove initialization of cache_space.
13272 Move call to observer_attach_inferior_exit up, grouping it
13273 with the other observer registrations inside this function.
13274 Rename command to be more general. Add call to
13275 register_program_space_data_with_cleanup.
13276
143adbbf
JB
132772014-02-10 Joel Brobecker <brobecker@adacore.com>
13278
13279 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13280 ada_new_objfile_observer.
13281 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13282 (_initialize_tasks): Update uses of ada_new_objfile_observer
13283 and ada_tasks_normal_stop_observer.
13284
aa4fb036
JB
132852014-02-10 Joel Brobecker <brobecker@adacore.com>
13286
13287 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13288 returned by the 'Length attribute to integer.
13289
9dee8cc6
JB
132902014-02-10 Joel Brobecker <brobecker@adacore.com>
13291
13292 * ada-lang.c (_initialize_ada_language): Initialize
13293 cache_space obstack.
13294
3d9434b5
JB
132952014-02-10 Joel Brobecker <brobecker@adacore.com>
13296
13297 * ada-lang.c (HASH_SIZE): New macro.
13298 (struct cache_entry): New type.
13299 (cache_space, cache): New static globals.
13300 (ada_clear_symbol_cache, find_entry): New functions.
13301 (lookup_cached_symbol, cache_symbol): Implement.
13302 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13303 (_initialize_ada_language): Attach ada_new_objfile_observer
13304 and ada_free_objfile_observer.
13305
f0c5f9b2
JB
133062014-02-10 Joel Brobecker <brobecker@adacore.com>
13307
13308 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13309 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13310 struct block * parameter.
13311 (ada_lookup_symbol_list_worker): Constify local variable "block".
13312 Remove cast which is no longer necessary.
13313
ed3ef339
DE
133142014-02-10 Doug Evans <xdje42@gmail.com>
13315
13316 Add Guile as an extension language.
13317 * NEWS: Mention Guile scripting.
13318 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13319 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13320 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13321 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13322 (CLIBS): Add GUILE_LIBS.
13323 (install-guile): New rule.
13324 (guile.o): New rule.
13325 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13326 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13327 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13328 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13329 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13330 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13331 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13332 * configure.ac: New option --with-guile.
13333 * configure: Regenerate.
13334 * config.in: Regenerate.
13335 * auto-load.c: Remove #include "python/python.h". Add #include
13336 "gdb/section-scripts.h".
13337 (source_section_scripts): Handle Guile scripts.
13338 (_initialize_auto_load): Add name of Guile objfile script to
13339 scripts-directory help text.
13340 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13341 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13342 (struct breakpoint): New member scm_bp_object.
13343 * defs.h (enum command_control_type): New value guile_control.
13344 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13345 "extension.h".
13346 (show_user): Update comment.
13347 (_initialize_cli_cmds): Update help text for "show user". Update help
13348 text for max-user-call-depth.
13349 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13350 "extension.h".
13351 (multi_line_command_p): Add guile_control.
13352 (print_command_lines): Handle guile_control.
13353 (execute_control_command, recurse_read_control_structure): Ditto.
13354 (process_next_line): Recognize "guile" commands.
13355 * disasm.c (gdb_disassemble_info): Make non-static.
13356 * disasm.h: #include "dis-asm.h".
13357 (struct gdbarch): Add forward decl.
13358 (gdb_disassemble_info): Declare.
13359 * extension.c: #include "guile/guile.h".
13360 (extension_languages): Add guile.
13361 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13362 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13363 * gdbtypes.c (get_unsigned_type_max): New function.
13364 (get_signed_type_minmax): New function.
13365 * gdbtypes.h (get_unsigned_type_max): Declare.
13366 (get_signed_type_minmax): Declare.
13367 * guile/README: New file.
13368 * guile/guile-internal.h: New file.
13369 * guile/guile.c: New file.
13370 * guile/guile.h: New file.
13371 * guile/scm-arch.c: New file.
13372 * guile/scm-auto-load.c: New file.
13373 * guile/scm-block.c: New file.
13374 * guile/scm-breakpoint.c: New file.
13375 * guile/scm-disasm.c: New file.
13376 * guile/scm-exception.c: New file.
13377 * guile/scm-frame.c: New file.
13378 * guile/scm-gsmob.c: New file.
13379 * guile/scm-iterator.c: New file.
13380 * guile/scm-lazy-string.c: New file.
13381 * guile/scm-math.c: New file.
13382 * guile/scm-objfile.c: New file.
13383 * guile/scm-ports.c: New file.
13384 * guile/scm-pretty-print.c: New file.
13385 * guile/scm-safe-call.c: New file.
13386 * guile/scm-string.c: New file.
13387 * guile/scm-symbol.c: New file.
13388 * guile/scm-symtab.c: New file.
13389 * guile/scm-type.c: New file.
13390 * guile/scm-utils.c: New file.
13391 * guile/scm-value.c: New file.
13392 * guile/lib/gdb.scm: New file.
13393 * guile/lib/gdb/boot.scm: New file.
13394 * guile/lib/gdb/experimental.scm: New file.
13395 * guile/lib/gdb/init.scm: New file.
13396 * guile/lib/gdb/iterator.scm: New file.
13397 * guile/lib/gdb/printing.scm: New file.
13398 * guile/lib/gdb/types.scm: New file.
13399 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13400 (VPATH): Add $(GUILE_SRCDIR).
13401 (GUILE_DIR): New variable.
13402 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13403 (all): Add stamp-guile dependency.
13404 (stamp-guile): New rule.
13405 (clean-guile, install-guile, uninstall-guile): New rules.
13406 (install-only): Add install-guile dependency.
13407 (uninstall): Add uninstall-guile dependency.
13408 (clean): Add clean-guile dependency.
13409
ac020ec5
DE
134102014-02-09 Doug Evans <xdje42@gmail.com>
13411
13412 Revert this patch (which I approved, mea culpa).
13413
13414 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13415
13416 * Makefile.in (all-lib): Remove.
13417 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13418
2a081c59
JK
134192014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13420
13421 Fix Python stack corruption.
13422 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13423 gdb_py_longest.
13424
0a6bd22d
MK
134252014-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
1a860409
DE
134302014-02-07 Doug Evans <dje@google.com>
13431
13432 * extension-priv.h (extension_language_script_ops): Add comment.
13433 (extension_language_ops): Add comment.
caf5a491 13434 (active_ext_lang_state): Fix typo in comment.
1a860409 13435
d137e6dc
PA
134362014-02-07 Pedro Alves <palves@redhat.com>
13437
0dcb32c3 13438 PR breakpoints/16292
d137e6dc
PA
13439 * infrun.c (handle_signal_stop) <signal arrives while stepping
13440 over a breakpoint>: Switch back to the stepping thread.
13441
ce6d0892
YQ
134422014-02-07 Yao Qi <yao@codesourcery.com>
13443
13444 * target.c (target_xfer_partial): Return zero if LEN is zero.
13445
2ed4b548
YQ
134462014-02-07 Yao Qi <yao@codesourcery.com>
13447
13448 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13449 (ld_so_xfer_auxv): Likewise.
13450 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13451 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13452 * corelow.c (core_xfer_partial): Likewise.
13453 * ctf.c (ctf_xfer_partial): Likewise.
13454 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13455 (darwin_xfer_partial): Likewise.
13456 * exec.c (exec_xfer_partial): Likewise.
13457 * gnu-nat.c (gnu_xfer_partial): Likewise.
13458 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13459 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13460 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13461 * linux-nat.c (linux_xfer_siginfo): Likewise.
13462 (linux_proc_xfer_spu): Likewise.
13463 * procfs.c (procfs_xfer_partial): Likewise.
13464 * record-full.c (record_full_xfer_partial): Likewise.
13465 (record_full_core_xfer_partial): Likewise.
13466 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13467 * remote.c (remote_write_qxfer): Likewise.
13468 (remote_write_qxfer, remote_read_qxfer): Likewise.
13469 (remote_xfer_partial): Likewise.
13470 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13471 (rs6000_xfer_shared_libraries): Likewise.
13472 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13473 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13474 (spu_xfer_partial): Likewise.
13475 * target.c (memory_xfer_partial_1): Likewise.
13476 * tracepoint.c (tfile_xfer_partial): Likewise.
13477 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13478 (windows_xfer_partial): Likewise.
13479
c09f20e4
YQ
134802014-02-07 Yao Qi <yao@codesourcery.com>
13481
13482 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13483 comments.
13484 (core_xfer_shared_libraries_aix): Likewise.
13485 * gdbarch.c, gdbarch.h: Regenerated.
13486 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13487 ULONGEST. Change 'len_avail' type to ULONGEST.
13488 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13489 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13490 declaration.
13491 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13492
8635b3bf
YQ
134932014-02-07 Yao Qi <yao@codesourcery.com>
13494
13495 * corefile.c (memory_error): Get 'exception' from ERR and pass
13496 'exception' to throw_error.
13497
6dddc817
DE
134982014-02-06 Doug Evans <xdje42@gmail.com>
13499
13500 * configure.ac (libpython checking): Remove all but python.o from
13501 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13502 * configure: Regenerate.
13503
13504 * Makefile.in (SFILES): Add extension.c.
13505 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13506 (COMMON_OBS): Add extension.o.
13507 * extension.h: New file.
13508 * extension-priv.h: New file.
13509 * extension.c: New file.
13510
13511 * python/python-internal.h: #include "extension.h".
13512 (gdbpy_auto_load_enabled): Declare.
13513 (gdbpy_apply_val_pretty_printer): Declare.
13514 (gdbpy_apply_frame_filter): Declare.
13515 (gdbpy_preserve_values): Declare.
13516 (gdbpy_breakpoint_cond_says_stop): Declare.
13517 (gdbpy_breakpoint_has_cond): Declare.
13518 (void source_python_script_for_objfile): Delete.
13519 * python/python.c: #include "extension-priv.h".
13520 Delete inclusion of "observer.h".
13521 (extension_language_python): Moved here and renamed from
13522 script_language_python in py-auto-load.c.
13523 Redefined to be of type extension_language_defn.
13524 (python_extension_script_ops): New global.
13525 (python_extension_ops): New global.
13526 (struct python_env): New member previous_active.
13527 (restore_python_env): Call restore_active_ext_lang.
13528 (ensure_python_env): Call set_active_ext_lang.
13529 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13530 New arg extlang.
13531 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13532 New arg extlang.
13533 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13534 New arg extlang.
13535 (gdbpy_eval_from_control_command): Renamed from
13536 eval_python_from_control_command, made static. New arg extlang.
13537 (gdbpy_source_script) Renamed from source_python_script, made static.
13538 New arg extlang.
13539 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13540 result to int. New arg extlang.
13541 (gdbpy_source_objfile_script): Renamed from
13542 source_python_script_for_objfile, made static. New arg extlang.
13543 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13544 static. New args extlang, extlang_printers. Change result type to
13545 "void".
13546 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13547 static. New arg extlang. Rename arg printers to extlang_printers
13548 and change type to ext_lang_type_printers *.
13549 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13550 static. Replace argument arg with extlang, extlang_printers.
13551 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13552 (!HAVE_PYTHON, source_python_script): Delete.
13553 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13554 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13555 (!HAVE_PYTHON, start_type_printers): Delete.
13556 (!HAVE_PYTHON, apply_type_printers): Delete.
13557 (!HAVE_PYTHON, free_type_printers): Delete.
13558 (_initialize_python): Delete call to observer_attach_before_prompt.
13559 (finalize_python): Set/restore active extension language.
13560 (gdbpy_finish_initialization) Renamed from
13561 finish_python_initialization, made static. New arg extlang.
13562 (gdbpy_initialized): New function.
13563 * python/python.h: #include "extension.h". Delete #include
13564 "value.h", "mi/mi-cmds.h".
13565 (extension_language_python): Declare.
13566 (GDBPY_AUTO_FILE_NAME): Delete.
13567 (enum py_bt_status): Moved to extension.h and renamed to
13568 ext_lang_bt_status.
13569 (enum frame_filter_flags): Moved to extension.h.
13570 (enum py_frame_args): Moved to extension.h and renamed to
13571 ext_lang_frame_args.
13572 (finish_python_initialization): Delete.
13573 (eval_python_from_control_command): Delete.
13574 (source_python_script): Delete.
13575 (apply_val_pretty_printer): Delete.
13576 (apply_frame_filter): Delete.
13577 (preserve_python_values): Delete.
13578 (gdbpy_script_language_defn): Delete.
13579 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13580 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13581
13582 * auto-load.c: #include "extension.h".
13583 (GDB_AUTO_FILE_NAME): Delete.
13584 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13585 (script_language_gdb): Delete, moved to extension.c and renamed to
13586 extension_language_gdb.
13587 (source_gdb_script_for_objfile): Delete.
13588 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13589 (loaded_script): Change type of language member to
13590 struct extension_language_defn *.
13591 (init_loaded_scripts_info): Initialize
13592 unsupported_script_warning_printed.
13593 (maybe_add_script): Make static. Change type of language arg to
13594 struct extension_language_defn *.
13595 (clear_section_scripts): Reset unsupported_script_warning_printed.
13596 (auto_load_objfile_script_1): Rewrite to use extension language API.
13597 (auto_load_objfile_script): Make public. Remove support-compiled-in
13598 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13599 (source_section_scripts): Rewrite to use extension language API.
13600 (load_auto_scripts_for_objfile): Rewrite to use
13601 auto_load_scripts_for_objfile.
13602 (collect_matching_scripts_data): Change type of language member to
13603 struct extension_language_defn *.
13604 (auto_load_info_scripts): Change type of language arg to
13605 struct extension_language_defn *.
13606 (unsupported_script_warning_print): New function.
13607 (script_not_found_warning_print): Make static.
13608 (_initialize_auto_load): Rewrite construction of scripts-directory
13609 help.
13610 * auto-load.h (struct objfile): Add forward decl.
13611 (struct script_language): Delete.
13612 (struct auto_load_pspace_info): Add forward decl.
13613 (struct extension_language_defn): Add forward decl.
13614 (maybe_add_script): Delete.
13615 (auto_load_objfile_script): Declare.
13616 (script_not_found_warning_print): Delete.
13617 (auto_load_info_scripts): Update prototype.
13618 (auto_load_gdb_scripts_enabled): Declare.
13619 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13620 auto_load_python_scripts_enabled and made public.
13621 (script_language_python): Delete, moved to python.c.
13622 (gdbpy_script_language_defn): Delete.
13623 (info_auto_load_python_scripts): Update to use
13624 extension_language_python.
13625
13626 * breakpoint.c (condition_command): Replace call to
13627 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13628 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13629 with call to breakpoint_ext_lang_cond_says_stop.
13630 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13631 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13632 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13633 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13634 New arg slang.
13635 (local_setattro): Print name of extension language with existing
13636 stop condition.
13637
13638 * valprint.c (val_print, value_print): Update to call
13639 apply_ext_lang_val_pretty_printer.
13640 * cp-valprint.c (cp_print_value): Update call to
13641 apply_ext_lang_val_pretty_printer.
13642 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13643 (gdbpy_apply_val_pretty_printer): Renamed from
13644 apply_val_pretty_printer. New arg extlang.
13645 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13646
13647 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13648 extension language API.
13649 * cli/cli-script.c (execute_control_command): Update to call
13650 eval_ext_lang_from_control_command.
13651
13652 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13653 enum ext_lang_bt_status values. Update call to
13654 apply_ext_lang_frame_filter.
13655 (mi_cmd_stack_list_locals): Ditto.
13656 (mi_cmd_stack_list_args): Ditto.
13657 (mi_cmd_stack_list_variables): Ditto.
13658 * mi/mi-main.c: Delete #include "python/python-internal.h".
13659 Add #include "extension.h".
13660 (mi_cmd_list_features): Replace reference to python internal variable
13661 gdb_python_initialized with call to ext_lang_initialized_p.
13662
13663 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13664 Update to use enum ext_lang_frame_args. Update to call
13665 apply_ext_lang_frame_filter.
13666 * python/py-framefilter.c (extract_sym): Update to use enum
13667 ext_lang_bt_status.
13668 (extract_value, py_print_type, py_print_value): Ditto.
13669 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13670 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13671 (py_print_frame): Ditto.
13672 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13673 New arg extlang. Update to use enum ext_lang_bt_status.
13674
13675 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13676 finish_python_initialization. Replace with call to
13677 finish_ext_lang_initialization.
13678
13679 * typeprint.c (do_free_global_table): Update to call
13680 free_ext_lang_type_printers.
13681 (create_global_typedef_table): Update to call
13682 start_ext_lang_type_printers.
13683 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13684 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13685 (type_print_options): Change type of global_printers from "void *"
13686 to "struct ext_lang_type_printers *".
13687
13688 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13689 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13690 (gdbpy_preserve_values): Renamed from preserve_python_values.
13691 New arg extlang.
13692 (!HAVE_PYTHON, preserve_python_values): Delete.
13693
13694 * utils.c (quit_flag): Delete, moved to extension.c.
13695 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13696 extension.c.
13697
13698 * eval.c: Delete #include "python/python.h".
13699 * main.c: Delete #include "python/python.h".
13700
13701 * defs.h: Update comment.
13702
6af79985
JB
137032014-02-06 Joel Brobecker <brobecker@adacore.com>
13704
13705 GDB 7.7 released.
13706
12c5175d
MK
137072014-02-05 Mark Kettenis <kettenis@gnu.org>
13708
13709 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13710 defined.
13711
8dc5b319
YQ
137122014-02-05 Yao Qi <yao@codesourcery.com>
13713
13714 * remote.c (remote_pass_signals): Remove local 'buf' and use
13715 rs->buf.
13716 (remote_program_signals): Likewise.
13717
de7b2893
YQ
137182014-02-05 Yao Qi <yao@codesourcery.com>
13719
13720 * ctf.c: Include "inferior.h" and "gdbthread.h".
13721 (CTF_PID): A new macro.
13722 (ctf_open): Call inferior_appeared and add_thread_silent.
13723 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13724 (ctf_thread_alive): New function.
13725 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13726
66d032ac
YQ
137272014-02-05 Yao Qi <yao@codesourcery.com>
13728
13729 Revert this patch:
13730
13731 2013-05-24 Yao Qi <yao@codesourcery.com>
13732
13733 * tracepoint.c (TFILE_PID): Remove.
13734 (tfile_open): Don't add thread and inferior.
13735 (tfile_close): Don't set 'inferior_ptid'. Don't call
13736 exit_inferior_silent.
13737 (tfile_thread_alive): Remove.
13738 (init_tfile_ops): Don't set field 'to_thread_alive' of
13739 tfile_ops.
13740
f4ccffad
CE
137412014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13742
13743 * remote.c (remote_start_remote): Call remote_check_symbols even
13744 if only symbol-file (not file) has been given.
13745
591a12a1
UW
137462014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13747
13748 * gdbarch.sh (skip_entrypoint): New callback.
13749 * gdbarch.c, gdbarch.h: Regenerate.
13750 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13751 * infrun.c (fill_in_stop_func): Likewise.
13752 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13753 (ppc_elfv2_elf_make_msymbol_special): New function.
13754 (ppc_elfv2_skip_entrypoint): Likewise.
13755 (ppc_linux_init_abi): Install them for ELFv2.
13756
cc0e89c5
UW
137572014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13758
13759 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13760 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13761 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13762 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13763 structures returned in GPRs.
13764
52f548e4
UW
137652014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13766
13767 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13768 offset to the stack parameter list for the ELFv2 ABI.
13769
d4094b6a
UW
137702014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13771
13772 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13773 set_gdbarch_convert_from_func_ptr_addr and
13774 set_gdbarch_elf_make_msymbol_special for ELFv1.
13775 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13776 function descriptors on ELFv1.
13777 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13778 set up r12 at function entry.
13779
cd453cd0
UW
137802014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13781
13782 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13783 (struct gdbarch_tdep): New member elf_abi.
13784
13785 * rs6000-tdep.c: Include "elf/ppc64.h".
13786 (rs6000_gdbarch_init): Detect ELF ABI version.
13787
0ff3e01f
UW
137882014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13789
13790 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13791 within a register pair holding a DFP 128-bit value on little-endian.
13792 (ppc64_sysv_abi_return_value_base): Likewise.
13793 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13794 (dfp_pseudo_register_write): Likewise.
13795
5b757e5d
UW
137962014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13797
13798 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13799 offset on little-endian when passing _Decimal32.
13800 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13801
084ee545
UW
138022014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13803
13804 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13805 of the overlapped FP register within the VSX register on little-
13806 endian platforms.
13807 (efpr_pseudo_register_write): Likewise.
13808
d63167af
UW
138092014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13810
13811 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13812 offset on little-endian when passing small structures.
13813
e765b44c
UW
138142014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13815
13816 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13817 (struct ppc64_sysv_argpos): New data structure.
13818 (ppc64_sysv_abi_push_float): Remove.
13819 (ppc64_sysv_abi_push_val): New function.
13820 (ppc64_sysv_abi_push_integer): Likewise.
13821 (ppc64_sysv_abi_push_freg): Likewise.
13822 (ppc64_sysv_abi_push_vreg): Likewise.
13823 (ppc64_sysv_abi_push_param): Likewise.
13824 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13825 (ppc64_sysv_abi_return_value_base): New function.
13826 (ppc64_sysv_abi_return_value): Refactor to use it.
13827
36c24d95
UW
138282014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13829
13830 * NEWS: Document new target powerpc64le-*-linux*.
13831
26fd9228
MK
138322014-02-04 Mark Kettenis <kettenis@gnu.org>
13833
13834 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13835 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13836 core dumps.
13837 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13838 register set used in ELF core dumps. Add floating-point register set.
13839
c5bb7362
KB
138402014-02-03 Kevin Buettner <kevinb@redhat.com>
13841
74228e77 13842 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
13843 dwarf2_to_gdb[] table using symbolic constants. Adjust
13844 penultimate entry from number representing the PC register
13845 to symbolic constant representing the MDR register. Add
13846 constant for the PC register to the end of the table.
13847
af09351e
MK
138482014-02-03 Mark Kettenis <kettenis@gnu.org>
13849
13850 * bsd-kvm.c: Include <sys/param.h>
13851
8507e05d
MK
138522014-02-03 Mark Kettenis <kettenis@gnu.org>
13853
13854 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13855
ae56bfb8
JB
138562014-01-31 Joel Brobecker <brobecker@adacore.com>
13857
13858 * ada-lang.h (clear_ada_sym_cache): Delete.
13859
718ee4dc
UW
138602014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13861
13862 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13863
401e27fd
JM
138642014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13865
13866 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13867 the sigreturn register save area only if the syscall is
13868 sigreturn.
13869
a7c88acd
JB
138702014-01-29 Joel Brobecker <brobecker@adacore.com>
13871
13872 * valops.c (value_slice): Minor reformatting.
13873
fa0079ea
UW
138742014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13875
13876 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13877
c6044dd1
JB
138782014-01-28 Joel Brobecker <brobecker@adacore.com>
13879
13880 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13881 New static globals.
13882 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13883 (ada_ignore_descriptive_types_p): New static global.
13884 (find_parallel_type_by_descriptive_type): Return immediately
13885 if ada_ignore_descriptive_types_p is set.
13886 (_initialize_ada_language): Register new commands "maintenance
13887 set ada", "maintenance show ada", "maintenance set ada
13888 ignore-descriptive-types" and "maintenance show ada
13889 ignore-descriptive-types".
13890 * NEWS: Add entry for new "maint ada set/show
13891 ignore-descriptive-types" commands.
13892
568e808b
MM
138932014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13894
13895 * record-btrace.c (record_btrace_close): Call btrace_teardown
13896 for all threads.
13897
467d141b
JB
138982014-01-27 Joel Brobecker <brobecker@adacore.com>
13899
13900 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13901 "ui-out.h".
13902
fb151210
JB
139032014-01-27 Joel Brobecker <brobecker@adacore.com>
13904
13905 * ada-typeprint (type_is_full_subrange_of_target_type):
13906 New function.
13907 (print_range): Add parameter bounds_prefered_p. If not set,
13908 try printing range types using the name of their base type.
13909 (print_range_type): Add parameter bounds_prefered_p.
13910 Use it in call to print_range.
13911 (print_array_type, ada_print_type): Update calls to print_range
13912 and print_range_type.
13913
aba02109
JB
139142014-01-27 Joel Brobecker <brobecker@adacore.com>
13915
13916 * ada-typeprint.c (print_array_type, print_choices, print_range)
13917 (print_range_bound, print_dynamic_range_bound, print_range_type):
13918 Remove declaration.
13919
e62e21fd
JB
139202014-01-27 Joel Brobecker <brobecker@adacore.com>
13921
13922 * ada-typeprint.c (print_range): Add missing empty line
13923 after local declaration.
13924
859cf5d1
JB
139252014-01-27 Joel Brobecker <brobecker@adacore.com>
13926
13927 * ada-valprint.c (print_optional_low_bound): Get index_type's
13928 target type for as long as it is a TYPE_CODE_RANGE.
13929
25790f6f
JB
139302014-01-27 Joel Brobecker <brobecker@adacore.com>
13931
13932 * procfs.c (procfs_make_note_section): Remove assertion and
13933 associated comment.
13934
6b6aa828
YQ
139352014-01-24 Yao Qi <yao@codesourcery.com>
13936
13937 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13938 * corelow.c (get_core_siginfo): Likewise.
13939
5d6df423
YQ
139402014-01-24 Yao Qi <yao@codesourcery.com>
13941
13942 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13943 ULONGEST. Don't check 'len' is negative.
13944 (remote_write_bytes): Change type of 'len' to ULONGEST.
13945
83b645b8
TT
139462014-01-23 Tom Tromey <tromey@redhat.com>
13947
13948 PR python/16485:
13949 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13950 Handle exception from frame.block.
13951 (FrameVars.fetch_frame_locals): Likewise.
13952
0740f8d8
TT
139532014-01-23 Tom Tromey <tromey@redhat.com>
13954
13955 PR python/16487:
13956 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13957 on a NULL pointer. Move "goto error" to correct place.
13958
21909fa1
TT
139592014-01-23 Tom Tromey <tromey@redhat.com>
13960
13961 PR python/16491:
13962 * python/py-framefilter.c (apply_frame_filter): Call
13963 ensure_python_env after computing gdbarch.
13964
17fde6d0
YQ
139652014-01-23 Yao Qi <yao@codesourcery.com>
13966
13967 * target.c (raw_memory_xfer_partial): Change argument type
13968 from void * to gdb_byte *.
13969 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13970
87ce2a04
DE
139712014-01-22 Doug Evans <dje@google.com>
13972
13973 New gdbserver option --debug-format=timestamp.
13974 * NEWS: Mention it.
13975
237b092b
AA
139762014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13977
13978 * syscalls/s390x-linux.xml: New file.
13979 * syscalls/s390-linux.xml: New file.
13980 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13981 (XML_SYSCALL_FILENAME_S390X): Likewise.
13982 (op_svc): New enum value for SVC opcode.
13983 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13984 (s390_linux_get_syscall_number): New function.
13985 (s390_gdbarch_init): Register '*get_syscall_number' and the
13986 syscall xml file name.
13987 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13988 "s390-linux.xml" and "s390x-linux.xml".
13989 * NEWS: Announce new feature.
13990
54bff650
BS
139912014-01-22 Baruch Siach <baruch@tkos.co.il>
13992
13993 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13994
14e361d7
PA
139952014-01-22 Pedro Alves <palves@redhat.com>
13996
13997 * xtensa-config.c: Include defs.h.
13998
46bbb3ed
JB
139992014-01-22 Joel Brobecker <brobecker@adacore.com>
14000
14001 * common/common-utils.h: Add "ARI:" comment beside __func__
14002 reference.
14003
3a80edfc
JB
140042014-01-22 Joel Brobecker <brobecker@adacore.com>
14005
14006 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14007 documentation a bit.
14008
4869db5e
RM
140092014-01-21 Roland McGrath <mcgrathr@google.com>
14010
14011 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14012 * configure: Regenerate.
14013 * aclocal.m4: Regenerate.
14014 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14015 New substituted variables.
14016 (install-strip): New target.
14017 (INSTALL_SCRIPT): New substituted variable.
14018 (FLAGS_TO_PASS): Add it.
14019 (install-only): Use $(INSTALL_SCRIPT) rather than
14020 $(INSTALL_PROGRAM) for gcore.
14021
9ea4267d
TT
140222014-01-20 Tom Tromey <tromey@redhat.com>
14023
14024 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14025 together.
14026
1f2bdf09
TT
140272014-01-20 Tom Tromey <tromey@redhat.com>
14028
14029 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14030 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14031 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14032 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14033 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14034 (struct cmd_list_element) <flags>: Remove.
14035 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14036 doc_allocated>: New fields.
14037 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14038 bitfields.
14039 * maint.c (maintenance_do_deprecate): Update.
14040 * top.c (execute_command): Update.
14041
e671835b
BS
140422014-01-20 Baruch Siach <baruch@tkos.co.il>
14043
14044 * xtensa-linux-nat.c: Include asm/ptrace.h.
14045
50367cd2
IB
140462014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14047
14048 * Makefile.in (SFILES): Add d-support.c.
14049 (COMMON_OBS): Add d-support.o.
14050 * d-lang.h (d_parse_symbol): Add comment, now defined in
14051 d-support.c.
14052 * d-lang.c (parse_call_convention)
14053 (parse_attributes, parse_function_types)
14054 (parse_function_args, parse_type, parse_identifier)
14055 (call_convention_p, d_parse_symbol): Move functions to ...
14056 * d-support.c: ... New file.
14057
ec9f644a
IB
140582014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14059
14060 * d-lang.h (d_parse_symbol): Add declaration.
14061 * d-lang.c (extract_identifiers)
14062 (extract_type_info): Remove functions.
14063 (parse_call_convention, parse_attributes)
14064 (parse_function_types, parse_function_args)
14065 (parse_type, parse_identifier, call_convention_p)
14066 (d_parse_symbol): New functions.
14067 (d_demangle): Use d_parse_symbol to demangle D symbols.
14068
94b1b47e
IB
140692014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14070
14071 * d-lang.h (struct builtin_d_type): New data type.
14072 (builtin_d_type): Add declaration.
14073 * d-lang.c (d_language_arch_info, build_d_types)
14074 (builtin_d_type): New functions.
14075 (enum d_primitive_types): New data type.
14076 (d_language_defn): Change c_language_arch_info to
14077 d_language_arch_info.
14078 (d_type_data): New static variable.
14079 (_initialize_d_language): Initialize d_type_data.
14080
63778547
IB
140812014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14082
14083 * d-lang.h (d_main_name): Add declaration.
14084 * d-lang.c (d_main_name): New function.
14085 * symtab.c (find_main_name): Add call to d_main_name.
14086
3271ba66
IB
140872014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14088
14089 * d-lang.c (d_language_defn): Change macro_expansion_c to
14090 macro_expansion_no.
14091
d36b3012
IB
140922014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14093
14094 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14095
c90a6fb7
SDJ
140962014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14097
14098 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14099 gdb_exception" declaration.
14100 * remote.c (getpkt_or_notif_sane): Likewise.
14101
749234e5
DE
141022014-01-17 Doug Evans <dje@google.com>
14103
14104 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14105 function, contents of dirnames_to_char_ptr_vec_append moved here.
14106 (delim_string_to_char_ptr_vec): New function.
14107 (dirnames_to_char_ptr_vec_append): Rewrite.
14108 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14109
df049a58
DE
141102014-01-17 Doug Evans <dje@google.com>
14111
14112 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14113 and moved here ...
14114 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14115 #include "common-utils.h".
14116 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14117 * common/vec.h (VEC_ASSERT_PASS): Update.
14118 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14119 (MACH_CHECK_ERROR): Update.
14120
69f97648
SM
141212014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14122
14123 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14124 comments.
14125 * gdbarch.h: Regenerate.
14126
98b1cfdc
TT
141272014-01-16 Tom Tromey <tromey@redhat.com>
14128
14129 * value.c (struct value) <regnum>: Move earlier.
14130
77a19445
TT
141312014-01-16 Tom Tromey <tromey@redhat.com>
14132
14133 * remote.c (extended_remote_create_inferior): Rename from
14134 extended_remote_create_inferior_1. Add "ops" argument. Remove
14135 old implementation.
14136
62261490
PA
141372014-01-16 Pedro Alves <palves@redhat.com>
14138
14139 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14140 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14141 the backchain.
14142
4d65956b
DE
141432014-01-16 Doug Evans <dje@google.com>
14144
14145 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14146
52834460
MM
141472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14148
14149 * btrace.h (btrace_thread_flag): New.
14150 (struct btrace_thread_info) <flags>: New.
14151 * record-btrace.c (record_btrace_resume_thread)
14152 (record_btrace_find_thread_to_move, btrace_step_no_history)
14153 (btrace_step_stopped, record_btrace_start_replaying)
14154 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14155 (record_btrace_find_resume_thread): New.
14156 (record_btrace_resume, record_btrace_wait): Extend.
14157 (record_btrace_can_execute_reverse): New.
14158 (record_btrace_open): Fail in non-stop mode.
14159 (record_btrace_set_replay): Split into this, ...
14160 (record_btrace_stop_replaying): ... this, ...
14161 (record_btrace_clear_histories): ... and this.
14162 (init_record_btrace_ops): Init to_can_execute_reverse.
14163 * NEWS: Announce it.
14164
118e6252
MM
141652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14166
14167 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14168 (forward_target_decr_pc_after_break)
14169 (target_decr_pc_after_break): New.
14170 * target.c (forward_target_decr_pc_after_break)
14171 (target_decr_pc_after_break): New.
14172 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14173 instead of gdbarch_decr_pc_after_break.
14174 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14175 instead of gdbarch_decr_pc_after_break.
14176 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14177 instead of gdbarch_decr_pc_after_break.
14178 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14179 instead of gdbarch_decr_pc_after_break.
14180 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14181 instead of gdbarch_decr_pc_after_break.
14182 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14183 instead of gdbarch_decr_pc_after_break.
14184
6e07b1d2
MM
141852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14186
14187 * btrace.c: Include regcache.h.
14188 (btrace_add_pc): New.
14189 (btrace_enable): Call btrace_add_pc.
14190 (btrace_is_empty): New.
14191 * btrace.h (btrace_is_empty): New.
14192 * record-btrace.c (require_btrace, record_btrace_info): Call
14193 btrace_is_empty.
14194
969c39fb
MM
141952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14196
14197 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14198 Support delta reads.
14199 (linux_disable_btrace): Change return type.
14200 * common/linux-btrace.h (linux_read_btrace): Change parameters
14201 and return type to allow error reporting. Update users.
14202 (linux_disable_btrace): Change return type. Update users.
14203 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14204 New.
14205 (btrace_error): New.
14206 (btrace_block) <begin>: Comment on BEGIN == 0.
14207 * btrace.c (btrace_compute_ftrace): Start from the end of
14208 the current trace.
14209 (btrace_stitch_trace, btrace_clear_history): New.
14210 (btrace_fetch): Read delta trace, return if replaying.
14211 (btrace_clear): Move clear history code to btrace_clear_history.
14212 (parse_xml_btrace): Throw an error if parsing failed.
14213 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14214 and return type to allow error reporting.
14215 (target_read_btrace): Change parameters and return type to allow
14216 error reporting.
14217 * target.c (target_read_btrace): Update.
14218 * remote.c (remote_read_btrace): Support delta reads. Pass
14219 errors on.
14220 * NEWS: Announce it.
14221
0b722aec
MM
142222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14223
14224 * record.h (record_btrace_frame_unwind)
14225 (record_btrace_tailcall_frame_unwind): New declarations.
14226 * dwarf2-frame: Include record.h
14227 (dwarf2_frame_cfa): Throw an error for btrace frames.
14228 * record-btrace.c: Include hashtab.h.
14229 (btrace_get_bfun_name): New.
14230 (btrace_call_history): Call btrace_get_bfun_name.
14231 (struct btrace_frame_cache): New.
14232 (bfcache): New.
14233 (bfcache_hash, bfcache_eq, bfcache_new): New.
14234 (btrace_get_frame_function): New.
14235 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14236 (record_btrace_frame_this_id): Compute own id.
14237 (record_btrace_frame_prev_register): Provide PC, throw_error
14238 for all other registers.
14239 (record_btrace_frame_sniffer): Detect btrace frames.
14240 (record_btrace_tailcall_frame_sniffer): New.
14241 (record_btrace_frame_dealloc_cache): New.
14242 (record_btrace_frame_unwind): Add new functions.
14243 (record_btrace_tailcall_frame_unwind): New.
14244 (_initialize_record_btrace): Allocate cache.
14245 * btrace.c (btrace_clear): Call reinit_frame_cache.
14246 * NEWS: Announce it.
14247
066ce621
MM
142482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14249
14250 * record-btrace.c (record_btrace_set_replay)
14251 (record_btrace_goto_begin, record_btrace_goto_end)
14252 (record_btrace_goto): New.
14253 (init_record_btrace_ops): Initialize them.
14254 * NEWS: Announce it.
14255
e2887aa3
MM
142562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14257
14258 * record-btrace.c (record_btrace_find_new_threads)
14259 (record_btrace_thread_alive): New.
14260 (init_record_btrace_ops): Initialize to_find_new_threads and
14261 to_thread_alive.
14262
b2f4cfde
MM
142632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14264
14265 * record-btrace.c (record_btrace_resume): New.
14266 (record_btrace_wait): New.
14267 (init_record_btrace_ops): Initialize to_wait and to_resume.
14268
633785ff
MM
142692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14270
14271 * record-btrace.c (record_btrace_xfer_partial)
14272 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14273 (record_btrace_allow_memory_access): New.
14274 (init_record_btrace_ops): Initialize new methods.
14275 * target.c (raw_memory_xfer_partial): Bail out if target reports
14276 that this memory is not available.
14277
3db08215
MM
142782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14279
14280 * target.h (target_ops) <to_insert_breakpoint>
14281 <to_remove_breakpoint>: Add target_ops parameter.
14282 (forward_target_insert_breakpoint): New.
14283 (forward_target_remove_breakpoint): New.
14284 (memory_remove_breakpoint, memory_insert_breakpoint):
14285 Add target_ops parameter.
14286 * target.c (target_insert_breakpoint): Split into this and ...
14287 (forward_target_insert_breakpoint): ... this.
14288 (target_remove_breakpoint): Split into this and ...
14289 (forward_target_remove_breakpoint): ... this.
14290 (debug_to_insert_breakpoint): Add target_ops parameter.
14291 Call forward_target_insert_breakpoint.
14292 (debug_to_remove_breakpoint): Add target_ops parameter.
14293 Call forward_target_remove_breakpoint.
14294 (update_current_target): Do not inherit or default to_insert_breakpoint
14295 and to_remove_breakpoint.
14296 * corelow.c (ignore): Add target_ops parameter.
14297 * exec.c (ignore): Add target_ops parameter.
14298 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14299 Add target_ops parameter.
14300 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14301 Add target_ops parameter.
14302 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14303 Add target_ops parameter.
14304 * record-full.c (record_full_beneath_to_insert_breakpoint)
14305 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14306 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14307 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14308 (record_full_core_remove_breakpoint): Add target_ops parameter.
14309 Update users.
14310 (record_full_beneath_to_insert_breakpoint_ops)
14311 (record_full_beneath_to_remove_breakpoint_ops)
14312 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14313 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14314 tmp_to_remove_breakpoint_ops,
14315 record_full_beneath_to_insert_breakpoint_ops, and
14316 record_full_beneath_to_remove_breakpoint_ops.
14317 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14318 (m32r_remove_breakpoint): Add target_ops parameter.
14319 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14320 Add target_ops parameter.
14321 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14322 Add target_ops parameter.
14323
cecac1ab
MM
143242014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14325 Markus Metzger <markus.t.metzger@intel.com>
14326
14327 * record-btrace.c: Include frame-unwind.h.
14328 (record_btrace_frame_unwind_stop_reason)
14329 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14330 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14331 New.
14332 (init_record_btrace_ops): Install it.
14333
824344ca
MM
143342014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14335
14336 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14337 get_prev_frame_1.
14338
32261e52
MM
143392014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14340
14341 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14342 earlier.
14343
ea001bdc
MM
143442014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14345
14346 * frame-unwind.c: Include target.h.
14347 (frame_unwind_try_unwinder): New function with code from ...
14348 (frame_unwind_find_by_frame): ... here. New variable
14349 unwinder_from_target, call also target_get_unwinder)
14350 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14351 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14352 * target.h (struct target_ops): New fields to_get_unwinder and
14353 to_get_tailcall_unwinder.
14354 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14355
1f3ef581
MM
143562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14357
14358 * record-btrace.c (record_btrace_fetch_registers)
14359 (record_btrace_store_registers)
14360 (record_btrace_to_prepare_to_store): New.
14361 (init_record_btrace_ops): Add the above.
14362
f32dbf8c
MM
143632014-01-16 Tom Tromey <tromey@redhat.com>
14364
14365 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14366 * target.h (struct target_ops) <to_prepare_to_store>: Add
14367 argument.
14368 (target_prepare_to_store): Add argument.
14369 * target.c (debug_to_prepare_to_store): Add argument.
14370 (update_current_target): Update.
14371 * remote.c (remote_prepare_to_store): Add 'self' argument.
14372 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14373 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14374 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14375 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14376 argument.
14377 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14378 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14379 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14380 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14381 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14382
07bbe694
MM
143832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14384
14385 * btrace.h (replay) <replay>: New.
14386 (btrace_is_replaying): New.
14387 * btrace.c (btrace_clear): Free replay iterator.
14388 (btrace_is_replaying): New.
14389 * record-btrace.c (record_btrace_is_replaying): New.
14390 (record_btrace_info): Print insn number if replaying.
14391 (record_btrace_insn_history): Start at replay position.
14392 (record_btrace_call_history): Start at replay position.
14393 (init_record_btrace_ops): Init to_record_is_replaying.
14394
0688d04e
MM
143952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14396
14397 * record-btrace.c (record_btrace_insn_history_range): Include
14398 end.
14399 (record_btrace_insn_history_from): Adjust range.
14400 (record_btrace_call_history_range): Include
14401 end.
14402 (record_btrace_call_history_from): Adjust range.
14403 * NEWS: Announce changes.
14404
8710b709
MM
144052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14406
14407 * record.h (enum record_print_flag)
14408 <record_print_indent_calls>: New.
14409 * record.c (get_call_history_modifiers): Recognize /c modifier.
14410 (_initialize_record): Document /c modifier.
14411 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14412 Reorder fields. Optionally indent the function name. Update
14413 all users.
14414 * NEWS: Announce changes.
14415
d0fa7535
MM
144162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14417
14418 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14419
5de9129b
MM
144202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14421
14422 * btrace.c (ftrace_new_function): Start counting at one.
14423 * record-btrace.c (record_btrace_info): Adjust number of calls
14424 and insns.
14425 * NEWS: Announce it.
14426
7acbe133
MM
144272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14428
14429 * record-btrace.c (btrace_call_history_insn_range): Print
14430 insn range as [begin, end].
14431
23a7fe75
MM
144322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14433
14434 * btrace.h (struct btrace_func_link): New.
14435 (enum btrace_function_flag): New.
14436 (struct btrace_inst): Rename to ...
14437 (struct btrace_insn): ...this. Update all users.
14438 (struct btrace_func) <ibegin, iend>: Remove.
14439 (struct btrace_func_link): New.
14440 (struct btrace_func): Rename to ...
14441 (struct btrace_function): ...this. Update all users.
14442 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14443 (number, level, flags>: New.
14444 (struct btrace_insn_iterator): Rename to ...
14445 (struct btrace_insn_history): ...this.
14446 Update all users.
14447 (struct btrace_insn_iterator, btrace_call_iterator): New.
14448 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14449 (struct btrace_target_info) <begin, end, level>
14450 <insn_history, call_history>: New.
14451 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14452 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14453 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14454 (btrace_call_number, btrace_call_begin, btrace_call_end)
14455 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14456 (btrace_find_function_by_number, btrace_set_insn_history)
14457 (btrace_set_call_history): New.
14458 * btrace.c (btrace_init_insn_iterator)
14459 (btrace_init_func_iterator, compute_itrace): Remove.
14460 (ftrace_print_function_name, ftrace_print_filename)
14461 (ftrace_skip_file): Change
14462 parameter to const.
14463 (ftrace_init_func): Remove.
14464 (ftrace_debug): Use new btrace_function fields.
14465 (ftrace_function_switched): Also consider gaining and
14466 losing symbol information).
14467 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14468 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14469 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14470 New.
14471 (ftrace_new_function): Move. Remove debug print.
14472 (ftrace_update_lines, ftrace_update_insns): New.
14473 (ftrace_update_function): Check for call, ret, and jump.
14474 (compute_ftrace): Renamed to ...
14475 (btrace_compute_ftrace): ...this. Rewritten to compute call
14476 stack.
14477 (btrace_fetch, btrace_clear): Updated.
14478 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14479 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14480 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14481 (btrace_call_number, btrace_call_begin, btrace_call_end)
14482 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14483 (btrace_find_function_by_number, btrace_set_insn_history)
14484 (btrace_set_call_history): New.
14485 * record-btrace.c (require_btrace): Use new btrace thread
14486 info fields.
14487 (record_btrace_info, btrace_insn_history)
14488 (record_btrace_insn_history, record_btrace_insn_history_range):
14489 Use new btrace thread info fields and new iterator.
14490 (btrace_func_history_src_line): Rename to ...
14491 (btrace_call_history_src_line): ...this. Use new btrace
14492 thread info fields.
14493 (btrace_func_history): Rename to ...
14494 (btrace_call_history): ...this. Use new btrace thread info
14495 fields and new iterator.
14496 (record_btrace_call_history, record_btrace_call_history_range):
14497 Use new btrace thread info fields and new iterator.
14498
8372a7cb
MM
144992014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14500
14501 * frame.h (frame_id_build_unavailable_stack_special): New.
14502 * frame.c (frame_id_build_unavailable_stack_special): New.
14503
c2170eef
MM
145042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14505
14506 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14507 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14508 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14509 to gdbarch.
14510 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14511 (i386_insn_is_jump, i386_jmp_p): New.
14512 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14513 insn_is_jump to gdbarch.
14514 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14515 * gdbarch.h: Regenerated.
14516 * gdbarch.c: Regenerated.
14517 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14518 (default_insn_is_jump): New.
14519 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14520 (default_insn_is_jump): New.
14521
864089d2
MM
145222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14523
14524 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14525 Change to ...
14526 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14527 (btrace_read_type) <btrace_read_new>: Change to ...
14528 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14529
ed9edfb5
MM
145302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14531
14532 * common/linux-btrace.c (linux_read_btrace): Free trace from
14533 previous iteration.
14534
fbcbc3fd
DE
145352014-01-15 Doug Evans <dje@google.com>
14536
14537 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14538 uint32_t.
14539
3d548a53
TT
145402014-01-15 Tom Tromey <tromey@redhat.com>
14541
14542 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14543 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14544 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14545 (set_objfile_main_name): New function.
14546 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14547 language_of_main>: New fields.
14548 (set_objfile_main_name): Declare.
14549 * symtab.c (find_main_name): Loop over objfiles to find the main
14550 name and language.
14551 (set_main_name): Now static.
14552 (get_main_info): Add comment.
14553 * symtab.h (set_main_name): Don't declare.
14554
32ac0d11
TT
145552014-01-15 Tom Tromey <tromey@redhat.com>
14556
14557 * symtab.c (main_progspace_key): New global.
14558 (struct main_info): New.
14559 (name_of_main, language_of_main): Remove.
14560 (get_main_info, main_info_cleanup): New function.
14561 (set_main_name, main_name, main_language): Use get_main_info.
14562 (_initialize_symtab): Initialize main_progspace_key.
14563
9e6c82ad
TT
145642014-01-15 Tom Tromey <tromey@redhat.com>
14565
14566 * dbxread.c (process_one_symbol): Update.
14567 * dwarf2read.c (read_partial_die): Update.
14568 * symfile.c (set_initial_language): Call main_language.
14569 * symtab.c (language_of_main): Now static.
14570 (set_main_name): Add 'lang' parameter.
14571 (find_main_name): Update.
14572 (main_language): New function.
14573 (symtab_observer_executable_changed): Update.
14574 * symtab.h (set_main_name): Update.
14575 (language_of_main): Remove.
14576 (main_language): Declare.
14577
6ef55de7
TT
145782014-01-15 Tom Tromey <tromey@redhat.com>
14579
14580 * symfile.c (init_entry_point_info): Use new "initialized" field.
14581 Update.
14582 * objfiles.h (struct entry_point) <initialized>: New field.
14583 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14584 (struct objfile) <ei>: ...here. Remove.
14585 * objfiles.c (entry_point_address_query): Update.
14586
53eddfa6
TT
145872014-01-15 Tom Tromey <tromey@redhat.com>
14588
14589 * objfiles.c (entry_point_address_query): Relocate entry point
14590 address.
14591 (objfile_relocate1): Do not relocate entry point address.
14592 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14593 <the_bfd_section_index>: New field.
14594 * symfile.c (init_entry_point_info): Find the entry point's
14595 section.
14596
d56e56aa
TT
145972014-01-15 Tom Tromey <tromey@redhat.com>
14598
14599 * solib-frv.c (enable_break): Use entry_point_address_query.
14600
33a97bbe
OJ
146012014-01-15 Omair Javaid <omair.javaid@linaro.org>
14602
14603 * NEWS: Add note on improved process record-replay on
14604 arm*-linux* targets.
14605
c6ec2b30
OJ
146062014-01-15 Omair Javaid <omair.javaid@linaro.org>
14607
14608 * arm-tdep.c (enum arm_record_result): New enum.
14609 (arm_record_unsupported_insn): New function.
14610 (arm_record_coproc_data_proc): Removed.
14611 (thumb2_record_ld_st_multiple): New function.
14612 (thumb2_record_ld_st_dual_ex_tbb): New function.
14613 (thumb2_record_data_proc_sreg_mimm): New function.
14614 (thumb2_record_ps_dest_generic): New function.
14615 (thumb2_record_branch_misc_cntrl): New function.
14616 (thumb2_record_str_single_data): New function.
14617 (thumb2_record_ld_mem_hints): New function.
14618 (thumb2_record_ld_word): New function.
14619 (thumb2_record_lmul_lmla_div): New function.
14620 (thumb2_record_decode_insn_handler): New function.
14621 (decode_insn): Add thumb32 instruction handlers.
14622
97dfe206
OJ
146232014-01-15 Omair Javaid <omair.javaid@linaro.org>
14624
14625 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14626 (struct arm_linux_record_tdep): Declare.
14627 (arm_canonicalize_syscall): New function.
14628 (arm_all_but_pc_registers_record): New function.
14629 (arm_linux_syscall_record): New function.
14630 (arm_linux_init_abi): Add syscall recording constructs.
14631 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14632 decoding. (arm_record_coproc_data_proc): Update arm syscall
14633 decoding.
14634 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14635 <arm_syscall_record>: New field.
14636 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14637 gdb_target_obs.
14638
9904a494
OJ
146392014-01-15 Omair Javaid <omair.javaid@linaro.org>
14640
14641 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14642 register for push instruction recording.
14643
f969241e
OJ
146442014-01-15 Omair Javaid <omair.javaid@linaro.org>
14645
14646 * arm-tdep.c (thumb_record_misc): Update to correct logical
14647 error while recording ldm, ldmia and pop instructions.
14648
bfbbec00
OJ
146492014-01-15 Omair Javaid <omair.javaid@linaro.org>
14650
14651 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14652
e40adcc9
PA
146532014-01-15 Pedro Alves <palves@redhat.com>
14654
14655 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14656 (go32_resume, go32_fetch_registers, store_register)
14657 (go32_store_registers, go32_prepare_to_store)
14658 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14659 (go32_create_inferior, go32_can_run, go32_terminal_init)
14660 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14661 declarations.
14662
b0a16e66
TT
146632014-01-15 Tom Tromey <tromey@redhat.com>
14664
14665 * target.h (async_callback_ftype): New typedef.
14666 (struct target_ops) <to_async>: Use it.
14667
bf7105a4
JB
146682014-01-15 Joel Brobecker <brobecker@adacore.com>
14669
14670 * python/py-value.c (get_field_type): Remove unnecessary curly
14671 braces for single-statement if block.
14672
a8f35c2e
JB
146732014-01-15 Joel Brobecker <brobecker@adacore.com>
14674
14675 * python/py-type.c (convert_field): Add missing empty line
14676 after declarations.
14677
bb4142cf
DE
146782014-01-14 Doug Evans <dje@google.com>
14679
14680 * symfile.h (expand_symtabs_matching): Renamed from
14681 expand_partial_symbol_names. Update prototype.
14682 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14683 * symfile.c (expand_symtabs_matching): Renamed from
14684 expand_partial_symbol_names. New args file_matcher, kind.
14685 Rename arg fun to symbol_matcher.
14686 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14687 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14688 ada_expand_partial_symbol_name.
14689 (ada_make_symbol_completion_list): Update to call
14690 expand_symtabs_matching.
14691 (ada_add_global_exceptions): Call expand_symtabs_matching.
14692 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14693 call map_symbol_filenames.
14694 * symtab.c (sources_info): Update to call map_symbol_filenames.
14695 (search_symbols): Call expand_symtabs_matching.
14696 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14697 (default_make_symbol_completion_list_break_on): Update to call
14698 expand_symtabs_matching.
14699 (make_source_files_completion_list): Update to call
14700 map_symbol_filenames.
14701
206f2a57
DE
147022014-01-14 Doug Evans <dje@google.com>
14703
14704 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14705 (expand_symtabs_symbol_matcher_ftype): New typedef.
14706 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14707 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14708 * symfile.c (expand_partial_symbol_names): Update to use
14709 expand_symtabs_symbol_matcher_ftype.
14710 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14711 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14712 Arg name_matcher renamed to symbol_matcher.
14713 * psymtab.c (recursively_search_psymtabs): Update to use
14714 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14715 sym_matcher.
14716 (expand_symtabs_matching_via_partial): Update to use
14717 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14718 Arg name_matcher renamed to symbol_matcher.
14719
540c2971
DE
147202014-01-14 Doug Evans <dje@google.com>
14721
14722 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14723 (map_partial_symbol_filenames): Ditto.
14724 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14725 (map_partial_symbol_filenames): Ditto.
14726 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14727 (map_partial_symbol_filenames): Ditto.
14728 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14729 (map_partial_symbol_filenames): Ditto.
14730 * symtab.c: Delete #include "psymtab.h".
14731
8213266a
PA
147322014-01-14 Pedro Alves <palves@redhat.com>
14733 Tom Tromey <tromey@redhat.com>
14734
14735 * infrun.c (use_displaced_stepping): Use find_record_target
14736 instead of RECORD_IS_USED.
14737 (adjust_pc_after_break): Use record_full_is_used instead of
14738 RECORD_IS_USED.
14739 * record-btrace.c (record_btrace_open): Call record_preopen
14740 instead of checking RECORD_IS_USED.
14741 * record-full.c (record_full_shortname)
14742 (record_full_core_shortname): New globals.
14743 (record_full_is_used): New function.
14744 (find_full_open): Call record_preopen instead of checking
14745 RECORD_IS_USED.
14746 (init_record_full_ops): Set the target's shortname to
14747 record_full_shortname.
14748 (init_record_full_core_ops): Set the target's shortname to
14749 record_full_core_shortname.
14750 * record-full.h (record_full_is_used): Declare.
14751 * record.c (find_record_target): Make extern.
14752 (record_preopen): New function.
14753 * record.h (RECORD_IS_USED): Delete macro.
14754 (find_record_target, record_preopen): Declare functions.
14755
7ec1862d
YQ
147562014-01-14 Yao Qi <yao@codesourcery.com>
14757
14758 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14759 'len''s type to ULONGEST.
14760 (core_xfer_shared_libraries_aix): Likewise.
14761 * gdbarch.c, gdbarch.h: Regenerated.
14762 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14763 Change type of 'len' to ULONGEST.
14764 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14765 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14766
dea80a27
YQ
147672014-01-14 Yao Qi <yao@codesourcery.com>
14768
14769 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14770 type of 'len' to ULONGEST.
14771 (linux_xfer_osdata_processgroups): Likewise.
14772 (linux_xfer_osdata_threads): Likewise.
14773 (linux_xfer_osdata_fds): Likewise.
14774 (linux_xfer_osdata_isockets): Likewise.
14775 (linux_xfer_osdata_shm): Likewise.
14776 (linux_xfer_osdata_sem): Likewise.
14777 (linux_xfer_osdata_msg): Likewise.
14778 (linux_common_xfer_osdata): Likewise.
14779 (struct osdata_type) <getter>: Likewise.
14780 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14781 the declaration.
14782
b55e14c7
YQ
147832014-01-14 Yao Qi <yao@codesourcery.com>
14784
14785 * target.h (target_xfer_partial_ftype): Update.
14786 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14787 ULONGEST.
14788 * aix-thread.c (aix_thread_xfer_partial): Change type of
14789 argument 'len' to ULONGEST.
14790 * auxv.c (procfs_xfer_auxv): Likewise.
14791 (ld_so_xfer_auxv): Likewise.
14792 (memory_xfer_auxv): Likewise.
14793 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14794 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14795 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14796 * corelow.c (core_xfer_partial): Likewise.
14797 * ctf.c (ctf_xfer_partial): Likewise.
14798 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14799 '%u'.
14800 (darwin_read_dyld_info): Likewise.
14801 (darwin_xfer_partial): Likewise.
14802 * exec.c (section_table_xfer_memory_partial): Likewise.
14803 (exec_xfer_partial): Likewise.
14804 * exec.h (section_table_xfer_memory_partial): Update
14805 declaration.
14806 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14807 instead of plongest.
14808 (gnu_xfer_partial): Likewise.
14809 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14810 (ia64_hpux_xfer_solib_got): Likewise.
14811 (ia64_hpux_xfer_partial): Likewise.
14812 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14813 * inf-ptrace.c (inf_ptrace_xfer_partial):
14814 * inf-ttrace.c (inf_ttrace_xfer_partial):
14815 * linux-nat.c (linux_xfer_siginfo): Likewise.
14816 (linux_nat_xfer_partial): Likewise.
14817 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14818 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14819 * monitor.c (monitor_xfer_memory): Likewise.
14820 (monitor_xfer_partial): Likewise.
14821 * procfs.c (procfs_xfer_partial): Likewise.
14822 * record-full.c (record_full_xfer_partial): Likewise.
14823 (record_full_core_xfer_partial): Likewise.
14824 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14825 instead of plongest.
14826 (gdbsim_xfer_partial): Likewise.
14827 * remote.c (remote_xfer_partial): Likewise.
14828 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14829 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14830 declaration.
14831 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14832 (rs6000_xfer_shared_libraries): Likewise.
14833 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14834 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14835 (sparc_xfer_partial): Likewise.
14836 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14837 (spu_xfer_partial): Likewise.
14838 * spu-multiarch.c (spu_xfer_partial): Likewise.
14839 * target.c (target_read_live_memory): Likewise.
14840 (memory_xfer_live_readonly_partial): Likewise.
14841 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14842 (target_xfer_partial, default_xfer_partial): Likewise.
14843 (current_xfer_partial): Likewise.
14844 * tracepoint.c (tfile_xfer_partial): Likewise.
14845 * windows-nat.c (windows_xfer_memory): Likewise. Call
14846 pulongest instead of plongest.
14847 (windows_xfer_partial): Likewise.
14848 (windows_xfer_shared_libraries): Likewise.
14849
05804640
YQ
148502014-01-14 Yao Qi <yao@codesourcery.com>
14851
14852 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14853 target_xfer_partial_ftype.
14854
b5b08fb4
SC
148552014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14856
14857 PR python/15464
14858 PR python/16113
14859 * valops.c (value_struct_elt_bitpos): New function
14860 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14861 object to 'None' if the field name is an empty string ("").
14862 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14863 attribute to look for a field when 'name' is 'None'.
14864 (get_field_type): New function
14865
13aaf454
DE
148662014-01-13 Doug Evans <dje@google.com>
14867
14868 PR symtab/16426
14869 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14870 (try_open_dwop_file): Ditto.
14871 * gdb_bfd.c: #include "vec.h".
14872 (bfdp): New typedef.
14873 (struct gdb_bfd_data): New member included_bfds.
14874 (gdb_bfd_unref): Unref all included bfds.
14875 (gdb_bfd_record_inclusion): New function.
14876 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14877
c2cec97c
TT
148782014-01-13 Tom Tromey <tromey@redhat.com>
14879
14880 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14881
78e5999d
TT
148822014-01-13 Tom Tromey <tromey@redhat.com>
14883
14884 * defs.h (use_windows): Remove.
14885 * gdb.c (main): Update.
14886 * main.c (captured_main, gdb_main): Update.
14887 * main.h (struct captured_main_args) <use_windows>: Remove.
14888 * top.c (use_windows): Remove.
14889
f2052bbe
TT
148902014-01-13 Tom Tromey <tromey@redhat.com>
14891
14892 * defs.h (deprecated_flush_hook): Remove.
14893
fde4f8ed
JK
148942014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14895
14896 PR threads/16216
14897 * linux-thread-db.c (try_thread_db_load): Add parameter
14898 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14899 (try_thread_db_load_from_pdir_1): Move it there from here.
14900 (try_thread_db_load_from_sdir): Update caller.
14901 (try_thread_db_load_from_dir): Move it there from here.
14902
bdf61915
PP
149032014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14904
14905 * regformats/regdat.sh: Always rewrite the register file.
14906
f71e1a8d
PA
149072014-01-13 Pedro Alves <palves@redhat.com>
14908
14909 * Makefile.in (CHECK_HEADERS): New variable.
14910 (check-headers:): New rule.
14911
42c85435
TT
149122014-01-13 Tom Tromey <tromey@redhat.com>
14913
14914 * cli/cli-setshow.c (do_set_command): Update.
14915 * defs.h (deprecated_set_hook): Remove.
14916 * top.c (deprecated_set_hook): Remove.
14917
f8de5129
PA
149182014-01-13 Pedro Alves <palves@redhat.com>
14919
14920 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14921 the tracepoint if the PC is a pseudo-register.
14922
fc270c35
TT
149232014-01-13 Tom Tromey <tromey@redhat.com>
14924
14925 * defs.h (XCALLOC): Remove.
14926 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14927 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14928 * dwarf2loc.c (allocate_piece_closure): Likewise.
14929 * elfread.c (elf_symfile_segments): Likewise.
14930 (elf_symfile_segments): Likewise.
14931 * gdbtypes.c (copy_type_recursive): Likewise.
14932 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14933 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14934 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14935 XCALLOC.
14936 * mt-tdep.c (mt_gdbarch_init): Likewise.
14937 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14938 XCALLOC.
14939 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14940 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14941 * registry.c (registry_alloc_data): Likewise.
14942 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14943 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14944 * serial.c (serial_fdopen_ops): Likewise.
14945 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14946 XCALLOC.
14947 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14948 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14949 not XCALLOC.
14950
70ba0933
TT
149512014-01-13 Tom Tromey <tromey@redhat.com>
14952
14953 * defs.h (XMALLOC): Remove.
14954 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14955 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14956 * cli-out.c (struct ui_out *): Likewise.
14957 * cli/cli-dump.c (add_dump_command): Likewise.
14958 (add_dump_command): Likewise.
14959 * complaints.c (get_complaints): Likewise.
14960 (find_complaint): Likewise.
14961 * dwarf2-frame.c (execute_cfa_program): Likewise.
14962 * dwarf2read.c (abbrev_table_read_table): Likewise.
14963 * gdbarch.sh: Likewise.
14964 * gdbarch.c: Rebuild.
14965 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14966 * interps.c (interp_new): Likewise.
14967 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14968 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14969 * mi/mi-console.c (mi_console_file_new): Likewise.
14970 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14971 * mi/mi-out.c (mi_out_new): Likewise.
14972 * mi/mi-parse.c (mi_parse): Likewise.
14973 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14974 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14975 * observer.c (xalloc_observer_list_node): Likewise.
14976 * regcache.c (regcache_xmalloc_1): Likewise.
14977 * reggroups.c (reggroup_new): Likewise.
14978 (_initialize_reggroup): Likewise.
14979 * registry.c (register_data_with_cleanup): Likewise.
14980 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14981 * ser-base.c (serial_ttystate): Likewise.
14982 * ser-mingw.c (make_pipe_state): Likewise.
14983 * ser-pipe.c (pipe_open): Likewise.
14984 * serial.c (serial_open): Likewise.
14985 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14986 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14987 (tui_alloc_win_info): Likewise.
14988 (tui_add_content_elements): Likewise.
14989 * tui/tui-file.c (tui_file_new): Likewise.
14990 * tui/tui-out.c (tui_out_new): Likewise.
14991 * ui-file.c (mem_file_new): Likewise.
14992 * ui-out.c (push_level): Likewise.
14993 (make_cleanup_ui_out_end): Likewise.
14994 (append_header_to_list): Likewise.
14995 (ui_out_new): Likewise.
14996 * user-regs.c (user_reg_add_builtin): Likewise.
14997
41bf6aca
TT
149982014-01-13 Tom Tromey <tromey@redhat.com>
14999
15000 * defs.h (XZALLOC): Remove.
15001 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15002 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15003 (get_ada_tasks_inferior_data): Likewise.
15004 * auto-load.c (get_auto_load_pspace_data): Likewise.
15005 * auxv.c (get_auxv_inferior_data): Likewise.
15006 * bfd-target.c (target_bfd_reopen): Likewise.
15007 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15008 (deprecated_insert_raw_breakpoint): Likewise.
15009 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15010 * corelow.c (core_open): Likewise.
15011 * darwin-nat.c (darwin_check_new_threads): Likewise.
15012 (darwin_attach_pid): Likewise.
15013 * dummy-frame.c (dummy_frame_push): Likewise.
15014 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15015 * dwarf2loc.c (allocate_piece_closure): Likewise.
15016 * elfread.c (elf_symfile_segments): Likewise.
15017 * eval.c (ptrmath_type_p): Likewise.
15018 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15019 * gdbtypes.c (alloc_type_arch): Likewise.
15020 (alloc_type_instance): Likewise.
15021 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15022 * inf-child.c (inf_child_can_use_agent): Likewise.
15023 * inflow.c (get_inflow_inferior_data): Likewise.
15024 * infrun.c (save_infcall_suspend_state): Likewise.
15025 * jit.c (jit_reader_load): Likewise.
15026 (get_jit_objfile_data): Likewise.
15027 (get_jit_program_space_data): Likewise.
15028 (jit_object_open_impl): Likewise.
15029 (jit_symtab_open_impl): Likewise.
15030 (jit_block_open_impl): Likewise.
15031 (jit_frame_sniffer): Likewise.
15032 * linux-fork.c (add_fork): Likewise.
15033 * maint.c (make_command_stats_cleanup): Likewise.
15034 * objfiles.c (get_objfile_pspace_data): Likewise.
15035 * opencl-lang.c (struct lval_closure): Likewise.
15036 * osdata.c (osdata_start_osdata): Likewise.
15037 * progspace.c (new_address_space): Likewise.
15038 (add_program_space): Likewise.
15039 * remote-sim.c (get_sim_inferior_data): Likewise.
15040 * sh-tdep.c (sh_gdbarch_init): Likewise.
15041 * skip.c (Ignore): Likewise.
15042 (skip_delete_command): Likewise.
15043 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15044 (library_list_start_library): Likewise.
15045 (solib_aix_current_sos): Likewise.
15046 * solib-darwin.c (get_darwin_info): Likewise.
15047 (darwin_current_sos): Likewise.
15048 * solib-dsbt.c (get_dsbt_info): Likewise.
15049 * solib-ia64-hpux.c (new_so_list): Likewise.
15050 (ia64_hpux_get_solib_linkage_addr): Likewise.
15051 * solib-spu.c (append_ocl_sos): Likewise.
15052 (spu_current_sos): Likewise.
15053 * solib-svr4.c (get_svr4_info): Likewise.
15054 (svr4_keep_data_in_core): Likewise.
15055 (library_list_start_library): Likewise.
15056 (svr4_default_sos): Likewise.
15057 (svr4_read_so_list): Likewise.
15058 * solib-target.c (library_list_start_library): Likewise.
15059 (solib_target_current_sos): Likewise.
15060 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15061 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15062 * symfile.c (default_symfile_segments): Likewise.
15063 * target-descriptions.c (tdesc_data_init): Likewise.
15064 (tdesc_create_reg): Likewise.
15065 (struct tdesc_type *): Likewise.
15066 (tdesc_create_vector): Likewise.
15067 (tdesc_set_struct_size): Likewise.
15068 (struct tdesc_type *): Likewise.
15069 (tdesc_free_feature): Likewise.
15070 (tdesc_create_feature): Likewise.
15071 * windows-nat.c (windows_add_thread): Likewise.
15072 (windows_make_so): Likewise.
15073 * xml-support.c (gdb_xml_body_text): Likewise.
15074 (gdb_xml_create_parser_and_cleanup): Likewise.
15075 (xml_process_xincludes): Likewise.
15076 * xml-syscall.c (allocate_syscalls_info): Likewise.
15077 (syscall_create_syscall_desc): Likewise.
15078
5acfdbae
SDJ
150792014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15080
15081 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15082 function, with code from i386_stap_parse_special_token.
15083 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15084 (i386_stap_parse_special_token): Move code to the two functions
15085 above; simplify it.
15086
0000e5cc
PA
150872014-01-09 Pedro Alves <palves@redhat.com>
15088 Hui Zhu <hui@codesourcery.com>
15089
15090 PR gdb/16101
15091 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15092 bp_err_string. Don't mark the location shlib_disabled if the
15093 error thrown wasn't a generic or memory error. Catch errors
15094 thrown while inserting breakpoints in overlayed code. Output
15095 error message of software breakpoints.
15096 * remote.c (remote_insert_breakpoint): If this breakpoint has
15097 target-side commands but this stub doesn't support Z0 packets,
15098 throw NOT_SUPPORTED_ERROR error.
15099 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15100 * target.h (target_insert_breakpoint): Extend comment.
15101 (target_insert_hw_breakpoint): Add comment.
15102
b7ea362b
PA
151032014-01-08 Pedro Alves <palves@redhat.com>
15104
15105 * remote.c (remote_add_thread): Add threads silently if starting
15106 up.
15107 (remote_notice_new_inferior): If in all-stop, and starting up,
15108 don't call notice_new_inferior.
15109 (get_current_thread): New function, factored out from ...
15110 (add_current_inferior_and_thread): ... this. Adjust.
15111 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15112 found any thread, then select the remote's current thread as GDB's
15113 current thread too.
15114
b7bba001
JB
151152014-01-08 Joel Brobecker <brobecker@adacore.com>
15116
15117 * NEWS: Create a new section for the next release branch.
15118 Rename the section of the current branch, now that it has
15119 been cut.
15120
16dfbded
JB
151212014-01-08 Joel Brobecker <brobecker@adacore.com>
15122
15123 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15124 * version.in: Bump version to 7.7.50.DATE-cvs.
15125
22c90ac1
YQ
151262014-01-08 Yao Qi <yao@codesourcery.com>
15127
15128 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15129 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15130 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15131
d64ad97c
YQ
151322014-01-08 Yao Qi <yao@codesourcery.com>
15133
15134 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15135 return value of bfd_get_filename to symbol_file_add_from_bfd.
15136
f93ba80c
PM
151372014-01-08 Pierre Muller <muller@sourceware.org>
15138
15139 Fix PR16201.
15140 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15141 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15142 to prim_record_mininal_symbol_and_info.
15143 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15144 in call to prim_record_minimal_symbol_and_info.
15145 (read_pe_exported_syms): Set index field of section_data.
15146
a4d9ba85
AP
151472014-01-07 Andrew Pinski <apinski@cavium.com>
15148
15149 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15150 * features/aarch64.c: Regenerate.
15151
1b67eb02
AS
151522014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15153
15154 * target.c (return_null): Define.
15155 (update_current_target): Use it instead of return_zero for
15156 functions that return a pointer.
15157
5e3f4fab
EBM
151582014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15159
15160 * source.c (add_path): Fix check for duplicated paths in the previously
15161 included paths.
15162
e2616788
HK
151632014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15164
15165 * ada-lang.c: Remove duplicated include statements.
15166 * alphabsd-nat.c: Ditto.
15167 * amd64-darwin-tdep.c: Ditto.
15168 * amd64fbsd-nat.c: Ditto.
15169 * auto-load.c: Ditto.
15170 * ax-gdb.c: Ditto.
15171 * breakpoint.c: Ditto.
15172 * dbxread.c: Ditto.
15173 * fork-child.c: Ditto.
15174 * gdb_usleep.c: Ditto.
15175 * i386-darwin-tdep.c: Ditto.
15176 * i386fbsd-nat.c: Ditto.
15177 * infcmd.c: Ditto.
15178 * inferior.c: Ditto.
15179 * jv-lang.c: Ditto.
15180 * linux-nat.c: Ditto.
15181 * linux-tdep.c: Ditto.
15182 * m68kbsd-nat.c: Ditto.
15183 * m68klinux-nat.c: Ditto.
15184 * microblaze-tdep.c: Ditto.
15185 * mips-linux-tdep.c: Ditto.
15186 * mn10300-tdep.c: Ditto.
15187 * nto-tdep.c: Ditto.
15188 * opencl-lang.c: Ditto.
15189 * osdata.c: Ditto.
15190 * printcmd.c: Ditto.
15191 * regcache.c: Ditto.
15192 * remote-m32r-sdi.c: Ditto.
15193 * remote.c: Ditto.
15194 * symfile.c: Ditto.
15195 * symtab.c: Ditto.
15196 * tilegx-linux-nat.c: Ditto.
15197 * tilegx-tdep.c: Ditto.
15198 * tracepoint.c: Ditto.
15199 * valops.c: Ditto.
15200 * vaxbsd-nat.c: Ditto.
15201 * windows-nat.c: Ditto.
15202 * xtensa-tdep.c: Ditto.
15203
bd1f7788
YQ
152042014-01-07 Yao Qi <yao@codesourcery.com>
15205
15206 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15207
79301218
JB
152082014-01-07 Yao Qi <yao@codesourcery.com>
15209 Joel Brobecker <brobecker@adacore.com>
15210
15211 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15212 (pdc_write_regs): Likewise.
15213 (fetch_regs_kernel_thread): Likewise.
15214 (store_regs_kernel_thread): Likewise.
15215
152162014-01-07 Joel Brobecker <brobecker@adacore.com>
15217
15218 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15219 tagged type objects to their actual type.
15220
8e355c5d
JB
152212014-01-07 Joel Brobecker <brobecker@adacore.com>
15222
15223 * ada-valprint.c (print_field_values): Add "language" parameter.
15224 Update calls to print_field_values and print_variant_part.
15225 Pass new parameter "language" in call to val_print instead
15226 of "current_language". Replace call to ada_val_print by call
15227 to val_print.
15228 (print_variant_part): Add "language" parameter.
15229 (ada_val_print_struct_union): Update call to print_field_values.
15230
4fbf5aa5
JB
152312014-01-07 Joel Brobecker <brobecker@adacore.com>
15232
15233 * ada-valprint.c (ui_memcpy): Delete.
15234 (ada_print_floating): Update documentation. Add empty line
15235 between between function documentation and implementation.
15236 Delete variable "buffer". Use ui_file_xstrdup in place of
15237 ui_file_put. Minor adjustments following this change.
15238
71855601
JB
152392014-01-07 Joel Brobecker <brobecker@adacore.com>
15240
15241 * ada-valprint.c (ada_val_print_string): New function,
15242 extracted from ada_val_print_array.
15243 (ada_val_print_array): Replace extracted code by call
15244 to ada_val_print_string followed by a return. Move
15245 "else" branch to the function's top block.
15246
4eb27a30
JB
152472014-01-07 Joel Brobecker <brobecker@adacore.com>
15248
15249 * ada-valprint.c (ada_val_print_array): Move implementation
15250 down. Rename parameter "offset" and "val" into "offset_aligned"
15251 and "original_value" respectively. Add parameter "offset".
15252
34b27950
JB
152532014-01-07 Joel Brobecker <brobecker@adacore.com>
15254
15255 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15256 re-organizing the code. Change the "???" message printed
15257 when target type is a TYPE_CODE_UNDEF into
15258 "<ref to undefined type>".
15259
079e4591
JB
152602014-01-07 Joel Brobecker <brobecker@adacore.com>
15261
15262 * ada-valprint.c (print_record): Delete, implementation inlined...
15263 (ada_val_print_struct_union): ... here. Remove call to
15264 ada_check_typedef in inlined implementation.
15265
8004dfd1
JB
152662014-01-07 Joel Brobecker <brobecker@adacore.com>
15267
15268 * ada-valprint.c (ada_val_print_gnat_array): New function,
15269 extracted from ada_val_print_1;
15270 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15271 (ada_val_print_flt, ada_val_print_struct_union)
15272 (ada_val_print_ref): Likewise.
15273 (ada_val_print_1): Delete variables i and elttype.
15274 Replace extracted-out code by call to corresponding
15275 new functions.
15276
760a2db0
JB
152772014-01-07 Joel Brobecker <brobecker@adacore.com>
15278
15279 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15280
3a92c861
JB
152812014-01-07 Joel Brobecker <brobecker@adacore.com>
15282
15283 * ada-valprint.c (ada_val_print_1): Replace calls to
15284 ada_val_print_1 by calls to val_print.
15285
cd1630f9
JB
152862014-01-07 Joel Brobecker <brobecker@adacore.com>
15287
15288 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15289 Update calls to self accordingly. Replace calls to c_val_print
15290 by calls to val_print.
15291
bdf779a0
JB
152922014-01-07 Joel Brobecker <brobecker@adacore.com>
15293
15294 * ada-valprint.c (print_record): Delete declaration.
15295 (adjust_type_signedness, ada_val_print_1): Likewise.
15296 (ada_val_print): Move function implementation down.
15297 (print_variant_part, print_field_values, print_record):
15298 Move function implementation up.
15299
c0d48811
JB
153002014-01-07 Joel Brobecker <brobecker@adacore.com>
15301
15302 * python/py-type.c (typy_get_name): New function.
15303 (type_object_getset): Add entry for attribute "name".
15304 * NEWS: Add entry mentioning this new attribute.
15305
c26e9cbb
YQ
153062014-01-07 Yao Qi <yao@codesourcery.com>
15307
15308 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15309 statement.
15310
0cc6f43d
YQ
153112014-01-07 Yao Qi <yao@codesourcery.com>
15312
15313 * gnu-nat.c (info_port_rights): Add qualifier const to
15314 argument args.
15315
eec03155
YQ
153162014-01-07 Yao Qi <yao@codesourcery.com>
15317
15318 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15319
f04a82ef
YQ
153202014-01-07 Yao Qi <yao@codesourcery.com>
15321
15322 * gnu-nat.c (make_inf) Update declaration.
15323 (make_inf): Make it static.
15324 (inf_set_traced): Likewise.
15325 (inf_port_to_thread, inf_task_died_status): Likewise.
15326
d57dda0a
YQ
153272014-01-07 Yao Qi <yao@codesourcery.com>
15328
15329 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15330
3aa8c969
YQ
153312014-01-07 Yao Qi <yao@codesourcery.com>
15332
15333 * gnu-nat.c (_initialize_gnu_nat): Declare.
15334
94123b4f
YQ
153352014-01-07 Yao Qi <yao@codesourcery.com>
15336
15337 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15338 'enum bfd_endian'.
15339 (struct gdbarch_info) <byte_order>: Change type to
15340 'enum bfd_endian'.
15341 <byte_order_for_code>: Likewise.
15342 * gdbarch.c, gdbarch.h: Regenerated.
15343
dc81d70a
TT
153442014-01-06 Sasha Smundak <asmundak@google.com>
15345
15346 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15347
cc2f3c35
TT
153482014-01-06 Tom Tromey <tromey@redhat.com>
15349
15350 * doublest.c (convert_doublest_to_floatformat): Use const, not
15351 CONST.
15352 * somread.c (som_symtab_read): Likewise.
15353
adcf2eed
HZ
153542014-01-07 Hui Zhu <hui@codesourcery.com>
15355
15356 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15357 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15358 (gdb_bfd_fopen): Ditto.
15359 (gdb_bfd_openr): Ditto.
15360 (gdb_bfd_openw): Ditto.
15361 (gdb_bfd_openr_iovec): Ditto.
15362 (gdb_bfd_fdopenr): Ditto.
15363 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15364 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15365 with xstrdup.
15366 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15367 with xstrdup.
15368 * symfile-mem.c (symbol_file_add_from_memory): Removed
15369 gdb_bfd_stash_filename.
15370
50722198
DE
153712014-01-03 Doug Evans <dje@google.com>
15372
15373 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15374 output.
15375
2fa4b862
JB
153762014-01-01 Joel Brobecker <brobecker@adacore.com>
15377
15378 Update year range in copyright notice of all files.
15379
28498c42
JB
153802014-01-01 Joel Brobecker <brobecker@adacore.com>
15381
15382 * top.c (print_gdb_version): Set copyright year to 2014.
15383
7b6e1046
JB
153842014-01-01 Joel Brobecker <brobecker@adacore.com>
15385
15386 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15387
df96af55 15388For older changes see ChangeLog-2013.
c906108c
SS
15389\f
15390Local Variables:
15391mode: change-log
15392left-margin: 8
15393fill-column: 74
15394version-control: never
57da7796 15395coding: utf-8
c906108c 15396End: