1 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
3 Pushed by Joel Brobecker <brobecker@adacore.com>
4 * linux-fork.c (checkpoint_command): Print index of new
5 checkpoint in response message.
7 2014-11-23 Yao Qi <yao@codesourcery.com>
9 * valprint.c (read_string): Move local variables 'found_nul',
10 'chunksize' and 'limit' to inner scope. Update comments.
12 2014-11-22 Doug Evans <xdje42@gmail.com>
14 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
16 (search_symbols): Fix comments and whitespace.
18 2014-11-22 Doug Evans <xdje42@gmail.com>
20 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
22 2014-11-21 Doug Evans <dje@google.com>
24 * psymtab.c (psymtab_search_name): Fix whitespace.
26 2014-11-21 Yao Qi <yao@codesourcery.com>
28 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
30 * gnulib/import/Makefile.am: Re-generated.
31 * gnulib/import/Makefile.in: Likewise.
32 * gnulib/import/m4/gnulib-cache.m4: Likewise.
34 2014-11-21 Yao Qi <yao@codesourcery.com>
36 * gdb_wchar.h: Include wchar.h and wctype.h.
37 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
38 include wchar.h and wctype.h.
39 Don't check HAVE_WCHAR_H.
41 2014-11-21 Yao Qi <yao@codesourcery.com>
43 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
45 * gnulib/import/Makefile.am: Re-generated.
46 * gnulib/import/Makefile.in: Likewise.
47 * gnulib/import/m4/gnulib-cache.m4: Likewise.
49 2014-11-21 Yao Qi <yao@codesourcery.com>
51 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
53 * gnulib/import/Makefile.am: Re-generated.
54 * gnulib/import/Makefile.in: Likewise.
55 * gnulib/import/m4/gnulib-cache.m4: Likewise.
57 2014-11-21 Yao Qi <yao@codesourcery.com>
59 * common/common-defs.h: Include alloca.h
60 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
61 * configure: Re-generated.
62 * defs.h: Remove code handling alloca.
63 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
66 2014-11-21 Yao Qi <yao@codesourcery.com>
68 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
70 * gnulib/import/Makefile.am: Re-generated.
71 * gnulib/import/Makefile.in: Likewise..
72 * gnulib/import/m4/gnulib-cache.m4: Likewise.
74 2014-11-21 Yao Qi <yao@codesourcery.com>
76 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
79 2014-11-21 Joel Brobecker <brobecker@adacore.com>
81 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
82 flag_unsigned if HIGH_BOUND is constant and negative.
84 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
87 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
88 modifier from "struct gdbarch" when compiling without Expat (XML)
90 (get_syscall_by_number): Likewise.
91 (get_syscall_by_name): Likewise.
92 (get_syscall_names): Likewise.
94 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
97 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
98 set_xml_syscall_file_name to provide gdbarch.
99 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
100 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
101 * breakpoint.c (print_it_catch_syscall): Adjust call to
102 get_syscall_by_number to provide gdbarch.
103 (print_one_catch_syscall): Likewise.
104 (print_mention_catch_syscall): Likewise.
105 (print_recreate_catch_syscall): Likewise.
106 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
107 and get_syscall_by_name to provide gdbarch.
108 (catch_syscall_completer): Adjust call to get_syscall_names to
110 * gdbarch.c: Regenerate.
111 * gdbarch.h: Likewise.
112 * gdbarch.sh: Forward declare "struct syscalls_info".
113 (xml_syscall_file): New variable.
114 (syscalls_info): Likewise.
115 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
116 set_xml_syscall_file_name to provide gdbarch.
117 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
118 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
119 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
120 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
121 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
122 * xml-syscall.c: Include gdbarch.h.
123 (set_xml_syscall_file_name): Accept gdbarch parameter.
124 (get_syscall_by_number): Likewise.
125 (get_syscall_by_name): Likewise.
126 (get_syscall_names): Likewise.
127 (my_gdb_datadir): Delete global variable.
128 (struct syscalls_info) <my_gdb_datadir>: New variable.
129 (struct syscalls_info) <sysinfo>: Rename variable to
131 (sysinfo): Delete global variable.
132 (have_initialized_sysinfo): Likewise.
133 (xml_syscall_file): Likewise.
134 (sysinfo_free_syscalls_desc): Rename to...
135 (syscalls_info_free_syscalls_desc): ... this.
136 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
137 code to the new layout of "struct syscalls_info".
138 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
140 (syscall_create_syscall_desc): Likewise.
141 (syscall_start_syscall): Likewise.
142 (syscall_parse_xml): Likewise.
143 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
144 (init_sysinfo): Rename to...
145 (init_syscalls_info): ...this. Add gdbarch as a parameter.
146 Adjust function to deal with gdbarch.
147 (xml_get_syscall_number): Delete parameter sysinfo. Accept
148 gdbarch as a parameter. Adjust code.
149 (xml_get_syscall_name): Likewise.
150 (xml_list_of_syscalls): Likewise.
151 (set_xml_syscall_file_name): Accept gdbarch as parameter.
152 (get_syscall_by_number): Likewise.
153 (get_syscall_by_name): Likewise.
154 (get_syscall_names): Likewise.
155 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
156 (get_syscall_by_number): Likewise.
157 (get_syscall_by_name): Likewise.
158 (get_syscall_names): Likewise.
160 2014-11-20 Doug Evans <xdje42@gmail.com>
162 Split struct symtab into two: struct symtab and compunit_symtab.
163 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
164 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
165 to "struct compunit_symtab *". All callers updated.
166 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
167 "struct symtab *" argument to "struct compunit_symtab *".
169 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
170 result to "struct compunit_symtab *". All callers updated.
171 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
172 Change result to "struct compunit_symtab *". All callers updated.
173 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
174 hange type to "struct compunit_symtab *". All uses updated.
175 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
176 Change type to "struct compunit_symtab *". All uses updated.
177 * buildsym.c (struct buildsym_compunit): New struct.
178 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
179 (buildsym_compunit): New static global.
180 (finish_block_internal): Update to fetch objfile from
182 (make_blockvector): Delete objfile argument.
183 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
184 debugformat, producer.
185 (start_buildsym_compunit): New function.
186 (free_buildsym_compunit): Renamed from free_subfiles_list.
188 (patch_subfile_names): Rewrite to use buildsym_compunit.
189 (get_compunit_symtab): New function.
190 (get_macro_table): Delete argument comp_dir. All callers updated.
191 (start_symtab): Change result to "struct compunit_symtab *".
192 All callers updated. Create the subfile of the main source file.
193 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
194 (reset_symtab_globals): Update.
195 (end_symtab_get_static_block): Update to use buildsym_compunit.
196 (end_symtab_without_blockvector): Rewrite.
197 (end_symtab_with_blockvector): Change result to
198 "struct compunit_symtab *". All callers updated.
199 Update to use buildsym_compunit. Don't set symtab->dirname,
200 instead set it in the compunit.
201 Explicitly make sure main symtab is first in its list.
202 Set debugformat, producer, blockvector, block_line_section, and
203 macrotable in the compunit.
204 (end_symtab_from_static_block): Change result to
205 "struct compunit_symtab *". All callers updated.
206 (end_symtab, end_expandable_symtab): Ditto.
207 (set_missing_symtab): Change symtab argument to
208 "struct compunit_symtab *". All callers updated.
209 (augment_type_symtab): Ditto.
210 (record_debugformat): Update to use buildsym_compunit.
211 (record_producer): Update to use buildsym_compunit.
212 * buildsym.h (struct subfile) <dirname>: Delete.
213 <producer, debugformat>: Delete.
214 <buildsym_compunit>: New member.
215 (get_compunit_symtab): Declare.
216 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
217 from primary_symtab. Change type to "struct compunit_symtab *".
219 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
221 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
222 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
223 symtab. Change type to "struct compunit_symtab *". All uses updated.
224 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
226 (dw2_find_last_source_symtab): Ditto.
227 (dw2_lookup_symbol): Ditto.
228 (recursively_find_pc_sect_compunit_symtab): Renamed from
229 recursively_find_pc_sect_symtab. Change result to
230 "struct compunit_symtab *". All callers updated.
231 (dw2_find_pc_sect_compunit_symtab): Renamed from
232 dw2_find_pc_sect_symtab. Change result to
233 "struct compunit_symtab *". All callers updated.
234 (get_compunit_symtab): Renamed from get_symtab. Change result to
235 "struct compunit_symtab *". All callers updated.
236 (recursively_compute_inclusions): Change type of immediate_parent
237 argument to "struct compunit_symtab *". All callers updated.
238 (compute_compunit_symtab_includes): Renamed from
239 compute_symtab_includes. All callers updated. Rewrite to compute
240 includes of compunit_symtabs and not symtabs.
241 (process_full_comp_unit): Update to work with struct compunit_symtab.
242 (process_full_type_unit): Ditto.
243 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
244 (dwarf_decode_lines): Remove special case handling of main subfile.
245 (macro_start_file): Delete argument comp_dir. All callers updated.
246 (dwarf_decode_macro_bytes): Ditto.
247 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
248 use struct compunit_symtab.
249 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
250 * jit.c (finalize_symtab): Build compunit_symtab.
251 * jv-lang.c (get_java_class_symtab): Change result to
252 "struct compunit_symtab *". All callers updated.
253 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
254 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
255 comp_dir. Change type to "struct compunit_symtab *".
257 (new_macro_table): Change comp_dir argument to cust,
258 "struct compunit_symtab *". All callers updated.
259 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
260 nr_primary_symtabs. All uses updated.
261 (count_symtabs_and_blocks): Update to handle compunits.
262 (report_command_stats): Update output, "primary symtabs" renamed to
264 * mdebugread.c (new_symtab): Change result to
265 "struct compunit_symtab *". All callers updated.
266 (parse_procedure): Change type of search_symtab argument to
267 "struct compunit_symtab *". All callers updated.
268 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
270 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
271 symtabs. Change type to "struct compunit_symtab *". All uses updated.
272 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
274 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
276 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
277 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
278 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
279 symtab. Change type to "struct compunit_symtab *". All uses updated.
280 * psymtab.c (psymtab_to_symtab): Change result type to
281 "struct compunit_symtab *". All callers updated.
282 (find_pc_sect_compunit_symtab_from_partial): Renamed from
283 find_pc_sect_symtab_from_partial. Change result type to
284 "struct compunit_symtab *". All callers updated.
285 (lookup_symbol_aux_psymtabs): Change result type to
286 "struct compunit_symtab *". All callers updated.
287 (find_last_source_symtab_from_partial): Ditto.
288 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
289 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
290 and macro_table from compunit.
291 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
292 type to "struct compunit_symtab *". All callers updated.
293 (debug_qf_lookup_symbol): Ditto.
294 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
295 debug_qf_find_pc_sect_symtab, change result type to
296 "struct compunit_symtab *". All callers updated.
297 * symfile.c (allocate_symtab): Delete objfile argument.
299 (allocate_compunit_symtab): New function.
300 (add_compunit_symtab_to_objfile): New function.
301 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
302 Change result type to "struct compunit_symtab *". All uses updated.
303 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
304 Change result type to "struct compunit_symtab *". All uses updated.
305 * symmisc.c (print_objfile_statistics): Compute blockvector count in
307 (dump_symtab_1): Update test for primary source symtab.
308 (maintenance_info_symtabs): Update to handle compunit symtabs.
309 (maintenance_check_symtabs): Ditto.
310 * symtab.c (set_primary_symtab): Delete.
311 (compunit_primary_filetab): New function.
312 (compunit_language): New function.
313 (iterate_over_some_symtabs): Change type of arguments "first",
314 "after_last" to "struct compunit_symtab *". All callers updated.
315 Update to loop over symtabs in each compunit.
316 (error_in_psymtab_expansion): Rename symtab argument to cust,
317 and change type to "struct compunit_symtab *". All callers updated.
318 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
319 Change result type to "struct compunit_symtab *". All callers updated.
320 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
321 Change result type to "struct compunit_symtab *". All callers updated.
322 (find_pc_sect_line): Only loop over symtabs within selected compunit
323 instead of all symtabs in the objfile.
324 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
325 <compunit_symtab> New member.
326 <block_line_section>: Moved to compunit_symtab.
327 <locations_valid>: Ditto.
328 <epilogue_unwind_valid>: Ditto.
329 <macro_table>: Ditto.
331 <debugformat>: Ditto.
334 <call_site_htab>: Ditto.
338 (SYMTAB_COMPUNIT): New macro.
339 (SYMTAB_BLOCKVECTOR): Update definition.
340 (SYMTAB_OBJFILE): Update definition.
341 (SYMTAB_DIRNAME): Update definition.
342 (struct compunit_symtab): New type. Common members among all source
343 symtabs within a compilation unit moved here. All uses updated.
344 (COMPUNIT_OBJFILE): New macro.
345 (COMPUNIT_FILETABS): New macro.
346 (COMPUNIT_DEBUGFORMAT): New macro.
347 (COMPUNIT_PRODUCER): New macro.
348 (COMPUNIT_DIRNAME): New macro.
349 (COMPUNIT_BLOCKVECTOR): New macro.
350 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
351 (COMPUNIT_LOCATIONS_VALID): New macro.
352 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
353 (COMPUNIT_CALL_SITE_HTAB): New macro.
354 (COMPUNIT_MACRO_TABLE): New macro.
355 (ALL_COMPUNIT_FILETABS): New macro.
356 (compunit_symtab_ptr): New typedef.
357 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
359 2014-11-20 Joel Brobecker <brobecker@adacore.com>
361 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
362 if the TYPE_CODE of range_type's base type does not match
363 the TYPE_CODE of encoding_type's base type.
365 2014-11-19 Joel Brobecker <brobecker@adacore.com>
367 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
370 2014-11-19 Joel Brobecker <brobecker@adacore.com>
372 * ada-lang.c (ada_is_redundant_range_encoding): New function.
373 (ada_is_redundant_index_type_desc): New function.
374 (to_fixed_array_type): Ignore parallel XA type if redundant.
376 2014-11-19 Joel Brobecker <brobecker@adacore.com>
378 * ada-lang.c (constrained_packed_array_type): Set the length
379 of the return array as if both bounds where zero if that
380 returned array's index type is dynamic.
382 2014-11-19 Yao Qi <yao@codesourcery.com>
384 * config/i386/go32.mh (CC): Remove.
386 2014-11-18 Doug Evans <xdje42@gmail.com>
388 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
391 2014-11-18 Doug Evans <xdje42@gmail.com>
393 * buildsym.c (buildsym_objfile): New static global.
394 (buildsym_comp_dir): New static global.
395 (finish_block_internal): Delete arg objfile. All callers updated.
396 (finish_block): Delete arg objfile. All callers updated.
397 (start_subfile): Delete arg dirname. All callers updated.
398 (patch_subfile_names): Update buildsym_comp_dir.
399 (get_macro_table): Delete arg objfile. All callers updated.
400 (start_symtab): New arg objfile. All callers updated.
401 Rename arg dirname to comp_dir.
402 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
403 (end_symtab_get_static_block): Delete arg objfile. All callers
405 (end_symtab_without_blockvector): Ditto.
406 (end_symtab_with_blockvector): Ditto.
407 (end_symtab_from_static_block): Ditto.
409 (end_expandable_symtab): Ditto.
410 (augment_type_symtab): Ditto.
411 * coffread.c (coff_start_symtab): New arg objfile. All callers
414 2014-11-18 Doug Evans <xdje42@gmail.com>
416 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
419 2014-11-18 Doug Evans <xdje42@gmail.com>
421 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
422 symtab.dirname updated to use it.
424 2014-11-18 Doug Evans <xdje42@gmail.com>
426 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
427 symtab.objfile updated to use it.
429 2014-11-18 Doug Evans <xdje42@gmail.com>
431 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
433 2014-11-18 Doug Evans <xdje42@gmail.com>
435 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
437 * findvar.c (default_read_var_value): Ditto.
438 * jv-lang.c (add_class_symtab_symbol): Ditto.
439 * parse.c (operator_check_standard): Ditto.
440 * printcmd.c (address_info): Ditto.
441 * symtab.c (fixup_symbol_section): Ditto.
442 (skip_prologue_sal): Ditto.
443 * tracepoint.c (scope_info): Ditto.
444 * valops.c (find_function_in_inferior): Ditto.
445 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
446 * python/py-symbol.c (set_symbol): Ditto.
448 2014-11-18 Doug Evans <xdje42@gmail.com>
450 * buildsym.c (main_subfile): New static global.
451 (free_subfiles_list): New function.
452 (start_symtab): Set main_subfile.
453 (restart_symtab): Replace init of subfiles, current_subfile with
454 call to free_subfiles_list.
455 (watch_main_source_file_lossage): Use main_subfile.
456 (reset_symtab_globals): Replace init of current_subfile with call
457 to free_subfiles_list.
458 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
459 functions, split out from ...
460 (end_symtab_from_static_block): ... here. Rewrite to call them.
462 2014-11-18 Doug Evans <xdje42@gmail.com>
464 The result of symtab expansion is always a primary symtab.
465 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
466 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
467 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
468 (psymtab_to_symtab): Add comment and assert.
469 (map_matching_symbols_psymtab): Remove unnecessary test for
472 2014-11-15 Doug Evans <xdje42@gmail.com>
475 * symtab.c (find_pc_line_symtab): New function.
476 * symtab.h (find_pc_line_symtab): Declare.
477 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
479 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
480 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
481 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
482 * tui/tui-win.c (make_visible_with_new_height): Ditto.
483 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
484 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
486 2014-11-15 Doug Evans <xdje42@gmail.com>
488 * symtab.c (expand_symtab_containing_pc): Renamed from
489 find_pc_sect_symtab_via_partial. All callers updated.
491 2014-11-15 Yao Qi <yao@codesourcery.com>
493 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
495 2014-11-14 Joel Brobecker <brobecker@adacore.com>
497 * common/common-defs.h: Move <stdarg.h> #include ahead of
500 2014-11-14 Pedro Alves <palves@redhat.com>
502 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
503 [!PHONY_ICONV] (gdb_iconv): New function.
504 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
506 2014-11-13 Doug Evans <dje@google.com>
509 * dwarf2read.c (find_slot_in_mapped_hash): Handle
510 "(anonymous namespace)".
512 2014-11-13 Doug Evans <dje@google.com>
514 * dwarf2read.c (update_enumeration_type_from_children): Avoid
517 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
519 * NEWS (maint set target-async): Fix typo.
521 2014-11-12 Pedro Alves <palves@redhat.com>
523 * infrun.c (enum infwait_states, infwait_state): Delete.
525 2014-11-12 Pedro Alves <palves@redhat.com>
527 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
528 Rewrite stepping over a permanent breakpoint.
529 (thread_still_needs_step_over, proceed): Don't set
530 stepping_over_breakpoint for permanent breakpoints.
531 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
532 single-step breakpoints out of the target on hardware step
534 (process_event_stop_test): If stepping a permanent breakpoint
535 doesn't hit the step-resume breakpoint, delete the step-resume
537 (switch_back_to_stepped_thread): Also check if the stepped thread
538 has advanced already on hardware step targets.
539 (currently_stepping): Return true if the thread stepped a
542 2014-11-12 Pedro Alves <palves@redhat.com>
544 Mark locations as permanent, not the whole breakpoint.
545 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
546 (mark_breakpoints_out): Don't mark permanent breakpoints as
548 (breakpoint_init_inferior): Use mark_breakpoints_out.
549 (breakpoint_here_p): Adjust.
550 (bpstat_stop_status, describe_other_breakpoints): Remove handling
551 of permanent breakpoints.
552 (make_breakpoint_permanent): Mark each location as permanent,
553 instead of marking the breakpoint.
554 (add_location_to_breakpoint): If the location is permanent, mark
555 it as such, and as inserted.
556 (init_breakpoint_sal): Don't make the breakpoint permanent here.
557 (bp_location_compare, update_global_location_list): Adjust.
558 (update_breakpoint_locations): Don't make the breakpoint permanent
560 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
562 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
563 (struct bp_location) <permanent>: New field.
564 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
565 reference to bp_permanent.
567 2014-11-12 Pedro Alves <palves@redhat.com>
569 * arch-utils.c (default_skip_permanent_breakpoint): New function.
570 * arch-utils.h (default_skip_permanent_breakpoint): New
572 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
573 Install default_skip_permanent_breakpoint as default method.
574 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
575 (i386_gdbarch_init): Don't install it.
576 * infrun.c (resume): Assume there's always a
577 gdbarch_skip_permanent_breakpoint implementation.
578 * gdbarch.h, gdbarch.c: Regenerate.
580 2014-11-11 Daniel Colascione <dancol@dancol.org>
582 Warn about cross-PID-namespace debugging.
583 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
584 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
585 * linux-thread-db.c (check_pid_namespace_match): New function.
586 (thread_db_inferior_created): Call it.
588 2014-11-10 Doug Evans <xdje42@gmail.com>
590 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
591 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
593 2014-11-10 Doug Evans <xdje42@gmail.com>
595 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
597 2014-11-10 Doug Evans <xdje42@gmail.com>
600 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
601 (lookup_static_symbol): Move definition to new location and rewrite.
602 (lookup_symbol_in_objfile): New function.
603 (lookup_symbol_global_iterator_cb): Call it.
605 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
607 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
609 2014-11-07 Pedro Alves <palves@redhat.com>
611 * infrun.c (process_event_stop_test) <subroutine check>: Don't
612 check if we did a "nexti" inside a prologue.
613 * symtab.c (in_prologue): Delete function.
614 * symtab.h (in_prologue): Delete declaration.
616 2014-11-06 Doug Evans <xdje42@gmail.com>
618 * symtab.h (lookup_global_symbol): Improve function comment.
620 2014-11-06 Doug Evans <xdje42@gmail.com>
622 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
624 * symtab.h (lookup_global_symbol): Update decl.
625 (lookup_static_symbol): Move decl to better location.
627 2014-11-06 Doug Evans <xdje42@gmail.com>
629 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
631 2014-11-06 Doug Evans <xdje42@gmail.com>
633 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
635 (lookup_symbol_in_all_objfiles): Renamed from
636 lookup_symbol_aux_symtabs. All callers updated.
637 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
639 (lookup_symbol_in_objfile_symtabs): Renamed from
640 lookup_symbol_aux_objfile. All callers updated.
642 2014-11-06 Doug Evans <xdje42@gmail.com>
644 * symtab.c (lookup_symbol_in_block): Renamed from
645 lookup_symbol_aux_block. All callers updated.
647 2014-11-06 Doug Evans <xdje42@gmail.com>
649 * symtab.c (lookup_static_symbol): Renamed from
650 lookup_static_symbol_aux. All callers updated.
651 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
654 2014-11-06 Doug Evans <xdje42@gmail.com>
656 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
657 * block.c (block_lookup_symbol): Use it.
658 * cp-support.c (make_symbol_overload_list_block): Use it.
659 * symtab.c (iterate_over_symbols): Use it.
661 2014-11-06 Doug Evans <xdje42@gmail.com>
663 * symtab.c (lookup_block_symbol): Moved to ...
664 * block.c (block_lookup_symbol): ... here and renamed.
666 * block.h (block_lookup_symbol): Declare.
667 * symtab.h (lookup_block_symbol): Delete.
669 2014-11-06 Doug Evans <xdje42@gmail.com>
671 * ada-lang.c (ada_make_symbol_completion_list): Use
672 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
673 * symtab.c (lookup_objfile_from_block): Ditto.
675 2014-11-06 Doug Evans <xdje42@gmail.com>
677 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
680 2014-11-06 Doug Evans <xdje42@gmail.com>
682 * objfiles.c (get_objfile_arch): Constify.
683 * objfiles.h (get_objfile_arch): Update prototype.
684 * solib.c (solib_global_lookup): Fetch arch from objfile,
687 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
689 * nios2-tdep.c (wild_insn): Delete.
690 (profiler_insn, irqentry_insn): Delete.
691 (nios2_match_sequence): Delete.
692 (nios2_analyze_prologue): Update comments. Remove matching
693 of obsolete profiler_insn and irqentry_insn sequences.
695 2014-11-05 Alan Modra <amodra@gmail.com>
697 * charset.c (convert_between_encodings): Shrink obstack using
699 * minsyms.c (install_minimal_symbols): Likewise.
700 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
701 to char* before doing pointer arithmetic.
703 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
705 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
707 2014-11-04 Pedro Alves <palves@redhat.com>
709 * breakpoint.c (breakpoint_thread_match): Delete function.
710 * breakpoint.h (breakpoint_thread_match): Delete declaration.
712 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
715 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
716 the method args also under EVAL_SKIP when evaluating method
717 calls under EVAL_SKIP.
719 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
721 * dwarf2loc.c (read_pieced_value): Do big endian
722 processing only if gdb_regnum is not -1.
723 (write_pieced_value): Ditto.
725 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
727 * arm-linux-tdep.c (arm_linux_init_abi): Use
728 info.byte_order_for_code to choose endianity of breakpoint
729 instructions snippets.
731 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
733 * arm-tdep.c (extract_arm_insn): Use
734 gdbarch_byte_order_for_code to read arm instruction.
736 2014-11-02 Doug Evans <xdje42@gmail.com>
738 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
740 2014-11-02 Doug Evans <xdje42@gmail.com>
742 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
743 main_subfile before returning.
745 2014-10-31 Doug Evans <xdje42@gmail.com>
747 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
748 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
750 2014-10-31 Doug Evans <xdje42@gmail.com>
752 * valops.c (value_cast_pointers): Fix whitespace.
753 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
756 2014-10-30 Doug Evans <dje@google.com>
758 * NEWS: Mention ability add attributes to gdb.Objfile and
759 gdb.Progspace objects.
760 * python/py-objfile.c (objfile_object): New member dict.
761 (objfpy_dealloc): Py_XDECREF dict.
762 (objfpy_initialize): Initialize dict.
763 (objfile_getset): Add __dict__.
764 (objfile_object_type): Set tp_dictoffset member.
765 * python/py-progspace.c (progspace_object): New member dict.
766 (pspy_dealloc): Py_XDECREF dict.
767 (pspy_initialize): Initialize dict.
768 (pspace_getset): Add __dict__.
769 (pspace_object_type): Set tp_dictoffset member.
771 2014-10-30 Yao Qi <yao@codesourcery.com>
773 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
774 replace '\\' with '\\\\'.
776 2014-10-29 Joel Brobecker <brobecker@adacore.com>
780 2014-10-29 Pedro Alves <palves@redhat.com>
783 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
784 instead of assuming a thread with a stepping range is always
787 2014-10-29 Pedro Alves <palves@redhat.com>
790 * event-top.c (change_line_handler): Call
791 gdb_rl_callback_handler_remove instead of
792 rl_callback_handler_remove.
793 (callback_handler_installed): New global.
794 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
795 (gdb_rl_callback_handler_reinstall): New functions.
796 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
797 gdb_rl_callback_handler_install instead of
798 rl_callback_handler_remove and rl_callback_handler_install.
799 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
800 instead of rl_callback_handler_remove.
801 * event-top.h (gdb_rl_callback_handler_remove)
802 (gdb_rl_callback_handler_install)
803 (gdb_rl_callback_handler_reinstall): New declarations.
804 * infrun.c (reinstall_readline_callback_handler_cleanup): New
806 (fetch_inferior_event): Install it.
807 * top.c (gdb_readline_wrapper_line) Call
808 gdb_rl_callback_handler_remove instead of
809 rl_callback_handler_remove.
810 (gdb_readline_wrapper_cleanup): Don't call
811 rl_callback_handler_install.
813 2014-10-29 Pedro Alves <palves@redhat.com>
815 * event-top.c (command_line_handler): Clear the first byte of
816 linebuffer, when it is first allocated.
818 2014-10-29 Pedro Alves <palves@redhat.com>
820 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
823 2014-10-29 Pedro Alves <palves@redhat.com>
827 * tui/tui-interp.c (tui_is_toplevel): Delete global.
828 (tui_allowed_p): Delete function.
829 * tui/tui.c: Include "interps.h".
830 (tui_enable): Don't use tui_allowed_p. Error out here with
831 detailed error messages if the TUI is the top level interpreter,
832 or if output is not a terminal. Use newterm instead of initscr,
833 and error out if initializing the terminal fails. Also error out if
834 the terminal doesn't support cursor addressing.
835 * tui/tui.h (tui_allowed_p): Delete declaration.
837 2014-10-29 Joel Brobecker <brobecker@adacore.com>
839 * arm-tdep.c (arm_skip_stack_protector): Return early if
840 address loaded by first "ldr" instruction does not have
841 a corresponding minimal symbol. Update comment.
843 2014-10-29 Yao Qi <yao@codesourcery.com>
845 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
846 loaded address correctly of ldr instruction.
848 2014-10-28 Pedro Alves <palves@redhat.com>
851 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
853 * infrun.c (resume) <stepping breakpoint instruction>: Set the
854 thread's stepped_breakpoint field. Skip if reverse debugging.
856 (init_thread_stepping_state, handle_signal_stop): Clear the
857 thread's stepped_breakpoint field.
859 2014-10-27 Pedro Alves <palves@redhat.com>
861 * remote.c (remote_thread_alive): New, factored out from ...
862 (remote_thread_alive): ... this.
863 (remote_update_thread_list): Bail out before deleting threads if
864 the target returned an empty list, and, the current thread has a
867 2014-10-27 Pedro Alves <palves@redhat.com>
869 * infrun.c (handle_signal_stop): Also skip handlers when a random
870 signal arrives while handling a "stepi" or a "nexti". Set the
871 thread's 'step_after_step_resume_breakpoint' flag.
873 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
875 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
876 (arm_record_ld_st_imm_offset): Reimplement to cover all
877 load/store cases for ARM opcode 010.
878 (arm_record_ld_st_multiple): Reimplement to cover all
879 load/store cases for ARM opcode 100.
881 2014-10-26 Doug Evans <xdje42@gmail.com>
883 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
885 2014-10-26 Doug Evans <xdje42@gmail.com>
887 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
888 parameter "kind" to "block_index".
889 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
891 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
893 2014-10-26 Doug Evans <xdje42@gmail.com>
895 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
897 2014-10-26 Doug Evans <xdje42@gmail.com>
899 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
902 2014-10-26 Doug Evans <xdje42@gmail.com>
904 * parser-defs.h (block_found): Move decl from here ...
905 * symtab.h (block_found): ... to here.
907 2014-10-26 Doug Evans <xdje42@gmail.com>
909 * symtab.h (struct field_of_this_result): Fix typo in comment.
910 (lookup_symbol_in_language): Move function comment here.
911 (lookup_symbol): Improve function comment.
912 (basic_lookup_symbol_nonlocal): Ditto.
913 (lookup_symbol_static, lookup_symbol_global): Ditto.
914 (lookup_symbol_aux_block): Ditto.
915 (lookup_language_this): Add function comment.
916 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
918 (lookup_block_symbol): Improve function comment.
919 (lookup_struct): Fix capitalization in function comment.
920 (lookup_transparent_type): Add function comment.
921 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
922 Improve function comment.
923 (lookup_objfile_from_block): Add function comment.
924 * symtab.c (lookup_symbol_in_language): Update function comment.
925 (lookup_symbol, lookup_language_this): Ditto.
926 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
927 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
928 (basic_lookup_symbol_nonlocal): Ditto.
929 (lookup_symbol_static, lookup_symbol_global): Ditto.
930 (lookup_transparent_type, lookup_block_symbol): Ditto.
932 2014-10-25 Doug Evans <xdje42@gmail.com>
934 * symtab.c (types_info): Delete forward decl.
935 (functions_info, variables_info, sources_info): Ditto.
936 (_initialize_symtab): Rewrite forward decl to use
937 initialize_file_ftype.
939 2014-10-25 Doug Evans <xdje42@gmail.com>
941 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
943 2014-10-25 Doug Evans <xdje42@gmail.com>
945 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
946 of local var child_die.
948 2014-10-24 Don Breazeal <donb@codesourcery.com>
950 * infrun.c (follow_fork_inferior): Update fork message printing
951 to use target_terminal_ours_for_output instead of
952 target_terminal_ours, to use _() for all format strings, to print
953 "vfork" instead of "fork" for vforks, and to add a detach message.
954 (handle_vfork_child_exec_or_exit): Update message printing to use
955 target_terminal_ours_for_output instead of target_terminal_ours, to
956 use _() for all format strings, and to fix some formatting.
958 2014-10-24 Pedro Alves <palves@redhat.com>
960 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
961 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
962 * config/vax/vax.mh: Delete.
963 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
964 obsolete configurations section.
965 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
966 * vax-nat.c: Delete file.
968 2014-10-24 Pedro Alves <palves@redhat.com>
970 * NEWS (Removed targets): Add OS/arch column.
972 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
974 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
975 on the arg type of a constructor only if it is of reference type.
977 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
979 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
980 accessors and constants from nios2 opcodes update.
981 (nios2_get_next_pc): Likewise.
983 2014-10-19 Doug Evans <xdje42@gmail.com>
985 * gdbthread.h (set_running): Fix comment.
986 (set_executing, finish_thread_state): Fix comment.
988 2014-10-18 Doug Evans <xdje42@gmail.com>
990 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
992 2014-10-17 Doug Evans <dje@google.com>
994 * NEWS: Mention new event gdb.clear_objfiles.
995 * python/py-event.h (emit_clear_objfiles_event): Clear
996 * python/py-events.h (events_object): New member clear_objfiles.
997 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
999 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1000 emit clear_objfiles event.
1001 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1003 (emit_clear_objfiles_event): New function.
1004 (clear_objfiles): New event.
1005 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1007 * python/python.c (_initialize_python): Call
1008 gdbpy_initialize_clear_objfiles_event.
1010 2014-10-17 Doug Evans <dje@google.com>
1012 * NEWS: Mention new gdb.Objfile.progspace attribute.
1013 * python/py-objfile.c (objfpy_get_progspace): New function.
1014 (objfile_getset): New entry for "progspace".
1016 2014-10-17 Pedro Alves <palves@redhat.com>
1019 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1020 returns a copy of the input.
1021 (run_command_1, continue_command, step_1, jump_command)
1022 (signal_command, until_command, advance_command, finish_command)
1023 (attach_command): Adjust and install a cleanup to free the
1026 2014-10-17 Pedro Alves <palves@redhat.com>
1029 * infcmd.c (continue_1): If continuing all threads in the
1030 foreground, make sure the inferior's terminal settings are put in
1033 2014-10-17 Pedro Alves <palves@redhat.com>
1036 * annotate.c (annotate_breakpoints_invalid): Use
1037 target_terminal_our_for_output instead of target_terminal_ours.
1038 Give back the terminal to the target.
1039 (annotate_frames_invalid): Likewise.
1041 2014-10-17 Pedro Alves <palves@redhat.com>
1043 * target.c (enum terminal_state): New enum.
1044 (terminal_state): New global.
1045 (target_terminal_init): New function.
1046 (target_terminal_inferior): Skip if inferior already owns the
1048 (target_terminal_ours, target_terminal_ours_for_output): New
1050 * target.h (target_terminal_init): Convert to function prototype.
1051 (target_terminal_ours_for_output): Convert to function prototype
1053 (target_terminal_ours): Convert to function prototype and tweak
1055 * windows-nat.c (do_initial_windows_stuff): Call
1056 target_terminal_init instead of child_terminal_init_with_pgrp.
1058 2014-10-17 Pedro Alves <palves@redhat.com>
1060 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1061 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1062 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1064 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1065 * ada-lang.h [__alpha__ && __osf__]
1066 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1067 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1068 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1070 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1072 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1073 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1074 * configure: Regenerate.
1075 * configure.ac: Remove references to osf.
1076 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1077 section. Remove all other references to osf.
1078 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1079 Remove all other references to osf.
1080 * dec-thread.c: Delete file.
1081 * defs.h (GDB_OSABI_OSF1): Delete.
1082 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1084 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1085 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1087 (unconditionally_kill_inferior)
1088 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1089 * solib-osf.c: Delete file.
1091 2014-10-17 Pedro Alves <palves@redhat.com>
1093 * remote.c (clear_threads_listing_context): Move higher up, out of
1094 the HAVE_LIBEXPAT guard.
1096 2014-10-16 Tristan Gingold <gingold@adacore.com>
1098 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1099 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1102 2014-10-15 Pedro Alves <palves@redhat.com>
1104 * dec-thread.c (dec_thread_count_gdb_threads)
1105 (dec_thread_add_gdb_thread): Delete.
1106 (dec_thread_update_thread_list): Delete.
1107 (dec_thread_find_new_threads): Rename to ...
1108 (dec_thread_update_thread_list): ... this. Delete GDB-size
1109 threads that are no longer found in dec_thread_list.
1110 (resync_thread_list): Delete.
1111 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1114 2014-10-15 Pedro Alves <palves@redhat.com>
1116 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1117 * remote.c (remote_update_thread_list): Skip calling prune_threads
1118 if any thread listing method is supported, and instead walk over
1119 the set of remote threads listed, deleting those that are not
1120 found in GDB's thread list.
1122 2014-10-15 Pedro Alves <palves@redhat.com>
1124 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1125 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1126 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1127 (bsd_uthread_target): Adjust.
1128 * corelow.c (core_open): Adjust.
1129 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1130 (dec_thread_update_thread_list): New function.
1131 (init_dec_thread_ops): Adjust.
1132 * gdbthread.h (prune_threads): New declaration.
1133 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1134 (thread_db_update_thread_list): ... this. Call prune_threads.
1135 (init_thread_db_ops): Adjust.
1136 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1137 (procfs_update_thread_list): ... this. Call prune_threads.
1138 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1140 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1141 (obsd_update_thread_list): ... this. Call prune_threads.
1142 (obsd_add_target): Adjust.
1143 * procfs.c (procfs_target): Adjust.
1144 (procfs_notice_thread): Update comment.
1145 (procfs_find_new_threads): Rename to ...
1146 (procfs_update_thread_list): ... this. Call prune_threads.
1147 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1149 (ravenscar_wait): Adjust.
1150 (ravenscar_find_new_threads): Rename to ...
1151 (ravenscar_update_thread_list): ... this. Call prune_threads.
1152 (init_ravenscar_thread_ops): Adjust.
1153 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1154 (record_btrace_update_thread_list): ... this. Adjust comment.
1155 (init_record_btrace_ops): Adjust.
1156 * remote.c (remote_threads_info): Rename to ...
1157 (remote_update_thread_list): ... this. Call prune_threads.
1158 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1160 * sol-thread.c (check_for_thread_db): Adjust.
1161 (sol_find_new_threads_callback): Rename to ...
1162 (sol_update_thread_list_callback): ... this.
1163 (sol_find_new_threads): Rename to ...
1164 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1165 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1166 * target-delegates.c: Regenerate.
1167 * target.c (target_find_new_threads): Rename to ...
1168 (target_update_thread_list): ... this.
1169 * target.h (struct target_ops): Rename to_find_new_threads field
1170 to to_update_thread_list.
1171 (target_find_new_threads): Rename to ...
1172 (target_update_thread_list): ... this.
1173 * thread.c (prune_threads): Make extern.
1174 (update_thread_list): Adjust.
1176 2014-10-15 Pedro Alves <palves@redhat.com>
1178 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1179 Add describing comment. Return -1 if the qL packet is not
1181 (struct thread_item, thread_item_t): Move higher up in
1182 the file. Add comments.
1183 (struct threads_parsing_context): Move higher up in
1184 the file, add comments, and remote to ...
1185 (struct threads_listing_context): ... this.
1186 (remote_newthread_step): Don't add the thread to GDB's thread
1187 database here. Instead push it to the thread_listing_context
1189 (remote_find_new_threads): Rename to ...
1190 (remote_get_threads_with_ql): ... this. Add target_ops and
1191 targets_listing_context parameters. Pass down context.
1192 (start_thread): Adjust.
1193 (clear_threads_parsing_context): Rename to ...
1194 (clear_threads_listing_context): ... this.
1195 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1196 remote_threads_info.
1197 (remote_get_threads_with_qthreadinfo): Ditto.
1198 (remote_threads_info): Reimplement.
1200 2014-10-15 Pedro Alves <palves@redhat.com>
1202 * infrun.c (resume): Don't force displaced-stepping for all
1203 single-steps on software single-stepping archs.
1205 2014-10-15 Pedro Alves <palves@redhat.com>
1207 * breakpoint.c (single_step_breakpoints): Delete global.
1208 (insert_single_step_breakpoint): Adjust to store the breakpoint
1209 pointer in the current thread.
1210 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1211 (cancel_single_step_breakpoints): Delete functions.
1212 (breakpoint_has_location_inserted_here): Make extern.
1213 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1215 * breakpoint.h (breakpoint_has_location_inserted_here): New
1217 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1218 (cancel_single_step_breakpoints): Remove declarations.
1219 * gdbthread.h (struct thread_control_state)
1220 <single_step_breakpoints>: New field.
1221 (delete_single_step_breakpoints)
1222 (thread_has_single_step_breakpoints_set)
1223 (thread_has_single_step_breakpoint_here): New declarations.
1224 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1225 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1226 (singlestep_pc): Delete globals.
1227 (infrun_thread_ptid_changed): Remove references to removed
1229 (resume_cleanups): Delete the current thread's single-step
1231 (maybe_software_singlestep): Remove references to removed globals.
1232 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1233 delete_single_step_breakpoints.
1234 (init_wait_for_inferior): Remove references to removed globals.
1235 (delete_thread_infrun_breakpoints): Delete the thread's
1236 single-step breakpoints too.
1237 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1238 single-step breakpoints here.
1239 (delete_stopped_threads_single_step_breakpoints): New function.
1240 (adjust_pc_after_break): Adjust to use
1241 thread_has_single_step_breakpoints_set.
1242 (handle_inferior_event): Remove references to removed globals.
1243 Use delete_stopped_threads_single_step_breakpoints.
1244 (handle_signal_stop): Adjust to per-thread single-step
1245 breakpoints. Swap test order to do cheaper tests first.
1246 (switch_back_to_stepped_thread): Extend debug output. Remove
1247 references to removed globals.
1248 * record-full.c (record_full_wait_1): Adjust to per-thread
1249 single-step breakpoints.
1250 * thread.c (delete_single_step_breakpoints)
1251 (thread_has_single_step_breakpoints_set)
1252 (thread_has_single_step_breakpoint_here): New functions.
1253 (clear_thread_inferior_resources): Also delete the thread's
1254 single-step breakpoints.
1256 2014-10-15 Pedro Alves <palves@redhat.com>
1258 * thread.c (delete_thread_breakpoint): New function.
1259 (delete_step_resume_breakpoint)
1260 (delete_exception_resume_breakpoint): Use it.
1261 (delete_at_next_stop): New function.
1262 (clear_thread_inferior_resources): Use delete_at_next_stop.
1264 2014-10-15 Pedro Alves <palves@redhat.com>
1266 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1267 (breakpoint_inserted_here_p): ... here. Remove special case for
1268 software single-step breakpoints.
1269 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1270 (software_breakpoint_inserted_here_p): ... here. Remove special
1271 case for software single-step breakpoints.
1272 (bp_target_info_copy_insertion_state)
1273 (deprecated_insert_raw_breakpoint)
1274 (deprecated_remove_raw_breakpoint): Delete functions.
1275 * breakpoint.h (deprecated_insert_raw_breakpoint)
1276 (deprecated_remove_raw_breakpoint): Remove declarations.
1278 2014-10-15 Pedro Alves <palves@redhat.com>
1281 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1282 Delete array globals.
1283 (single_step_breakpoints): New global.
1284 (breakpoint_xfer_memory): Remove special handling for single-step
1286 (update_breakpoints_after_exec): Delete bp_single_step
1288 (detach_breakpoints): Remove special handling for single-step
1290 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1291 (bpstat_stop_status): Add comment.
1292 (bpstat_what, bptype_string, print_one_breakpoint_location)
1293 (adjust_breakpoint_address, init_bp_location): Handle
1295 (new_single_step_breakpoint): New function.
1296 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1297 handling for single-step breakpoints.
1298 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1299 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1301 (detach_single_step_breakpoints, find_single_step_breakpoint):
1303 (breakpoint_has_location_inserted_here): New function.
1304 (single_step_breakpoint_inserted_here_p): Rewrite.
1305 * breakpoint.h: Remove FIXME.
1306 (enum bptype) <bp_single_step>: New enum value.
1307 (insert_single_step_breakpoint): Update comment.
1308 * infrun.c (resume_cleanups)
1309 (delete_step_thread_step_resume_breakpoint): Remove single-step
1311 (fetch_inferior_event): Install a cleanup that removes infrun
1313 (switch_back_to_stepped_thread) <expect thread advanced also>:
1314 Clear step-over info.
1316 2014-10-15 Pedro Alves <palves@redhat.com>
1318 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1319 (delete_thread_infrun_breakpoints): New function, with parts
1320 salvaged from delete_step_resume_breakpoint_callback.
1321 (delete_step_thread_step_resume_breakpoint): Delete.
1322 (for_each_just_stopped_thread_callback_func): New typedef.
1323 (for_each_just_stopped_thread): New function.
1324 (delete_just_stopped_threads_infrun_breakpoints): New function.
1325 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1326 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1328 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1330 2014-10-15 Pedro Alves <palves@redhat.com>
1332 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1333 trying to step past a non-steppable watchpoint.
1334 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1336 * infrun.c (struct step_over_info): Add new field
1337 'nonsteppable_watchpoint_p' and adjust comments.
1338 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1340 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1341 (stepping_past_nonsteppable_watchpoint): New function.
1342 (step_over_info_valid_p): Also return true if stepping past a
1343 nonsteppable watchpoint.
1344 (proceed): Adjust call to set_step_over_info. Remove reference to
1346 (init_wait_for_inferior): Remove reference to init_infwait_state.
1347 (waiton_ptid): Delete global.
1348 (struct execution_control_state)
1349 <stepped_after_stopped_by_watchpoint>: Delete field.
1350 (wait_for_inferior, fetch_inferior_event): Always pass
1351 minus_one_ptid to target_wait.
1352 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1354 (init_infwait_state): Delete function.
1355 (handle_inferior_event): Remove infwait_state handling.
1356 (handle_signal_stop) <watchpoints handling>: Adjust after
1357 stepped_after_stopped_by_watchpoint removal. Don't remove
1358 breakpoints here nor set infwait_state. Set the thread's
1359 stepping_over_watchpoint flag, and call keep_going instead.
1360 (keep_going): Handle stepping_over_watchpoint. Adjust
1361 set_step_over_info calls.
1362 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1365 2014-10-15 Pedro Alves <palves@redhat.com>
1367 * infrun.c (step_over_info_valid_p): New function.
1368 (resume): Use step_over_info_valid_p instead of checking the
1369 threads's trap_expected flag.
1371 2014-10-15 Doug Evans <dje@google.com>
1372 Walfred Tedeschi <walfred.tedeschi@intel.com>
1375 * python/lib/gdb/__init__.py (packages): Add "printer".
1376 * python/lib/gdb/command/bound_registers.py: Moved to ...
1377 * python/lib/gdb/printer/bound_registers.py: ... here.
1378 Add printer to global set of builtin printers. Rename printer from
1379 "bound" to "mpx_bound128".
1380 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1381 registered as global "builtin" printer.
1382 (add_builtin_pretty_printer): New function.
1383 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1384 gdb/printer/__init__.py.
1386 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1388 * Makefile.in (SFILES): Remove d-support.c.
1389 (COMMON_OBS): Remove d-support.o.
1390 * d-lang.h (d_parse_symbol): Remove declaration.
1391 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1392 * d-support.c: Remove file.
1394 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1396 * gdb/infrun.c (process_event_stop_test): Apply
1397 gdbarch_addr_bits_remove to longjmp resume address.
1399 2014-10-15 Pedro Alves <palves@redhat.com>
1401 * regformats/microblaze.dat: Delete file.
1403 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1405 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1406 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1408 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1410 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1413 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1417 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1418 with qualified args.
1420 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1422 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1423 of the case where the second operand is a pointer.
1424 <BINOP_SUB>: Likewise.
1426 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1428 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1429 only if it is not NULL.
1430 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1431 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1432 (struct probe_ops) <clear_semaphore>: Likewise.
1433 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1435 (stop_tracing): Likewise, for clear_semaphore.
1437 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1439 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1440 using language_c, instead of current_language.
1442 2014-10-13 Doug Evans <dje@google.com>
1444 * python/py-objfile.c (objfpy_initialize): New function.
1445 (objfpy_new, objfile_to_objfile_object): Call it.
1446 * python/py-progspace.c (pspy_initialize): New function.
1447 (pspy_new, pspace_to_pspace_object): Call it.
1449 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1450 Jan Kratochvil <jan.kratochvil@redhat.com>
1452 Fix "save breakpoints" for "catch" command.
1453 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1456 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1458 Fix "save breakpoints" for "disable $bpnum" command.
1459 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1461 2014-10-10 Pedro Alves <palves@redhat.com>
1463 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1464 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1465 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1466 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1468 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1469 * configure.ac: Remove references to IRIX.
1470 * configure.host: Add *-*-irix* to the obsolete hosts section.
1471 Remove all other references to irix.
1472 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1475 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1477 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1478 isn't valid, release the tdesc arch data and return NULL.
1480 2014-10-10 Pedro Alves <palves@redhat.com>
1482 * linux-tdep.c: Include observer.h.
1483 (linux_inferior_data): New global.
1484 (struct linux_info): New structure.
1485 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1486 (get_linux_inferior_data): New functions.
1487 (linux_vsyscall_range): Rename to ...
1488 (linux_vsyscall_range_raw): ... this.
1489 (linux_vsyscall_range): New function; handles caching.
1490 (_initialize_linux_tdep): Register linux_inferior_data. Install
1491 inferior_exit and inferior_appeared observers.
1493 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1494 Pedro Alves <palves@redhat.com>
1497 * solib-svr4.c (svr4_read_so_list): Rename to ...
1498 (svr4_current_sos_1): ... this and change the function comment.
1499 (svr4_current_sos): New function.
1501 2014-10-10 Pedro Alves <palves@redhat.com>
1503 * arch-utils.c (default_vsyscall_range): New function.
1504 * arch-utils.h (default_vsyscall_range): New declaration.
1505 * gdbarch.sh (vsyscall_range): New hook.
1506 * gdbarch.h, gdbarch.c: Regenerate.
1507 * linux-tdep.c (linux_vsyscall_range): New function.
1508 (linux_init_abi): Install linux_vsyscall_range as
1509 vsyscall_range gdbarch hook.
1510 * memrange.c (address_in_mem_range): New function.
1511 * memrange.h (address_in_mem_range): New declaration.
1512 * symfile-mem.c (find_vdso_size): Delete function.
1513 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1515 2014-10-10 Pedro Alves <palves@redhat.com>
1517 * infrun.c (normal_stop): Fix typo in comment.
1519 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1522 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1523 typo when using logical AND to determine instruction type.
1525 2014-10-09 Yao Qi <yao@codesourcery.com>
1527 * infrun.c (handle_signal_stop): Remove local variable
1530 2014-10-08 Stan Shebs <stan@codesourcery.com>
1532 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1534 2014-10-08 Gary Benson <gbenson@redhat.com>
1536 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1538 2014-10-08 Gary Benson <gbenson@redhat.com>
1540 * common/common-defs.h: Include common-exceptions.h.
1541 * exceptions.h: Do not include common-exceptions.h.
1543 2014-10-08 Gary Benson <gbenson@redhat.com>
1545 * common/common-defs.h: Include cleanups.h.
1546 * common/common-exceptions.c: Do not include cleanups.h.
1547 * utils.h: Likewise.
1549 2014-10-08 Gary Benson <gbenson@redhat.com>
1551 * ada-lang.c: Do not include exceptions.h.
1552 * ada-valprint.c: Likewise.
1553 * amd64-tdep.c: Likewise.
1554 * auto-load.c: Likewise.
1555 * block.c: Likewise.
1556 * break-catch-throw.c: Likewise.
1557 * breakpoint.c: Likewise.
1558 * btrace.c: Likewise.
1559 * c-lang.c: Likewise.
1560 * cli/cli-cmds.c: Likewise.
1561 * cli/cli-interp.c: Likewise.
1562 * cli/cli-script.c: Likewise.
1563 * completer.c: Likewise.
1564 * corefile.c: Likewise.
1565 * corelow.c: Likewise.
1566 * cp-abi.c: Likewise.
1567 * cp-support.c: Likewise.
1568 * cp-valprint.c: Likewise.
1569 * darwin-nat.c: Likewise.
1570 * dwarf2-frame-tailcall.c: Likewise.
1571 * dwarf2-frame.c: Likewise.
1572 * dwarf2loc.c: Likewise.
1573 * dwarf2read.c: Likewise.
1575 * event-loop.c: Likewise.
1576 * event-top.c: Likewise.
1577 * f-valprint.c: Likewise.
1578 * frame-unwind.c: Likewise.
1579 * frame.c: Likewise.
1580 * gdbtypes.c: Likewise.
1581 * gnu-v2-abi.c: Likewise.
1582 * gnu-v3-abi.c: Likewise.
1583 * guile/scm-auto-load.c: Likewise.
1584 * guile/scm-breakpoint.c: Likewise.
1585 * guile/scm-cmd.c: Likewise.
1586 * guile/scm-frame.c: Likewise.
1587 * guile/scm-lazy-string.c: Likewise.
1588 * guile/scm-param.c: Likewise.
1589 * guile/scm-symbol.c: Likewise.
1590 * guile/scm-type.c: Likewise.
1591 * hppa-hpux-tdep.c: Likewise.
1592 * i386-tdep.c: Likewise.
1593 * inf-loop.c: Likewise.
1594 * infcall.c: Likewise.
1595 * infcmd.c: Likewise.
1596 * infrun.c: Likewise.
1597 * interps.c: Likewise.
1598 * interps.h: Likewise.
1600 * linespec.c: Likewise.
1601 * linux-nat.c: Likewise.
1602 * linux-thread-db.c: Likewise.
1603 * m32r-rom.c: Likewise.
1605 * memory-map.c: Likewise.
1606 * mi/mi-cmd-break.c: Likewise.
1607 * mi/mi-cmd-stack.c: Likewise.
1608 * mi/mi-interp.c: Likewise.
1609 * mi/mi-main.c: Likewise.
1610 * monitor.c: Likewise.
1611 * nto-procfs.c: Likewise.
1612 * objc-lang.c: Likewise.
1613 * p-valprint.c: Likewise.
1614 * parse.c: Likewise.
1615 * ppc-linux-tdep.c: Likewise.
1616 * printcmd.c: Likewise.
1617 * probe.c: Likewise.
1618 * python/py-auto-load.c: Likewise.
1619 * python/py-breakpoint.c: Likewise.
1620 * python/py-cmd.c: Likewise.
1621 * python/py-finishbreakpoint.c: Likewise.
1622 * python/py-frame.c: Likewise.
1623 * python/py-framefilter.c: Likewise.
1624 * python/py-function.c: Likewise.
1625 * python/py-gdb-readline.c: Likewise.
1626 * python/py-inferior.c: Likewise.
1627 * python/py-infthread.c: Likewise.
1628 * python/py-lazy-string.c: Likewise.
1629 * python/py-linetable.c: Likewise.
1630 * python/py-param.c: Likewise.
1631 * python/py-prettyprint.c: Likewise.
1632 * python/py-symbol.c: Likewise.
1633 * python/py-type.c: Likewise.
1634 * python/py-value.c: Likewise.
1635 * python/python-internal.h: Likewise.
1636 * python/python.c: Likewise.
1637 * record-btrace.c: Likewise.
1638 * record-full.c: Likewise.
1639 * regcache.c: Likewise.
1640 * remote-fileio.c: Likewise.
1641 * remote-mips.c: Likewise.
1642 * remote.c: Likewise.
1643 * rs6000-aix-tdep.c: Likewise.
1644 * rs6000-nat.c: Likewise.
1646 * solib-darwin.c: Likewise.
1647 * solib-dsbt.c: Likewise.
1648 * solib-frv.c: Likewise.
1649 * solib-ia64-hpux.c: Likewise.
1650 * solib-spu.c: Likewise.
1651 * solib-svr4.c: Likewise.
1652 * solib.c: Likewise.
1653 * spu-tdep.c: Likewise.
1654 * stack.c: Likewise.
1655 * stap-probe.c: Likewise.
1656 * symfile-mem.c: Likewise.
1657 * symmisc.c: Likewise.
1658 * target.c: Likewise.
1659 * thread.c: Likewise.
1661 * tracepoint.c: Likewise.
1662 * tui/tui-interp.c: Likewise.
1663 * typeprint.c: Likewise.
1664 * utils.c: Likewise.
1665 * valarith.c: Likewise.
1666 * valops.c: Likewise.
1667 * valprint.c: Likewise.
1668 * value.c: Likewise.
1669 * varobj.c: Likewise.
1670 * windows-nat.c: Likewise.
1671 * xml-support.c: Likewise.
1673 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1675 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1677 (extended_mips16_next_pc): Update accordingly.
1679 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1681 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1683 (micromips_instruction_is_compact_branch): Likewise.
1684 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1685 or a compact jump, reaching a jump delay slot, or seeing a
1686 second non-prologue instruction.
1687 (micromips_scan_prologue): Also terminate scanning upon seeing a
1688 compact branch or jump, or reaching a branch or jump delay slot.
1689 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1690 or jump delay slot, or seeing a second non-prologue instruction.
1691 (mips32_instruction_has_delay_slot): Retain instruction
1692 examination code only, update arguments accordingly and move
1693 instruction fetch pieces to...
1694 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1695 (micromips_instruction_has_delay_slot): Likewise and to...
1696 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1697 (mips16_instruction_has_delay_slot): Likewise and to...
1698 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1699 (mips_single_step_through_delay): Update accordingly.
1700 (mips_adjust_breakpoint_address): Likewise.
1702 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1704 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1705 !mustbe32 also return 1 for 32-bit instructions.
1706 (mips16_instruction_has_delay_slot): Likewise. Add an
1707 explanatory comment.
1709 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1711 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1714 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1716 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1718 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1719 for the breakpoint's address. Don't preinitialize `placed_size'.
1720 (insert_bp_location): Set `reqstd_address' rather than
1722 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1723 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1725 (bkpt_remove_location): Likewise.
1726 (deprecated_insert_raw_breakpoint): Likewise.
1727 (deprecated_remove_raw_breakpoint): Likewise.
1728 (find_single_step_breakpoint): Likewise.
1729 * mem-break.c (default_memory_insert_breakpoint): Use
1730 `reqstd_address' for the breakpoint's address. Don't set
1731 `placed_address' or `placed_size' if breakpoint contents couldn't
1732 have been determined.
1733 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1734 the breakpoint's address.
1735 (remote_insert_hw_breakpoint): Likewise. Don't set
1736 `placed_address' or `placed_size' if breakpoint couldn't have been
1738 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1739 `reqstd_address' for the breakpoint's address.
1740 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1741 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1742 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1743 * microblaze-linux-tdep.c
1744 (microblaze_linux_memory_remove_breakpoint): Likewise.
1745 * monitor.c (monitor_insert_breakpoint): Likewise.
1746 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1747 (procfs_insert_hw_breakpoint): Likewise.
1748 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1749 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1750 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1751 * remote-mips.c (mips_insert_breakpoint): Likewise.
1752 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1754 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1756 * valops.c (value_assign): Check for bit field assignments
1757 before calling architecture-specific register value
1758 conversion functions.
1760 2014-10-03 Pierre Muller <muller@sourceware.org>
1762 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1764 2014-10-02 Pedro Alves <palves@redhat.com>
1766 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1767 threads_are_executing.
1768 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1770 * gdbthread.h (threads_are_executing): Declare.
1771 (handle_signal_stop) <random signals>: Don't print about the
1772 signal here if stopping.
1773 (end_stepping_range): Don't notify observers here.
1774 (normal_stop): Update the thread list. If stopped by a random
1775 signal or a stepping range ended, notify observers.
1776 * thread.c (threads_executing): New global.
1777 (init_thread_list): Clear 'threads_executing'.
1778 (set_executing): Set or clear 'threads_executing'.
1779 (threads_are_executing): New function.
1780 (update_threads_executing): New function.
1781 (update_thread_list): Use it.
1783 2014-10-02 Pedro Alves <palves@redhat.com>
1785 PR breakpoints/17431
1786 * breakpoint.c (update_breakpoints_after_exec): Don't create
1787 overlay, longjmp, std terminate nor exception breakpoints here.
1789 2014-10-02 Pedro Alves <palves@redhat.com>
1791 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1793 * inferior.c (find_inferior_for_program_space): Give preference to
1794 the current inferior.
1795 * inferior.h (find_inferior_for_program_space): Update comment.
1796 * progspace.c (switch_to_program_space_and_thread): Prefer the
1797 current inferior if it's bound to the program space requested. If
1798 the inferior found doesn't have a PID yet, don't bother looking up
1800 * progspace.h (switch_to_program_space_and_thread): Adjust
1802 * thread.c (any_thread_of_process, any_live_thread_of_process):
1803 Give preference to the current thread.
1805 2014-10-01 Pedro Alves <palves@redhat.com>
1807 * breakpoint.c (insert_bp_location): Error out if inserting a
1808 software breakpoint at a read-only address.
1809 * target.c (memory_xfer_check_region): New function, factored out
1811 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1813 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1814 against the memory region attributes.
1816 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1818 * NEWS: Announce new exit-code field in -list-thread-groups
1820 * inferior.c (exit_inferior_1): Don't clear exit code.
1821 (inferior_appeared): Clear exit code.
1822 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1825 2014-10-01 Pedro Alves <palves@redhat.com>
1827 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1828 GENERATED" along with emacs/vi read-only markers.
1829 * regformats/aarch64.dat: Regenerate.
1830 * regformats/arm-with-iwmmxt.dat: Regenerate.
1831 * regformats/arm-with-neon.dat: Regenerate.
1832 * regformats/arm-with-vfpv2.dat: Regenerate.
1833 * regformats/arm-with-vfpv3.dat: Regenerate.
1834 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1835 * regformats/i386/amd64-avx.dat: Regenerate.
1836 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1837 * regformats/i386/amd64-avx512.dat: Regenerate.
1838 * regformats/i386/amd64-linux.dat: Regenerate.
1839 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1840 * regformats/i386/amd64-mpx.dat: Regenerate.
1841 * regformats/i386/amd64.dat: Regenerate.
1842 * regformats/i386/i386-avx-linux.dat: Regenerate.
1843 * regformats/i386/i386-avx.dat: Regenerate.
1844 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1845 * regformats/i386/i386-avx512.dat: Regenerate.
1846 * regformats/i386/i386-linux.dat: Regenerate.
1847 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1848 * regformats/i386/i386-mmx.dat: Regenerate.
1849 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1850 * regformats/i386/i386-mpx.dat: Regenerate.
1851 * regformats/i386/i386.dat: Regenerate.
1852 * regformats/i386/x32-avx-linux.dat: Regenerate.
1853 * regformats/i386/x32-avx.dat: Regenerate.
1854 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1855 * regformats/i386/x32-avx512.dat: Regenerate.
1856 * regformats/i386/x32-linux.dat: Regenerate.
1857 * regformats/i386/x32.dat: Regenerate.
1858 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1859 * regformats/mips-dsp-linux.dat: Regenerate.
1860 * regformats/mips-linux.dat: Regenerate.
1861 * regformats/mips64-dsp-linux.dat: Regenerate.
1862 * regformats/mips64-linux.dat: Regenerate.
1863 * regformats/nios2-linux.dat: Regenerate.
1864 * regformats/rs6000/powerpc-32.dat: Regenerate.
1865 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1866 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1867 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1868 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1869 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1870 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1871 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1872 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1873 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1874 * regformats/s390-linux32.dat: Regenerate.
1875 * regformats/s390-linux32v1.dat: Regenerate.
1876 * regformats/s390-linux32v2.dat: Regenerate.
1877 * regformats/s390-linux64.dat: Regenerate.
1878 * regformats/s390-linux64v1.dat: Regenerate.
1879 * regformats/s390-linux64v2.dat: Regenerate.
1880 * regformats/s390-te-linux64.dat: Regenerate.
1881 * regformats/s390x-linux64.dat: Regenerate.
1882 * regformats/s390x-linux64v1.dat: Regenerate.
1883 * regformats/s390x-linux64v2.dat: Regenerate.
1884 * regformats/s390x-te-linux64.dat: Regenerate.
1885 * regformats/tic6x-c62x-linux.dat: Regenerate.
1886 * regformats/tic6x-c62x.dat: Regenerate.
1887 * regformats/tic6x-c64x-linux.dat: Regenerate.
1888 * regformats/tic6x-c64x.dat: Regenerate.
1889 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1890 * regformats/tic6x-c64xp.dat: Regenerate.
1892 2014-10-01 Pedro Alves <palves@redhat.com>
1894 * features/Makefile: Update comments.
1895 (XMLTOC): List all xml files we build C files from.
1896 (clean-cfiles): New rule.
1898 2014-10-01 Pedro Alves <palves@redhat.com>
1900 * features/i386/amd64-avx512-linux.c: Regenerate.
1901 * features/i386/amd64-avx512.c: Regenerate.
1902 * features/i386/x32-avx512-linux.c: Regenerate.
1903 * features/i386/x32-avx512.c: Regenerate.
1905 2014-10-01 Pedro Alves <palves@redhat.com>
1907 * features/Makefile (WHICH): Remove arm-with-m,
1908 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1910 2014-10-01 Pedro Alves <palves@redhat.com>
1912 * features/Makefile (clean): New rule.
1914 2014-10-01 Pedro Alves <palves@redhat.com>
1916 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1917 (zmm14h): Add missing end quotes.
1919 2014-10-01 Pedro Alves <palves@redhat.com>
1921 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1922 * features/aarch64.c: Regenerate.
1924 2014-09-30 Don Breazeal <donb@codesourcery.com>
1926 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1927 code so as to work with follow_fork_inferior.
1928 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1929 (inf_ttrace_create_inferior): Remove reference to
1930 inf_ttrace_vfork_ppid.
1931 (inf_ttrace_attach): Ditto.
1932 (inf_ttrace_detach): Ditto.
1933 (inf_ttrace_kill): Use current_inferior instead of
1934 inf_ttrace_vfork_ppid.
1935 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1936 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1937 inferior away from the parent.
1938 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1940 (follow_fork_inferior): New function.
1941 (follow_inferior_reset_breakpoints): Make function static.
1942 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1943 * linux-nat.c (linux_child_follow_fork): Move target-independent
1944 code to infrun.c:follow_fork_inferior.
1946 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1948 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1949 * gdbarch.c: Regenerate.
1950 * gdbarch.h: Likewise.
1951 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1952 gdbarch method 'regset_from_core_section'.
1953 (get_core_register_section): Remove handling for the case that
1954 regset == NULL and regset_from_core_section is defined.
1955 (get_core_registers): Drop check for deleted method.
1956 * procfs.c (procfs_do_thread_registers): Adjust comment.
1958 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1960 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1961 (linux_nat_make_corefile_notes): Remove.
1962 (linux_target_install_ops): Do not set target method
1963 'make_corefile_notes'.
1964 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1966 (linux_corefile_thread_callback): Instead of args->collect, call
1967 linux_collect_thread_registers.
1968 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1969 NULL unless there is a regset iterator.
1970 (linux_make_corefile_notes_1): Remove.
1971 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1972 by linux_make_corefile_notes.
1973 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1975 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1977 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1978 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1980 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1982 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1984 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1985 (xtensa_iterate_over_regset_sections): New.
1986 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1988 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1990 * vax-tdep.c (vax_regset_from_core_section): Remove.
1991 (vax_iterate_over_regset_sections): New.
1992 (vax_gdbarch_init): Adjust gdbarch initialization.
1994 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1996 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1997 (tilegx_regset_from_core_section): Remove.
1998 (tilegx_iterate_over_regset_sections): New.
1999 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2001 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2003 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2004 (sparc_iterate_over_regset_sections): New.
2005 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2006 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2008 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2009 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2010 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2011 target method 'make_corefile_notes'.
2013 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2015 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2016 'sizeof_gregset' and 'sizeof_fpregset'.
2017 * sh-tdep.c (sh_regset_from_core_section): Remove.
2018 (sh_iterate_over_regset_sections): New.
2019 (sh_gdbarch_init): Adjust gdbarch initialization.
2020 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2022 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2025 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2027 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2028 (score7_linux_iterate_over_regset_sections): New.
2029 (score_gdbarch_init): Adjust gdbarch initialization.
2031 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2033 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2035 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2036 method 'make_corefile_notes'.
2037 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2038 (ppcfbsd_regset_from_core_section): Remove.
2039 (ppcfbsd_iterate_over_regset_sections): New.
2040 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2042 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2043 (ppcnbsd_iterate_over_regset_sections): New.
2044 (ppcnbsd_init_abi): Adjust.
2045 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2046 (ppcobsd_iterate_over_regset_sections): New.
2047 (ppcobsd_init_abi): Adjust.
2048 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2049 (rs6000_aix_iterate_over_regset_sections): New.
2050 (rs6000_aix_init_osabi): Adjust.
2052 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2054 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2055 (nios2_regset_from_core_section): Remove.
2056 (nios2_iterate_over_regset_sections): New.
2057 (nios2_linux_init_abi): Adjust gdbarch initialization.
2059 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2061 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2062 (am33_iterate_over_regset_sections): New.
2063 (am33_linux_init_osabi): Adjust gdbarch initialization.
2065 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2067 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2068 (mips_linux_iterate_over_regset_sections): New.
2069 (mips_linux_init_abi): Adjust gdbarch initialization.
2070 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2071 (mips64obsd_iterate_over_regset_sections): New.
2072 (mips64obsd_init_abi): Adjust.
2073 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2074 (mipsnbsd_iterate_over_regset_sections): New.
2075 (mipsnbsd_init_abi): Adjust.
2077 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2079 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2080 (m88k_iterate_over_regset_sections): New.
2081 (m88k_gdbarch_init): Adjust gdbarch initialization.
2083 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2085 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2086 (ia64_linux_iterate_over_regset_sections): New.
2087 (ia64_linux_init_abi): Adjust gdbarch initialization.
2089 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2091 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2092 (m68kbsd_iterate_over_regset_sections): New.
2093 (m68kbsd_init_abi): Adjust gdbarch initialization.
2094 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2095 (m68k_linux_iterate_over_regset_sections): New.
2096 (m68k_linux_init_abi): Adjust gdbarch initialization.
2098 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2100 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2101 (m32r_linux_regset_from_core_section): Remove.
2102 (m32r_linux_iterate_over_regset_sections): New.
2103 (m32r_linux_init_abi): Adjust gdbarch initialization.
2105 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2107 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2108 (amd64obsd_iterate_over_regset_sections): New.
2109 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2110 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2112 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2113 regset_from_core_section initialization.
2114 * i386-tdep.c (i386_regset_from_core_section): Remove.
2115 (i386_iterate_over_regset_sections): New.
2116 (i386_gdbarch_init): Adjust gdbarch initialization.
2117 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2118 (i386_iterate_over_regset_sections): New prototype.
2119 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2121 (i386obsd_aout_iterate_over_regset_sections): New.
2122 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2123 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2125 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2126 (amd64fbsd_init_abi): Call fbsd_init_abi.
2127 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2128 (i386fbsd4_init_abi): Call fbsd_init_abi.
2129 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2130 target method 'make_corefile_notes'.
2131 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2133 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2135 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2136 (hppa_hpux_iterate_over_regset_sections): New.
2137 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2138 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2139 (hppa_linux_iterate_over_regset_sections): New.
2140 (hppa_linux_init_abi): Adjust.
2141 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2142 (hppanbsd_iterate_over_regset_sections): New.
2143 (hppanbsd_init_abi): Adjust.
2144 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2145 (hppaobsd_iterate_over_regset_sections): New.
2146 (hppaobsd_init_abi): Adjust.
2148 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2150 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2151 (frv_linux_iterate_over_regset_sections): New.
2152 (frv_linux_init_abi): Adjust gdbarch initialization.
2154 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2156 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2157 (armbsd_iterate_over_regset_sections): New prototype.
2158 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2159 (armbsd_iterate_over_regset_sections): New.
2160 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2163 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2165 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2166 (alpha_linux_iterate_over_regset_sections): New.
2167 (alpha_linux_init_abi): Adjust gdbarch initialization.
2168 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2170 (alphanbsd_iterate_over_regset_sections): New prototype.
2172 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2174 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2176 (aarch64_linux_iterate_over_regset_sections): New.
2177 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2179 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2181 * fbsd-tdep.c: New file.
2182 * fbsd-tdep.h: New file.
2183 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2184 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2185 (ALLDEPFILES): Add fbsd-tdep.c.
2187 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2189 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2191 * gdbarch.h: Regenerate.
2192 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2194 (get_core_register_section): Add parameter 'regset' and use it, if
2195 set. Add parameter 'min_size' and verify the bfd section size
2197 (get_core_registers_cb): Add parameter 'regset' and pass it to
2198 get_core_register section. For the "standard" register sections
2199 ".reg" and ".reg2", set an appropriate default for human_name.
2200 (get_core_registers): Don't abort when the gdbarch has an iterator
2201 but no regset_from_core_section. Add NULL/0 for parameters
2202 'regset'/'min_size' in calls to get_core_register_section.
2203 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2204 'regset' and use it instead of calling the
2205 regset_from_core_section gdbarch method.
2206 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2207 * i386-tdep.c (i386_supply_xstateregset)
2208 (i386_collect_xstateregset, i386_xstateregset): Moved to
2210 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2212 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2213 core file support only if the regset iterator hasn't been set.
2214 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2215 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2216 Moved from i386-tdep.c and renamed to *_linux*.
2217 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2218 each callback invocation. Allow any .reg-xstate size when reading
2220 * amd64-tdep.c (amd64_supply_xstateregset)
2221 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2223 (amd64_regset_from_core_section): Remove.
2224 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2225 install an amd64-specific regset_from_core_section gdbarch method.
2226 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2227 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2228 Moved from amd64-tdep.c and renamed to *_linux*.
2229 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2230 to each callback invocation. Allow any .reg-xstate size when
2231 reading from a core file.
2232 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2233 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2234 each callback invocation.
2235 (arm_linux_init_abi): No longer set the regset_from_core_section
2237 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2238 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2239 each callback invocation.
2240 (ppc_linux_init_abi): No longer set the regset_from_core_section
2242 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2243 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2244 (s390_regset_from_core_section): Remove.
2245 (s390_iterate_over_regset_sections): Add regset parameter to each
2246 callback invocation.
2247 (s390_gdbarch_init): No longer set the regset_from_core_section
2248 gdbarch method. Drop initialization of deleted tdep fields.
2250 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2252 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2253 (amd64_linux_iterate_over_regset_sections): New.
2254 (amd64_linux_init_abi_common): Don't install the regset section
2255 list, but the new iterator in gdbarch.
2256 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2257 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2258 (arm_linux_iterate_over_regset_sections): ...here. New function.
2259 (arm_linux_init_abi): Set iterator instead of section list.
2260 * corelow.c (get_core_registers_cb): New function, logic moved
2262 (get_core_registers): ...loop body here. Use new iterator method
2263 instead of walking through the regset section list.
2264 * gdbarch.sh: Remove 'core_regset_sections'. New method
2265 'iterate_over_regset_sections'. New typedef
2266 'iterate_over_regset_sections_cb'.
2267 * gdbarch.c: Regenerate.
2268 * gdbarch.h: Likewise.
2269 * i386-linux-tdep.c (i386_linux_regset_sections)
2270 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2272 (i386_linux_iterate_over_regset_sections): New.
2273 (i386_linux_init_abi): Don't choose a regset section list, but
2274 install new iterator in gdbarch.
2275 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2276 (linux_collect_regset_section_cb): New function, logic moved
2278 (linux_collect_thread_registers): ...loop body here. Use iterator
2279 method instead of walking through list.
2280 (linux_make_corefile_notes_1): Check for presence of iterator
2281 method instead of regset section list.
2282 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2283 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2284 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2285 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2286 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2287 (ppc_linux_init_abi): Don't choose from above regset section
2288 lists, but install new iterator in gdbarch.
2289 * regset.h (struct core_regset_section): Remove.
2290 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2291 have_linux_v1, have_linux_v2, and have_tdb.
2292 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2293 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2294 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2295 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2296 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2297 (s390_iterate_over_regset_sections): ...here. New function. Use
2299 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2300 regset section lists, but install new iterator.
2302 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2304 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2306 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2308 * progspace.c (print_program_space): Don't prune program spaces
2309 before printing them.
2311 2014-09-25 Pedro Alves <palves@redhat.com>
2313 * infrun.c (user_visible_resume_ptid): Don't check
2314 singlestep_breakpoints_inserted_p.
2316 2014-09-25 Pedro Alves <palves@redhat.com>
2318 * breakpoint.c (should_be_inserted): Add debug output.
2320 2014-09-25 Pedro Alves <palves@redhat.com>
2322 * infrun.c (stepping_past_instruction_at)
2323 (clear_exit_convenience_vars): Point at infrun.h instead of
2325 (handle_signal_stop): Fix typo.
2327 2014-09-24 Yao Qi <yao@codesourcery.com>
2329 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2332 2014-09-22 Gary Benson <gbenson@redhat.com>
2334 * target.c (target_stop): Updated comment.
2336 2014-09-22 Gary Benson <gbenson@redhat.com>
2338 * target/target.h (target_stop_ptid): Renamed as...
2339 (target_stop_and_wait): New function. Updated comment.
2341 (target_continue_ptid): Renamed as...
2342 (target_continue_no_signal): New function. Updated comment.
2345 2014-09-22 Pedro Alves <palves@redhat.com>
2347 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2349 * breakpoint.c (enum ugll_insert_mode): New enum.
2350 (always_inserted_mode): Now a plain boolean.
2351 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2352 (breakpoints_always_inserted_mode): Delete.
2353 (breakpoints_should_be_inserted_now): New function.
2354 (insert_breakpoints): Pass UGLL_INSERT to
2355 update_global_location_list instead of calling
2356 insert_breakpoint_locations manually.
2357 (create_solib_event_breakpoint_1): New, factored out from ...
2358 (create_solib_event_breakpoint): ... this.
2359 (create_and_insert_solib_event_breakpoint): Use
2360 create_solib_event_breakpoint_1 instead of calling
2361 insert_breakpoint_locations manually.
2362 (update_global_location_list): Change parameter type from boolean
2363 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2364 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2365 (update_global_location_list_nothrow): Change parameter type from
2366 boolean to enum ugll_insert_mode.
2367 (_initialize_breakpoint): "breakpoint always-inserted" option is
2368 now a boolean command. Update help text.
2369 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2370 (breakpoints_should_be_inserted_now): New declaration.
2371 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2372 Remove breakpoints_always_inserted_mode check.
2373 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2374 * remote.c (remote_start_remote): Likewise.
2376 2014-09-22 Pedro Alves <palves@redhat.com>
2378 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2379 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2380 Instead, pass UGLL_INSERT to update_global_location_list.
2381 (update_global_location_list): Change parameter type from boolean
2382 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2383 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2384 (create_solib_event_breakpoint_1): New, factored out from ...
2385 (create_solib_event_breakpoint): ... this.
2386 (create_and_insert_solib_event_breakpoint): Use
2387 create_solib_event_breakpoint_1 instead of calling
2388 insert_breakpoint_locations manually.
2389 (update_global_location_list): Handle UGLL_INSERT.
2391 2014-09-22 Pedro Alves <palves@redhat.com>
2393 * breakpoint.c (enum ugll_insert_mode): New enum.
2394 (update_global_location_list)
2395 (update_global_location_list_nothrow): Change parameter type from
2396 boolean to enum ugll_insert_mode. All callers adjusted.
2398 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2400 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2401 SystemTap support in GDB.
2403 2014-09-19 Don Breazeal <donb@codesourcery.com>
2405 * linux-nat.c (linux_handle_extended_wait): Call
2406 linux_ptrace_get_extended_event.
2407 (wait_lwp): Call linux_is_extended_waitstatus.
2408 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2409 and linux_is_extended_waitstatus.
2410 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2411 linux_ptrace_get_extended_event.
2412 (linux_ptrace_get_extended_event): New function.
2413 (linux_is_extended_waitstatus): New function.
2414 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2415 (linux_is_extended_waitstatus): New declarations.
2417 2014-09-19 Yao Qi <yao@codesourcery.com>
2419 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2420 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2421 comments. Callers update.
2422 (dwarf_decode_lines): Likewise.
2423 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2424 comments. Skip the line table if 'lowpc' is greater than
2425 'address'. Don't check
2426 dwarf2_per_objfile->has_section_at_zero.
2428 2014-09-18 Doug Evans <dje@google.com>
2430 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2431 * python/py-symtab.c (stpy_get_producer): New function.
2432 (symtab_object_getset): Add "producer" attribute.
2434 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
2437 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2438 (do_captured_read_memory_integer): Remove.
2439 (safe_read_memory_integer): Use target_read_memory directly instead
2440 of catching errors in do_captured_read_memory_integer.
2442 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2444 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2447 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2449 * objc-lang.c (find_implementation_from_class): Remove dead code.
2451 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2454 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2455 "fprintf_unfiltered (gdb_stdlog...)".
2457 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2459 PR breakpoints/12526
2460 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2462 * breakpoint.c (watch_command_1): Use these fields to retain
2463 bitfield information.
2464 (extract_bitfield_from_watchpoint_value): New function.
2465 (watchpoint_check): Use it.
2466 (update_watchpoint): Use it. Optimize the address and length of a
2467 HW watchpoint pointing to a bitfield.
2468 * value.h (unpack_value_bitfield): New prototype.
2469 * value.c (unpack_value_bitfield): Make extern.
2471 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2473 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2475 * gnu-nat.c (inf_threads): New function.
2476 * gnu-nat.h (inf_threads_ftype): New typedef.
2477 (inf_threads): New declaration.
2478 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2479 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2480 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2481 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2482 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2483 (i386_gnu_dr_get_control): New functions.
2484 (reg_addr): New structure.
2485 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2486 i386 debugging register hooks.
2487 * NEWS: Mention this.
2489 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2491 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2492 vector data transfer instructions.
2493 (arm_record_coproc_data_proc): Updated.
2495 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2497 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2498 arm_record_exreg_ld_st_insn.
2499 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2502 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2504 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2505 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2506 processing instructions.
2508 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2510 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2511 for advance SIMD struct ld/st insn.
2512 (thumb2_record_decode_insn_handler): Replace stub handler with
2513 thumb2_record_asimd_struct_ld_st.
2515 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2517 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2518 for asimd, vfp and coprocessor insns.
2519 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2520 and coprocessor insns.
2521 (thumb2_record_coproc_insn): New function.
2522 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2524 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2527 2014-09-13 Doug Evans <xdje42@gmail.com>
2529 * NEWS: Mention new "queue-signal" command.
2530 * infcmd.c (queue_signal_command): New function.
2531 (_initialize_infcmd): Add new queue-signal command.
2533 2014-09-13 Doug Evans <xdje42@gmail.com>
2535 * linux-nat.c (wait_lwp): Add debugging printf.
2536 (linux_nat_wait_1): Ditto.
2538 2014-09-12 Pedro Alves <palves@redhat.com>
2540 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2541 (create_and_insert_solib_event_breakpoint): New functions.
2542 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2543 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2544 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2545 (remove_dbx_link_breakpoint): Delete function.
2546 (insert_dbx_link_bpt_in_file): Use
2547 create_and_insert_solib_event_breakpoint instead of
2548 deprecated_insert_raw_breakpoint.
2549 (procfs_wait): Don't check whether we hit __dbx_link here.
2550 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2552 * solib-irix.c (base_breakpoint): Delete global.
2553 (disable_break): Delete function.
2554 (enable_break): Use create_solib_event_breakpoint
2555 instead of deprecated_insert_raw_breakpoint.
2556 (irix_solib_handle_event): New function.
2557 (irix_solib_create_inferior_hook): Don't run the target or disable
2558 the mapping-complete breakpoint here.
2559 (_initialize_irix_solib): Install irix_solib_handle_event as
2560 so_ops->handle_event hook.
2562 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2563 Ulrich Weigand <uweigand@de.ibm.com>
2566 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2567 instead of read_memory_unsigned_integer.
2569 2014-09-12 Gary Benson <gbenson@redhat.com>
2571 * nat/linux-waitpid.c: Include common-defs.h.
2572 [GDBSERVER]: Add FIXME comment.
2573 [!GDBSERVER]: Don't include defs.h or signal.h.
2574 (linux_debug) [!GDBSERVER]: Remove empty block.
2576 2014-09-12 Gary Benson <gbenson@redhat.com>
2578 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2579 Don't include defs.h or server.h.
2581 2014-09-12 Gary Benson <gbenson@redhat.com>
2583 * nat/linux-btrace.c: Include common-defs.h.
2584 Don't include defs.h, server.h or gdbthread.h.
2585 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2587 2014-09-12 Gary Benson <gbenson@redhat.com>
2589 * common/agent.c: Include common-defs.h.
2590 Don't include defs.h or server.h.
2591 * common/buffer.c: Likewise.
2592 * common/common-debug.c: Likewise.
2593 * common/common-utils.c: Likewise.
2594 * common/errors.c: Likewise.
2595 * common/filestuff.c: Likewise.
2596 * common/format.c: Likewise.
2597 * common/gdb_vecs.c: Likewise.
2598 * common/print-utils.c: Likewise.
2599 * common/ptid.c: Likewise.
2600 * common/rsp-low.c: Likewise.
2601 * common/signals.c: Likewise.
2602 * common/vec.c: Likewise.
2603 * common/xml-utils.c: Likewise.
2604 * nat/linux-osdata.c: Likewise.
2605 * nat/linux-procfs.c: Likewise.
2606 * nat/linux-ptrace.c: Likewise.
2607 * nat/mips-linux-watch.c: Likewise.
2608 * target/waitstatus.c: Likewise.
2610 2014-09-12 Tom Tromey <tromey@redhat.com>
2611 Gary Benson <gbenson@redhat.com>
2613 * common/common-regcache.h: New file.
2614 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2615 * regcache.h: Include common-regcache.h.
2616 (regcache_read_pc): Don't declare.
2617 * regcache.c (get_thread_regcache_for_ptid): New function.
2618 * nat/linux-btrace.c: Don't include regcache.h.
2619 Include common-regcache.h.
2620 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2622 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2624 * regcache.h (struct regset): Declare.
2626 2014-09-11 Pedro Alves <palves@redhat.com>
2629 * main.c: Include "infrun.h".
2630 (catch_command_errors, catch_command_errors_const): Wait for the
2631 foreground command to complete.
2632 * top.c (maybe_wait_sync_command_done): New function, factored out
2634 (maybe_wait_sync_command_done): ... here.
2635 * top.h (maybe_wait_sync_command_done): New declaration.
2637 2014-09-11 Tom Tromey <tromey@redhat.com>
2638 Gary Benson <gbenson@redhat.com>
2640 * common/symbol.h: New file.
2641 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2642 * minsyms.c (find_minimal_symbol_address): New function.
2643 * common/agent.c: Include common/symbol.h.
2644 [!GDBSERVER]: Don't include objfiles.h.
2645 (agent_look_up_symbols): Use find_minimal_symbol_address.
2647 2014-09-11 Gary Benson <gbenson@redhat.com>
2649 * target/target.h (target_stop_ptid, target_continue_ptid):
2651 * target.c (target_stop_ptid, target_continue_ptid): New
2653 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2654 (agent_run_command): Always use target_stop_ptid and
2655 target_continue_ptid.
2657 2014-09-11 Tom Tromey <tromey@redhat.com>
2658 Gary Benson <gbenson@redhat.com>
2660 * target/target.h: New file.
2661 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2662 * target.h: Include target/target.h.
2663 (target_read_memory, target_write_memory): Don't declare.
2664 * target.c (target_read_uint32): New function.
2665 * common/agent.c: Include target/target.h.
2666 [!GDBSERVER]: Don't include target.h.
2667 (helper_thread_id): Type changed to uint32_t.
2668 (agent_get_helper_thread_id): Use target_read_uint32.
2669 (agent_run_command): Always use target_read_memory and
2670 target_write_memory.
2671 (agent_capability): Type changed to uint32_t.
2672 (agent_capability_check): Use target_read_uint32.
2674 2014-09-11 Gary Benson <gbenson@redhat.com>
2676 * common/common-debug.h (show_debug_regs): Declare.
2677 * common/common-debug.c (show_debug_regs): Define.
2678 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2679 all uses with show_debug_regs. Replace all uses that considered
2680 debug_hw_points as a multi-value integer with straight boolean
2682 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2683 with show_debug_regs.
2684 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2685 all uses with show_debug_regs.
2686 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2687 uses with show_debug_regs.
2689 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2691 * findvar.c (address_from_register): Handle targets requiring
2692 a special conversion routine even for plain pointer types.
2694 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2696 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2697 (store_register): Do not call exec_one_dummy_insn.
2699 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2701 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2702 dereference it first. Use value_enclosing_type instead of
2704 (ada_array_length): Likewise.
2706 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2708 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2709 Adjust function implementation and documentation accordingly.
2710 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2711 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2712 Update call to ada_value_ptr_subscript.
2714 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2716 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2717 instead of VAL's type.
2719 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2721 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2723 2014-09-09 Doug Evans <xdje42@gmail.com>
2726 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2727 last parameter to pkg-config, not first.
2728 * configure.ac: Pass --with-guile provided pkg-config path to
2729 GDB_GUILE_PROGRAM_NAMES.
2730 * configure: Regenerate.
2732 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2734 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2737 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2739 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2740 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2741 the list of sections determining GDB_OSABI_IRIX.
2743 2014-09-09 James Hogan <james.hogan@imgtec.com>
2745 * MAINTAINERS (Write After Approval): Add "James Hogan".
2747 2014-09-09 James Hogan <james.hogan@imgtec.com>
2749 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2751 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2753 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2755 2014-09-08 Doug Evans <xdje42@gmail.com>
2758 * guile.c: #include <signal.h>.
2759 (_initialize_guile): Block SIGCHLD while initializing Guile.
2761 Replaces the following, which is reverted.
2763 2014-07-26 Doug Evans <xdje42@gmail.com>
2766 * configure.ac: Add check for header gc/gc.h.
2767 Add check for function setenv.
2768 * configure: Regenerate.
2769 * config.in: Regenerate.
2770 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2772 2014-09-08 Doug Evans <xdje42@gmail.com>
2774 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2775 with named constant. Fix style of pointer comparison.
2776 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2778 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2781 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2782 decide whether we display the command on "show user".
2783 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2784 printing command name.
2785 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2786 * cli/cli-decode.c (cli_user_command_p): Create helper function
2787 to verify whether cmd_list_element is a user-defined command.
2789 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2792 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2793 Fix goto out of TRY_CATCH.
2795 2014-09-06 Doug Evans <xdje42@gmail.com>
2796 Tom Tromey <tromey@redhat.com>
2799 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2800 $_any_caller_matches.
2801 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2802 * python/lib/gdb/function/caller_is.py: New file.
2804 2014-09-06 Doug Evans <xdje42@gmail.com>
2806 * infcmd.c (program_info): Fix typo.
2808 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2811 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2812 'number'. New variable 'has_digit'. Rewrite code to deal with
2813 subexpressions on SDT probes.
2815 2014-09-04 Pedro Alves <palves@redhat.com>
2817 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2818 the input is only one character long.
2820 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2823 * f-valprint.c (f_val_print): Specify the correct print option to
2824 use when printing integer values.
2826 2014-09-04 Gary Benson <gbenson@redhat.com>
2828 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2829 Remove code to cope with LWPs wrapped as PIDs.
2830 Add assertions to ensure no wrapped LWPs are passed.
2832 2014-09-04 Pedro Alves <palves@redhat.com>
2834 * value.c (value_ranges_copy_adjusted): New function, factored out
2836 (value_contents_copy_raw): ... here.
2837 (unpack_value_bits_as_long_1): Rename back to ...
2838 (unpack_bits_as_long): ... this. Remove 'original_value' and
2839 'result' parameters. Change return type to LONGEST.
2840 (unpack_value_bits_as_long): Delete.
2841 (unpack_value_field_as_long_1): Delete.
2842 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2843 (unpack_value_bitfield): New function.
2844 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2845 (value_fetch_lazy): Use unpack_value_bitfield.
2846 * value.h (unpack_value_bits_as_long): Delete declaration.
2848 2014-09-03 Sasha Smundak <asmundak@google.com>
2850 * python/py-frame.c (frapy_read_register): New function.
2852 2014-09-03 James Hogan <james.hogan@imgtec.com>
2854 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2855 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2857 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2860 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2862 (add_cmd): Set "completer_handle_brkchars" to NULL.
2863 * cli/cli-decode.h (struct cmd_list_element)
2864 <completer_handle_brkchars>: New field.
2865 * command.h (completer_ftype_void): New typedef.
2866 (set_cmd_completer_handle_brkchars): New prototype.
2867 * completer.c (set_gdb_completion_word_break_characters): New
2869 (complete_line_internal): Call "completer_handle_brkchars"
2870 callback from command.
2871 * completer.h: Include "command.h".
2872 (set_gdb_completion_word_break_characters): New prototype.
2873 * python/py-cmd.c (cmdpy_completer_helper): New function.
2874 (cmdpy_completer_handle_brkchars): New function.
2875 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2876 (cmdpy_init): Set completer_handle_brkchars to
2877 cmdpy_completer_handle_brkchars.
2879 2014-09-03 Gary Benson <gbenson@redhat.com>
2881 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2882 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2883 Loop conditions changed to equivalent form.
2884 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2885 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2886 ALL_DEBUG_ADDRESS_REGISTERS.
2888 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2890 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2893 2014-09-02 Doug Evans <dje@google.com>
2895 * typeprint.c (find_global_typedef): Fix comment.
2897 2014-09-02 Gary Benson <gbenson@redhat.com>
2899 * i386-nat.h: Renamed as...
2900 * x86-nat.h: New file. All type, function and variable name
2901 prefixes changed from "i386_" to "x86_". All references updated.
2902 * i386-nat.c: Renamed as...
2903 * x86-nat.c: New file. All type, function and variable name
2904 prefixes changed from "i386_" to "x86_". All references updated.
2905 * common/i386-xstate.h: Renamed as...
2906 * common/x86-xstate.h: New file. All type, function and variable
2907 name prefixes changed from "i386_" to "x86_". All references
2909 * nat/i386-cpuid.h: Renamed as...
2910 * nat/x86-cpuid.h: New file. All type, function and variable name
2911 prefixes changed from "i386_" to "x86_". All references updated.
2912 * nat/i386-gcc-cpuid.h: Renamed as...
2913 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2914 name prefixes changed from "i386_" to "x86_". All references
2916 * nat/i386-dregs.h: Renamed as...
2917 * nat/x86-dregs.h: New file. All type, function and variable name
2918 prefixes changed from "i386_" to "x86_". All references updated.
2919 * nat/i386-dregs.c: Renamed as...
2920 * nat/x86-dregs.c: New file. All type, function and variable name
2921 prefixes changed from "i386_" to "x86_". All references updated.
2923 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2925 * varobj.c (_initialize_varobj): Move to the end of file.
2927 2014-08-29 Gary Benson <gbenson@redhat.com>
2929 * common/common-exceptions.h: New file.
2930 * common/common-exceptions.c: Likewise.
2931 * Makefile.in (SFILES): Add common/common-exceptions.c.
2932 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2933 (COMMON_OBS): Add common-exceptions.o.
2934 (common-exceptions.o): New rule.
2935 * exceptions.h (common-exceptions.h): Include.
2936 (gdb_setjmp.h): Do not include.
2937 (return_reason): Moved to common-exceptions.h.
2938 (enum return_reason): Likewise.
2939 (RETURN_MASK): Likewise.
2940 (typedef return_mask): Likewise.
2941 (enum errors): Likewise.
2942 (struct gdb_exception): Likewise.
2943 (exceptions_state_mc_init): Likewise.
2944 (exceptions_state_mc_action_iter): Likewise.
2945 (exceptions_state_mc_action_iter_1): Likewise.
2946 (TRY_CATCH): Likewise.
2947 (throw_exception): Likewise.
2948 (throw_verror): Likewise.
2949 (throw_vquit): Likewise.
2950 (throw_error): Likewise.
2951 (throw_quit): Likewise.
2952 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2953 (enum catcher_action): Likewise.
2954 (struct catcher): Likewise.
2955 (current_catcher): Likewise.
2956 (catcher_list_size): Likewise.
2957 (exceptions_state_mc_init): Likewise.
2958 (catcher_pop): Likewise.
2959 (exceptions_state_mc): Likewise.
2960 (exceptions_state_mc_action_iter): Likewise.
2961 (exceptions_state_mc_action_iter_1): Likewise.
2962 (throw_exception): Likewise.
2963 (exception_messages): Likewise.
2964 (exception_messages_size): Likewise.
2965 (throw_it): Likewise.
2966 (throw_verror): Likewise.
2967 (throw_vquit): Likewise.
2968 (throw_error): Likewise.
2969 (throw_quit): Likewise.
2970 (prepare_to_throw_exception): New function.
2972 2014-08-29 Gary Benson <gbenson@redhat.com>
2974 * common/gdb_setjmp.h: New file.
2975 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2976 * configure.ac: Move sigsetjmp check...
2977 * common/common.m4: ...here.
2978 * configure: Regenerate.
2979 * cp-support.c (SIGJMP_BUF): Delete.
2980 (SIGSETJMP): Likewise.
2981 (SIGLONGJMP): Likewise.
2982 * exceptions.h (gdb_setjmp.h): Include.
2983 (setjmp.h): Do not include.
2984 (EXCEPTIONS_SIGJMP_BUF): Delete.
2985 (EXCEPTIONS_SIGSETJMP): Likewise.
2986 (EXCEPTIONS_SIGLONGJMP): Likewise.
2987 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2989 * exceptions.c: Likewise.
2991 2014-08-29 Gary Benson <gbenson@redhat.com>
2993 * cleanups.h: Moved to...
2994 * common/cleanups.h: New file.
2995 * cleanups.c: Moved to...
2996 * common/cleanups.c: New file. Include common-defs.h and
2997 cleanups.h. Do not include defs.h.
2998 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2999 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3000 (cleanups.o): New rule.
3002 2014-08-29 Gary Benson <gbenson@redhat.com>
3004 * common/errors.h (internal_warning): New declaration.
3005 (internal_vwarning): Likewise.
3006 * common/errors.c (internal_warning): New function.
3007 * utils.h (internal_warning): Don't declare.
3008 (internal_vwarning): Likewise.
3009 * utils.c (internal_warning): Removed.
3011 2014-08-29 Gary Benson <gbenson@redhat.com>
3013 * main.c (captured_main): Use warning during startup.
3014 Prefix startup warning messages with command name.
3016 2014-08-29 Gary Benson <gbenson@redhat.com>
3018 * main.c (captured_main): Handle usage errors with error.
3020 2014-08-29 Gary Benson <gbenson@redhat.com>
3022 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3023 exit pair with a call to error. Wrap the message with _().
3025 2014-08-29 Gary Benson <gbenson@redhat.com>
3027 * main.c (captured_main): Replace a fprintf/exit
3028 pair with a call to error. Wrap the message with _().
3030 2014-08-29 Gary Benson <gbenson@redhat.com>
3032 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3033 pairs with calls to error. Wrap the message with _().
3035 2014-08-29 Gary Benson <gbenson@redhat.com>
3037 * utils.c (vwarning): Protect calls to target_terminal_ours
3040 2014-08-29 Gary Benson <gbenson@redhat.com>
3042 * exceptions.c (print_flush): Protect calls to
3043 target_terminal_ours and wrap_here.
3045 2014-08-29 Gary Benson <gbenson@redhat.com>
3047 * utils.h (filtered_printing_initialized): New declaration.
3048 * utils.c (abort_with_message): New function.
3049 (internal_vproblem): Use abort_with_message for first level
3050 recursive internal problems, and if gdb_stderr is not set up.
3051 Protect calls to target_terminal_ours, begin_line and query.
3053 2014-08-28 Doug Evans <dje@google.com>
3055 * symtab.c (in_prologue): Move definition to better spot.
3056 (skip_prologue_using_sal): Ditto.
3058 2014-08-28 Doug Evans <dje@google.com>
3060 * symtab.c (find_function_start_sal): Move definition to better spot.
3062 2014-08-28 Yao Qi <yao@codesourcery.com>
3064 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3065 found_stack_adjust in forward scan. Remove condition check
3066 on found_stack_adjust which is always true. Indent the code.
3068 2014-08-28 Yao Qi <yao@codesourcery.com>
3070 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3071 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3072 (dwarf_decode_lines): Remove argument
3073 want_line_info. Remove condition check on want_line_info.
3076 2014-08-27 Doug Evans <dje@google.com>
3078 * dwarf2read.c (dwarf_record_line): Fix typo.
3080 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3082 * target.h (struct target_ops::to_terminal_save_ours): Remove
3084 (target_terminal_save_ours): Remove macro.
3085 * target-delegates.c: Regenerate.
3086 * inf-child.c (inf_child_target): Don't set the nonexistent
3087 field to_terminal_save_ours.
3088 * inferior.h (child_terminal_save_ours): Remove declaration.
3089 * terminal.h (gdb_save_tty_state): New declaration.
3090 * inflow.c (child_terminal_save_ours): Rename to ...
3091 (gdb_save_tty_state): ... this.
3092 * tui/tui.c: Include terminal.h.
3093 (tui_enable): Use gdb_save_tty_state instead of
3094 target_terminal_save_ours.
3095 (tui_disable): Likewise.
3097 2014-08-25 Doug Evans <dje@google.com>
3099 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3100 Pass NULL instead of 0 for context pointer.
3102 2014-08-25 Yao Qi <yao@codesourcery.com>
3104 * dwarf2read.c: Fix grammatical error.
3106 2014-08-24 Yao Qi <yao@codesourcery.com>
3108 * dwarf2read.c (scan_partial_symbols): Update comments.
3109 Rename argument 'need_pc' with 'set_addrmap'.
3110 (add_partial_namespace): Rename argument 'need_pc' with
3112 (add_partial_module): Likewise.
3113 (add_partial_subprogram): Likewise. Update comments.
3114 (dwarf2_name): Fix typo.
3116 2014-08-22 Doug Evans <dje@google.com>
3119 * dwarf2read.c (dwarf_record_line_p): New function.
3120 (dwarf_decode_lines_1): Ignore subsequent line number entries
3121 for the same line if any entry had a non-zero discriminator.
3123 2014-08-22 Doug Evans <dje@google.com>
3125 * buildsym.h (record_line_ftype): New typedef.
3126 (record_line): Use it.
3127 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3128 (dwarf_decode_lines_1): Call them.
3130 2014-08-22 Yao Qi <yao@codesourcery.com>
3132 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3133 (ctf_end): Remove code.
3135 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3137 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3138 (linux_make_corefile_notes): call update_thread_list, protected against
3141 2014-08-21 Pedro Alves <palves@redhat.com>
3143 * infcmd.c (attach_command): Remove comment.
3145 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3147 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3148 unsigned LONGEST to ULONGEST.
3150 2014-08-20 Pedro Alves <palves@redhat.com>
3152 * Makefile.in (check-read1): New rule.
3154 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3156 * value.c (value_from_contents_and_address): Strip resolved_type's
3157 typedef layers before checking its TYPE_DATA_LOCATION.
3159 2014-08-20 Pedro Alves <palves@redhat.com>
3161 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3163 2014-08-20 Yao Qi <yao@codesourcery.com>
3165 * amd64-tdep.c (amd64_classify): Add a blank line after the
3166 example. Move "*/" to a new line.
3167 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3168 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3169 * dwarf2read.c (psymtab_include_file_name): Likewise.
3171 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3172 Pedro Alves <palves@redhat.com>
3176 * ada-lang.c (coerce_unspec_val_to_type): Use
3177 value_contents_copy_raw.
3178 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3179 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3180 * cp-valprint.c (cp_print_value_fields): Let the common printing
3181 code handle optimized out values.
3182 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3183 * d-valprint.c (dynamic_array_type): Use
3184 value_bits_any_optimized_out.
3185 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3186 check_any_valid fields.
3187 (check_pieced_value_bits): Delete and inline ...
3188 (check_pieced_synthetic_pointer): ... here.
3189 (check_pieced_value_validity): Delete.
3190 (check_pieced_value_invalid): Delete.
3191 (pieced_value_funcs): Remove check_validity and check_any_valid
3193 (read_pieced_value): Use mark_value_bits_optimized_out.
3194 (write_pieced_value): Switch to use
3195 mark_value_bytes_optimized_out.
3196 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3197 of assuming the whole value is optimized out.
3198 * findvar.c (read_frame_register_value): Remove special handling
3199 of optimized out registers.
3200 (value_from_register): Use mark_value_bytes_optimized_out.
3201 * frame-unwind.c (frame_unwind_got_optimized): Use
3202 mark_value_bytes_optimized_out.
3203 * jv-valprint.c (java_value_print): Adjust.
3204 (java_print_value_fields): Let the common printing code handle
3205 optimized out values.
3206 * mips-tdep.c (mips_print_register): Remove special handling of
3207 optimized out registers.
3208 * opencl-lang.c (lval_func_check_validity): Delete.
3209 (lval_func_check_any_valid): Delete.
3210 (opencl_value_funcs): Remove check_validity and check_any_valid
3212 * p-valprint.c (pascal_object_print_value_fields): Let the common
3213 printing code handle optimized out values.
3214 * stack.c (read_frame_arg): Remove special handling of optimized
3215 out values. Fetch both VAL and ENTRYVAL before comparing
3216 contents. Adjust to value_available_contents_eq rename.
3217 * valprint.c (valprint_check_validity)
3218 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3219 (val_print_array_elements): Adjust.
3220 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3221 (value_bits_any_optimized_out): New function.
3222 (value_entirely_covered_by_range_vector): New function, factored
3223 out from value_entirely_unavailable.
3224 (value_entirely_unavailable): Reimplement.
3225 (value_entirely_optimized_out): New function.
3226 (insert_into_bit_range_vector): New function, factored out from
3227 mark_value_bits_unavailable.
3228 (mark_value_bits_unavailable): Reimplement.
3229 (struct ranges_and_idx): New struct.
3230 (find_first_range_overlap_and_match): New function, factored out
3231 from value_available_contents_bits_eq.
3232 (value_available_contents_bits_eq): Rename to ...
3233 (value_contents_bits_eq): ... this. Check both unavailable
3234 contents and optimized out contents.
3235 (value_available_contents_eq): Rename to ...
3236 (value_contents_eq): ... this.
3237 (allocate_value_lazy): Remove reference to the old optimized_out
3239 (allocate_optimized_out_value): Use
3240 mark_value_bytes_optimized_out.
3241 (require_not_optimized_out): Adjust to check whether the
3242 optimized_out vec is empty.
3243 (ranges_copy_adjusted): New function, factored out from
3244 value_contents_copy_raw.
3245 (value_contents_copy_raw): Also copy the optimized out ranges.
3246 Assert the destination ranges aren't optimized out.
3247 (value_contents_copy): Update comment, remove call to
3248 require_not_optimized_out.
3249 (value_contents_equal): Adjust to check whether the optimized_out
3251 (set_value_optimized_out, value_optimized_out_const): Delete.
3252 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3254 (value_entirely_optimized_out, value_bits_valid): Delete.
3255 (value_copy): Take a VEC copy of the 'optimized_out' field.
3256 (value_primitive_field): Remove special handling of optimized out.
3257 (value_fetch_lazy): Assert that lazy values have no unavailable
3258 regions. Use value_bits_any_optimized_out. Remove some special
3259 handling for optimized out values.
3260 * value.h: Add intro comment about <optimized out> and
3262 (struct lval_funcs): Remove check_validity and check_any_valid
3264 (set_value_optimized_out, value_optimized_out_const): Remove.
3265 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3267 (value_bits_any_optimized_out): New declaration.
3268 (value_bits_valid): Delete declaration.
3269 (value_available_contents_eq): Rename to ...
3270 (value_contents_eq): ... this, and extend comments.
3272 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3274 Fix -fsanitize=address on unreadable inferior strings.
3275 * valprint.c (val_print_string): Fix access before BUFFER.
3277 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3279 * target.c (target_struct_size): Remove.
3280 (target_struct_allocsize): Remove.
3281 (DEFAULT_ALLOCSIZE): Remove.
3282 (target_ops_p): New typedef.
3283 (DEF_VEC_P (target_ops_p)): New vector type.
3284 (target_structs): Change type to VEC (target_ops_p).
3285 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3286 (find_default_run_target): Rewrite for loop following changes to
3289 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3291 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3292 Adjust code accordingly. Adjust function description comment.
3294 2014-08-19 Yao Qi <yao@codesourcery.com>
3296 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3299 2014-08-19 Alan Modra <amodra@gmail.com>
3301 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3302 * config.in: Regenerate.
3303 * configure: Regenerate.
3305 2014-08-19 Tom Tromey <tromey@redhat.com>
3306 Gary Benson <gbenson@redhat.com>
3308 * common/common-debug.h: New file.
3309 * common/common-debug.c: Likewise.
3310 * debug.c: Likewise.
3311 * Makefile.in (SFILES): Add common/common-debug.c.
3312 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3313 (COMMON_OBS): Add common-debug.o and debug.o.
3314 (common-debug.o): New rule.
3315 * common/common-defs.h: Include common-debug.h.
3316 * common/agent.c (debug_agent_printf): New function.
3317 (DEBUG_AGENT): Redefine.
3318 * nat/i386-dregs.c (debug_printf): Undefine.
3320 2014-08-19 Gary Benson <gbenson@redhat.com>
3322 * common/common-defs.h: Include print-utils.h.
3323 * utils.h: Do not include print-utils.h.
3325 2014-08-19 Tom Tromey <tromey@redhat.com>
3326 Gary Benson <gbenson@redhat.com>
3328 * common/common-types.h: New file.
3329 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3330 * common/common-defs.h: Include common-types.h.
3331 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3334 2014-08-19 Tom Tromey <tromey@redhat.com>
3335 Gary Benson <gbenson@redhat.com>
3337 * common/errors.h: New file.
3338 * common/errors.c: Likewise.
3339 * Makefile.in (SFILES): Add common/errors.c.
3340 (HFILES_NO_SRCDIR): Add common/errors.h.
3341 (COMMON_OBS): Add errors.o.
3342 (errors.o): New rule.
3343 * common/common-defs.h: Include errors.h.
3344 * utils.h (perror_with_name, error, verror, warning, vwarning):
3346 * common/common-utils.h: (malloc_failure, internal_error):
3349 2014-08-19 Gary Benson <gbenson@redhat.com>
3351 * utils.c (internal_vproblem): Always print the message.
3353 2014-08-18 Doug Evans <dje@google.com>
3355 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3357 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3359 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3360 Return 0 if TYPE is dynamic.
3361 (print_range): Add handling of dynamic ranges.
3363 2014-08-18 Keven Boell <keven.boell@intel.com>
3364 Joel Brobecker <brobecker@adacore.com>
3366 * gdbtypes.h (struct main_type): Add field "data_location".
3367 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3368 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3369 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3370 a dynamic data location.
3371 (resolve_dynamic_type): Add DW_AT_data_location handling.
3372 (copy_recursive, copy_type): Copy the data_location information
3374 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3375 * value.c (value_from_contents_and_address): Add
3376 DW_AT_data_location handling.
3378 2014-08-18 Keven Boell <keven.boell@intel.com>
3379 Joel Brobecker <brobecker@adacore.com>
3381 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3382 field "get_object_address".
3383 * dwarf2expr.c (execute_stack_op): Add handling for
3384 DW_OP_push_object_address.
3385 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3386 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3387 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3388 (dwarf_expr_get_obj_addr): New function.
3389 (dwarf_expr_ctx_funcs): Add get_object_address field.
3390 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3391 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3392 (dwarf2_evaluate_property): Add parameter "address". Use it.
3393 (needs_get_obj_addr): New function.
3394 (needs_frame_ctx_funcs): Add get_object_address field.
3395 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3396 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3397 (resolve_dynamic_array): Likewise.
3399 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3401 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3402 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3403 fixed value for records and unions for which some GNAT encodings
3406 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3408 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3409 rewrite to avoid "else if" and "else" constructs. Should be
3410 a no-op in practice.
3412 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3414 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3417 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3420 * eval.c: Update all calls to find_overload_match.
3421 * valarith.c: Likewise.
3422 (value_user_defined_cpp_op, value_user_defined_op): New
3423 argument NOSIDE. Update all callers.
3424 * valops.c (find_overload_match): New argument NOSIDE.
3425 * value.h (find_overload_match): Update signature.
3427 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3429 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3430 'items' methods instead of 'iteritems' method on dictionaries.
3432 2014-08-15 Doug Evans <dje@google.com>
3434 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3437 2014-08-15 Doug Evans <dje@google.com>
3439 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3441 2014-08-15 Doug Evans <dje@google.com>
3443 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3445 2014-08-15 Doug Evans <dje@google.com>
3447 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3450 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3452 * dcache.h: Include target.h, to avoid compile time warnings.
3454 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3456 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3457 frame_info" partial declaration.
3458 * gdbarch.h: Regenerate.
3460 2014-08-15 Yao Qi <yao@codesourcery.com>
3462 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3463 Add parameter 'decode_for_pst_p'. Callers update.
3465 2014-08-13 Yao Qi <yao@codesourcery.com>
3468 * configure.ac: Use local variable 'pos'.
3469 * configure: Regenerated.
3471 2014-08-11 Doug Evans <dje@google.com>
3473 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3474 message, it is redundant with "Reading symbols from ..." message.
3476 2014-08-10 Doug Evans <xdje42@gmail.com>
3478 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3480 2014-08-09 Yao Qi <yao@codesourcery.com>
3483 * remote.c (remote_xfer_partial): Remove dead code.
3485 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3487 * ia64-linux-tdep.c: Include "regset.h".
3488 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3489 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3490 (ia64_linux_supply_fpregset): New function.
3491 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3492 (ia64_linux_regset_from_core_section): New function.
3493 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3496 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3498 * m68klinux-tdep.c: Include "regset.h".
3499 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3500 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3501 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3502 (m68k_linux_regset_from_core_section): New function.
3503 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3506 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3508 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3509 function. Move logic to...
3510 (tilegx_linux_regmap): ... this new register map.
3511 (tilegx_linux_regset): Refer to register map, replace supply
3512 method by regcache_supply_regset, and add collect method.
3513 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3514 TILEGX_FIRST_EASY_REGNUM.
3516 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3518 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3519 that calls regcache_supply_regset and handles the EPC register
3520 separately. Move main logic to...
3521 (score7_linux_gregmap): ... this new register map.
3522 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3523 (score7_linux_gregset): Refer to register map. Add collect method.
3524 (score7_linux_regset_from_core_section): Replace
3525 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3526 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3527 (struct regset): Delete unused forward declaraction.
3528 (struct pt_regs): Delete structure definition.
3529 (elf_gregset_t): Delete typedef.
3531 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3533 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3534 (nios2_core_regset): Add collect method.
3536 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3538 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3539 platform-independent and don't write to read-only input buffer.
3540 (m32r_linux_collect_gregset): New function.
3541 (m32r_linux_gregset): Add collect method.
3543 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3545 * hppa-linux-tdep.c (greg_map): Rename to...
3546 (hppa_linux_gregmap): ... this. Also convert to
3547 regcache_map_entry format.
3548 (hppa_linux_supply_regset): Delete function.
3549 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3550 (hppa_linux_fpregmap): ... this new register map.
3551 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3552 register map, replace supply method by regcache_supply_regset, and
3553 add collect method regcache_collect_regset.
3555 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3557 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3558 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3559 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3560 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3561 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3562 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3563 (frv_linux_supply_gregset): Replace main logic by call to
3564 regcache_supply_regset, but keep clearing gr32-gr63.
3565 (frv_linux_supply_fpregset): Delete function.
3566 (frv_linux_gregset): Refer to appropriate register map and add
3567 regcache_collect_regset as the collect method.
3568 (frv_linux_fpregset): Likewise. Also exchange the supply method
3569 by regcache_supply_regset.
3571 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3573 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3574 by call to alpha_supply_int_regs.
3575 (alpha_linux_collect_gregset): New function.
3576 (alpha_linux_supply_fpregset): Replace logic by call to
3577 alpha_supply_fp_regs.
3578 (alpha_linux_collect_fpregset): New function.
3579 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3581 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3583 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3584 by call to regcache_collect_regset.
3585 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3586 instead of aarch64_linux_supply_gregset/_fpregset.
3587 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3588 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3589 header file instead.
3590 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3591 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3592 functions. Move logic to ...
3593 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3595 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3596 refer to new register maps, replace *_regset_from_core by
3597 regcache_supply_regset, and also use regcache_collect_regset.
3598 * aarch64-linux-tdep.h: Include "regset.h".
3599 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3601 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3602 macros, moved from C source file.
3603 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3604 variable declarations.
3606 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3608 * s390-linux-nat.c: Include "regset.h".
3609 (regmap_gregset): Delete macro.
3610 (s390_64_regmap_gregset): New register map for
3611 regcache_supply/_collect_regset.
3612 (s390_64_gregset): New regset.
3613 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3614 (regmap_fpregset): Delete macro.
3615 (s390_native_supply, s390_native_collect): Delete functions.
3616 (supply_gregset, fill_gregset): Replace s390-specific regmap
3617 handling by a call to regcache_supply/_collect_regset.
3618 (supply_fpregset, fill_fpregset): Call regcache_supply/
3619 _collect_regset instead of s390_native_supply/_collect.
3620 (fetch_regset, store_regset): Likewise. Also change the last
3621 parameter to a regset instead of a regmap.
3622 (s390_linux_fetch_inferior_registers)
3623 (390_linux_store_inferior_registers): Adjust last parameter in
3624 calls to fetch_regset and store_regset.
3625 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3626 (s390_gregmap): ... this. Also make static const and convert to
3627 regcache_map_entry format.
3628 (s390x_regmap_gregset): Delete.
3629 (s390_regmap_fpregset): Rename to...
3630 (s390_fpregmap): ... this. Make static const and convert to
3631 regcache_map_entry format.
3632 (s390_regmap_upper, s390_regmap_last_break)
3633 (s390x_regmap_last_break, s390_regmap_system_call)
3634 (s390_regmap_tdb): Likewise.
3635 (s390_supply_regset, s390_collect_regset): Remove functions.
3636 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3638 (s390_gregset, s390_fpregset, s390_upper_regset)
3639 (s390_last_break_regset, s390x_last_break_regset)
3640 (s390_system_call_regset, s390_tdb_regset): Make global and
3641 replace s390_supply/_collect_regset by regcache_supply/
3643 (s390x_gregset): Delete.
3644 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3645 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3646 (s390_regmap_fpregset, s390_regmap_last_break)
3647 (s390x_regmap_last_break, s390_regmap_system_call)
3648 (s390_regmap_tdb): Delete global variable declarations.
3649 (s390_gregset, s390_fpregset, s390_last_break_regset)
3650 (s390x_last_break_regset, s390_system_call_regset)
3651 (s390_tdb_regset): New global variable declarations.
3653 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3655 * regcache.c: Include "regset.h".
3656 (regcache_transfer_regset): New local function.
3657 (regcache_supply_regset, regcache_collect_regset): New functions.
3658 * regcache.h (struct regcache_map_entry): New structure.
3659 (REGCACHE_MAP_SKIP): New enum value.
3660 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3662 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3664 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3665 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3666 (ppc_linux_collect_gregset ): Likewise.
3667 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3668 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3669 (ppc_collect_vrregset): Likewise.
3670 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3673 2014-08-07 Yao Qi <yao@codesourcery.com>
3675 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3676 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3677 * remote.c (remote_read_bytes): Likewise.
3679 2014-08-07 Yao Qi <yao@codesourcery.com>
3681 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3683 2014-08-07 Yao Qi <yao@codesourcery.com>
3686 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3687 TARGET_XFER_OK instead of 0.
3689 2014-08-07 Gary Benson <gbenson@redhat.com>
3691 * common/common-defs.h: Include errno.h.
3692 * defs.h: Do not include errno.h.
3693 * ada-typeprint.c: Likewise.
3694 * c-typeprint.c: Likewise.
3695 * core-regset.c: Likewise.
3696 * corefile.c: Likewise.
3697 * corelow.c: Likewise.
3698 * event-loop.c: Likewise.
3699 * f-typeprint.c: Likewise.
3700 * gnu-nat.c: Likewise.
3701 * go32-nat.c: Likewise.
3702 * i386gnu-nat.c: Likewise.
3703 * m2-typeprint.c: Likewise.
3704 * nat/linux-btrace.c: Likewise.
3705 * p-typeprint.c: Likewise.
3706 * procfs.c: Likewise.
3707 * remote-sim.c: Likewise.
3708 * rs6000-nat.c: Likewise.
3709 * target.c: Likewise.
3710 * typeprint.c: Likewise.
3711 * ui-file.c: Likewise.
3712 * valops.c: Likewise.
3713 * valprint.c: Likewise.
3715 2014-08-07 Gary Benson <gbenson@redhat.com>
3717 * common/common-defs.h: Include string.h.
3718 * aarch64-tdep.c: Do not include string.h.
3719 * ada-exp.y: Likewise.
3720 * ada-lang.c: Likewise.
3721 * ada-lex.l: Likewise.
3722 * ada-typeprint.c: Likewise.
3723 * ada-valprint.c: Likewise.
3724 * aix-thread.c: Likewise.
3725 * alpha-linux-tdep.c: Likewise.
3726 * alpha-mdebug-tdep.c: Likewise.
3727 * alpha-nat.c: Likewise.
3728 * alpha-osf1-tdep.c: Likewise.
3729 * alpha-tdep.c: Likewise.
3730 * alphanbsd-tdep.c: Likewise.
3731 * amd64-dicos-tdep.c: Likewise.
3732 * amd64-linux-tdep.c: Likewise.
3733 * amd64-nat.c: Likewise.
3734 * amd64-sol2-tdep.c: Likewise.
3735 * amd64fbsd-tdep.c: Likewise.
3736 * amd64obsd-tdep.c: Likewise.
3737 * arch-utils.c: Likewise.
3738 * arm-linux-nat.c: Likewise.
3739 * arm-linux-tdep.c: Likewise.
3740 * arm-tdep.c: Likewise.
3741 * arm-wince-tdep.c: Likewise.
3742 * armbsd-tdep.c: Likewise.
3743 * armnbsd-nat.c: Likewise.
3744 * armnbsd-tdep.c: Likewise.
3745 * armobsd-tdep.c: Likewise.
3746 * avr-tdep.c: Likewise.
3747 * ax-gdb.c: Likewise.
3748 * ax-general.c: Likewise.
3749 * bcache.c: Likewise.
3750 * bfin-tdep.c: Likewise.
3751 * breakpoint.c: Likewise.
3752 * build-id.c: Likewise.
3753 * buildsym.c: Likewise.
3754 * c-exp.y: Likewise.
3755 * c-lang.c: Likewise.
3756 * c-typeprint.c: Likewise.
3757 * c-valprint.c: Likewise.
3758 * charset.c: Likewise.
3759 * cli-out.c: Likewise.
3760 * cli/cli-cmds.c: Likewise.
3761 * cli/cli-decode.c: Likewise.
3762 * cli/cli-dump.c: Likewise.
3763 * cli/cli-interp.c: Likewise.
3764 * cli/cli-logging.c: Likewise.
3765 * cli/cli-script.c: Likewise.
3766 * cli/cli-setshow.c: Likewise.
3767 * cli/cli-utils.c: Likewise.
3768 * coffread.c: Likewise.
3769 * common/agent.c: Likewise.
3770 * common/buffer.c: Likewise.
3771 * common/buffer.h: Likewise.
3772 * common/common-utils.c: Likewise.
3773 * common/filestuff.c: Likewise.
3774 * common/filestuff.c: Likewise.
3775 * common/format.c: Likewise.
3776 * common/print-utils.c: Likewise.
3777 * common/rsp-low.c: Likewise.
3778 * common/signals.c: Likewise.
3779 * common/vec.h: Likewise.
3780 * common/xml-utils.c: Likewise.
3781 * core-regset.c: Likewise.
3782 * corefile.c: Likewise.
3783 * corelow.c: Likewise.
3784 * cp-abi.c: Likewise.
3785 * cp-name-parser.y: Likewise.
3786 * cp-support.c: Likewise.
3787 * cp-valprint.c: Likewise.
3788 * cris-tdep.c: Likewise.
3789 * d-exp.y: Likewise.
3790 * darwin-nat.c: Likewise.
3791 * dbxread.c: Likewise.
3792 * dcache.c: Likewise.
3793 * demangle.c: Likewise.
3794 * dicos-tdep.c: Likewise.
3795 * disasm.c: Likewise.
3796 * doublest.c: Likewise.
3797 * dsrec.c: Likewise.
3798 * dummy-frame.c: Likewise.
3799 * dwarf2-frame.c: Likewise.
3800 * dwarf2loc.c: Likewise.
3801 * dwarf2read.c: Likewise.
3802 * elfread.c: Likewise.
3803 * environ.c: Likewise.
3805 * event-loop.c: Likewise.
3806 * exceptions.c: Likewise.
3808 * expprint.c: Likewise.
3809 * f-exp.y: Likewise.
3810 * f-lang.c: Likewise.
3811 * f-typeprint.c: Likewise.
3812 * f-valprint.c: Likewise.
3813 * fbsd-nat.c: Likewise.
3814 * findcmd.c: Likewise.
3815 * findvar.c: Likewise.
3816 * fork-child.c: Likewise.
3817 * frame.c: Likewise.
3818 * frv-linux-tdep.c: Likewise.
3819 * frv-tdep.c: Likewise.
3821 * gdb_bfd.c: Likewise.
3822 * gdbarch.c: Likewise.
3823 * gdbarch.sh: Likewise.
3824 * gdbtypes.c: Likewise.
3825 * gnu-nat.c: Likewise.
3826 * gnu-v2-abi.c: Likewise.
3827 * gnu-v3-abi.c: Likewise.
3828 * go-exp.y: Likewise.
3829 * go-lang.c: Likewise.
3830 * go32-nat.c: Likewise.
3831 * guile/guile.c: Likewise.
3832 * guile/scm-auto-load.c: Likewise.
3833 * hppa-hpux-tdep.c: Likewise.
3834 * hppa-linux-nat.c: Likewise.
3835 * hppanbsd-tdep.c: Likewise.
3836 * hppaobsd-tdep.c: Likewise.
3837 * i386-cygwin-tdep.c: Likewise.
3838 * i386-dicos-tdep.c: Likewise.
3839 * i386-linux-tdep.c: Likewise.
3840 * i386-nto-tdep.c: Likewise.
3841 * i386-sol2-tdep.c: Likewise.
3842 * i386-tdep.c: Likewise.
3843 * i386bsd-tdep.c: Likewise.
3844 * i386gnu-nat.c: Likewise.
3845 * i386nbsd-tdep.c: Likewise.
3846 * i386obsd-tdep.c: Likewise.
3847 * i387-tdep.c: Likewise.
3848 * ia64-libunwind-tdep.c: Likewise.
3849 * ia64-linux-nat.c: Likewise.
3850 * inf-child.c: Likewise.
3851 * inf-ptrace.c: Likewise.
3852 * inf-ttrace.c: Likewise.
3853 * infcall.c: Likewise.
3854 * infcmd.c: Likewise.
3855 * inflow.c: Likewise.
3856 * infrun.c: Likewise.
3857 * interps.c: Likewise.
3858 * iq2000-tdep.c: Likewise.
3859 * irix5-nat.c: Likewise.
3860 * jv-exp.y: Likewise.
3861 * jv-lang.c: Likewise.
3862 * jv-typeprint.c: Likewise.
3863 * jv-valprint.c: Likewise.
3864 * language.c: Likewise.
3865 * linux-fork.c: Likewise.
3866 * linux-nat.c: Likewise.
3867 * lm32-tdep.c: Likewise.
3868 * m2-exp.y: Likewise.
3869 * m2-typeprint.c: Likewise.
3870 * m32c-tdep.c: Likewise.
3871 * m32r-linux-nat.c: Likewise.
3872 * m32r-linux-tdep.c: Likewise.
3873 * m32r-rom.c: Likewise.
3874 * m32r-tdep.c: Likewise.
3875 * m68hc11-tdep.c: Likewise.
3876 * m68k-tdep.c: Likewise.
3877 * m68kbsd-tdep.c: Likewise.
3878 * m68klinux-nat.c: Likewise.
3879 * m68klinux-tdep.c: Likewise.
3880 * m88k-tdep.c: Likewise.
3881 * machoread.c: Likewise.
3882 * macrocmd.c: Likewise.
3884 * mdebugread.c: Likewise.
3885 * mem-break.c: Likewise.
3886 * memattr.c: Likewise.
3887 * memory-map.c: Likewise.
3888 * mep-tdep.c: Likewise.
3889 * mi/mi-cmd-break.c: Likewise.
3890 * mi/mi-cmd-disas.c: Likewise.
3891 * mi/mi-cmd-env.c: Likewise.
3892 * mi/mi-cmd-stack.c: Likewise.
3893 * mi/mi-cmd-var.c: Likewise.
3894 * mi/mi-cmds.c: Likewise.
3895 * mi/mi-console.c: Likewise.
3896 * mi/mi-getopt.c: Likewise.
3897 * mi/mi-interp.c: Likewise.
3898 * mi/mi-main.c: Likewise.
3899 * mi/mi-parse.c: Likewise.
3900 * microblaze-rom.c: Likewise.
3901 * microblaze-tdep.c: Likewise.
3902 * mingw-hdep.c: Likewise.
3903 * minidebug.c: Likewise.
3904 * minsyms.c: Likewise.
3905 * mips-irix-tdep.c: Likewise.
3906 * mips-linux-tdep.c: Likewise.
3907 * mips-tdep.c: Likewise.
3908 * mips64obsd-tdep.c: Likewise.
3909 * mipsnbsd-tdep.c: Likewise.
3910 * mipsread.c: Likewise.
3911 * mn10300-linux-tdep.c: Likewise.
3912 * mn10300-tdep.c: Likewise.
3913 * monitor.c: Likewise.
3914 * moxie-tdep.c: Likewise.
3915 * mt-tdep.c: Likewise.
3916 * nat/linux-btrace.c: Likewise.
3917 * nat/linux-osdata.c: Likewise.
3918 * nat/linux-procfs.c: Likewise.
3919 * nat/linux-ptrace.c: Likewise.
3920 * nat/linux-waitpid.c: Likewise.
3921 * nbsd-tdep.c: Likewise.
3922 * nios2-linux-tdep.c: Likewise.
3923 * nto-procfs.c: Likewise.
3924 * nto-tdep.c: Likewise.
3925 * objc-lang.c: Likewise.
3926 * objfiles.c: Likewise.
3927 * opencl-lang.c: Likewise.
3928 * osabi.c: Likewise.
3929 * osdata.c: Likewise.
3930 * p-exp.y: Likewise.
3931 * p-lang.c: Likewise.
3932 * p-typeprint.c: Likewise.
3933 * parse.c: Likewise.
3934 * posix-hdep.c: Likewise.
3935 * ppc-linux-nat.c: Likewise.
3936 * ppc-sysv-tdep.c: Likewise.
3937 * ppcfbsd-tdep.c: Likewise.
3938 * ppcnbsd-tdep.c: Likewise.
3939 * ppcobsd-tdep.c: Likewise.
3940 * printcmd.c: Likewise.
3941 * procfs.c: Likewise.
3942 * prologue-value.c: Likewise.
3943 * python/py-auto-load.c: Likewise.
3944 * python/py-gdb-readline.c: Likewise.
3945 * ravenscar-thread.c: Likewise.
3946 * regcache.c: Likewise.
3947 * registry.c: Likewise.
3948 * remote-fileio.c: Likewise.
3949 * remote-m32r-sdi.c: Likewise.
3950 * remote-mips.c: Likewise.
3951 * remote-notif.c: Likewise.
3952 * remote-sim.c: Likewise.
3953 * remote.c: Likewise.
3954 * reverse.c: Likewise.
3955 * rs6000-aix-tdep.c: Likewise.
3956 * ser-base.c: Likewise.
3957 * ser-go32.c: Likewise.
3958 * ser-mingw.c: Likewise.
3959 * ser-pipe.c: Likewise.
3960 * ser-tcp.c: Likewise.
3961 * ser-unix.c: Likewise.
3962 * serial.c: Likewise.
3963 * sh-tdep.c: Likewise.
3964 * sh64-tdep.c: Likewise.
3965 * shnbsd-tdep.c: Likewise.
3967 * sol-thread.c: Likewise.
3968 * solib-dsbt.c: Likewise.
3969 * solib-frv.c: Likewise.
3970 * solib-osf.c: Likewise.
3971 * solib-som.c: Likewise.
3972 * solib-spu.c: Likewise.
3973 * solib-target.c: Likewise.
3974 * solib.c: Likewise.
3975 * somread.c: Likewise.
3976 * source.c: Likewise.
3977 * sparc-nat.c: Likewise.
3978 * sparc-sol2-tdep.c: Likewise.
3979 * sparc-tdep.c: Likewise.
3980 * sparc64-tdep.c: Likewise.
3981 * sparc64fbsd-tdep.c: Likewise.
3982 * sparc64nbsd-tdep.c: Likewise.
3983 * sparcnbsd-tdep.c: Likewise.
3984 * spu-linux-nat.c: Likewise.
3985 * spu-multiarch.c: Likewise.
3986 * spu-tdep.c: Likewise.
3987 * stabsread.c: Likewise.
3988 * stack.c: Likewise.
3989 * std-regs.c: Likewise.
3990 * symfile.c: Likewise.
3991 * symmisc.c: Likewise.
3992 * symtab.c: Likewise.
3993 * target.c: Likewise.
3994 * thread.c: Likewise.
3995 * tilegx-linux-nat.c: Likewise.
3996 * tilegx-tdep.c: Likewise.
3998 * tracepoint.c: Likewise.
3999 * tui/tui-command.c: Likewise.
4000 * tui/tui-data.c: Likewise.
4001 * tui/tui-disasm.c: Likewise.
4002 * tui/tui-file.c: Likewise.
4003 * tui/tui-layout.c: Likewise.
4004 * tui/tui-out.c: Likewise.
4005 * tui/tui-regs.c: Likewise.
4006 * tui/tui-source.c: Likewise.
4007 * tui/tui-stack.c: Likewise.
4008 * tui/tui-win.c: Likewise.
4009 * tui/tui-windata.c: Likewise.
4010 * tui/tui-winsource.c: Likewise.
4011 * typeprint.c: Likewise.
4012 * ui-file.c: Likewise.
4013 * ui-out.c: Likewise.
4014 * user-regs.c: Likewise.
4015 * utils.c: Likewise.
4016 * v850-tdep.c: Likewise.
4017 * valarith.c: Likewise.
4018 * valops.c: Likewise.
4019 * valprint.c: Likewise.
4020 * value.c: Likewise.
4021 * varobj.c: Likewise.
4022 * vax-tdep.c: Likewise.
4023 * vaxnbsd-tdep.c: Likewise.
4024 * vaxobsd-tdep.c: Likewise.
4025 * windows-nat.c: Likewise.
4026 * xcoffread.c: Likewise.
4027 * xml-support.c: Likewise.
4028 * xstormy16-tdep.c: Likewise.
4029 * xtensa-linux-nat.c: Likewise.
4031 2014-08-07 Gary Benson <gbenson@redhat.com>
4033 * common/common-defs.h: Include gdb_assert.h.
4034 * aarch64-tdep.c: Do not include gdb_assert.h.
4035 * addrmap.c: Likewise.
4036 * aix-thread.c: Likewise.
4037 * alpha-linux-tdep.c: Likewise.
4038 * alpha-mdebug-tdep.c: Likewise.
4039 * alphanbsd-tdep.c: Likewise.
4040 * amd64-nat.c: Likewise.
4041 * amd64-tdep.c: Likewise.
4042 * amd64bsd-nat.c: Likewise.
4043 * amd64fbsd-nat.c: Likewise.
4044 * amd64fbsd-tdep.c: Likewise.
4045 * amd64nbsd-nat.c: Likewise.
4046 * amd64nbsd-tdep.c: Likewise.
4047 * amd64obsd-nat.c: Likewise.
4048 * amd64obsd-tdep.c: Likewise.
4049 * arch-utils.c: Likewise.
4050 * arm-tdep.c: Likewise.
4051 * armbsd-tdep.c: Likewise.
4053 * bcache.c: Likewise.
4054 * bfin-tdep.c: Likewise.
4055 * blockframe.c: Likewise.
4056 * breakpoint.c: Likewise.
4057 * bsd-kvm.c: Likewise.
4058 * bsd-uthread.c: Likewise.
4059 * buildsym.c: Likewise.
4060 * c-exp.y: Likewise.
4061 * c-lang.c: Likewise.
4062 * charset.c: Likewise.
4063 * cleanups.c: Likewise.
4064 * cli-out.c: Likewise.
4065 * cli/cli-decode.c: Likewise.
4066 * cli/cli-dump.c: Likewise.
4067 * cli/cli-logging.c: Likewise.
4068 * cli/cli-script.c: Likewise.
4069 * cli/cli-utils.c: Likewise.
4070 * coffread.c: Likewise.
4071 * common/common-utils.c: Likewise.
4072 * common/queue.h: Likewise.
4073 * common/signals.c: Likewise.
4074 * common/vec.h: Likewise.
4075 * complaints.c: Likewise.
4076 * completer.c: Likewise.
4077 * corelow.c: Likewise.
4078 * cp-abi.c: Likewise.
4079 * cp-name-parser.y: Likewise.
4080 * cp-namespace.c: Likewise.
4081 * cp-support.c: Likewise.
4082 * cris-tdep.c: Likewise.
4083 * dbxread.c: Likewise.
4084 * dictionary.c: Likewise.
4085 * doublest.c: Likewise.
4086 * dsrec.c: Likewise.
4087 * dummy-frame.c: Likewise.
4088 * dwarf2-frame-tailcall.c: Likewise.
4089 * dwarf2-frame.c: Likewise.
4090 * dwarf2expr.c: Likewise.
4091 * dwarf2loc.c: Likewise.
4092 * dwarf2read.c: Likewise.
4094 * event-loop.c: Likewise.
4095 * exceptions.c: Likewise.
4096 * expprint.c: Likewise.
4097 * f-valprint.c: Likewise.
4098 * fbsd-nat.c: Likewise.
4099 * findvar.c: Likewise.
4100 * frame-unwind.c: Likewise.
4101 * frame.c: Likewise.
4102 * frv-tdep.c: Likewise.
4103 * gcore.c: Likewise.
4104 * gdb-dlfcn.c: Likewise.
4105 * gdb_bfd.c: Likewise.
4106 * gdbarch.c: Likewise.
4107 * gdbarch.sh: Likewise.
4108 * gdbtypes.c: Likewise.
4109 * gnu-nat.c: Likewise.
4110 * gnu-v3-abi.c: Likewise.
4111 * go-lang.c: Likewise.
4112 * guile/scm-exception.c: Likewise.
4113 * guile/scm-gsmob.c: Likewise.
4114 * guile/scm-lazy-string.c: Likewise.
4115 * guile/scm-math.c: Likewise.
4116 * guile/scm-pretty-print.c: Likewise.
4117 * guile/scm-safe-call.c: Likewise.
4118 * guile/scm-utils.c: Likewise.
4119 * guile/scm-value.c: Likewise.
4120 * h8300-tdep.c: Likewise.
4121 * hppa-hpux-nat.c: Likewise.
4122 * hppa-tdep.c: Likewise.
4123 * hppanbsd-tdep.c: Likewise.
4124 * hppaobsd-tdep.c: Likewise.
4125 * i386-darwin-nat.c: Likewise.
4126 * i386-darwin-tdep.c: Likewise.
4127 * i386-nto-tdep.c: Likewise.
4128 * i386-tdep.c: Likewise.
4129 * i386bsd-nat.c: Likewise.
4130 * i386fbsd-tdep.c: Likewise.
4131 * i386gnu-nat.c: Likewise.
4132 * i386nbsd-tdep.c: Likewise.
4133 * i386obsd-tdep.c: Likewise.
4134 * i387-tdep.c: Likewise.
4135 * ia64-libunwind-tdep.c: Likewise.
4136 * ia64-tdep.c: Likewise.
4137 * inf-ptrace.c: Likewise.
4138 * inf-ttrace.c: Likewise.
4139 * infcall.c: Likewise.
4140 * infcmd.c: Likewise.
4141 * infrun.c: Likewise.
4142 * inline-frame.c: Likewise.
4143 * interps.c: Likewise.
4144 * jv-lang.c: Likewise.
4145 * jv-typeprint.c: Likewise.
4146 * linux-fork.c: Likewise.
4147 * linux-nat.c: Likewise.
4148 * linux-thread-db.c: Likewise.
4149 * m32c-tdep.c: Likewise.
4150 * m32r-linux-nat.c: Likewise.
4151 * m32r-tdep.c: Likewise.
4152 * m68k-tdep.c: Likewise.
4153 * m68kbsd-nat.c: Likewise.
4154 * m68kbsd-tdep.c: Likewise.
4155 * m88k-tdep.c: Likewise.
4156 * machoread.c: Likewise.
4157 * macroexp.c: Likewise.
4158 * macrotab.c: Likewise.
4159 * maint.c: Likewise.
4160 * mdebugread.c: Likewise.
4161 * memory-map.c: Likewise.
4162 * mep-tdep.c: Likewise.
4163 * mi/mi-common.c: Likewise.
4164 * microblaze-tdep.c: Likewise.
4165 * mingw-hdep.c: Likewise.
4166 * mips-linux-nat.c: Likewise.
4167 * mips-linux-tdep.c: Likewise.
4168 * mips-tdep.c: Likewise.
4169 * mips64obsd-tdep.c: Likewise.
4170 * mipsnbsd-tdep.c: Likewise.
4171 * mn10300-linux-tdep.c: Likewise.
4172 * mn10300-tdep.c: Likewise.
4173 * moxie-tdep.c: Likewise.
4174 * mt-tdep.c: Likewise.
4175 * nat/linux-btrace.c: Likewise.
4176 * nat/linux-osdata.c: Likewise.
4177 * nat/linux-ptrace.c: Likewise.
4178 * nat/mips-linux-watch.c: Likewise.
4179 * nios2-linux-tdep.c: Likewise.
4180 * nios2-tdep.c: Likewise.
4181 * objc-lang.c: Likewise.
4182 * objfiles.c: Likewise.
4183 * obsd-nat.c: Likewise.
4184 * opencl-lang.c: Likewise.
4185 * osabi.c: Likewise.
4186 * parse.c: Likewise.
4187 * ppc-linux-nat.c: Likewise.
4188 * ppc-sysv-tdep.c: Likewise.
4189 * ppcfbsd-nat.c: Likewise.
4190 * ppcfbsd-tdep.c: Likewise.
4191 * ppcnbsd-nat.c: Likewise.
4192 * ppcnbsd-tdep.c: Likewise.
4193 * ppcobsd-nat.c: Likewise.
4194 * ppcobsd-tdep.c: Likewise.
4195 * printcmd.c: Likewise.
4196 * procfs.c: Likewise.
4197 * prologue-value.c: Likewise.
4198 * psymtab.c: Likewise.
4199 * python/py-lazy-string.c: Likewise.
4200 * python/py-value.c: Likewise.
4201 * regcache.c: Likewise.
4202 * reggroups.c: Likewise.
4203 * registry.c: Likewise.
4204 * remote-sim.c: Likewise.
4205 * remote.c: Likewise.
4206 * rs6000-aix-tdep.c: Likewise.
4207 * rs6000-tdep.c: Likewise.
4208 * s390-linux-tdep.c: Likewise.
4209 * score-tdep.c: Likewise.
4210 * ser-base.c: Likewise.
4211 * ser-mingw.c: Likewise.
4212 * sh-tdep.c: Likewise.
4213 * sh64-tdep.c: Likewise.
4214 * solib-darwin.c: Likewise.
4215 * solib-spu.c: Likewise.
4216 * solib-svr4.c: Likewise.
4217 * source.c: Likewise.
4218 * sparc-nat.c: Likewise.
4219 * sparc-sol2-tdep.c: Likewise.
4220 * sparc-tdep.c: Likewise.
4221 * sparc64-sol2-tdep.c: Likewise.
4222 * sparc64-tdep.c: Likewise.
4223 * sparc64fbsd-tdep.c: Likewise.
4224 * sparc64nbsd-tdep.c: Likewise.
4225 * sparc64obsd-tdep.c: Likewise.
4226 * sparcnbsd-tdep.c: Likewise.
4227 * sparcobsd-tdep.c: Likewise.
4228 * spu-multiarch.c: Likewise.
4229 * spu-tdep.c: Likewise.
4230 * stabsread.c: Likewise.
4231 * stack.c: Likewise.
4232 * symfile.c: Likewise.
4233 * symtab.c: Likewise.
4234 * target-descriptions.c: Likewise.
4235 * target-memory.c: Likewise.
4236 * target.c: Likewise.
4237 * tic6x-linux-tdep.c: Likewise.
4238 * tic6x-tdep.c: Likewise.
4239 * tilegx-linux-nat.c: Likewise.
4240 * tilegx-tdep.c: Likewise.
4242 * tramp-frame.c: Likewise.
4243 * tui/tui-out.c: Likewise.
4244 * tui/tui-winsource.c: Likewise.
4245 * ui-out.c: Likewise.
4246 * user-regs.c: Likewise.
4247 * utils.c: Likewise.
4248 * v850-tdep.c: Likewise.
4249 * valops.c: Likewise.
4250 * value.c: Likewise.
4251 * varobj.c: Likewise.
4252 * vax-nat.c: Likewise.
4253 * xml-syscall.c: Likewise.
4254 * xml-tdesc.c: Likewise.
4255 * xstormy16-tdep.c: Likewise.
4256 * xtensa-linux-nat.c: Likewise.
4257 * xtensa-tdep.c: Likewise.
4259 2014-08-07 Gary Benson <gbenson@redhat.com>
4261 * common/common-defs.h: Include common-utils.h.
4262 * defs.h: Do not include common-utils.h.
4263 * common/gdb_assert.h: Likewise.
4264 * darwin-nat.h: Likewise.
4265 * nat/linux-btrace.c: Likewise.
4266 * target/waitstatus.h: Likewise.
4268 2014-08-07 Gary Benson <gbenson@redhat.com>
4270 * common/common-defs.h: Include ptid.h.
4271 * defs.h: Do not include ptid.h.
4272 * inferior.h: Likewise.
4273 * infrun.h: Likewise.
4274 * nat/linux-btrace.h: Likewise.
4275 * nat/linux-osdata.h: Likewise.
4276 * target/waitstatus.h: Likewise.
4278 2014-08-07 Gary Benson <gbenson@redhat.com>
4280 * common/common-defs.h: Include gdb_locale.h.
4281 * defs.h: Do not include gdb_locale.h.
4283 2014-08-07 Gary Benson <gbenson@redhat.com>
4285 * common/common-defs.h: Include gdb/signals.h.
4286 * defs.h: Do not include gdb/signals.h.
4288 2014-08-07 Gary Benson <gbenson@redhat.com>
4290 * common/common-defs.h: Include pathmax.h.
4291 * defs.h: Do not include pathmax.h.
4293 2014-08-07 Gary Benson <gbenson@redhat.com>
4295 * common/common-defs.h: Include libiberty.h.
4296 * defs.h: Do not include libiberty.h.
4297 * common/queue.h: Likewise.
4298 * cp-name-parser.y: Likewise.
4299 * mi/mi-cmd-catch.c: Likewise.
4300 * python/python.c: Likewise.
4302 2014-08-07 Gary Benson <gbenson@redhat.com>
4304 * common/common-defs.h: Include ansidecl.h.
4305 * defs.h: Do not include ansidecl.h.
4306 * common/buffer.h: Likewise.
4307 * common/common-utils.h: Likewise.
4309 2014-08-07 Gary Benson <gbenson@redhat.com>
4311 * common/common-defs.h: Include stddef.h.
4312 * defs.h: Do not include stddef.h.
4313 * common/common-utils.h: Likewise.
4314 * amd64fbsd-nat.c: Likewise.
4315 * bcache.c: Likewise.
4316 * charset.c: Likewise.
4317 * common/buffer.h: Likewise.
4318 * common/vec.h: Likewise.
4319 * i386bsd-nat.c: Likewise.
4320 * nat/linux-btrace.h: Likewise.
4321 * ppcfbsd-nat.c: Likewise.
4322 * ppcnbsd-tdep.h: Likewise.
4323 * ppcobsd-nat.c: Likewise.
4324 * ppcobsd-tdep.h: Likewise.
4325 * python/py-gdb-readline.c: Likewise.
4327 2014-08-07 Gary Benson <gbenson@redhat.com>
4329 * common/common-defs.h: Include stdarg.h.
4330 * defs.h: Do not include stdarg.h.
4331 * ada-lang.c: Likewise.
4332 * common/common-utils.h: Likewise.
4333 * guile/scm-string.c: Likewise.
4334 * guile/scm-utils.c: Likewise.
4335 * m32c-tdep.c: Likewise.
4337 2014-08-07 Gary Benson <gbenson@redhat.com>
4339 * common/common-defs.h: Include stdlib.h.
4340 * defs.h: Do not include stdlib.h.
4341 * addrmap.c: Likewise.
4342 * bcache.c: Likewise.
4343 * common/buffer.c: Likewise.
4344 * common/common-utils.c: Likewise.
4345 * cp-name-parser.y: Likewise.
4346 * go32-nat.c: Likewise.
4347 * mn10300-linux-tdep.c: Likewise.
4348 * nat/linux-osdata.c: Likewise.
4349 * tui/tui.c: Likewise.
4350 * windows-nat.c: Likewise.
4352 2014-08-07 Gary Benson <gbenson@redhat.com>
4354 * common/common-defs.h: Include stdio.h.
4355 * defs.h: Do not include stdio.h.
4356 * ada-lang.c: Likewise.
4357 * common/buffer.c: Likewise.
4358 * common/common-utils.c: Likewise.
4359 * cp-name-parser.y: Likewise.
4360 * gnu-nat.c: Likewise.
4361 * go32-nat.c: Likewise.
4362 * i386gnu-nat.c: Likewise.
4363 * proc-api.c: Likewise.
4364 * proc-events.c: Likewise.
4365 * proc-flags.c: Likewise.
4366 * proc-why.c: Likewise.
4367 * python/python-internal.h: Likewise.
4368 * target-memory.c: Likewise.
4369 * tui/tui-io.c: Likewise.
4370 * tui/tui.c: Likewise.
4372 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4374 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4375 (scan_dyntag_auxv): Same.
4377 2014-08-06 Yao Qi <yao@codesourcery.com>
4379 * amd64-linux-nat.c: Remove duplicated include
4381 * i386-linux-nat.c: Likewise.
4383 2014-08-06 Yao Qi <yao@codesourcery.com>
4385 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4386 operand" with "Special opcode" in comments.
4388 2014-08-05 Gary Benson <gbenson@redhat.com>
4390 * interps.c (initialize_interps): Remove prototype.
4391 (interpreter_initialized): Remove static global.
4392 (interp_add): Do not call initialize_interps.
4393 (initialize_interps): Remove function.
4395 2014-08-05 Gary Benson <gbenson@redhat.com>
4397 * utils.c (vwarning): Remove spurious va_end.
4399 2014-08-05 Alan Modra <amodra@gmail.com>
4401 * charset.c (convert_between_encodings): Cast result of obstack_base.
4402 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4403 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4404 (read_unwind_info): Use size_t for some locals.
4405 * jit.c (finalize_symtab): Likewise.
4406 * utils.c (hashtab_obstack_allocate): Likewise.
4407 * symmisc.c (print_objfile_statistics): Update format strings.
4409 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4411 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4412 (Changes in GDB 7.8): ... here.
4414 2014-08-04 Tom Tromey <tromey@redhat.com>
4416 * target.c (set_targetdebug): New function.
4417 (initialize_targets): Pass set_targetdebug when creating "set
4420 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4422 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4423 if detecting a variable-sized field that is not the last field.
4424 Fix struct type length computation.
4426 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4428 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4431 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4433 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4434 Remove "+ 8" offset in computation of CHAIN_VMA.
4436 2014-07-31 Doug Evans <dje@google.com>
4438 * inflow.c (child_terminal_inferior): Add comment.
4439 (child_terminal_ours_for_output): Add comment.
4440 (child_terminal_ours): Add comment.
4441 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4442 (linux_nat_terminal_ours): Add comment.
4444 2014-07-31 Gary Benson <gbenson@redhat.com>
4446 * common/btrace-common.h: Do not include defs.h or server.h.
4447 * nat/mips-linux-watch.h: Likewise.
4448 * gdb-dlfcn.h: Do not include defs.h.
4449 * tracefile.h: Likewise.
4451 2014-07-30 Roland McGrath <mcgrathr@google.com>
4453 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4455 2014-07-30 Tom Tromey <tromey@redhat.com>
4457 * bsd-kvm.c (bsd_kvm_open): Constify.
4458 * corelow.c (core_open): Constify.
4459 * ctf.c (ctf_open): Constify.
4460 * dbug-rom.c (dbug_open): Constify.
4461 * exec.c (exec_open): Constify.
4462 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4463 * microblaze-rom.c (picobug_open): Constify.
4464 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4466 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4467 * record-btrace.c (record_btrace_open): Constify.
4468 * record-full.c (record_full_core_open_1, record_full_open_1)
4469 (record_full_open): Constify.
4470 * remote-m32r-sdi.c (m32r_open): Constify.
4471 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4472 (rockhopper_open, lsi_open): Constify.
4473 * remote-sim.c (gdbsim_open): Constify.
4474 * remote.c (remote_open, extended_remote_open, remote_open_1):
4476 * target.h (struct target_ops) <to_open>: Make "arg" const.
4477 * tracefile-tfile.c (tfile_open): Constify.
4479 2014-07-30 Tom Tromey <tromey@redhat.com>
4481 * breakpoint.c (map_breakpoint_numbers): Update.
4482 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4483 (get_number_const): New function.
4484 (get_number): Rewrite using get_number_const.
4485 (init_number_or_range): Make "string" const.
4486 (number_is_in_list): Make "list" const.
4487 * cli/cli-utils.h (get_number_const): Declare.
4488 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4489 (init_number_or_range, number_is_in_list): Update.
4490 * printcmd.c (map_display_numbers): Update.
4491 * value.c (value_from_history_ref): Constify.
4492 * value.h (value_from_history_ref): Update.
4494 2014-07-30 Tom Tromey <tromey@redhat.com>
4496 * corefile.c (hook_type, call_extra_exec_file_hooks)
4497 (specify_exec_file_hook): Constify.
4498 * exec.c (exec_file_attach): Make "filename" const.
4499 * gdbcore.h (deprecated_exec_file_display_hook)
4500 (specify_exec_file_hook, exec_file_attach): Constify.
4501 * main.c (captured_main): Use catch_command_errors_const.
4503 2014-07-30 Tom Tromey <tromey@redhat.com>
4505 * target.c (open_target): New function.
4506 (add_target_with_completer, add_deprecated_target_alias): Use
4507 set_cmd_sfunc, set_cmd_context.
4508 (debug_to_open): Remove.
4509 (setup_target_debug): Update.
4511 2014-07-30 Yao Qi <yao@codesourcery.com>
4513 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4515 * parse.c (exp_iterate): Update comments.
4517 2014-07-30 Gary Benson <gbenson@redhat.com>
4519 * common/common-defs.h: New file.
4520 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4521 * defs.h: Include common-defs.h.
4522 Do not include config.h or build-gnulib/config.h.
4524 2014-07-30 Gary Benson <gbenson@redhat.com>
4526 * common/common-utils.h: Do not include config.h.
4527 * nat/linux-btrace.h: Likewise.
4529 2014-07-30 Gary Benson <gbenson@redhat.com>
4531 * btrace.c: Include defs.h.
4532 * common/ptid.c: Include defs.h or server.h as appropriate.
4533 * nat/mips-linux-watch.c: Likewise.
4535 2014-07-29 Tom Tromey <tromey@redhat.com>
4537 * target.c (target_is_pushed): Simplify.
4539 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4543 2014-07-29 Yao Qi <yao@codesourcery.com>
4546 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4548 2014-07-28 Doug Evans <xdje42@gmail.com>
4551 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4552 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4555 2014-07-28 Will Newton <will.newton@linaro.org>
4557 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4558 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4559 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4560 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4561 (THUMB2_EABI_SYSCALL): Likewise.
4562 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4564 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4565 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4567 2014-07-27 Doug Evans <xdje42@gmail.com>
4569 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4571 2014-07-27 Doug Evans <xdje42@gmail.com>
4573 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4575 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4576 Doug Evans <xdje42@gmail.com>
4579 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4580 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4581 * configure.ac: Try to use guild to compile an scm file, if it fails
4582 then disable guile support.
4583 * configure: Regenerate.
4584 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4586 (GUILE_COMPILED_FILES): New variable.
4587 (GUILE_FILES) Update.
4588 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4589 (stamp-guile): Compile scm files.
4590 * guile/guile.c (boot_guile_support): New function.
4591 (standard_throw_args_p): New function.
4592 (print_standard_throw_error, print_throw_error): New functions.
4593 (handle_boot_error): New function.
4594 (initialize_scheme_side): Rewrite to call boot_guile_support.
4595 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4596 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4598 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4599 Doug Evans <xdje42@gmail.com>
4602 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4603 * guile/lib/gdb/support.scm: New file.
4604 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4605 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4607 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4609 (%assert-type): Ditto, and renamed to assert-type.
4610 (%exception-print-style): Delete.
4612 2014-07-26 Doug Evans <xdje42@gmail.com>
4615 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4616 * configure: Regenerate.
4617 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4619 (PYTHON_FILES): New variable.
4620 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4621 (GUILE_FILES): New variable.
4622 (stamp-python, install-python, uninstall-python): Handle empty
4624 (stamp-guile, install-guile, uninstall-guile): Ditto.
4626 2014-07-26 Doug Evans <xdje42@gmail.com>
4629 * guile/lib/gdb.scm (pretty-printers): Export.
4630 (set-pretty-printers!): Export.
4631 * guile/lib/gdb/printing.scm (gdb module): Update.
4632 (prepend-pretty-printer!, append-pretty-printer!): Update.
4633 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4634 (pretty_printer_list_var): Delete.
4635 (pretty_printer_list): New static global.
4636 (gdbscm_pretty_printers): New function.
4637 (gdbscm_set_pretty_printers_x): New function.
4638 (ppscm_find_pretty_printer_from_gdb): Update.
4639 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4640 (gdbscm_initialize_pretty_printers): Update.
4642 2014-07-26 Doug Evans <xdje42@gmail.com>
4645 * configure.ac: Add check for header gc/gc.h.
4646 Add check for function setenv.
4647 * configure: Regenerate.
4648 * config.in: Regenerate.
4649 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4651 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4653 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4654 variation in gdbarch matching.
4656 2014-07-25 Tom Tromey <tromey@redhat.com>
4658 * exec.c (using_exec_ops): Remove.
4659 (exec_close_1): Update. Remove extraneous block, reindent.
4660 (add_target_sections): Use target_is_pushed.
4662 2014-07-25 Pedro Alves <palves@redhat.com>
4664 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4665 * monitor.c (monitor_create_inferior): Likewise.
4666 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4667 * remote-sim.c (gdbsim_create_inferior): Likewise.
4668 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4669 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4670 * windows-nat.c (do_initial_windows_stuff): Likewise.
4672 2014-07-25 Pedro Alves <palves@redhat.com>
4674 * NEWS: Mention signal passing and "signal" command changes.
4675 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4677 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4679 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4680 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4681 (jump_command): Adjust clear_proceed_status call.
4682 (signal_command): Warn if other thread that are resumed have
4683 signals that will be delivered. Adjust clear_proceed_status call.
4684 (until_next_command, finish_command)
4685 (proceed_after_attach_callback, attach_command_post_wait)
4686 (attach_command): Adjust clear_proceed_status call.
4687 * infrun.c (proceed_after_vfork_done): Likewise.
4688 (proceed_after_attach_callback): Adjust comment.
4689 (clear_proceed_status_thread): Clear stop_signal if not in pass
4691 (clear_proceed_status_callback): Delete.
4692 (clear_proceed_status): New 'step' parameter. Only clear the
4693 proceed status of threads the command being prepared is about to
4695 (proceed): If passed in an explicit signal, override stop_signal
4696 with it. Don't pass the last stop signal to the thread we're
4698 (init_wait_for_inferior): Adjust clear_proceed_status call.
4699 (switch_back_to_stepped_thread): Clear the signal if it should not
4701 * infrun.h (clear_proceed_status): New 'step' parameter.
4702 (user_visible_resume_ptid): Add comment.
4703 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4704 signal is in pass state.
4705 * remote.c (append_pending_thread_resumptions): Likewise.
4706 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4708 2014-07-25 Tom Tromey <tromey@redhat.com>
4710 * target.h (target_stopped_data_address)
4711 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4714 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4716 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4718 (avr_pointer_to_address): Likewise.
4720 2014-07-24 Tom Tromey <tromey@redhat.com>
4722 * monitor.c (compile_pattern): Update.
4723 * target.h (struct target_ops) <to_shortname, to_longname,
4726 2014-07-24 Tom Tromey <tromey@redhat.com>
4728 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4729 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4730 (add_info_alias, add_com): Make "doc" const.
4731 (print_doc_line): Make "str" const.
4732 (delete_cmd): Update.
4733 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4734 (print_doc_line): Update.
4735 * cli/cli-script.c (document_command): Update.
4736 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4737 (add_com, add_info, add_info_alias): Update.
4738 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4739 * python/py-cmd.c (cmdpy_destroyer): Update.
4741 2014-07-24 Tom Tromey <tromey@redhat.com>
4743 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4744 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4745 (help_cmd_list): Constify.
4746 (lookup_cmd): Update.
4747 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4749 (help_cmd_list, apropos_cmd): Update.
4750 * cli/cli-script.c (show_user): Update.
4751 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4752 * cli/cli-setshow.h (cmd_show_list): Update.
4753 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4754 (cmd_show_list): Update.
4755 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4756 * python/py-cmd.c (cmdpy_destroyer): Update.
4758 2014-07-24 Tom Tromey <tromey@redhat.com>
4760 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4761 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4763 * command.h (deprecate_cmd): Update.
4764 * maint.c (maintenance_do_deprecate): Add casts.
4766 2014-07-24 Tom Tromey <tromey@redhat.com>
4768 * cli/cli-decode.c (help_cmd): Make parameter "const".
4769 * cli/cli-decode.h (help_cmd): Update.
4771 2014-07-24 Tom Tromey <tromey@redhat.com>
4773 * stack.c (up_silently_base, down_silently_base): Make argument
4776 2014-07-24 Tom Tromey <tromey@redhat.com>
4778 * solib.c (solib_add): Make "pattern" const.
4779 * solib.h (solib_add): Update.
4781 2014-07-24 Tom Tromey <tromey@redhat.com>
4783 * remote.c (remote_serial_open, print_packet, putpkt)
4784 (putpkt_binary): Constify.
4785 * remote.h (putpkt): Update.
4787 2014-07-24 Tom Tromey <tromey@redhat.com>
4789 * monitor.c (monitor_open): Make "args" const.
4790 * monitor.h (monitor_open): Update.
4792 2014-07-24 Tom Tromey <tromey@redhat.com>
4794 * maint.c (match_bfd_flags): Make "string" const.
4795 (print_bfd_section_info): Remove casts.
4796 (print_objfile_section_info): Make "string" const.
4798 2014-07-24 Tom Tromey <tromey@redhat.com>
4800 * inf-child.c (inf_child_open_target): Make "arg" const.
4801 * inf-child.h (inf_child_open_target): Update.
4803 2014-07-24 Tom Tromey <tromey@redhat.com>
4805 * environ.c (unset_in_environ): Make "var" const.
4806 * environ.h (unset_in_environ): Update.
4808 2014-07-24 Tom Tromey <tromey@redhat.com>
4810 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4812 (scan_filename_with_cleanup): Likewise.
4813 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4814 Make arguments const.
4815 (restore_command): Update.
4817 2014-07-24 Pedro Alves <palves@redhat.com>
4819 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4821 2014-07-24 Tom Tromey <tromey@redhat.com>
4822 Gary Benson <gbenson@redhat.com>
4824 * nat/linux-ptrace.c (additional_flags): New global.
4825 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4826 additional_flags; don't check GDBSERVER.
4827 (linux_ptrace_set_additional_flags): New function.
4828 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4830 * linux-nat.c (_initialize_linux_nat): Call
4831 linux_ptrace_set_additional_flags.
4833 2014-07-24 Tom Tromey <tromey@redhat.com>
4835 * make-target-delegates (munge_type, write_debugmethod): New
4837 (debug_names): New global.
4838 ($TARGET_DEBUG_PRINTER): New global.
4839 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4841 Write debug methods. Generate init_debug_target.
4842 * target-debug.h: New file.
4843 * target-delegates.c: Rebuild.
4844 * target.c: Include target-debug.h.
4845 (debug_target): Hoist definition.
4846 (target_kill, target_get_section_table, target_memory_map)
4847 (target_flash_erase, target_flash_done, target_detach)
4848 (target_disconnect, target_wait, target_resume)
4849 (target_pass_signals, target_program_signals, target_follow_fork)
4850 (target_mourn_inferior, target_search_memory)
4851 (target_thread_address_space, target_close)
4852 (target_find_new_threads, target_core_of_thread)
4853 (target_verify_memory, target_insert_mask_watchpoint)
4854 (target_remove_mask_watchpoint): Remove targetdebug code.
4855 (debug_to_post_attach, debug_to_prepare_to_store)
4856 (debug_to_files_info, debug_to_insert_breakpoint)
4857 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4858 (debug_to_region_ok_for_hw_watchpoint)
4859 (debug_to_can_accel_watchpoint_condition)
4860 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4861 (debug_to_watchpoint_addr_within_range)
4862 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4863 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4864 (debug_to_terminal_init, debug_to_terminal_inferior)
4865 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4866 (debug_to_terminal_save_ours, debug_to_terminal_info)
4867 (debug_to_load, debug_to_post_startup_inferior)
4868 (debug_to_insert_fork_catchpoint)
4869 (debug_to_remove_fork_catchpoint)
4870 (debug_to_insert_vfork_catchpoint)
4871 (debug_to_remove_vfork_catchpoint)
4872 (debug_to_insert_exec_catchpoint)
4873 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4874 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4875 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4876 (setup_target_debug): Call init_debug_target.
4877 * target.h (TARGET_DEBUG_PRINTER): New macro.
4878 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4879 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4881 2014-07-24 Gary Benson <gbenson@redhat.com>
4883 * exceptions.h (throw_vfatal): Renamed to...
4884 (throw_vquit): New declaration.
4885 (throw_quit): Likewise.
4886 * exceptions.c (throw_vfatal): Renamed to...
4887 (throw_vquit): New function.
4888 (throw_quit): Likewise.
4889 (throw_error): Call throw_verror rather than throw_it.
4890 * utils.h (vfatal): Removed.
4892 * utils.c (vfatal): Removed.
4894 (internal_verror): Replaced call to fatal with call to throw_quit.
4895 (quit): Replaced calls to fatal with calls to throw_quit.
4897 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4899 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4902 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4904 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4905 less than zero in conditional expression.
4907 2014-07-23 Tom Tromey <tromey@redhat.com>
4909 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4910 ($INTRO_PART): Don't match whitespace.
4911 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4913 ($METHOD): Add $METHOD_TRAILER.
4915 (scan_target_h): New sub.
4916 Change main loop not to collect state.
4917 * target-delegates.c: Rebuild.
4919 2014-07-23 Gary Benson <gbenson@redhat.com>
4921 * cp-support.c (gdb_demangle): Fix build on systems without
4924 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4926 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4927 for reference entry value target data value.
4929 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4931 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4932 value_available_contents_eq.
4934 2014-07-22 Pedro Alves <palves@redhat.com>
4936 * value.c (allocate_optimized_out_value): Don't mark value as
4939 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4941 * MAINTAINERS (Write After Approval): Update my email address.
4943 2014-07-20 Doug Evans <dje@google.com>
4946 * remote.c (putpkt_binary): Add text to error message.
4948 2014-07-20 Yao Qi <yao@codesourcery.com>
4950 * eval.c: Remove "Chill" from comments.
4951 * gdbtypes.h: Likewise.
4952 * symtab.h: Likewise.
4954 2014-07-20 Yao Qi <yao@codesourcery.com>
4956 * std-operator.def: Update comments to TERNOP_SLICE.
4958 2014-07-20 Yao Qi <yao@codesourcery.com>
4960 * std-operator.def: Remove BINOP_RANGE.
4961 * breakpoint.c (watchpoint_exp_is_const): Update.
4962 * expprint.c (dump_subexp_body_standard): Likewise.
4963 * eval.c (init_array_element): Remove dead code.
4964 (evaluate_subexp_standard): Likewise.
4966 2014-07-20 Yao Qi <yao@codesourcery.com>
4968 * std-operator.def: Remove BINOP_IN.
4969 * breakpoint.c (watchpoint_exp_is_const): Update.
4970 * eval.c (evaluate_subexp_standard): Likewise.
4971 * expprint.c (dump_subexp_body_standard): Likewise.
4973 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4975 * microblaze-tdep.c (microblaze_register_names): Add
4976 the rshr and rslr register names.
4977 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4978 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4979 Use of tdesc_numbered_register. Use of
4980 microblaze_register_g_packet_guesses. Use of
4981 tdesc_use_registers. Use of set_gdbarch_register_type.
4982 (microblaze_register_g_packet_guesses): New.
4983 * microblaze-tdep.h (microblaze_reg_num): Add
4984 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4985 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4986 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4987 * features/microblaze-core.xml: New file.
4988 * features/microblaze-stack-protect.xml: New file.
4989 * features/microblaze-with-stack-protect.c: New file.
4990 * features/microblaze-with-stack-protect.xml: New file.
4991 * features/microblaze.xml: New file.
4992 * features/microblaze.c: New file.
4993 * features/Makefile (microblaze-with-stack-protect): Add
4994 microblaze-with-stack-protect microblaze and microblaze-expedite.
4995 * regformats/microblaze-with-stack-protect.dat: New file.
4996 * regformats/microblaze.dat: New file.
4997 * doc/gdb.texinfo (MicroBlaze Features): Added.
4999 2014-07-18 Tom Tromey <tromey@redhat.com>
5001 * exec.c (exec_ops): Now static.
5002 * exec.h (exec_ops): Don't declare.
5004 2014-07-18 Tom Tromey <tromey@redhat.com>
5006 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5007 to find_target_beneath.
5008 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5009 find_target_beneath.
5010 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5012 2014-07-18 Tom Tromey <tromey@redhat.com>
5015 * utils.c (quit): Use target_supports_terminal_ours.
5016 * target.h (target_supports_terminal_ours): Declare.
5017 * target.c (target_supports_delete_record): Don't check
5018 to_delete_record against NULL.
5019 (target_supports_terminal_ours): New function.
5021 2014-07-18 Tom Tromey <tromey@redhat.com>
5024 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5025 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5026 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5027 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5028 * windows-nat.c (windows_xfer_partial): Always delegate.
5029 * record-btrace.c (record_btrace_xfer_partial): Simplify
5031 (record_btrace_fetch_registers, record_btrace_store_registers)
5032 (record_btrace_prepare_to_store, record_btrace_resume)
5033 (record_btrace_wait, record_btrace_find_new_threads)
5034 (record_btrace_thread_alive): Likewise.
5035 * procfs.c (procfs_xfer_partial): Always delegate.
5036 * corelow.c (core_xfer_partial): Always delegate.
5037 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5039 2014-07-18 Tom Tromey <tromey@redhat.com>
5041 * exec.c (exec_make_note_section): Move earlier.
5043 2014-07-17 Doug Evans <dje@google.com>
5046 * maint.c (count_symtabs_and_blocks): Handle NULL
5047 current_program_space.
5048 (report_command_stats): Check global enabled flag in addition to
5049 recorded enabled flag.
5050 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5052 2014-07-16 Pedro Alves <palves@redhat.com>
5054 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5056 2014-07-16 Tom Tromey <tromey@redhat.com>
5058 * target.h (struct target_ops) <to_delete_record>: Reformat
5061 2014-07-16 Tom Tromey <tromey@redhat.com>
5063 * target-delegates.c: Rebuild.
5065 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5067 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5068 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5069 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5070 (avr_pointer_to_address): Likewise.
5071 (avr_address_class_type_flags): New function.
5072 (avr_address_class_type_flags_to_name): Likewise.
5073 (avr_address_class_name_to_type_flags): Likewise.
5074 (avr_gdbarch_init): Set address_class_type_flags,
5075 address_class_type_flags_to_name and
5076 address_class_name_to_type_flags.
5078 2014-07-15 Pedro Alves <palves@redhat.com>
5080 * linux-nat.c (kill_callback): Save errno and work with saved
5083 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5085 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5087 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5089 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5090 breakpoint support correctly.
5092 2014-07-14 Pedro Alves <palves@redhat.com>
5094 * utils.c (prompt_for_continue): Call target_terminal_ours.
5096 2014-07-14 Pedro Alves <palves@redhat.com>
5098 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5099 catch_errors. Don't re-enable stdin or notify observers where,
5101 (fetch_inferior_event_wrapper): Delete.
5103 2014-07-14 Pedro Alves <palves@redhat.com>
5106 * top.c: Include "inf-loop.h".
5107 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5109 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5111 (gdb_readline_wrapper): Store whether the target is async, and
5114 2014-07-14 Pedro Alves <palves@redhat.com>
5117 * top.c (gdb_readline_wrapper_line): Tweak comment.
5118 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5119 the input handler callback.
5121 2014-07-14 Pedro Alves <palves@redhat.com>
5124 * main.c: Include event-top.h.
5125 (handle_command_errors): New function.
5126 (catch_command_errors, catch_command_errors_const): Use it.
5128 2014-07-14 Pedro Alves <palves@redhat.com>
5130 * exceptions.c (catch_command_errors, catch_command_errors_const):
5132 * exceptions.h (catch_command_errors_ftype)
5133 (catch_command_errors_const_ftype): Moved to main.c.
5134 (catch_command_errors, catch_command_errors_const): Delete
5136 * main.c (catch_command_errors_ftype)
5137 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5138 (catch_command_errors, catch_command_errors_const)): Moved here
5139 from exceptions.c and make static.
5141 2014-07-14 Pedro Alves <palves@redhat.com>
5143 * exceptions.c (print_any_exception): Delete.
5144 (catch_exceptions_with_msg): Use exception_print instead of
5145 print_any_exception.
5146 (catch_errors): Use exception_fprintf instead of
5147 print_any_exception.
5148 (catch_command_errors, catch_command_errors_const): Use
5149 exception_print instead of print_any_exception.
5151 2014-07-14 Pedro Alves <palves@redhat.com>
5153 * infcall.c (run_inferior_call): Set 'sync_execution' while
5154 running the inferior call.
5156 2014-07-14 Pedro Alves <palves@redhat.com>
5158 * value.c (value_contents_equal): Delete function.
5159 * value.h (value_contents_equal): Delete declaration.
5161 2014-07-14 Tom Tromey <tromey@redhat.com>
5164 * gdbtypes.c (is_dynamic_type_internal): New function, from
5166 (is_dynamic_type): Rewrite.
5167 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5168 (resolve_dynamic_struct): Likewise.
5169 (resolve_dynamic_type_internal): New function, from
5170 resolve_dynamic_type.
5171 (resolve_dynamic_type): Rewrite.
5173 2014-07-14 Tom Tromey <tromey@redhat.com>
5175 * target.c (target_require_runnable): Also check record_stratum.
5178 2014-07-11 Yao Qi <yao@codesourcery.com>
5180 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5181 thumb_instruction_restores_sp return true.
5183 2014-07-11 Yao Qi <yao@codesourcery.com>
5185 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5186 (thumb_in_function_epilogue_p): Call
5187 thumb_instruction_restores_sp.
5189 2014-07-11 Yao Qi <yao@codesourcery.com>
5191 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5193 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5195 2014-07-11 Gary Benson <gbenson@redhat.com>
5197 * amd64-linux-nat.c (gdbcore.h): Remove include.
5198 (regset.h): Likewise.
5199 (nat/linux-btrace.h): Likewise.
5200 (btrace.h): Likewise.
5201 (gdb_assert.h): Likewise.
5202 (string.h): Likewise.
5203 (sys/uio.h): Likewise.
5204 (sys/debugreg.h): Likewise.
5205 (sys/syscall.h): Likewise.
5206 (sys/procfs.h): Likewise.
5207 (sys/user.h): Likewise.
5208 (asm/ptrace.h): Likewise.
5209 (i386-nat.h): Likewise.
5210 * i386-linux-nat.c (i386-nat.h): Likewise.
5211 (regset.h): Likewise.
5212 (target.h): Likewise.
5213 (linux-nat.h): Likewise.
5214 (nat/linux-btrace.h): Likewise.
5215 (btrace.h): Likewise.
5216 (gdb_assert.h): Likewise.
5217 (string.h): Likewise.
5218 (sys/uio.h): Likewise.
5219 (sys/user.h): Likewise.
5220 (sys/procfs.h): Likewise.
5221 (sys/reg.h): Likewise.
5222 (sys/debugreg.h): Likewise.
5223 (ORIG_EAX): Remove definition.
5225 2014-07-11 Gary Benson <gbenson@redhat.com>
5227 * i386-linux-nat.h: New file.
5228 * x86-linux-nat.h: Likewise.
5229 * x86-linux-nat.c: Likewise.
5230 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5231 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5232 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5233 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5234 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5235 (PTRACE_SETREGSET): Likewise.
5236 (arch_lwp_info): Now in x86-linux-nat.c.
5237 (have_ptrace_getregset): Now in x86-linux-nat.h.
5238 (x86_linux_dr_get): Now in x86-linux-nat.c.
5239 (x86_linux_dr_set): Likewise.
5240 (x86_linux_dr_get_addr): Likewise.
5241 (x86_linux_dr_get_control): Likewise.
5242 (x86_linux_dr_get_status): Likewise.
5243 (update_debug_registers_callback): Likewise.
5244 (x86_linux_dr_set_control): Likewise.
5245 (x86_linux_dr_set_addr): Likewise.
5246 (x86_linux_prepare_to_resume): Likewise.
5247 (x86_linux_new_thread): Likewise.
5248 (x86_linux_new_fork): Likewise.
5249 (x86_linux_get_thread_area): Likewise.
5250 (super_post_startup_inferior): Likewise.
5251 (x86_linux_child_post_startup_inferior): Likewise.
5252 (AMD64_LINUX_USER64_CS): Likewise.
5253 (AMD64_LINUX_X32_DS): Likewise.
5254 (x86_linux_read_description): Likewise.
5255 (x86_linux_enable_btrace): Likewise.
5256 (x86_linux_disable_btrace): Likewise.
5257 (x86_linux_teardown_btrace): Likewise.
5258 (x86_linux_read_btrace): Likewise.
5259 (x86_linux_create_target): Likewise.
5260 (x86_linux_add_target): Likewise.
5261 * i386-linux-nat.c (x86-linux-nat.h): New include.
5262 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5263 (PTRACE_SETREGSET): Likewise.
5264 (arch_lwp_info): Now in x86-linux-nat.c.
5265 (have_ptrace_getregset): Now in x86-linux-nat.h.
5266 (x86_linux_dr_get): Now in x86-linux-nat.c.
5267 (x86_linux_dr_set): Likewise.
5268 (x86_linux_dr_get_addr): Likewise.
5269 (x86_linux_dr_get_control): Likewise.
5270 (x86_linux_dr_get_status): Likewise.
5271 (update_debug_registers_callback): Likewise.
5272 (x86_linux_dr_set_control): Likewise.
5273 (x86_linux_dr_set_addr): Likewise.
5274 (x86_linux_prepare_to_resume): Likewise.
5275 (x86_linux_new_thread): Likewise.
5276 (x86_linux_new_fork): Likewise.
5277 (x86_linux_get_thread_area): Likewise.
5278 (super_post_startup_inferior): Likewise.
5279 (x86_linux_child_post_startup_inferior): Likewise.
5280 (AMD64_LINUX_USER64_CS): Likewise.
5281 (AMD64_LINUX_X32_DS): Likewise.
5282 (x86_linux_read_description): Likewise.
5283 (x86_linux_enable_btrace): Likewise.
5284 (x86_linux_disable_btrace): Likewise.
5285 (x86_linux_teardown_btrace): Likewise.
5286 (x86_linux_read_btrace): Likewise.
5287 (x86_linux_create_target): Likewise.
5288 (x86_linux_add_target): Likewise.
5290 2014-07-11 Gary Benson <gbenson@redhat.com>
5292 * amd64-linux-nat.c: Comment and whitespace changes.
5293 * i386-linux-nat.c: Comment and whitespace changes.
5295 2014-07-11 Gary Benson <gbenson@redhat.com>
5297 * amd64-linux-nat.c (x86_linux_create_target): New function.
5298 (x86_linux_add_target): Likewise.
5299 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5300 * i386-linux-nat.c (x86_linux_create_target): New function.
5301 (x86_linux_add_target): Likewise.
5302 (_initialize_i386_linux_nat): Delegate to the above new functions.
5304 2014-07-11 Gary Benson <gbenson@redhat.com>
5306 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5307 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5308 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5309 (ps_get_thread_area): Delegate to the above.
5311 2014-07-11 Gary Benson <gbenson@redhat.com>
5313 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5314 x86_linux_read_description. All uses updated. amd64-specific
5315 code conditionalized. Conditionalized i386-specific code added.
5316 Redundant cast removed.
5317 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5318 x86_linux_read_description. All uses updated. i386-specific
5319 code conditionalized. Conditionalized amd64-specific code added.
5320 One sizeof replaced with the actual type it is describing.
5322 2014-07-11 Gary Benson <gbenson@redhat.com>
5324 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5325 x86_linux_dr_get. All uses updated.
5326 (amd64_linux_dr_set): Renamed to
5327 x86_linux_dr_set. All uses updated.
5328 (amd64_linux_dr_get_addr): Renamed to
5329 x86_linux_dr_get_addr. All uses updated.
5330 (amd64_linux_dr_get_control): Renamed to
5331 x86_linux_dr_get_control. All uses updated.
5332 (amd64_linux_dr_get_status): Renamed to
5333 x86_linux_dr_get_status. All uses updated.
5334 (amd64_linux_dr_set_control): Renamed to
5335 x86_linux_dr_set_control. All uses updated.
5336 (amd64_linux_dr_set_addr): Renamed to
5337 x86_linux_dr_set_addr. All uses updated.
5338 (amd64_linux_prepare_to_resume): Renamed to
5339 x86_linux_prepare_to_resume. All uses updated.
5340 (amd64_linux_new_thread): Renamed to
5341 x86_linux_new_thread. All uses updated.
5342 (amd64_linux_new_fork): Renamed to
5343 x86_linux_new_fork. All uses updated.
5344 (amd64_linux_child_post_startup_inferior): Renamed to
5345 x86_linux_child_post_startup_inferior. All uses updated.
5346 (amd64_linux_enable_btrace): Renamed to
5347 x86_linux_enable_btrace. All uses updated.
5348 (amd64_linux_disable_btrace): Renamed to
5349 x86_linux_disable_btrace. All uses updated.
5350 (amd64_linux_teardown_btrace): Renamed to
5351 x86_linux_teardown_btrace. All uses updated.
5352 (amd64_linux_read_btrace): Renamed to
5353 x86_linux_read_btrace. All uses updated.
5354 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5355 x86_linux_dr_get. All uses updated.
5356 (i386_linux_dr_set): Renamed to
5357 x86_linux_dr_set. All uses updated.
5358 (i386_linux_dr_get_addr): Renamed to
5359 x86_linux_dr_get_addr. All uses updated.
5360 (i386_linux_dr_get_control): Renamed to
5361 x86_linux_dr_get_control. All uses updated.
5362 (i386_linux_dr_get_status): Renamed to
5363 x86_linux_dr_get_status. All uses updated.
5364 (i386_linux_dr_set_control): Renamed to
5365 x86_linux_dr_set_control. All uses updated.
5366 (i386_linux_dr_set_addr): Renamed to
5367 x86_linux_dr_set_addr. All uses updated.
5368 (i386_linux_prepare_to_resume): Renamed to
5369 x86_linux_prepare_to_resume. All uses updated.
5370 (i386_linux_new_thread): Renamed to
5371 x86_linux_new_thread. All uses updated.
5372 (i386_linux_new_fork): Renamed to
5373 x86_linux_new_fork. All uses updated.
5374 (i386_linux_child_post_startup_inferior): Renamed to
5375 x86_linux_child_post_startup_inferior. All uses updated.
5376 (i386_linux_enable_btrace): Renamed to
5377 x86_linux_enable_btrace. All uses updated.
5378 (i386_linux_disable_btrace): Renamed to
5379 x86_linux_disable_btrace. All uses updated.
5380 (i386_linux_teardown_btrace): Renamed to
5381 x86_linux_teardown_btrace. All uses updated.
5382 (i386_linux_read_btrace): Renamed to
5383 x86_linux_read_btrace. All uses updated.
5385 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5387 * remote.c (extended_remote_post_attach): New function.
5388 (init_extended_remote_ops): Install it as to_post_attach method.
5390 2014-07-09 Pedro Alves <palves@redhat.com>
5392 * infcmd.c (attach_command_post_wait): Don't call
5393 target_terminal_inferior here.
5394 (attach_command): Call it here instead.
5396 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5398 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5400 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5401 from varobj.c, with additional checks.
5402 (c_varobj_ops): Fill in is_path_expr_parent field.
5403 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5404 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5406 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5408 (varobj_default_is_path_expr_parent): New function.
5409 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5410 (varobj_default_is_path_expr_parent): Declare new function.
5412 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5414 * infcmd.c (finish_backward): Turn internal error into normal error.
5416 2014-07-07 Pedro Alves <palves@redhat.com>
5419 * remote.c (async_handle_remote_sigint)
5420 (async_handle_remote_sigint_twice): Call
5421 gdb_call_async_signal_handler instead of
5422 mark_async_signal_handler.
5424 2014-07-07 Tom Tromey <tromey@redhat.com>
5426 * target-delegates.c: Rebuild.
5427 * target.c (target_info_record): Remove.
5428 * record.c (info_record_command): Unconditionally call
5430 * target.h (struct target_ops) <to_info_record>: Use
5431 TARGET_DEFAULT_IGNORE.
5432 (target_info_record): Remove.
5434 2014-07-07 Tom Tromey <tromey@redhat.com>
5436 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5437 TARGET_DEFAULT_NORETURN.
5438 * target.c (generic_tls_error): New function.
5439 (target_translate_tls_address): Don't search target stack.
5440 * target-delegates.c: Rebuild.
5441 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5443 * linux-thread-db.c (thread_db_get_thread_local_address):
5444 Unconditionally call beneath target.
5446 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5448 * cli/cli-logging.c (pop_output_files): Assign targerr to
5451 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5453 * MAINTAINERS (Write After Approval): Update my email address.
5455 2014-07-02 Gary Benson <gbenson@redhat.com>
5457 * proc-service.c (ps_xfer_memory): Update comment.
5458 (ps_pstop): Remove unused function.
5459 (ps_pcontinue): Likewise.
5460 (ps_lstop): Likewise.
5461 (ps_lcontinue): Likewise.
5462 (ps_lgetxregsize): Likewise.
5463 (ps_lgetxregs): Likewise.
5464 (ps_lsetxregs): Likewise.
5465 (ps_plog): Likewise.
5466 (ps_ptread): Likewise.
5467 (ps_ptwrite): Likewise.
5469 2014-07-01 Mark Wielaard <mjw@redhat.com>
5471 * dwarf2read.c (add_array_cv_type): New function.
5472 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5473 (read_tag_volatile_type): Likewise.
5475 2014-07-01 Tom Tromey <tromey@redhat.com>
5477 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5478 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5479 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5480 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5481 * command.h (cmd_cfunc_ftype): Move earlier.
5482 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5483 (add_com, add_info): Use cmd_cfunc_ftype.
5485 2014-06-30 Tom Tromey <tromey@redhat.com>
5487 * symtab.c (operator_chars): Make parameters and return type
5489 (file_matches): Make "files" const.
5490 (struct search_symbols_data) <files>: Now const.
5491 (search_symbols): Make "regexp" and "files" parameters const.
5493 (symtab_symbol_info): Remove cast.
5494 (rbreak_command): Update.
5495 * symtab.h (search_symbols): Update.
5497 2014-06-27 Yao Qi <yao@codesourcery.com>
5499 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5500 Change parameter type to 'struct thread_info *'. Caller
5502 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5504 * dummy-frame.c (struct dummy_frame_id): New.
5505 (dummy_frame_id_eq): New function.
5506 (struct dummy_frame) <id>: Change its type to 'struct
5508 (dummy_frame_push): Add parameter ptid and save it in
5510 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5512 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5514 (lookup_dummy_frame): Change parameter type to 'struct
5515 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5516 instead of frame_id_eq.
5517 (dummy_frame_pop): Add parameter ptid. Callers updated.
5518 Update comments. Compose dummy_frame_id and pass it to
5520 (dummy_frame_discard): Add parameter ptid.
5521 (dummy_frame_sniffer): Compose dummy_frame_id and call
5522 dummy_frame_id_eq instead of frame_id_eq.
5523 (fprint_dummy_frames): Print ptid.
5524 * dummy-frame.h: Remove comments.
5525 (dummy_frame_push): Add ptid in declaration.
5526 (dummy_frame_pop, dummy_frame_discard): Likewise.
5528 2014-06-26 Tom Tromey <tromey@redhat.com>
5530 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5531 * command.h (error_no_arg): Update.
5533 2014-06-26 Tom Tromey <tromey@redhat.com>
5535 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5536 (do_show_command): Make "arg" const.
5537 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5539 2014-06-26 Tom Tromey <tromey@redhat.com>
5541 * record-full.c (record_full_get_bookmark): Make "args" const.
5542 (record_full_goto_bookmark): Make "raw_bookmark" const.
5543 * record.c (record_goto): New function.
5544 (cmd_record_goto): Use it. Now static.
5545 * record.h (record_goto): Declare.
5546 (cmd_record_goto): Remove declaration.
5547 * target-delegates.c: Rebuild.
5548 * target.h (struct target_ops) <to_get_bookmark,
5549 to_goto_bookmark>: Make parameter const.
5551 2014-06-26 Tom Tromey <tromey@redhat.com>
5553 * defs.h (generic_load): Update.
5554 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5555 * monitor.c (monitor_load): Make "args" const.
5556 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5557 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5559 (mips_load): Make "file" const.
5560 * remote-sim.c (gdbsim_load): Make "args" const.
5561 * remote.c (remote_load): Make "name" const.
5562 * symfile.c (generic_load): Make "args" const.
5563 * target-delegates.c: Rebuild.
5564 * target.c (target_load): Make "arg" const.
5565 (debug_to_load): Make "args" const.
5566 * target.h (struct target_ops) <to_load>: Make parameter const.
5567 (target_load): Update.
5569 2014-06-26 Tom Tromey <tromey@redhat.com>
5572 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5573 (dwarf2_physname, read_partial_die)
5574 (guess_partial_die_structure_name, fixup_partial_die)
5575 (guess_full_die_structure_name, anonymous_struct_prefix)
5576 (dwarf2_name): Use per-BFD obstack.
5578 2014-06-26 Yao Qi <yao@codesourcery.com>
5580 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5581 dummyframe and this_id into inner block below.
5583 2014-06-26 Yao Qi <yao@codesourcery.com>
5585 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5586 with "signal_pass[0]" in the initialization of signal_pass.
5588 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5590 * record-btrace.c (record_btrace_generating_corefile)
5591 (record_btrace_prepare_to_generate_core)
5592 (record_btrace_done_generating_core): New.
5593 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5594 (record_btrace_store_registers, record_btrace_prepare_to_store):
5595 Forward request when generating a core file.
5596 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5597 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5598 to_done_generating_core.
5600 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5602 * target.h (target_ops) <to_prepare_to_generate_core>
5603 <to_done_generating_core>: New.
5604 (target_prepare_to_generate_core, target_done_generating_core): New.
5605 * target.c (target_prepare_to_generate_core)
5606 (target_done_generating_core): New.
5607 * target-delegates.c: Regenerate.
5608 * gcore.c: (write_gcore_file): Rename to ...
5609 (write_gcore_file_1): ...this.
5610 (write_gcore_file): Call target_prepare_to_generate_core
5611 and target_done_generating_core.
5613 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5615 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5616 * gcore.c (write_gcore_file): Free memory returned from
5617 make_corefile_notes.
5618 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5619 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5621 2014-06-24 Yao Qi <yao@codesourcery.com>
5623 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5624 (arm_linux_init_abi): Set skip_trampoline_code with
5625 gdbarch_skip_trampoline_code instead of
5626 find_solib_trampoline_target.
5628 2014-06-24 Yao Qi <yao@codesourcery.com>
5630 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5631 arm_skip_bx_reg returns non-zero.
5633 2014-06-24 Yao Qi <yao@codesourcery.com>
5635 * arm-tdep.c (arm_skip_bx_reg): New function.
5636 (arm_skip_stub): Call arm_skip_bx_reg.
5638 2014-06-23 Don Breazeal <donb@codesourcery.com>
5640 * MAINTAINERS: Add myself as write-after-approval maintainer.
5642 2014-06-23 Pedro Alves <palves@redhat.com>
5644 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5645 DR_CONTROL before setting DR0..DR3.
5646 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5647 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5648 bits of DR_CONTROL related to the debug register slot being
5649 disabled. If all slots are vacant, clear local slowdown as well,
5650 and assert DR_CONTROL is 0.
5652 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5654 * python/lib/gdb/command/xmethods.py
5655 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5656 current progspace only if the string "progspace" matches LOCUS_RE.
5658 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5660 Fix --with-system-readline with readline-6.3 patch 5.
5661 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5662 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5665 2014-06-20 Tom Tromey <tromey@redhat.com>
5667 * dwarf2read.c (dw2_get_real_path): Use correct type in
5669 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5671 2014-06-20 Gary Benson <gbenson@redhat.com>
5673 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5674 * common/glibc_thread_db.h: Likewise.
5675 * common/i386-cpuid.h: Likewise.
5676 * common/i386-gcc-cpuid.h: Likewise.
5677 * common/linux-btrace.h: Likewise.
5678 * common/linux-osdata.h: Likewise.
5679 * common/linux-procfs.h: Likewise.
5680 * common/linux-ptrace.h: Likewise.
5681 * common/mips-linux-watch.h: Likewise.
5682 * common/linux-btrace.c: Moved to nat.
5683 * common/linux-osdata.c: Likewise.
5684 * common/linux-procfs.c: Likewise.
5685 * common/linux-ptrace.c: Likewise.
5686 * common/mips-linux-watch.c: Likewise.
5687 * nat/gdb_thread_db.h: Moved from common.
5688 * nat/glibc_thread_db.h: Likewise.
5689 * nat/i386-cpuid.h: Likewise.
5690 * nat/i386-gcc-cpuid.h: Likewise.
5691 * nat/linux-btrace.c: Likewise.
5692 * nat/linux-btrace.h: Likewise.
5693 * nat/linux-osdata.c: Likewise.
5694 * nat/linux-osdata.h: Likewise.
5695 * nat/linux-procfs.c: Likewise.
5696 * nat/linux-procfs.h: Likewise.
5697 * nat/linux-ptrace.c: Likewise.
5698 * nat/linux-ptrace.h: Likewise.
5699 * nat/mips-linux-watch.c: Likewise.
5700 * nat/mips-linux-watch.h: Likewise.
5701 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5702 (object file files): Reordered.
5703 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5704 of glibc_thread_db.h.
5706 2014-06-20 Gary Benson <gbenson@redhat.com>
5708 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5709 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5710 (i386_dr_low): Likewise.
5711 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5712 (i386_dr_low_set_addr): Likewise.
5713 (i386_dr_low_get_addr): Likewise.
5714 (i386_dr_low_can_set_control): Likewise.
5715 (i386_dr_low_set_control): Likewise.
5716 (i386_dr_low_get_control): Likewise.
5717 (i386_dr_low_get_status): Likewise.
5718 (i386_get_debug_register_length): Likewise.
5719 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5720 (i386_dr_low): Likewise.
5721 * nat/i386-dregs.c (i386-low.h): Remove include.
5722 (i386-nat.h): Likewise.
5723 (nat/i386-dregs.h): New include.
5724 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5725 (i386_dr_low_set_addr): Likewise.
5726 (i386_dr_low_get_addr): Likewise.
5727 (i386_dr_low_can_set_control): Likewise.
5728 (i386_dr_low_set_control): Likewise.
5729 (i386_dr_low_get_control): Likewise.
5730 (i386_dr_low_get_status): Likewise.
5731 (i386_get_debug_register_length): Likewise.
5732 (debug_hw_points): Likewise.
5734 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5736 * Makefile.in (SFILES): Add d-exp.y.
5737 (YYFILES): Add d-exp.c.
5738 (YYOBJ): Add d-exp.o.
5739 (local-maintainer-clean): Delete d-exp.c.
5740 * d-exp.y: New file.
5741 * d-lang.h (d_parse): New declaration.
5742 (d_error): New declaration.
5743 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5744 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5745 PREC_ORDER operators.
5746 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5748 2014-06-19 Yao Qi <yao@codesourcery.com>
5750 * gdbthread.h (any_running): Remove the declaration.
5751 * thread.c (any_running): Remove.
5753 2014-06-19 Yao Qi <yao@codesourcery.com>
5755 * gdbthread.h (struct thread_info) <state>: Change its type to
5756 'enum thread_state'. Update comments.
5758 2014-06-19 Pedro Alves <palves@redhat.com>
5760 * gdbthread.h (ALL_THREADS): Delete.
5761 (ALL_NON_EXITED_THREADS): New macro.
5762 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5763 instead of ALL_THREADS.
5764 * infrun.c (find_thread_needs_step_over)
5765 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5766 instead of ALL_THREADS.
5767 * record-btrace.c (record_btrace_open)
5768 (record_btrace_stop_recording, record_btrace_close)
5769 (record_btrace_is_replaying, record_btrace_resume)
5770 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5771 * remote.c (append_pending_thread_resumptions): Likewise.
5772 * thread.c (thread_apply_all_command): Likewise.
5774 2014-06-19 Gary Benson <gbenson@redhat.com>
5776 * i386-nat.c (i386_stopped_by_watchpoint):
5777 Use i386_dr_stopped_by_watchpoint.
5778 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5779 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5781 2014-06-19 Gary Benson <gbenson@redhat.com>
5783 * nat/i386-dregs.c: New file.
5784 * Makefile.in (i386-dregs.o): New rule.
5785 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5786 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5787 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5788 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5789 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5790 * config/i386/go32.mh (NATDEPFILES): Likewise.
5791 * config/i386/linux.mh (NATDEPFILES): Likewise.
5792 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5793 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5794 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5795 * i386-nat.h (debug_hw_points): New declaration.
5796 * i386-nat.c (breakpoint.h): Remove include.
5797 (command.h): Likewise.
5798 (target.h): Likewise.
5799 (gdb_assert.h): Likewise.
5800 (debug_hw_points): Made nonstatic.
5801 (debug_printf): Now in i386-dregs.c.
5802 (TARGET_HAS_DR_LEN_8): Likewise.
5803 (DR_CONTROL_SHIFT): Likewise.
5804 (DR_CONTROL_SIZE): Likewise.
5805 (DR_RW_EXECUTE): Likewise.
5806 (DR_RW_WRITE): Likewise.
5807 (DR_RW_READ): Likewise.
5808 (DR_RW_IORW): Likewise.
5809 (DR_LEN_1): Likewise.
5810 (DR_LEN_2): Likewise.
5811 (DR_LEN_4): Likewise.
5812 (DR_LEN_8): Likewise.
5813 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5814 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5815 (DR_ENABLE_SIZE): Likewise.
5816 (DR_LOCAL_SLOWDOWN): Likewise.
5817 (DR_GLOBAL_SLOWDOWN): Likewise.
5818 (DR_CONTROL_RESERVED): Likewise.
5819 (I386_DR_CONTROL_MASK): Likewise.
5820 (I386_DR_VACANT): Likewise.
5821 (I386_DR_LOCAL_ENABLE): Likewise.
5822 (I386_DR_GLOBAL_ENABLE): Likewise.
5823 (I386_DR_DISABLE): Likewise.
5824 (I386_DR_SET_RW_LEN): Likewise.
5825 (I386_DR_GET_RW_LEN): Likewise.
5826 (I386_DR_WATCH_HIT): Likewise.
5827 (i386_wp_op_t): Likewise.
5828 (i386_show_dr): Likewise.
5829 (i386_length_and_rw_bits): Likewise.
5830 (i386_insert_aligned_watchpoint): Likewise.
5831 (i386_remove_aligned_watchpoint): Likewise.
5832 (i386_handle_nonaligned_watchpoint): Likewise.
5833 (i386_update_inferior_debug_regs): Likewise.
5834 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5835 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5836 (i386_region_ok_for_watchpoint):
5837 Use i386_dr_region_ok_for_watchpoint.
5838 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5840 2014-06-19 Gary Benson <gbenson@redhat.com>
5842 * i386-nat.c (i386_insert_hw_breakpoint): Use
5843 i386_insert_watchpoint.
5844 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5846 2014-06-19 Gary Benson <gbenson@redhat.com>
5848 * i386-nat.c (i386_dr_show): Renamed to
5849 i386_show_dr and made static. All uses updated.
5850 (i386_dr_length_and_rw_bits): Renamed to
5851 i386_length_and_rw_bits and made static.
5853 (i386_dr_insert_aligned_watchpoint): Renamed to
5854 i386_insert_aligned_watchpoint and made static.
5856 (i386_dr_remove_aligned_watchpoint): Renamed to
5857 i386_remove_aligned_watchpoint and made static.
5859 (i386_dr_update_inferior_debug_regs): Renamed to
5860 i386_update_inferior_debug_regs and made static.
5862 * nat/i386-dregs.h (i386_dr_show): Removed.
5863 (i386_dr_length_and_rw_bits): Likewise.
5864 (i386_dr_insert_aligned_watchpoint): Likewise.
5865 (i386_dr_remove_aligned_watchpoint): Likewise.
5866 (i386_dr_update_inferior_debug_regs): Likewise.
5868 2014-06-19 Gary Benson <gbenson@redhat.com>
5870 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5871 * configure: Regenerate.
5872 * config.in: Likewise.
5873 * main.c (signal.h): New include.
5874 (setup_alternate_signal_stack): New function.
5875 (captured_main): Call the above.
5876 * cp-support.c (signal.h): New include.
5877 (catch_demangler_crashes): New flag.
5878 (SIGJMP_BUF): New define.
5879 (SIGSETJMP): Likewise.
5880 (SIGLONGJMP): Likewise.
5881 (gdb_demangle_jmp_buf): New static global.
5882 (gdb_demangle_attempt_core_dump): Likewise.
5883 (gdb_demangle_signal_handler): New function.
5884 (gdb_demangle): If catch_demangler_crashes is set, install the
5885 above signal handler before calling bfd_demangle, and restore
5886 the original signal handler afterwards. Display the offending
5887 symbol and call demangler_warning the first time a segmentation
5889 (_initialize_cp_support): New maint set/show command.
5891 2014-06-19 Gary Benson <gbenson@redhat.com>
5893 * utils.h (resource_limit_kind): New enum.
5894 (can_dump_core): New declaration.
5895 (warn_cant_dump_core): Likewise.
5896 (dump_core): Likewise.
5897 * utils.c (dump_core): Made nonstatic. Added new
5898 parameter "limit_kind".
5899 (can_dump_core): Made nonstatic. Moved printing code to...
5900 (warn_cant_dump_core): New function.
5901 (can_dump_core_warn): Likewise.
5902 (internal_vproblem): Replace calls to can_dump_core with
5903 calls to can_dump_core_warn. Supply new argument to each.
5905 2014-06-19 Gary Benson <gbenson@redhat.com>
5907 * utils.h (demangler_vwarning): New declaration.
5908 (demangler_warning): Likewise.
5909 * utils.c (struct internal_problem)
5910 <user_settable_should_quit>: New field.
5911 <user_settable_should_dump_core>: Likewise
5912 (internal_error_problem): Add values for above new fields.
5913 (internal_warning_problem): Likewise.
5914 (demangler_warning_problem): New static global.
5915 (demangler_vwarning): New function.
5916 (demangler_warning): Likewise.
5917 (add_internal_problem_command): Selectively add commands.
5918 (_initialize_utils): New internal problem command.
5919 * maint.c (maintenance_demangler_warning): New function.
5920 (_initialize_maint_cmds): New command.
5922 2014-06-18 Tom Tromey <tromey@redhat.com>
5924 * f-valprint.c (info_common_command_for_block): Update.
5925 * symtab.h (struct general_symbol_info) <common_block>: Now
5928 2014-06-18 Tom Tromey <tromey@redhat.com>
5930 * symtab.h (struct symtab) <blockvector>: Now const.
5931 * ada-lang.c (ada_add_global_exceptions): Update.
5932 * buildsym.c (augment_type_symtab): Update.
5933 * dwarf2read.c (dw2_lookup_symbol): Update.
5934 * jit.c (finalize_symtab): Update.
5935 * jv-lang.c (add_class_symtab_symbol): Update.
5936 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5938 * objfiles.c (objfile_relocate1): Update.
5939 * psymtab.c (lookup_symbol_aux_psymtabs)
5940 (maintenance_check_psymtabs): Update.
5941 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5943 * spu-tdep.c (spu_catch_start): Update.
5944 * symmisc.c (dump_symtab_1): Update.
5945 * symtab.c (lookup_global_symbol_from_objfile)
5946 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5947 (basic_lookup_transparent_type_quick)
5948 (basic_lookup_transparent_type, find_pc_sect_symtab)
5949 (find_pc_sect_line, search_symbols): Update.
5950 * block.c (find_block_in_blockvector): Make "bl" const.
5951 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5953 (blockvector_contains_pc): Make "bv" const.
5954 (block_for_pc_sect): Update.
5955 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5956 (blockvector_contains_pc): Update.
5957 * breakpoint.c (resolve_sal_pc): Update.
5958 * inline-frame.c (block_starting_point_at): Update.
5960 2014-06-18 Tom Tromey <tromey@redhat.com>
5962 * completer.c (complete_line): Make "line_buffer" const.
5963 * completer.h (complete_line): Update.
5965 2014-06-18 Tom Tromey <tromey@redhat.com>
5967 * symtab.c (add_macro_name): Remove unneeded cast.
5969 2014-06-18 Tom Tromey <tromey@redhat.com>
5971 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5972 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5974 2014-06-18 Tom Tromey <tromey@redhat.com>
5976 * probe.c (info_probes_for_ops): Make "arg" const.
5977 * probe.h (info_probes_for_ops): Update.
5979 2014-06-18 Tom Tromey <tromey@redhat.com>
5981 * varobj.c (varobj_create): Update.
5982 * valops.c (value_of_this): Update.
5983 * tracepoint.c (add_local_symbols, scope_info): Update.
5984 * symtab.h (struct general_symbol_info) <block>: Now const.
5985 * symtab.c (skip_prologue_sal)
5986 (default_make_symbol_completion_list_break_on)
5987 (skip_prologue_using_sal): Update.
5988 * stack.h (iterate_over_block_locals)
5989 (iterate_over_block_local_vars): Update.
5990 * stack.c (print_frame_args): Update.
5991 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5993 (get_selected_block): Make return type const.
5994 * python/py-frame.c (frapy_block): Update.
5995 * python/py-block.c (gdbpy_block_for_pc): Update.
5996 * p-exp.y (%union) <bval>: Now const.
5997 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5998 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5999 * m2-exp.y (%union) <bval>: Now const.
6000 * linespec.c (get_current_search_block): Make return type const.
6001 (create_sals_line_offset, find_label_symbols): Update.
6002 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6004 (block_starting_point_at): Make "block" const.
6005 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6006 (check_exception_resume): Update.
6007 * guile/scm-frame.c (gdbscm_frame_block): Update.
6008 * guile/scm-block.c (gdbscm_lookup_block): Update.
6009 * frame.h (get_frame_block): Update.
6010 (get_selected_block): Make return type const.
6011 * frame.c (frame_id_inner): Update.
6012 * f-valprint.c (info_common_command_for_block)
6013 (info_common_command): Update.
6014 * dwarf2loc.c (dwarf2_find_location_expression)
6015 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6016 (locexpr_describe_location_piece): Update.
6017 * c-exp.y (%union) <bval>: Now const.
6018 * breakpoint.c (resolve_sal_pc): Update.
6019 * blockframe.c (get_frame_block):Make return type const.
6020 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6021 (block_innermost_frame): Update.
6022 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6023 (block_for_pc, block_for_pc_sect): Update.
6024 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6026 (block_for_pc_sect, block_for_pc): Make return type const.
6027 * ax-gdb.c (gen_expr): Update.
6028 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6029 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6030 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6031 (ada_read_var_value): Update.
6032 * ada-exp.y (struct name_info) <block>: Now const.
6034 (block_lookup): Constify.
6036 2014-06-18 Gary Benson <gbenson@redhat.com>
6038 * nat/i386-dregs.h: New file.
6039 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6040 * i386-nat.h (i386-dregs.h): New include.
6041 (DR_FIRSTADDR): Now in i386-dregs.h.
6042 (DR_LASTADDR): Likewise.
6043 (DR_NADDR): Likewise.
6044 (DR_STATUS): Likewise.
6045 (DR_CONTROL): Likewise.
6046 (i386_debug_reg_state): Likewise.
6047 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6049 2014-06-18 Don Breazeal <donb@codesourcery.com>
6051 * breakpoint.c (set_longjmp_breakpoint): Call
6052 momentary_breakpoint_from_master with additional argument.
6053 (set_longjmp_breakpoint_for_call_dummy): Call
6054 momentary_breakpoint_from_master with additional argument.
6055 (set_std_terminate_breakpoint): Call
6056 momentary_breakpoint_from_master with additional argument.
6057 (momentary_breakpoint_from_master): Add argument to function
6058 definition and use it to initialize structure member flag.
6059 (clone_momentary_breakpoint): Call
6060 momentary_breakpoint_from_master with additional argument.
6061 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6062 member flags set in momentary_breakpoint_from_master.
6064 2014-06-18 Gary Benson <gbenson@redhat.com>
6066 * i386-nat.c (i386_show_dr): Renamed to
6067 i386_dr_show and made nonstatic. All uses updated.
6068 (i386_length_and_rw_bits): Renamed to
6069 i386_dr_length_and_rw_bits and made nonstatic.
6071 (i386_insert_aligned_watchpoint): Renamed to
6072 i386_dr_insert_aligned_watchpoint and made nonstatic.
6074 (i386_remove_aligned_watchpoint): Renamed to
6075 i386_dr_remove_aligned_watchpoint and made nonstatic.
6077 (i386_update_inferior_debug_regs): Renamed to
6078 i386_dr_update_inferior_debug_regs and made nonstatic.
6081 2014-06-18 Gary Benson <gbenson@redhat.com>
6083 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6084 (i386_dr_low_can_set_control): Likewise.
6085 (i386_dr_low_set_addr): Likewise.
6086 (i386_dr_low_set_control): Likewise.
6087 (i386_dr_low_get_addr): Likewise.
6088 (i386_dr_low_get_status): Likewise.
6089 (i386_dr_low_get_control): Likewise.
6090 (i386_insert_aligned_watchpoint): Use new macros.
6091 (i386_update_inferior_debug_regs): Likewise.
6092 (i386_stopped_data_address): Likewise.
6094 2014-06-18 Gary Benson <gbenson@redhat.com>
6096 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6097 New parameter. All uses updated.
6099 2014-06-18 Gary Benson <gbenson@redhat.com>
6101 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6104 2014-06-18 Gary Benson <gbenson@redhat.com>
6106 * i386-nat.c (debug_printf): New macro.
6107 (i386_get_debug_register_length): Likewise.
6108 (TARGET_HAS_DR_LEN_8): Use above macro.
6109 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6110 and printf_unfiltered. Use phex to format values.
6112 2014-06-18 Gary Benson <gbenson@redhat.com>
6114 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6117 2014-06-18 Gary Benson <gbenson@redhat.com>
6119 * i386-nat.c: Comment changes.
6121 2014-06-18 Gary Benson <gbenson@redhat.com>
6123 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6125 2014-06-18 Gary Benson <gbenson@redhat.com>
6127 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6128 (i386_insert_aligned_watchpoint): Likewise.
6129 (i386_remove_aligned_watchpoint): Likewise.
6130 (i386_handle_nonaligned_watchpoint): Likewise.
6132 2014-06-18 Gary Benson <gbenson@redhat.com>
6134 * i386-nat.c: Whitespace changes.
6136 2014-06-17 Samuel Bronson <naesten@gmail.com>
6138 * MAINTAINERS: Update Roland McGrath's email address.
6139 Thanks to Sergio Durigan Junior for pointing out that he left
6140 Red Hat a while ago, and giving me a current address.
6142 2014-06-17 Tom Tromey <tromey@redhat.com>
6144 * utils.h (savestring): Remove declaration.
6146 2014-06-17 Tom Tromey <tromey@redhat.com>
6148 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6150 2014-06-16 Keith Seitz <keiths@redhat.com>
6153 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6154 to update the varobj if inferior_ptid is null_ptid.
6156 2014-06-16 Tom Tromey <tromey@redhat.com>
6158 * target.h (struct target_ops) <to_info_proc>: Make parameter
6160 (target_info_proc): Update.
6161 * target.c (target_info_proc): Make "args" const.
6162 * procfs.c (procfs_info_proc): Update.
6163 * linux-tdep.c (linux_info_proc): Update.
6164 (linux_core_info_proc_mappings): Make "args" const.
6165 (linux_core_info_proc): Update.
6166 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6167 * gdbarch.c: Rebuild.
6168 * gdbarch.h: Rebuild.
6169 * corelow.c (core_info_proc): Update.
6171 2014-06-16 Tom Tromey <tromey@redhat.com>
6173 * target.h (struct target_ops) <to_disconnect>: Make parameter
6175 (target_disconnect): Update.
6176 * target.c (target_disconnect): Make "args" const.
6177 * target-delegates.c: Rebuild.
6178 * remote.c (remote_disconnect): Update.
6179 * record.h (record_disconnect): Update.
6180 * record.c (record_disconnect): Update.
6181 * inf-child.c (inf_child_disconnect): Update.
6183 2014-06-16 Tom Tromey <tromey@redhat.com>
6185 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6186 * target.c (debug_to_rcmd, default_rcmd): Update.
6187 * target-delegates.c: Rebuild.
6188 * remote.c (remote_rcmd): Update.
6189 * monitor.c (monitor_rcmd): Update.
6191 2014-06-16 Pedro Alves <palves@redhat.com>
6193 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6194 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6195 have OBJF_SHARED set.
6196 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6197 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6198 instead of OBJF_USERLOADED.
6199 * objfiles.h (OBJF_SHARED): Update comment.
6200 (userloaded_objfile_contains_address_p): Rename to ...
6201 (shared_objfile_contains_address_p): ... this, and update
6203 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6205 (remove_symbol_file_command): Skip objfiles that don't have
6208 2014-06-16 Tom Tromey <tromey@redhat.com>
6210 * minsyms.h (prim_record_minimal_symbol)
6211 (prim_record_minimal_symbol_and_info): Update comments.
6213 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6215 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6216 or --without-guile, according to how GDB was built.
6218 2014-06-13 Tom Tromey <tromey@redhat.com>
6220 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6222 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6224 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6226 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6227 help_list.Pass all_commands, not -1, to help_list.
6228 * cli/cli-dump.c (dump_command, append_command)
6229 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6230 (binary_dump_command, binary_append_command): Pass all_commands,
6231 not -1, to help_list.
6232 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6234 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6236 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6238 * top.c (set_history): Pass all_commands, not -1, to help_list.
6239 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6240 all_commands, not -1, to help_list.
6241 * symfile.c (overlay_command): Pass all_commands, not -1, to
6243 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6245 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6247 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6249 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6250 not -1, to help_list.
6251 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6252 not -1, to help_list.
6253 * maint.c (maintenance_command, maintenance_info_command)
6254 (maintenance_print_command, maintenance_set_cmd): Pass
6255 all_commands, not -1, to help_list.
6256 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6258 * language.c (set_check): Pass all_commands, not -1, to help_list.
6259 * infcmd.c (unset_command): Pass all_commands, not -1, to
6261 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6263 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6265 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6267 * breakpoint.c (save_command): Pass all_commands, not -1, to
6269 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6270 all_commands, not -1, to help_list.
6272 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6274 * regcache.c (struct register_to_invalidate): New structure.
6275 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6277 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6279 2014-06-12 Yao Qi <yao@codesourcery.com>
6281 * varobj.c (varobj_get_num_children): Call
6282 varobj_is_dynamic_p.
6283 (varobj_list_children): Likewise.
6284 (varobj_update): Likewise. Update comments.
6286 2014-06-12 Yao Qi <yao@codesourcery.com>
6288 * varobj.c (varobj_pretty_printed_p): Rename to ...
6289 (varobj_is_dynamic_p): ... this. New function.
6290 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6291 (varobj_is_dynamic_p): Declare.
6292 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6293 (mi_print_value_p, varobj_update_one): Likewise.
6295 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6296 Yao Qi <yao@codesourcery.com>
6298 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6299 (varobj_get_iterator): Wrap up code for pretty-printer by
6300 "#if HAVE_PYTHON" and "#endif".
6301 (update_dynamic_varobj_children): Likewise.
6303 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6304 Yao Qi <yao@codesourcery.com>
6306 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6307 gdb_python_initialized is false. Move some code from varobj.c.
6308 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6309 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6310 (struct varobj_item): Moved to varobj-iter.h".
6311 (varobj_clear_saved_item): New function.
6312 (update_dynamic_varobj_children): Move python-related code to
6314 (free_variable): Call varobj_clear_saved_item and
6317 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6318 Yao Qi <yao@codesourcery.com>
6320 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6321 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6322 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6323 (py-varobj.o): New rule.
6324 * python/py-varobj.c: New file.
6325 * python/python-internal.h (py_varobj_get_iterator): Declare.
6326 * varobj-iter.h: New file.
6327 * varobj.c: Include "varobj-iter.h"
6328 (struct varobj) <child_iter>: Change its type from "PyObject *"
6329 to "struct varobj_iter *".
6330 <saved_item>: Likewise.
6331 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6332 [HAVE_PYTHON] (varobj_get_iterator): New function.
6333 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6334 python-specific code to python/py-varobj.c.
6335 (install_visualizer): Call varobj_iter_delete instead of
6337 * varobj.h (varobj_ensure_python_env): Declare.
6339 2014-06-12 Yao Qi <yao@codesourcery.com>
6341 * varobj.c (struct varobj_item): New structure.
6342 (create_child_with_value): Update declaration.
6343 (varobj_add_child): Replace arguments 'name' and 'value' with
6344 'item'. All callers updated.
6345 (install_dynamic_child): Likewise.
6346 (update_dynamic_varobj_children): Likewise.
6347 (varobj_add_child): Likewise.
6348 (create_child_with_value): Likewise.
6350 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6352 * NEWS: Create a new section for the next release branch.
6353 Rename the section of the current branch, now that it has
6356 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6358 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6359 * version.in: Bump version to 7.8.50.DATE-cvs.
6361 2014-06-11 Pedro Alves <palves@redhat.com>
6364 * ser-mingw.c (net_windows_socket_check_pending): New function.
6365 (net_windows_select_thread): Ignore spurious wakeups. Use
6366 net_windows_socket_check_pending.
6367 (net_windows_wait_handle): Check for pending events with
6368 ioctlsocket, through net_windows_socket_check_pending, instead of
6369 checking the socket's event.
6371 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6373 * python/python-internal.h (gdb_PyObject_GetAttrString)
6374 (gdb_PyObject_HasAttrString): New inline function definitions.
6375 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6376 char * of the second argument to PyObject_GetAttrString.
6378 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6380 * serial.c (serial_write): Fix index of character to be printed
6381 in call to serial_logchar when serial debug traces are enabled.
6383 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6385 * gdbtypes (resolve_dynamic_range): Add function description.
6387 2014-06-09 Pedro Alves <palves@redhat.com>
6389 * linux-nat.c (linux_child_follow_fork): Initialize status with
6390 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6391 inner block. Only pass the signal to PTRACE_DETACH if in pass
6394 2014-06-09 Gary Benson <gbenson@redhat.com>
6396 * common/signals.c (gdb_signal_from_host): Reorder to separate
6397 the always-available ANSI-standard signals from the signals that
6399 (do_gdb_signal_to_host): Likewise.
6400 * proc-events.c (signal_table): Likewise.
6402 2014-06-08 Hui Zhu <hui@codesourcery.com>
6404 * common/linux-ptrace.c (linux_disable_event_reporting): New
6406 * common/linux-ptrace.h (linux_disable_event_reporting): New
6408 * linux-nat.c (linux_child_follow_fork): Do a single step before
6411 2014-06-07 Keith Seitz <keiths@redhat.com>
6415 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6416 from symbol_matches_domain in symtab.c. All local callers
6417 of symbol_matches_domain updated.
6418 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6419 search STRUCT_DOMAIN.
6420 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6421 independently. standard_lookup will do that automatically.
6422 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6423 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6424 (cp_lookup_symbol_in_namespace): Likewise.
6425 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6426 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6427 may return a STRUCT_DOMAIN match.
6428 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6429 * cp-support.c: Include language.h.
6430 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6432 * psymtab.c (match_partial_symbol): Compare the requested
6433 domain with the symbol's domain directly.
6434 (lookup_partial_symbol): Likewise.
6435 * symtab.c (lookup_symbol_in_language): Explain when/why
6436 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6437 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6438 appropriate languages.
6439 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6440 and moved to ada-lang.c
6441 (lookup_block_symbol): Explain that this function only returns
6442 symbol matching the requested DOMAIN.
6443 Compare the requested domain with the symbol's domain directly.
6444 (iterate_over_symbols): Compare the requested domain with the
6445 symbol's domain directly.
6446 * symtab.h (symbol_matches_domain): Remove.
6448 2014-06-06 Doug Evans <xdje42@gmail.com>
6450 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6451 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6452 (gdbscm_guile_version_is_at_least): Declare.
6453 (gdbscm_scm_string_to_int): Declare.
6454 * guile/guile.c (gdbscm_guile_major_version): New global.
6455 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6456 (guile_datadir): New static global.
6457 (gdbscm_guile_data_directory): New function.
6458 (initialize_scheme_side): Update.
6459 (misc_guile_functions): Add guile-data-directory.
6460 (initialize_gdb_module): Fetch guile version number.
6461 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6462 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6463 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6464 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6466 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6467 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6468 * guile/scm-value.c (gdbscm_value_to_string): Only call
6469 scm_port_conversion_strategy if Guile version >= 2.0.6.
6471 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6473 * main.c (print_gdb_help): Add -q and --silent.
6475 2014-06-06 Gary Benson <gbenson@redhat.com>
6477 * common/signals.c: Remove preprocessor conditionals for
6478 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6479 SIGSEGV and SIGTERM.
6480 * proc-events.c: Likewise.
6482 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6484 * symfile.c (symfile_free_objfile): Remove restriction to
6486 * symfile-mem.c (symbol_file_add_from_memory): Call
6487 add_target_sections_of_objfile.
6489 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6491 * guile/scm-value.c (gdbscm_history_append_x): Use
6492 'vlscm_get_value_smob_arg_unsafe' instead of
6493 'vlscm_scm_to_value'.
6495 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6498 * utils.c (printchar): Don't escape at all if quoter is NUL.
6499 Update function documentation to clarify effect of parameter
6501 * remote.c (escape_buffer): Pass '\\' as the quoter to
6502 fputstrn_unfiltered.
6503 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6504 generate the output.
6505 (mi_solib_unloaded): Same.
6507 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6509 * development.sh: Delete.
6510 * Makefile.in (config.status): Adjust dependency on development.sh.
6511 * configure.ac: Adjust development.sh source call.
6512 * configure: Regenerate.
6514 2014-06-04 Doug Evans <xdje42@gmail.com>
6516 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6517 is_scheme_bkpt, spec.
6518 (bpscm_make_breakpoint_smob): Initialize new members.
6519 (gdbscm_create_breakpoint_x): Split into two ...
6520 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6521 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6522 (scheme_function breakpoint_functions): Update.
6523 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6524 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6525 register-breakpoint!.
6527 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6530 * mem-break.c (z_type_supported): Return zero if
6531 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6533 2014-06-04 Tom Tromey <tromey@redhat.com>
6535 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6536 value_from_contents_and_address_unresolved.
6537 (ada_template_to_fixed_record_type_1): Likewise.
6538 (ada_which_variant_applies): Likewise.
6539 * value.h (value_from_contents_and_address_unresolved): Declare.
6540 * value.c (value_from_contents_and_address_unresolved): New
6542 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6543 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6544 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6546 2014-06-04 Tom Tromey <tromey@redhat.com>
6548 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6550 2014-06-04 Tom Tromey <tromey@redhat.com>
6552 * procfs.c (procfs_attach): Make "args" const.
6553 * windows-nat.c (windows_attach): Make "args" const.
6554 * nto-procfs.c (procfs_attach): Make "args" const.
6555 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6556 * go32-nat.c (go32_attach): Make "args" const.
6557 * gnu-nat.c (gnu_attach): Make "args" const.
6558 * darwin-nat.c (darwin_attach): Make "args" const.
6559 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6560 * linux-nat.c (linux_nat_attach): Make "args" const.
6561 * remote.c (extended_remote_attach_1, extended_remote_attach):
6563 * target.h (struct target_ops) <to_attach>: Make "args" const.
6564 (find_default_attach): Likewise.
6565 * utils.c (parse_pid_to_attach): Make "args" const.
6566 * utils.h (parse_pid_to_attach): Update.
6568 2014-06-04 Tom Tromey <tromey@redhat.com>
6570 * target-delegates.c: Rebuild.
6571 * target.c (default_thread_address_space): New function.
6572 (target_thread_address_space): Simplify.
6573 * target.h (struct target_ops) <to_thread_address_space>: Add
6574 TARGET_DEFAULT_FUNC.
6576 2014-06-04 Doug Evans <xdje42@gmail.com>
6578 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6580 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6582 * record-btrace.c: Include event-loop.h and inf-loop.h.
6583 (record_btrace_resume_exec_dir)
6584 (record_btrace_async_inferior_event_handler)
6585 (record_btrace_handle_async_inferior_event): New.
6586 (record_btrace_open): Create async event handler.
6587 (record_btrace_close): Delete async event handler.
6588 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6589 Mark async event handler.
6590 (record_btrace_execution_direction): New.
6591 (init_record_btrace_ops): Initialize to_execution_direction.
6593 2014-06-03 Doug Evans <xdje42@gmail.com>
6595 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6596 (gdbscm_make_parameter): Ditto.
6598 2014-06-03 Doug Evans <dje@google.com>
6600 * exec.c (exec_close_1): Call clear_section_table instead of
6601 resize_section_table.
6602 (clear_section_table): New function.
6603 (resize_section_table): Make static. Rename arg num_added to
6605 * exec.h (clear_section_table): Declare.
6606 (resize_section_table): Delete.
6607 * progspace.c (release_program_space): Call clear_section_table
6608 instead of resize_section_table.
6610 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6612 * NEWS (Python Scripting): Add entry about the new xmethods
6615 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6617 * python/py-xmethods.c: New file.
6618 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6619 (objfpy_dealloc): XDECREF on the new xmethods field.
6620 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6622 (objfpy_get_xmethods): New function.
6623 (objfile_getset): New entry 'xmethods'.
6624 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6625 (pspy_dealloc): XDECREF on the new xmethods field.
6626 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6628 (pspy_get_xmethods): New function.
6629 (pspace_getset): New entry 'xmethods'.
6630 * python/python-internal.h: Add declarations for new functions.
6631 * python/python.c (_initialize_python): Invoke
6632 gdbpy_initialize_xmethods.
6633 * python/lib/gdb/__init__.py (xmethods): New
6635 * python/lib/gdb/xmethod.py: New file.
6636 * python/lib/gdb/command/xmethods.py: New file.
6638 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6640 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6641 best match method returned by find_overload_match is an xmethod.
6642 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6643 the best matching operator returned by find_overload_match is an
6645 * valops.c: #include "extension.h".
6646 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6647 Return void. The list of matching source methods is returned in
6648 "fn_list" and a vector of matching debug method workers is
6649 returned in "xm_worker_vec". Update all callers.
6650 (value_find_oload_method_list): Likewise.
6651 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6652 non-NULL, then the index of the best matching method in this
6653 vector is returned. Update all callers.
6654 (find_overload_match): Include xmethods while performing overload
6657 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6659 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6660 * extension-priv.h (struct extension_language_ops): Add the
6662 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6663 get_matching_xmethod_workers, get_xmethod_argtypes,
6664 invoke_xmethod, free_xmethod_worker,
6665 free_xmethod_worker_vec): New functions.
6666 * extension.h: #include "common/vec.h".
6667 New function declarations.
6668 (struct xmethod_worker): New struct.
6669 (VEC (xmethod_worker_ptr)): New vector type.
6670 (xmethod_worker_ptr): New typedef.
6671 (xmethod_worker_vec): Likewise.
6672 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6674 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6675 (struct builtin_type): New field "xmethod".
6676 * valarith.c (value_ptradd): Assert that the value argument is not
6678 * valops.c (value_must_coerce_to_target): Return 0 for
6679 lval_xcallable values.
6680 * value.c (struct value): New field XM_WORKER in the field
6682 (value_address, value_raw_address): Return 0 for lval_xcallable
6684 (set_value_address): Assert that the value is not an
6686 (value_free): Free the associated xmethod worker when freeing
6687 lval_xcallable values.
6688 (set_value_component_location): Assert that the WHOLE value is not
6690 (value_of_xmethod, call_xmethod): New functions.
6691 * value.h: Declare "struct xmethod_worker".
6692 Declare new functions value_of_xmethod, call_xmethod.
6694 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6695 Pedro Alves <palves@redhat.com>
6697 PR breakpoints/17000
6698 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6699 New function, extracted from software_breakpoint_inserted_here_p.
6700 (software_breakpoint_inserted_here_p): Replace factored out code
6701 by call to find_non_raw_software_breakpoint_inserted_here.
6702 (bp_target_info_copy_insertion_state): New function.
6703 (bkpt_insert_location): Handle the case of a single-step
6704 breakpoint already inserted at the same address.
6705 (bkpt_remove_location): Handle the case of a single-step
6706 breakpoint still inserted at the same address.
6707 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6708 breakpoint already inserted at the same address.
6709 (deprecated_remove_raw_breakpoint): Handle the case of a
6710 non-raw breakpoint still inserted at the same address.
6711 (find_single_step_breakpoint): New function, extracted from
6712 single_step_breakpoint_inserted_here_p.
6713 (find_single_step_breakpoint): New function,
6714 factored out from single_step_breakpoint_inserted_here_p.
6715 (single_step_breakpoint_inserted_here_p): Reimplement.
6717 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6719 Pushed by Joel Brobecker <brobecker@adacore.com>
6720 * source.c (show_substitute_path_command): Fix display of matching
6723 2014-06-03 Gary Benson <gbenson@redhat.com>
6725 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6727 2014-06-02 Doug Evans <xdje42@gmail.com>
6729 Add parameter support for Guile.
6730 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6731 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6732 (scm-param.o): New rule.
6733 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6734 (gdbscm_misc_error): Declare.
6735 (gdbscm_canonicalize_command_name): Declare.
6736 (gdbscm_scm_to_host_string): Declare.
6737 (gdbscm_scm_from_host_string): Declare.
6738 (gdbscm_initialize_parameters): Declare.
6739 * guile/guile.c (initialize_gdb_module): Call
6740 gdbscm_initialize_parameters.
6741 * guile/lib/gdb.scm: Export parameter symbols.
6742 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6743 cmdscm_canonicalize_name and made public. All callers updated.
6744 * guile/scm-exception.c (gdbscm_misc_error): New function.
6745 * guile/scm-param.c: New file.
6746 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6747 (gdbscm_scm_to_host_string): New function.
6748 (gdbscm_scm_from_host_string): New function.
6749 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6751 2014-06-02 Doug Evans <xdje42@gmail.com>
6753 Add command support for Guile.
6754 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6755 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6756 (scm-cmd.o): New rule.
6757 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6758 (gdbscm_user_error_p): Declare.
6759 (gdbscm_parse_command_name): Declare.
6760 (gdbscm_valid_command_class_p): Declare.
6761 (gdbscm_initialize_commands): Declare.
6762 * guile/guile.c (initialize_gdb_module): Call
6763 gdbscm_initialize_commands.
6764 * guile/lib/gdb.scm: Export command symbols.
6765 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6766 (throw-user-error): New function.
6767 * guile/scm-cmd.c: New file.
6768 * guile/scm-exception.c (user_error_symbol): New static global.
6769 (gdbscm_user_error_p): New function.
6770 (gdbscm_initialize_exceptions): Set user_error_symbol.
6771 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6773 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6775 * top.c (command_loop): Handle comments here...
6776 (command_line_input): ... not here.
6778 2014-06-02 Doug Evans <xdje42@gmail.com>
6780 Add progspace support for Guile.
6781 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6782 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6783 (scm-progspace.o): New rule.
6784 * guile/guile-internal.h (pspace_smob): New typedef.
6785 (psscm_pspace_smob_pretty_printers): Declare.
6786 (psscm_pspace_smob_from_pspace): Declare.
6787 (psscm_scm_from_pspace): Declare.
6788 * guile/guile.c (initialize_gdb_module): Call
6789 gdbscm_initialize_pspaces.
6790 * guile/lib/gdb.scm: Export progspace symbols.
6791 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6793 (append-pretty-printer!): Ditto.
6794 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6796 * guile/scm-progspace.c: New file.
6798 2014-06-03 Alan Modra <amodra@gmail.com>
6800 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6801 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6803 2014-06-02 Doug Evans <dje@google.com>
6805 Add support for skeletonless type units.
6806 * dwarf2read.c (struct dwarf2_per_objfile): New member
6807 n_allocated_type_units.
6808 (struct dwarf2_per_objfile) <tu_stats>: New member
6809 nr_all_type_units_reallocs.
6810 (create_signatured_type_table_from_index): Initialize
6811 n_allocated_type_units
6812 (create_all_type_units): Ditto.
6813 (add_type_unit): Move up in file. New arg slot.
6814 All callers updated. Increase space for all_type_units more
6816 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6817 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6818 (lookup_dwp_signatured_type): Ditto.
6819 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6820 All callers updated.
6821 (build_type_psymtabs_1): Leave type_unit_groups as
6822 NULL if no TUs present.
6823 (print_tu_stats): New function.
6824 (process_skeletonless_type_unit): New function.
6825 (process_dwo_file_for_skeletonless_type_units): New
6827 (process_skeletonless_type_units): New function.
6828 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6829 Call print tu_stats if debugging enabled.
6831 2014-06-02 Pedro Alves <palves@redhat.com>
6833 * breakpoint.c (build_target_command_list): Don't build a command
6834 list if we have any duplicate location that isn't a dprintf.
6836 2014-06-02 Pedro Alves <palves@redhat.com>
6838 * breakpoint.c (dprintf_breakpoint_hit): New function.
6839 (initialize_breakpoint_ops): Install it as dprintf's
6840 breakpoint_hit method.
6842 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6844 * source.c (substitute_path_rule_matches): Simplify using
6845 filename_ncmp instead of FILENAME_CMP.
6847 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6849 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6851 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6853 * configure.ac: When Guile is available, check for the
6854 availability of 'scm_new_smob'.
6855 * configure, config.h.in: Regenerate.
6856 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6859 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6861 * frame.c (struct frame_info): Add stop_string field.
6862 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6863 (get_prev_frame_always): Old content moved into
6864 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6865 TRY_CATCH, handle MEMORY_ERROR exceptions.
6866 (frame_stop_reason_string): New function definition.
6867 * frame.h (unwind_stop_reason_to_string): Extend comment to
6868 mention frame_stop_reason_string.
6869 (frame_stop_reason_string): New function declaration.
6870 * stack.c (frame_info): Switch to frame_stop_reason_string.
6871 (backtrace_command_1): Switch to frame_stop_reason_string.
6872 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6873 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6874 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6876 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6878 * frame.c (frame_stop_reason_string): Rename to ...
6879 (unwind_stop_reason_to_string): this.
6880 * frame.h (frame_stop_reason_string): Rename to ...
6881 (unwind_stop_reason_to_string): this.
6882 * stack.c (frame_info): Update call to frame_stop_reason_string.
6883 (backtrace_command_1): Likewise.
6884 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6885 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6887 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6889 * frame.c (remove_prev_frame): New function.
6890 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6893 2014-05-29 Pedro Alves <palves@redhat.com>
6895 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6896 and make it const. When a single-step decays to a continue,
6897 clear 'step', not 'hw_step'. Pass whether the caller wanted
6898 to step to user_visible_resume_ptid, not what we ask the
6901 2014-05-29 Pedro Alves <palves@redhat.com>
6903 * infrun.c (process_event_stop_test, handle_step_into_function)
6904 (handle_step_into_function_backward): Adjust.
6905 Don't set the even thread's stop_step and call stop_waiting before
6906 calling end_stepping_range. Instead do that ...
6907 (end_stepping_range): ... here. Take an ecs pointer parameter.
6909 2014-05-29 Pedro Alves <palves@redhat.com>
6911 * infrun.c (stop_stepping): Rename to ...
6912 (stop_waiting): ... this.
6913 (proceed): Update comment.
6914 (process_event_stop_test, handle_inferior_event)
6915 (handle_signal_stop, handle_step_into_function)
6916 (handle_step_into_function_backward): Update.
6918 2014-05-29 Pedro Alves <palves@redhat.com>
6920 * infcall.c (run_inferior_call): Don't check whether the current
6921 thread is running after the proceed call.
6923 2014-05-29 Pedro Alves <palves@redhat.com>
6924 Tom Tromey <tromey@redhat.com>
6926 * NEWS: Mention "maint set target-async", "set mi-async", and that
6927 background execution commands are now always available.
6928 * target.h (target_async_permitted): Update comment.
6929 * target.c (target_async_permitted, target_async_permitted_1):
6931 (set_target_async_command): Rename to ...
6932 (maint_set_target_async_command): ... this.
6933 (show_target_async_command): Rename to ...
6934 (maint_show_target_async_command): ... this.
6935 (_initialize_target): Adjust.
6936 * infcmd.c (prepare_execution_command): Make extern.
6937 * inferior.h (prepare_execution_command): Declare.
6938 * infrun.c (set_observer_mode): Leave target async alone.
6939 * mi/mi-interp.c (mi_interpreter_init): Install
6940 mi_on_sync_execution_done as sync_execution_done observer.
6941 (mi_on_sync_execution_done): New function.
6942 (mi_execute_command_input_handler): Don't print the prompt if we
6943 just started a synchronous command with an async target.
6944 (mi_on_resume): Check sync_execution before printing prompt.
6945 * mi/mi-main.h (mi_async_p): Declare.
6946 * mi/mi-main.c: Include gdbcmd.h.
6947 (mi_async_p): New function.
6948 (mi_async, mi_async_1): New globals.
6949 (set_mi_async_command, show_mi_async_command, mi_async): New
6951 (exec_continue): Call prepare_execution_command.
6952 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6953 (mi_execute_async_cli_command): Use mi_async_p.
6954 (_initialize_mi_main): Install "set mi-async". Make
6955 "target-async" a deprecated alias.
6957 2014-05-29 Pedro Alves <palves@redhat.com>
6959 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6960 (_initialize_cli_interp): Adjust.
6961 * event-loop.c: Include "observer.h".
6962 (start_event_loop): Notify 'command_error' observers instead of
6963 calling display_gdb_prompt. Remove FIXME comment.
6964 * event-top.c (display_gdb_prompt): Remove call into the
6966 * inf-loop.c: Include "observer.h".
6967 (inferior_event_handler): Notify 'command_error' observers instead
6968 of calling display_gdb_prompt.
6969 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6970 observers instead of calling display_gdb_prompt.
6971 * interps.c (interp_set): Don't call display_gdb_prompt.
6972 (current_interp_display_prompt_p): Delete.
6973 * interps.h (interp_prompt_p): Delete declaration.
6974 (interp_prompt_p_ftype): Delete.
6975 (struct interp_procs) <prompt_proc_p>: Delete field.
6976 (current_interp_display_prompt_p): Delete declaration.
6977 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6978 (_initialize_mi_interp): Adjust.
6979 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6980 'command_error' observers.
6981 (tui_on_sync_execution_done, tui_on_command_error): New
6983 (tui_display_prompt_p): Delete.
6984 (_initialize_tui_interp): Adjust.
6986 2014-05-29 Pedro Alves <palves@redhat.com>
6989 * cli/cli-interp.c: Include infrun.h and observer.h.
6990 (cli_uiout, cli_interp): New globals.
6991 (cli_on_signal_received, cli_on_end_stepping_range)
6992 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6994 (cli_interpreter_init): Install them as 'end_stepping_range',
6995 'signal_received' 'signal_exited', 'exited' and 'no_history'
6997 (_initialize_cli_interp): Remove cli_interp local.
6998 * infrun.c (handle_inferior_event): Call the several stop reason
6999 observers instead of printing the stop reason directly.
7000 (end_stepping_range): New function.
7001 (print_end_stepping_range_reason, print_signal_exited_reason)
7002 (print_exited_reason, print_signal_received_reason)
7003 (print_no_history_reason): Make static, and add an uiout
7004 parameter. Print to that instead of to CURRENT_UIOUT.
7005 * infrun.h (print_end_stepping_range_reason)
7006 (print_signal_exited_reason, print_exited_reason)
7007 (print_signal_received_reason print_no_history_reason): New
7009 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7011 <cli_uiout>: New field.
7012 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7013 uiout for CLI output. Install 'signal_received',
7014 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7016 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7017 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7018 (mi_on_no_history): New functions.
7019 (ui_out_free_cleanup): Delete function.
7020 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7021 instead use the one already stored in the MI interpreter data.
7022 (mi_ui_out): Adjust.
7023 * tui/tui-interp.c: Include infrun.h and observer.h.
7024 (tui_interp): New global.
7025 (tui_on_signal_received, tui_on_end_stepping_range)
7026 (tui_on_signal_exited, tui_on_exited)
7027 (tui_on_no_history): New functions.
7028 (tui_init): Install them as 'end_stepping_range',
7029 'signal_received' 'signal_exited', 'exited' and 'no_history'
7031 (_initialize_tui_interp): Delete tui_interp local.
7033 2014-05-29 Pedro Alves <palves@redhat.com>
7036 * linux-nat.c (linux_nat_resume_callback): Rename the second
7037 parameter to 'except'. Skip LP if it points to EXCEPT.
7038 (linux_nat_resume): Don't mark the event lwp as not stopped
7039 before resuming sibling lwps. Instead ask
7040 linux_nat_resume_callback to skip the event lwp. Mark it as not
7041 stopped after actually resuming it.
7042 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7044 (wait_lwp): Mark the lwp as stopped here.
7045 (stop_wait_callback): Mark the lwp as not stopped right after
7046 resuming it. Don't mark lwps as stopped here.
7047 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7048 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7050 2014-05-29 Pedro Alves <palves@redhat.com>
7053 * infrun.c (resume): Determine how much to resume depending on
7054 whether the caller wanted a step, not whether we can hardware step
7055 the target. Mark all threads that we intend to run as running,
7056 unless we're calling an inferior function.
7057 (normal_stop): If the thread is running an infcall, don't finish
7059 * target.c (target_resume): Don't mark threads as running here.
7061 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7063 * serial.c (_initialize_serial): Remove support for
7064 the "set remotebaud" and "show remotebaud" commands.
7065 * NEWS: Add entry documenting the removal of that command.
7067 2014-05-28 Yao Qi <yao@codesourcery.com>
7069 * charset.c: Fix typo in comments.
7071 2014-05-27 Gary Benson <gbenson@redhat.com>
7073 * utils.c (internal_vproblem): Prompt for a bug report.
7075 2014-05-26 Andy Wingo <wingo@igalia.com>
7077 * guile/scm-arch.c (arscm_mark_arch_smob):
7078 * guile/scm-block.c (bkscm_mark_block_smob)
7079 (bkscm_mark_block_syms_progress_smob):
7080 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7081 * guile/scm-exception.c (exscm_mark_exception_smob):
7082 * guile/scm-frame.c (frscm_mark_frame_smob):
7083 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7084 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7085 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7086 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7087 (ppscm_mark_pretty_printer_worker_smob):
7088 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7089 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7090 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7091 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7093 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7096 2014-05-26 Andy Wingo <wingo@igalia.com>
7097 Doug Evans <xdje42@gmail.com>
7099 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7100 empty_base_class. All uses updated.
7101 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7102 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7104 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7105 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7106 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7107 (gdbscm_gsmob_has_property_p, add_property_name)
7108 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7109 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7110 (gdb-object-has-property?, gdb-object-properties): Remove.
7111 (gdb-object-kind): Renamed from gsmob-kind.
7113 2014-05-26 Andy Wingo <wingo@igalia.com>
7115 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7116 * configure: Regenerate.
7118 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7120 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7122 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7124 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7125 (replay_memory_access_read_only, replay_memory_access_read_write)
7126 (replay_memory_access_types, replay_memory_access)
7127 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7128 (cmd_set_record_btrace, cmd_show_record_btrace)
7129 (cmd_show_replay_memory_access): New.
7130 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7131 (record_btrace_remove_breakpoint): Replace
7132 record_btrace_allow_memory_access with replay_memory_access.
7133 (_initialize_record_btrace): Add commands.
7134 * NEWS: Announce it.
7136 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7138 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7140 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7142 * MAINTAINERS (Write After Approval): Move self back from
7145 2014-05-22 Pedro Alves <palves@redhat.com>
7147 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7148 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7149 (disable_randomization, enum exec_direction_kind)
7150 (execution_direction, stop_registers, start_remote)
7151 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7152 (wait_for_inferior, normal_stop, get_last_target_status)
7153 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7154 (insert_step_resume_breakpoint_at_sal)
7155 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7156 (set_step_info, print_stop_event, signal_stop_state)
7157 (signal_print_state, signal_pass_state, signal_stop_update)
7158 (signal_print_update, signal_pass_update)
7159 (update_signals_program_target, clear_exit_convenience_vars)
7160 (displaced_step_dump_bytes, update_observer_mode)
7161 (signal_catch_update, gdb_signal_from_command): Move
7163 * infrun.h: ... to this new file.
7164 * amd64-tdep.c: Include infrun.h.
7165 * annotate.c: Include infrun.h.
7166 * arch-utils.c: Include infrun.h.
7167 * arm-linux-tdep.c: Include infrun.h.
7168 * arm-tdep.c: Include infrun.h.
7169 * break-catch-sig.c: Include infrun.h.
7170 * breakpoint.c: Include infrun.h.
7171 * common/agent.c: Include infrun.h instead of inferior.h.
7172 * corelow.c: Include infrun.h.
7173 * event-top.c: Include infrun.h.
7174 * go32-nat.c: Include infrun.h.
7175 * i386-tdep.c: Include infrun.h.
7176 * inf-loop.c: Include infrun.h.
7177 * infcall.c: Include infrun.h.
7178 * infcmd.c: Include infrun.h.
7179 * infrun.c: Include infrun.h.
7180 * linux-fork.c: Include infrun.h.
7181 * linux-nat.c: Include infrun.h.
7182 * linux-thread-db.c: Include infrun.h.
7183 * monitor.c: Include infrun.h.
7184 * nto-tdep.c: Include infrun.h.
7185 * procfs.c: Include infrun.h.
7186 * record-btrace.c: Include infrun.h.
7187 * record-full.c: Include infrun.h.
7188 * remote-m32r-sdi.c: Include infrun.h.
7189 * remote-mips.c: Include infrun.h.
7190 * remote-notif.c: Include infrun.h.
7191 * remote-sim.c: Include infrun.h.
7192 * remote.c: Include infrun.h.
7193 * reverse.c: Include infrun.h.
7194 * rs6000-tdep.c: Include infrun.h.
7195 * s390-linux-tdep.c: Include infrun.h.
7196 * solib-irix.c: Include infrun.h.
7197 * solib-osf.c: Include infrun.h.
7198 * solib-svr4.c: Include infrun.h.
7199 * target.c: Include infrun.h.
7200 * top.c: Include infrun.h.
7201 * windows-nat.c: Include infrun.h.
7202 * mi/mi-interp.c: Include infrun.h.
7203 * mi/mi-main.c: Include infrun.h.
7204 * python/py-threadevent.c: Include infrun.h.
7206 2014-05-22 Pedro Alves <palves@redhat.com>
7208 * infrun.c (handle_inferior_event): Store the exit code for
7209 --return-child-result here, instead of ...
7210 (print_exited_reason): ... here.
7212 2014-05-21 Pedro Alves <palves@redhat.com>
7215 * gdbthread.h (struct thread_control_state): New field
7217 * infrun.c (follow_fork): Copy the new thread control field to the
7219 (clear_proceed_status_thread): Clear the new thread control field.
7220 (proceed): Set the new thread control field.
7221 * interps.h (command_interp): Declare.
7222 * interps.c (command_interpreter): New global.
7223 (command_interp): New function.
7224 (interp_exec): Set `command_interpreter' while here.
7225 * cli-out.c (cli_uiout_dtor): New function.
7226 (cli_ui_out_impl): Install it.
7227 * mi/mi-interp.c: Include cli-out.h.
7228 (mi_cmd_interpreter_exec): Add comment.
7229 (restore_current_uiout_cleanup): New function.
7230 (ui_out_free_cleanup): New function.
7231 (mi_on_normal_stop): If finishing an execution command started by
7232 a CLI command, or any kind of breakpoint-like event triggered,
7233 print the stop event to the output (CLI) stream.
7234 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7236 2014-05-21 Pedro Alves <palves@redhat.com>
7238 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7239 current source line having changed.
7240 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7241 * infrun.c (normal_stop): Adjust call to
7242 set_current_sal_from_frame.
7243 * source.c (clear_lines_listed_range): New function.
7244 (set_current_source_symtab_and_line, identify_source_line): Clear
7245 the lines listed range.
7246 (line_info): Handle the first "info line" after the current source
7247 line having changed.
7248 * stack.c (print_stack_frame): Remove center handling.
7249 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7252 2014-05-21 Pedro Alves <palves@redhat.com>
7254 * inf-child.c (inf_child_mourn_inferior): New function.
7255 * inf-child.h (inf_child_mourn_inferior): New declaration.
7256 * darwin-nat.c (darwin_mourn_inferior): Use
7257 inf_child_mourn_inferior.
7258 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7259 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7260 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7261 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7262 * windows-nat.c (windows_mourn_inferior): Likewise.
7264 2014-05-21 Doug Evans <xdje42@gmail.com>
7266 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7268 2014-05-21 Doug Evans <xdje42@gmail.com>
7270 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7271 (gdbscm_out_of_range_error): Ditto.
7272 (gdbscm_memory_error): Ditto.
7273 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7274 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7275 (gdbscm_out_of_range_error): Update.
7276 (gdbscm_memory_error): Update.
7277 (gdbscm_scm_to_target_string_unsafe): Delete.
7279 2014-05-21 Pedro Alves <palves@redhat.com>
7281 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7283 (inf_child_open_target): New function.
7284 (inf_child_open): Use inf_child_open_target to push the target
7285 instead of erroring out.
7286 (inf_child_disconnect, inf_child_close)
7287 (inf_child_maybe_unpush_target): New functions.
7288 (inf_child_target): Install inf_child_disconnect and
7289 inf_child_close. Store a pointer to the returned object.
7290 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7292 * target.c (auto_connect_native_target): New global.
7293 (show_default_run_target): New function.
7294 (find_default_run_target): Return NULL if automatically connecting
7295 to the native target is disabled.
7296 (_initialize_target): Install set/show auto-connect-native-target.
7297 * NEWS: Mention "set auto-connect-native-target", and "target
7299 * linux-nat.c (super_close): New global.
7300 (linux_nat_close): Call super_close.
7301 (linux_nat_add_target): Store a pointer to the base class's
7303 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7304 inf_child_maybe_unpush.
7305 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7307 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7308 the inferior. Use inf_child_maybe_unpush_target.
7309 (inf_ttrace_attach): Don't push the target if it is already
7311 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7312 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7313 after mourning the inferior. Use inf_child_maybe_unpush_target.
7314 (darwin_attach_pid): Don't push the target if it is already
7316 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7317 mourning the inferior. Use inf_child_maybe_unpush_target.
7318 (gnu_detach): Use inf_child_maybe_unpush_target.
7319 * go32-nat.c (go32_create_inferior): Don't push the target if it
7321 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7322 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7323 (procfs_open): Rename to ...
7324 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7325 comments. Can target_preopen before changing node. Call
7326 inf_child_open_target to push the target explicitly.
7327 (procfs_attach): Don't push the target if it is already pushed.
7328 (procfs_detach): Use inf_child_maybe_unpush_target.
7329 (procfs_create_inferior): Don't push the target if it is already
7331 (nto_native_ops): New global.
7332 (procfs_open): Reimplement.
7333 (procfs_native_open): New function.
7334 (init_procfs_targets): Install procfs_native_open as to_open of
7335 "target native". Store a pointer to the "native" target in
7337 * procfs.c (procfs_attach): Don't push the target if it is already
7339 (procfs_detach): Use inf_child_maybe_unpush_target.
7340 (procfs_mourn_inferior): Only unpush the target after mourning the
7341 inferior. Use inf_child_maybe_unpush_target.
7342 (procfs_init_inferior): Don't push the target if it is already
7344 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7345 if it is already pushed.
7347 2014-05-21 Pedro Alves <palves@redhat.com>
7349 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7350 and "procfs" targets are now called "native" instead.
7352 2014-05-21 Pedro Alves <palves@redhat.com>
7354 * go32-nat.c (go32_open): Delete.
7355 (go32_target): Don't override the to_open method.
7357 2014-05-21 Pedro Alves <palves@redhat.com>
7359 * nto-procfs.c (procfs_can_run): New function.
7360 (nto_procfs_ops): New global.
7361 (init_procfs_targets): New, based on procfs_target. Install
7362 "target native" in addition to "target procfs".
7363 (_initialize_procfs): Call init_procfs_targets instead of adding
7366 2014-05-21 Pedro Alves <palves@redhat.com>
7368 * windows-nat.c (windows_target): Don't override to_shortname,
7369 to_longname or to_doc.
7371 2014-05-21 Pedro Alves <palves@redhat.com>
7373 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7376 2014-05-21 Pedro Alves <palves@redhat.com>
7378 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7379 to_shortname, to_longname or to_doc.
7381 2014-05-21 Pedro Alves <palves@redhat.com>
7383 * go32-nat.c (go32_target): Don't override to_shortname,
7384 to_longname or to_doc.
7386 2014-05-21 Pedro Alves <palves@redhat.com>
7388 * inf-child.c (inf_child_open): Remove mention of "child".
7389 (inf_child_target): Rename target to "native" instead of "child".
7391 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7393 * Makefile.in (SFILES): Delete "regset.c".
7394 (COMMON_OBS): Delete "regset.o".
7396 * regset.h (regset_alloc): Delete prototype.
7398 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7400 * sparc-linux-tdep.c (sparc32_linux_gregset)
7401 (sparc32_linux_fpregset): New static regset structures.
7402 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7403 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7405 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7406 (sparc64_linux_fpregset): New static regset structures.
7407 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7408 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7409 New static regset structures.
7410 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7411 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7412 New static regset structures.
7413 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7414 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7415 New static regset structures.
7416 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7417 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7418 New static regset structures.
7419 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7421 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7423 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7424 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7425 register maps ("regmaps") from "*regset" to "*regmap". Do this
7426 for all regmap types and variables.
7427 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7428 (sparc32_linux_supply_core_gregset)
7429 (sparc32_linux_collect_core_gregset)
7430 (sparc32_linux_supply_core_fpregset)
7431 (sparc32_linux_collect_core_fpregset): Likewise.
7432 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7433 (sparc_gregmap, sparc_fpregmap): ... these.
7434 (sparc_supply_gregset, sparc_collect_gregset)
7435 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7436 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7437 (_initialize_sparc_nat): Rename regmaps.
7438 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7439 (sparc_gregmap, sparc_fpregmap): ... these.
7440 (sparc_supply_gregset, sparc_collect_gregset)
7441 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7442 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7444 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7445 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7447 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7449 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7450 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7451 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7453 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7454 (sparc32_bsd_fpregset): Rename to...
7455 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7456 (sparc32_bsd_fpregmap): ... these.
7457 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7458 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7459 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7460 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7461 (struct sparc_gregmap, struct sparc_fpregmap)
7462 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7463 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7464 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7465 (sparc32_supply_regset, sparc32_collect_gregset)
7466 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7468 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7469 (sparc64_linux_ptrace_gregmap): ... this.
7470 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7471 (_initialize_sparc64_linux_nat): Rename regmaps.
7472 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7473 (sparc64_linux_core_gregmap): ... this.
7474 (sparc64_linux_supply_core_gregset)
7475 (sparc64_linux_collect_core_gregset)
7476 (sparc64_linux_supply_core_fpregset)
7477 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7478 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7479 (sparc64_sol2_fpregset): Rename to...
7480 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7481 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7482 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7484 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7485 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7486 (sparc64_bsd_fpregset): Rename to...
7487 (struct sparc_gregmap, sparc64_sol2_gregmap)
7488 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7489 (sparc64_bsd_fpregmap): ... these.
7490 (sparc64_supply_gregset, sparc64_collect_gregset)
7491 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7493 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7494 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7495 (sparc64fbsd_gregmap): ... this.
7496 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7497 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7499 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7500 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7501 (sparc64nbsd_collect_fpregset): Likewise.
7502 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7503 (sparc64nbsd_gregmap): ... this.
7504 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7506 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7507 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7508 (sparc64obsd_gregmap): ... this.
7509 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7511 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7512 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7513 (sparc32nbsd_gregmap): ... this.
7514 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7517 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7519 * score-tdep.c (score7_linux_gregset): New static regset
7521 (score7_linux_regset_from_core_section): Remove dynamic regset
7523 (score_gdbarch_init): Drop allocation of tdep structure.
7524 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7526 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7528 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7530 (am33_regset_from_core_section): Remove dynamic regset
7533 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7535 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7536 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7538 (mips_linux_regset_from_core_section): Remove dynamic regset
7540 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7541 'gregset64', 'fpregset', and 'fpregset64'.
7542 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7543 deleted tdep fields.
7545 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7547 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7549 (amd64_regset_from_core_section): Remove dynamic regset
7551 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7553 (amd64obsd_regset_from_core_section): Remove dynamic regset
7555 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7557 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7558 x86-common regset supply function.
7559 * i386-tdep.c (i386_collect_gregset): Make static.
7560 (i386_gregset): New global regset structure.
7561 (i386_fpregset, i386_xstateregset): New static regset structures.
7562 (i386_regset_from_core_section): Remove dynamic regset
7564 (i386_gdbarch_init): Remove initialization of tdep fields
7565 'gregset', 'fpregset', and 'xstateregset'.
7566 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7567 'fpregset', and 'xstateregset'.
7568 (i386_collect_gregset): Remove prototype.
7569 (i386_gregset): New declaration.
7570 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7572 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7575 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7577 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7578 (arm_linux_vfpregset): New static regset structures.
7579 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7581 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7582 and 'vfpregset' fields.
7584 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7586 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7587 (aarch64_linux_fpregset): New static regset structures.
7588 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7589 of regset structures.
7590 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7593 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7595 * regset.h (struct regset): Remove gdbarch field.
7596 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7597 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7598 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7600 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7601 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7602 (ppc32_linux_vsxregset): Likewise.
7603 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7604 via the regcache instead of the regset.
7605 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7606 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7607 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7608 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7611 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7613 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7614 Constify structures.
7615 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7616 (alphanbsd_aout_gregset): Likewise.
7617 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7618 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7620 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7621 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7623 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7624 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7625 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7626 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7627 * m88k-tdep.c (m88k_gregset): Likewise.
7628 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7629 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7630 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7631 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7632 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7633 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7634 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7635 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7636 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7638 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7639 * sh-tdep.h (sh_corefile_gregset): Likewise.
7640 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7641 * vax-tdep.c (vax_gregset): Likewise.
7643 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7645 Fix TLS access for -static -pthread.
7646 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7647 (try_thread_db_load_1): Initialize it.
7648 (thread_db_get_thread_local_address): Call it if LM is zero.
7649 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7650 * target.h (struct target_ops) (to_get_thread_local_address): Add
7651 load_module_addr comment.
7653 2014-05-21 Pedro Alves <palves@redhat.com>
7655 * dcache.c (dcache_read_memory_partial): If reading the cache line
7656 fails, fallback to reading just the memory the caller wanted.
7658 2014-05-20 Doug Evans <dje@google.com>
7660 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7661 instead of get_current_arch.
7663 2014-05-20 Pedro Alves <palves@redhat.com>
7665 * NEWS: Mention that compare-sections now works with all targets.
7667 * remote.c (PACKET_qCRC): New enum value.
7668 (remote_verify_memory): Don't send qCRC if the target has no
7669 execution. Use packet_support/packet_ok. If the target doesn't
7670 support the qCRC packet, fallback to a deep memory copy.
7671 (compare_sections_command): Say "target image" instead of "remote
7673 (_initialize_remote): Add PACKET_qCRC to the list of config
7674 packets that have no associated command. Extend comment.
7675 * target.c (simple_verify_memory, default_verify_memory): New
7677 * target.h (struct target_ops) <to_verify_memory>: Default to
7678 default_verify_memory.
7679 (simple_verify_memory): New declaration.
7680 * target-delegates.c: Regenerate.
7682 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7684 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7686 2014-05-20 Hui Zhu <hui@codesourcery.com>
7687 Yao Qi <yao@codesourcery.com>
7690 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7691 and change address of sp and pc.
7693 2014-05-19 Tom Tromey <tromey@redhat.com>
7695 * gdbtypes.c (rank_function): Use XNEWVEC.
7696 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7698 2014-05-19 Doug Evans <dje@google.com>
7700 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7701 build_type_unit_groups and moved closer to only caller. Remove
7702 arguments. All references updated. Remove outdated .gdb_index
7704 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7705 build_type_psymtabs_1.
7707 2014-05-19 Doug Evans <dje@google.com>
7709 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7710 n_type_unit_groups, all_type_unit_groups. All uses removed.
7711 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7712 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7713 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7714 (add_type_unit_group_to_table): Delete.
7716 2014-05-19 Doug Evans <dje@google.com>
7718 * eval.c (evaluate_subexp_standard): Add some comments.
7720 2014-05-17 Doug Evans <xdje42@gmail.com>
7722 * progspace.c (remove_program_space): Delete, unused.
7723 * progspace.h (remove_program_space): Ditto.
7725 2014-05-17 Doug Evans <xdje42@gmail.com>
7727 * inferior.c (prune_inferiors): Fix comment.
7728 (remove_inferior_command): Call prune_program_spaces.
7730 2014-05-16 Doug Evans <dje@google.com>
7732 New command line option -D.
7734 * main.c (set_gdb_data_directory): New function.
7735 (captured_main): Recognize -D. Flag error for --data-directory "".
7736 Call set_gdb_data_directory.
7737 (print_gdb_help): Print --data-directory, -D.
7738 * main.h (set_gdb_data_directory): Declare.
7739 * top.c (staged_gdb_datadir): New static global.
7740 (set_gdb_datadir): Call set_gdb_data_directory
7741 (show_gdb_datadir): New function.
7742 (init_main): Update init of data-directory parameter.
7744 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7746 Import the "dirfd" gnulib module.
7747 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7748 * gnulib/aclocal.m4: Update.
7749 * gnulib/config.in: Update.
7750 * gnulib/configure: Update.
7751 * gnulib/import/Makefile.am: Update.
7752 * gnulib/import/Makefile.in: Update.
7753 * gnulib/import/dirfd.c: New.
7754 * gnulib/import/m4/dirfd.m4: New.
7755 * gnulib/import/m4/gnulib-cache.m4: Update.
7756 * gnulib/import/m4/gnulib-comp.m4: Update.
7758 2014-05-16 Pierre Muller <muller@sourceware.org>
7759 Yao Qi <yao@codesourcery.com>
7761 * valprint.c (print_wchar): Move the code on checking whether
7762 W is a printable wide char to the default branch of switch
7763 statement below. Call wchar_printable instead of gdb_iswprint.
7765 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7767 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7768 ldr.w and ldrd instructions.
7770 2014-05-15 Doug Evans <dje@google.com>
7772 * dwarf2read.c (read_structure_type): Delete outdated comments.
7774 2014-05-14 Tom Tromey <tromey@redhat.com>
7776 * macrocmd.c (print_macro_definition): Reindent.
7778 2014-05-13 Doug Evans <xdje42@gmail.com>
7780 * python/py-cmd.c (cmdpy_completer): Add comment.
7781 (completers): Make const.
7783 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7785 * infrun.c (resume): Remove should_resume (unused). Move up
7786 declaration of resume_ptid.
7788 2014-05-13 Tom Tromey <tromey@redhat.com>
7790 * language.h (unop_type_check): Remove.
7791 (binop_type_check): Don't declare.
7793 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7795 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7796 call to regcache_raw_collect.
7798 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7800 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7801 mi_console->quote as the quoting character.
7803 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7805 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7807 2014-04-29 Tom Tromey <tromey@redhat.com>
7809 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7810 "show debug varobj".
7812 2014-05-07 Kyle McMartin <kyle@redhat.com>
7814 Pushed by Joel Brobecker <brobecker@adacore.com>.
7815 * aarch64-tdep.c (aarch64_software_single_step): New function.
7816 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7817 with aarch64_software_single_step.
7819 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7823 2014-05-05 Keith Seitz <keiths@redhat.com>
7825 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7826 variable or history value is successfully parsed.
7828 2014-05-05 Yao Qi <yao@codesourcery.com>
7829 Pedro Alves <palves@redhat.com>
7831 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7832 address of blocks that intersects the requested range. Trim
7833 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7835 * ctf.c (ctf_xfer_partial): Likewise.
7837 2014-05-05 Yao Qi <yao@codesourcery.com>
7839 * printcmd.c (display_command): Remove the check to
7840 target_has_execution.
7842 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7844 * ppcobsd-nat.c: Include "obsd-nat.h".
7845 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7847 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7849 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7851 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7852 and 16-bit signed and unsigned arguments. Update comment.
7853 (stap_parse_probe_arguments): Extend code to handle such
7854 arguments. Use warning instead of complaint to notify about
7855 unrecognized bitness.
7857 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7859 PR breakpoints/16889
7860 * stap-probe.c (stap_parse_probe_arguments): Simplify
7861 check for non-prefixed probes (i.e., probes whose
7862 arguments do not start with "N@"). Always set the
7863 argument type to a sane value.
7865 2014-05-01 David Taylor <dtaylor@emc.com>
7867 * remote.c (compare_sections_command): Add -r option to compare
7868 all loadable read-only sections.
7870 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7872 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7873 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7875 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7876 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7877 Remove unused CORE_ADDR argument. Update all callers.
7879 2014-04-29 Pedro Alves <palves@redhat.com>
7881 * remote.c (struct packet_config) <detect>: Extend comment.
7882 (add_packet_config_cmd): Don't set the config's detect or support
7884 (init_all_packet_configs): Also initialize the config's 'detect'
7886 (reset_all_packet_configs_support): New function.
7887 (remote_open_1): Call reset_all_packet_configs_support instead of
7888 init_all_packet_configs.
7889 (_initialize_remote): Initialize all packet configs. Assert that
7890 all packets have an associated command, except a few known
7893 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7895 * dwarf2read.c (read_subrange_type): Handle dynamic
7896 DW_AT_lower_bound attributes.
7898 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7900 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7901 dynamic bounds before computing its upper bound.
7902 (ada_discrete_type_low_bound): Same as above with the lower bound.
7904 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7906 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7907 range types. Adjust the array handling implementation to
7908 take advantage of this change.
7909 (resolve_dynamic_range): New function, mostly extracted from
7910 resolve_dynamic_bounds.
7911 (resolve_dynamic_array): New function, mostly extracted from
7912 resolve_dynamic_bounds.
7913 (resolve_dynamic_bounds): Delete.
7914 (resolve_dynamic_type): Reimplement. Add handling of
7915 TYPE_CODE_RANGE types.
7917 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7919 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7920 handling of parallel ___XA types.
7922 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7924 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7925 unnecessary second call to static_unwrap_type.
7927 2014-04-27 Hui Zhu <hui@codesourcery.com>
7929 * stack.c (print_frame_info): Call do_gdb_disassembly with
7930 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7932 2014-04-26 Doug Evans <xdje42@gmail.com>
7934 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7936 2014-04-25 Pedro Alves <palves@redhat.com>
7939 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7940 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7941 and newline from built string.
7942 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7943 (linux_ptrace_attach_fail_reason): ... this.
7944 * linux-nat.c (linux_nat_attach): Adjust to use
7945 linux_ptrace_attach_fail_reason.
7947 2014-04-25 Pedro Alves <palves@redhat.com>
7949 * remote.c (struct remote_state): Remove multi_process_aware,
7950 non_stop_aware, cond_tracepoints, cond_breakpoints,
7951 breakpoint_commands, fast_tracepoints, static_tracepoints,
7952 install_in_trace, disconnected_tracing,
7953 enable_disable_tracepoints, string_tracing, and
7954 augmented_libraries_svr4_read fields.
7955 (remote_multi_process_p): Move further below in the file.
7956 (struct packet_config): Add comments.
7957 (update_packet_config): Delete function.
7958 (show_packet_config_cmd): Use packet_config_support.
7959 (add_packet_config_cmd): Use NULL as set callback.
7960 (packet_ok): "set remote foo-packet"-style commands no longer
7961 change config->supported -- adjust.
7962 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7963 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7964 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7965 (PACKET_QNonStop, PACKET_multiprocess_feature)
7966 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7967 (PACKET_DisconnectedTracing_feature)
7968 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7969 (set_remote_protocol_packet_cmd): Delete function.
7970 (packet_config_support, packet_support): New functions.
7971 (set_remote_protocol_Z_packet_cmd): Don't call
7972 update_packet_config.
7973 (remote_query_attached, remote_pass_signals)
7974 (remote_program_signals, remote_threads_info)
7975 (remote_threads_extra_info, remote_start_remote): Use
7977 (remote_start_remote): Use packet_config_support and
7979 (init_all_packet_configs): Set all packets to unknown support,
7980 instead of calling update_packet_config.
7981 (remote_check_symbols): Use packet_support.
7982 (remote_supported_packet): Unconditionally set the packet config's
7984 (remote_multi_process_feature, remote_non_stop_feature)
7985 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7986 (remote_breakpoint_commands_feature)
7987 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7988 (remote_install_in_trace_feature)
7989 (remote_disconnected_tracing_feature)
7990 (remote_enable_disable_tracepoint_feature)
7991 (remote_string_tracing_feature)
7992 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7993 (remote_protocol_features): Adjust to use remote_supported_packet
7994 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7995 "ConditionalTracepoints", "ConditionalBreakpoints",
7996 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7997 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7998 "EnableDisableTracepoints", and "tracenz".
7999 (remote_query_supported): Use packet_support.
8000 (remote_open_1): Adjust.
8001 (extended_remote_attach_1): Use packet_support. Switch on the
8002 result of packet_ok instead of checking whether the packet ended
8004 (remote_vcont_resume): Use packet_support.
8005 (remote_resume, remote_stop_ns, fetch_register_using_p)
8006 (remote_prepare_to_store, store_register_using_P)
8007 (check_binary_download, remote_write_bytes): Use packet_support.
8008 (remote_vkill): Use packet_support. Switch on the result of
8009 packet_ok instead of checking whether the packet ended up
8011 (extended_remote_supports_disable_randomization): Use
8013 (extended_remote_run): Switch on the result of packet_ok instead
8014 of checking whether the packet ended up disabled.
8015 (remote_insert_breakpoint, remote_remove_breakpoint)
8016 (remote_insert_watchpoint, remote_remove_watchpoint)
8017 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8019 (remote_search_memory): Use packet_config_support.
8020 (remote_get_thread_local_address, remote_get_tib_address)
8021 (remote_hostio_send_command, remote_can_execute_reverse): Use
8023 (remote_supports_cond_tracepoints)
8024 (remote_supports_cond_breakpoints)
8025 (remote_supports_fast_tracepoints)
8026 (remote_supports_static_tracepoints)
8027 (remote_supports_install_in_trace)
8028 (remote_supports_enable_disable_tracepoint)
8029 (remote_supports_string_tracing)
8030 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8031 the packet config says the feature is enabled or disabled.
8032 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8033 (remote_get_trace_status): Use packet_support.
8034 (remote_set_disconnected_tracing): Adjust to check whether the
8035 feature is enabled with packet_support.
8036 (remote_set_trace_buffer_size, remote_use_agent)
8037 (remote_can_use_agent, remote_supports_btrace): Use
8039 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8040 Use packet_config_support.
8041 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8042 the packet config says the feature is enabled or disabled.
8043 (set_range_stepping): Use packet_support.
8045 2014-04-25 Tom Tromey <tromey@redhat.com>
8047 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8050 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8052 * NEWS: Mention support for C99 variable length arrays.
8054 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8056 * ada-lang.c (standard_exc): Expand introductory comment.
8058 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8059 Walfred Tedeschi <walfred.tedeschi@intel.com>
8061 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8063 (amd64_linux_read_description): Add code to handle AVX512 xstate
8064 mask and return respective tdesc.
8065 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8066 and features/i386/x32-avx512-linux.c.
8067 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8068 (amd64_linux_core_read_description): Add code to handle AVX512
8069 xstate mask and return respective tdesc.
8070 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8071 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8073 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8074 (tdesc_amd64_avx512_linux): New prototype.
8075 (tdesc_x32_avx512_linux): Likewise.
8076 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8077 features/i386/x32-avx512.c.
8078 (amd64_ymm_avx512_names): New register names for pseudo
8080 (amd64_ymmh_avx512_names): New register names for raw registers
8082 (amd64_k_names): New register names for K registers.
8083 (amd64_zmmh_names): New register names for ZMM raw registers.
8084 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8085 (amd64_xmm_avx512_names): New register names for XMM16-31
8087 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8089 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8090 if feature is present.
8091 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8092 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8093 (AMD64_NUM_REGS): Adjust to new number of registers.
8094 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8095 registers supplied via XSTATE by AVX512 registers.
8096 (i386_linux_read_description): Add case for AVX512.
8097 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8098 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8099 (i386_linux_core_read_description): Add case for AVX512.
8100 (i386_linux_init_abi): Install supported register note section
8102 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8104 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8105 registers to be number of zmm7h + 1.
8106 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8107 * i386-tdep.c: Include features/i386/i386-avx512.c.
8108 (i386_zmm_names): Add ZMM pseudo register names array.
8109 (i386_zmmh_names): Add ZMM raw register names array.
8110 (i386_k_names): Add K raw register names array.
8111 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8112 registers. AVX512 has 16 more ZMM registers than there are YMM
8114 (i386_zmmh_regnum_p): Add function to look up register number of
8116 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8117 (i386_k_regnum_p): Likewise for K raw registers.
8118 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8119 registers added by AVX512.
8120 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8121 registers added by AVX512.
8122 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8124 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8125 (i386_pseudo_register_name): Add ZMM pseudo registers.
8126 (i386_zmm_type): Construct and return vector registers type for ZMM
8128 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8129 ZMM0-31 pseudo registers and K registers.
8130 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8131 and YMM16-31 registers from register cache.
8132 (i386_pseudo_register_write): Add code to write K, ZMM and
8134 (i386_register_reggroup_p): Add code to include/exclude AVX512
8135 registers in/from respective register groups.
8136 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8137 registers if feature is present in xcr0.
8138 (i386_gdbarch_init): Add code to initialize AVX512 feature
8139 variables in tdep structure, wire in pseudo registers and call
8140 initialize_tdesc_i386_avx512.
8141 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8143 (i386_regnum): Add AVX512 registers.
8144 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8145 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8146 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8147 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8149 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8150 (i386_ymm_avx512_regnum_p): Likewise.
8151 (i386_k_regnum_p): Likewise.
8152 (i386_zmm_regnum_p): Likewise.
8153 (i386_zmmh_regnum_p): Likewise.
8154 * i387-tdep.c : Update year in copyright notice.
8155 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8157 (XSAVE_YMM_AVX512_ADDR): New macro.
8158 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8160 (XSAVE_XMM_AVX512_ADDR): New macro.
8161 (xsave_avx512_k_offset): New table for K register offsets in
8163 (XSAVE_AVX512_K_ADDR): New macro.
8164 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8166 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8167 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8169 (i387_collect_xsave): Add code to collect AVX512 registers from
8171 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8172 of XMM16-31 registers.
8173 (I387_NUM_K_REGS): New define for number of K registers.
8174 (I387_K0_REGNUM): New define for K0 register number.
8175 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8176 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8177 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8179 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8180 (I387_XMM16_REGNUM): New define for XMM16 register number.
8181 (I387_YMM0_REGNUM): New define for YMM0 register number.
8182 (I387_KEND_REGNUM): New define for last K register number.
8183 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8184 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8186 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8188 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8190 * features/Makefile: Add AVX512 related files.
8191 * features/i386/32bit-avx512.xml: New file.
8192 * features/i386/64bit-avx512.xml: Likewise.
8193 * features/i386/amd64-avx512-linux.c: Likewise.
8194 * features/i386/amd64-avx512-linux.xml: Likewise.
8195 * features/i386/amd64-avx512.c: Likewise.
8196 * features/i386/amd64-avx512.xml: Likewise.
8197 * features/i386/i386-avx512-linux.c: Likewise.
8198 * features/i386/i386-avx512-linux.xml: Likewise.
8199 * features/i386/i386-avx512.c: Likewise.
8200 * features/i386/i386-avx512.xml: Likewise.
8201 * features/i386/x32-avx512-linux.c: Likewise.
8202 * features/i386/x32-avx512-linux.xml: Likewise.
8203 * features/i386/x32-avx512.c: Likewise.
8204 * features/i386/x32-avx512.xml: Likewise.
8205 * regformats/i386/amd64-avx512-linux.dat: New file.
8206 * regformats/i386/amd64-avx512.dat: Likewise.
8207 * regformats/i386/i386-avx512-linux.dat: Likewise.
8208 * regformats/i386/i386-avx512.dat: Likewise.
8209 * regformats/i386/x32-avx512-linux.dat: Likewise.
8210 * regformats/i386/x32-avx512.dat: Likewise.
8211 * NEWS: Add note about new support for AVX512.
8214 2014-04-23 Pedro Alves <palves@redhat.com>
8216 * breakpoint.c (insert_bp_location): Tolerate errors if the
8217 breakpoint is set in a user-loaded objfile.
8218 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8219 location is marked shlib_disabled. If the breakpoint is set in a
8220 user-loaded objfile is a GDB-side memory breakpoint, validate it
8221 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8222 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8224 * mem-break.c (memory_validate_breakpoint): New function.
8225 * objfiles.c (userloaded_objfile_contains_address_p): New
8227 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8228 * target.h (memory_validate_breakpoint): New declaration.
8230 2014-04-23 Pedro Alves <palves@redhat.com>
8232 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8233 the breakpoint is set in a shared library, only suppress
8234 errors for software breakpoints, not hardware breakpoints.
8236 2014-04-22 Pedro Alves <palves@redhat.com>
8238 * infrun.c (schedlock_applies): New function, factored out from
8239 find_thread_needs_step_over.
8240 (find_thread_needs_step_over): Use it.
8241 (switch_back_to_stepped_thread): Always clear trap_expected if the
8242 step over is finished. Return early if scheduler locking applies.
8243 Look for the stepping thread and a potential step-over thread with
8245 (currently_stepping_or_nexting_callback): Delete.
8247 2014-04-22 Nick Clifton <nickc@redhat.com>
8249 * NEWS: Mention that ARM sim now supports tracing.
8251 2014-04-22 Yao Qi <yao@codesourcery.com>
8253 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8255 * tracefile.c (tracefile_fetch_registers): ... it. New
8257 * tracefile.h (tracefile_fetch_registers): Declare.
8258 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8259 tracefile_fetch_registers.
8261 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8264 * windows-nat.c (thread_rec): Don't display a warning when
8265 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8266 fails for any reason, set th->suspended to -1, so that we don't
8267 try to resume such a thread. Also, don't return NULL in these
8268 cases, to avoid completely ruin the session due to "PC register is
8269 not available" error.
8270 (do_windows_fetch_inferior_registers): Check errors in
8271 GetThreadContext call.
8272 (windows_continue): Accept an additional argument KILLED; if not
8273 zero, ignore errors in the SetThreadContext call, since the
8274 inferior was killed and is shutting down.
8275 (windows_resume, get_windows_debug_event)
8276 (windows_create_inferior, windows_mourn_inferior)
8277 (windows_kill_inferior): All callers of windows_continue changed
8278 to adjust to its new calling sequence.
8280 2014-04-19 Yao Qi <yao@codesourcery.com>
8282 * ctf.c (ctf_open): Call post_create_inferior.
8284 2014-04-19 Yao Qi <yao@codesourcery.com>
8286 * ctf.c (handle_id): New static variable.
8287 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8288 value. Get the declaration of event "register" and get length
8289 of field "contents".
8291 2014-04-19 Yao Qi <yao@codesourcery.com>
8293 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8295 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8297 * valops.c (oload_method_static): Remove unnecessary argument
8298 METHOD. Update all callers.
8300 2014-04-18 Pedro alves <palves@redhat.com>
8301 Tom Tromey <tromey@redhat.com>
8304 * frame.c (get_prev_frame_1): Rename to ...
8305 (get_prev_frame_always): ... this, and make extern. Adjust.
8306 (skip_artificial_frames): Use get_prev_frame_always.
8307 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8308 (get_frame_unwind_stop_reason): Adjust to rename.
8309 * frame.h (get_prev_frame_always): Declare.
8310 * inline-frame.c: Include frame.h.
8311 (inline_frame_this_id): Use get_prev_frame_always.
8313 2014-04-18 Tristan Gingold <gingold@adacore.com>
8315 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8316 code by using bfd_mach_o_get_base_address.
8318 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8320 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8321 (spu_ax_pseudo_register_collect): New function.
8322 (spu_ax_pseudo_register_push_stack): Likewise.
8323 (spu_dwarf_reg_to_regnum): Likewise.
8324 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8326 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8328 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8329 Replace FRAME argument with FRAME_ID.
8330 * gdbarch.c, gdbarch.h: Regenerate.
8331 * findvar.c (default_value_from_register): Add GDBARCH argument;
8332 replace FRAME by FRAME_ID. No longer call get_frame_id.
8333 (value_from_register): Update call to gdbarch_value_from_register.
8334 * value.h (default_value_from_register): Update prototype.
8335 * s390-linux-tdep.c (s390_value_from_register): Update interface
8336 and call to default_value_from_register.
8337 * spu-tdep.c (spu_value_from_register): Likewise.
8339 * findvar.c (address_from_register): Remove TYPE argument.
8340 Do not call value_from_register; use gdbarch_value_from_register
8341 with null_frame_id instead.
8342 * value.h (address_from_register): Update prototype.
8343 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8344 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8345 address_from_register interface change.
8347 2014-04-17 Yao Qi <yao@codesourcery.com>
8349 * gdbtypes.h: Update comments to link to types and macros'
8352 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8354 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8356 2014-04-16 Keith Seitz <keiths@redhat.com>
8359 * dwarf2read.c (skip_one_die): Check that all relative-offset
8360 sibling DIEs fall within range of the current reader's buffer.
8361 (read_partial_die): Likewise.
8363 2014-04-16 Keith Seitz <keiths@redhat.com>
8366 * cp-namespace.c (lookup_symbol_file): If the type name of
8367 `this' is NULL, return immediately.
8369 2014-04-14 Keith Seitz <keiths@redhat.com>
8372 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8373 from symbol_matches_domain in symtab.c. All local callers
8374 of symbol_matches_domain updated.
8375 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8376 search STRUCT_DOMAIN.
8377 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8378 independently. standard_lookup will do that automatically.
8379 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8380 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8381 (cp_lookup_symbol_in_namespace): Likewise.
8382 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8383 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8384 may return a STRUCT_DOMAIN match.
8385 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8386 * cp-support.c: Include language.h.
8387 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8389 * psymtab.c (match_partial_symbol): Compare the requested
8390 domain with the symbol's domain directly.
8391 (lookup_partial_symbol): Likewise.
8392 * symtab.c (lookup_symbol_in_language): Explain when/why
8393 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8394 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8395 appropriate languages.
8396 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8397 and moved to ada-lang.c
8398 (lookup_block_symbol): Explain that this function only returns
8399 symbol matching the requested DOMAIN.
8400 Compare the requested domain with the symbol's domain directly.
8401 (iterate_over_symbols): Compare the requested domain with the
8402 symbol's domain directly.
8403 * symtab.h (symbol_matches_domain): Remove.
8405 2014-04-14 Tom Tromey <tromey@redhat.com>
8408 * c-exp.y (type_aggregate_p): New function.
8409 (qualified_name, classify_inner_name): Use it.
8410 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8411 and TYPE_TARGET_TYPE of an enum type.
8412 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8414 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8415 handle TYPE_DECLARED_CLASS.
8416 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8418 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8419 * valops.c (enum_constant_from_type): New function.
8420 (value_aggregate_elt): Use it.
8421 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8424 2014-04-14 Tom Tromey <tromey@redhat.com>
8426 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8427 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8429 * value.h (value_aggregate_elt): Update.
8431 2014-04-14 Tom Tromey <tromey@redhat.com>
8433 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8435 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8437 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8438 (evaluate_subexp_standard): Pass noside argument.
8439 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8440 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8441 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8442 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8443 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8445 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8447 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8448 points to a constant blob.
8450 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8452 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8453 property and store it as the high bound and flag the range accordingly.
8454 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8455 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8456 * gdbtypes.h (enum range_flags): New enum.
8457 (struct range_bounds): Add flags member.
8459 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8461 * c-typeprint.c (c_type_print_varspec_suffix): Added
8462 check for not yet resolved high bound. If unresolved, print
8463 "variable length" string to the console instead of random
8466 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8468 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8470 (ada_template_to_fixed_record_type_1): Likewise.
8471 (ada_to_fixed_type_1): Likewise.
8472 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8473 (cp_print_value): Likewise.
8474 * d-valprint.c (dynamic_array_type): Likewise.
8475 * findvar.c (address_of_variable): Likewise.
8476 * jv-valprint.c (java_value_print): Likewise.
8477 * valops.c (value_ind): Likewise.
8478 * value.c (coerce_ref): Likewise.
8480 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8482 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8483 value and retrieve the dynamic type size.
8485 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8487 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8488 passed to sizeof is dynamic evaluate the argument to compute the length.
8490 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8491 Joel Brobecker <brobecker@adacore.com>
8493 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8494 (dwarf2_evaluate_property): New function.
8495 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8496 * dwarf2read.c (attr_to_dynamic_prop): New function.
8497 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8499 * gdbtypes.c: Include dwarf2loc.h.
8500 (is_dynamic_type): New function.
8501 (resolve_dynamic_type): New function.
8502 (resolve_dynamic_bounds): New function.
8503 (get_type_length): New function.
8504 (check_typedef): Use get_type_length to compute type length.
8505 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8506 (TYPE_LOW_BOUND_KIND): New macro.
8507 (is_dynamic_type): New function prototype.
8508 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8509 to resolve dynamic properties of the type. Update comment.
8510 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8512 2014-04-14 Richard Henderson <rth@redhat.com>
8514 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8516 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8517 Doug Evans <xdje42@gmail.com>
8519 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8520 dereference TYPE_CODE_REF values.
8522 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8524 Revert the following changes due to regressions:
8526 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8527 (dwarf2_evaluate_property): New function.
8528 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8529 * dwarf2read.c (attr_to_dynamic_prop): New function.
8530 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8532 * gdbtypes.c: Include dwarf2loc.h.
8533 (is_dynamic_type): New function.
8534 (resolve_dynamic_type): New function.
8535 (resolve_dynamic_bounds): New function.
8536 (get_type_length): New function.
8537 (check_typedef): Use get_type_length to compute type length.
8538 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8539 (TYPE_LOW_BOUND_KIND): New macro.
8540 (is_dynamic_type): New function prototype.
8541 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8542 to resolve dynamic properties of the type. Update comment.
8543 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8545 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8546 passed to sizeof is dynamic evaluate the argument to compute the length.
8548 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8549 value and retrieve the dynamic type size.
8551 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8552 (ada_template_to_fixed_record_type_1): Likewise.
8553 (ada_to_fixed_type_1): Likewise.
8554 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8555 (cp_print_value): Likewise.
8556 * d-valprint.c (dynamic_array_type): Likewise.
8557 * eval.c (evaluate_subexp_with_coercion): Likewise.
8558 * findvar.c (address_of_variable): Likewise.
8559 * jv-valprint.c (java_value_print): Likewise.
8560 * valops.c (value_ind): Likewise.
8561 * value.c (coerce_ref): Likewise.
8563 * c-typeprint.c (c_type_print_varspec_suffix): Added
8564 check for not yet resolved high bound. If unresolved, print
8565 "variable length" string to the console instead of random
8568 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8569 property and store it as the high bound and flag the range accordingly.
8570 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8571 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8572 * gdbtypes.h (enum range_flags): New enum.
8573 (struct range_bounds): Add flags member.
8575 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8576 points to a constant blob.
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.
8586 2014-04-11 Keith Seitz <keiths@redhat.com>
8589 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8590 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8593 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8595 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8596 (evaluate_subexp_standard): Pass noside argument.
8597 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8598 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8599 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8600 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8601 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8603 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8605 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8606 points to a constant blob.
8608 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8610 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8611 property and store it as the high bound and flag the range accordingly.
8612 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8613 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8614 * gdbtypes.h (enum range_flags): New enum.
8615 (struct range_bounds): Add flags member.
8617 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8619 * c-typeprint.c (c_type_print_varspec_suffix): Added
8620 check for not yet resolved high bound. If unresolved, print
8621 "variable length" string to the console instead of random
8624 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8626 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8627 (ada_template_to_fixed_record_type_1): Likewise.
8628 (ada_to_fixed_type_1): Likewise.
8629 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8630 (cp_print_value): Likewise.
8631 * d-valprint.c (dynamic_array_type): Likewise.
8632 * eval.c (evaluate_subexp_with_coercion): Likewise.
8633 * findvar.c (address_of_variable): Likewise.
8634 * jv-valprint.c (java_value_print): Likewise.
8635 * valops.c (value_ind): Likewise.
8636 * value.c (coerce_ref): Likewise.
8638 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8640 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8641 value and retrieve the dynamic type size.
8643 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8645 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8646 passed to sizeof is dynamic evaluate the argument to compute the length.
8648 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8650 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8651 (dwarf2_evaluate_property): New function.
8652 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8653 * dwarf2read.c (attr_to_dynamic_prop): New function.
8654 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8656 * gdbtypes.c: Include dwarf2loc.h.
8657 (is_dynamic_type): New function.
8658 (resolve_dynamic_type): New function.
8659 (resolve_dynamic_bounds): New function.
8660 (get_type_length): New function.
8661 (check_typedef): Use get_type_length to compute type length.
8662 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8663 (TYPE_LOW_BOUND_KIND): New macro.
8664 (is_dynamic_type): New function prototype.
8665 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8666 to resolve dynamic properties of the type. Update comment.
8667 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8669 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8671 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8672 declaring high/low bounds and change uses accordingly. Call
8673 create_range_type instead of create_static_range_type.
8674 * gdbtypes.c (create_range_type): New function.
8675 (create_range_type): Convert bounds into struct bound_prop and pass
8676 them to create_range_type.
8677 * gdbtypes.h (struct bound_prop): New struct.
8678 (create_range_type): New function prototype.
8679 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8680 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8681 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8683 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8685 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8687 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8688 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8689 * ada-lang.c: All uses of create_range_type updated.
8690 * coffread.c: All uses of create_range_type updated.
8691 * dwarf2read.c: All uses of create_range_type updated.
8692 * f-exp.y: All uses of create_range_type updated.
8693 * m2-valprint.c: All uses of create_range_type updated.
8694 * mdebugread.c: All uses of create_range_type updated.
8695 * stabsread.c: All uses of create_range_type updated.
8696 * valops.c: All uses of create_range_type updated.
8697 * valprint.c: All uses of create_range_type updated.
8699 2014-04-10 Pedro Alves <palves@redhat.com>
8701 * breakpoint.c (single_step_breakpoints)
8702 (single_step_gdbarch): Move up in the file.
8703 (one_breakpoint_xfer_memory): New function, factored out from ...
8704 (breakpoint_xfer_memory): ... here. Also process single-step
8707 2014-04-09 Tristan Gingold <gingold@adacore.com>
8709 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8711 (darwin_decode_exception_message): Free port only after use.
8713 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8715 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8716 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8717 when setting the size of call_length.
8719 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8721 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8722 dereference TYPE_CODE_REF values.
8724 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8726 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8727 end of warning message.
8729 2014-04-03 Doug Evans <dje@google.com>
8731 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8732 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8734 2014-04-02 Alan Modra <amodra@gmail.com>
8736 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8737 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8738 (struct symbol_file_add_from_memory_args): Add size field.
8739 (find_vdso_size): New function.
8740 (add_vsyscall_page): Attempt to find vdso size.
8742 2014-04-01 Doug Evans <dje@google.com>
8744 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8746 2014-04-01 Tristan Gingold <gingold@adacore.com>
8748 * darwin-nat.c (darwin_encode_reply): Add prototype.
8749 (darwin_decode_exception_message): Reply to unknown inferiors.
8750 (darwin_decode_message): Handle message by id. Ignore message
8751 to unknown inferior.
8752 (darwin_wait): Discard unknown messages, add debug trace.
8754 2014-03-31 Doug Evans <dje@google.com>
8756 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8759 2014-03-31 Doug Evans <dje@google.com>
8761 New option "set print symbol-loading".
8763 * solib.c (solib_read_symbols): Only print symbol loading messages
8765 (solib_add): If symbol loading is in "brief" mode, notify user
8766 symbols are being loaded.
8767 (reload_shared_libraries_1): Ditto.
8768 * symfile.c (print_symbol_loading_off): New static global.
8769 (print_symbol_loading_brief): New static global.
8770 (print_symbol_loading_full): New static global.
8771 (print_symbol_loading_enums): New static global.
8772 (print_symbol_loading): New static global.
8773 (print_symbol_loading_p): New function.
8774 (symbol_file_add_with_addrs): Only print symbol loading messages
8776 (_initialize_symfile): Register "print symbol-loading" set/show
8778 * symfile.h (print_symbol_loading_p): Declare.
8780 2014-03-30 Doug Evans <xdje42@gmail.com>
8782 * infrun.c (set_last_target_status): New function.
8783 (handle_inferior_event): Call it.
8785 2014-03-30 Doug Evans <xdje42@gmail.com>
8787 * inferior.h (enum stop_kind): Improve comment.
8789 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8791 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8792 a reference, strip the reference layer before calling
8793 the lang_ops value_has_mutated callback.
8795 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8797 Remove some globals from our parser.
8798 * language.c (unk_lang_parser): Add "struct parser_state"
8800 * language.h (struct language_defn) <la_parser>: Likewise.
8801 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8802 (initialize_expout): Add "struct parser_state" argument.
8803 Rewrite function to use the parser state.
8804 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8805 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8806 write_exp_elt_longcst, write_exp_elt_dblcst,
8807 write_exp_elt_decfloatcst, write_exp_elt_type,
8808 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8809 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8810 write_dollar_variable): Likewise.
8811 (parse_exp_in_context_1): Use parser state.
8812 (insert_type_address_space): Add "struct parser_state" argument.
8814 (increase_expout_size): New function.
8815 * parser-defs.h: Forward declare "struct language_defn" and
8816 "struct parser_state".
8817 (expout, expout_size, expout_ptr): Remove extern declarations.
8818 (parse_gdbarch, parse_language): Rewrite macro declarations to
8819 accept the parser state.
8820 (struct parser_state): New struct.
8821 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8822 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8823 write_exp_elt_decfloatcst, write_exp_elt_type,
8824 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8825 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8826 write_exp_msymbol, write_dollar_variable,
8827 mark_struct_expression, insert_type_address_space): Add "struct
8828 parser_state" argument.
8829 (increase_expout_size): New function.
8830 * utils.c (do_clear_parser_state): New function.
8831 (make_cleanup_clear_parser_state): Likewise.
8832 * utils.h (make_cleanup_clear_parser_state): New function
8834 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8835 Update calls to write_exp* in order to pass the parser state.
8836 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8837 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8838 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8839 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8840 * stap-probe.c (stap_parse_register_operand): Likewise.
8841 (stap_parse_single_operand): Likewise.
8842 (stap_parse_argument_1): Likewise.
8843 (stap_parse_argument): Use parser state.
8844 * stap-probe.h: Include "parser-defs.h".
8845 (struct stap_parse_info) <pstate>: New field.
8846 * c-exp.y (parse_type): Rewrite to use parser state.
8847 (yyparse): Redefine to c_parse_internal.
8848 (pstate): New global variable.
8849 (parse_number): Add "struct parser_state" argument.
8850 (write_destructor_name): Likewise.
8851 (type_exp): Update calls to write_exp* and similars in order to
8853 (exp1, exp, variable, qualified_name, space_identifier,
8854 typename, typebase): Likewise.
8855 (write_destructor_name, parse_number, lex_one_token,
8856 classify_name, classify_inner_name, c_parse): Add "struct
8857 parser_state" argument. Update function to use parser state.
8858 * c-lang.h: Forward declare "struct parser_state".
8859 (c_parse): Add "struct parser_state" argument.
8860 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8861 (yyparse): Redefine macro to ada_parse_internal.
8862 (pstate): New variable.
8863 (write_int, write_object_renaming, write_var_or_type,
8864 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8865 type_int, type_long, type_long_long, type_float, type_double,
8866 type_long_double, type_char, type_boolean, type_system_address):
8867 Add "struct parser_state" argument.
8868 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8869 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8870 var_or_type, aggregate, aggregate_component_list,
8871 positional_list, others, component_group,
8872 component_associations): Update calls to write_exp* and similar
8873 functions in order to use parser state.
8874 (ada_parse, write_var_from_sym, write_int,
8875 write_exp_op_with_string, write_object_renaming,
8876 find_primitive_type, write_selectors, write_ambiguous_var,
8877 write_var_or_type, write_name_assoc, type_int, type_long,
8878 type_long_long, type_float, type_double, type_long_double,
8879 type_char, type_boolean, type_system_address): Add "struct
8880 parser_state" argument. Adjust function to use parser state.
8881 * ada-lang.c (parse): Likewise.
8882 * ada-lang.h: Forward declare "struct parser_state".
8883 (ada_parse): Add "struct parser_state" argument.
8884 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8885 calls to both functions.
8886 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8888 (yyparse): Redefine macro to f_parse_internal.
8889 (pstate): New variable.
8890 (parse_number): Add "struct parser_state" argument.
8891 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8892 and similars in order to use parser state.
8893 (parse_number): Adjust code to use parser state.
8895 (f_parse): New function.
8896 * f-lang.h: Forward declare "struct parser_state".
8897 (f_parse): Add "struct parser_state" argument.
8898 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8900 (yyparse): Redefine macro for java_parse_internal.
8901 (pstate): New variable.
8902 (push_expression_name, push_expression_name, insert_exp): Add
8903 "struct parser_state" argument.
8904 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8905 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8906 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8907 PostIncrementExpression, PostDecrementExpression,
8908 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8909 UnaryExpressionNotPlusMinus, CastExpression,
8910 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8911 RelationalExpression, EqualityExpression, AndExpression,
8912 ExclusiveOrExpression, InclusiveOrExpression,
8913 ConditionalAndExpression, ConditionalOrExpression,
8914 ConditionalExpression, Assignment, LeftHandSide): Update
8915 calls to write_exp* and similars in order to use parser state.
8916 (parse_number): Ajust code to use parser state.
8918 (java_parse): New function.
8919 (push_variable): Add "struct parser_state" argument. Adjust
8920 code to user parser state.
8921 (push_fieldnames, push_qualified_expression_name,
8922 push_expression_name, insert_exp): Likewise.
8923 * jv-lang.h: Forward declare "struct parser_state".
8924 (java_parse): Add "struct parser_state" argument.
8925 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8927 (yyparse): Redefine macro to m2_parse_internal.
8928 (pstate): New variable.
8929 (type_exp, exp, fblock, variable, type): Update calls to
8930 write_exp* and similars to use parser state.
8932 (m2_parse): New function.
8933 * m2-lang.h: Forward declare "struct parser_state".
8934 (m2_parse): Add "struct parser_state" argument.
8935 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8936 * objc-lang.h: Forward declare "struct parser_state".
8937 (end_msglist): Add "struct parser_state" argument.
8938 * p-exp.y (parse_type): Rewrite macro to use parser state.
8939 (yyparse): Redefine macro to pascal_parse_internal.
8940 (pstate): New variable.
8941 (parse_number): Add "struct parser_state" argument.
8942 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8943 write_exp* and similars in order to use parser state.
8944 (parse_number, yylex): Adjust code to use parser state.
8945 (pascal_parse): New function.
8946 * p-lang.h: Forward declare "struct parser_state".
8947 (pascal_parse): Add "struct parser_state" argument.
8948 * go-exp.y (parse_type): Rewrite macro to use parser state.
8949 (yyparse): Redefine macro to go_parse_internal.
8950 (pstate): New variable.
8951 (parse_number): Add "struct parser_state" argument.
8952 (type_exp, exp1, exp, variable, type): Update calls to
8953 write_exp* and similars in order to use parser state.
8954 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8955 to use parser state.
8956 (go_parse): Likewise.
8957 * go-lang.h: Forward declare "struct parser_state".
8958 (go_parse): Add "struct parser_state" argument.
8960 2014-03-27 Doug Evans <dje@google.com>
8962 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8964 2014-03-27 Doug Evans <dje@google.com>
8966 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8967 Remove argument abbrev_section. All callers updated.
8969 2014-03-27 Doug Evans <dje@google.com>
8971 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8972 addr_base, ranges_base.
8974 2014-03-26 Keith Seitz <keiths@redhat.com>
8976 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8977 types, not VAR_DOMAIN.
8979 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8981 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8983 * features/nios2-linux.c: Regenerated.
8984 * features/nios2.c: Regenerated.
8986 2014-03-25 Pedro Alves <palves@redhat.com>
8988 * cli/cli-script.c (script_from_file): Force the interpreter to
8991 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8993 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8994 small stack allocation.
8996 2014-03-24 Tristan Gingold <gingold@adacore.com>
8998 * darwin-nat.c (exc_server): Remove unused prototype.
8999 (darwin_dump_message): Correctly display data on x86_64.
9000 (darwin_encode_reply): Fix style.
9001 Add comments and fix indentation.
9003 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9005 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9007 2014-03-22 Doug Evans <xdje42@gmail.com>
9009 * infcmd.c: Whitespace fixes.
9010 (interrupt_command): Merge two function comments into one.
9012 2014-03-22 Doug Evans <xdje42@gmail.com>
9014 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9017 2014-03-22 Yao Qi <yao@codesourcery.com>
9019 * remote.c (target_read_live_memory): Remove.
9020 (memory_xfer_live_readonly_partial): Rename it to
9021 remote_xfer_live_readonly_partial. Remove argument 'object'.
9022 All callers updated. Call remote_read_bytes_1
9023 instead of target_read_live_memory.
9024 * tracepoint.c (set_traceframe_number): Remove.
9025 (make_cleanup_restore_traceframe_number): Likewise .
9026 * tracepoint.h (set_traceframe_number): Remove declaration.
9027 (make_cleanup_restore_traceframe_number): Likewise.
9029 2014-03-22 Yao Qi <yao@codesourcery.com>
9031 * remote.c (remote_read_bytes): Move code on reading from the
9033 (remote_read_bytes_1): ... here. New function.
9035 2014-03-22 Yao Qi <yao@codesourcery.com>
9037 * ctf.c (ctf_xfer_partial): Check the return value of
9038 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9039 return TARGET_XFER_UNAVAILABLE.
9040 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9041 * target.c (target_read_live_memory): Move it to remote.c.
9042 (memory_xfer_live_readonly_partial): Likewise.
9043 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9044 * remote.c (target_read_live_memory): Moved from target.c.
9045 (memory_xfer_live_readonly_partial): Likewise.
9046 (remote_read_bytes): Factored out from
9047 memory_xfer_partial_1.
9049 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9051 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9054 2014-03-21 Pedro Alves <palves@redhat.com>
9056 * infrun.c (normal_stop): Extend comment.
9058 2014-03-21 Hui Zhu <hui@codesourcery.com>
9059 Pedro Alves <palves@redhat.com>
9061 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9063 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9064 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9065 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9067 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9069 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9070 `z' formatted output modifier.
9072 2014-03-20 Tom Tromey <tromey@redhat.com>
9073 Sergio Durigan Junior <sergiodj@redhat.com>
9075 * probe.c (parse_probes): Turn assert into an ordinary error.
9076 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9077 exceptions when parsing probes. Rearrange the code for clarity.
9079 2014-03-20 Tom Tromey <tromey@redhat.com>
9082 * top.c (execute_command): Only dispatch events if the command
9085 2014-03-20 Tom Tromey <tromey@redhat.com>
9088 * infcall.c: Include event-top.h.
9089 (run_inferior_call): Call async_disable_stdin if needed.
9091 2014-03-20 Pedro Alves <palves@redhat.com>
9093 * infrun.c (prepare_to_proceed): Delete.
9094 (thread_still_needs_step_over): New function.
9095 (find_thread_needs_step_over): New function.
9096 (proceed): If the current thread needs a step-over, set its
9097 steping_over_breakpoint flag. Adjust to use
9098 find_thread_needs_step_over instead of prepare_to_proceed.
9099 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9100 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9102 (switch_back_to_stepped_thread): Step over breakpoints of all
9103 threads not the stepping thread, before switching back to the
9106 2014-03-20 Pedro Alves <palves@redhat.com>
9108 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9110 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9111 * infrun.c (saved_singlestep_ptid)
9112 (stepping_past_singlestep_breakpoint): Delete.
9113 (resume): Remove stepping_past_singlestep_breakpoint handling.
9114 (proceed): Store the prev_pc of the stepping thread too.
9115 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9117 (enum infwait_states): Delete infwait_thread_hop_state.
9118 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9120 (handle_inferior_event): Adjust.
9121 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9122 handling and the thread-hop code. Before removing single-step
9123 breakpoints, check whether the thread hit a single-step breakpoint
9124 of another thread. If it did, the trap is not a random signal.
9125 (switch_back_to_stepped_thread): If the event thread hit a
9126 single-step breakpoint, unblock it before switching to the
9127 stepping thread. Handle the case of the stepped thread having
9129 (keep_going): Handle the case of the current thread moving past a
9130 single-step breakpoint.
9132 2014-03-20 Pedro Alves <palves@redhat.com>
9135 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9136 are being stepped over.
9137 (breakpoint_address_match): Make extern.
9138 * breakpoint.h (breakpoint_address_match): New declaration.
9139 * inferior.h (stepping_past_instruction_at): New declaration.
9140 * infrun.c (struct step_over_info): New type.
9141 (step_over_info): New global.
9142 (set_step_over_info, clear_step_over_info)
9143 (stepping_past_instruction_at): New functions.
9144 (handle_inferior_event): Clear the step-over info when
9145 trap_expected is cleared.
9146 (resume): Remove now stale comment.
9147 (clear_proceed_status): Clear step-over info.
9148 (proceed): Adjust step-over handling to set or clear the step-over
9149 info instead of removing all breakpoints.
9150 (handle_signal_stop): When setting up a thread-hop, don't remove
9152 (stop_stepping): Clear step-over info.
9153 (keep_going): Adjust step-over handling to set or clear step-over
9154 info and then always inserting breakpoints, instead of removing
9155 all breakpoints when stepping over one.
9157 2014-03-20 Pedro Alves <palves@redhat.com>
9159 * infrun.c (previous_inferior_ptid): Adjust comment.
9160 (deferred_step_ptid): Delete.
9161 (infrun_thread_ptid_changed, prepare_to_proceed)
9162 (init_wait_for_inferior): Adjust.
9163 (handle_signal_stop): Delete deferred_step_ptid handling.
9165 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9168 * defs.h (sync_quit_force_run): New declaration.
9169 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9170 * event-top.c (async_sigterm_handler): New declaration.
9171 (async_sigterm_token): New variable.
9172 (async_init_signals): Create also async_sigterm_token.
9173 (async_sigterm_handler): New function.
9174 (sync_quit_force_run): New variable.
9175 (handle_sigterm): Replace quit_force call by other calls.
9176 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9178 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9180 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9181 offset into SPE pseudo registers.
9183 2014-03-18 Pedro Alves <palves@redhat.com>
9186 * inferior.h (print_stop_event): Declare.
9187 * infrun.c (print_stop_event): New, factored out from ...
9188 (normal_stop): ... this.
9189 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9190 of bpstat_print/print_stack_frame.
9192 2014-03-17 Tom Tromey <tromey@redhat.com>
9194 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9196 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9198 * ada-lang.c (decode_constrained_packed_array): Perform a
9199 minimal coercion for reference with coerce_ref instead of
9202 2014-03-17 Tristan Gingold <gingold@adacore.com>
9204 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9205 (darwin_solib_create_inferior_hook): Emit a warning if version
9208 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9210 * python/py-value.c (get_field_flag): Cast flag_name argument to
9211 PyObject_GetAttrString to support Python 2.4.
9213 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9215 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9216 (Global Maintainers): Remove Jan Kratochvil.
9218 2014-03-14 Pedro Alves <palves@redhat.com>
9220 * inferior.h (terminal_ours_for_output): Rename to ...
9221 (child_terminal_ours_for_output): ... this.
9222 (terminal_save_ours): Rename to ...
9223 (child_terminal_save_ours): ... this.
9224 (terminal_ours): Rename to ...
9225 (child_terminal_ours): ... this.
9226 (terminal_inferior): Rename to ...
9227 (child_terminal_inferior): ... this.
9228 (terminal_init_inferior): Rename to ...
9229 (child_terminal_init_inferior): ... this.
9230 (terminal_init_inferior_with_pgrp): Rename to ...
9231 (child_terminal_init_inferior_with_pgrp): ... this.
9232 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9233 (child_terminal_init_with_pgrp): ... this.
9234 (terminal_save_ours): Rename to ...
9235 (child_terminal_save_ours): ... this.
9236 (terminal_init_inferior): Rename to ...
9237 (child_terminal_init): ... this. Adjust.
9238 (terminal_inferior): Rename to ...
9239 (child_terminal_inferior): ... this.
9240 (terminal_ours_for_output): Rename to ...
9241 (child_terminal_ours_for_output): ... this. Adjust.
9242 (terminal_ours): Rename to ...
9243 (child_terminal_ours): ... this.
9244 (terminal_ours_1): Rename to ...
9245 (child_terminal_ours_1): ... this. Adjust.
9246 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9247 * windows-nat.c (do_initial_windows_stuff): Adjust.
9248 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9249 (gnu_terminal_init): ... this. Adjust.
9250 (gnu_target): Adjust.
9251 * inf-child.c (inf_child_target): Adjust.
9253 2014-03-13 Doug Evans <xdje42@gmail.com>
9256 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9259 2014-03-13 Doug Evans <xdje42@gmail.com>
9261 * value.c (record_latest_value): Call release_value_or_incref
9262 instead of release_value.
9264 2014-03-13 Pedro Alves <palves@redhat.com>
9266 * procfs.c (procfs_target): Don't override to_shortname,
9267 to_longname or to_doc.
9269 2014-03-13 Pedro Alves <palves@redhat.com>
9271 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9272 Unix in user visible strings.
9274 2014-03-12 Stan Shebs <stan@codesourcery.com>
9276 * gdbtypes.h: Annotate comments for Doxygen, add a page
9277 block comment with some general info.
9279 2014-03-12 Pedro Alves <palves@redhat.com>
9281 * infcmd.c (prepare_execution_command): New function, factored out
9282 from several execution commands.
9283 (run_command_1, continue_command, step_1, jump_command)
9284 (signal_command, until_command, advance_command, finish_command)
9285 (attach_command): Use prepare_execution_command.
9287 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9289 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9292 (struct arm_linux_thread_points): Removed.
9293 (struct arm_linux_process_info): New.
9294 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9295 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9296 (arm_linux_find_breakpoints_by_tid): Removed.
9297 (struct arch_lwp_info): New.
9298 (arm_linux_find_process_pid): New functions.
9299 (arm_linux_add_process): New functions.
9300 (arm_linux_process_info_get): New functions.
9301 (arm_linux_forget_process): New function.
9302 (arm_linux_get_debug_reg_state): New function.
9303 (struct update_registers_data): New.
9304 (update_registers_callback): New function.
9305 (arm_linux_insert_hw_breakpoint1): Updated.
9306 (arm_linux_remove_hw_breakpoint1): Updated.
9307 (arm_linux_insert_hw_breakpoint): Updated.
9308 (arm_linux_remove_hw_breakpoint): Updated.
9309 (arm_linux_insert_watchpoint): Updated.
9310 (arm_linux_remove_watchpoint): Updated.
9311 (arm_linux_new_thread): Updated.
9312 (arm_linux_prepare_to_resume): New function.
9313 (arm_linux_new_fork): New function.
9314 (_initialize_arm_linux_nat): Updated.
9316 2014-03-12 Pedro Alves <palves@redhat.com>
9318 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9320 2014-03-12 Tom Tromey <tromey@redhat.com>
9322 * inf-child.c (return_zero): New function.
9323 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9324 * aix-thread.c (aix_thread_inferior_created): New function.
9325 (aix_thread_attach): Remove.
9326 (init_aix_thread_ops): Don't set to_attach.
9327 (_initialize_aix_thread): Register inferior_created observer.
9328 * corelow.c (init_core_ops): Don't set to_attach or
9330 * exec.c (init_exec_ops): Don't set to_attach or
9332 * infcmd.c (run_command_1): Use find_run_target. Make direct
9334 (attach_command): Use find_attach_target. Make direct target
9336 * record-btrace.c (init_record_btrace_ops): Don't set
9338 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9340 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9341 set to_create_inferior.
9342 * target.c (complete_target_initialization): Add assertion.
9343 (target_create_inferior): Remove.
9344 (find_default_attach, find_default_create_inferior): Remove.
9345 (find_attach_target, find_run_target): New functions.
9346 (find_default_is_async_p, find_default_can_async_p)
9347 (target_supports_non_stop, target_attach): Remove.
9348 (init_dummy_target): Don't set to_create_inferior or
9349 to_supports_non_stop.
9350 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9351 TARGET_DEFAULT_FUNC.
9352 <to_create_inferior>: Add comment.
9353 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9354 TARGET_DEFAULT_RETURN.
9355 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9356 (find_attach_target, find_run_target): Declare.
9357 (target_create_inferior): Remove.
9358 (target_has_execution_1): Update comment.
9359 (target_supports_non_stop): Remove.
9360 * target-delegates.c: Rebuild.
9362 2014-03-12 Pedro Alves <palves@redhat.com>
9364 * inf-child.h: Update comment to not mention Unix.
9366 2014-03-12 Pedro Alves <palves@redhat.com>
9368 * inf-child.c: Update top comment to not mention Unix. Add
9369 generic comment describing how this target is meant to be used.
9370 (inf_child_post_attach, inf_child_post_startup_inferior)
9371 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9374 2014-03-12 Pedro Alves <palves@redhat.com>
9376 * nto-procfs.c: Include inf-child.h.
9377 (procfs_ops): Delete global.
9378 (procfs_can_run): Delete method.
9379 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9380 target pointer instead of referencing procfs_ops.
9381 (procfs_prepare_to_store): Delete.
9382 (init_procfs_ops): Delete function.
9383 (procfs_target): New function, based on init_procfs_ops, but
9384 inherit inf_child_target.
9385 (_initialize_procfs): Use procfs_target.
9387 2014-03-12 Pedro Alves <palves@redhat.com>
9389 * windows-nat.c: Include inf-child.h.
9390 (windows_ops): Delete global.
9391 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9393 (init_windows_ops): Delete function.
9394 (windows_target): New function, based on init_windows_ops, but
9395 inherit inf_child_target.
9396 (_initialize_windows_nat): Use windows_target. Install x86
9397 specific target methods here.
9399 2014-03-10 Doug Evans <xdje42@gmail.com>
9401 * guile/guile.c (call_initialize_gdb_module): New function.
9402 (initialize_guile): Replace call to scm_init_guile with call to
9405 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9407 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9408 in call to TYPE_CODE macro.
9410 2014-03-10 Jerome Guitton <guitton@adacore.com>
9412 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9413 Resolve tagged types to full view.
9415 2014-03-10 Hui Zhu <hui@codesourcery.com>
9417 * target.h (target_insert_breakpoint): Remove "hardware" from its
9420 2014-03-07 Doug Evans <dje@google.com>
9422 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9424 2014-03-07 Doug Evans <dje@google.com>
9426 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9427 Remove unused local comp_dir_attr. Assert exactly one of
9428 stub_comp_unit_die, stub_comp_dir is non-NULL.
9430 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9432 * target.h (complete_target_initialization, add_target):
9435 2014-03-07 Pedro Alves <palves@redhat.com>
9437 * go32-nat.c: Include inf-child.h.
9438 (go32_ops): Delete global.
9439 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9441 (go32_create_inferior): Push the passed in target pointer instead
9442 of referencing go32_ops.
9443 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9444 (go32_target): New function, based on init_go32_ops, but inherit
9446 (_initialize_go32_nat): Use go32_target. Move parts of
9449 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9451 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9452 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9453 SYMBOL_VALUE_ADDRESS.
9454 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9456 2014-03-06 Yao Qi <yao@codesourcery.com>
9458 * breakpoint.c (get_tracepoint_by_number): Remove argument
9459 optional_p. All callers updated. Adjust comments. Update
9461 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9463 2014-03-06 Yao Qi <yao@codesourcery.com>
9465 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9466 early if get_number returns zero. Use 'p' instead of 'args'.
9468 2014-03-06 Yao Qi <yao@codesourcery.com>
9470 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9473 2014-03-06 Yao Qi <yao@codesourcery.com>
9475 PR breakpoints/16508
9476 * tracepoint.c (check_trace_running): New function.
9477 (trace_find_command): Move code to check_trace_running and
9478 call check_trace_running.
9479 (trace_find_pc_command): Likewise.
9480 (trace_find_tracepoint_command): Likewise.
9481 (trace_find_line_command): Likewise.
9482 (trace_find_range_command): Likewise.
9483 * tracepoint.h (check_trace_running): Likewise.
9484 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9486 2014-03-06 Yao Qi <yao@codesourcery.com>
9488 * target.h (struct target_ops) <to_traceframe_info>: Use
9489 TARGET_DEFAULT_NORETURN (tcomplain ()).
9490 * target-delegates.c: Regenerated.
9492 2014-03-05 Pedro Alves <palves@redhat.com>
9495 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9496 void. Update comment.
9497 (dcache_xfer_memory): Delete.
9498 (dcache_read_memory_partial): New, based on the read bits of
9500 (dcache_update): Add status parameter. Use ULONGEST for len, and
9501 adjust. Discard cache lines if the reason for the update was
9503 * dcache.h (dcache_xfer_memory): Delete declaration.
9504 (dcache_read_memory_partial): New declaration.
9505 (dcache_update): Update prototype.
9506 * target.c (raw_memory_xfer_partial): Update the dcache here.
9507 (memory_xfer_partial_1): Don't handle dcache writes here.
9509 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9511 * remote-sim.c (gdbsim_load): Add const to prog.
9513 2014-03-03 Tom Tromey <tromey@redhat.com>
9515 * elfread.c (probe_key): Change to bfd_data.
9516 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9517 now per-BFD, not per-objfile.
9518 * stap-probe.c (stap_probe_destroy): Update comment.
9519 (handle_stap_probe): Allocate on the per-BFD obstack.
9521 2014-03-03 Tom Tromey <tromey@redhat.com>
9523 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9524 * breakpoint.c (create_longjmp_master_breakpoint): Use
9526 (add_location_to_breakpoint, bkpt_probe_insert_location)
9527 (bkpt_probe_remove_location): Update.
9528 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9529 * elfread.c (elf_symfile_relocate_probe): Remove.
9530 (elf_probe_fns): Update.
9531 (insert_exception_resume_breakpoint): Change type of "probe"
9532 parameter to bound_probe.
9533 (check_exception_resume): Update.
9534 * objfiles.c (objfile_relocate1): Don't relocate probes.
9535 * probe.c (bound_probe_s): New typedef.
9536 (parse_probes): Use get_probe_address. Set sal's objfile.
9537 (find_probe_by_pc): Return a bound_probe.
9538 (collect_probes): Return a VEC(bound_probe_s).
9539 (compare_probes): Update.
9540 (gen_ui_out_table_header_info): Change type of "probes"
9542 (info_probes_for_ops): Update.
9543 (get_probe_address): New function.
9544 (probe_safe_evaluate_at_pc): Update.
9545 * probe.h (struct probe_ops) <get_probe_address>: New field.
9546 <set_semaphore, clear_semaphore>: Add objfile parameter.
9547 (struct probe) <objfile>: Remove field.
9549 <address>: Update comment.
9550 (struct bound_probe): New.
9551 (find_probe_by_pc): Return a bound_probe.
9552 (get_probe_address): Declare.
9553 * solib-svr4.c (struct probe_and_action) <address>: New field.
9554 (hash_probe_and_action, equal_probe_and_action): Update.
9555 (register_solib_event_probe): Add address parameter.
9556 (solib_event_probe_at): Update.
9557 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9559 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9560 (stap_get_probe_address): New function.
9561 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9562 (compile_probe_arg): Update.
9563 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9565 (handle_stap_probe): Don't relocate the probe.
9566 (stap_relocate): Remove.
9567 (stap_gen_info_probes_table_values): Update.
9568 (stap_probe_ops): Remove stap_relocate.
9569 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9570 (debug_sym_probe_fns): Update.
9571 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9572 * symtab.c (init_sal): Use memset.
9573 * symtab.h (struct symtab_and_line) <objfile>: New field.
9574 * tracepoint.c (start_tracing, stop_tracing): Update.
9576 2014-03-03 Tom Tromey <tromey@redhat.com>
9578 * probe.h (parse_probes, find_probe_by_pc)
9579 (find_probes_in_objfile): Fix comments.
9581 2014-03-02 Doug Evans <xdje42@gmail.com>
9583 * infrun.c (handle_signal_stop): Replace test for
9584 TARGET_WAITKIND_STOPPED with an assert.
9586 2014-03-02 Doug Evans <xdje42@gmail.com>
9588 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9590 2014-03-02 Doug Evans <xdje42@gmail.com>
9592 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9594 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9596 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9598 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9600 * i386obsd-nat.c: Include "obsd-nat.h".
9601 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9603 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9605 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9607 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9609 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9611 * mips64obsd-nat.c: Include "obsd-nath".
9612 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9614 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9616 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9618 * amd64obsd-nat.c: Include "obsd-nat,h.
9619 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9621 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9623 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9625 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9626 (find_overload_match): Update call to find_oload_champ.
9627 (find_oload_champ_namespace_loop): Likewise
9629 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9631 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9633 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9634 * config/sparc/obsd64.mh: New file.
9635 * sparc64obsd-nat.c: New file.
9637 * obsd-nat.h: New file.
9638 * obsd-nat.c: New file.
9639 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9640 (ALLDEPFILES): Add obsd-nat.c.
9642 2014-02-28 Tom Tromey <tromey@redhat.com>
9644 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9645 * cli-out.h (cli_ui_out_impl): Now const.
9646 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9647 * ui-out.c (struct ui_out) <impl>: Now const.
9648 (default_ui_out_impl): Now const.
9649 (ui_out_new): Make 'impl' parameter const.
9650 * ui-out.h (ui_out_new): Update.
9652 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9654 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9656 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9658 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9660 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9662 Additional PR 8882 fix.
9663 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9665 2014-02-27 Pedro Alves <palves@redhat.com>
9667 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9670 2014-02-27 Pedro Alves <palves@redhat.com>
9673 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9674 * nat/linux-waitpid.c: Include string.h.
9675 (status_to_str): Moved here and made extern.
9676 * nat/linux-waitpid.h (status_to_str): New declaration.
9678 2014-02-27 Hui Zhu <hui@codesourcery.com>
9681 * infrun.c (ptid_match): Move ...
9682 * common/ptid.c (ptid_match): ... here.
9683 * inferior.h (ptid_match): Move ...
9684 * common/ptid.h (ptid_match): ... here.
9686 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9688 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9689 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9692 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9694 * obsd-tdep.c (obsd_auxv_parse): New function.
9695 (obsd_init_abi): Set auxv_parse.
9697 * gdbarch.sh (auxv_parse): New.
9698 * gdbarch.h: Regenerated.
9699 * gdbarch.c: Regenerated.
9700 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9702 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9704 * guile/scm-value.c (gdbscm_history_append_x): New function.
9705 (value_functions): Add it.
9707 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9709 * dwarf2read.c (attr_value_as_address): New function.
9710 (dwarf2_find_base_address, read_call_site_scope): Use
9711 attr_value_as_address in place of DW_ADDR.
9712 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9713 the low and high addresses. Slight rework of the handling
9714 of the high pc being a constant form, and limit it to
9715 DWARF verson 4 or higher.
9716 (dwarf2_record_block_ranges): Likewise.
9717 (read_partial_die): Likewise.
9718 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9720 2014-02-26 Tom Tromey <tromey@redhat.com>
9722 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9724 2014-02-26 Tom Tromey <tromey@redhat.com>
9726 * elfread.c (elf_read_minimal_symbols): Return early if
9727 minimal symbols have already been read. Add "ei" parameter.
9728 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9729 * minsyms.c (prim_record_minimal_symbol_full): Update.
9730 * objfiles.h (struct objstats) <n_minsyms>: Move...
9731 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9732 * symmisc.c (print_objfile_statistics): Update.
9734 2014-02-26 Tom Tromey <tromey@redhat.com>
9736 * elfread.c (elf_read_minimal_symbols): New function, from
9738 (elf_symfile_read): Call it.
9740 2014-02-26 Tom Tromey <tromey@redhat.com>
9742 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9743 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9744 (lookup_minimal_symbol_solib_trampoline)
9745 (lookup_minimal_symbol_by_pc_section_1)
9746 (lookup_minimal_symbol_and_objfile): Update.
9747 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9748 Don't allocate a minimal symbol if minsyms have already been read.
9749 (build_minimal_symbol_hash_tables): Update.
9750 (install_minimal_symbols): Do nothing if minsyms already read.
9751 Use the per-BFD obstack.
9752 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9753 * objfiles.c (allocate_objfile): Call
9754 terminate_minimal_symbol_table later.
9755 (have_minimal_symbols): Update.
9756 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9757 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9758 Move from struct objfile.
9759 <minsyms_read>: New field.
9760 (struct objfile) <msymbols, minimal_symbol_count,
9761 msymbol_hash, msymbol_demangled_hash>: Move.
9762 (ALL_OBJFILE_MSYMBOLS): Update.
9763 * symfile.c (read_symbols): Set minsyms_read.
9764 (reread_symbols): Update.
9765 * symmisc.c (dump_objfile, dump_msymbols): Update.
9767 2014-02-26 Tom Tromey <tromey@redhat.com>
9769 * minsyms.c (msymbols_sort): Remove.
9770 * minsyms.h (msymbols_sort): Remove.
9771 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9772 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9773 * elfread.c (elf_symtab_read): Don't add section offsets.
9774 * xcoffread.c (record_minimal_symbol): Don't add section offset
9775 to minimal symbol address.
9776 * somread.c (text_offset, data_offset): Remove.
9777 (som_symtab_read): Don't add section offsets to minimal symbol
9779 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9780 Don't add section offsets to minimal symbols.
9781 * coffread.c (coff_symtab_read): Don't add section offsets
9782 to minimal symbol addresses.
9783 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9784 to minimal symbol addresses.
9785 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9786 section offset to minimal symbol addresses.
9787 * mdebugread.c (parse_partial_symbols): Don't add section
9788 offset to minimal symbol addresses.
9789 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9790 offset to minimal symbol addresses.
9792 2014-02-26 Tom Tromey <tromey@redhat.com>
9794 * ada-lang.c (ada_main_name): Update.
9795 (ada_add_standard_exceptions): Update.
9796 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9797 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9798 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9799 * auxv.c (ld_so_xfer_auxv): Update.
9800 * avr-tdep.c (avr_scan_prologue): Update.
9801 * ax-gdb.c (gen_var_ref): Update.
9802 * blockframe.c (get_pc_function_start)
9803 (find_pc_partial_function_gnu_ifunc): Update.
9804 * breakpoint.c (create_overlay_event_breakpoint)
9805 (create_longjmp_master_breakpoint)
9806 (create_std_terminate_master_breakpoint)
9807 (create_exception_master_breakpoint): Update.
9808 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9809 * c-valprint.c (c_val_print): Update.
9810 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9811 * common/agent.c (agent_look_up_symbols): Update.
9812 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9813 * dwarf2loc.c (call_site_to_target_addr): Update.
9814 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9815 * elfread.c (elf_gnu_ifunc_record_cache)
9816 (elf_gnu_ifunc_resolve_by_got): Update.
9817 * findvar.c (default_read_var_value): Update.
9818 * frame.c (inside_main_func): Update.
9819 * frv-tdep.c (frv_frame_this_id): Update.
9820 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9821 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9823 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9824 (hppa_hpux_find_dummy_bpaddr): Update.
9825 * hppa-tdep.c (hppa_symbol_address): Update.
9826 * infcmd.c (until_next_command): Update.
9827 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9829 * linespec.c (minsym_found, add_minsym): Update.
9830 * linux-nat.c (get_signo): Update.
9831 * linux-thread-db.c (inferior_has_bug): Update.
9832 * m32c-tdep.c (m32c_return_value)
9833 (m32c_m16c_address_to_pointer): Update.
9834 * m32r-tdep.c (m32r_frame_this_id): Update.
9835 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9836 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9837 * maint.c (maintenance_translate_address): Update.
9838 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9839 (frob_address): New function.
9840 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9841 frob_address. Rename parameter to "pc_in".
9842 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9844 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9846 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9847 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9848 * objc-lang.c (find_objc_msgsend): Update.
9849 * objfiles.c (objfile_relocate1): Update.
9850 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9851 * p-valprint.c (pascal_val_print): Update.
9852 * parse.c (write_exp_msymbol): Update.
9853 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9854 (ppc_elfv2_skip_entrypoint): Update.
9855 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9856 * printcmd.c (build_address_symbolic, msym_info)
9857 (address_info): Update.
9858 * proc-service.c (ps_pglobal_lookup): Update.
9859 * psymtab.c (find_pc_sect_psymtab_closer)
9860 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9861 Change msymbol parameter to bound_minimal_symbol.
9862 * ravenscar-thread.c (get_running_thread_id): Update.
9863 * remote.c (remote_check_symbols): Update.
9864 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9866 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9867 * solib-dsbt.c (lm_base): Update.
9868 * solib-frv.c (lm_base, main_got): Update.
9869 * solib-irix.c (locate_base): Update.
9870 * solib-som.c (som_solib_create_inferior_hook)
9871 (link_map_start): Update.
9872 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9873 * solib-svr4.c (elf_locate_base, enable_break): Update.
9874 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9875 (flush_ea_cache): Update.
9876 * stabsread.c (define_symbol, scan_file_globals): Update.
9877 * stack.c (find_frame_funname): Update.
9878 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9879 (debug_qf_find_pc_sect_symtab): Update.
9880 * symfile.c (simple_read_overlay_table)
9881 (simple_overlay_update): Update.
9882 * symfile.h (struct quick_symbol_functions)
9883 <find_pc_sect_symtab>: Change type of msymbol to
9884 bound_minimal_symbol.
9885 * symmisc.c (dump_msymbols): Update.
9886 * symtab.c (find_pc_sect_symtab_via_partial)
9887 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9888 (search_symbols, print_msymbol_info): Update.
9889 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9890 (MSYMBOL_VALUE_ADDRESS): Redefine.
9891 (BMSYMBOL_VALUE_ADDRESS): New macro.
9892 * tracepoint.c (scope_info): Update.
9893 * tui/tui-disasm.c (tui_find_disassembly_address)
9894 (tui_get_begin_asm_address): Update.
9895 * valops.c (find_function_in_inferior): Update.
9896 * value.c (value_static_field, value_fn_field): Update.
9898 2014-02-26 Tom Tromey <tromey@redhat.com>
9900 * ada-lang.c (ada_update_initial_language): Update.
9901 (ada_main_name, ada_has_this_exception_support): Update.
9902 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9903 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9904 * arm-tdep.c (arm_skip_stub): Update.
9905 * auxv.c (ld_so_xfer_auxv): Update.
9906 * avr-tdep.c (avr_scan_prologue): Update.
9907 * ax-gdb.c (gen_var_ref): Update.
9908 * breakpoint.c (struct breakpoint_objfile_data)
9909 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9910 type to bound_minimal_symbol.
9911 (create_overlay_event_breakpoint)
9912 (create_longjmp_master_breakpoint)
9913 (create_std_terminate_master_breakpoint)
9914 (create_exception_master_breakpoint): Update.
9915 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9916 * c-exp.y (classify_name): Update.
9917 * coffread.c (coff_symfile_read): Update.
9918 * common/agent.c (agent_look_up_symbols): Update.
9919 * d-lang.c (d_main_name): Update.
9920 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9921 * dec-thread.c (enable_dec_thread): Update.
9922 * dwarf2loc.c (call_site_to_target_addr): Update.
9923 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9924 * eval.c (evaluate_subexp_standard): Update.
9925 * findvar.c (struct minsym_lookup_data) <result>: Change type
9926 to bound_minimal_symbol.
9928 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9929 * frame.c (inside_main_func): Update.
9930 * frv-tdep.c (frv_frame_this_id): Update.
9931 * gcore.c (call_target_sbrk): Update.
9932 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9933 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9935 * go-lang.c (go_main_name): Update.
9936 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9937 (hppa_hpux_find_import_stub_for_addr): Update.
9938 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9939 Update. Change return type.
9940 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9942 * jit.c (jit_breakpoint_re_set_internal): Update.
9943 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9945 * linux-nat.c (get_signo): Update.
9946 * linux-thread-db.c (inferior_has_bug): Update
9947 * m32c-tdep.c (m32c_return_value)
9948 (m32c_m16c_address_to_pointer): Update.
9949 * m32r-tdep.c (m32r_frame_this_id): Update.
9950 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9951 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9952 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9953 lookup_minimal_symbol. Change return type.
9954 (lookup_minimal_symbol): Remove.
9955 (lookup_bound_minimal_symbol): Update.
9956 (lookup_minimal_symbol_text): Change return type.
9957 (lookup_minimal_symbol_solib_trampoline): Change return type.
9958 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9959 (lookup_minimal_symbol_solib_trampoline): Change return type.
9960 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9961 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9962 (value_nsstring, find_imps): Update.
9963 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9964 * p-lang.c (pascal_main_name): Update.
9965 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9966 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9967 * proc-service.c (ps_pglobal_lookup): Update.
9968 * ravenscar-thread.c (get_running_thread_msymbol): Change
9970 (has_ravenscar_runtime, get_running_thread_id): Update.
9971 * remote.c (remote_check_symbols): Update.
9972 * sol-thread.c (ps_pglobal_lookup): Update.
9973 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9974 * solib-dsbt.c (lm_base): Update.
9975 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9977 * solib-irix.c (locate_base): Update.
9978 * solib-som.c (som_solib_create_inferior_hook)
9979 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9981 * solib-spu.c (spu_enable_break): Update.
9982 * solib-svr4.c (elf_locate_base, enable_break): Update.
9983 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9984 (flush_ea_cache): Update.
9985 * stabsread.c (define_symbol): Update.
9986 * symfile.c (simple_read_overlay_table): Update.
9987 * symtab.c (find_pc_sect_line): Update.
9988 * tracepoint.c (scope_info): Update.
9989 * tui-disasm.c (tui_get_begin_asm_address): Update.
9990 * value.c (value_static_field): Update.
9992 2014-02-26 Tom Tromey <tromey@redhat.com>
9994 * minsyms.c (prim_record_minimal_symbol_full): Use
9995 SET_MSYMBOL_VALUE_ADDRESS.
9996 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9997 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9998 SET_MSYMBOL_VALUE_ADDRESS.
9999 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10000 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10002 2014-02-26 Tom Tromey <tromey@redhat.com>
10004 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10005 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10006 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10007 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10008 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10009 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10010 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10011 * ada-lang.c (ada_main_name): Update.
10012 (ada_lookup_simple_minsym): Update.
10013 (ada_make_symbol_completion_list): Update.
10014 (ada_add_standard_exceptions): Update.
10015 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10016 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10017 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10018 * arm-tdep.c (skip_prologue_function): Update.
10019 (arm_skip_stack_protector, arm_skip_stub): Update.
10020 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10021 (arm_wince_skip_main_prologue): Update.
10022 * auxv.c (ld_so_xfer_auxv): Update.
10023 * avr-tdep.c (avr_scan_prologue): Update.
10024 * ax-gdb.c (gen_var_ref): Update.
10025 * block.c (call_site_for_pc): Update.
10026 * blockframe.c (get_pc_function_start): Update.
10027 (find_pc_partial_function_gnu_ifunc): Update.
10028 * breakpoint.c (create_overlay_event_breakpoint): Update.
10029 (create_longjmp_master_breakpoint): Update.
10030 (create_std_terminate_master_breakpoint): Update.
10031 (create_exception_master_breakpoint): Update.
10032 (resolve_sal_pc): Update.
10033 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10034 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10036 * c-valprint.c (c_val_print): Update.
10037 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10038 * coffread.c (coff_symfile_read): Update.
10039 * common/agent.c (agent_look_up_symbols): Update.
10040 * dbxread.c (find_stab_function_addr): Update.
10041 (end_psymtab): Update.
10042 * dwarf2loc.c (call_site_to_target_addr): Update.
10043 (func_verify_no_selftailcall): Update.
10044 (tailcall_dump): Update.
10045 (call_site_find_chain_1): Update.
10046 (dwarf_expr_reg_to_entry_parameter): Update.
10047 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10048 (elf_gnu_ifunc_resolve_by_got): Update.
10049 * f-valprint.c (info_common_command): Update.
10050 * findvar.c (read_var_value): Update.
10051 * frame.c (get_prev_frame_1): Update.
10052 (inside_main_func): Update.
10053 * frv-tdep.c (frv_skip_main_prologue): Update.
10054 (frv_frame_this_id): Update.
10055 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10056 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10057 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10058 (gnuv3_skip_trampoline): Update.
10059 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10060 (hppa64_hpux_in_solib_call_trampoline): Update.
10061 (hppa_hpux_skip_trampoline_code): Update.
10062 (hppa64_hpux_search_dummy_call_sequence): Update.
10063 (hppa_hpux_find_import_stub_for_addr): Update.
10064 (hppa_hpux_find_dummy_bpaddr): Update.
10065 * hppa-tdep.c (hppa_symbol_address)
10066 (hppa_lookup_stub_minimal_symbol): Update.
10067 * i386-tdep.c (i386_skip_main_prologue): Update.
10068 (i386_pe_skip_trampoline_code): Update.
10069 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10070 * infcall.c (get_function_name): Update.
10071 * infcmd.c (until_next_command): Update.
10072 * jit.c (jit_breakpoint_re_set_internal): Update.
10073 (jit_inferior_init): Update.
10074 * linespec.c (minsym_found): Update.
10075 (add_minsym): Update.
10076 * linux-fork.c (info_checkpoints_command): Update.
10077 * linux-nat.c (get_signo): Update.
10078 * linux-thread-db.c (inferior_has_bug): Update.
10079 * m32c-tdep.c (m32c_return_value): Update.
10080 (m32c_m16c_address_to_pointer): Update.
10081 (m32c_m16c_pointer_to_address): Update.
10082 * m32r-tdep.c (m32r_frame_this_id): Update.
10083 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10084 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10085 * maint.c (maintenance_translate_address): Update.
10086 * minsyms.c (add_minsym_to_hash_table): Update.
10087 (add_minsym_to_demangled_hash_table): Update.
10088 (msymbol_objfile): Update.
10089 (lookup_minimal_symbol): Update.
10090 (iterate_over_minimal_symbols): Update.
10091 (lookup_minimal_symbol_text): Update.
10092 (lookup_minimal_symbol_by_pc_name): Update.
10093 (lookup_minimal_symbol_solib_trampoline): Update.
10094 (lookup_minimal_symbol_by_pc_section_1): Update.
10095 (lookup_minimal_symbol_and_objfile): Update.
10096 (prim_record_minimal_symbol_full): Update.
10097 (compare_minimal_symbols): Update.
10098 (compact_minimal_symbols): Update.
10099 (build_minimal_symbol_hash_tables): Update.
10100 (install_minimal_symbols): Update.
10101 (terminate_minimal_symbol_table): Update.
10102 (find_solib_trampoline_target): Update.
10103 (minimal_symbol_upper_bound): Update.
10104 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10105 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10106 (mips_skip_pic_trampoline_code): Update.
10107 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10108 * objc-lang.c (selectors_info): Update.
10109 (classes_info): Update.
10110 (find_methods): Update.
10111 (find_imps): Update.
10112 (find_objc_msgsend): Update.
10113 * objfiles.c (objfile_relocate1): Update.
10114 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10115 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10116 * p-valprint.c (pascal_val_print): Update.
10117 * parse.c (write_exp_msymbol): Update.
10118 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10119 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10120 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10121 * printcmd.c (build_address_symbolic): Update.
10122 (sym_info): Update.
10123 (address_info): Update.
10124 * proc-service.c (ps_pglobal_lookup): Update.
10125 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10126 (find_pc_sect_psymtab): Update.
10127 * python/py-framefilter.c (py_print_frame): Update.
10128 * ravenscar-thread.c (get_running_thread_id): Update.
10129 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10131 * remote.c (remote_check_symbols): Update.
10132 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10133 (rs6000_skip_trampoline_code): Update.
10134 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10135 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10136 * solib-dsbt.c (lm_base): Update.
10137 * solib-frv.c (lm_base): Update.
10138 (main_got): Update.
10139 * solib-irix.c (locate_base): Update.
10140 * solib-som.c (som_solib_create_inferior_hook): Update.
10141 (som_solib_desire_dynamic_linker_symbols): Update.
10142 (link_map_start): Update.
10143 * solib-spu.c (spu_enable_break): Update.
10144 (ocl_enable_break): Update.
10145 * solib-svr4.c (elf_locate_base): Update.
10146 (enable_break): Update.
10147 * spu-tdep.c (spu_get_overlay_table): Update.
10148 (spu_catch_start): Update.
10149 (flush_ea_cache): Update.
10150 * stabsread.c (define_symbol): Update.
10151 (scan_file_globals): Update.
10152 * stack.c (find_frame_funname): Update.
10153 (frame_info): Update.
10154 * symfile.c (simple_read_overlay_table): Update.
10155 (simple_overlay_update): Update.
10156 * symmisc.c (dump_msymbols): Update.
10157 * symtab.c (fixup_section): Update.
10158 (find_pc_sect_line): Update.
10159 (skip_prologue_sal): Update.
10160 (search_symbols): Update.
10161 (print_msymbol_info): Update.
10162 (rbreak_command): Update.
10163 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10164 (completion_list_objc_symbol): Update.
10165 (default_make_symbol_completion_list_break_on): Update.
10166 * tracepoint.c (scope_info): Update.
10167 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10168 (tui_get_begin_asm_address): Update.
10169 * valops.c (find_function_in_inferior): Update.
10170 * value.c (value_static_field): Update.
10171 (value_fn_field): Update.
10173 2014-02-26 Tom Tromey <tromey@redhat.com>
10175 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10176 bound minimal symbols. Move code that knows about minsym
10178 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10180 * minsyms.h (minimal_symbol_upper_bound): Declare.
10181 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10182 minimal_symbol_upper_bound.
10184 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10186 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10187 Use the type's name if its basic type does not have a tag.
10189 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10191 * dwarf2read.c (read_subrange_type): Add comment.
10193 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10195 * dwarf2read.c (update_enumeration_type_from_children): New
10196 function, mostly extracted from process_structure_scope.
10197 (read_enumeration_type): Call update_enumeration_type_from_children.
10198 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10199 and flag_flag_enum fields.
10201 2014-02-26 Pedro Alves <palves@redhat.com>
10203 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10204 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10205 to_xfer_partial method.
10207 2014-02-26 Pedro Alves <palves@redhat.com>
10209 * target.c (complete_target_initialization): Don't install
10210 default_xfer_partial as to_xfer_partial hook.
10211 (nomemory): Delete.
10212 (update_current_target): Don't INHERIT nor de_fault
10213 deprecated_xfer_memory. Delete de_fault macro.
10214 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10215 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10216 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10219 2014-02-26 Pedro Alves <palves@redhat.com>
10221 * go32-nat.c (my_write_child): New function.
10222 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10223 (go32_xfer_partial): New function.
10224 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10225 Instead install a to_xfer_partial hook.
10227 2014-02-26 Pedro Alves <palves@redhat.com>
10229 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10230 to_xfer_partial helper. Rewrite.
10231 (procfs_xfer_partial): New function.
10232 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10233 Install a to_xfer_partial hook.
10235 2014-02-26 Pedro Alves <palves@redhat.com>
10237 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10238 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10239 (m32r_xfer_partial): New function.
10240 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10241 Install a to_xfer_partial hook.
10243 2014-02-26 Pedro Alves <palves@redhat.com>
10245 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10247 (mips_xfer_partial): New function.
10248 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10249 hook. Install a to_xfer_partial hook.
10251 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10253 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10254 * gdbtypes.c (create_array_type_with_stride): New function,
10255 renaming create_array_type, but with an added parameter
10256 called "bit_stride".
10257 (create_array_type): Re-implement using
10258 create_array_type_with_stride.
10259 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10260 and DW_AT_bit_stride attributes.
10262 2014-02-26 Pedro Alves <palves@redhat.com>
10264 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10265 task-specific breakpoints.
10267 2014-02-25 Pedro Alves <palves@redhat.com>
10269 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10270 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10272 2014-02-25 Stan Shebs <stan@codesourcery.com>
10274 * defs.h: Annotate comments for Doxygen.
10276 2014-02-25 Tom Tromey <tromey@redhat.com>
10278 * target.h (target_ignore): Don't declare.
10279 * target.c (target_ignore): Remove.
10281 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10284 * auto-load.c (auto_load_objfile_script_1): Change filename to
10287 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10289 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10290 documentation. Adjust prototype to match the target_ops
10291 to_xfer_partial method. Adjust implementation accordingly.
10293 2014-02-25 Hui Zhu <hui@codesourcery.com>
10295 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10296 to_traceframe_info.
10298 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10300 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10301 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10302 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10303 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10304 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10305 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10306 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10307 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10309 (rl78_register_type): Use a data pointer type for SP and
10310 new pseudo registers mentioned above. Use a 16 bit integer
10311 type for all other register pairs.
10312 (rl78_register_name, rl78_g10_register_name): Update for
10313 new pseudo registers.
10314 (rl78_pseudo_register_read): Likewise.
10315 (rl78_pseudo_register_write): Likewise.
10316 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10317 to the newly added pseudo registers.
10319 2014-02-24 Doug Evans <dje@google.com>
10321 * value.c (record_latest_value): Fix comment.
10322 * printcmd.c (print_command_1): Remove code to handle -1 return from
10323 record_latest_value.
10325 2014-02-24 Pedro Alves <palves@redhat.com>
10327 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10328 deprecated_xfer_memory hook.
10329 (procfs_xfer_partial): Call procfs_xfer_memory instead
10330 of the deprecated_xfer_memory target hook.
10331 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10334 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10336 * windows-nat.c (windows_xfer_shared_libraries): Return
10337 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10338 requested object is TARGET_OBJECT_LIBRARIES.
10340 2014-02-24 Yao Qi <yao@codesourcery.com>
10342 * target.h (enum target_xfer_status)
10343 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10344 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10346 * corefile.c (memory_error_message): User updated.
10347 * exec.c (section_table_read_available_memory): Likewise.
10348 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10349 * target.c (target_xfer_status_to_string): Likewise.
10350 (raw_memory_xfer_partial): Likewise.
10351 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10352 * valops.c (read_value_memory): Likewise.
10353 * exec.h: Update comments.
10355 2014-02-24 Yao Qi <yao@codesourcery.com>
10357 * target.c (target_xfer_status_to_string): Rename argument err
10359 * target.h (target_xfer_status_to_string): Update declaration.
10360 Replace target_xfer_error_to_string with
10361 target_xfer_status_to_string in comment.
10363 2014-02-24 Yao Qi <yao@codesourcery.com>
10365 * mips-linux-nat.c (super_close): Update its type.
10366 (mips_linux_close): Pass 'self' to super_close.
10368 2014-02-24 Yao Qi <yao@codesourcery.com>
10370 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10371 * corefile.c (read_memory): Adjusted.
10372 * target.c (target_write_with_progress): Adjusted.
10374 2014-02-23 Yao Qi <yao@codesourcery.com>
10376 Revert two patches:
10378 2013-10-25 Yao Qi <yao@codesourcery.com>
10380 * remote.c (remote_traceframe_info): Return early if
10381 traceframe is not selected.
10383 2013-07-19 Yao Qi <yao@codesourcery.com>
10385 * target.c (update_current_target): Change the default action
10386 of 'to_traceframe_info' from tcomplain to return_zero.
10387 * target.h (struct target_ops) <to_traceframe_info>: Add more
10390 2014-02-23 Yao Qi <yao@codesourcery.com>
10392 * valops.c (read_value_memory): Rewrite it. Call
10393 target_xfer_partial in a loop.
10394 * exec.h (section_table_available_memory): Remove declaration.
10395 Move comments to ...
10396 * exec.c (section_table_available_memory): ... here. Make it
10399 2014-02-23 Yao Qi <yao@codesourcery.com>
10401 * exec.c (section_table_read_available_memory): New function.
10402 * exec.h (section_table_read_available_memory): Declare.
10403 * ctf.c (ctf_xfer_partial): Call
10404 section_table_read_available_memory.
10405 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10407 2014-02-23 Yao Qi <yao@codesourcery.com>
10409 * ctf.c (ctf_xfer_partial): Move code to ...
10410 * exec.c (exec_read_partial_read_only): ... it. New function.
10411 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10412 * tracefile.c: Include "exec.h".
10413 * exec.h (exec_read_partial_read_only): Declare.
10415 2014-02-23 Yao Qi <yao@codesourcery.com>
10417 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10418 (tfile_has_memory): Remove.
10419 (init_tfile_ops): Don't set fields to_has_all_memory and
10420 to_has_memory of tfile_ops.
10421 * tracefile.c (tracefile_has_all_memory): New function.
10422 (tracefile_has_memory): New function.
10423 (init_tracefile_ops): Initialize fields to_has_all_memory and
10424 to_has_memory of 'ops'.
10426 2014-02-23 Yao Qi <yao@codesourcery.com>
10428 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10429 (ctf_thread_alive, ctf_get_trace_status): Remove.
10430 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10431 init_tracefile_ops.
10432 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10433 (tfile_has_stack, tfile_has_registers): Remove.
10434 (tfile_thread_alive): Remove.
10435 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10436 init_tracefile_ops.
10437 * tracefile.c (tracefile_has_stack): New function.
10438 (tracefile_has_registers): New function.
10439 (tracefile_thread_alive): New function.
10440 (tracefile_get_trace_status): New function.
10441 (init_tracefile_ops): New function.
10442 * tracefile.h (init_tracefile_ops): Declare.
10444 2014-02-23 Yao Qi <yao@codesourcery.com>
10446 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10447 (O_LARGEFILE): Likewise.
10448 (tfile_ops): Likewise.
10449 (TRACE_HEADER_SIZE): Likewise.
10450 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10451 (cur_data_size): Likewise.
10452 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10453 (tfile_close, tfile_files_info): Likewise.
10454 (tfile_get_trace_status): Likewise.
10455 (tfile_get_tracepoint_status): Likewise.
10456 (tfile_get_traceframe_address): Likewise.
10457 (tfile_trace_find, match_blocktype): Likewise.
10458 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10459 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10460 (tfile_get_trace_state_variable_value): Likewise.
10461 (tfile_has_all_memory, tfile_has_memory): Likewise.
10462 (tfile_has_stack, tfile_has_registers): Likewise.
10463 (tfile_thread_alive, build_traceframe_info): Likewise.
10464 (tfile_traceframe_info, init_tfile_ops): Likewise.
10465 (_initialize_tracepoint): Don't call init_tfile_ops
10466 and add_target_with_completer.
10467 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10468 exec.h, completer.h and filenames.h.
10469 (_initialize_tracefile_tfile): New function.
10471 2014-02-23 Yao Qi <yao@codesourcery.com>
10473 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10475 (HFILES_NO_SRCDIR): Add tracefile.h.
10476 * ctf.c: Include "tracefile.h".
10477 * tracefile.h: New file.
10478 * tracefile.c: New file
10479 * tracefile-tfile.c: New file.
10480 * tracepoint.c: Include "tracefile.h".
10481 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10482 (stop_reason_names): Add const.
10483 (trace_file_writer_xfree): Move it to tracefile.c.
10484 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10485 (trace_save_ctf): Likewise.
10486 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10487 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10488 (tfile_write_header, tfile_write_regblock_type): Likewise.
10489 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10490 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10491 (tfile_write_raw_data, tfile_end): Likewise.
10492 (tfile_trace_file_writer_new): Likewise.
10493 (free_uploaded_tp): Make it extern.
10494 (free_uploaded_tsv): Make it extern.
10495 (_initialize_tracepoint): Move code to register command 'tsave'
10497 * tracepoint.h (stop_reason_names): Declare.
10498 (struct trace_frame_write_ops): Move it to tracefile.h.
10499 (struct trace_file_write_ops): Likewise.
10500 (struct trace_file_writer): Likewise.
10501 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10503 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10506 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10508 (get_cores_used_by_process): New parameter num_cores, use it.
10509 (linux_xfer_osdata_processes): Pass num_cores to it.
10510 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10513 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10515 * target.c (memory_xfer_partial): Fix length arg in call to
10516 breakpoint_xfer_memory.
10518 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10521 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10522 number comes after the + or - signs. Adjust length of register
10523 name to be extracted.
10525 2014-02-20 Tom Tromey <tromey@redhat.com>
10527 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10528 (ada_varobj_ops): Mark "extern".
10530 2014-02-20 Tom Tromey <tromey@redhat.com>
10532 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10534 2014-02-20 Doug Evans <xdje42@gmail.com>
10536 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10537 All callers updated.
10538 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10539 All callers updated.
10540 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10541 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10543 2014-02-20 lin zuojian <manjian2006@gmail.com>
10544 Joel Brobecker <brobecker@adacore.com>
10545 Doug Evans <xdje42@gmail.com>
10548 * dwarf2read.c (struct die_info): New member in_process.
10549 (reset_die_in_process): New function.
10550 (process_die): Set it at the start, reset when returning.
10551 (inherit_abstract_dies): Only call process_die if origin_child_die
10552 not already being processed.
10554 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10556 * windows-nat.c (handle_unload_dll): Add function documentation.
10557 (do_initial_windows_stuff): Add comment explaining why we wait
10558 until after inferior initialization has finished before
10559 processing all DLLs.
10561 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10563 * windows-nat.c (get_module_name): Delete.
10564 (windows_get_exec_module_filename): New function, mostly
10565 inspired from get_module_name.
10566 (windows_pid_to_exec_file): Replace call to get_module_name
10567 by call to windows_get_exec_module_filename.
10569 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10571 * windows-nat.c (handle_load_dll): Rewrite this function's
10572 introductory comment. Remove code using get_module_name
10573 to get the DLL's name.
10575 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10577 * windows-nat.c (get_windows_debug_event): Ignore
10578 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10579 if windows_initialization_done == 0.
10580 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10581 Adjust implementation to always load all DLLs.
10582 (do_initial_windows_stuff): Replace call to
10583 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10585 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10587 * windows-nat.c (_initialize_windows_nat): Deprecate the
10588 "dll-symbols" command. Turn the "add-shared-symbol-files"
10589 and "assf" aliases into commands, and deprecate them as well.
10590 * NEWS: Add entry explaining that "dll-symbols" and its two
10591 aliases are now deprecated.
10593 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10595 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10596 new-line in debug string. Remove trailing spaces.
10598 2014-02-19 Stan Shebs <stan@codesourcery.com>
10600 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10602 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10604 * NEWS: Add entry for the new feature
10605 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10608 2014-02-19 Stan Shebs <stan@codesourcery.com>
10610 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10612 2014-02-19 Pedro Alves <palves@redhat.com>
10614 * common/ptid.h (struct ptid): Mention that process_stratum
10615 targets should prefer ptid.lwp.
10617 2014-02-19 Pedro Alves <palves@redhat.com>
10619 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10620 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10621 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10622 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10623 store remote thread ids rather than ptid.tid.
10624 (_initialize_remote): Adjust.
10626 2014-02-19 Tom Tromey <tromey@redhat.com>
10628 * target.c (target_get_unwinder): Rewrite.
10629 (target_get_tailcall_unwinder): Rewrite.
10630 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10631 (record_btrace_to_get_tailcall_unwinder): New function.
10632 (init_record_btrace_ops): Update.
10633 * target.h (struct target_ops) <to_get_unwinder,
10634 to_get_tailcall_unwinder>: Now function pointers. Use
10635 TARGET_DEFAULT_RETURN.
10637 2014-02-19 Tom Tromey <tromey@redhat.com>
10639 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10641 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10643 2014-02-19 Tom Tromey <tromey@redhat.com>
10645 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10647 * target-delegates.c: Rebuild.
10648 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10649 TARGET_DEFAULT_FUNC.
10650 * target.c (default_target_decr_pc_after_break): Rename from
10651 forward_target_decr_pc_after_break. Simplify.
10652 (target_decr_pc_after_break): Rely on delegation.
10654 2014-02-19 Tom Tromey <tromey@redhat.com>
10656 * target.c (update_current_target): Do not INHERIT to_doc or
10657 to_magic. Do not de_fault to_open or to_close.
10659 2014-02-19 Tom Tromey <tromey@redhat.com>
10661 * gcore.h (objfile_find_memory_regions): Declare.
10662 * gcore.c (objfile_find_memory_regions): No longer static. Add
10664 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10665 * exec.c: Include gcore.h.
10666 (exec_set_find_memory_regions): Remove.
10667 (exec_find_memory_regions): Remove.
10668 (exec_do_find_memory_regions): Remove.
10669 (init_exec_ops): Update.
10670 * defs.h (exec_set_find_memory_regions): Remove.
10672 2014-02-19 Tom Tromey <tromey@redhat.com>
10674 * target-delegates.c: Rebuild.
10675 * target.h (struct target_ops) <to_extra_thread_info,
10676 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10677 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10678 not 0, in TARGET_DEFAULT_RETURN.
10680 2014-02-19 Tom Tromey <tromey@redhat.com>
10682 * target.c (complete_target_initialization): Remove casts. Use
10683 return_zero_has_execution.
10684 (return_zero): Add "ignore" argument.
10685 (return_zero_has_execution): New function.
10686 (init_dummy_target): Remove casts. Use
10687 return_zero_has_execution.
10689 2014-02-19 Tom Tromey <tromey@redhat.com>
10691 * target.c (update_current_target): Update comments. Do not
10692 INHERIT to_stratum.
10694 2014-02-19 Tom Tromey <tromey@redhat.com>
10696 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10698 * corelow.c (core_read_description): Delegate when needed.
10699 * remote.c (remote_read_description): Delegate when needed.
10700 * target-delegates.c: Rebuild.
10701 * target.c (target_read_description): Rewrite.
10702 * target.h (struct target_ops) <to_read_description>: Update
10703 comment. Use TARGET_DEFAULT_RETURN.
10705 2014-02-19 Tom Tromey <tromey@redhat.com>
10707 * target-delegates.c: Rebuild.
10708 * target.c (update_current_target): Don't inherit or default
10710 (find_default_run_target): Check against delegate_can_run.
10711 * target.h (struct target_ops) <to_can_run>: Use
10712 TARGET_DEFAULT_RETURN.
10714 2014-02-19 Tom Tromey <tromey@redhat.com>
10716 * target-delegates.c: Rebuild.
10717 * target.c (target_disconnect): Unconditionally delegate.
10718 * target.h (struct target_ops) <to_disconnect>: Use
10719 TARGET_DEFAULT_NORETURN.
10721 2014-02-19 Tom Tromey <tromey@redhat.com>
10723 * record.c (record_stop): Unconditionally delegate.
10724 * target-delegates.c: Rebuild.
10725 * target.c (target_stop_recording): Unconditionally delegate.
10726 * target.h (struct target_ops) <to_stop_recording>: Use
10727 TARGET_DEFAULT_IGNORE.
10729 2014-02-19 Tom Tromey <tromey@redhat.com>
10731 * target-delegates.c: Rebuild.
10732 * target.c (target_enable_btrace): Unconditionally delegate.
10733 * target.h (struct target_ops) <to_enable_btrace>: Use
10734 TARGET_DEFAULT_NORETURN.
10736 2014-02-19 Tom Tromey <tromey@redhat.com>
10738 * target-delegates.c: Rebuild.
10739 * target.c (target_read_btrace): Unconditionally delegate.
10740 * target.h (struct target_ops) <to_read_btrace>: Use
10741 TARGET_DEFAULT_NORETURN.
10743 2014-02-19 Tom Tromey <tromey@redhat.com>
10745 * target-delegates.c: Rebuild.
10746 * target.c (target_teardown_btrace): Unconditionally delegate.
10747 * target.h (struct target_ops) <to_teardown_btrace>: Use
10748 TARGET_DEFAULT_NORETURN.
10750 2014-02-19 Tom Tromey <tromey@redhat.com>
10752 * target-delegates.c: Rebuild.
10753 * target.c (target_disable_btrace): Unconditionally delegate.
10754 * target.h (struct target_ops) <to_disable_btrace>: Use
10755 TARGET_DEFAULT_NORETURN.
10757 2014-02-19 Tom Tromey <tromey@redhat.com>
10759 * target-delegates.c: Rebuild.
10760 * target.c (default_search_memory): New function.
10761 (simple_search_memory): Update comment.
10762 (target_search_memory): Unconditionally delegate.
10763 * target.h (struct target_ops) <to_search_memory>: Use
10764 TARGET_DEFAULT_FUNC.
10766 2014-02-19 Tom Tromey <tromey@redhat.com>
10768 * auxv.c (default_auxv_parse): No longer static.
10769 (target_auxv_parse): Unconditionally delegate.
10770 * auxv.h (default_auxv_parse): Declare.
10771 * target-delegates.c: Rebuild.
10772 * target.c: Include auxv.h.
10773 * target.h (struct target_ops) <to_auxv_parse>: Use
10774 TARGET_DEFAULT_FUNC.
10776 2014-02-19 Tom Tromey <tromey@redhat.com>
10778 * target-delegates.c: Rebuild.
10779 * target.c (target_memory_map): Unconditionally delegate.
10780 * target.h (struct target_ops) <to_memory_map>: Use
10781 TARGET_DEFAULT_RETURN.
10783 2014-02-19 Tom Tromey <tromey@redhat.com>
10785 * target-delegates.c: Rebuild.
10786 * target.c (target_thread_alive): Unconditionally delegate.
10787 * target.h (struct target_ops) <to_thread_alive>: Use
10788 TARGET_DEFAULT_RETURN.
10790 2014-02-19 Tom Tromey <tromey@redhat.com>
10792 * target-delegates.c: Rebuild.
10793 * target.c (target_save_record): Unconditionally delegate.
10794 * target.h (struct target_ops) <to_save_record>: Use
10795 TARGET_DEFAULT_NORETURN.
10797 2014-02-19 Tom Tromey <tromey@redhat.com>
10799 * target-delegates.c: Rebuild.
10800 * target.c (target_delete_record): Unconditionally delegate.
10801 * target.h (struct target_ops) <to_delete_record>: Use
10802 TARGET_DEFAULT_NORETURN.
10804 2014-02-19 Tom Tromey <tromey@redhat.com>
10806 * target-delegates.c: Rebuild.
10807 * target.c (target_record_is_replaying): Unconditionally
10809 * target.h (struct target_ops) <to_record_is_replaying>: Use
10810 TARGET_DEFAULT_RETURN.
10812 2014-02-19 Tom Tromey <tromey@redhat.com>
10814 * target-delegates.c: Rebuild.
10815 * target.c (target_goto_record_begin): Unconditionally delegate.
10816 * target.h (struct target_ops) <to_goto_record_begin>: Use
10817 TARGET_DEFAULT_NORETURN.
10819 2014-02-19 Tom Tromey <tromey@redhat.com>
10821 * target-delegates.c: Rebuild.
10822 * target.c (target_goto_record_end): Unconditionally delegate.
10823 * target.h (struct target_ops) <to_goto_record_end>: Use
10824 TARGET_DEFAULT_NORETURN.
10826 2014-02-19 Tom Tromey <tromey@redhat.com>
10828 * target-delegates.c: Rebuild.
10829 * target.c (target_goto_record): Unconditionally delegate.
10830 * target.h (struct target_ops) <to_goto_record>: Use
10831 TARGET_DEFAULT_NORETURN.
10833 2014-02-19 Tom Tromey <tromey@redhat.com>
10835 * target-delegates.c: Rebuild.
10836 * target.c (target_insn_history): Unconditionally delegate.
10837 * target.h (struct target_ops) <to_insn_history>: Use
10838 TARGET_DEFAULT_NORETURN.
10840 2014-02-19 Tom Tromey <tromey@redhat.com>
10842 * target-delegates.c: Rebuild.
10843 * target.c (target_insn_history_from): Unconditionally delegate.
10844 * target.h (struct target_ops) <to_insn_history_from>: Use
10845 TARGET_DEFAULT_NORETURN.
10847 2014-02-19 Tom Tromey <tromey@redhat.com>
10849 * target-delegates.c: Rebuild.
10850 * target.c (target_insn_history_range): Unconditionally delegate.
10851 * target.h (struct target_ops) <to_insn_history_range>: Use
10852 TARGET_DEFAULT_NORETURN.
10854 2014-02-19 Tom Tromey <tromey@redhat.com>
10856 * target-delegates.c: Rebuild.
10857 * target.c (target_call_history): Unconditionally delegate.
10858 * target.h (struct target_ops) <to_call_history>: Use
10859 TARGET_DEFAULT_NORETURN.
10861 2014-02-19 Tom Tromey <tromey@redhat.com>
10863 * target-delegates.c: Rebuild.
10864 * target.c (target_call_history_from): Unconditionally delegate.
10865 * target.h (struct target_ops) <to_call_history_from>: Use
10866 TARGET_DEFAULT_NORETURN.
10868 2014-02-19 Tom Tromey <tromey@redhat.com>
10870 * target-delegates.c: Rebuild.
10871 * target.c (target_call_history_range): Unconditionally delegate.
10872 * target.h (struct target_ops) <to_call_history_range>: Use
10873 TARGET_DEFAULT_NORETURN.
10875 2014-02-19 Tom Tromey <tromey@redhat.com>
10877 * target-delegates.c: Rebuild.
10878 * target.c (target_verify_memory): Unconditionally delegate.
10879 * target.h (struct target_ops) <to_verify_memory>: Use
10880 TARGET_DEFAULT_NORETURN.
10882 2014-02-19 Tom Tromey <tromey@redhat.com>
10884 * target-delegates.c: Rebuild.
10885 * target.c (target_core_of_thread): Unconditionally delegate.
10886 * target.h (struct target_ops) <to_core_of_thread>: Use
10887 TARGET_DEFAULT_RETURN.
10889 2014-02-19 Tom Tromey <tromey@redhat.com>
10891 * target-delegates.c: Rebuild.
10892 * target.c (target_flash_done): Unconditionally delegate.
10893 * target.h (struct target_ops) <to_flash_done>: Use
10894 TARGET_DEFAULT_NORETURN.
10896 2014-02-19 Tom Tromey <tromey@redhat.com>
10898 * target-delegates.c: Rebuild.
10899 * target.c (target_flash_erase): Unconditionally delegate.
10900 * target.h (struct target_ops) <to_flash_erase>: Use
10901 TARGET_DEFAULT_NORETURN.
10903 2014-02-19 Tom Tromey <tromey@redhat.com>
10905 * target-delegates.c: Rebuild.
10906 * target.c (target_get_section_table): Unconditionally delegate.
10907 * target.h (struct target_ops) <to_get_section_table>: Use
10908 TARGET_DEFAULT_RETURN.
10910 2014-02-19 Tom Tromey <tromey@redhat.com>
10912 * target-delegates.c: Rebuild.
10913 * target.c (target_pid_to_str): Unconditionally delegate.
10914 (init_dummy_target): Don't initialize to_pid_to_str.
10915 (default_pid_to_str): Rename from dummy_pid_to_str.
10916 * target.h (struct target_ops) <to_pid_to_str>: Use
10917 TARGET_DEFAULT_FUNC.
10919 2014-02-19 Tom Tromey <tromey@redhat.com>
10921 * target-delegates.c: Rebuild.
10922 * target.c (target_find_new_threads): Unconditionally delegate.
10923 * target.h (struct target_ops) <to_find_new_threads>: Use
10924 TARGET_DEFAULT_RETURN.
10926 2014-02-19 Tom Tromey <tromey@redhat.com>
10928 * target-delegates.c: Rebuild.
10929 * target.c (target_program_signals): Unconditionally delegate.
10930 * target.h (struct target_ops) <to_program_signals>: Use
10931 TARGET_DEFAULT_IGNORE.
10933 2014-02-19 Tom Tromey <tromey@redhat.com>
10935 * target-delegates.c: Rebuild.
10936 * target.c (target_pass_signals): Unconditionally delegate.
10937 * target.h (struct target_ops) <to_pass_signals>: Use
10938 TARGET_DEFAULT_IGNORE.
10940 2014-02-19 Tom Tromey <tromey@redhat.com>
10942 * target-delegates.c: Rebuild.
10943 * target.c (default_mourn_inferior): New function.
10944 (target_mourn_inferior): Unconditionally delegate.
10945 * target.h (struct target_ops) <to_mourn_inferior>: Use
10946 TARGET_DEFAULT_FUNC.
10948 2014-02-19 Tom Tromey <tromey@redhat.com>
10950 * target-delegates.c: Rebuild.
10951 * target.c (default_follow_fork): New function.
10952 (target_follow_fork): Unconditionally delegate.
10953 * target.h (struct target_ops) <to_follow_fork>: Use
10954 TARGET_DEFAULT_FUNC.
10956 2014-02-19 Tom Tromey <tromey@redhat.com>
10958 * target-delegates.c: Rebuild.
10959 * target.c (target_kill): Unconditionally delegate.
10960 * target.h (struct target_ops) <to_kill>: Use
10961 TARGET_DEFAULT_NORETURN.
10963 2014-02-19 Tom Tromey <tromey@redhat.com>
10965 * target-delegates.c: Rebuild.
10966 * target.c (target_masked_watch_num_registers): Unconditionally
10968 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10969 Use TARGET_DEFAULT_RETURN.
10971 2014-02-19 Tom Tromey <tromey@redhat.com>
10973 * target-delegates.c: Rebuild.
10974 * target.c (target_remove_mask_watchpoint): Unconditionally
10976 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10977 TARGET_DEFAULT_RETURN.
10979 2014-02-19 Tom Tromey <tromey@redhat.com>
10981 * target-delegates.c: Rebuild.
10982 * target.c (target_insert_mask_watchpoint): Unconditionally
10984 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10985 TARGET_DEFAULT_RETURN.
10987 2014-02-19 Tom Tromey <tromey@redhat.com>
10989 * target-delegates.c: Rebuild.
10990 * target.c (target_ranged_break_num_registers): Unconditionally
10992 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10993 Use TARGET_DEFAULT_RETURN.
10995 2014-02-19 Tom Tromey <tromey@redhat.com>
10997 * target-delegates.c: Rebuild.
10998 * target.c (target_fetch_registers): Unconditionally delegate.
10999 * target.h (struct target_ops) <to_fetch_registers>: Use
11000 TARGET_DEFAULT_NORETURN.
11002 2014-02-19 Tom Tromey <tromey@redhat.com>
11004 * target-delegates.c: Rebuild.
11005 * target.c (update_current_target): Don't inherit or default
11007 * target.h (struct target_ops) <to_stop>: Use
11008 TARGET_DEFAULT_IGNORE.
11010 2014-02-19 Tom Tromey <tromey@redhat.com>
11012 * target-delegates.c: Rebuild.
11013 * target.c (update_current_target): Don't inherit or default
11014 to_can_run_breakpoint_commands.
11015 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11016 Use TARGET_DEFAULT_RETURN.
11018 2014-02-19 Tom Tromey <tromey@redhat.com>
11020 * target-delegates.c: Rebuild.
11021 * target.c (update_current_target): Don't inherit or default
11022 to_supports_evaluation_of_breakpoint_conditions.
11023 * target.h (struct target_ops)
11024 <to_supports_evaluation_of_breakpoint_conditions>: Use
11025 TARGET_DEFAULT_RETURN.
11027 2014-02-19 Tom Tromey <tromey@redhat.com>
11029 * target-delegates.c: Rebuild.
11030 * target.c (update_current_target): Don't inherit or default
11031 to_augmented_libraries_svr4_read.
11032 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11033 Use TARGET_DEFAULT_RETURN.
11035 2014-02-19 Tom Tromey <tromey@redhat.com>
11037 * target-delegates.c: Rebuild.
11038 * target.c (update_current_target): Don't inherit or default
11040 * target.h (struct target_ops) <to_can_use_agent>: Use
11041 TARGET_DEFAULT_RETURN.
11043 2014-02-19 Tom Tromey <tromey@redhat.com>
11045 * target-delegates.c: Rebuild.
11046 * target.c (update_current_target): Don't inherit or default
11048 * target.h (struct target_ops) <to_use_agent>: Use
11049 TARGET_DEFAULT_NORETURN.
11051 2014-02-19 Tom Tromey <tromey@redhat.com>
11053 * target-delegates.c: Rebuild.
11054 * target.c (update_current_target): Don't inherit or default
11055 to_traceframe_info.
11056 (return_null): Remove.
11057 * target.h (struct target_ops) <to_traceframe_info>: Use
11058 TARGET_DEFAULT_RETURN.
11060 2014-02-19 Tom Tromey <tromey@redhat.com>
11062 * target-delegates.c: Rebuild.
11063 * target.c (update_current_target): Don't inherit or default
11064 to_static_tracepoint_markers_by_strid.
11065 * target.h (struct target_ops)
11066 <to_static_tracepoint_markers_by_strid>: Use
11067 TARGET_DEFAULT_NORETURN.
11069 2014-02-19 Tom Tromey <tromey@redhat.com>
11071 * target-delegates.c: Rebuild.
11072 * target.c (update_current_target): Don't inherit or default
11073 to_static_tracepoint_marker_at.
11074 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11075 Use TARGET_DEFAULT_RETURN.
11077 2014-02-19 Tom Tromey <tromey@redhat.com>
11079 * target-delegates.c: Rebuild.
11080 * target.c (update_current_target): Don't inherit or default
11081 to_set_permissions.
11082 * target.h (struct target_ops) <to_set_permissions>: Use
11083 TARGET_DEFAULT_IGNORE.
11085 2014-02-19 Tom Tromey <tromey@redhat.com>
11087 * target-delegates.c: Rebuild.
11088 * target.c (update_current_target): Don't inherit or default
11089 to_get_tib_address.
11090 * target.h (struct target_ops) <to_get_tib_address>: Use
11091 TARGET_DEFAULT_NORETURN.
11093 2014-02-19 Tom Tromey <tromey@redhat.com>
11095 * target-delegates.c: Rebuild.
11096 * target.c (update_current_target): Don't inherit or default
11097 to_set_trace_notes.
11098 * target.h (struct target_ops) <to_set_trace_notes>: Use
11099 TARGET_DEFAULT_RETURN.
11101 2014-02-19 Tom Tromey <tromey@redhat.com>
11103 * target-delegates.c: Rebuild.
11104 * target.c (update_current_target): Don't initialize
11105 to_set_trace_buffer_size.
11106 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11107 TARGET_DEFAULT_IGNORE.
11109 2014-02-19 Tom Tromey <tromey@redhat.com>
11111 * target-delegates.c: Rebuild.
11112 * target.c (update_current_target): Don't inherit or default
11113 to_set_circular_trace_buffer.
11114 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11115 TARGET_DEFAULT_IGNORE.
11117 2014-02-19 Tom Tromey <tromey@redhat.com>
11119 * target-delegates.c: Rebuild.
11120 * target.c (update_current_target): Don't inherit or default
11121 to_set_disconnected_tracing.
11122 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11123 TARGET_DEFAULT_IGNORE.
11125 2014-02-19 Tom Tromey <tromey@redhat.com>
11127 * target-delegates.c: Rebuild.
11128 * target.c (update_current_target): Don't inherit or default
11129 to_get_min_fast_tracepoint_insn_len.
11130 (return_minus_one): Remove.
11131 * target.h (struct target_ops)
11132 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11134 2014-02-19 Tom Tromey <tromey@redhat.com>
11136 * target-delegates.c: Rebuild.
11137 * target.c (update_current_target): Don't inherit or default
11138 to_get_raw_trace_data.
11139 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11140 TARGET_DEFAULT_NORETURN.
11142 2014-02-19 Tom Tromey <tromey@redhat.com>
11144 * target-delegates.c: Rebuild.
11145 * target.c (update_current_target): Don't inherit or default
11146 to_upload_trace_state_variables.
11147 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11148 Use TARGET_DEFAULT_RETURN.
11150 2014-02-19 Tom Tromey <tromey@redhat.com>
11152 * target-delegates.c: Rebuild.
11153 * target.c (update_current_target): Don't inherit or default
11154 to_upload_tracepoints.
11155 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11156 TARGET_DEFAULT_RETURN.
11158 2014-02-19 Tom Tromey <tromey@redhat.com>
11160 * target-delegates.c: Rebuild.
11161 * target.c (update_current_target): Don't inherit or default
11162 to_save_trace_data.
11163 * target.h (struct target_ops) <to_save_trace_data>: Use
11164 TARGET_DEFAULT_NORETURN.
11166 2014-02-19 Tom Tromey <tromey@redhat.com>
11168 * target-delegates.c: Rebuild.
11169 * target.c (update_current_target): Don't inherit or default
11170 to_get_trace_state_variable_value.
11171 * target.h (struct target_ops)
11172 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11174 2014-02-19 Tom Tromey <tromey@redhat.com>
11176 * target-delegates.c: Rebuild.
11177 * target.c (update_current_target): Don't inherit or default
11179 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11181 2014-02-19 Tom Tromey <tromey@redhat.com>
11183 * target-delegates.c: Rebuild.
11184 * target.c (update_current_target): Don't inherit or default
11186 * target.h (struct target_ops) <to_trace_stop>: Use
11187 TARGET_DEFAULT_NORETURN.
11189 2014-02-19 Tom Tromey <tromey@redhat.com>
11191 * target-delegates.c: Rebuild.
11192 * target.c (update_current_target): Don't inherit or default
11193 to_get_tracepoint_status.
11194 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11195 TARGET_DEFAULT_NORETURN.
11197 2014-02-19 Tom Tromey <tromey@redhat.com>
11199 * target-delegates.c: Rebuild.
11200 * target.c (update_current_target): Don't inherit or default
11201 to_get_trace_status.
11202 * target.h (struct target_ops) <to_get_trace_status>: Use
11203 TARGET_DEFAULT_RETURN.
11205 2014-02-19 Tom Tromey <tromey@redhat.com>
11207 * target-delegates.c: Rebuild.
11208 * target.c (update_current_target): Don't inherit or default
11210 * target.h (struct target_ops) <to_trace_start>: Use
11211 TARGET_DEFAULT_NORETURN.
11213 2014-02-19 Tom Tromey <tromey@redhat.com>
11215 * target-delegates.c: Rebuild.
11216 * target.c (update_current_target): Don't inherit or default
11217 to_trace_set_readonly_regions.
11218 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11219 Use TARGET_DEFAULT_NORETURN.
11221 2014-02-19 Tom Tromey <tromey@redhat.com>
11223 * target-delegates.c: Rebuild.
11224 * target.c (update_current_target): Don't inherit or default
11225 to_disable_tracepoint.
11226 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11227 TARGET_DEFAULT_NORETURN.
11229 2014-02-19 Tom Tromey <tromey@redhat.com>
11231 * target-delegates.c: Rebuild.
11232 * target.c (update_current_target): Don't inherit or default
11233 to_enable_tracepoint.
11234 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11235 TARGET_DEFAULT_NORETURN.
11237 2014-02-19 Tom Tromey <tromey@redhat.com>
11239 * target-delegates.c: Rebuild.
11240 * target.c (update_current_target): Don't inherit or default
11241 to_download_trace_state_variable.
11242 * target.h (struct target_ops) <to_download_trace_state_variable>:
11243 Use TARGET_DEFAULT_NORETURN.
11245 2014-02-19 Tom Tromey <tromey@redhat.com>
11247 * target-delegates.c: Rebuild.
11248 * target.c (update_current_target): Don't inherit or default
11249 to_can_download_tracepoint.
11250 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11251 TARGET_DEFAULT_RETURN.
11253 2014-02-19 Tom Tromey <tromey@redhat.com>
11255 * target-delegates.c: Rebuild.
11256 * target.c (update_current_target): Don't inherit or default
11257 to_download_tracepoint.
11258 * target.h (struct target_ops) <to_download_tracepoint>: Use
11259 TARGET_DEFAULT_NORETURN.
11261 2014-02-19 Tom Tromey <tromey@redhat.com>
11263 * target-delegates.c: Rebuild.
11264 * target.c (update_current_target): Don't inherit or default
11266 * target.h (struct target_ops) <to_trace_init>: Use
11267 TARGET_DEFAULT_RETURN.
11269 2014-02-19 Tom Tromey <tromey@redhat.com>
11271 * target-delegates.c: Rebuild.
11272 * target.c (update_current_target): Don't inherit or default
11273 to_supports_string_tracing.
11274 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11275 TARGET_DEFAULT_RETURN.
11277 2014-02-19 Tom Tromey <tromey@redhat.com>
11279 * target-delegates.c: Rebuild.
11280 * target.c (update_current_target): Don't inherit or default
11281 to_supports_enable_disable_tracepoint.
11282 * target.h (struct target_ops)
11283 <to_supports_enable_disable_tracepoint>: Use
11284 TARGET_DEFAULT_RETURN.
11286 2014-02-19 Tom Tromey <tromey@redhat.com>
11288 * target-delegates.c: Rebuild.
11289 * target.c (update_current_target): Don't inherit or default
11290 to_supports_multi_process.
11291 * target.h (struct target_ops) <to_supports_multi_process>: Use
11292 TARGET_DEFAULT_RETURN.
11294 2014-02-19 Tom Tromey <tromey@redhat.com>
11296 * target-delegates.c: Rebuild.
11297 * target.c (update_current_target): Don't inherit or default
11298 to_get_ada_task_ptid.
11299 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11300 TARGET_DEFAULT_FUNC.
11302 2014-02-19 Tom Tromey <tromey@redhat.com>
11304 * target-delegates.c: Rebuild.
11305 * target.c (update_current_target): Don't inherit or default
11306 to_thread_architecture.
11307 * target.h (struct target_ops) <to_thread_architecture>: Use
11308 TARGET_DEFAULT_FUNC.
11310 2014-02-19 Tom Tromey <tromey@redhat.com>
11312 * target-delegates.c: Rebuild.
11313 * target.c (update_current_target): Don't inherit or default
11314 to_execution_direction.
11315 * target.h (struct target_ops) <to_execution_direction>: Use
11316 TARGET_DEFAULT_FUNC.
11318 2014-02-19 Tom Tromey <tromey@redhat.com>
11320 * target-delegates.c: Rebuild.
11321 * target.c (update_current_target): Don't inherit or default
11322 to_can_execute_reverse.
11323 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11324 TARGET_DEFAULT_RETURN.
11325 (target_can_execute_reverse): Unconditionally delegate.
11327 2014-02-19 Tom Tromey <tromey@redhat.com>
11329 * target-delegates.c: Rebuild.
11330 * target.c (update_current_target): Don't inherit or default
11332 (dummy_goto_bookmark): Remove.
11333 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11334 * target.h (struct target_ops) <to_goto_bookmark>: Use
11335 TARGET_DEFAULT_NORETURN.
11337 2014-02-19 Tom Tromey <tromey@redhat.com>
11339 * target-delegates.c: Rebuild.
11340 * target.c (update_current_target): Don't inherit or default
11342 (dummy_get_bookmark): Remove.
11343 (init_dummy_target): Don't inherit or default to_get_bookmark.
11344 * target.h (struct target_ops) <to_get_bookmark>: Use
11345 TARGET_DEFAULT_NORETURN
11347 2014-02-19 Tom Tromey <tromey@redhat.com>
11349 * target-delegates.c: Rebuild.
11350 * target.c (update_current_target): Don't inherit or default
11351 to_make_corefile_notes.
11352 (init_dummy_target): Don't initialize to_make_corefile_notes.
11353 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11354 TARGET_DEFAULT_FUNC.
11356 2014-02-19 Tom Tromey <tromey@redhat.com>
11358 * target-delegates.c: Rebuild.
11359 * target.c (update_current_target): Don't inherit or default
11360 to_find_memory_regions.
11361 (init_dummy_target): Don't initialize to_find_memory_regions.
11362 * target.h (struct target_ops) <to_find_memory_regions>: Use
11363 TARGET_DEFAULT_FUNC.
11365 2014-02-19 Tom Tromey <tromey@redhat.com>
11367 * target-delegates.c: Rebuild.
11368 * target.c (update_current_target): Don't inherit or default
11370 * target.h (struct target_ops) <to_log_command>: Use
11371 TARGET_DEFAULT_IGNORE.
11372 (target_log_command): Unconditionally delegate.
11374 2014-02-19 Tom Tromey <tromey@redhat.com>
11376 * target-delegates.c: Rebuild.
11377 * target.c (update_current_target): Don't inherit or default
11378 to_pid_to_exec_file.
11379 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11380 TARGET_DEFAULT_RETURN.
11382 2014-02-19 Tom Tromey <tromey@redhat.com>
11384 * target-delegates.c: Rebuild.
11385 * target.c (update_current_target): Don't inherit or default
11387 (target_thread_name): Unconditionally delegate.
11388 * target.h (struct target_ops) <to_thread_name>: Use
11389 TARGET_DEFAULT_RETURN.
11391 2014-02-19 Tom Tromey <tromey@redhat.com>
11393 * target-delegates.c: Rebuild.
11394 * target.c (update_current_target): Don't inherit or default
11395 to_extra_thread_info.
11396 * target.h (struct target_ops) <to_extra_thread_info>: Use
11397 TARGET_DEFAULT_RETURN.
11399 2014-02-19 Tom Tromey <tromey@redhat.com>
11401 * target-delegates.c: Rebuild.
11402 * target.c (update_current_target): Don't inherit or default
11404 * target.h (struct target_ops) <to_has_exited>: Use
11405 TARGET_DEFAULT_RETURN..
11407 2014-02-19 Tom Tromey <tromey@redhat.com>
11409 * target-delegates.c: Rebuild.
11410 * target.c (update_current_target): Don't inherit or default
11411 to_set_syscall_catchpoint.
11412 (return_one): Remove.
11413 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11414 TARGET_DEFAULT_RETURN.
11416 2014-02-19 Tom Tromey <tromey@redhat.com>
11418 * target-delegates.c: Rebuild.
11419 * target.c (update_current_target): Don't inherit or default
11420 to_insert_exec_catchpoint.
11421 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11422 TARGET_DEFAULT_RETURN.
11424 2014-01-08 Tom Tromey <tromey@redhat.com>
11426 * target-delegates.c: Rebuild.
11427 * target.c (update_current_target): Don't inherit or default
11428 to_insert_exec_catchpoint.
11429 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11430 TARGET_DEFAULT_RETURN.
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11434 * target-delegates.c: Rebuild.
11435 * target.c (update_current_target): Don't inherit or default
11436 to_remove_vfork_catchpoint.
11437 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11438 TARGET_DEFAULT_RETURN.
11440 2014-02-19 Tom Tromey <tromey@redhat.com>
11442 * target-delegates.c: Rebuild.
11443 * target.c (update_current_target): Don't inherit or default
11444 to_insert_vfork_catchpoint.
11445 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11446 TARGET_DEFAULT_RETURN.
11448 2014-02-19 Tom Tromey <tromey@redhat.com>
11450 * target-delegates.c: Rebuild.
11451 * target.c (update_current_target): Don't inherit or default
11452 to_remove_fork_catchpoint.
11453 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11454 TARGET_DEFAULT_RETURN.
11456 2014-02-19 Tom Tromey <tromey@redhat.com>
11458 * target-delegates.c: Rebuild.
11459 * target.c (update_current_target): Don't inherit or default
11460 to_insert_fork_catchpoint.
11461 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11462 TARGET_DEFAULT_RETURN.
11464 2014-02-19 Tom Tromey <tromey@redhat.com>
11466 * target-delegates.c: Rebuild.
11467 * target.c (update_current_target): Don't inherit or default
11468 to_post_startup_inferior.
11469 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11470 TARGET_DEFAULT_IGNORE.
11472 2014-02-19 Tom Tromey <tromey@redhat.com>
11474 * target-delegates.c: Rebuild.
11475 * target.c (update_current_target): Don't inherit or default
11477 * target.h (struct target_ops) <to_load>: Use
11478 TARGET_DEFAULT_NORETURN.
11480 2014-02-19 Tom Tromey <tromey@redhat.com>
11482 * target-delegates.c: Rebuild.
11483 * target.c (update_current_target): Don't inherit or default
11485 * target.h (struct target_ops) <to_terminal_info>: Use
11486 TARGET_DEFAULT_FUNC.
11488 2014-02-19 Tom Tromey <tromey@redhat.com>
11490 * target-delegates.c: Rebuild.
11491 * target.c (update_current_target): Don't inherit or default
11492 to_terminal_save_ours.
11493 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11494 TARGET_DEFAULT_IGNORE.
11496 2014-02-19 Tom Tromey <tromey@redhat.com>
11498 * target-delegates.c: Rebuild.
11499 * target.c (update_current_target): Don't inherit or default
11501 * target.h (struct target_ops) <to_terminal_ours>: Use
11502 TARGET_DEFAULT_IGNORE.
11504 2014-02-19 Tom Tromey <tromey@redhat.com>
11506 * target-delegates.c: Rebuild.
11507 * target.c (update_current_target): Don't inherit or default
11508 to_terminal_ours_for_output.
11509 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11510 TARGET_DEFAULT_IGNORE.
11512 2014-02-19 Tom Tromey <tromey@redhat.com>
11514 * target-delegates.c: Rebuild.
11515 * target.c (update_current_target): Don't inherit or default
11516 to_terminal_inferior.
11517 * target.h (struct target_ops) <to_terminal_inferior>: Use
11518 TARGET_DEFAULT_IGNORE.
11520 2014-02-19 Tom Tromey <tromey@redhat.com>
11522 * target-delegates.c: Rebuild.
11523 * target.c (update_current_target): Don't inherit or default
11525 * target.h (struct target_ops) <to_terminal_init>: Use
11526 TARGET_DEFAULT_IGNORE.
11528 2014-02-19 Tom Tromey <tromey@redhat.com>
11530 * target-delegates.c: Rebuild.
11531 * target.c (update_current_target): Don't inherit or default
11532 to_can_accel_watchpoint_condition.
11533 * target.h (struct target_ops)
11534 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11536 2014-02-19 Tom Tromey <tromey@redhat.com>
11538 * target-delegates.c: Rebuild.
11539 * target.c (update_current_target): Don't inherit or default
11540 to_region_ok_for_hw_watchpoint.
11541 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11542 Use TARGET_DEFAULT_FUNC.
11544 2014-02-19 Tom Tromey <tromey@redhat.com>
11546 * target-delegates.c: Rebuild.
11547 * target.c (update_current_target): Don't inherit or default
11548 to_watchpoint_addr_within_range.
11549 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11550 Use TARGET_DEFAULT_FUNC.
11552 2014-02-19 Tom Tromey <tromey@redhat.com>
11554 * target-delegates.c: Rebuild.
11555 * target.c (update_current_target): Don't inherit or default
11556 to_remove_watchpoint.
11557 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11558 TARGET_DEFAULT_NORETURN.
11560 2014-02-19 Tom Tromey <tromey@redhat.com>
11562 * target-delegates.c: Rebuild.
11563 * target.c (update_current_target): Don't inherit or default
11564 to_insert_watchpoint.
11565 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11566 TARGET_DEFAULT_RETURN.
11568 2014-02-19 Tom Tromey <tromey@redhat.com>
11570 * target-delegates.c: Rebuild.
11571 * target.c (update_current_target): Don't inherit or default
11572 to_remove_hw_breakpoint.
11573 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11574 TARGET_DEFAULT_RETURN.
11576 2014-02-19 Tom Tromey <tromey@redhat.com>
11578 * target-delegates.c: Rebuild.
11579 * target.c (update_current_target): Don't inherit or default
11580 to_insert_hw_breakpoint.
11581 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11582 TARGET_DEFAULT_RETURN.
11584 2014-02-19 Tom Tromey <tromey@redhat.com>
11586 * target-delegates.c: Rebuild.
11587 * target.c (update_current_target): Don't inherit or default
11588 to_can_use_hw_breakpoint.
11589 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11590 TARGET_DEFAULT_RETURN.
11592 2014-02-19 Tom Tromey <tromey@redhat.com>
11594 * target-delegates.c: Rebuild.
11595 * target.c (update_current_target): Don't inherit or default
11597 * target.h (struct target_ops) <to_files_info>: Use
11598 TARGET_DEFAULT_IGNORE.
11600 2014-02-19 Tom Tromey <tromey@redhat.com>
11602 * target-delegates.c: Rebuild.
11603 * target.c (update_current_target): Don't inherit or default
11605 * target.h (struct target_ops) <to_store>: Use
11606 TARGET_DEFAULT_NORETURN.
11608 2014-02-19 Tom Tromey <tromey@redhat.com>
11610 * target-delegates.c: Rebuild.
11611 * target.c (update_current_target): Don't inherit or default
11613 * target.h (struct target_ops) <to_post_attach>: Use
11614 TARGET_DEFAULT_IGNORE.
11616 2014-02-19 Tom Tromey <tromey@redhat.com>
11618 * target-delegates.c: Rebuild.
11619 * target.c (update_current_target): Don't inherit or default
11621 (default_rcmd): New function.
11622 (do_monitor_command): Unconditionally delegate.
11623 * target.h (struct target_ops) <to_rmcd>: Use
11624 TARGET_DEFAULT_FUNC.
11626 2014-02-19 Tom Tromey <tromey@redhat.com>
11628 * target-delegates.c: Rebuild.
11629 * target.c (init_dummy_target): Don't initialize to_attach.
11630 (target_attach): Unconditionally delegate.
11631 * target.h (struct target_ops) <to_attach>: Use
11632 TARGET_DEFAULT_FUNC.
11634 2014-02-19 Tom Tromey <tromey@redhat.com>
11636 * target-delegates.c: Rebuild.
11637 * target.c (target_detach): Unconditionally delegate.
11638 (init_dummy_target): Don't initialize to_detach.
11639 * target.h (struct target_ops) <to_detach>: Use
11640 TARGET_DEFAULT_IGNORE.
11642 2014-02-19 Tom Tromey <tromey@redhat.com>
11644 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11646 (target_augmented_libraries_svr4_read): Add argument.
11647 * target.c (update_current_target): Update.
11648 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11651 2014-02-19 Tom Tromey <tromey@redhat.com>
11653 * target.h (struct target_ops) <to_call_history_range>: Add
11655 * target.c (target_call_history_range): Add argument.
11656 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11658 (record_btrace_call_history_from): Update.
11660 2014-02-19 Tom Tromey <tromey@redhat.com>
11662 * target.h (struct target_ops) <to_call_history_from>: Add
11664 * target.c (target_call_history_from): Add argument.
11665 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11668 2014-02-19 Tom Tromey <tromey@redhat.com>
11670 * target.h (struct target_ops) <to_call_history>: Add argument.
11671 * target.c (target_call_history): Add argument.
11672 * record-btrace.c (record_btrace_call_history): Add 'self'
11675 2014-02-19 Tom Tromey <tromey@redhat.com>
11677 * target.h (struct target_ops) <to_insn_history_range>: Add
11679 * target.c (target_insn_history_range): Add argument.
11680 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11682 (record_btrace_insn_history_from): Update.
11684 2014-02-19 Tom Tromey <tromey@redhat.com>
11686 * target.h (struct target_ops) <to_insn_history_from>: Add
11688 * target.c (target_insn_history_from): Add argument.
11689 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11692 2014-02-19 Tom Tromey <tromey@redhat.com>
11694 * target.h (struct target_ops) <to_insn_history>: Add argument.
11695 * target.c (target_insn_history): Add argument.
11696 * record-btrace.c (record_btrace_insn_history): Add 'self'
11699 2014-02-19 Tom Tromey <tromey@redhat.com>
11701 * target.h (struct target_ops) <to_goto_record>: Add argument.
11702 * target.c (target_goto_record): Add argument.
11703 * record-full.c (record_full_goto): Add 'self' argument.
11704 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11706 2014-02-19 Tom Tromey <tromey@redhat.com>
11708 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11709 * target.c (target_goto_record_end): Add argument.
11710 * record-full.c (record_full_goto_end): Add 'self' argument.
11711 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11713 2014-02-19 Tom Tromey <tromey@redhat.com>
11715 * target.h (struct target_ops) <to_goto_record_begin>: Add
11717 * target.c (target_goto_record_begin): Add argument.
11718 * record-full.c (record_full_goto_begin): Add 'self' argument.
11719 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11722 2014-02-19 Tom Tromey <tromey@redhat.com>
11724 * target.h (struct target_ops) <to_record_is_replaying>: Add
11726 * target.c (target_record_is_replaying): Add argument.
11727 * record-full.c (record_full_is_replaying): Add 'self' argument.
11728 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11730 (record_btrace_xfer_partial, record_btrace_store_registers)
11731 (record_btrace_prepare_to_store, record_btrace_resume)
11732 (record_btrace_wait, record_btrace_decr_pc_after_break)
11733 (record_btrace_find_new_threads, record_btrace_thread_alive):
11736 2014-02-19 Tom Tromey <tromey@redhat.com>
11738 * target.h (struct target_ops) <to_delete_record>: Add argument.
11739 * target.c (target_delete_record): Add argument.
11740 * record-full.c (record_full_delete): Add 'self' argument.
11742 2014-02-19 Tom Tromey <tromey@redhat.com>
11744 * target.h (struct target_ops) <to_save_record>: Add argument.
11745 * target.c (target_save_record): Add argument.
11746 * record-full.c (record_full_save): Add 'self' argument.
11747 (record_full_save): Add 'self' argument.
11749 2014-02-19 Tom Tromey <tromey@redhat.com>
11751 * target.h (struct target_ops) <to_info_record>: Add argument.
11752 * target.c (target_info_record): Add argument.
11753 * record.c (info_record_command): Add argument.
11754 * record-full.c (record_full_info): Add 'self' argument.
11755 * record-btrace.c (record_btrace_info): Add 'self' argument.
11757 2014-02-19 Tom Tromey <tromey@redhat.com>
11759 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11760 * target.c (target_stop_recording): Add argument.
11761 * record.c (record_stop): Add argument.
11762 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11765 2014-02-19 Tom Tromey <tromey@redhat.com>
11767 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11768 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11769 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11771 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11772 (_initialize_amd64_linux_nat): Use it.
11773 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11774 (_initialize_i386_linux_nat): Use it.
11776 2014-02-19 Tom Tromey <tromey@redhat.com>
11778 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11779 * target.c (target_teardown_btrace): Add argument.
11780 * remote.c (remote_teardown_btrace): Add 'self' argument.
11781 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11783 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11786 2014-02-19 Tom Tromey <tromey@redhat.com>
11788 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11789 * target.c (target_disable_btrace): Add argument.
11790 * remote.c (remote_disable_btrace): Add 'self' argument.
11791 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11793 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11796 2014-02-19 Tom Tromey <tromey@redhat.com>
11798 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11799 * target.c (target_enable_btrace): Add argument.
11800 * remote.c (remote_enable_btrace): Add 'self' argument.
11801 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11803 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11806 2014-02-19 Tom Tromey <tromey@redhat.com>
11808 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11809 (target_can_use_agent): Add argument.
11810 * target.c (update_current_target): Update.
11811 * remote.c (remote_can_use_agent): Add 'self' argument.
11812 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11814 2014-02-19 Tom Tromey <tromey@redhat.com>
11816 * target.h (struct target_ops) <to_use_agent>: Add argument.
11817 (target_use_agent): Add argument.
11818 * target.c (update_current_target): Update.
11819 * remote.c (remote_use_agent): Add 'self' argument.
11820 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11822 2014-02-19 Tom Tromey <tromey@redhat.com>
11824 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11825 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11826 (target_traceframe_info): Add argument.
11827 * target.c (update_current_target): Update.
11828 * remote.c (remote_traceframe_info): Add 'self' argument.
11829 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11831 2014-02-19 Tom Tromey <tromey@redhat.com>
11833 * target.h (target_static_tracepoint_markers_by_strid): Add
11835 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11837 * target.c (update_current_target): Update.
11838 * remote.c (struct target_ops)
11839 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11840 * linux-nat.c (struct target_ops)
11841 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11843 2014-02-19 Tom Tromey <tromey@redhat.com>
11845 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11847 (target_static_tracepoint_marker_at): Add argument.
11848 * target.c (update_current_target): Update.
11849 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11852 2014-02-19 Tom Tromey <tromey@redhat.com>
11854 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11855 (target_set_permissions): Add argument.
11856 * target.c (update_current_target): Update.
11857 * remote.c (remote_set_permissions): Add 'self' argument.
11858 (remote_start_remote): Update.
11860 2014-02-19 Tom Tromey <tromey@redhat.com>
11862 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11863 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11864 (target_get_tib_address): Add argument.
11865 * target.c (update_current_target): Update.
11866 * remote.c (remote_get_tib_address): Add 'self' argument.
11868 2014-02-19 Tom Tromey <tromey@redhat.com>
11870 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11871 (target_set_trace_notes): Add argument.
11872 * target.c (update_current_target): Update.
11873 * remote.c (remote_set_trace_notes): Add 'self' argument.
11875 2014-02-19 Tom Tromey <tromey@redhat.com>
11877 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11879 (target_set_trace_buffer_size): Add argument.
11880 * target.c (update_current_target): Update.
11881 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11883 2014-02-19 Tom Tromey <tromey@redhat.com>
11885 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11887 (target_set_circular_trace_buffer): Add argument.
11888 * target.c (update_current_target): Update.
11889 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11892 2014-02-19 Tom Tromey <tromey@redhat.com>
11894 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11896 (target_set_disconnected_tracing): Add argument.
11897 * target.c (update_current_target): Update.
11898 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11900 2014-02-19 Tom Tromey <tromey@redhat.com>
11902 * target.h (struct target_ops)
11903 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11904 (target_get_min_fast_tracepoint_insn_len): Add argument.
11905 * target.c (update_current_target): Update.
11906 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11909 2014-02-19 Tom Tromey <tromey@redhat.com>
11911 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11913 (target_get_raw_trace_data): Add argument.
11914 * target.c (update_current_target): Update.
11915 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11917 2014-02-19 Tom Tromey <tromey@redhat.com>
11919 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11921 (target_upload_trace_state_variables): Add argument.
11922 * target.c (update_current_target): Update.
11923 * remote.c (remote_upload_trace_state_variables): Add 'self'
11925 (remote_start_remote): Update.
11927 2014-02-19 Tom Tromey <tromey@redhat.com>
11929 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11931 (target_upload_tracepoints): Add argument.
11932 * target.c (update_current_target): Update.
11933 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11934 (remote_start_remote): Update.
11936 2014-02-19 Tom Tromey <tromey@redhat.com>
11938 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11939 (target_save_trace_data): Add argument.
11940 * target.c (update_current_target): Update.
11941 * remote.c (remote_save_trace_data): Add 'self' argument.
11943 2014-02-19 Tom Tromey <tromey@redhat.com>
11945 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11947 * target.h (struct target_ops)
11948 <to_get_trace_state_variable_value>: Add argument.
11949 (target_get_trace_state_variable_value): Add argument.
11950 * target.c (update_current_target): Update.
11951 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11953 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11955 2014-02-19 Tom Tromey <tromey@redhat.com>
11957 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11958 * target.h (struct target_ops) <to_trace_find>: Add argument.
11959 (target_trace_find): Add argument.
11960 * target.c (update_current_target): Update.
11961 * remote.c (remote_trace_find): Add 'self' argument.
11962 * ctf.c (ctf_trace_find): Add 'self' argument.
11964 2014-02-19 Tom Tromey <tromey@redhat.com>
11966 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11967 (target_trace_stop): Add argument.
11968 * target.c (update_current_target): Update.
11969 * remote.c (remote_trace_stop): Add 'self' argument.
11971 2014-02-19 Tom Tromey <tromey@redhat.com>
11973 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11974 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11976 (target_get_tracepoint_status): Add argument.
11977 * target.c (update_current_target): Update.
11978 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11980 2014-02-19 Tom Tromey <tromey@redhat.com>
11982 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11983 * target.h (struct target_ops) <to_get_trace_status>: Add
11985 (target_get_trace_status): Add argument.
11986 * target.c (update_current_target): Update.
11987 * remote.c (remote_get_trace_status): Add 'self' argument.
11988 (remote_start_remote, remote_can_download_tracepoint): Update.
11989 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11991 2014-02-19 Tom Tromey <tromey@redhat.com>
11993 * target.h (struct target_ops) <to_trace_start>: Add argument.
11994 (target_trace_start): Add argument.
11995 * target.c (update_current_target): Update.
11996 * remote.c (remote_trace_start): Add 'self' argument.
11998 2014-02-19 Tom Tromey <tromey@redhat.com>
12000 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12002 (target_trace_set_readonly_regions): Add argument.
12003 * target.c (update_current_target): Update.
12004 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12007 2014-02-19 Tom Tromey <tromey@redhat.com>
12009 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12011 (target_disable_tracepoint): Add argument.
12012 * target.c (update_current_target): Update.
12013 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12015 2014-02-19 Tom Tromey <tromey@redhat.com>
12017 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12019 (target_enable_tracepoint): Add argument.
12020 * target.c (update_current_target): Update.
12021 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12023 2014-02-19 Tom Tromey <tromey@redhat.com>
12025 * target.h (struct target_ops) <to_download_trace_state_variable>:
12027 (target_download_trace_state_variable): Add argument.
12028 * target.c (update_current_target): Update.
12029 * remote.c (remote_download_trace_state_variable): Add 'self'
12032 2014-02-19 Tom Tromey <tromey@redhat.com>
12034 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12036 (target_can_download_tracepoint): Add argument.
12037 * target.c (update_current_target): Update.
12038 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12040 2014-02-19 Tom Tromey <tromey@redhat.com>
12042 * target.h (struct target_ops) <to_download_tracepoint>: Add
12044 (target_download_tracepoint): Add argument.
12045 * target.c (update_current_target): Update.
12046 * remote.c (remote_download_tracepoint): Add 'self' argument.
12048 2014-02-19 Tom Tromey <tromey@redhat.com>
12050 * target.h (struct target_ops) <to_trace_init>: Add argument.
12051 (target_trace_init): Add argument.
12052 * target.c (update_current_target): Update.
12053 * remote.c (remote_trace_init): Add 'self' argument.
12055 2014-02-19 Tom Tromey <tromey@redhat.com>
12057 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12058 * target.c (target_fileio_readlink): Add argument.
12059 * remote.c (remote_hostio_readlink): Add 'self' argument.
12060 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12062 2014-02-19 Tom Tromey <tromey@redhat.com>
12064 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12065 * target.c (target_fileio_unlink): Add argument.
12066 * remote.c (remote_hostio_unlink): Add 'self' argument.
12067 (remote_file_delete): Update.
12068 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12070 2014-02-19 Tom Tromey <tromey@redhat.com>
12072 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12073 * target.c (target_fileio_close): Add argument.
12074 * remote.c (remote_hostio_close): Add 'self' argument.
12075 (remote_hostio_close_cleanup): Update.
12076 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12078 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12080 2014-02-19 Tom Tromey <tromey@redhat.com>
12082 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12083 * target.c (target_fileio_pread): Add argument.
12084 * remote.c (remote_hostio_pread): Add 'self' argument.
12085 (remote_bfd_iovec_pread, remote_file_get): Update.
12086 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12088 2014-02-19 Tom Tromey <tromey@redhat.com>
12090 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12091 * target.c (target_fileio_pwrite): Add argument.
12092 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12093 (remote_file_put): Update.
12094 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12096 2014-02-19 Tom Tromey <tromey@redhat.com>
12098 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12099 * target.c (target_fileio_open): Add argument.
12100 * remote.c (remote_hostio_open): Add 'self' argument.
12101 (remote_bfd_iovec_open): Add 'self' argument.
12102 (remote_file_put): Add 'self' argument.
12103 (remote_file_get): Add 'self' argument.
12104 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12106 2014-02-19 Tom Tromey <tromey@redhat.com>
12108 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12110 (target_can_run_breakpoint_commands): Add argument.
12111 * target.c (update_current_target): Update.
12112 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12114 (remote_insert_breakpoint): Add 'self' argument.
12115 (remote_insert_hw_breakpoint): Add 'self' argument.
12116 (remote_can_run_breakpoint_commands): Add 'self' argument.
12118 2014-02-19 Tom Tromey <tromey@redhat.com>
12120 * target.h (struct target_ops)
12121 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12122 (target_supports_evaluation_of_breakpoint_conditions): Add
12124 * target.c (update_current_target): Update.
12125 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12127 (remote_insert_breakpoint): Add 'self' argument.
12128 (remote_insert_hw_breakpoint): Add 'self' argument.
12129 (remote_supports_cond_breakpoints): Add 'self' argument.
12131 2014-02-19 Tom Tromey <tromey@redhat.com>
12133 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12135 (target_supports_string_tracing): Add argument.
12136 * target.c (update_current_target): Update.
12137 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12139 2014-02-19 Tom Tromey <tromey@redhat.com>
12141 * target.h (struct target_ops)
12142 <to_supports_disable_randomization>: Add argument.
12143 * target.c (find_default_supports_disable_randomization): Add
12145 (target_supports_disable_randomization): Add argument.
12146 (find_default_supports_disable_randomization): Add 'self'
12148 * remote.c (extended_remote_supports_disable_randomization): Add
12150 (remote_supports_disable_randomization): Add 'self' argument.
12151 (extended_remote_create_inferior): Update.
12152 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12155 2014-02-19 Tom Tromey <tromey@redhat.com>
12157 * target.h (struct target_ops)
12158 <to_supports_enable_disable_tracepoint>: Add argument.
12159 (target_supports_enable_disable_tracepoint): Add argument.
12160 * target.c (update_current_target): Update.
12161 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12164 2014-02-19 Tom Tromey <tromey@redhat.com>
12166 * target.h (struct target_ops) <to_supports_multi_process>: Add
12168 (target_supports_multi_process): Add argument.
12169 * target.c (update_current_target): Update.
12170 * remote.c (remote_supports_multi_process): Add 'self' argument.
12171 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12173 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12176 2014-02-19 Tom Tromey <tromey@redhat.com>
12178 * target.h (struct target_ops) <to_execution_direction>: Add
12180 (target_execution_direction): Add argument.
12181 * target.c (default_execution_direction): Add 'self' argument.
12182 * record-full.c (record_full_execution_direction): Add 'self'
12185 2014-02-19 Tom Tromey <tromey@redhat.com>
12187 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12189 (target_can_execute_reverse): Add argument.
12190 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12191 * record-full.c (record_full_can_execute_reverse): Add 'self'
12193 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12196 2014-02-19 Tom Tromey <tromey@redhat.com>
12198 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12199 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12201 (target_get_ada_task_ptid): Add argument.
12202 * target.c (update_current_target): Update.
12203 (default_get_ada_task_ptid): Add 'self' argument.
12204 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12205 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12206 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12208 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12210 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12212 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12214 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12215 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12218 2014-02-19 Tom Tromey <tromey@redhat.com>
12220 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12221 (target_goto_bookmark): Add argument.
12222 * target.c (dummy_goto_bookmark): Add 'self' argument.
12223 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12225 2014-02-19 Tom Tromey <tromey@redhat.com>
12227 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12228 (target_get_bookmark): Add argument.
12229 * target.c (dummy_get_bookmark): Add 'self' argument.
12230 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12232 2014-02-19 Tom Tromey <tromey@redhat.com>
12234 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12236 (target_make_corefile_notes): Add argument.
12237 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12238 * procfs.c (procfs_make_note_section): Add 'self' argument.
12239 (procfs_make_note_section): Add 'self' argument.
12240 (procfs_make_note_section): Add 'self' argument.
12241 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12243 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12244 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12245 * exec.c (exec_make_note_section): Add 'self' argument.
12246 (exec_make_note_section): Add 'self' argument.
12248 2014-02-19 Tom Tromey <tromey@redhat.com>
12250 * target.h (struct target_ops) <to_find_memory_regions>: Add
12252 (target_find_memory_regions): Add argument.
12253 * target.c (dummy_find_memory_regions): Add 'self' argument.
12254 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12255 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12256 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12257 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12258 * exec. (exec_do_find_memory_regions): New global.
12259 (exec_set_find_memory_regions): Rewrite.
12260 (exec_find_memory_regions): New function.
12261 (init_exec_ops): Use exec_find_memory_regions.
12263 2014-02-19 Tom Tromey <tromey@redhat.com>
12265 * target.h (struct target_ops) <to_supports_non_stop>: Add
12267 * target.c (find_default_supports_non_stop): Add argument.
12268 (target_supports_non_stop): Add argument.
12269 (find_default_supports_non_stop): Add 'self' argument.
12270 * remote.c (remote_supports_non_stop): Add 'self' argument.
12271 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12273 2014-02-19 Tom Tromey <tromey@redhat.com>
12275 * target.h (struct target_ops) <to_log_command>: Add argument.
12276 (target_log_command): Add argument.
12277 * serial.h (serial_log_command): Add 'self' argument.
12278 * serial.c (serial_log_command): Add 'self' argument.
12280 2014-02-19 Tom Tromey <tromey@redhat.com>
12282 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12283 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12285 (target_pid_to_exec_file): Add argument.
12286 * target.c (debug_to_pid_to_exec_file): Add argument.
12287 (update_current_target): Update.
12288 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12289 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12290 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12291 (linux_handle_extended_wait): Update.
12292 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12293 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12294 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12295 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12297 2014-02-19 Tom Tromey <tromey@redhat.com>
12299 * target.h (struct target_ops) <to_rcmd>: Add argument.
12300 (target_rcmd): Add argument.
12301 * target.c (debug_to_rcmd): Add argument.
12302 (update_current_target, do_monitor_command): Update.
12303 * remote.c (remote_rcmd): Add 'self' argument.
12304 * monitor.c (monitor_rcmd): Add 'self' argument.
12306 2014-02-19 Tom Tromey <tromey@redhat.com>
12308 * windows-nat.c (windows_stop): Add 'self' argument.
12309 * target.h (struct target_ops) <to_stop>: Add argument.
12310 * target.c (target_stop): Add argument.
12311 (debug_to_stop): Add argument.
12312 (update_current_target): Update.
12313 * remote.c (remote_stop): Add 'self' argument.
12314 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12315 (gdbsim_cntrl_c): Update.
12316 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12317 * procfs.c (procfs_stop): Add 'self' argument.
12318 * nto-procfs.c (procfs_stop): Add 'self' argument.
12319 * monitor.c (monitor_stop): Add 'self' argument.
12320 (monitor_open): Update.
12321 * linux-nat.c (linux_nat_stop): Add argument.
12322 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12323 * gnu-nat.c (gnu_stop): Add 'self' argument.
12324 * darwin-nat.c (darwin_stop): Add 'self' argument.
12326 2014-02-19 Tom Tromey <tromey@redhat.com>
12328 * target.h (struct target_ops) <to_thread_name>: Add argument.
12329 * target.c (target_thread_name): Add argument.
12330 (update_current_target): Update.
12331 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12333 2014-02-19 Tom Tromey <tromey@redhat.com>
12335 * target.h (struct target_ops) <to_extra_thread_info>: Add
12337 (target_extra_thread_info): Add argument.
12338 * target.c (update_current_target): Update.
12339 * remote.c (remote_threads_extra_info): Add 'self' argument.
12340 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12342 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12343 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12344 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12346 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12348 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12350 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12353 2014-02-19 Tom Tromey <tromey@redhat.com>
12355 * target.h (struct target_ops) <to_program_signals>: Add argument.
12356 * target.c (target_program_signals): Add argument.
12357 * remote.c (remote_program_signals): Add 'self' argument.
12359 2014-02-19 Tom Tromey <tromey@redhat.com>
12361 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12362 * target.c (target_pass_signals): Add argument.
12363 * remote.c (remote_pass_signals): Add 'self' argument.
12364 (remote_start_remote): Update.
12365 * procfs.c (procfs_pass_signals): Add 'self' argument.
12366 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12367 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12368 (linux_nat_create_inferior, linux_nat_attach): Update.
12370 2014-02-19 Tom Tromey <tromey@redhat.com>
12372 * windows-nat.c (windows_can_run): Add 'self' argument.
12373 * target.h (struct target_ops) <to_can_run>: Add argument.
12374 (target_can_run): Add argument.
12375 * target.c (debug_to_can_run): Add argument.
12376 (update_current_target): Update.
12377 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12378 * inf-child.c (inf_child_can_run): Add 'self' argument.
12379 * go32-nat.c (go32_can_run): Add 'self' argument.
12381 2014-02-19 Tom Tromey <tromey@redhat.com>
12383 * target.h (struct target_ops) <to_has_exited>: Add argument.
12384 (target_has_exited): Add argument.
12385 * target.c (debug_to_has_exited): Add argument.
12386 (update_current_target): Update.
12388 2014-02-19 Tom Tromey <tromey@redhat.com>
12390 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12392 (target_set_syscall_catchpoint): Add argument.
12393 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12395 * target.c (update_current_target): Update.
12397 2014-02-19 Tom Tromey <tromey@redhat.com>
12399 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12401 (target_remove_exec_catchpoint): Add argument.
12402 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12403 (update_current_target): Update.
12404 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12407 2014-02-19 Tom Tromey <tromey@redhat.com>
12409 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12411 (target_insert_exec_catchpoint): Add argument.
12412 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12413 (update_current_target): Update.
12414 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12417 2014-02-19 Tom Tromey <tromey@redhat.com>
12419 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12421 (target_remove_vfork_catchpoint): Add argument.
12422 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12423 (update_current_target): Update.
12424 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12427 2014-02-19 Tom Tromey <tromey@redhat.com>
12429 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12431 (target_insert_vfork_catchpoint): Add argument.
12432 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12433 (update_current_target): Update.
12434 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12437 2014-02-19 Tom Tromey <tromey@redhat.com>
12439 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12441 (target_remove_fork_catchpoint): Add argument.
12442 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12443 (update_current_target): Update.
12444 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12447 2014-02-19 Tom Tromey <tromey@redhat.com>
12449 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12451 (target_insert_fork_catchpoint): Add argument.
12452 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12453 (update_current_target): Update.
12454 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12457 2014-02-19 Tom Tromey <tromey@redhat.com>
12459 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12461 (target_post_startup_inferior): Add argument.
12462 * target.c (debug_to_post_startup_inferior): Add argument.
12463 (update_current_target): Update.
12464 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12466 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12468 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12470 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12472 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12474 (super_post_startup_inferior): Likewise.
12475 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12477 (super_post_startup_inferior): Likewise.
12478 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12479 Add 'self' argument.
12480 (super_post_startup_inferior): Likewise.
12482 2014-02-19 Tom Tromey <tromey@redhat.com>
12484 * target.h (struct target_ops) <to_load>: Add argument.
12485 * target.c (target_load): Add argument.
12486 (debug_to_load): Add argument.
12487 (update_current_target): Update.
12488 * remote.c (remote_load): Add 'self' argument.
12489 * remote-sim.c (gdbsim_load): Add 'self' argument.
12490 * remote-mips.c (mips_load): Add 'self' argument.
12491 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12492 * monitor.c (monitor_load): Add 'self' argument.
12493 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12495 2014-02-19 Tom Tromey <tromey@redhat.com>
12497 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12498 (target_terminal_info): Add argument.
12499 * target.c (debug_to_terminal_info): Add argument.
12500 (default_terminal_info): Likewise.
12501 * inflow.c (child_terminal_info): Add 'self' argument.
12502 * inferior.h (child_terminal_info): Add 'self' argument.
12503 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12505 2014-02-19 Tom Tromey <tromey@redhat.com>
12507 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12509 (target_terminal_save_ours): Add argument.
12510 * target.c (debug_to_terminal_save_ours): Add argument.
12511 (update_current_target): Update.
12512 * inflow.c (terminal_save_ours): Add 'self' argument.
12513 * inferior.h (terminal_save_ours): Add 'self' argument.
12515 2014-02-19 Tom Tromey <tromey@redhat.com>
12517 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12518 (target_terminal_ours): Add argument.
12519 * target.c (debug_to_terminal_ours): Add argument.
12520 (update_current_target): Update.
12521 * remote.c (remote_terminal_ours): Add 'self' argument.
12522 (remote_close): Update.
12523 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12524 * inflow.c (terminal_ours): Add 'self' argument.
12525 * inferior.h (terminal_ours): Add 'self' argument.
12526 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12528 2014-02-19 Pedro Alves <palves@redhat.com>
12529 Tom Tromey <tromey@redhat.com>
12531 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12533 (target_terminal_ours_for_output): Add argument.
12534 * target.c (debug_to_terminal_ours_for_output): Add argument.
12535 (update_current_target): Update.
12536 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12537 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12538 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12540 2014-02-19 Tom Tromey <tromey@redhat.com>
12542 * target.h (struct target_ops) <to_terminal_inferior>: Add
12544 * target.c (target_terminal_inferior): Add argument.
12545 (update_current_target): Update.
12546 * remote.c (remote_terminal_inferior): Add 'self' argument.
12547 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12548 * inflow.c (terminal_inferior): Add 'self' argument.
12549 * inferior.h (terminal_inferior): Add 'self' argument.
12550 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12551 (go32_terminal_inferior): Add 'self' argument.
12553 2014-02-19 Tom Tromey <tromey@redhat.com>
12555 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12556 (target_terminal_init): Add argument.
12557 * target.c (debug_to_terminal_init): Add argument.
12558 (update_current_target): Update.
12559 * inflow.c (terminal_init_inferior): Add 'self' argument.
12560 * inferior.h (terminal_init_inferior): Add 'self' argument.
12561 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12562 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12564 2014-02-19 Tom Tromey <tromey@redhat.com>
12566 * target.h (struct target_ops)
12567 <to_can_accel_watchpoint_condition>: Add argument.
12568 (target_can_accel_watchpoint_condition): Add argument.
12569 * target.c (debug_to_can_accel_watchpoint_condition): Add
12571 (update_current_target): Update.
12572 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12575 2014-02-19 Tom Tromey <tromey@redhat.com>
12577 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12579 (target_region_ok_for_hw_watchpoint): Add argument.
12580 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12581 (default_region_ok_for_hw_watchpoint): Add argument.
12582 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12583 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12585 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12587 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12589 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12591 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12593 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12595 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12596 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12598 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12599 Add 'self' argument.
12601 2014-02-19 Tom Tromey <tromey@redhat.com>
12603 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12605 (target_insert_watchpoint): Add argument.
12606 * target.c (debug_to_insert_watchpoint): Add argument.
12607 (update_current_target): Update.
12608 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12609 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12610 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12611 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12612 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12613 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12615 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12616 (procfs_insert_hw_watchpoint): Add 'self' argument.
12617 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12619 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12621 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12623 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12624 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12626 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12629 2014-02-19 Tom Tromey <tromey@redhat.com>
12631 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12633 (target_remove_watchpoint): Add argument.
12634 * target.c (debug_to_remove_watchpoint): Add argument.
12635 (update_current_target): Update.
12636 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12637 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12638 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12639 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12640 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12641 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12643 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12644 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12646 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12648 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12650 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12651 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12653 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12656 2014-02-19 Tom Tromey <tromey@redhat.com>
12658 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12660 (target_remove_hw_breakpoint): Add argument.
12661 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12662 (update_current_target): Update.
12663 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12664 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12666 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12667 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12669 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12672 2014-02-19 Tom Tromey <tromey@redhat.com>
12674 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12676 (target_insert_hw_breakpoint): Add argument.
12677 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12678 (update_current_target): Update.
12679 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12680 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12682 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12683 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12684 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12686 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12689 2014-02-19 Tom Tromey <tromey@redhat.com>
12691 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12693 (target_can_use_hardware_watchpoint): Add argument.
12694 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12695 (update_current_target): Update.
12696 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12698 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12700 * remote.c (remote_check_watch_resources): Add 'self' argument.
12701 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12702 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12704 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12705 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12707 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12709 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12711 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12713 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12715 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12717 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12718 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12720 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12723 2014-02-19 Tom Tromey <tromey@redhat.com>
12725 * target.h (struct target_ops) <to_post_attach>: Add argument.
12726 (target_post_attach): Add argument.
12727 * target.c (debug_to_post_attach): Add argument.
12728 (update_current_target): Update.
12729 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12730 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12731 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12732 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12733 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12735 2014-02-19 Tom Tromey <tromey@redhat.com>
12737 * windows-nat.c (windows_close): Add 'self' argument.
12738 * tracepoint.c (tfile_close): Add 'self' argument.
12739 * target.h (struct target_ops) <to_close>: Add argument.
12740 * target.c (target_close): Add argument.
12741 (update_current_target): Update.
12742 * remote.c (remote_close): Add 'self' argument.
12743 * remote-sim.c (gdbsim_close): Add 'self' argument.
12744 * remote-mips.c (mips_close): Add 'self' argument.
12745 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12746 * record-full.c (record_full_close): Add 'self' argument.
12747 * record-btrace.c (record_btrace_close): Add 'self' argument.
12748 * monitor.h (monitor_close): Add 'self' argument.
12749 * monitor.c (monitor_close): Add 'self' argument.
12750 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12751 * linux-nat.c (linux_nat_close): Add argument.
12752 * go32-nat.c (go32_close): Add 'self' argument.
12753 * exec.c (exec_close_1): Add 'self' argument.
12754 * ctf.c (ctf_close): Add 'self' argument.
12755 * corelow.c (core_close): Add 'self' argument.
12756 (core_close_cleanup): Update.
12757 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12758 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12760 2014-02-19 Tom Tromey <tromey@redhat.com>
12762 * remote.c (remote_load): New function.
12763 (init_remote_ops): Use it.
12765 2014-02-19 Tom Tromey <tromey@redhat.com>
12767 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12769 * common/linux-btrace.h (linux_supports_btrace): Update.
12770 * remote.c (remote_supports_btrace): Add "self" argument.
12771 * target-delegates.c: Rebuild.
12772 * target.c (target_supports_btrace): Remove.
12773 * target.h (struct target_ops) <to_supports_btrace>: Add
12774 target_ops argument.
12775 (target_supports_btrace): New define.
12777 2014-02-19 Tom Tromey <tromey@redhat.com>
12779 * record-full.c (record_full_beneath_to_resume_ops)
12780 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12781 (record_full_beneath_to_wait)
12782 (record_full_beneath_to_store_registers_ops)
12783 (record_full_beneath_to_store_registers)
12784 (record_full_beneath_to_xfer_partial_ops)
12785 (record_full_beneath_to_xfer_partial)
12786 (record_full_beneath_to_insert_breakpoint_ops)
12787 (record_full_beneath_to_insert_breakpoint)
12788 (record_full_beneath_to_remove_breakpoint_ops)
12789 (record_full_beneath_to_remove_breakpoint)
12790 (record_full_beneath_to_stopped_by_watchpoint)
12791 (record_full_beneath_to_stopped_data_address)
12792 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12793 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12794 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12795 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12796 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12797 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12798 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12799 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12800 (record_full_resume, record_full_wait_1)
12801 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12802 (record_full_store_registers, record_full_xfer_partial)
12803 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12804 (record_full_async, record_full_core_xfer_partial): Use target
12806 * target-delegates.c: Rebuild.
12807 * target.c (current_xfer_partial): Remove.
12808 (update_current_target): Do not INHERIT or de_fault
12809 to_insert_breakpoint, to_remove_breakpoint,
12810 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12811 to_is_async_p, to_async. Do not set to_xfer_partial field.
12812 (default_xfer_partial): Simplify.
12813 (current_xfer_partial): Remove.
12814 (target_wait, target_resume): Simplify.
12815 (find_default_can_async_p, find_default_is_async_p): Update.
12816 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12817 to_xfer_partial, to_stopped_by_watchpoint,
12818 to_stopped_data_address.
12819 (target_store_registers): Simplify.
12820 (forward_target_remove_breakpoint)
12821 (forward_target_insert_breakpoint): Remove.
12822 (target_remove_breakpoint, target_insert_breakpoint)
12823 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12824 * target.h (struct target_ops) <to_resume, to_wait,
12825 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12826 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12827 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12829 (forward_target_remove_breakpoint)
12830 (forward_target_insert_breakpoint): Remove.
12831 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12833 (record_btrace_insert_breakpoint): Delegate directly.
12835 2014-02-19 Tom Tromey <tromey@redhat.com>
12838 * target-delegates.c: New file.
12839 * target.c: Include target-delegates.c.
12840 (init_dummy_target): Call install_dummy_methods.
12841 (complete_target_initialization): Call install_delegators.
12842 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12843 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12844 * make-target-delegates: New file.
12846 2014-02-19 Tom Tromey <tromey@redhat.com>
12848 * record.c (find_record_target): Use find_target_at.
12849 * target.c (find_target_at): New function.
12850 * target.h (find_target_at): Declare.
12852 2014-02-19 Tom Tromey <tromey@redhat.com>
12854 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12855 Add 'ops' argument.
12856 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12858 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12859 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12861 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12863 * linux-nat.c (save_sigtrap): Update.
12864 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12865 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12866 (linux_nat_close): Update.
12867 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12869 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12871 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12872 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12873 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12874 (tmp_to_async): Add 'ops' argument.
12875 (record_full_stopped_by_watchpoint, record_full_async)
12876 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12878 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12879 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12880 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12881 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12882 (remote_is_async_p, remote_async): Add 'ops' argument.
12883 (remote_stopped_data_address): Update.
12884 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12885 * target.c (update_current_target)
12886 (find_default_can_async_p, find_default_is_async_p): Update.
12887 (init_dummy_target): Update.
12888 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12889 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12890 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12891 (target_can_async_p, target_is_async_p, target_async)
12892 (target_stopped_by_watchpoint): Update.
12894 2014-02-19 Yao Qi <yao@codesourcery.com>
12897 * gdbarch.sh: Remove startup_gdbarch.
12898 * gdbarch.c: Regenerated.
12899 * gdbarch.h: Likewise.
12901 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12903 * rl78-tdep.c (rl78_g10_register_name): New function.
12904 (rl78_return_value): Add g10 support.
12905 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12908 2014-02-17 Doug Evans <xdje42@gmail.com>
12910 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12911 (SUBDIR_GUILE_SRCS): Ditto.
12912 (scm-gsmob.o): Ditto.
12914 2014-02-17 Yao Qi <yao@codesourcery.com>
12916 * gnu-nat.c (ILL_RPC): Declare defined function.
12918 2014-02-17 Yao Qi <yao@codesourcery.com>
12920 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12921 mach_msg_type_number_t.
12922 (gnu_write_inferior): Likewise.
12924 2014-02-17 Yao Qi <yao@codesourcery.com>
12926 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12928 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12929 (inf_validate_procs, inf_signal): Likewise.
12930 (S_exception_raise_request): Likewise.
12931 (do_mach_notify_dead_name): Likewise.
12932 (steal_exc_port): Likewise.
12933 (gnu_read_inferior): Change 'copy_count''s type to
12934 mach_msg_type_number_t.
12935 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12938 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12940 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12941 flag. Adjust all users; in particular...
12942 (gnu_wait): ..., don't decrement its value in here...
12943 (gnu_create_inferior): ..., and instead set the flag in here,
12944 around the startup_inferior call, and call that one with
12945 START_INFERIOR_TRAPS_EXPECTED.
12947 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12948 (ILL_RPC): ... new macro.
12949 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12950 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12951 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12952 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12953 functions with ILL_RPC macro.
12954 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12955 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12956 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12957 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12958 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12959 (S_proc_getlogin_reply, S_proc_getsid_reply)
12960 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12961 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12962 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12963 (S_proc_getnports_reply, S_proc_is_important_reply)
12964 (S_proc_get_code_reply): New stub functions, generated with
12967 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12968 collected the type check structures.
12970 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12972 2014-02-14 Doug Evans <dje@google.com>
12974 * target.c (target_write_partial): Fix result type.
12976 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12978 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12979 the proper offsets to access fpregset_t.
12981 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12983 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12984 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12985 * h8300-tdep.c (setmachinelist): Remove global.
12986 * hppa-tdep.c (hppa_sigtramp): Remove global.
12987 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12988 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12989 * ravenscar-thread.c (update_target_observer): Remove global.
12990 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12992 2014-02-12 Tom Tromey <tromey@redhat.com>
12994 * common/rsp-low.c: Update comments.
12995 * common/rsp-low.h: Update comments.
12997 2014-02-12 Tom Tromey <tromey@redhat.com>
12999 * common/rsp-low.c (convert_ascii_to_int): Remove.
13000 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13002 2014-02-12 Tom Tromey <tromey@redhat.com>
13004 * common/rsp-low.h (unhexify): Don't declare.
13005 * common/rsp-low.c (unhexify): Remove.
13007 2014-02-12 Tom Tromey <tromey@redhat.com>
13009 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13010 * common/rsp-low.c (convert_int_to_ascii): Remove.
13012 2014-02-12 Tom Tromey <tromey@redhat.com>
13014 * common/rsp-low.h (hexify): Don't declare.
13015 * common/rsp-low.c (hexify): Remove.
13017 2014-02-12 Tom Tromey <tromey@redhat.com>
13019 * common/rsp-low.c (hexify): Never take strlen of argument.
13021 2014-02-12 Tom Tromey <tromey@redhat.com>
13023 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13024 * remote.c (extended_remote_run, remote_rcmd)
13025 (remote_download_trace_state_variable, remote_save_trace_data)
13026 (remote_set_trace_notes): Update.
13027 * tracepoint.c (encode_source_string, tfile_write_status)
13028 (tfile_write_uploaded_tsv): Update.
13030 2014-02-12 Tom Tromey <tromey@redhat.com>
13032 * tracepoint.c: Include rsp-low.h.
13033 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13034 * remote.c: Include rsp-low.h.
13035 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13036 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13037 (remote_unescape_input): Move to common/rsp-low.c.
13038 * common/rsp-low.h: New file.
13039 * common/rsp-low.c: New file.
13040 * Makefile.in (SFILES): Add common/rsp-low.c.
13041 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13042 (COMMON_OBS): Add rsp-low.o.
13043 (rsp-low.o): New target.
13045 2014-02-12 Tom Tromey <tromey@redhat.com>
13047 * utils.h: Include print-utils.h.
13048 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13049 (int_string, core_addr_to_string, core_addr_to_string_nz)
13050 (hex_string, hex_string_custom): Don't declare.
13051 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13052 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13053 (hex_string_custom, int_string, core_addr_to_string)
13054 (core_addr_to_string_nz, host_address_to_string): Move to
13055 common/print-utils.c.
13056 * common/print-utils.h: New file.
13057 * common/print-utils.c: New file
13058 * Makefile.in (SFILES): Add common/print-utils.c.
13059 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13060 (COMMON_OBS): Add print-utils.o.
13061 (print-utils.o): New target.
13063 2014-02-12 Tom Tromey <tromey@redhat.com>
13065 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13067 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13069 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13071 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13073 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13074 if a PT_IO ptrace request returns sucessfully but indicates that 0
13075 bytes were transferred.
13077 2014-02-12 Pedro Alves <palves@redhat.com>
13078 Kevin Buettner <kevinb@redhat.com>
13080 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13081 TYPE_INSTANCE_FLAG_CODE_SPACE.
13083 2014-02-12 Pedro Alves <palves@redhat.com>
13085 * h8300-tdep.c (pseudo_from_raw_register)
13086 (raw_from_pseudo_register): New functions.
13087 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13090 2014-02-12 Pedro Alves <palves@redhat.com>
13092 * h8300-tdep.c (h8300_register_sim_regno): New function.
13093 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13094 gdbarch_register_sim_regno hook.
13096 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13098 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13100 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13102 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13104 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13106 * obsd-tdep.h (obsd_init_abi): New prototype.
13107 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13108 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13109 (obsd_init_abi): New functions.
13110 * i386obsd-tdep.c: Include "obsd-tdep.h".
13111 (i386obsd_init_abi): Call obsd_init_abi.
13112 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13113 (amd64obsd_init_abi): Call obsd_init_abi.
13114 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13115 obsd-tdep.c to gdb_target_obs.
13117 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13119 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13120 double float arguments to 16-byte in the argument slots.
13122 2014-02-11 Doug Evans <xdje42@gmail.com>
13124 * configure.ac: Don't crash if pkg-config is not found and guile
13125 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13127 * configure: Regenerate.
13129 2014-02-11 Yao Qi <yao@codesourcery.com>
13131 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13132 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13133 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13134 * gnu-nat.c (gnu_xfer_memory): Likewise.
13135 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13136 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13137 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13138 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13140 2014-02-11 Yao Qi <yao@codesourcery.com>
13142 * target.h (enum target_xfer_error): Rename to ...
13143 (enum target_xfer_status): ... it. New. All users updated.
13144 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13146 (TARGET_XFER_STATUS_ERROR_P): New macro.
13147 (target_xfer_error_to_string): Remove declaration.
13148 (target_xfer_status_to_string): Declare.
13149 (target_xfer_partial_ftype): Adjust it.
13150 (struct target_ops) <to_xfer_partial>: Return
13151 target_xfer_status. Add argument xfered_len. Update
13153 * target.c (target_xfer_error_to_string): Rename to ...
13154 (target_xfer_status_to_string): ... it. New. All callers
13156 (target_read_live_memory): Likewise. Call target_xfer_partial
13157 instead of target_read.
13158 (memory_xfer_live_readonly_partial): Return
13159 target_xfer_status. Add argument xfered_len.
13160 (raw_memory_xfer_partial): Likewise.
13161 (memory_xfer_partial_1): Likewise.
13162 (memory_xfer_partial): Likewise.
13163 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13164 properly. Update debug message.
13165 (default_xfer_partial, current_xfer_partial): Likewise.
13166 (target_write_partial): Likewise.
13167 (target_read_partial): Likewise. All callers updated.
13168 (read_whatever_is_readable): Likewise.
13169 (target_write_with_progress): Likewise.
13170 (target_read_alloc_1): Likewise.
13172 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13173 * auxv.c (procfs_xfer_auxv): Likewise.
13174 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13175 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13176 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13177 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13178 * corefile.c (read_memory): Adjust.
13179 * corelow.c (core_xfer_partial): Likewise.
13180 * ctf.c (ctf_xfer_partial): Likewise.
13181 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13183 (darwin_xfer_partial): Likewise.
13184 * exec.c (section_table_xfer_memory_partial): Likewise. All
13186 (exec_xfer_partial): Likewise.
13187 * exec.h (section_table_xfer_memory_partial): Update
13189 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13191 (gnu_xfer_partial): Likewise.
13192 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13193 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13194 (ia64_hpux_xfer_solib_got): Likewise.
13195 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13196 type of 'partial_len' to ULONGEST.
13197 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13198 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13199 (linux_nat_xfer_partial): Likewise.
13200 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13201 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13202 * monitor.c (monitor_xfer_memory): Likewise.
13203 (monitor_xfer_partial): Likewise.
13204 * procfs.c (procfs_xfer_partial): Likewise.
13205 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13206 * record-full.c (record_full_xfer_partial): Likewise.
13207 (record_full_core_xfer_partial): Likewise.
13208 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13209 (gdbsim_xfer_partial): Likewise.
13210 * remote.c (remote_write_bytes_aux): Likewise. All callers
13212 (remote_write_bytes, remote_read_bytes): Likewise. All
13214 (remote_flash_erase): Likewise. All callers updated.
13215 (remote_write_qxfer): Likewise. All callers updated.
13216 (remote_read_qxfer): Likewise. All callers updated.
13217 (remote_xfer_partial): Likewise.
13218 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13219 (rs6000_xfer_shared_libraries): Likewise.
13220 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13221 (sol_thread_xfer_partial): Likewise.
13222 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13223 (sparc_xfer_partial): Likewise.
13224 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13226 (spu_xfer_partial): Likewise.
13227 * spu-multiarch.c (spu_xfer_partial): Likewise.
13228 * tracepoint.c (tfile_xfer_partial): Likewise.
13229 * windows-nat.c (windows_xfer_memory): Likewise.
13230 (windows_xfer_shared_libraries): Likewise.
13231 (windows_xfer_partial): Likewise.
13232 * valprint.c: Replace 'target_xfer_error' with
13233 'target_xfer_status' in comments.
13235 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13237 Checked in by Joel Brobecker <brobecker@adacore.com>.
13238 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13240 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13242 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13243 function parameters.
13245 2014-02-10 Will Newton <will.newton@linaro.org>
13247 * elfread.c (elf_rel_plt_read): Look for a .got section if
13248 looking up .got.plt fails.
13249 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13250 on address passed to elf_gnu_ifunc_record_cache.
13251 (elf_gnu_ifunc_resolve_addr): Likewise.
13252 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13254 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13256 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13257 (X_RETTURN): New macro.
13258 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13260 * sparc64-tdep.c (sparc64_init_abi): Hook
13261 sparc_in_function_epilogue_p.
13263 2014-02-10 Gary Benson <gbenson@redhat.com>
13265 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13266 Rename name_matcher to symbol_matcher.
13268 2014-02-10 Gary Benson <gbenson@redhat.com>
13270 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13271 Use expand_symtabs_file_matcher_ftype and
13272 expand_symtabs_symbol_matcher_ftype.
13274 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13276 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13277 (struct ada_symbol_cache): New.
13278 (ada_free_symbol_cache): Forward declare.
13279 (struct ada_pspace_data): New.
13280 (ada_pspace_data_handle): New static global.
13281 (get_ada_pspace_data, ada_pspace_data_cleanup)
13282 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13283 (cache_space, cache): Delete, now folded inside struct
13285 (ada_get_symbol_cache): New function.
13286 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13288 (_initialize_ada_language): Remove initialization of cache_space.
13289 Move call to observer_attach_inferior_exit up, grouping it
13290 with the other observer registrations inside this function.
13291 Rename command to be more general. Add call to
13292 register_program_space_data_with_cleanup.
13294 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13296 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13297 ada_new_objfile_observer.
13298 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13299 (_initialize_tasks): Update uses of ada_new_objfile_observer
13300 and ada_tasks_normal_stop_observer.
13302 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13304 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13305 returned by the 'Length attribute to integer.
13307 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13309 * ada-lang.c (_initialize_ada_language): Initialize
13310 cache_space obstack.
13312 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13314 * ada-lang.c (HASH_SIZE): New macro.
13315 (struct cache_entry): New type.
13316 (cache_space, cache): New static globals.
13317 (ada_clear_symbol_cache, find_entry): New functions.
13318 (lookup_cached_symbol, cache_symbol): Implement.
13319 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13320 (_initialize_ada_language): Attach ada_new_objfile_observer
13321 and ada_free_objfile_observer.
13323 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13325 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13326 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13327 struct block * parameter.
13328 (ada_lookup_symbol_list_worker): Constify local variable "block".
13329 Remove cast which is no longer necessary.
13331 2014-02-10 Doug Evans <xdje42@gmail.com>
13333 Add Guile as an extension language.
13334 * NEWS: Mention Guile scripting.
13335 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13336 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13337 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13338 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13339 (CLIBS): Add GUILE_LIBS.
13340 (install-guile): New rule.
13341 (guile.o): New rule.
13342 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13343 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13344 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13345 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13346 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13347 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13348 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13349 * configure.ac: New option --with-guile.
13350 * configure: Regenerate.
13351 * config.in: Regenerate.
13352 * auto-load.c: Remove #include "python/python.h". Add #include
13353 "gdb/section-scripts.h".
13354 (source_section_scripts): Handle Guile scripts.
13355 (_initialize_auto_load): Add name of Guile objfile script to
13356 scripts-directory help text.
13357 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13358 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13359 (struct breakpoint): New member scm_bp_object.
13360 * defs.h (enum command_control_type): New value guile_control.
13361 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13363 (show_user): Update comment.
13364 (_initialize_cli_cmds): Update help text for "show user". Update help
13365 text for max-user-call-depth.
13366 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13368 (multi_line_command_p): Add guile_control.
13369 (print_command_lines): Handle guile_control.
13370 (execute_control_command, recurse_read_control_structure): Ditto.
13371 (process_next_line): Recognize "guile" commands.
13372 * disasm.c (gdb_disassemble_info): Make non-static.
13373 * disasm.h: #include "dis-asm.h".
13374 (struct gdbarch): Add forward decl.
13375 (gdb_disassemble_info): Declare.
13376 * extension.c: #include "guile/guile.h".
13377 (extension_languages): Add guile.
13378 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13379 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13380 * gdbtypes.c (get_unsigned_type_max): New function.
13381 (get_signed_type_minmax): New function.
13382 * gdbtypes.h (get_unsigned_type_max): Declare.
13383 (get_signed_type_minmax): Declare.
13384 * guile/README: New file.
13385 * guile/guile-internal.h: New file.
13386 * guile/guile.c: New file.
13387 * guile/guile.h: New file.
13388 * guile/scm-arch.c: New file.
13389 * guile/scm-auto-load.c: New file.
13390 * guile/scm-block.c: New file.
13391 * guile/scm-breakpoint.c: New file.
13392 * guile/scm-disasm.c: New file.
13393 * guile/scm-exception.c: New file.
13394 * guile/scm-frame.c: New file.
13395 * guile/scm-gsmob.c: New file.
13396 * guile/scm-iterator.c: New file.
13397 * guile/scm-lazy-string.c: New file.
13398 * guile/scm-math.c: New file.
13399 * guile/scm-objfile.c: New file.
13400 * guile/scm-ports.c: New file.
13401 * guile/scm-pretty-print.c: New file.
13402 * guile/scm-safe-call.c: New file.
13403 * guile/scm-string.c: New file.
13404 * guile/scm-symbol.c: New file.
13405 * guile/scm-symtab.c: New file.
13406 * guile/scm-type.c: New file.
13407 * guile/scm-utils.c: New file.
13408 * guile/scm-value.c: New file.
13409 * guile/lib/gdb.scm: New file.
13410 * guile/lib/gdb/boot.scm: New file.
13411 * guile/lib/gdb/experimental.scm: New file.
13412 * guile/lib/gdb/init.scm: New file.
13413 * guile/lib/gdb/iterator.scm: New file.
13414 * guile/lib/gdb/printing.scm: New file.
13415 * guile/lib/gdb/types.scm: New file.
13416 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13417 (VPATH): Add $(GUILE_SRCDIR).
13418 (GUILE_DIR): New variable.
13419 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13420 (all): Add stamp-guile dependency.
13421 (stamp-guile): New rule.
13422 (clean-guile, install-guile, uninstall-guile): New rules.
13423 (install-only): Add install-guile dependency.
13424 (uninstall): Add uninstall-guile dependency.
13425 (clean): Add clean-guile dependency.
13427 2014-02-09 Doug Evans <xdje42@gmail.com>
13429 Revert this patch (which I approved, mea culpa).
13431 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13433 * Makefile.in (all-lib): Remove.
13434 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13436 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13438 Fix Python stack corruption.
13439 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13442 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13444 * Makefile.in (all-lib): Remove.
13445 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13447 2014-02-07 Doug Evans <dje@google.com>
13449 * extension-priv.h (extension_language_script_ops): Add comment.
13450 (extension_language_ops): Add comment.
13451 (active_ext_lang_state): Fix typo in comment.
13453 2014-02-07 Pedro Alves <palves@redhat.com>
13455 PR breakpoints/16292
13456 * infrun.c (handle_signal_stop) <signal arrives while stepping
13457 over a breakpoint>: Switch back to the stepping thread.
13459 2014-02-07 Yao Qi <yao@codesourcery.com>
13461 * target.c (target_xfer_partial): Return zero if LEN is zero.
13463 2014-02-07 Yao Qi <yao@codesourcery.com>
13465 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13466 (ld_so_xfer_auxv): Likewise.
13467 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13468 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13469 * corelow.c (core_xfer_partial): Likewise.
13470 * ctf.c (ctf_xfer_partial): Likewise.
13471 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13472 (darwin_xfer_partial): Likewise.
13473 * exec.c (exec_xfer_partial): Likewise.
13474 * gnu-nat.c (gnu_xfer_partial): Likewise.
13475 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13476 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13477 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13478 * linux-nat.c (linux_xfer_siginfo): Likewise.
13479 (linux_proc_xfer_spu): Likewise.
13480 * procfs.c (procfs_xfer_partial): Likewise.
13481 * record-full.c (record_full_xfer_partial): Likewise.
13482 (record_full_core_xfer_partial): Likewise.
13483 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13484 * remote.c (remote_write_qxfer): Likewise.
13485 (remote_write_qxfer, remote_read_qxfer): Likewise.
13486 (remote_xfer_partial): Likewise.
13487 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13488 (rs6000_xfer_shared_libraries): Likewise.
13489 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13490 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13491 (spu_xfer_partial): Likewise.
13492 * target.c (memory_xfer_partial_1): Likewise.
13493 * tracepoint.c (tfile_xfer_partial): Likewise.
13494 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13495 (windows_xfer_partial): Likewise.
13497 2014-02-07 Yao Qi <yao@codesourcery.com>
13499 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13501 (core_xfer_shared_libraries_aix): Likewise.
13502 * gdbarch.c, gdbarch.h: Regenerated.
13503 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13504 ULONGEST. Change 'len_avail' type to ULONGEST.
13505 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13506 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13508 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13510 2014-02-07 Yao Qi <yao@codesourcery.com>
13512 * corefile.c (memory_error): Get 'exception' from ERR and pass
13513 'exception' to throw_error.
13515 2014-02-06 Doug Evans <xdje42@gmail.com>
13517 * configure.ac (libpython checking): Remove all but python.o from
13518 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13519 * configure: Regenerate.
13521 * Makefile.in (SFILES): Add extension.c.
13522 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13523 (COMMON_OBS): Add extension.o.
13524 * extension.h: New file.
13525 * extension-priv.h: New file.
13526 * extension.c: New file.
13528 * python/python-internal.h: #include "extension.h".
13529 (gdbpy_auto_load_enabled): Declare.
13530 (gdbpy_apply_val_pretty_printer): Declare.
13531 (gdbpy_apply_frame_filter): Declare.
13532 (gdbpy_preserve_values): Declare.
13533 (gdbpy_breakpoint_cond_says_stop): Declare.
13534 (gdbpy_breakpoint_has_cond): Declare.
13535 (void source_python_script_for_objfile): Delete.
13536 * python/python.c: #include "extension-priv.h".
13537 Delete inclusion of "observer.h".
13538 (extension_language_python): Moved here and renamed from
13539 script_language_python in py-auto-load.c.
13540 Redefined to be of type extension_language_defn.
13541 (python_extension_script_ops): New global.
13542 (python_extension_ops): New global.
13543 (struct python_env): New member previous_active.
13544 (restore_python_env): Call restore_active_ext_lang.
13545 (ensure_python_env): Call set_active_ext_lang.
13546 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13548 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13550 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13552 (gdbpy_eval_from_control_command): Renamed from
13553 eval_python_from_control_command, made static. New arg extlang.
13554 (gdbpy_source_script) Renamed from source_python_script, made static.
13556 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13557 result to int. New arg extlang.
13558 (gdbpy_source_objfile_script): Renamed from
13559 source_python_script_for_objfile, made static. New arg extlang.
13560 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13561 static. New args extlang, extlang_printers. Change result type to
13563 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13564 static. New arg extlang. Rename arg printers to extlang_printers
13565 and change type to ext_lang_type_printers *.
13566 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13567 static. Replace argument arg with extlang, extlang_printers.
13568 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13569 (!HAVE_PYTHON, source_python_script): Delete.
13570 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13571 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13572 (!HAVE_PYTHON, start_type_printers): Delete.
13573 (!HAVE_PYTHON, apply_type_printers): Delete.
13574 (!HAVE_PYTHON, free_type_printers): Delete.
13575 (_initialize_python): Delete call to observer_attach_before_prompt.
13576 (finalize_python): Set/restore active extension language.
13577 (gdbpy_finish_initialization) Renamed from
13578 finish_python_initialization, made static. New arg extlang.
13579 (gdbpy_initialized): New function.
13580 * python/python.h: #include "extension.h". Delete #include
13581 "value.h", "mi/mi-cmds.h".
13582 (extension_language_python): Declare.
13583 (GDBPY_AUTO_FILE_NAME): Delete.
13584 (enum py_bt_status): Moved to extension.h and renamed to
13585 ext_lang_bt_status.
13586 (enum frame_filter_flags): Moved to extension.h.
13587 (enum py_frame_args): Moved to extension.h and renamed to
13588 ext_lang_frame_args.
13589 (finish_python_initialization): Delete.
13590 (eval_python_from_control_command): Delete.
13591 (source_python_script): Delete.
13592 (apply_val_pretty_printer): Delete.
13593 (apply_frame_filter): Delete.
13594 (preserve_python_values): Delete.
13595 (gdbpy_script_language_defn): Delete.
13596 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13597 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13599 * auto-load.c: #include "extension.h".
13600 (GDB_AUTO_FILE_NAME): Delete.
13601 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13602 (script_language_gdb): Delete, moved to extension.c and renamed to
13603 extension_language_gdb.
13604 (source_gdb_script_for_objfile): Delete.
13605 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13606 (loaded_script): Change type of language member to
13607 struct extension_language_defn *.
13608 (init_loaded_scripts_info): Initialize
13609 unsupported_script_warning_printed.
13610 (maybe_add_script): Make static. Change type of language arg to
13611 struct extension_language_defn *.
13612 (clear_section_scripts): Reset unsupported_script_warning_printed.
13613 (auto_load_objfile_script_1): Rewrite to use extension language API.
13614 (auto_load_objfile_script): Make public. Remove support-compiled-in
13615 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13616 (source_section_scripts): Rewrite to use extension language API.
13617 (load_auto_scripts_for_objfile): Rewrite to use
13618 auto_load_scripts_for_objfile.
13619 (collect_matching_scripts_data): Change type of language member to
13620 struct extension_language_defn *.
13621 (auto_load_info_scripts): Change type of language arg to
13622 struct extension_language_defn *.
13623 (unsupported_script_warning_print): New function.
13624 (script_not_found_warning_print): Make static.
13625 (_initialize_auto_load): Rewrite construction of scripts-directory
13627 * auto-load.h (struct objfile): Add forward decl.
13628 (struct script_language): Delete.
13629 (struct auto_load_pspace_info): Add forward decl.
13630 (struct extension_language_defn): Add forward decl.
13631 (maybe_add_script): Delete.
13632 (auto_load_objfile_script): Declare.
13633 (script_not_found_warning_print): Delete.
13634 (auto_load_info_scripts): Update prototype.
13635 (auto_load_gdb_scripts_enabled): Declare.
13636 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13637 auto_load_python_scripts_enabled and made public.
13638 (script_language_python): Delete, moved to python.c.
13639 (gdbpy_script_language_defn): Delete.
13640 (info_auto_load_python_scripts): Update to use
13641 extension_language_python.
13643 * breakpoint.c (condition_command): Replace call to
13644 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13645 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13646 with call to breakpoint_ext_lang_cond_says_stop.
13647 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13648 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13649 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13650 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13652 (local_setattro): Print name of extension language with existing
13655 * valprint.c (val_print, value_print): Update to call
13656 apply_ext_lang_val_pretty_printer.
13657 * cp-valprint.c (cp_print_value): Update call to
13658 apply_ext_lang_val_pretty_printer.
13659 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13660 (gdbpy_apply_val_pretty_printer): Renamed from
13661 apply_val_pretty_printer. New arg extlang.
13662 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13664 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13665 extension language API.
13666 * cli/cli-script.c (execute_control_command): Update to call
13667 eval_ext_lang_from_control_command.
13669 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13670 enum ext_lang_bt_status values. Update call to
13671 apply_ext_lang_frame_filter.
13672 (mi_cmd_stack_list_locals): Ditto.
13673 (mi_cmd_stack_list_args): Ditto.
13674 (mi_cmd_stack_list_variables): Ditto.
13675 * mi/mi-main.c: Delete #include "python/python-internal.h".
13676 Add #include "extension.h".
13677 (mi_cmd_list_features): Replace reference to python internal variable
13678 gdb_python_initialized with call to ext_lang_initialized_p.
13680 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13681 Update to use enum ext_lang_frame_args. Update to call
13682 apply_ext_lang_frame_filter.
13683 * python/py-framefilter.c (extract_sym): Update to use enum
13684 ext_lang_bt_status.
13685 (extract_value, py_print_type, py_print_value): Ditto.
13686 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13687 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13688 (py_print_frame): Ditto.
13689 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13690 New arg extlang. Update to use enum ext_lang_bt_status.
13692 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13693 finish_python_initialization. Replace with call to
13694 finish_ext_lang_initialization.
13696 * typeprint.c (do_free_global_table): Update to call
13697 free_ext_lang_type_printers.
13698 (create_global_typedef_table): Update to call
13699 start_ext_lang_type_printers.
13700 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13701 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13702 (type_print_options): Change type of global_printers from "void *"
13703 to "struct ext_lang_type_printers *".
13705 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13706 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13707 (gdbpy_preserve_values): Renamed from preserve_python_values.
13709 (!HAVE_PYTHON, preserve_python_values): Delete.
13711 * utils.c (quit_flag): Delete, moved to extension.c.
13712 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13715 * eval.c: Delete #include "python/python.h".
13716 * main.c: Delete #include "python/python.h".
13718 * defs.h: Update comment.
13720 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13724 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13726 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13729 2014-02-05 Yao Qi <yao@codesourcery.com>
13731 * remote.c (remote_pass_signals): Remove local 'buf' and use
13733 (remote_program_signals): Likewise.
13735 2014-02-05 Yao Qi <yao@codesourcery.com>
13737 * ctf.c: Include "inferior.h" and "gdbthread.h".
13738 (CTF_PID): A new macro.
13739 (ctf_open): Call inferior_appeared and add_thread_silent.
13740 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13741 (ctf_thread_alive): New function.
13742 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13744 2014-02-05 Yao Qi <yao@codesourcery.com>
13748 2013-05-24 Yao Qi <yao@codesourcery.com>
13750 * tracepoint.c (TFILE_PID): Remove.
13751 (tfile_open): Don't add thread and inferior.
13752 (tfile_close): Don't set 'inferior_ptid'. Don't call
13753 exit_inferior_silent.
13754 (tfile_thread_alive): Remove.
13755 (init_tfile_ops): Don't set field 'to_thread_alive' of
13758 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13760 * remote.c (remote_start_remote): Call remote_check_symbols even
13761 if only symbol-file (not file) has been given.
13763 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13765 * gdbarch.sh (skip_entrypoint): New callback.
13766 * gdbarch.c, gdbarch.h: Regenerate.
13767 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13768 * infrun.c (fill_in_stop_func): Likewise.
13769 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13770 (ppc_elfv2_elf_make_msymbol_special): New function.
13771 (ppc_elfv2_skip_entrypoint): Likewise.
13772 (ppc_linux_init_abi): Install them for ELFv2.
13774 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13776 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13777 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13778 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13779 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13780 structures returned in GPRs.
13782 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13784 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13785 offset to the stack parameter list for the ELFv2 ABI.
13787 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13789 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13790 set_gdbarch_convert_from_func_ptr_addr and
13791 set_gdbarch_elf_make_msymbol_special for ELFv1.
13792 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13793 function descriptors on ELFv1.
13794 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13795 set up r12 at function entry.
13797 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13799 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13800 (struct gdbarch_tdep): New member elf_abi.
13802 * rs6000-tdep.c: Include "elf/ppc64.h".
13803 (rs6000_gdbarch_init): Detect ELF ABI version.
13805 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13807 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13808 within a register pair holding a DFP 128-bit value on little-endian.
13809 (ppc64_sysv_abi_return_value_base): Likewise.
13810 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13811 (dfp_pseudo_register_write): Likewise.
13813 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13815 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13816 offset on little-endian when passing _Decimal32.
13817 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13819 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13821 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13822 of the overlapped FP register within the VSX register on little-
13824 (efpr_pseudo_register_write): Likewise.
13826 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13828 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13829 offset on little-endian when passing small structures.
13831 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13833 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13834 (struct ppc64_sysv_argpos): New data structure.
13835 (ppc64_sysv_abi_push_float): Remove.
13836 (ppc64_sysv_abi_push_val): New function.
13837 (ppc64_sysv_abi_push_integer): Likewise.
13838 (ppc64_sysv_abi_push_freg): Likewise.
13839 (ppc64_sysv_abi_push_vreg): Likewise.
13840 (ppc64_sysv_abi_push_param): Likewise.
13841 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13842 (ppc64_sysv_abi_return_value_base): New function.
13843 (ppc64_sysv_abi_return_value): Refactor to use it.
13845 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13847 * NEWS: Document new target powerpc64le-*-linux*.
13849 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13851 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13852 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13854 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13855 register set used in ELF core dumps. Add floating-point register set.
13857 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13859 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13860 dwarf2_to_gdb[] table using symbolic constants. Adjust
13861 penultimate entry from number representing the PC register
13862 to symbolic constant representing the MDR register. Add
13863 constant for the PC register to the end of the table.
13865 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13867 * bsd-kvm.c: Include <sys/param.h>
13869 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13871 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13873 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13875 * ada-lang.h (clear_ada_sym_cache): Delete.
13877 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13879 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13881 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13883 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13884 the sigreturn register save area only if the syscall is
13887 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13889 * valops.c (value_slice): Minor reformatting.
13891 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13893 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13895 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13897 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13898 New static globals.
13899 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13900 (ada_ignore_descriptive_types_p): New static global.
13901 (find_parallel_type_by_descriptive_type): Return immediately
13902 if ada_ignore_descriptive_types_p is set.
13903 (_initialize_ada_language): Register new commands "maintenance
13904 set ada", "maintenance show ada", "maintenance set ada
13905 ignore-descriptive-types" and "maintenance show ada
13906 ignore-descriptive-types".
13907 * NEWS: Add entry for new "maint ada set/show
13908 ignore-descriptive-types" commands.
13910 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13912 * record-btrace.c (record_btrace_close): Call btrace_teardown
13915 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13917 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13920 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13922 * ada-typeprint (type_is_full_subrange_of_target_type):
13924 (print_range): Add parameter bounds_prefered_p. If not set,
13925 try printing range types using the name of their base type.
13926 (print_range_type): Add parameter bounds_prefered_p.
13927 Use it in call to print_range.
13928 (print_array_type, ada_print_type): Update calls to print_range
13929 and print_range_type.
13931 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13933 * ada-typeprint.c (print_array_type, print_choices, print_range)
13934 (print_range_bound, print_dynamic_range_bound, print_range_type):
13935 Remove declaration.
13937 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13939 * ada-typeprint.c (print_range): Add missing empty line
13940 after local declaration.
13942 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13944 * ada-valprint.c (print_optional_low_bound): Get index_type's
13945 target type for as long as it is a TYPE_CODE_RANGE.
13947 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13949 * procfs.c (procfs_make_note_section): Remove assertion and
13950 associated comment.
13952 2014-01-24 Yao Qi <yao@codesourcery.com>
13954 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13955 * corelow.c (get_core_siginfo): Likewise.
13957 2014-01-24 Yao Qi <yao@codesourcery.com>
13959 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13960 ULONGEST. Don't check 'len' is negative.
13961 (remote_write_bytes): Change type of 'len' to ULONGEST.
13963 2014-01-23 Tom Tromey <tromey@redhat.com>
13966 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13967 Handle exception from frame.block.
13968 (FrameVars.fetch_frame_locals): Likewise.
13970 2014-01-23 Tom Tromey <tromey@redhat.com>
13973 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13974 on a NULL pointer. Move "goto error" to correct place.
13976 2014-01-23 Tom Tromey <tromey@redhat.com>
13979 * python/py-framefilter.c (apply_frame_filter): Call
13980 ensure_python_env after computing gdbarch.
13982 2014-01-23 Yao Qi <yao@codesourcery.com>
13984 * target.c (raw_memory_xfer_partial): Change argument type
13985 from void * to gdb_byte *.
13986 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13988 2014-01-22 Doug Evans <dje@google.com>
13990 New gdbserver option --debug-format=timestamp.
13991 * NEWS: Mention it.
13993 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13995 * syscalls/s390x-linux.xml: New file.
13996 * syscalls/s390-linux.xml: New file.
13997 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13998 (XML_SYSCALL_FILENAME_S390X): Likewise.
13999 (op_svc): New enum value for SVC opcode.
14000 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14001 (s390_linux_get_syscall_number): New function.
14002 (s390_gdbarch_init): Register '*get_syscall_number' and the
14003 syscall xml file name.
14004 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14005 "s390-linux.xml" and "s390x-linux.xml".
14006 * NEWS: Announce new feature.
14008 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14010 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14012 2014-01-22 Pedro Alves <palves@redhat.com>
14014 * xtensa-config.c: Include defs.h.
14016 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14018 * common/common-utils.h: Add "ARI:" comment beside __func__
14021 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14023 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14024 documentation a bit.
14026 2014-01-21 Roland McGrath <mcgrathr@google.com>
14028 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14029 * configure: Regenerate.
14030 * aclocal.m4: Regenerate.
14031 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14032 New substituted variables.
14033 (install-strip): New target.
14034 (INSTALL_SCRIPT): New substituted variable.
14035 (FLAGS_TO_PASS): Add it.
14036 (install-only): Use $(INSTALL_SCRIPT) rather than
14037 $(INSTALL_PROGRAM) for gcore.
14039 2014-01-20 Tom Tromey <tromey@redhat.com>
14041 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14044 2014-01-20 Tom Tromey <tromey@redhat.com>
14046 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14047 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14048 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14049 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14050 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14051 (struct cmd_list_element) <flags>: Remove.
14052 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14053 doc_allocated>: New fields.
14054 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14056 * maint.c (maintenance_do_deprecate): Update.
14057 * top.c (execute_command): Update.
14059 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14061 * xtensa-linux-nat.c: Include asm/ptrace.h.
14063 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14065 * Makefile.in (SFILES): Add d-support.c.
14066 (COMMON_OBS): Add d-support.o.
14067 * d-lang.h (d_parse_symbol): Add comment, now defined in
14069 * d-lang.c (parse_call_convention)
14070 (parse_attributes, parse_function_types)
14071 (parse_function_args, parse_type, parse_identifier)
14072 (call_convention_p, d_parse_symbol): Move functions to ...
14073 * d-support.c: ... New file.
14075 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14077 * d-lang.h (d_parse_symbol): Add declaration.
14078 * d-lang.c (extract_identifiers)
14079 (extract_type_info): Remove functions.
14080 (parse_call_convention, parse_attributes)
14081 (parse_function_types, parse_function_args)
14082 (parse_type, parse_identifier, call_convention_p)
14083 (d_parse_symbol): New functions.
14084 (d_demangle): Use d_parse_symbol to demangle D symbols.
14086 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14088 * d-lang.h (struct builtin_d_type): New data type.
14089 (builtin_d_type): Add declaration.
14090 * d-lang.c (d_language_arch_info, build_d_types)
14091 (builtin_d_type): New functions.
14092 (enum d_primitive_types): New data type.
14093 (d_language_defn): Change c_language_arch_info to
14094 d_language_arch_info.
14095 (d_type_data): New static variable.
14096 (_initialize_d_language): Initialize d_type_data.
14098 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14100 * d-lang.h (d_main_name): Add declaration.
14101 * d-lang.c (d_main_name): New function.
14102 * symtab.c (find_main_name): Add call to d_main_name.
14104 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14106 * d-lang.c (d_language_defn): Change macro_expansion_c to
14107 macro_expansion_no.
14109 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14111 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14113 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14115 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14116 gdb_exception" declaration.
14117 * remote.c (getpkt_or_notif_sane): Likewise.
14119 2014-01-17 Doug Evans <dje@google.com>
14121 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14122 function, contents of dirnames_to_char_ptr_vec_append moved here.
14123 (delim_string_to_char_ptr_vec): New function.
14124 (dirnames_to_char_ptr_vec_append): Rewrite.
14125 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14127 2014-01-17 Doug Evans <dje@google.com>
14129 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14131 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14132 #include "common-utils.h".
14133 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14134 * common/vec.h (VEC_ASSERT_PASS): Update.
14135 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14136 (MACH_CHECK_ERROR): Update.
14138 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14140 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14142 * gdbarch.h: Regenerate.
14144 2014-01-16 Tom Tromey <tromey@redhat.com>
14146 * value.c (struct value) <regnum>: Move earlier.
14148 2014-01-16 Tom Tromey <tromey@redhat.com>
14150 * remote.c (extended_remote_create_inferior): Rename from
14151 extended_remote_create_inferior_1. Add "ops" argument. Remove
14152 old implementation.
14154 2014-01-16 Pedro Alves <palves@redhat.com>
14156 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14157 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14160 2014-01-16 Doug Evans <dje@google.com>
14162 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14164 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14166 * btrace.h (btrace_thread_flag): New.
14167 (struct btrace_thread_info) <flags>: New.
14168 * record-btrace.c (record_btrace_resume_thread)
14169 (record_btrace_find_thread_to_move, btrace_step_no_history)
14170 (btrace_step_stopped, record_btrace_start_replaying)
14171 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14172 (record_btrace_find_resume_thread): New.
14173 (record_btrace_resume, record_btrace_wait): Extend.
14174 (record_btrace_can_execute_reverse): New.
14175 (record_btrace_open): Fail in non-stop mode.
14176 (record_btrace_set_replay): Split into this, ...
14177 (record_btrace_stop_replaying): ... this, ...
14178 (record_btrace_clear_histories): ... and this.
14179 (init_record_btrace_ops): Init to_can_execute_reverse.
14180 * NEWS: Announce it.
14182 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14184 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14185 (forward_target_decr_pc_after_break)
14186 (target_decr_pc_after_break): New.
14187 * target.c (forward_target_decr_pc_after_break)
14188 (target_decr_pc_after_break): New.
14189 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14190 instead of gdbarch_decr_pc_after_break.
14191 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14192 instead of gdbarch_decr_pc_after_break.
14193 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14194 instead of gdbarch_decr_pc_after_break.
14195 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14196 instead of gdbarch_decr_pc_after_break.
14197 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14198 instead of gdbarch_decr_pc_after_break.
14199 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14200 instead of gdbarch_decr_pc_after_break.
14202 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14204 * btrace.c: Include regcache.h.
14205 (btrace_add_pc): New.
14206 (btrace_enable): Call btrace_add_pc.
14207 (btrace_is_empty): New.
14208 * btrace.h (btrace_is_empty): New.
14209 * record-btrace.c (require_btrace, record_btrace_info): Call
14212 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14214 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14215 Support delta reads.
14216 (linux_disable_btrace): Change return type.
14217 * common/linux-btrace.h (linux_read_btrace): Change parameters
14218 and return type to allow error reporting. Update users.
14219 (linux_disable_btrace): Change return type. Update users.
14220 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14222 (btrace_error): New.
14223 (btrace_block) <begin>: Comment on BEGIN == 0.
14224 * btrace.c (btrace_compute_ftrace): Start from the end of
14226 (btrace_stitch_trace, btrace_clear_history): New.
14227 (btrace_fetch): Read delta trace, return if replaying.
14228 (btrace_clear): Move clear history code to btrace_clear_history.
14229 (parse_xml_btrace): Throw an error if parsing failed.
14230 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14231 and return type to allow error reporting.
14232 (target_read_btrace): Change parameters and return type to allow
14234 * target.c (target_read_btrace): Update.
14235 * remote.c (remote_read_btrace): Support delta reads. Pass
14237 * NEWS: Announce it.
14239 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14241 * record.h (record_btrace_frame_unwind)
14242 (record_btrace_tailcall_frame_unwind): New declarations.
14243 * dwarf2-frame: Include record.h
14244 (dwarf2_frame_cfa): Throw an error for btrace frames.
14245 * record-btrace.c: Include hashtab.h.
14246 (btrace_get_bfun_name): New.
14247 (btrace_call_history): Call btrace_get_bfun_name.
14248 (struct btrace_frame_cache): New.
14250 (bfcache_hash, bfcache_eq, bfcache_new): New.
14251 (btrace_get_frame_function): New.
14252 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14253 (record_btrace_frame_this_id): Compute own id.
14254 (record_btrace_frame_prev_register): Provide PC, throw_error
14255 for all other registers.
14256 (record_btrace_frame_sniffer): Detect btrace frames.
14257 (record_btrace_tailcall_frame_sniffer): New.
14258 (record_btrace_frame_dealloc_cache): New.
14259 (record_btrace_frame_unwind): Add new functions.
14260 (record_btrace_tailcall_frame_unwind): New.
14261 (_initialize_record_btrace): Allocate cache.
14262 * btrace.c (btrace_clear): Call reinit_frame_cache.
14263 * NEWS: Announce it.
14265 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14267 * record-btrace.c (record_btrace_set_replay)
14268 (record_btrace_goto_begin, record_btrace_goto_end)
14269 (record_btrace_goto): New.
14270 (init_record_btrace_ops): Initialize them.
14271 * NEWS: Announce it.
14273 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14275 * record-btrace.c (record_btrace_find_new_threads)
14276 (record_btrace_thread_alive): New.
14277 (init_record_btrace_ops): Initialize to_find_new_threads and
14280 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14282 * record-btrace.c (record_btrace_resume): New.
14283 (record_btrace_wait): New.
14284 (init_record_btrace_ops): Initialize to_wait and to_resume.
14286 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14288 * record-btrace.c (record_btrace_xfer_partial)
14289 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14290 (record_btrace_allow_memory_access): New.
14291 (init_record_btrace_ops): Initialize new methods.
14292 * target.c (raw_memory_xfer_partial): Bail out if target reports
14293 that this memory is not available.
14295 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14297 * target.h (target_ops) <to_insert_breakpoint>
14298 <to_remove_breakpoint>: Add target_ops parameter.
14299 (forward_target_insert_breakpoint): New.
14300 (forward_target_remove_breakpoint): New.
14301 (memory_remove_breakpoint, memory_insert_breakpoint):
14302 Add target_ops parameter.
14303 * target.c (target_insert_breakpoint): Split into this and ...
14304 (forward_target_insert_breakpoint): ... this.
14305 (target_remove_breakpoint): Split into this and ...
14306 (forward_target_remove_breakpoint): ... this.
14307 (debug_to_insert_breakpoint): Add target_ops parameter.
14308 Call forward_target_insert_breakpoint.
14309 (debug_to_remove_breakpoint): Add target_ops parameter.
14310 Call forward_target_remove_breakpoint.
14311 (update_current_target): Do not inherit or default to_insert_breakpoint
14312 and to_remove_breakpoint.
14313 * corelow.c (ignore): Add target_ops parameter.
14314 * exec.c (ignore): Add target_ops parameter.
14315 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14316 Add target_ops parameter.
14317 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14318 Add target_ops parameter.
14319 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14320 Add target_ops parameter.
14321 * record-full.c (record_full_beneath_to_insert_breakpoint)
14322 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14323 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14324 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14325 (record_full_core_remove_breakpoint): Add target_ops parameter.
14327 (record_full_beneath_to_insert_breakpoint_ops)
14328 (record_full_beneath_to_remove_breakpoint_ops)
14329 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14330 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14331 tmp_to_remove_breakpoint_ops,
14332 record_full_beneath_to_insert_breakpoint_ops, and
14333 record_full_beneath_to_remove_breakpoint_ops.
14334 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14335 (m32r_remove_breakpoint): Add target_ops parameter.
14336 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14337 Add target_ops parameter.
14338 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14339 Add target_ops parameter.
14341 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14342 Markus Metzger <markus.t.metzger@intel.com>
14344 * record-btrace.c: Include frame-unwind.h.
14345 (record_btrace_frame_unwind_stop_reason)
14346 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14347 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14349 (init_record_btrace_ops): Install it.
14351 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14353 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14356 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14358 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14361 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14363 * frame-unwind.c: Include target.h.
14364 (frame_unwind_try_unwinder): New function with code from ...
14365 (frame_unwind_find_by_frame): ... here. New variable
14366 unwinder_from_target, call also target_get_unwinder)
14367 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14368 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14369 * target.h (struct target_ops): New fields to_get_unwinder and
14370 to_get_tailcall_unwinder.
14371 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14373 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14375 * record-btrace.c (record_btrace_fetch_registers)
14376 (record_btrace_store_registers)
14377 (record_btrace_to_prepare_to_store): New.
14378 (init_record_btrace_ops): Add the above.
14380 2014-01-16 Tom Tromey <tromey@redhat.com>
14382 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14383 * target.h (struct target_ops) <to_prepare_to_store>: Add
14385 (target_prepare_to_store): Add argument.
14386 * target.c (debug_to_prepare_to_store): Add argument.
14387 (update_current_target): Update.
14388 * remote.c (remote_prepare_to_store): Add 'self' argument.
14389 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14390 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14391 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14392 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14394 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14395 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14396 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14397 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14398 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14400 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14402 * btrace.h (replay) <replay>: New.
14403 (btrace_is_replaying): New.
14404 * btrace.c (btrace_clear): Free replay iterator.
14405 (btrace_is_replaying): New.
14406 * record-btrace.c (record_btrace_is_replaying): New.
14407 (record_btrace_info): Print insn number if replaying.
14408 (record_btrace_insn_history): Start at replay position.
14409 (record_btrace_call_history): Start at replay position.
14410 (init_record_btrace_ops): Init to_record_is_replaying.
14412 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14414 * record-btrace.c (record_btrace_insn_history_range): Include
14416 (record_btrace_insn_history_from): Adjust range.
14417 (record_btrace_call_history_range): Include
14419 (record_btrace_call_history_from): Adjust range.
14420 * NEWS: Announce changes.
14422 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14424 * record.h (enum record_print_flag)
14425 <record_print_indent_calls>: New.
14426 * record.c (get_call_history_modifiers): Recognize /c modifier.
14427 (_initialize_record): Document /c modifier.
14428 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14429 Reorder fields. Optionally indent the function name. Update
14431 * NEWS: Announce changes.
14433 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14435 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14437 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14439 * btrace.c (ftrace_new_function): Start counting at one.
14440 * record-btrace.c (record_btrace_info): Adjust number of calls
14442 * NEWS: Announce it.
14444 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14446 * record-btrace.c (btrace_call_history_insn_range): Print
14447 insn range as [begin, end].
14449 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14451 * btrace.h (struct btrace_func_link): New.
14452 (enum btrace_function_flag): New.
14453 (struct btrace_inst): Rename to ...
14454 (struct btrace_insn): ...this. Update all users.
14455 (struct btrace_func) <ibegin, iend>: Remove.
14456 (struct btrace_func_link): New.
14457 (struct btrace_func): Rename to ...
14458 (struct btrace_function): ...this. Update all users.
14459 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14460 (number, level, flags>: New.
14461 (struct btrace_insn_iterator): Rename to ...
14462 (struct btrace_insn_history): ...this.
14464 (struct btrace_insn_iterator, btrace_call_iterator): New.
14465 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14466 (struct btrace_target_info) <begin, end, level>
14467 <insn_history, call_history>: New.
14468 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14469 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14470 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14471 (btrace_call_number, btrace_call_begin, btrace_call_end)
14472 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14473 (btrace_find_function_by_number, btrace_set_insn_history)
14474 (btrace_set_call_history): New.
14475 * btrace.c (btrace_init_insn_iterator)
14476 (btrace_init_func_iterator, compute_itrace): Remove.
14477 (ftrace_print_function_name, ftrace_print_filename)
14478 (ftrace_skip_file): Change
14479 parameter to const.
14480 (ftrace_init_func): Remove.
14481 (ftrace_debug): Use new btrace_function fields.
14482 (ftrace_function_switched): Also consider gaining and
14483 losing symbol information).
14484 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14485 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14486 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14488 (ftrace_new_function): Move. Remove debug print.
14489 (ftrace_update_lines, ftrace_update_insns): New.
14490 (ftrace_update_function): Check for call, ret, and jump.
14491 (compute_ftrace): Renamed to ...
14492 (btrace_compute_ftrace): ...this. Rewritten to compute call
14494 (btrace_fetch, btrace_clear): Updated.
14495 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14496 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14497 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14498 (btrace_call_number, btrace_call_begin, btrace_call_end)
14499 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14500 (btrace_find_function_by_number, btrace_set_insn_history)
14501 (btrace_set_call_history): New.
14502 * record-btrace.c (require_btrace): Use new btrace thread
14504 (record_btrace_info, btrace_insn_history)
14505 (record_btrace_insn_history, record_btrace_insn_history_range):
14506 Use new btrace thread info fields and new iterator.
14507 (btrace_func_history_src_line): Rename to ...
14508 (btrace_call_history_src_line): ...this. Use new btrace
14509 thread info fields.
14510 (btrace_func_history): Rename to ...
14511 (btrace_call_history): ...this. Use new btrace thread info
14512 fields and new iterator.
14513 (record_btrace_call_history, record_btrace_call_history_range):
14514 Use new btrace thread info fields and new iterator.
14516 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14518 * frame.h (frame_id_build_unavailable_stack_special): New.
14519 * frame.c (frame_id_build_unavailable_stack_special): New.
14521 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14523 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14524 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14525 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14527 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14528 (i386_insn_is_jump, i386_jmp_p): New.
14529 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14530 insn_is_jump to gdbarch.
14531 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14532 * gdbarch.h: Regenerated.
14533 * gdbarch.c: Regenerated.
14534 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14535 (default_insn_is_jump): New.
14536 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14537 (default_insn_is_jump): New.
14539 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14541 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14543 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14544 (btrace_read_type) <btrace_read_new>: Change to ...
14545 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14547 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14549 * common/linux-btrace.c (linux_read_btrace): Free trace from
14550 previous iteration.
14552 2014-01-15 Doug Evans <dje@google.com>
14554 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14557 2014-01-15 Tom Tromey <tromey@redhat.com>
14559 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14560 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14561 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14562 (set_objfile_main_name): New function.
14563 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14564 language_of_main>: New fields.
14565 (set_objfile_main_name): Declare.
14566 * symtab.c (find_main_name): Loop over objfiles to find the main
14568 (set_main_name): Now static.
14569 (get_main_info): Add comment.
14570 * symtab.h (set_main_name): Don't declare.
14572 2014-01-15 Tom Tromey <tromey@redhat.com>
14574 * symtab.c (main_progspace_key): New global.
14575 (struct main_info): New.
14576 (name_of_main, language_of_main): Remove.
14577 (get_main_info, main_info_cleanup): New function.
14578 (set_main_name, main_name, main_language): Use get_main_info.
14579 (_initialize_symtab): Initialize main_progspace_key.
14581 2014-01-15 Tom Tromey <tromey@redhat.com>
14583 * dbxread.c (process_one_symbol): Update.
14584 * dwarf2read.c (read_partial_die): Update.
14585 * symfile.c (set_initial_language): Call main_language.
14586 * symtab.c (language_of_main): Now static.
14587 (set_main_name): Add 'lang' parameter.
14588 (find_main_name): Update.
14589 (main_language): New function.
14590 (symtab_observer_executable_changed): Update.
14591 * symtab.h (set_main_name): Update.
14592 (language_of_main): Remove.
14593 (main_language): Declare.
14595 2014-01-15 Tom Tromey <tromey@redhat.com>
14597 * symfile.c (init_entry_point_info): Use new "initialized" field.
14599 * objfiles.h (struct entry_point) <initialized>: New field.
14600 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14601 (struct objfile) <ei>: ...here. Remove.
14602 * objfiles.c (entry_point_address_query): Update.
14604 2014-01-15 Tom Tromey <tromey@redhat.com>
14606 * objfiles.c (entry_point_address_query): Relocate entry point
14608 (objfile_relocate1): Do not relocate entry point address.
14609 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14610 <the_bfd_section_index>: New field.
14611 * symfile.c (init_entry_point_info): Find the entry point's
14614 2014-01-15 Tom Tromey <tromey@redhat.com>
14616 * solib-frv.c (enable_break): Use entry_point_address_query.
14618 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14620 * NEWS: Add note on improved process record-replay on
14621 arm*-linux* targets.
14623 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14625 * arm-tdep.c (enum arm_record_result): New enum.
14626 (arm_record_unsupported_insn): New function.
14627 (arm_record_coproc_data_proc): Removed.
14628 (thumb2_record_ld_st_multiple): New function.
14629 (thumb2_record_ld_st_dual_ex_tbb): New function.
14630 (thumb2_record_data_proc_sreg_mimm): New function.
14631 (thumb2_record_ps_dest_generic): New function.
14632 (thumb2_record_branch_misc_cntrl): New function.
14633 (thumb2_record_str_single_data): New function.
14634 (thumb2_record_ld_mem_hints): New function.
14635 (thumb2_record_ld_word): New function.
14636 (thumb2_record_lmul_lmla_div): New function.
14637 (thumb2_record_decode_insn_handler): New function.
14638 (decode_insn): Add thumb32 instruction handlers.
14640 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14642 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14643 (struct arm_linux_record_tdep): Declare.
14644 (arm_canonicalize_syscall): New function.
14645 (arm_all_but_pc_registers_record): New function.
14646 (arm_linux_syscall_record): New function.
14647 (arm_linux_init_abi): Add syscall recording constructs.
14648 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14649 decoding. (arm_record_coproc_data_proc): Update arm syscall
14651 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14652 <arm_syscall_record>: New field.
14653 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14656 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14658 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14659 register for push instruction recording.
14661 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14663 * arm-tdep.c (thumb_record_misc): Update to correct logical
14664 error while recording ldm, ldmia and pop instructions.
14666 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14668 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14670 2014-01-15 Pedro Alves <palves@redhat.com>
14672 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14673 (go32_resume, go32_fetch_registers, store_register)
14674 (go32_store_registers, go32_prepare_to_store)
14675 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14676 (go32_create_inferior, go32_can_run, go32_terminal_init)
14677 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14680 2014-01-15 Tom Tromey <tromey@redhat.com>
14682 * target.h (async_callback_ftype): New typedef.
14683 (struct target_ops) <to_async>: Use it.
14685 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14687 * python/py-value.c (get_field_type): Remove unnecessary curly
14688 braces for single-statement if block.
14690 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14692 * python/py-type.c (convert_field): Add missing empty line
14693 after declarations.
14695 2014-01-14 Doug Evans <dje@google.com>
14697 * symfile.h (expand_symtabs_matching): Renamed from
14698 expand_partial_symbol_names. Update prototype.
14699 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14700 * symfile.c (expand_symtabs_matching): Renamed from
14701 expand_partial_symbol_names. New args file_matcher, kind.
14702 Rename arg fun to symbol_matcher.
14703 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14704 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14705 ada_expand_partial_symbol_name.
14706 (ada_make_symbol_completion_list): Update to call
14707 expand_symtabs_matching.
14708 (ada_add_global_exceptions): Call expand_symtabs_matching.
14709 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14710 call map_symbol_filenames.
14711 * symtab.c (sources_info): Update to call map_symbol_filenames.
14712 (search_symbols): Call expand_symtabs_matching.
14713 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14714 (default_make_symbol_completion_list_break_on): Update to call
14715 expand_symtabs_matching.
14716 (make_source_files_completion_list): Update to call
14717 map_symbol_filenames.
14719 2014-01-14 Doug Evans <dje@google.com>
14721 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14722 (expand_symtabs_symbol_matcher_ftype): New typedef.
14723 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14724 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14725 * symfile.c (expand_partial_symbol_names): Update to use
14726 expand_symtabs_symbol_matcher_ftype.
14727 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14728 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14729 Arg name_matcher renamed to symbol_matcher.
14730 * psymtab.c (recursively_search_psymtabs): Update to use
14731 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14733 (expand_symtabs_matching_via_partial): Update to use
14734 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14735 Arg name_matcher renamed to symbol_matcher.
14737 2014-01-14 Doug Evans <dje@google.com>
14739 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14740 (map_partial_symbol_filenames): Ditto.
14741 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14742 (map_partial_symbol_filenames): Ditto.
14743 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14744 (map_partial_symbol_filenames): Ditto.
14745 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14746 (map_partial_symbol_filenames): Ditto.
14747 * symtab.c: Delete #include "psymtab.h".
14749 2014-01-14 Pedro Alves <palves@redhat.com>
14750 Tom Tromey <tromey@redhat.com>
14752 * infrun.c (use_displaced_stepping): Use find_record_target
14753 instead of RECORD_IS_USED.
14754 (adjust_pc_after_break): Use record_full_is_used instead of
14756 * record-btrace.c (record_btrace_open): Call record_preopen
14757 instead of checking RECORD_IS_USED.
14758 * record-full.c (record_full_shortname)
14759 (record_full_core_shortname): New globals.
14760 (record_full_is_used): New function.
14761 (find_full_open): Call record_preopen instead of checking
14763 (init_record_full_ops): Set the target's shortname to
14764 record_full_shortname.
14765 (init_record_full_core_ops): Set the target's shortname to
14766 record_full_core_shortname.
14767 * record-full.h (record_full_is_used): Declare.
14768 * record.c (find_record_target): Make extern.
14769 (record_preopen): New function.
14770 * record.h (RECORD_IS_USED): Delete macro.
14771 (find_record_target, record_preopen): Declare functions.
14773 2014-01-14 Yao Qi <yao@codesourcery.com>
14775 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14776 'len''s type to ULONGEST.
14777 (core_xfer_shared_libraries_aix): Likewise.
14778 * gdbarch.c, gdbarch.h: Regenerated.
14779 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14780 Change type of 'len' to ULONGEST.
14781 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14782 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14784 2014-01-14 Yao Qi <yao@codesourcery.com>
14786 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14787 type of 'len' to ULONGEST.
14788 (linux_xfer_osdata_processgroups): Likewise.
14789 (linux_xfer_osdata_threads): Likewise.
14790 (linux_xfer_osdata_fds): Likewise.
14791 (linux_xfer_osdata_isockets): Likewise.
14792 (linux_xfer_osdata_shm): Likewise.
14793 (linux_xfer_osdata_sem): Likewise.
14794 (linux_xfer_osdata_msg): Likewise.
14795 (linux_common_xfer_osdata): Likewise.
14796 (struct osdata_type) <getter>: Likewise.
14797 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14800 2014-01-14 Yao Qi <yao@codesourcery.com>
14802 * target.h (target_xfer_partial_ftype): Update.
14803 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14805 * aix-thread.c (aix_thread_xfer_partial): Change type of
14806 argument 'len' to ULONGEST.
14807 * auxv.c (procfs_xfer_auxv): Likewise.
14808 (ld_so_xfer_auxv): Likewise.
14809 (memory_xfer_auxv): Likewise.
14810 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14811 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14812 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14813 * corelow.c (core_xfer_partial): Likewise.
14814 * ctf.c (ctf_xfer_partial): Likewise.
14815 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14817 (darwin_read_dyld_info): Likewise.
14818 (darwin_xfer_partial): Likewise.
14819 * exec.c (section_table_xfer_memory_partial): Likewise.
14820 (exec_xfer_partial): Likewise.
14821 * exec.h (section_table_xfer_memory_partial): Update
14823 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14824 instead of plongest.
14825 (gnu_xfer_partial): Likewise.
14826 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14827 (ia64_hpux_xfer_solib_got): Likewise.
14828 (ia64_hpux_xfer_partial): Likewise.
14829 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14830 * inf-ptrace.c (inf_ptrace_xfer_partial):
14831 * inf-ttrace.c (inf_ttrace_xfer_partial):
14832 * linux-nat.c (linux_xfer_siginfo): Likewise.
14833 (linux_nat_xfer_partial): Likewise.
14834 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14835 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14836 * monitor.c (monitor_xfer_memory): Likewise.
14837 (monitor_xfer_partial): Likewise.
14838 * procfs.c (procfs_xfer_partial): Likewise.
14839 * record-full.c (record_full_xfer_partial): Likewise.
14840 (record_full_core_xfer_partial): Likewise.
14841 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14842 instead of plongest.
14843 (gdbsim_xfer_partial): Likewise.
14844 * remote.c (remote_xfer_partial): Likewise.
14845 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14846 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14848 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14849 (rs6000_xfer_shared_libraries): Likewise.
14850 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14851 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14852 (sparc_xfer_partial): Likewise.
14853 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14854 (spu_xfer_partial): Likewise.
14855 * spu-multiarch.c (spu_xfer_partial): Likewise.
14856 * target.c (target_read_live_memory): Likewise.
14857 (memory_xfer_live_readonly_partial): Likewise.
14858 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14859 (target_xfer_partial, default_xfer_partial): Likewise.
14860 (current_xfer_partial): Likewise.
14861 * tracepoint.c (tfile_xfer_partial): Likewise.
14862 * windows-nat.c (windows_xfer_memory): Likewise. Call
14863 pulongest instead of plongest.
14864 (windows_xfer_partial): Likewise.
14865 (windows_xfer_shared_libraries): Likewise.
14867 2014-01-14 Yao Qi <yao@codesourcery.com>
14869 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14870 target_xfer_partial_ftype.
14872 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14876 * valops.c (value_struct_elt_bitpos): New function
14877 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14878 object to 'None' if the field name is an empty string ("").
14879 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14880 attribute to look for a field when 'name' is 'None'.
14881 (get_field_type): New function
14883 2014-01-13 Doug Evans <dje@google.com>
14886 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14887 (try_open_dwop_file): Ditto.
14888 * gdb_bfd.c: #include "vec.h".
14889 (bfdp): New typedef.
14890 (struct gdb_bfd_data): New member included_bfds.
14891 (gdb_bfd_unref): Unref all included bfds.
14892 (gdb_bfd_record_inclusion): New function.
14893 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14895 2014-01-13 Tom Tromey <tromey@redhat.com>
14897 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14899 2014-01-13 Tom Tromey <tromey@redhat.com>
14901 * defs.h (use_windows): Remove.
14902 * gdb.c (main): Update.
14903 * main.c (captured_main, gdb_main): Update.
14904 * main.h (struct captured_main_args) <use_windows>: Remove.
14905 * top.c (use_windows): Remove.
14907 2014-01-13 Tom Tromey <tromey@redhat.com>
14909 * defs.h (deprecated_flush_hook): Remove.
14911 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14914 * linux-thread-db.c (try_thread_db_load): Add parameter
14915 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14916 (try_thread_db_load_from_pdir_1): Move it there from here.
14917 (try_thread_db_load_from_sdir): Update caller.
14918 (try_thread_db_load_from_dir): Move it there from here.
14920 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14922 * regformats/regdat.sh: Always rewrite the register file.
14924 2014-01-13 Pedro Alves <palves@redhat.com>
14926 * Makefile.in (CHECK_HEADERS): New variable.
14927 (check-headers:): New rule.
14929 2014-01-13 Tom Tromey <tromey@redhat.com>
14931 * cli/cli-setshow.c (do_set_command): Update.
14932 * defs.h (deprecated_set_hook): Remove.
14933 * top.c (deprecated_set_hook): Remove.
14935 2014-01-13 Pedro Alves <palves@redhat.com>
14937 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14938 the tracepoint if the PC is a pseudo-register.
14940 2014-01-13 Tom Tromey <tromey@redhat.com>
14942 * defs.h (XCALLOC): Remove.
14943 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14944 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14945 * dwarf2loc.c (allocate_piece_closure): Likewise.
14946 * elfread.c (elf_symfile_segments): Likewise.
14947 (elf_symfile_segments): Likewise.
14948 * gdbtypes.c (copy_type_recursive): Likewise.
14949 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14950 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14951 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14953 * mt-tdep.c (mt_gdbarch_init): Likewise.
14954 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14956 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14957 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14958 * registry.c (registry_alloc_data): Likewise.
14959 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14960 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14961 * serial.c (serial_fdopen_ops): Likewise.
14962 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14964 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14965 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14968 2014-01-13 Tom Tromey <tromey@redhat.com>
14970 * defs.h (XMALLOC): Remove.
14971 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14972 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14973 * cli-out.c (struct ui_out *): Likewise.
14974 * cli/cli-dump.c (add_dump_command): Likewise.
14975 (add_dump_command): Likewise.
14976 * complaints.c (get_complaints): Likewise.
14977 (find_complaint): Likewise.
14978 * dwarf2-frame.c (execute_cfa_program): Likewise.
14979 * dwarf2read.c (abbrev_table_read_table): Likewise.
14980 * gdbarch.sh: Likewise.
14981 * gdbarch.c: Rebuild.
14982 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14983 * interps.c (interp_new): Likewise.
14984 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14985 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14986 * mi/mi-console.c (mi_console_file_new): Likewise.
14987 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14988 * mi/mi-out.c (mi_out_new): Likewise.
14989 * mi/mi-parse.c (mi_parse): Likewise.
14990 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14991 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14992 * observer.c (xalloc_observer_list_node): Likewise.
14993 * regcache.c (regcache_xmalloc_1): Likewise.
14994 * reggroups.c (reggroup_new): Likewise.
14995 (_initialize_reggroup): Likewise.
14996 * registry.c (register_data_with_cleanup): Likewise.
14997 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14998 * ser-base.c (serial_ttystate): Likewise.
14999 * ser-mingw.c (make_pipe_state): Likewise.
15000 * ser-pipe.c (pipe_open): Likewise.
15001 * serial.c (serial_open): Likewise.
15002 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15003 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15004 (tui_alloc_win_info): Likewise.
15005 (tui_add_content_elements): Likewise.
15006 * tui/tui-file.c (tui_file_new): Likewise.
15007 * tui/tui-out.c (tui_out_new): Likewise.
15008 * ui-file.c (mem_file_new): Likewise.
15009 * ui-out.c (push_level): Likewise.
15010 (make_cleanup_ui_out_end): Likewise.
15011 (append_header_to_list): Likewise.
15012 (ui_out_new): Likewise.
15013 * user-regs.c (user_reg_add_builtin): Likewise.
15015 2014-01-13 Tom Tromey <tromey@redhat.com>
15017 * defs.h (XZALLOC): Remove.
15018 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15019 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15020 (get_ada_tasks_inferior_data): Likewise.
15021 * auto-load.c (get_auto_load_pspace_data): Likewise.
15022 * auxv.c (get_auxv_inferior_data): Likewise.
15023 * bfd-target.c (target_bfd_reopen): Likewise.
15024 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15025 (deprecated_insert_raw_breakpoint): Likewise.
15026 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15027 * corelow.c (core_open): Likewise.
15028 * darwin-nat.c (darwin_check_new_threads): Likewise.
15029 (darwin_attach_pid): Likewise.
15030 * dummy-frame.c (dummy_frame_push): Likewise.
15031 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15032 * dwarf2loc.c (allocate_piece_closure): Likewise.
15033 * elfread.c (elf_symfile_segments): Likewise.
15034 * eval.c (ptrmath_type_p): Likewise.
15035 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15036 * gdbtypes.c (alloc_type_arch): Likewise.
15037 (alloc_type_instance): Likewise.
15038 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15039 * inf-child.c (inf_child_can_use_agent): Likewise.
15040 * inflow.c (get_inflow_inferior_data): Likewise.
15041 * infrun.c (save_infcall_suspend_state): Likewise.
15042 * jit.c (jit_reader_load): Likewise.
15043 (get_jit_objfile_data): Likewise.
15044 (get_jit_program_space_data): Likewise.
15045 (jit_object_open_impl): Likewise.
15046 (jit_symtab_open_impl): Likewise.
15047 (jit_block_open_impl): Likewise.
15048 (jit_frame_sniffer): Likewise.
15049 * linux-fork.c (add_fork): Likewise.
15050 * maint.c (make_command_stats_cleanup): Likewise.
15051 * objfiles.c (get_objfile_pspace_data): Likewise.
15052 * opencl-lang.c (struct lval_closure): Likewise.
15053 * osdata.c (osdata_start_osdata): Likewise.
15054 * progspace.c (new_address_space): Likewise.
15055 (add_program_space): Likewise.
15056 * remote-sim.c (get_sim_inferior_data): Likewise.
15057 * sh-tdep.c (sh_gdbarch_init): Likewise.
15058 * skip.c (Ignore): Likewise.
15059 (skip_delete_command): Likewise.
15060 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15061 (library_list_start_library): Likewise.
15062 (solib_aix_current_sos): Likewise.
15063 * solib-darwin.c (get_darwin_info): Likewise.
15064 (darwin_current_sos): Likewise.
15065 * solib-dsbt.c (get_dsbt_info): Likewise.
15066 * solib-ia64-hpux.c (new_so_list): Likewise.
15067 (ia64_hpux_get_solib_linkage_addr): Likewise.
15068 * solib-spu.c (append_ocl_sos): Likewise.
15069 (spu_current_sos): Likewise.
15070 * solib-svr4.c (get_svr4_info): Likewise.
15071 (svr4_keep_data_in_core): Likewise.
15072 (library_list_start_library): Likewise.
15073 (svr4_default_sos): Likewise.
15074 (svr4_read_so_list): Likewise.
15075 * solib-target.c (library_list_start_library): Likewise.
15076 (solib_target_current_sos): Likewise.
15077 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15078 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15079 * symfile.c (default_symfile_segments): Likewise.
15080 * target-descriptions.c (tdesc_data_init): Likewise.
15081 (tdesc_create_reg): Likewise.
15082 (struct tdesc_type *): Likewise.
15083 (tdesc_create_vector): Likewise.
15084 (tdesc_set_struct_size): Likewise.
15085 (struct tdesc_type *): Likewise.
15086 (tdesc_free_feature): Likewise.
15087 (tdesc_create_feature): Likewise.
15088 * windows-nat.c (windows_add_thread): Likewise.
15089 (windows_make_so): Likewise.
15090 * xml-support.c (gdb_xml_body_text): Likewise.
15091 (gdb_xml_create_parser_and_cleanup): Likewise.
15092 (xml_process_xincludes): Likewise.
15093 * xml-syscall.c (allocate_syscalls_info): Likewise.
15094 (syscall_create_syscall_desc): Likewise.
15096 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15098 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15099 function, with code from i386_stap_parse_special_token.
15100 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15101 (i386_stap_parse_special_token): Move code to the two functions
15102 above; simplify it.
15104 2014-01-09 Pedro Alves <palves@redhat.com>
15105 Hui Zhu <hui@codesourcery.com>
15108 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15109 bp_err_string. Don't mark the location shlib_disabled if the
15110 error thrown wasn't a generic or memory error. Catch errors
15111 thrown while inserting breakpoints in overlayed code. Output
15112 error message of software breakpoints.
15113 * remote.c (remote_insert_breakpoint): If this breakpoint has
15114 target-side commands but this stub doesn't support Z0 packets,
15115 throw NOT_SUPPORTED_ERROR error.
15116 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15117 * target.h (target_insert_breakpoint): Extend comment.
15118 (target_insert_hw_breakpoint): Add comment.
15120 2014-01-08 Pedro Alves <palves@redhat.com>
15122 * remote.c (remote_add_thread): Add threads silently if starting
15124 (remote_notice_new_inferior): If in all-stop, and starting up,
15125 don't call notice_new_inferior.
15126 (get_current_thread): New function, factored out from ...
15127 (add_current_inferior_and_thread): ... this. Adjust.
15128 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15129 found any thread, then select the remote's current thread as GDB's
15130 current thread too.
15132 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15134 * NEWS: Create a new section for the next release branch.
15135 Rename the section of the current branch, now that it has
15138 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15140 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15141 * version.in: Bump version to 7.7.50.DATE-cvs.
15143 2014-01-08 Yao Qi <yao@codesourcery.com>
15145 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15146 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15147 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15149 2014-01-08 Yao Qi <yao@codesourcery.com>
15151 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15152 return value of bfd_get_filename to symbol_file_add_from_bfd.
15154 2014-01-08 Pierre Muller <muller@sourceware.org>
15157 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15158 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15159 to prim_record_mininal_symbol_and_info.
15160 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15161 in call to prim_record_minimal_symbol_and_info.
15162 (read_pe_exported_syms): Set index field of section_data.
15164 2014-01-07 Andrew Pinski <apinski@cavium.com>
15166 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15167 * features/aarch64.c: Regenerate.
15169 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15171 * target.c (return_null): Define.
15172 (update_current_target): Use it instead of return_zero for
15173 functions that return a pointer.
15175 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15177 * source.c (add_path): Fix check for duplicated paths in the previously
15180 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15182 * ada-lang.c: Remove duplicated include statements.
15183 * alphabsd-nat.c: Ditto.
15184 * amd64-darwin-tdep.c: Ditto.
15185 * amd64fbsd-nat.c: Ditto.
15186 * auto-load.c: Ditto.
15188 * breakpoint.c: Ditto.
15189 * dbxread.c: Ditto.
15190 * fork-child.c: Ditto.
15191 * gdb_usleep.c: Ditto.
15192 * i386-darwin-tdep.c: Ditto.
15193 * i386fbsd-nat.c: Ditto.
15195 * inferior.c: Ditto.
15196 * jv-lang.c: Ditto.
15197 * linux-nat.c: Ditto.
15198 * linux-tdep.c: Ditto.
15199 * m68kbsd-nat.c: Ditto.
15200 * m68klinux-nat.c: Ditto.
15201 * microblaze-tdep.c: Ditto.
15202 * mips-linux-tdep.c: Ditto.
15203 * mn10300-tdep.c: Ditto.
15204 * nto-tdep.c: Ditto.
15205 * opencl-lang.c: Ditto.
15207 * printcmd.c: Ditto.
15208 * regcache.c: Ditto.
15209 * remote-m32r-sdi.c: Ditto.
15211 * symfile.c: Ditto.
15213 * tilegx-linux-nat.c: Ditto.
15214 * tilegx-tdep.c: Ditto.
15215 * tracepoint.c: Ditto.
15217 * vaxbsd-nat.c: Ditto.
15218 * windows-nat.c: Ditto.
15219 * xtensa-tdep.c: Ditto.
15221 2014-01-07 Yao Qi <yao@codesourcery.com>
15223 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15225 2014-01-07 Yao Qi <yao@codesourcery.com>
15226 Joel Brobecker <brobecker@adacore.com>
15228 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15229 (pdc_write_regs): Likewise.
15230 (fetch_regs_kernel_thread): Likewise.
15231 (store_regs_kernel_thread): Likewise.
15233 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15235 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15236 tagged type objects to their actual type.
15238 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15240 * ada-valprint.c (print_field_values): Add "language" parameter.
15241 Update calls to print_field_values and print_variant_part.
15242 Pass new parameter "language" in call to val_print instead
15243 of "current_language". Replace call to ada_val_print by call
15245 (print_variant_part): Add "language" parameter.
15246 (ada_val_print_struct_union): Update call to print_field_values.
15248 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15250 * ada-valprint.c (ui_memcpy): Delete.
15251 (ada_print_floating): Update documentation. Add empty line
15252 between between function documentation and implementation.
15253 Delete variable "buffer". Use ui_file_xstrdup in place of
15254 ui_file_put. Minor adjustments following this change.
15256 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15258 * ada-valprint.c (ada_val_print_string): New function,
15259 extracted from ada_val_print_array.
15260 (ada_val_print_array): Replace extracted code by call
15261 to ada_val_print_string followed by a return. Move
15262 "else" branch to the function's top block.
15264 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15266 * ada-valprint.c (ada_val_print_array): Move implementation
15267 down. Rename parameter "offset" and "val" into "offset_aligned"
15268 and "original_value" respectively. Add parameter "offset".
15270 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15272 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15273 re-organizing the code. Change the "???" message printed
15274 when target type is a TYPE_CODE_UNDEF into
15275 "<ref to undefined type>".
15277 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15279 * ada-valprint.c (print_record): Delete, implementation inlined...
15280 (ada_val_print_struct_union): ... here. Remove call to
15281 ada_check_typedef in inlined implementation.
15283 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15285 * ada-valprint.c (ada_val_print_gnat_array): New function,
15286 extracted from ada_val_print_1;
15287 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15288 (ada_val_print_flt, ada_val_print_struct_union)
15289 (ada_val_print_ref): Likewise.
15290 (ada_val_print_1): Delete variables i and elttype.
15291 Replace extracted-out code by call to corresponding
15294 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15296 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15298 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15300 * ada-valprint.c (ada_val_print_1): Replace calls to
15301 ada_val_print_1 by calls to val_print.
15303 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15305 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15306 Update calls to self accordingly. Replace calls to c_val_print
15307 by calls to val_print.
15309 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15311 * ada-valprint.c (print_record): Delete declaration.
15312 (adjust_type_signedness, ada_val_print_1): Likewise.
15313 (ada_val_print): Move function implementation down.
15314 (print_variant_part, print_field_values, print_record):
15315 Move function implementation up.
15317 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15319 * python/py-type.c (typy_get_name): New function.
15320 (type_object_getset): Add entry for attribute "name".
15321 * NEWS: Add entry mentioning this new attribute.
15323 2014-01-07 Yao Qi <yao@codesourcery.com>
15325 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15328 2014-01-07 Yao Qi <yao@codesourcery.com>
15330 * gnu-nat.c (info_port_rights): Add qualifier const to
15333 2014-01-07 Yao Qi <yao@codesourcery.com>
15335 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15337 2014-01-07 Yao Qi <yao@codesourcery.com>
15339 * gnu-nat.c (make_inf) Update declaration.
15340 (make_inf): Make it static.
15341 (inf_set_traced): Likewise.
15342 (inf_port_to_thread, inf_task_died_status): Likewise.
15344 2014-01-07 Yao Qi <yao@codesourcery.com>
15346 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15348 2014-01-07 Yao Qi <yao@codesourcery.com>
15350 * gnu-nat.c (_initialize_gnu_nat): Declare.
15352 2014-01-07 Yao Qi <yao@codesourcery.com>
15354 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15356 (struct gdbarch_info) <byte_order>: Change type to
15358 <byte_order_for_code>: Likewise.
15359 * gdbarch.c, gdbarch.h: Regenerated.
15361 2014-01-06 Sasha Smundak <asmundak@google.com>
15363 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15365 2014-01-06 Tom Tromey <tromey@redhat.com>
15367 * doublest.c (convert_doublest_to_floatformat): Use const, not
15369 * somread.c (som_symtab_read): Likewise.
15371 2014-01-07 Hui Zhu <hui@codesourcery.com>
15373 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15374 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15375 (gdb_bfd_fopen): Ditto.
15376 (gdb_bfd_openr): Ditto.
15377 (gdb_bfd_openw): Ditto.
15378 (gdb_bfd_openr_iovec): Ditto.
15379 (gdb_bfd_fdopenr): Ditto.
15380 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15381 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15383 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15385 * symfile-mem.c (symbol_file_add_from_memory): Removed
15386 gdb_bfd_stash_filename.
15388 2014-01-03 Doug Evans <dje@google.com>
15390 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15393 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15395 Update year range in copyright notice of all files.
15397 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15399 * top.c (print_gdb_version): Set copyright year to 2014.
15401 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15403 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15405 For older changes see ChangeLog-2013.
15411 version-control: never