1 2014-11-22 Doug Evans <xdje42@gmail.com>
3 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
5 (search_symbols): Fix comments and whitespace.
7 2014-11-22 Doug Evans <xdje42@gmail.com>
9 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
11 2014-11-21 Doug Evans <dje@google.com>
13 * psymtab.c (psymtab_search_name): Fix whitespace.
15 2014-11-21 Yao Qi <yao@codesourcery.com>
17 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
19 * gnulib/import/Makefile.am: Re-generated.
20 * gnulib/import/Makefile.in: Likewise.
21 * gnulib/import/m4/gnulib-cache.m4: Likewise.
23 2014-11-21 Yao Qi <yao@codesourcery.com>
25 * gdb_wchar.h: Include wchar.h and wctype.h.
26 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
27 include wchar.h and wctype.h.
28 Don't check HAVE_WCHAR_H.
30 2014-11-21 Yao Qi <yao@codesourcery.com>
32 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
34 * gnulib/import/Makefile.am: Re-generated.
35 * gnulib/import/Makefile.in: Likewise.
36 * gnulib/import/m4/gnulib-cache.m4: Likewise.
38 2014-11-21 Yao Qi <yao@codesourcery.com>
40 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
42 * gnulib/import/Makefile.am: Re-generated.
43 * gnulib/import/Makefile.in: Likewise.
44 * gnulib/import/m4/gnulib-cache.m4: Likewise.
46 2014-11-21 Yao Qi <yao@codesourcery.com>
48 * common/common-defs.h: Include alloca.h
49 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
50 * configure: Re-generated.
51 * defs.h: Remove code handling alloca.
52 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
55 2014-11-21 Yao Qi <yao@codesourcery.com>
57 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
59 * gnulib/import/Makefile.am: Re-generated.
60 * gnulib/import/Makefile.in: Likewise..
61 * gnulib/import/m4/gnulib-cache.m4: Likewise.
63 2014-11-21 Yao Qi <yao@codesourcery.com>
65 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
68 2014-11-21 Joel Brobecker <brobecker@adacore.com>
70 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
71 flag_unsigned if HIGH_BOUND is constant and negative.
73 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
76 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
77 modifier from "struct gdbarch" when compiling without Expat (XML)
79 (get_syscall_by_number): Likewise.
80 (get_syscall_by_name): Likewise.
81 (get_syscall_names): Likewise.
83 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
86 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
87 set_xml_syscall_file_name to provide gdbarch.
88 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
89 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
90 * breakpoint.c (print_it_catch_syscall): Adjust call to
91 get_syscall_by_number to provide gdbarch.
92 (print_one_catch_syscall): Likewise.
93 (print_mention_catch_syscall): Likewise.
94 (print_recreate_catch_syscall): Likewise.
95 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
96 and get_syscall_by_name to provide gdbarch.
97 (catch_syscall_completer): Adjust call to get_syscall_names to
99 * gdbarch.c: Regenerate.
100 * gdbarch.h: Likewise.
101 * gdbarch.sh: Forward declare "struct syscalls_info".
102 (xml_syscall_file): New variable.
103 (syscalls_info): Likewise.
104 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
105 set_xml_syscall_file_name to provide gdbarch.
106 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
107 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
108 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
109 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
110 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
111 * xml-syscall.c: Include gdbarch.h.
112 (set_xml_syscall_file_name): Accept gdbarch parameter.
113 (get_syscall_by_number): Likewise.
114 (get_syscall_by_name): Likewise.
115 (get_syscall_names): Likewise.
116 (my_gdb_datadir): Delete global variable.
117 (struct syscalls_info) <my_gdb_datadir>: New variable.
118 (struct syscalls_info) <sysinfo>: Rename variable to
120 (sysinfo): Delete global variable.
121 (have_initialized_sysinfo): Likewise.
122 (xml_syscall_file): Likewise.
123 (sysinfo_free_syscalls_desc): Rename to...
124 (syscalls_info_free_syscalls_desc): ... this.
125 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
126 code to the new layout of "struct syscalls_info".
127 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
129 (syscall_create_syscall_desc): Likewise.
130 (syscall_start_syscall): Likewise.
131 (syscall_parse_xml): Likewise.
132 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
133 (init_sysinfo): Rename to...
134 (init_syscalls_info): ...this. Add gdbarch as a parameter.
135 Adjust function to deal with gdbarch.
136 (xml_get_syscall_number): Delete parameter sysinfo. Accept
137 gdbarch as a parameter. Adjust code.
138 (xml_get_syscall_name): Likewise.
139 (xml_list_of_syscalls): Likewise.
140 (set_xml_syscall_file_name): Accept gdbarch as parameter.
141 (get_syscall_by_number): Likewise.
142 (get_syscall_by_name): Likewise.
143 (get_syscall_names): Likewise.
144 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
145 (get_syscall_by_number): Likewise.
146 (get_syscall_by_name): Likewise.
147 (get_syscall_names): Likewise.
149 2014-11-20 Doug Evans <xdje42@gmail.com>
151 Split struct symtab into two: struct symtab and compunit_symtab.
152 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
153 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
154 to "struct compunit_symtab *". All callers updated.
155 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
156 "struct symtab *" argument to "struct compunit_symtab *".
158 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
159 result to "struct compunit_symtab *". All callers updated.
160 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
161 Change result to "struct compunit_symtab *". All callers updated.
162 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
163 hange type to "struct compunit_symtab *". All uses updated.
164 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
165 Change type to "struct compunit_symtab *". All uses updated.
166 * buildsym.c (struct buildsym_compunit): New struct.
167 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
168 (buildsym_compunit): New static global.
169 (finish_block_internal): Update to fetch objfile from
171 (make_blockvector): Delete objfile argument.
172 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
173 debugformat, producer.
174 (start_buildsym_compunit): New function.
175 (free_buildsym_compunit): Renamed from free_subfiles_list.
177 (patch_subfile_names): Rewrite to use buildsym_compunit.
178 (get_compunit_symtab): New function.
179 (get_macro_table): Delete argument comp_dir. All callers updated.
180 (start_symtab): Change result to "struct compunit_symtab *".
181 All callers updated. Create the subfile of the main source file.
182 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
183 (reset_symtab_globals): Update.
184 (end_symtab_get_static_block): Update to use buildsym_compunit.
185 (end_symtab_without_blockvector): Rewrite.
186 (end_symtab_with_blockvector): Change result to
187 "struct compunit_symtab *". All callers updated.
188 Update to use buildsym_compunit. Don't set symtab->dirname,
189 instead set it in the compunit.
190 Explicitly make sure main symtab is first in its list.
191 Set debugformat, producer, blockvector, block_line_section, and
192 macrotable in the compunit.
193 (end_symtab_from_static_block): Change result to
194 "struct compunit_symtab *". All callers updated.
195 (end_symtab, end_expandable_symtab): Ditto.
196 (set_missing_symtab): Change symtab argument to
197 "struct compunit_symtab *". All callers updated.
198 (augment_type_symtab): Ditto.
199 (record_debugformat): Update to use buildsym_compunit.
200 (record_producer): Update to use buildsym_compunit.
201 * buildsym.h (struct subfile) <dirname>: Delete.
202 <producer, debugformat>: Delete.
203 <buildsym_compunit>: New member.
204 (get_compunit_symtab): Declare.
205 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
206 from primary_symtab. Change type to "struct compunit_symtab *".
208 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
210 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
211 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
212 symtab. Change type to "struct compunit_symtab *". All uses updated.
213 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
215 (dw2_find_last_source_symtab): Ditto.
216 (dw2_lookup_symbol): Ditto.
217 (recursively_find_pc_sect_compunit_symtab): Renamed from
218 recursively_find_pc_sect_symtab. Change result to
219 "struct compunit_symtab *". All callers updated.
220 (dw2_find_pc_sect_compunit_symtab): Renamed from
221 dw2_find_pc_sect_symtab. Change result to
222 "struct compunit_symtab *". All callers updated.
223 (get_compunit_symtab): Renamed from get_symtab. Change result to
224 "struct compunit_symtab *". All callers updated.
225 (recursively_compute_inclusions): Change type of immediate_parent
226 argument to "struct compunit_symtab *". All callers updated.
227 (compute_compunit_symtab_includes): Renamed from
228 compute_symtab_includes. All callers updated. Rewrite to compute
229 includes of compunit_symtabs and not symtabs.
230 (process_full_comp_unit): Update to work with struct compunit_symtab.
231 (process_full_type_unit): Ditto.
232 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
233 (dwarf_decode_lines): Remove special case handling of main subfile.
234 (macro_start_file): Delete argument comp_dir. All callers updated.
235 (dwarf_decode_macro_bytes): Ditto.
236 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
237 use struct compunit_symtab.
238 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
239 * jit.c (finalize_symtab): Build compunit_symtab.
240 * jv-lang.c (get_java_class_symtab): Change result to
241 "struct compunit_symtab *". All callers updated.
242 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
243 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
244 comp_dir. Change type to "struct compunit_symtab *".
246 (new_macro_table): Change comp_dir argument to cust,
247 "struct compunit_symtab *". All callers updated.
248 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
249 nr_primary_symtabs. All uses updated.
250 (count_symtabs_and_blocks): Update to handle compunits.
251 (report_command_stats): Update output, "primary symtabs" renamed to
253 * mdebugread.c (new_symtab): Change result to
254 "struct compunit_symtab *". All callers updated.
255 (parse_procedure): Change type of search_symtab argument to
256 "struct compunit_symtab *". All callers updated.
257 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
259 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
260 symtabs. Change type to "struct compunit_symtab *". All uses updated.
261 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
263 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
265 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
266 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
267 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
268 symtab. Change type to "struct compunit_symtab *". All uses updated.
269 * psymtab.c (psymtab_to_symtab): Change result type to
270 "struct compunit_symtab *". All callers updated.
271 (find_pc_sect_compunit_symtab_from_partial): Renamed from
272 find_pc_sect_symtab_from_partial. Change result type to
273 "struct compunit_symtab *". All callers updated.
274 (lookup_symbol_aux_psymtabs): Change result type to
275 "struct compunit_symtab *". All callers updated.
276 (find_last_source_symtab_from_partial): Ditto.
277 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
278 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
279 and macro_table from compunit.
280 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
281 type to "struct compunit_symtab *". All callers updated.
282 (debug_qf_lookup_symbol): Ditto.
283 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
284 debug_qf_find_pc_sect_symtab, change result type to
285 "struct compunit_symtab *". All callers updated.
286 * symfile.c (allocate_symtab): Delete objfile argument.
288 (allocate_compunit_symtab): New function.
289 (add_compunit_symtab_to_objfile): New function.
290 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
291 Change result type to "struct compunit_symtab *". All uses updated.
292 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
293 Change result type to "struct compunit_symtab *". All uses updated.
294 * symmisc.c (print_objfile_statistics): Compute blockvector count in
296 (dump_symtab_1): Update test for primary source symtab.
297 (maintenance_info_symtabs): Update to handle compunit symtabs.
298 (maintenance_check_symtabs): Ditto.
299 * symtab.c (set_primary_symtab): Delete.
300 (compunit_primary_filetab): New function.
301 (compunit_language): New function.
302 (iterate_over_some_symtabs): Change type of arguments "first",
303 "after_last" to "struct compunit_symtab *". All callers updated.
304 Update to loop over symtabs in each compunit.
305 (error_in_psymtab_expansion): Rename symtab argument to cust,
306 and change type to "struct compunit_symtab *". All callers updated.
307 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
308 Change result type to "struct compunit_symtab *". All callers updated.
309 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
310 Change result type to "struct compunit_symtab *". All callers updated.
311 (find_pc_sect_line): Only loop over symtabs within selected compunit
312 instead of all symtabs in the objfile.
313 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
314 <compunit_symtab> New member.
315 <block_line_section>: Moved to compunit_symtab.
316 <locations_valid>: Ditto.
317 <epilogue_unwind_valid>: Ditto.
318 <macro_table>: Ditto.
320 <debugformat>: Ditto.
323 <call_site_htab>: Ditto.
327 (SYMTAB_COMPUNIT): New macro.
328 (SYMTAB_BLOCKVECTOR): Update definition.
329 (SYMTAB_OBJFILE): Update definition.
330 (SYMTAB_DIRNAME): Update definition.
331 (struct compunit_symtab): New type. Common members among all source
332 symtabs within a compilation unit moved here. All uses updated.
333 (COMPUNIT_OBJFILE): New macro.
334 (COMPUNIT_FILETABS): New macro.
335 (COMPUNIT_DEBUGFORMAT): New macro.
336 (COMPUNIT_PRODUCER): New macro.
337 (COMPUNIT_DIRNAME): New macro.
338 (COMPUNIT_BLOCKVECTOR): New macro.
339 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
340 (COMPUNIT_LOCATIONS_VALID): New macro.
341 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
342 (COMPUNIT_CALL_SITE_HTAB): New macro.
343 (COMPUNIT_MACRO_TABLE): New macro.
344 (ALL_COMPUNIT_FILETABS): New macro.
345 (compunit_symtab_ptr): New typedef.
346 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
348 2014-11-20 Joel Brobecker <brobecker@adacore.com>
350 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
351 if the TYPE_CODE of range_type's base type does not match
352 the TYPE_CODE of encoding_type's base type.
354 2014-11-19 Joel Brobecker <brobecker@adacore.com>
356 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
359 2014-11-19 Joel Brobecker <brobecker@adacore.com>
361 * ada-lang.c (ada_is_redundant_range_encoding): New function.
362 (ada_is_redundant_index_type_desc): New function.
363 (to_fixed_array_type): Ignore parallel XA type if redundant.
365 2014-11-19 Joel Brobecker <brobecker@adacore.com>
367 * ada-lang.c (constrained_packed_array_type): Set the length
368 of the return array as if both bounds where zero if that
369 returned array's index type is dynamic.
371 2014-11-19 Yao Qi <yao@codesourcery.com>
373 * config/i386/go32.mh (CC): Remove.
375 2014-11-18 Doug Evans <xdje42@gmail.com>
377 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
380 2014-11-18 Doug Evans <xdje42@gmail.com>
382 * buildsym.c (buildsym_objfile): New static global.
383 (buildsym_comp_dir): New static global.
384 (finish_block_internal): Delete arg objfile. All callers updated.
385 (finish_block): Delete arg objfile. All callers updated.
386 (start_subfile): Delete arg dirname. All callers updated.
387 (patch_subfile_names): Update buildsym_comp_dir.
388 (get_macro_table): Delete arg objfile. All callers updated.
389 (start_symtab): New arg objfile. All callers updated.
390 Rename arg dirname to comp_dir.
391 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
392 (end_symtab_get_static_block): Delete arg objfile. All callers
394 (end_symtab_without_blockvector): Ditto.
395 (end_symtab_with_blockvector): Ditto.
396 (end_symtab_from_static_block): Ditto.
398 (end_expandable_symtab): Ditto.
399 (augment_type_symtab): Ditto.
400 * coffread.c (coff_start_symtab): New arg objfile. All callers
403 2014-11-18 Doug Evans <xdje42@gmail.com>
405 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
408 2014-11-18 Doug Evans <xdje42@gmail.com>
410 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
411 symtab.dirname updated to use it.
413 2014-11-18 Doug Evans <xdje42@gmail.com>
415 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
416 symtab.objfile updated to use it.
418 2014-11-18 Doug Evans <xdje42@gmail.com>
420 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
422 2014-11-18 Doug Evans <xdje42@gmail.com>
424 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
426 * findvar.c (default_read_var_value): Ditto.
427 * jv-lang.c (add_class_symtab_symbol): Ditto.
428 * parse.c (operator_check_standard): Ditto.
429 * printcmd.c (address_info): Ditto.
430 * symtab.c (fixup_symbol_section): Ditto.
431 (skip_prologue_sal): Ditto.
432 * tracepoint.c (scope_info): Ditto.
433 * valops.c (find_function_in_inferior): Ditto.
434 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
435 * python/py-symbol.c (set_symbol): Ditto.
437 2014-11-18 Doug Evans <xdje42@gmail.com>
439 * buildsym.c (main_subfile): New static global.
440 (free_subfiles_list): New function.
441 (start_symtab): Set main_subfile.
442 (restart_symtab): Replace init of subfiles, current_subfile with
443 call to free_subfiles_list.
444 (watch_main_source_file_lossage): Use main_subfile.
445 (reset_symtab_globals): Replace init of current_subfile with call
446 to free_subfiles_list.
447 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
448 functions, split out from ...
449 (end_symtab_from_static_block): ... here. Rewrite to call them.
451 2014-11-18 Doug Evans <xdje42@gmail.com>
453 The result of symtab expansion is always a primary symtab.
454 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
455 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
456 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
457 (psymtab_to_symtab): Add comment and assert.
458 (map_matching_symbols_psymtab): Remove unnecessary test for
461 2014-11-15 Doug Evans <xdje42@gmail.com>
464 * symtab.c (find_pc_line_symtab): New function.
465 * symtab.h (find_pc_line_symtab): Declare.
466 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
468 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
469 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
470 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
471 * tui/tui-win.c (make_visible_with_new_height): Ditto.
472 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
473 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
475 2014-11-15 Doug Evans <xdje42@gmail.com>
477 * symtab.c (expand_symtab_containing_pc): Renamed from
478 find_pc_sect_symtab_via_partial. All callers updated.
480 2014-11-15 Yao Qi <yao@codesourcery.com>
482 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
484 2014-11-14 Joel Brobecker <brobecker@adacore.com>
486 * common/common-defs.h: Move <stdarg.h> #include ahead of
489 2014-11-14 Pedro Alves <palves@redhat.com>
491 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
492 [!PHONY_ICONV] (gdb_iconv): New function.
493 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
495 2014-11-13 Doug Evans <dje@google.com>
498 * dwarf2read.c (find_slot_in_mapped_hash): Handle
499 "(anonymous namespace)".
501 2014-11-13 Doug Evans <dje@google.com>
503 * dwarf2read.c (update_enumeration_type_from_children): Avoid
506 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
508 * NEWS (maint set target-async): Fix typo.
510 2014-11-12 Pedro Alves <palves@redhat.com>
512 * infrun.c (enum infwait_states, infwait_state): Delete.
514 2014-11-12 Pedro Alves <palves@redhat.com>
516 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
517 Rewrite stepping over a permanent breakpoint.
518 (thread_still_needs_step_over, proceed): Don't set
519 stepping_over_breakpoint for permanent breakpoints.
520 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
521 single-step breakpoints out of the target on hardware step
523 (process_event_stop_test): If stepping a permanent breakpoint
524 doesn't hit the step-resume breakpoint, delete the step-resume
526 (switch_back_to_stepped_thread): Also check if the stepped thread
527 has advanced already on hardware step targets.
528 (currently_stepping): Return true if the thread stepped a
531 2014-11-12 Pedro Alves <palves@redhat.com>
533 Mark locations as permanent, not the whole breakpoint.
534 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
535 (mark_breakpoints_out): Don't mark permanent breakpoints as
537 (breakpoint_init_inferior): Use mark_breakpoints_out.
538 (breakpoint_here_p): Adjust.
539 (bpstat_stop_status, describe_other_breakpoints): Remove handling
540 of permanent breakpoints.
541 (make_breakpoint_permanent): Mark each location as permanent,
542 instead of marking the breakpoint.
543 (add_location_to_breakpoint): If the location is permanent, mark
544 it as such, and as inserted.
545 (init_breakpoint_sal): Don't make the breakpoint permanent here.
546 (bp_location_compare, update_global_location_list): Adjust.
547 (update_breakpoint_locations): Don't make the breakpoint permanent
549 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
551 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
552 (struct bp_location) <permanent>: New field.
553 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
554 reference to bp_permanent.
556 2014-11-12 Pedro Alves <palves@redhat.com>
558 * arch-utils.c (default_skip_permanent_breakpoint): New function.
559 * arch-utils.h (default_skip_permanent_breakpoint): New
561 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
562 Install default_skip_permanent_breakpoint as default method.
563 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
564 (i386_gdbarch_init): Don't install it.
565 * infrun.c (resume): Assume there's always a
566 gdbarch_skip_permanent_breakpoint implementation.
567 * gdbarch.h, gdbarch.c: Regenerate.
569 2014-11-11 Daniel Colascione <dancol@dancol.org>
571 Warn about cross-PID-namespace debugging.
572 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
573 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
574 * linux-thread-db.c (check_pid_namespace_match): New function.
575 (thread_db_inferior_created): Call it.
577 2014-11-10 Doug Evans <xdje42@gmail.com>
579 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
580 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
582 2014-11-10 Doug Evans <xdje42@gmail.com>
584 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
586 2014-11-10 Doug Evans <xdje42@gmail.com>
589 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
590 (lookup_static_symbol): Move definition to new location and rewrite.
591 (lookup_symbol_in_objfile): New function.
592 (lookup_symbol_global_iterator_cb): Call it.
594 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
596 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
598 2014-11-07 Pedro Alves <palves@redhat.com>
600 * infrun.c (process_event_stop_test) <subroutine check>: Don't
601 check if we did a "nexti" inside a prologue.
602 * symtab.c (in_prologue): Delete function.
603 * symtab.h (in_prologue): Delete declaration.
605 2014-11-06 Doug Evans <xdje42@gmail.com>
607 * symtab.h (lookup_global_symbol): Improve function comment.
609 2014-11-06 Doug Evans <xdje42@gmail.com>
611 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
613 * symtab.h (lookup_global_symbol): Update decl.
614 (lookup_static_symbol): Move decl to better location.
616 2014-11-06 Doug Evans <xdje42@gmail.com>
618 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
620 2014-11-06 Doug Evans <xdje42@gmail.com>
622 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
624 (lookup_symbol_in_all_objfiles): Renamed from
625 lookup_symbol_aux_symtabs. All callers updated.
626 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
628 (lookup_symbol_in_objfile_symtabs): Renamed from
629 lookup_symbol_aux_objfile. All callers updated.
631 2014-11-06 Doug Evans <xdje42@gmail.com>
633 * symtab.c (lookup_symbol_in_block): Renamed from
634 lookup_symbol_aux_block. All callers updated.
636 2014-11-06 Doug Evans <xdje42@gmail.com>
638 * symtab.c (lookup_static_symbol): Renamed from
639 lookup_static_symbol_aux. All callers updated.
640 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
643 2014-11-06 Doug Evans <xdje42@gmail.com>
645 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
646 * block.c (block_lookup_symbol): Use it.
647 * cp-support.c (make_symbol_overload_list_block): Use it.
648 * symtab.c (iterate_over_symbols): Use it.
650 2014-11-06 Doug Evans <xdje42@gmail.com>
652 * symtab.c (lookup_block_symbol): Moved to ...
653 * block.c (block_lookup_symbol): ... here and renamed.
655 * block.h (block_lookup_symbol): Declare.
656 * symtab.h (lookup_block_symbol): Delete.
658 2014-11-06 Doug Evans <xdje42@gmail.com>
660 * ada-lang.c (ada_make_symbol_completion_list): Use
661 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
662 * symtab.c (lookup_objfile_from_block): Ditto.
664 2014-11-06 Doug Evans <xdje42@gmail.com>
666 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
669 2014-11-06 Doug Evans <xdje42@gmail.com>
671 * objfiles.c (get_objfile_arch): Constify.
672 * objfiles.h (get_objfile_arch): Update prototype.
673 * solib.c (solib_global_lookup): Fetch arch from objfile,
676 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
678 * nios2-tdep.c (wild_insn): Delete.
679 (profiler_insn, irqentry_insn): Delete.
680 (nios2_match_sequence): Delete.
681 (nios2_analyze_prologue): Update comments. Remove matching
682 of obsolete profiler_insn and irqentry_insn sequences.
684 2014-11-05 Alan Modra <amodra@gmail.com>
686 * charset.c (convert_between_encodings): Shrink obstack using
688 * minsyms.c (install_minimal_symbols): Likewise.
689 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
690 to char* before doing pointer arithmetic.
692 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
694 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
696 2014-11-04 Pedro Alves <palves@redhat.com>
698 * breakpoint.c (breakpoint_thread_match): Delete function.
699 * breakpoint.h (breakpoint_thread_match): Delete declaration.
701 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
704 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
705 the method args also under EVAL_SKIP when evaluating method
706 calls under EVAL_SKIP.
708 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
710 * dwarf2loc.c (read_pieced_value): Do big endian
711 processing only if gdb_regnum is not -1.
712 (write_pieced_value): Ditto.
714 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
716 * arm-linux-tdep.c (arm_linux_init_abi): Use
717 info.byte_order_for_code to choose endianity of breakpoint
718 instructions snippets.
720 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
722 * arm-tdep.c (extract_arm_insn): Use
723 gdbarch_byte_order_for_code to read arm instruction.
725 2014-11-02 Doug Evans <xdje42@gmail.com>
727 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
729 2014-11-02 Doug Evans <xdje42@gmail.com>
731 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
732 main_subfile before returning.
734 2014-10-31 Doug Evans <xdje42@gmail.com>
736 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
737 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
739 2014-10-31 Doug Evans <xdje42@gmail.com>
741 * valops.c (value_cast_pointers): Fix whitespace.
742 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
745 2014-10-30 Doug Evans <dje@google.com>
747 * NEWS: Mention ability add attributes to gdb.Objfile and
748 gdb.Progspace objects.
749 * python/py-objfile.c (objfile_object): New member dict.
750 (objfpy_dealloc): Py_XDECREF dict.
751 (objfpy_initialize): Initialize dict.
752 (objfile_getset): Add __dict__.
753 (objfile_object_type): Set tp_dictoffset member.
754 * python/py-progspace.c (progspace_object): New member dict.
755 (pspy_dealloc): Py_XDECREF dict.
756 (pspy_initialize): Initialize dict.
757 (pspace_getset): Add __dict__.
758 (pspace_object_type): Set tp_dictoffset member.
760 2014-10-30 Yao Qi <yao@codesourcery.com>
762 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
763 replace '\\' with '\\\\'.
765 2014-10-29 Joel Brobecker <brobecker@adacore.com>
769 2014-10-29 Pedro Alves <palves@redhat.com>
772 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
773 instead of assuming a thread with a stepping range is always
776 2014-10-29 Pedro Alves <palves@redhat.com>
779 * event-top.c (change_line_handler): Call
780 gdb_rl_callback_handler_remove instead of
781 rl_callback_handler_remove.
782 (callback_handler_installed): New global.
783 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
784 (gdb_rl_callback_handler_reinstall): New functions.
785 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
786 gdb_rl_callback_handler_install instead of
787 rl_callback_handler_remove and rl_callback_handler_install.
788 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
789 instead of rl_callback_handler_remove.
790 * event-top.h (gdb_rl_callback_handler_remove)
791 (gdb_rl_callback_handler_install)
792 (gdb_rl_callback_handler_reinstall): New declarations.
793 * infrun.c (reinstall_readline_callback_handler_cleanup): New
795 (fetch_inferior_event): Install it.
796 * top.c (gdb_readline_wrapper_line) Call
797 gdb_rl_callback_handler_remove instead of
798 rl_callback_handler_remove.
799 (gdb_readline_wrapper_cleanup): Don't call
800 rl_callback_handler_install.
802 2014-10-29 Pedro Alves <palves@redhat.com>
804 * event-top.c (command_line_handler): Clear the first byte of
805 linebuffer, when it is first allocated.
807 2014-10-29 Pedro Alves <palves@redhat.com>
809 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
812 2014-10-29 Pedro Alves <palves@redhat.com>
816 * tui/tui-interp.c (tui_is_toplevel): Delete global.
817 (tui_allowed_p): Delete function.
818 * tui/tui.c: Include "interps.h".
819 (tui_enable): Don't use tui_allowed_p. Error out here with
820 detailed error messages if the TUI is the top level interpreter,
821 or if output is not a terminal. Use newterm instead of initscr,
822 and error out if initializing the terminal fails. Also error out if
823 the terminal doesn't support cursor addressing.
824 * tui/tui.h (tui_allowed_p): Delete declaration.
826 2014-10-29 Joel Brobecker <brobecker@adacore.com>
828 * arm-tdep.c (arm_skip_stack_protector): Return early if
829 address loaded by first "ldr" instruction does not have
830 a corresponding minimal symbol. Update comment.
832 2014-10-29 Yao Qi <yao@codesourcery.com>
834 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
835 loaded address correctly of ldr instruction.
837 2014-10-28 Pedro Alves <palves@redhat.com>
840 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
842 * infrun.c (resume) <stepping breakpoint instruction>: Set the
843 thread's stepped_breakpoint field. Skip if reverse debugging.
845 (init_thread_stepping_state, handle_signal_stop): Clear the
846 thread's stepped_breakpoint field.
848 2014-10-27 Pedro Alves <palves@redhat.com>
850 * remote.c (remote_thread_alive): New, factored out from ...
851 (remote_thread_alive): ... this.
852 (remote_update_thread_list): Bail out before deleting threads if
853 the target returned an empty list, and, the current thread has a
856 2014-10-27 Pedro Alves <palves@redhat.com>
858 * infrun.c (handle_signal_stop): Also skip handlers when a random
859 signal arrives while handling a "stepi" or a "nexti". Set the
860 thread's 'step_after_step_resume_breakpoint' flag.
862 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
864 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
865 (arm_record_ld_st_imm_offset): Reimplement to cover all
866 load/store cases for ARM opcode 010.
867 (arm_record_ld_st_multiple): Reimplement to cover all
868 load/store cases for ARM opcode 100.
870 2014-10-26 Doug Evans <xdje42@gmail.com>
872 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
874 2014-10-26 Doug Evans <xdje42@gmail.com>
876 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
877 parameter "kind" to "block_index".
878 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
880 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
882 2014-10-26 Doug Evans <xdje42@gmail.com>
884 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
886 2014-10-26 Doug Evans <xdje42@gmail.com>
888 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
891 2014-10-26 Doug Evans <xdje42@gmail.com>
893 * parser-defs.h (block_found): Move decl from here ...
894 * symtab.h (block_found): ... to here.
896 2014-10-26 Doug Evans <xdje42@gmail.com>
898 * symtab.h (struct field_of_this_result): Fix typo in comment.
899 (lookup_symbol_in_language): Move function comment here.
900 (lookup_symbol): Improve function comment.
901 (basic_lookup_symbol_nonlocal): Ditto.
902 (lookup_symbol_static, lookup_symbol_global): Ditto.
903 (lookup_symbol_aux_block): Ditto.
904 (lookup_language_this): Add function comment.
905 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
907 (lookup_block_symbol): Improve function comment.
908 (lookup_struct): Fix capitalization in function comment.
909 (lookup_transparent_type): Add function comment.
910 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
911 Improve function comment.
912 (lookup_objfile_from_block): Add function comment.
913 * symtab.c (lookup_symbol_in_language): Update function comment.
914 (lookup_symbol, lookup_language_this): Ditto.
915 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
916 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
917 (basic_lookup_symbol_nonlocal): Ditto.
918 (lookup_symbol_static, lookup_symbol_global): Ditto.
919 (lookup_transparent_type, lookup_block_symbol): Ditto.
921 2014-10-25 Doug Evans <xdje42@gmail.com>
923 * symtab.c (types_info): Delete forward decl.
924 (functions_info, variables_info, sources_info): Ditto.
925 (_initialize_symtab): Rewrite forward decl to use
926 initialize_file_ftype.
928 2014-10-25 Doug Evans <xdje42@gmail.com>
930 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
932 2014-10-25 Doug Evans <xdje42@gmail.com>
934 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
935 of local var child_die.
937 2014-10-24 Don Breazeal <donb@codesourcery.com>
939 * infrun.c (follow_fork_inferior): Update fork message printing
940 to use target_terminal_ours_for_output instead of
941 target_terminal_ours, to use _() for all format strings, to print
942 "vfork" instead of "fork" for vforks, and to add a detach message.
943 (handle_vfork_child_exec_or_exit): Update message printing to use
944 target_terminal_ours_for_output instead of target_terminal_ours, to
945 use _() for all format strings, and to fix some formatting.
947 2014-10-24 Pedro Alves <palves@redhat.com>
949 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
950 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
951 * config/vax/vax.mh: Delete.
952 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
953 obsolete configurations section.
954 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
955 * vax-nat.c: Delete file.
957 2014-10-24 Pedro Alves <palves@redhat.com>
959 * NEWS (Removed targets): Add OS/arch column.
961 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
963 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
964 on the arg type of a constructor only if it is of reference type.
966 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
968 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
969 accessors and constants from nios2 opcodes update.
970 (nios2_get_next_pc): Likewise.
972 2014-10-19 Doug Evans <xdje42@gmail.com>
974 * gdbthread.h (set_running): Fix comment.
975 (set_executing, finish_thread_state): Fix comment.
977 2014-10-18 Doug Evans <xdje42@gmail.com>
979 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
981 2014-10-17 Doug Evans <dje@google.com>
983 * NEWS: Mention new event gdb.clear_objfiles.
984 * python/py-event.h (emit_clear_objfiles_event): Clear
985 * python/py-events.h (events_object): New member clear_objfiles.
986 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
988 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
989 emit clear_objfiles event.
990 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
992 (emit_clear_objfiles_event): New function.
993 (clear_objfiles): New event.
994 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
996 * python/python.c (_initialize_python): Call
997 gdbpy_initialize_clear_objfiles_event.
999 2014-10-17 Doug Evans <dje@google.com>
1001 * NEWS: Mention new gdb.Objfile.progspace attribute.
1002 * python/py-objfile.c (objfpy_get_progspace): New function.
1003 (objfile_getset): New entry for "progspace".
1005 2014-10-17 Pedro Alves <palves@redhat.com>
1008 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1009 returns a copy of the input.
1010 (run_command_1, continue_command, step_1, jump_command)
1011 (signal_command, until_command, advance_command, finish_command)
1012 (attach_command): Adjust and install a cleanup to free the
1015 2014-10-17 Pedro Alves <palves@redhat.com>
1018 * infcmd.c (continue_1): If continuing all threads in the
1019 foreground, make sure the inferior's terminal settings are put in
1022 2014-10-17 Pedro Alves <palves@redhat.com>
1025 * annotate.c (annotate_breakpoints_invalid): Use
1026 target_terminal_our_for_output instead of target_terminal_ours.
1027 Give back the terminal to the target.
1028 (annotate_frames_invalid): Likewise.
1030 2014-10-17 Pedro Alves <palves@redhat.com>
1032 * target.c (enum terminal_state): New enum.
1033 (terminal_state): New global.
1034 (target_terminal_init): New function.
1035 (target_terminal_inferior): Skip if inferior already owns the
1037 (target_terminal_ours, target_terminal_ours_for_output): New
1039 * target.h (target_terminal_init): Convert to function prototype.
1040 (target_terminal_ours_for_output): Convert to function prototype
1042 (target_terminal_ours): Convert to function prototype and tweak
1044 * windows-nat.c (do_initial_windows_stuff): Call
1045 target_terminal_init instead of child_terminal_init_with_pgrp.
1047 2014-10-17 Pedro Alves <palves@redhat.com>
1049 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1050 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1051 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1053 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1054 * ada-lang.h [__alpha__ && __osf__]
1055 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1056 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1057 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1059 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1061 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1062 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1063 * configure: Regenerate.
1064 * configure.ac: Remove references to osf.
1065 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1066 section. Remove all other references to osf.
1067 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1068 Remove all other references to osf.
1069 * dec-thread.c: Delete file.
1070 * defs.h (GDB_OSABI_OSF1): Delete.
1071 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1073 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1074 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1076 (unconditionally_kill_inferior)
1077 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1078 * solib-osf.c: Delete file.
1080 2014-10-17 Pedro Alves <palves@redhat.com>
1082 * remote.c (clear_threads_listing_context): Move higher up, out of
1083 the HAVE_LIBEXPAT guard.
1085 2014-10-16 Tristan Gingold <gingold@adacore.com>
1087 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1088 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1091 2014-10-15 Pedro Alves <palves@redhat.com>
1093 * dec-thread.c (dec_thread_count_gdb_threads)
1094 (dec_thread_add_gdb_thread): Delete.
1095 (dec_thread_update_thread_list): Delete.
1096 (dec_thread_find_new_threads): Rename to ...
1097 (dec_thread_update_thread_list): ... this. Delete GDB-size
1098 threads that are no longer found in dec_thread_list.
1099 (resync_thread_list): Delete.
1100 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1103 2014-10-15 Pedro Alves <palves@redhat.com>
1105 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1106 * remote.c (remote_update_thread_list): Skip calling prune_threads
1107 if any thread listing method is supported, and instead walk over
1108 the set of remote threads listed, deleting those that are not
1109 found in GDB's thread list.
1111 2014-10-15 Pedro Alves <palves@redhat.com>
1113 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1114 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1115 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1116 (bsd_uthread_target): Adjust.
1117 * corelow.c (core_open): Adjust.
1118 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1119 (dec_thread_update_thread_list): New function.
1120 (init_dec_thread_ops): Adjust.
1121 * gdbthread.h (prune_threads): New declaration.
1122 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1123 (thread_db_update_thread_list): ... this. Call prune_threads.
1124 (init_thread_db_ops): Adjust.
1125 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1126 (procfs_update_thread_list): ... this. Call prune_threads.
1127 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1129 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1130 (obsd_update_thread_list): ... this. Call prune_threads.
1131 (obsd_add_target): Adjust.
1132 * procfs.c (procfs_target): Adjust.
1133 (procfs_notice_thread): Update comment.
1134 (procfs_find_new_threads): Rename to ...
1135 (procfs_update_thread_list): ... this. Call prune_threads.
1136 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1138 (ravenscar_wait): Adjust.
1139 (ravenscar_find_new_threads): Rename to ...
1140 (ravenscar_update_thread_list): ... this. Call prune_threads.
1141 (init_ravenscar_thread_ops): Adjust.
1142 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1143 (record_btrace_update_thread_list): ... this. Adjust comment.
1144 (init_record_btrace_ops): Adjust.
1145 * remote.c (remote_threads_info): Rename to ...
1146 (remote_update_thread_list): ... this. Call prune_threads.
1147 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1149 * sol-thread.c (check_for_thread_db): Adjust.
1150 (sol_find_new_threads_callback): Rename to ...
1151 (sol_update_thread_list_callback): ... this.
1152 (sol_find_new_threads): Rename to ...
1153 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1154 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1155 * target-delegates.c: Regenerate.
1156 * target.c (target_find_new_threads): Rename to ...
1157 (target_update_thread_list): ... this.
1158 * target.h (struct target_ops): Rename to_find_new_threads field
1159 to to_update_thread_list.
1160 (target_find_new_threads): Rename to ...
1161 (target_update_thread_list): ... this.
1162 * thread.c (prune_threads): Make extern.
1163 (update_thread_list): Adjust.
1165 2014-10-15 Pedro Alves <palves@redhat.com>
1167 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1168 Add describing comment. Return -1 if the qL packet is not
1170 (struct thread_item, thread_item_t): Move higher up in
1171 the file. Add comments.
1172 (struct threads_parsing_context): Move higher up in
1173 the file, add comments, and remote to ...
1174 (struct threads_listing_context): ... this.
1175 (remote_newthread_step): Don't add the thread to GDB's thread
1176 database here. Instead push it to the thread_listing_context
1178 (remote_find_new_threads): Rename to ...
1179 (remote_get_threads_with_ql): ... this. Add target_ops and
1180 targets_listing_context parameters. Pass down context.
1181 (start_thread): Adjust.
1182 (clear_threads_parsing_context): Rename to ...
1183 (clear_threads_listing_context): ... this.
1184 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1185 remote_threads_info.
1186 (remote_get_threads_with_qthreadinfo): Ditto.
1187 (remote_threads_info): Reimplement.
1189 2014-10-15 Pedro Alves <palves@redhat.com>
1191 * infrun.c (resume): Don't force displaced-stepping for all
1192 single-steps on software single-stepping archs.
1194 2014-10-15 Pedro Alves <palves@redhat.com>
1196 * breakpoint.c (single_step_breakpoints): Delete global.
1197 (insert_single_step_breakpoint): Adjust to store the breakpoint
1198 pointer in the current thread.
1199 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1200 (cancel_single_step_breakpoints): Delete functions.
1201 (breakpoint_has_location_inserted_here): Make extern.
1202 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1204 * breakpoint.h (breakpoint_has_location_inserted_here): New
1206 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1207 (cancel_single_step_breakpoints): Remove declarations.
1208 * gdbthread.h (struct thread_control_state)
1209 <single_step_breakpoints>: New field.
1210 (delete_single_step_breakpoints)
1211 (thread_has_single_step_breakpoints_set)
1212 (thread_has_single_step_breakpoint_here): New declarations.
1213 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1214 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1215 (singlestep_pc): Delete globals.
1216 (infrun_thread_ptid_changed): Remove references to removed
1218 (resume_cleanups): Delete the current thread's single-step
1220 (maybe_software_singlestep): Remove references to removed globals.
1221 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1222 delete_single_step_breakpoints.
1223 (init_wait_for_inferior): Remove references to removed globals.
1224 (delete_thread_infrun_breakpoints): Delete the thread's
1225 single-step breakpoints too.
1226 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1227 single-step breakpoints here.
1228 (delete_stopped_threads_single_step_breakpoints): New function.
1229 (adjust_pc_after_break): Adjust to use
1230 thread_has_single_step_breakpoints_set.
1231 (handle_inferior_event): Remove references to removed globals.
1232 Use delete_stopped_threads_single_step_breakpoints.
1233 (handle_signal_stop): Adjust to per-thread single-step
1234 breakpoints. Swap test order to do cheaper tests first.
1235 (switch_back_to_stepped_thread): Extend debug output. Remove
1236 references to removed globals.
1237 * record-full.c (record_full_wait_1): Adjust to per-thread
1238 single-step breakpoints.
1239 * thread.c (delete_single_step_breakpoints)
1240 (thread_has_single_step_breakpoints_set)
1241 (thread_has_single_step_breakpoint_here): New functions.
1242 (clear_thread_inferior_resources): Also delete the thread's
1243 single-step breakpoints.
1245 2014-10-15 Pedro Alves <palves@redhat.com>
1247 * thread.c (delete_thread_breakpoint): New function.
1248 (delete_step_resume_breakpoint)
1249 (delete_exception_resume_breakpoint): Use it.
1250 (delete_at_next_stop): New function.
1251 (clear_thread_inferior_resources): Use delete_at_next_stop.
1253 2014-10-15 Pedro Alves <palves@redhat.com>
1255 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1256 (breakpoint_inserted_here_p): ... here. Remove special case for
1257 software single-step breakpoints.
1258 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1259 (software_breakpoint_inserted_here_p): ... here. Remove special
1260 case for software single-step breakpoints.
1261 (bp_target_info_copy_insertion_state)
1262 (deprecated_insert_raw_breakpoint)
1263 (deprecated_remove_raw_breakpoint): Delete functions.
1264 * breakpoint.h (deprecated_insert_raw_breakpoint)
1265 (deprecated_remove_raw_breakpoint): Remove declarations.
1267 2014-10-15 Pedro Alves <palves@redhat.com>
1270 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1271 Delete array globals.
1272 (single_step_breakpoints): New global.
1273 (breakpoint_xfer_memory): Remove special handling for single-step
1275 (update_breakpoints_after_exec): Delete bp_single_step
1277 (detach_breakpoints): Remove special handling for single-step
1279 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1280 (bpstat_stop_status): Add comment.
1281 (bpstat_what, bptype_string, print_one_breakpoint_location)
1282 (adjust_breakpoint_address, init_bp_location): Handle
1284 (new_single_step_breakpoint): New function.
1285 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1286 handling for single-step breakpoints.
1287 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1288 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1290 (detach_single_step_breakpoints, find_single_step_breakpoint):
1292 (breakpoint_has_location_inserted_here): New function.
1293 (single_step_breakpoint_inserted_here_p): Rewrite.
1294 * breakpoint.h: Remove FIXME.
1295 (enum bptype) <bp_single_step>: New enum value.
1296 (insert_single_step_breakpoint): Update comment.
1297 * infrun.c (resume_cleanups)
1298 (delete_step_thread_step_resume_breakpoint): Remove single-step
1300 (fetch_inferior_event): Install a cleanup that removes infrun
1302 (switch_back_to_stepped_thread) <expect thread advanced also>:
1303 Clear step-over info.
1305 2014-10-15 Pedro Alves <palves@redhat.com>
1307 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1308 (delete_thread_infrun_breakpoints): New function, with parts
1309 salvaged from delete_step_resume_breakpoint_callback.
1310 (delete_step_thread_step_resume_breakpoint): Delete.
1311 (for_each_just_stopped_thread_callback_func): New typedef.
1312 (for_each_just_stopped_thread): New function.
1313 (delete_just_stopped_threads_infrun_breakpoints): New function.
1314 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1315 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1317 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1319 2014-10-15 Pedro Alves <palves@redhat.com>
1321 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1322 trying to step past a non-steppable watchpoint.
1323 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1325 * infrun.c (struct step_over_info): Add new field
1326 'nonsteppable_watchpoint_p' and adjust comments.
1327 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1329 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1330 (stepping_past_nonsteppable_watchpoint): New function.
1331 (step_over_info_valid_p): Also return true if stepping past a
1332 nonsteppable watchpoint.
1333 (proceed): Adjust call to set_step_over_info. Remove reference to
1335 (init_wait_for_inferior): Remove reference to init_infwait_state.
1336 (waiton_ptid): Delete global.
1337 (struct execution_control_state)
1338 <stepped_after_stopped_by_watchpoint>: Delete field.
1339 (wait_for_inferior, fetch_inferior_event): Always pass
1340 minus_one_ptid to target_wait.
1341 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1343 (init_infwait_state): Delete function.
1344 (handle_inferior_event): Remove infwait_state handling.
1345 (handle_signal_stop) <watchpoints handling>: Adjust after
1346 stepped_after_stopped_by_watchpoint removal. Don't remove
1347 breakpoints here nor set infwait_state. Set the thread's
1348 stepping_over_watchpoint flag, and call keep_going instead.
1349 (keep_going): Handle stepping_over_watchpoint. Adjust
1350 set_step_over_info calls.
1351 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1354 2014-10-15 Pedro Alves <palves@redhat.com>
1356 * infrun.c (step_over_info_valid_p): New function.
1357 (resume): Use step_over_info_valid_p instead of checking the
1358 threads's trap_expected flag.
1360 2014-10-15 Doug Evans <dje@google.com>
1361 Walfred Tedeschi <walfred.tedeschi@intel.com>
1364 * python/lib/gdb/__init__.py (packages): Add "printer".
1365 * python/lib/gdb/command/bound_registers.py: Moved to ...
1366 * python/lib/gdb/printer/bound_registers.py: ... here.
1367 Add printer to global set of builtin printers. Rename printer from
1368 "bound" to "mpx_bound128".
1369 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1370 registered as global "builtin" printer.
1371 (add_builtin_pretty_printer): New function.
1372 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1373 gdb/printer/__init__.py.
1375 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1377 * Makefile.in (SFILES): Remove d-support.c.
1378 (COMMON_OBS): Remove d-support.o.
1379 * d-lang.h (d_parse_symbol): Remove declaration.
1380 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1381 * d-support.c: Remove file.
1383 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1385 * gdb/infrun.c (process_event_stop_test): Apply
1386 gdbarch_addr_bits_remove to longjmp resume address.
1388 2014-10-15 Pedro Alves <palves@redhat.com>
1390 * regformats/microblaze.dat: Delete file.
1392 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1394 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1395 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1397 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1399 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1402 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1406 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1407 with qualified args.
1409 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1411 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1412 of the case where the second operand is a pointer.
1413 <BINOP_SUB>: Likewise.
1415 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1417 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1418 only if it is not NULL.
1419 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1420 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1421 (struct probe_ops) <clear_semaphore>: Likewise.
1422 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1424 (stop_tracing): Likewise, for clear_semaphore.
1426 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1428 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1429 using language_c, instead of current_language.
1431 2014-10-13 Doug Evans <dje@google.com>
1433 * python/py-objfile.c (objfpy_initialize): New function.
1434 (objfpy_new, objfile_to_objfile_object): Call it.
1435 * python/py-progspace.c (pspy_initialize): New function.
1436 (pspy_new, pspace_to_pspace_object): Call it.
1438 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1439 Jan Kratochvil <jan.kratochvil@redhat.com>
1441 Fix "save breakpoints" for "catch" command.
1442 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1445 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1447 Fix "save breakpoints" for "disable $bpnum" command.
1448 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1450 2014-10-10 Pedro Alves <palves@redhat.com>
1452 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1453 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1454 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1455 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1457 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1458 * configure.ac: Remove references to IRIX.
1459 * configure.host: Add *-*-irix* to the obsolete hosts section.
1460 Remove all other references to irix.
1461 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1464 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1466 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1467 isn't valid, release the tdesc arch data and return NULL.
1469 2014-10-10 Pedro Alves <palves@redhat.com>
1471 * linux-tdep.c: Include observer.h.
1472 (linux_inferior_data): New global.
1473 (struct linux_info): New structure.
1474 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1475 (get_linux_inferior_data): New functions.
1476 (linux_vsyscall_range): Rename to ...
1477 (linux_vsyscall_range_raw): ... this.
1478 (linux_vsyscall_range): New function; handles caching.
1479 (_initialize_linux_tdep): Register linux_inferior_data. Install
1480 inferior_exit and inferior_appeared observers.
1482 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1483 Pedro Alves <palves@redhat.com>
1486 * solib-svr4.c (svr4_read_so_list): Rename to ...
1487 (svr4_current_sos_1): ... this and change the function comment.
1488 (svr4_current_sos): New function.
1490 2014-10-10 Pedro Alves <palves@redhat.com>
1492 * arch-utils.c (default_vsyscall_range): New function.
1493 * arch-utils.h (default_vsyscall_range): New declaration.
1494 * gdbarch.sh (vsyscall_range): New hook.
1495 * gdbarch.h, gdbarch.c: Regenerate.
1496 * linux-tdep.c (linux_vsyscall_range): New function.
1497 (linux_init_abi): Install linux_vsyscall_range as
1498 vsyscall_range gdbarch hook.
1499 * memrange.c (address_in_mem_range): New function.
1500 * memrange.h (address_in_mem_range): New declaration.
1501 * symfile-mem.c (find_vdso_size): Delete function.
1502 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1504 2014-10-10 Pedro Alves <palves@redhat.com>
1506 * infrun.c (normal_stop): Fix typo in comment.
1508 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1511 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1512 typo when using logical AND to determine instruction type.
1514 2014-10-09 Yao Qi <yao@codesourcery.com>
1516 * infrun.c (handle_signal_stop): Remove local variable
1519 2014-10-08 Stan Shebs <stan@codesourcery.com>
1521 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1523 2014-10-08 Gary Benson <gbenson@redhat.com>
1525 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1527 2014-10-08 Gary Benson <gbenson@redhat.com>
1529 * common/common-defs.h: Include common-exceptions.h.
1530 * exceptions.h: Do not include common-exceptions.h.
1532 2014-10-08 Gary Benson <gbenson@redhat.com>
1534 * common/common-defs.h: Include cleanups.h.
1535 * common/common-exceptions.c: Do not include cleanups.h.
1536 * utils.h: Likewise.
1538 2014-10-08 Gary Benson <gbenson@redhat.com>
1540 * ada-lang.c: Do not include exceptions.h.
1541 * ada-valprint.c: Likewise.
1542 * amd64-tdep.c: Likewise.
1543 * auto-load.c: Likewise.
1544 * block.c: Likewise.
1545 * break-catch-throw.c: Likewise.
1546 * breakpoint.c: Likewise.
1547 * btrace.c: Likewise.
1548 * c-lang.c: Likewise.
1549 * cli/cli-cmds.c: Likewise.
1550 * cli/cli-interp.c: Likewise.
1551 * cli/cli-script.c: Likewise.
1552 * completer.c: Likewise.
1553 * corefile.c: Likewise.
1554 * corelow.c: Likewise.
1555 * cp-abi.c: Likewise.
1556 * cp-support.c: Likewise.
1557 * cp-valprint.c: Likewise.
1558 * darwin-nat.c: Likewise.
1559 * dwarf2-frame-tailcall.c: Likewise.
1560 * dwarf2-frame.c: Likewise.
1561 * dwarf2loc.c: Likewise.
1562 * dwarf2read.c: Likewise.
1564 * event-loop.c: Likewise.
1565 * event-top.c: Likewise.
1566 * f-valprint.c: Likewise.
1567 * frame-unwind.c: Likewise.
1568 * frame.c: Likewise.
1569 * gdbtypes.c: Likewise.
1570 * gnu-v2-abi.c: Likewise.
1571 * gnu-v3-abi.c: Likewise.
1572 * guile/scm-auto-load.c: Likewise.
1573 * guile/scm-breakpoint.c: Likewise.
1574 * guile/scm-cmd.c: Likewise.
1575 * guile/scm-frame.c: Likewise.
1576 * guile/scm-lazy-string.c: Likewise.
1577 * guile/scm-param.c: Likewise.
1578 * guile/scm-symbol.c: Likewise.
1579 * guile/scm-type.c: Likewise.
1580 * hppa-hpux-tdep.c: Likewise.
1581 * i386-tdep.c: Likewise.
1582 * inf-loop.c: Likewise.
1583 * infcall.c: Likewise.
1584 * infcmd.c: Likewise.
1585 * infrun.c: Likewise.
1586 * interps.c: Likewise.
1587 * interps.h: Likewise.
1589 * linespec.c: Likewise.
1590 * linux-nat.c: Likewise.
1591 * linux-thread-db.c: Likewise.
1592 * m32r-rom.c: Likewise.
1594 * memory-map.c: Likewise.
1595 * mi/mi-cmd-break.c: Likewise.
1596 * mi/mi-cmd-stack.c: Likewise.
1597 * mi/mi-interp.c: Likewise.
1598 * mi/mi-main.c: Likewise.
1599 * monitor.c: Likewise.
1600 * nto-procfs.c: Likewise.
1601 * objc-lang.c: Likewise.
1602 * p-valprint.c: Likewise.
1603 * parse.c: Likewise.
1604 * ppc-linux-tdep.c: Likewise.
1605 * printcmd.c: Likewise.
1606 * probe.c: Likewise.
1607 * python/py-auto-load.c: Likewise.
1608 * python/py-breakpoint.c: Likewise.
1609 * python/py-cmd.c: Likewise.
1610 * python/py-finishbreakpoint.c: Likewise.
1611 * python/py-frame.c: Likewise.
1612 * python/py-framefilter.c: Likewise.
1613 * python/py-function.c: Likewise.
1614 * python/py-gdb-readline.c: Likewise.
1615 * python/py-inferior.c: Likewise.
1616 * python/py-infthread.c: Likewise.
1617 * python/py-lazy-string.c: Likewise.
1618 * python/py-linetable.c: Likewise.
1619 * python/py-param.c: Likewise.
1620 * python/py-prettyprint.c: Likewise.
1621 * python/py-symbol.c: Likewise.
1622 * python/py-type.c: Likewise.
1623 * python/py-value.c: Likewise.
1624 * python/python-internal.h: Likewise.
1625 * python/python.c: Likewise.
1626 * record-btrace.c: Likewise.
1627 * record-full.c: Likewise.
1628 * regcache.c: Likewise.
1629 * remote-fileio.c: Likewise.
1630 * remote-mips.c: Likewise.
1631 * remote.c: Likewise.
1632 * rs6000-aix-tdep.c: Likewise.
1633 * rs6000-nat.c: Likewise.
1635 * solib-darwin.c: Likewise.
1636 * solib-dsbt.c: Likewise.
1637 * solib-frv.c: Likewise.
1638 * solib-ia64-hpux.c: Likewise.
1639 * solib-spu.c: Likewise.
1640 * solib-svr4.c: Likewise.
1641 * solib.c: Likewise.
1642 * spu-tdep.c: Likewise.
1643 * stack.c: Likewise.
1644 * stap-probe.c: Likewise.
1645 * symfile-mem.c: Likewise.
1646 * symmisc.c: Likewise.
1647 * target.c: Likewise.
1648 * thread.c: Likewise.
1650 * tracepoint.c: Likewise.
1651 * tui/tui-interp.c: Likewise.
1652 * typeprint.c: Likewise.
1653 * utils.c: Likewise.
1654 * valarith.c: Likewise.
1655 * valops.c: Likewise.
1656 * valprint.c: Likewise.
1657 * value.c: Likewise.
1658 * varobj.c: Likewise.
1659 * windows-nat.c: Likewise.
1660 * xml-support.c: Likewise.
1662 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1664 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1666 (extended_mips16_next_pc): Update accordingly.
1668 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1670 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1672 (micromips_instruction_is_compact_branch): Likewise.
1673 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1674 or a compact jump, reaching a jump delay slot, or seeing a
1675 second non-prologue instruction.
1676 (micromips_scan_prologue): Also terminate scanning upon seeing a
1677 compact branch or jump, or reaching a branch or jump delay slot.
1678 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1679 or jump delay slot, or seeing a second non-prologue instruction.
1680 (mips32_instruction_has_delay_slot): Retain instruction
1681 examination code only, update arguments accordingly and move
1682 instruction fetch pieces to...
1683 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1684 (micromips_instruction_has_delay_slot): Likewise and to...
1685 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1686 (mips16_instruction_has_delay_slot): Likewise and to...
1687 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1688 (mips_single_step_through_delay): Update accordingly.
1689 (mips_adjust_breakpoint_address): Likewise.
1691 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1693 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1694 !mustbe32 also return 1 for 32-bit instructions.
1695 (mips16_instruction_has_delay_slot): Likewise. Add an
1696 explanatory comment.
1698 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1700 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1703 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1705 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1707 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1708 for the breakpoint's address. Don't preinitialize `placed_size'.
1709 (insert_bp_location): Set `reqstd_address' rather than
1711 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1712 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1714 (bkpt_remove_location): Likewise.
1715 (deprecated_insert_raw_breakpoint): Likewise.
1716 (deprecated_remove_raw_breakpoint): Likewise.
1717 (find_single_step_breakpoint): Likewise.
1718 * mem-break.c (default_memory_insert_breakpoint): Use
1719 `reqstd_address' for the breakpoint's address. Don't set
1720 `placed_address' or `placed_size' if breakpoint contents couldn't
1721 have been determined.
1722 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1723 the breakpoint's address.
1724 (remote_insert_hw_breakpoint): Likewise. Don't set
1725 `placed_address' or `placed_size' if breakpoint couldn't have been
1727 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1728 `reqstd_address' for the breakpoint's address.
1729 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1730 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1731 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1732 * microblaze-linux-tdep.c
1733 (microblaze_linux_memory_remove_breakpoint): Likewise.
1734 * monitor.c (monitor_insert_breakpoint): Likewise.
1735 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1736 (procfs_insert_hw_breakpoint): Likewise.
1737 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1738 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1739 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1740 * remote-mips.c (mips_insert_breakpoint): Likewise.
1741 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1743 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1745 * valops.c (value_assign): Check for bit field assignments
1746 before calling architecture-specific register value
1747 conversion functions.
1749 2014-10-03 Pierre Muller <muller@sourceware.org>
1751 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1753 2014-10-02 Pedro Alves <palves@redhat.com>
1755 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1756 threads_are_executing.
1757 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1759 * gdbthread.h (threads_are_executing): Declare.
1760 (handle_signal_stop) <random signals>: Don't print about the
1761 signal here if stopping.
1762 (end_stepping_range): Don't notify observers here.
1763 (normal_stop): Update the thread list. If stopped by a random
1764 signal or a stepping range ended, notify observers.
1765 * thread.c (threads_executing): New global.
1766 (init_thread_list): Clear 'threads_executing'.
1767 (set_executing): Set or clear 'threads_executing'.
1768 (threads_are_executing): New function.
1769 (update_threads_executing): New function.
1770 (update_thread_list): Use it.
1772 2014-10-02 Pedro Alves <palves@redhat.com>
1774 PR breakpoints/17431
1775 * breakpoint.c (update_breakpoints_after_exec): Don't create
1776 overlay, longjmp, std terminate nor exception breakpoints here.
1778 2014-10-02 Pedro Alves <palves@redhat.com>
1780 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1782 * inferior.c (find_inferior_for_program_space): Give preference to
1783 the current inferior.
1784 * inferior.h (find_inferior_for_program_space): Update comment.
1785 * progspace.c (switch_to_program_space_and_thread): Prefer the
1786 current inferior if it's bound to the program space requested. If
1787 the inferior found doesn't have a PID yet, don't bother looking up
1789 * progspace.h (switch_to_program_space_and_thread): Adjust
1791 * thread.c (any_thread_of_process, any_live_thread_of_process):
1792 Give preference to the current thread.
1794 2014-10-01 Pedro Alves <palves@redhat.com>
1796 * breakpoint.c (insert_bp_location): Error out if inserting a
1797 software breakpoint at a read-only address.
1798 * target.c (memory_xfer_check_region): New function, factored out
1800 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1802 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1803 against the memory region attributes.
1805 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1807 * NEWS: Announce new exit-code field in -list-thread-groups
1809 * inferior.c (exit_inferior_1): Don't clear exit code.
1810 (inferior_appeared): Clear exit code.
1811 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1814 2014-10-01 Pedro Alves <palves@redhat.com>
1816 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1817 GENERATED" along with emacs/vi read-only markers.
1818 * regformats/aarch64.dat: Regenerate.
1819 * regformats/arm-with-iwmmxt.dat: Regenerate.
1820 * regformats/arm-with-neon.dat: Regenerate.
1821 * regformats/arm-with-vfpv2.dat: Regenerate.
1822 * regformats/arm-with-vfpv3.dat: Regenerate.
1823 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1824 * regformats/i386/amd64-avx.dat: Regenerate.
1825 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1826 * regformats/i386/amd64-avx512.dat: Regenerate.
1827 * regformats/i386/amd64-linux.dat: Regenerate.
1828 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1829 * regformats/i386/amd64-mpx.dat: Regenerate.
1830 * regformats/i386/amd64.dat: Regenerate.
1831 * regformats/i386/i386-avx-linux.dat: Regenerate.
1832 * regformats/i386/i386-avx.dat: Regenerate.
1833 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1834 * regformats/i386/i386-avx512.dat: Regenerate.
1835 * regformats/i386/i386-linux.dat: Regenerate.
1836 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1837 * regformats/i386/i386-mmx.dat: Regenerate.
1838 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1839 * regformats/i386/i386-mpx.dat: Regenerate.
1840 * regformats/i386/i386.dat: Regenerate.
1841 * regformats/i386/x32-avx-linux.dat: Regenerate.
1842 * regformats/i386/x32-avx.dat: Regenerate.
1843 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1844 * regformats/i386/x32-avx512.dat: Regenerate.
1845 * regformats/i386/x32-linux.dat: Regenerate.
1846 * regformats/i386/x32.dat: Regenerate.
1847 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1848 * regformats/mips-dsp-linux.dat: Regenerate.
1849 * regformats/mips-linux.dat: Regenerate.
1850 * regformats/mips64-dsp-linux.dat: Regenerate.
1851 * regformats/mips64-linux.dat: Regenerate.
1852 * regformats/nios2-linux.dat: Regenerate.
1853 * regformats/rs6000/powerpc-32.dat: Regenerate.
1854 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1855 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1856 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1857 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1858 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1859 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1860 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1861 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1862 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1863 * regformats/s390-linux32.dat: Regenerate.
1864 * regformats/s390-linux32v1.dat: Regenerate.
1865 * regformats/s390-linux32v2.dat: Regenerate.
1866 * regformats/s390-linux64.dat: Regenerate.
1867 * regformats/s390-linux64v1.dat: Regenerate.
1868 * regformats/s390-linux64v2.dat: Regenerate.
1869 * regformats/s390-te-linux64.dat: Regenerate.
1870 * regformats/s390x-linux64.dat: Regenerate.
1871 * regformats/s390x-linux64v1.dat: Regenerate.
1872 * regformats/s390x-linux64v2.dat: Regenerate.
1873 * regformats/s390x-te-linux64.dat: Regenerate.
1874 * regformats/tic6x-c62x-linux.dat: Regenerate.
1875 * regformats/tic6x-c62x.dat: Regenerate.
1876 * regformats/tic6x-c64x-linux.dat: Regenerate.
1877 * regformats/tic6x-c64x.dat: Regenerate.
1878 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1879 * regformats/tic6x-c64xp.dat: Regenerate.
1881 2014-10-01 Pedro Alves <palves@redhat.com>
1883 * features/Makefile: Update comments.
1884 (XMLTOC): List all xml files we build C files from.
1885 (clean-cfiles): New rule.
1887 2014-10-01 Pedro Alves <palves@redhat.com>
1889 * features/i386/amd64-avx512-linux.c: Regenerate.
1890 * features/i386/amd64-avx512.c: Regenerate.
1891 * features/i386/x32-avx512-linux.c: Regenerate.
1892 * features/i386/x32-avx512.c: Regenerate.
1894 2014-10-01 Pedro Alves <palves@redhat.com>
1896 * features/Makefile (WHICH): Remove arm-with-m,
1897 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1899 2014-10-01 Pedro Alves <palves@redhat.com>
1901 * features/Makefile (clean): New rule.
1903 2014-10-01 Pedro Alves <palves@redhat.com>
1905 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1906 (zmm14h): Add missing end quotes.
1908 2014-10-01 Pedro Alves <palves@redhat.com>
1910 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1911 * features/aarch64.c: Regenerate.
1913 2014-09-30 Don Breazeal <donb@codesourcery.com>
1915 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1916 code so as to work with follow_fork_inferior.
1917 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1918 (inf_ttrace_create_inferior): Remove reference to
1919 inf_ttrace_vfork_ppid.
1920 (inf_ttrace_attach): Ditto.
1921 (inf_ttrace_detach): Ditto.
1922 (inf_ttrace_kill): Use current_inferior instead of
1923 inf_ttrace_vfork_ppid.
1924 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1925 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1926 inferior away from the parent.
1927 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1929 (follow_fork_inferior): New function.
1930 (follow_inferior_reset_breakpoints): Make function static.
1931 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1932 * linux-nat.c (linux_child_follow_fork): Move target-independent
1933 code to infrun.c:follow_fork_inferior.
1935 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1937 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1938 * gdbarch.c: Regenerate.
1939 * gdbarch.h: Likewise.
1940 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1941 gdbarch method 'regset_from_core_section'.
1942 (get_core_register_section): Remove handling for the case that
1943 regset == NULL and regset_from_core_section is defined.
1944 (get_core_registers): Drop check for deleted method.
1945 * procfs.c (procfs_do_thread_registers): Adjust comment.
1947 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1949 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1950 (linux_nat_make_corefile_notes): Remove.
1951 (linux_target_install_ops): Do not set target method
1952 'make_corefile_notes'.
1953 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1955 (linux_corefile_thread_callback): Instead of args->collect, call
1956 linux_collect_thread_registers.
1957 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1958 NULL unless there is a regset iterator.
1959 (linux_make_corefile_notes_1): Remove.
1960 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1961 by linux_make_corefile_notes.
1962 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1964 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1966 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1967 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1969 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1971 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1973 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1974 (xtensa_iterate_over_regset_sections): New.
1975 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1977 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1979 * vax-tdep.c (vax_regset_from_core_section): Remove.
1980 (vax_iterate_over_regset_sections): New.
1981 (vax_gdbarch_init): Adjust gdbarch initialization.
1983 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1985 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1986 (tilegx_regset_from_core_section): Remove.
1987 (tilegx_iterate_over_regset_sections): New.
1988 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1990 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1992 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1993 (sparc_iterate_over_regset_sections): New.
1994 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1995 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1997 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1998 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1999 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2000 target method 'make_corefile_notes'.
2002 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2004 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2005 'sizeof_gregset' and 'sizeof_fpregset'.
2006 * sh-tdep.c (sh_regset_from_core_section): Remove.
2007 (sh_iterate_over_regset_sections): New.
2008 (sh_gdbarch_init): Adjust gdbarch initialization.
2009 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2011 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2014 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2016 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2017 (score7_linux_iterate_over_regset_sections): New.
2018 (score_gdbarch_init): Adjust gdbarch initialization.
2020 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2022 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2024 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2025 method 'make_corefile_notes'.
2026 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2027 (ppcfbsd_regset_from_core_section): Remove.
2028 (ppcfbsd_iterate_over_regset_sections): New.
2029 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2031 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2032 (ppcnbsd_iterate_over_regset_sections): New.
2033 (ppcnbsd_init_abi): Adjust.
2034 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2035 (ppcobsd_iterate_over_regset_sections): New.
2036 (ppcobsd_init_abi): Adjust.
2037 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2038 (rs6000_aix_iterate_over_regset_sections): New.
2039 (rs6000_aix_init_osabi): Adjust.
2041 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2043 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2044 (nios2_regset_from_core_section): Remove.
2045 (nios2_iterate_over_regset_sections): New.
2046 (nios2_linux_init_abi): Adjust gdbarch initialization.
2048 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2050 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2051 (am33_iterate_over_regset_sections): New.
2052 (am33_linux_init_osabi): Adjust gdbarch initialization.
2054 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2056 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2057 (mips_linux_iterate_over_regset_sections): New.
2058 (mips_linux_init_abi): Adjust gdbarch initialization.
2059 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2060 (mips64obsd_iterate_over_regset_sections): New.
2061 (mips64obsd_init_abi): Adjust.
2062 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2063 (mipsnbsd_iterate_over_regset_sections): New.
2064 (mipsnbsd_init_abi): Adjust.
2066 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2068 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2069 (m88k_iterate_over_regset_sections): New.
2070 (m88k_gdbarch_init): Adjust gdbarch initialization.
2072 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2074 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2075 (ia64_linux_iterate_over_regset_sections): New.
2076 (ia64_linux_init_abi): Adjust gdbarch initialization.
2078 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2080 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2081 (m68kbsd_iterate_over_regset_sections): New.
2082 (m68kbsd_init_abi): Adjust gdbarch initialization.
2083 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2084 (m68k_linux_iterate_over_regset_sections): New.
2085 (m68k_linux_init_abi): Adjust gdbarch initialization.
2087 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2089 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2090 (m32r_linux_regset_from_core_section): Remove.
2091 (m32r_linux_iterate_over_regset_sections): New.
2092 (m32r_linux_init_abi): Adjust gdbarch initialization.
2094 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2096 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2097 (amd64obsd_iterate_over_regset_sections): New.
2098 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2099 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2101 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2102 regset_from_core_section initialization.
2103 * i386-tdep.c (i386_regset_from_core_section): Remove.
2104 (i386_iterate_over_regset_sections): New.
2105 (i386_gdbarch_init): Adjust gdbarch initialization.
2106 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2107 (i386_iterate_over_regset_sections): New prototype.
2108 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2110 (i386obsd_aout_iterate_over_regset_sections): New.
2111 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2112 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2114 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2115 (amd64fbsd_init_abi): Call fbsd_init_abi.
2116 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2117 (i386fbsd4_init_abi): Call fbsd_init_abi.
2118 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2119 target method 'make_corefile_notes'.
2120 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2122 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2124 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2125 (hppa_hpux_iterate_over_regset_sections): New.
2126 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2127 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2128 (hppa_linux_iterate_over_regset_sections): New.
2129 (hppa_linux_init_abi): Adjust.
2130 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2131 (hppanbsd_iterate_over_regset_sections): New.
2132 (hppanbsd_init_abi): Adjust.
2133 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2134 (hppaobsd_iterate_over_regset_sections): New.
2135 (hppaobsd_init_abi): Adjust.
2137 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2139 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2140 (frv_linux_iterate_over_regset_sections): New.
2141 (frv_linux_init_abi): Adjust gdbarch initialization.
2143 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2145 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2146 (armbsd_iterate_over_regset_sections): New prototype.
2147 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2148 (armbsd_iterate_over_regset_sections): New.
2149 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2152 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2154 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2155 (alpha_linux_iterate_over_regset_sections): New.
2156 (alpha_linux_init_abi): Adjust gdbarch initialization.
2157 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2159 (alphanbsd_iterate_over_regset_sections): New prototype.
2161 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2163 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2165 (aarch64_linux_iterate_over_regset_sections): New.
2166 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2168 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2170 * fbsd-tdep.c: New file.
2171 * fbsd-tdep.h: New file.
2172 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2173 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2174 (ALLDEPFILES): Add fbsd-tdep.c.
2176 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2178 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2180 * gdbarch.h: Regenerate.
2181 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2183 (get_core_register_section): Add parameter 'regset' and use it, if
2184 set. Add parameter 'min_size' and verify the bfd section size
2186 (get_core_registers_cb): Add parameter 'regset' and pass it to
2187 get_core_register section. For the "standard" register sections
2188 ".reg" and ".reg2", set an appropriate default for human_name.
2189 (get_core_registers): Don't abort when the gdbarch has an iterator
2190 but no regset_from_core_section. Add NULL/0 for parameters
2191 'regset'/'min_size' in calls to get_core_register_section.
2192 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2193 'regset' and use it instead of calling the
2194 regset_from_core_section gdbarch method.
2195 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2196 * i386-tdep.c (i386_supply_xstateregset)
2197 (i386_collect_xstateregset, i386_xstateregset): Moved to
2199 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2201 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2202 core file support only if the regset iterator hasn't been set.
2203 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2204 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2205 Moved from i386-tdep.c and renamed to *_linux*.
2206 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2207 each callback invocation. Allow any .reg-xstate size when reading
2209 * amd64-tdep.c (amd64_supply_xstateregset)
2210 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2212 (amd64_regset_from_core_section): Remove.
2213 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2214 install an amd64-specific regset_from_core_section gdbarch method.
2215 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2216 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2217 Moved from amd64-tdep.c and renamed to *_linux*.
2218 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2219 to each callback invocation. Allow any .reg-xstate size when
2220 reading from a core file.
2221 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2222 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2223 each callback invocation.
2224 (arm_linux_init_abi): No longer set the regset_from_core_section
2226 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2227 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2228 each callback invocation.
2229 (ppc_linux_init_abi): No longer set the regset_from_core_section
2231 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2232 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2233 (s390_regset_from_core_section): Remove.
2234 (s390_iterate_over_regset_sections): Add regset parameter to each
2235 callback invocation.
2236 (s390_gdbarch_init): No longer set the regset_from_core_section
2237 gdbarch method. Drop initialization of deleted tdep fields.
2239 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2241 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2242 (amd64_linux_iterate_over_regset_sections): New.
2243 (amd64_linux_init_abi_common): Don't install the regset section
2244 list, but the new iterator in gdbarch.
2245 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2246 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2247 (arm_linux_iterate_over_regset_sections): ...here. New function.
2248 (arm_linux_init_abi): Set iterator instead of section list.
2249 * corelow.c (get_core_registers_cb): New function, logic moved
2251 (get_core_registers): ...loop body here. Use new iterator method
2252 instead of walking through the regset section list.
2253 * gdbarch.sh: Remove 'core_regset_sections'. New method
2254 'iterate_over_regset_sections'. New typedef
2255 'iterate_over_regset_sections_cb'.
2256 * gdbarch.c: Regenerate.
2257 * gdbarch.h: Likewise.
2258 * i386-linux-tdep.c (i386_linux_regset_sections)
2259 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2261 (i386_linux_iterate_over_regset_sections): New.
2262 (i386_linux_init_abi): Don't choose a regset section list, but
2263 install new iterator in gdbarch.
2264 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2265 (linux_collect_regset_section_cb): New function, logic moved
2267 (linux_collect_thread_registers): ...loop body here. Use iterator
2268 method instead of walking through list.
2269 (linux_make_corefile_notes_1): Check for presence of iterator
2270 method instead of regset section list.
2271 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2272 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2273 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2274 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2275 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2276 (ppc_linux_init_abi): Don't choose from above regset section
2277 lists, but install new iterator in gdbarch.
2278 * regset.h (struct core_regset_section): Remove.
2279 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2280 have_linux_v1, have_linux_v2, and have_tdb.
2281 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2282 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2283 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2284 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2285 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2286 (s390_iterate_over_regset_sections): ...here. New function. Use
2288 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2289 regset section lists, but install new iterator.
2291 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2293 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2295 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2297 * progspace.c (print_program_space): Don't prune program spaces
2298 before printing them.
2300 2014-09-25 Pedro Alves <palves@redhat.com>
2302 * infrun.c (user_visible_resume_ptid): Don't check
2303 singlestep_breakpoints_inserted_p.
2305 2014-09-25 Pedro Alves <palves@redhat.com>
2307 * breakpoint.c (should_be_inserted): Add debug output.
2309 2014-09-25 Pedro Alves <palves@redhat.com>
2311 * infrun.c (stepping_past_instruction_at)
2312 (clear_exit_convenience_vars): Point at infrun.h instead of
2314 (handle_signal_stop): Fix typo.
2316 2014-09-24 Yao Qi <yao@codesourcery.com>
2318 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2321 2014-09-22 Gary Benson <gbenson@redhat.com>
2323 * target.c (target_stop): Updated comment.
2325 2014-09-22 Gary Benson <gbenson@redhat.com>
2327 * target/target.h (target_stop_ptid): Renamed as...
2328 (target_stop_and_wait): New function. Updated comment.
2330 (target_continue_ptid): Renamed as...
2331 (target_continue_no_signal): New function. Updated comment.
2334 2014-09-22 Pedro Alves <palves@redhat.com>
2336 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2338 * breakpoint.c (enum ugll_insert_mode): New enum.
2339 (always_inserted_mode): Now a plain boolean.
2340 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2341 (breakpoints_always_inserted_mode): Delete.
2342 (breakpoints_should_be_inserted_now): New function.
2343 (insert_breakpoints): Pass UGLL_INSERT to
2344 update_global_location_list instead of calling
2345 insert_breakpoint_locations manually.
2346 (create_solib_event_breakpoint_1): New, factored out from ...
2347 (create_solib_event_breakpoint): ... this.
2348 (create_and_insert_solib_event_breakpoint): Use
2349 create_solib_event_breakpoint_1 instead of calling
2350 insert_breakpoint_locations manually.
2351 (update_global_location_list): Change parameter type from boolean
2352 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2353 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2354 (update_global_location_list_nothrow): Change parameter type from
2355 boolean to enum ugll_insert_mode.
2356 (_initialize_breakpoint): "breakpoint always-inserted" option is
2357 now a boolean command. Update help text.
2358 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2359 (breakpoints_should_be_inserted_now): New declaration.
2360 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2361 Remove breakpoints_always_inserted_mode check.
2362 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2363 * remote.c (remote_start_remote): Likewise.
2365 2014-09-22 Pedro Alves <palves@redhat.com>
2367 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2368 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2369 Instead, pass UGLL_INSERT to update_global_location_list.
2370 (update_global_location_list): Change parameter type from boolean
2371 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2372 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2373 (create_solib_event_breakpoint_1): New, factored out from ...
2374 (create_solib_event_breakpoint): ... this.
2375 (create_and_insert_solib_event_breakpoint): Use
2376 create_solib_event_breakpoint_1 instead of calling
2377 insert_breakpoint_locations manually.
2378 (update_global_location_list): Handle UGLL_INSERT.
2380 2014-09-22 Pedro Alves <palves@redhat.com>
2382 * breakpoint.c (enum ugll_insert_mode): New enum.
2383 (update_global_location_list)
2384 (update_global_location_list_nothrow): Change parameter type from
2385 boolean to enum ugll_insert_mode. All callers adjusted.
2387 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2389 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2390 SystemTap support in GDB.
2392 2014-09-19 Don Breazeal <donb@codesourcery.com>
2394 * linux-nat.c (linux_handle_extended_wait): Call
2395 linux_ptrace_get_extended_event.
2396 (wait_lwp): Call linux_is_extended_waitstatus.
2397 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2398 and linux_is_extended_waitstatus.
2399 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2400 linux_ptrace_get_extended_event.
2401 (linux_ptrace_get_extended_event): New function.
2402 (linux_is_extended_waitstatus): New function.
2403 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2404 (linux_is_extended_waitstatus): New declarations.
2406 2014-09-19 Yao Qi <yao@codesourcery.com>
2408 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2409 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2410 comments. Callers update.
2411 (dwarf_decode_lines): Likewise.
2412 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2413 comments. Skip the line table if 'lowpc' is greater than
2414 'address'. Don't check
2415 dwarf2_per_objfile->has_section_at_zero.
2417 2014-09-18 Doug Evans <dje@google.com>
2419 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2420 * python/py-symtab.c (stpy_get_producer): New function.
2421 (symtab_object_getset): Add "producer" attribute.
2423 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
2426 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2427 (do_captured_read_memory_integer): Remove.
2428 (safe_read_memory_integer): Use target_read_memory directly instead
2429 of catching errors in do_captured_read_memory_integer.
2431 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2433 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2436 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2438 * objc-lang.c (find_implementation_from_class): Remove dead code.
2440 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2443 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2444 "fprintf_unfiltered (gdb_stdlog...)".
2446 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2448 PR breakpoints/12526
2449 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2451 * breakpoint.c (watch_command_1): Use these fields to retain
2452 bitfield information.
2453 (extract_bitfield_from_watchpoint_value): New function.
2454 (watchpoint_check): Use it.
2455 (update_watchpoint): Use it. Optimize the address and length of a
2456 HW watchpoint pointing to a bitfield.
2457 * value.h (unpack_value_bitfield): New prototype.
2458 * value.c (unpack_value_bitfield): Make extern.
2460 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2462 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2464 * gnu-nat.c (inf_threads): New function.
2465 * gnu-nat.h (inf_threads_ftype): New typedef.
2466 (inf_threads): New declaration.
2467 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2468 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2469 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2470 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2471 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2472 (i386_gnu_dr_get_control): New functions.
2473 (reg_addr): New structure.
2474 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2475 i386 debugging register hooks.
2476 * NEWS: Mention this.
2478 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2480 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2481 vector data transfer instructions.
2482 (arm_record_coproc_data_proc): Updated.
2484 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2486 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2487 arm_record_exreg_ld_st_insn.
2488 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2491 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2493 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2494 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2495 processing instructions.
2497 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2499 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2500 for advance SIMD struct ld/st insn.
2501 (thumb2_record_decode_insn_handler): Replace stub handler with
2502 thumb2_record_asimd_struct_ld_st.
2504 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2506 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2507 for asimd, vfp and coprocessor insns.
2508 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2509 and coprocessor insns.
2510 (thumb2_record_coproc_insn): New function.
2511 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2513 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2516 2014-09-13 Doug Evans <xdje42@gmail.com>
2518 * NEWS: Mention new "queue-signal" command.
2519 * infcmd.c (queue_signal_command): New function.
2520 (_initialize_infcmd): Add new queue-signal command.
2522 2014-09-13 Doug Evans <xdje42@gmail.com>
2524 * linux-nat.c (wait_lwp): Add debugging printf.
2525 (linux_nat_wait_1): Ditto.
2527 2014-09-12 Pedro Alves <palves@redhat.com>
2529 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2530 (create_and_insert_solib_event_breakpoint): New functions.
2531 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2532 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2533 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2534 (remove_dbx_link_breakpoint): Delete function.
2535 (insert_dbx_link_bpt_in_file): Use
2536 create_and_insert_solib_event_breakpoint instead of
2537 deprecated_insert_raw_breakpoint.
2538 (procfs_wait): Don't check whether we hit __dbx_link here.
2539 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2541 * solib-irix.c (base_breakpoint): Delete global.
2542 (disable_break): Delete function.
2543 (enable_break): Use create_solib_event_breakpoint
2544 instead of deprecated_insert_raw_breakpoint.
2545 (irix_solib_handle_event): New function.
2546 (irix_solib_create_inferior_hook): Don't run the target or disable
2547 the mapping-complete breakpoint here.
2548 (_initialize_irix_solib): Install irix_solib_handle_event as
2549 so_ops->handle_event hook.
2551 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2552 Ulrich Weigand <uweigand@de.ibm.com>
2555 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2556 instead of read_memory_unsigned_integer.
2558 2014-09-12 Gary Benson <gbenson@redhat.com>
2560 * nat/linux-waitpid.c: Include common-defs.h.
2561 [GDBSERVER]: Add FIXME comment.
2562 [!GDBSERVER]: Don't include defs.h or signal.h.
2563 (linux_debug) [!GDBSERVER]: Remove empty block.
2565 2014-09-12 Gary Benson <gbenson@redhat.com>
2567 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2568 Don't include defs.h or server.h.
2570 2014-09-12 Gary Benson <gbenson@redhat.com>
2572 * nat/linux-btrace.c: Include common-defs.h.
2573 Don't include defs.h, server.h or gdbthread.h.
2574 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2576 2014-09-12 Gary Benson <gbenson@redhat.com>
2578 * common/agent.c: Include common-defs.h.
2579 Don't include defs.h or server.h.
2580 * common/buffer.c: Likewise.
2581 * common/common-debug.c: Likewise.
2582 * common/common-utils.c: Likewise.
2583 * common/errors.c: Likewise.
2584 * common/filestuff.c: Likewise.
2585 * common/format.c: Likewise.
2586 * common/gdb_vecs.c: Likewise.
2587 * common/print-utils.c: Likewise.
2588 * common/ptid.c: Likewise.
2589 * common/rsp-low.c: Likewise.
2590 * common/signals.c: Likewise.
2591 * common/vec.c: Likewise.
2592 * common/xml-utils.c: Likewise.
2593 * nat/linux-osdata.c: Likewise.
2594 * nat/linux-procfs.c: Likewise.
2595 * nat/linux-ptrace.c: Likewise.
2596 * nat/mips-linux-watch.c: Likewise.
2597 * target/waitstatus.c: Likewise.
2599 2014-09-12 Tom Tromey <tromey@redhat.com>
2600 Gary Benson <gbenson@redhat.com>
2602 * common/common-regcache.h: New file.
2603 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2604 * regcache.h: Include common-regcache.h.
2605 (regcache_read_pc): Don't declare.
2606 * regcache.c (get_thread_regcache_for_ptid): New function.
2607 * nat/linux-btrace.c: Don't include regcache.h.
2608 Include common-regcache.h.
2609 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2611 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2613 * regcache.h (struct regset): Declare.
2615 2014-09-11 Pedro Alves <palves@redhat.com>
2618 * main.c: Include "infrun.h".
2619 (catch_command_errors, catch_command_errors_const): Wait for the
2620 foreground command to complete.
2621 * top.c (maybe_wait_sync_command_done): New function, factored out
2623 (maybe_wait_sync_command_done): ... here.
2624 * top.h (maybe_wait_sync_command_done): New declaration.
2626 2014-09-11 Tom Tromey <tromey@redhat.com>
2627 Gary Benson <gbenson@redhat.com>
2629 * common/symbol.h: New file.
2630 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2631 * minsyms.c (find_minimal_symbol_address): New function.
2632 * common/agent.c: Include common/symbol.h.
2633 [!GDBSERVER]: Don't include objfiles.h.
2634 (agent_look_up_symbols): Use find_minimal_symbol_address.
2636 2014-09-11 Gary Benson <gbenson@redhat.com>
2638 * target/target.h (target_stop_ptid, target_continue_ptid):
2640 * target.c (target_stop_ptid, target_continue_ptid): New
2642 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2643 (agent_run_command): Always use target_stop_ptid and
2644 target_continue_ptid.
2646 2014-09-11 Tom Tromey <tromey@redhat.com>
2647 Gary Benson <gbenson@redhat.com>
2649 * target/target.h: New file.
2650 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2651 * target.h: Include target/target.h.
2652 (target_read_memory, target_write_memory): Don't declare.
2653 * target.c (target_read_uint32): New function.
2654 * common/agent.c: Include target/target.h.
2655 [!GDBSERVER]: Don't include target.h.
2656 (helper_thread_id): Type changed to uint32_t.
2657 (agent_get_helper_thread_id): Use target_read_uint32.
2658 (agent_run_command): Always use target_read_memory and
2659 target_write_memory.
2660 (agent_capability): Type changed to uint32_t.
2661 (agent_capability_check): Use target_read_uint32.
2663 2014-09-11 Gary Benson <gbenson@redhat.com>
2665 * common/common-debug.h (show_debug_regs): Declare.
2666 * common/common-debug.c (show_debug_regs): Define.
2667 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2668 all uses with show_debug_regs. Replace all uses that considered
2669 debug_hw_points as a multi-value integer with straight boolean
2671 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2672 with show_debug_regs.
2673 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2674 all uses with show_debug_regs.
2675 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2676 uses with show_debug_regs.
2678 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2680 * findvar.c (address_from_register): Handle targets requiring
2681 a special conversion routine even for plain pointer types.
2683 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2685 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2686 (store_register): Do not call exec_one_dummy_insn.
2688 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2690 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2691 dereference it first. Use value_enclosing_type instead of
2693 (ada_array_length): Likewise.
2695 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2697 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2698 Adjust function implementation and documentation accordingly.
2699 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2700 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2701 Update call to ada_value_ptr_subscript.
2703 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2705 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2706 instead of VAL's type.
2708 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2710 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2712 2014-09-09 Doug Evans <xdje42@gmail.com>
2715 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2716 last parameter to pkg-config, not first.
2717 * configure.ac: Pass --with-guile provided pkg-config path to
2718 GDB_GUILE_PROGRAM_NAMES.
2719 * configure: Regenerate.
2721 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2723 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2726 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2728 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2729 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2730 the list of sections determining GDB_OSABI_IRIX.
2732 2014-09-09 James Hogan <james.hogan@imgtec.com>
2734 * MAINTAINERS (Write After Approval): Add "James Hogan".
2736 2014-09-09 James Hogan <james.hogan@imgtec.com>
2738 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2740 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2742 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2744 2014-09-08 Doug Evans <xdje42@gmail.com>
2747 * guile.c: #include <signal.h>.
2748 (_initialize_guile): Block SIGCHLD while initializing Guile.
2750 Replaces the following, which is reverted.
2752 2014-07-26 Doug Evans <xdje42@gmail.com>
2755 * configure.ac: Add check for header gc/gc.h.
2756 Add check for function setenv.
2757 * configure: Regenerate.
2758 * config.in: Regenerate.
2759 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2761 2014-09-08 Doug Evans <xdje42@gmail.com>
2763 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2764 with named constant. Fix style of pointer comparison.
2765 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2767 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2770 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2771 decide whether we display the command on "show user".
2772 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2773 printing command name.
2774 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2775 * cli/cli-decode.c (cli_user_command_p): Create helper function
2776 to verify whether cmd_list_element is a user-defined command.
2778 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2781 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2782 Fix goto out of TRY_CATCH.
2784 2014-09-06 Doug Evans <xdje42@gmail.com>
2785 Tom Tromey <tromey@redhat.com>
2788 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2789 $_any_caller_matches.
2790 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2791 * python/lib/gdb/function/caller_is.py: New file.
2793 2014-09-06 Doug Evans <xdje42@gmail.com>
2795 * infcmd.c (program_info): Fix typo.
2797 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2800 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2801 'number'. New variable 'has_digit'. Rewrite code to deal with
2802 subexpressions on SDT probes.
2804 2014-09-04 Pedro Alves <palves@redhat.com>
2806 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2807 the input is only one character long.
2809 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2812 * f-valprint.c (f_val_print): Specify the correct print option to
2813 use when printing integer values.
2815 2014-09-04 Gary Benson <gbenson@redhat.com>
2817 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2818 Remove code to cope with LWPs wrapped as PIDs.
2819 Add assertions to ensure no wrapped LWPs are passed.
2821 2014-09-04 Pedro Alves <palves@redhat.com>
2823 * value.c (value_ranges_copy_adjusted): New function, factored out
2825 (value_contents_copy_raw): ... here.
2826 (unpack_value_bits_as_long_1): Rename back to ...
2827 (unpack_bits_as_long): ... this. Remove 'original_value' and
2828 'result' parameters. Change return type to LONGEST.
2829 (unpack_value_bits_as_long): Delete.
2830 (unpack_value_field_as_long_1): Delete.
2831 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2832 (unpack_value_bitfield): New function.
2833 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2834 (value_fetch_lazy): Use unpack_value_bitfield.
2835 * value.h (unpack_value_bits_as_long): Delete declaration.
2837 2014-09-03 Sasha Smundak <asmundak@google.com>
2839 * python/py-frame.c (frapy_read_register): New function.
2841 2014-09-03 James Hogan <james.hogan@imgtec.com>
2843 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2844 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2846 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2849 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2851 (add_cmd): Set "completer_handle_brkchars" to NULL.
2852 * cli/cli-decode.h (struct cmd_list_element)
2853 <completer_handle_brkchars>: New field.
2854 * command.h (completer_ftype_void): New typedef.
2855 (set_cmd_completer_handle_brkchars): New prototype.
2856 * completer.c (set_gdb_completion_word_break_characters): New
2858 (complete_line_internal): Call "completer_handle_brkchars"
2859 callback from command.
2860 * completer.h: Include "command.h".
2861 (set_gdb_completion_word_break_characters): New prototype.
2862 * python/py-cmd.c (cmdpy_completer_helper): New function.
2863 (cmdpy_completer_handle_brkchars): New function.
2864 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2865 (cmdpy_init): Set completer_handle_brkchars to
2866 cmdpy_completer_handle_brkchars.
2868 2014-09-03 Gary Benson <gbenson@redhat.com>
2870 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2871 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2872 Loop conditions changed to equivalent form.
2873 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2874 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2875 ALL_DEBUG_ADDRESS_REGISTERS.
2877 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2879 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2882 2014-09-02 Doug Evans <dje@google.com>
2884 * typeprint.c (find_global_typedef): Fix comment.
2886 2014-09-02 Gary Benson <gbenson@redhat.com>
2888 * i386-nat.h: Renamed as...
2889 * x86-nat.h: New file. All type, function and variable name
2890 prefixes changed from "i386_" to "x86_". All references updated.
2891 * i386-nat.c: Renamed as...
2892 * x86-nat.c: New file. All type, function and variable name
2893 prefixes changed from "i386_" to "x86_". All references updated.
2894 * common/i386-xstate.h: Renamed as...
2895 * common/x86-xstate.h: New file. All type, function and variable
2896 name prefixes changed from "i386_" to "x86_". All references
2898 * nat/i386-cpuid.h: Renamed as...
2899 * nat/x86-cpuid.h: New file. All type, function and variable name
2900 prefixes changed from "i386_" to "x86_". All references updated.
2901 * nat/i386-gcc-cpuid.h: Renamed as...
2902 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2903 name prefixes changed from "i386_" to "x86_". All references
2905 * nat/i386-dregs.h: Renamed as...
2906 * nat/x86-dregs.h: New file. All type, function and variable name
2907 prefixes changed from "i386_" to "x86_". All references updated.
2908 * nat/i386-dregs.c: Renamed as...
2909 * nat/x86-dregs.c: New file. All type, function and variable name
2910 prefixes changed from "i386_" to "x86_". All references updated.
2912 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2914 * varobj.c (_initialize_varobj): Move to the end of file.
2916 2014-08-29 Gary Benson <gbenson@redhat.com>
2918 * common/common-exceptions.h: New file.
2919 * common/common-exceptions.c: Likewise.
2920 * Makefile.in (SFILES): Add common/common-exceptions.c.
2921 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2922 (COMMON_OBS): Add common-exceptions.o.
2923 (common-exceptions.o): New rule.
2924 * exceptions.h (common-exceptions.h): Include.
2925 (gdb_setjmp.h): Do not include.
2926 (return_reason): Moved to common-exceptions.h.
2927 (enum return_reason): Likewise.
2928 (RETURN_MASK): Likewise.
2929 (typedef return_mask): Likewise.
2930 (enum errors): Likewise.
2931 (struct gdb_exception): Likewise.
2932 (exceptions_state_mc_init): Likewise.
2933 (exceptions_state_mc_action_iter): Likewise.
2934 (exceptions_state_mc_action_iter_1): Likewise.
2935 (TRY_CATCH): Likewise.
2936 (throw_exception): Likewise.
2937 (throw_verror): Likewise.
2938 (throw_vquit): Likewise.
2939 (throw_error): Likewise.
2940 (throw_quit): Likewise.
2941 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2942 (enum catcher_action): Likewise.
2943 (struct catcher): Likewise.
2944 (current_catcher): Likewise.
2945 (catcher_list_size): Likewise.
2946 (exceptions_state_mc_init): Likewise.
2947 (catcher_pop): Likewise.
2948 (exceptions_state_mc): Likewise.
2949 (exceptions_state_mc_action_iter): Likewise.
2950 (exceptions_state_mc_action_iter_1): Likewise.
2951 (throw_exception): Likewise.
2952 (exception_messages): Likewise.
2953 (exception_messages_size): Likewise.
2954 (throw_it): Likewise.
2955 (throw_verror): Likewise.
2956 (throw_vquit): Likewise.
2957 (throw_error): Likewise.
2958 (throw_quit): Likewise.
2959 (prepare_to_throw_exception): New function.
2961 2014-08-29 Gary Benson <gbenson@redhat.com>
2963 * common/gdb_setjmp.h: New file.
2964 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2965 * configure.ac: Move sigsetjmp check...
2966 * common/common.m4: ...here.
2967 * configure: Regenerate.
2968 * cp-support.c (SIGJMP_BUF): Delete.
2969 (SIGSETJMP): Likewise.
2970 (SIGLONGJMP): Likewise.
2971 * exceptions.h (gdb_setjmp.h): Include.
2972 (setjmp.h): Do not include.
2973 (EXCEPTIONS_SIGJMP_BUF): Delete.
2974 (EXCEPTIONS_SIGSETJMP): Likewise.
2975 (EXCEPTIONS_SIGLONGJMP): Likewise.
2976 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2978 * exceptions.c: Likewise.
2980 2014-08-29 Gary Benson <gbenson@redhat.com>
2982 * cleanups.h: Moved to...
2983 * common/cleanups.h: New file.
2984 * cleanups.c: Moved to...
2985 * common/cleanups.c: New file. Include common-defs.h and
2986 cleanups.h. Do not include defs.h.
2987 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2988 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2989 (cleanups.o): New rule.
2991 2014-08-29 Gary Benson <gbenson@redhat.com>
2993 * common/errors.h (internal_warning): New declaration.
2994 (internal_vwarning): Likewise.
2995 * common/errors.c (internal_warning): New function.
2996 * utils.h (internal_warning): Don't declare.
2997 (internal_vwarning): Likewise.
2998 * utils.c (internal_warning): Removed.
3000 2014-08-29 Gary Benson <gbenson@redhat.com>
3002 * main.c (captured_main): Use warning during startup.
3003 Prefix startup warning messages with command name.
3005 2014-08-29 Gary Benson <gbenson@redhat.com>
3007 * main.c (captured_main): Handle usage errors with error.
3009 2014-08-29 Gary Benson <gbenson@redhat.com>
3011 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3012 exit pair with a call to error. Wrap the message with _().
3014 2014-08-29 Gary Benson <gbenson@redhat.com>
3016 * main.c (captured_main): Replace a fprintf/exit
3017 pair with a call to error. Wrap the message with _().
3019 2014-08-29 Gary Benson <gbenson@redhat.com>
3021 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3022 pairs with calls to error. Wrap the message with _().
3024 2014-08-29 Gary Benson <gbenson@redhat.com>
3026 * utils.c (vwarning): Protect calls to target_terminal_ours
3029 2014-08-29 Gary Benson <gbenson@redhat.com>
3031 * exceptions.c (print_flush): Protect calls to
3032 target_terminal_ours and wrap_here.
3034 2014-08-29 Gary Benson <gbenson@redhat.com>
3036 * utils.h (filtered_printing_initialized): New declaration.
3037 * utils.c (abort_with_message): New function.
3038 (internal_vproblem): Use abort_with_message for first level
3039 recursive internal problems, and if gdb_stderr is not set up.
3040 Protect calls to target_terminal_ours, begin_line and query.
3042 2014-08-28 Doug Evans <dje@google.com>
3044 * symtab.c (in_prologue): Move definition to better spot.
3045 (skip_prologue_using_sal): Ditto.
3047 2014-08-28 Doug Evans <dje@google.com>
3049 * symtab.c (find_function_start_sal): Move definition to better spot.
3051 2014-08-28 Yao Qi <yao@codesourcery.com>
3053 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3054 found_stack_adjust in forward scan. Remove condition check
3055 on found_stack_adjust which is always true. Indent the code.
3057 2014-08-28 Yao Qi <yao@codesourcery.com>
3059 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3060 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3061 (dwarf_decode_lines): Remove argument
3062 want_line_info. Remove condition check on want_line_info.
3065 2014-08-27 Doug Evans <dje@google.com>
3067 * dwarf2read.c (dwarf_record_line): Fix typo.
3069 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3071 * target.h (struct target_ops::to_terminal_save_ours): Remove
3073 (target_terminal_save_ours): Remove macro.
3074 * target-delegates.c: Regenerate.
3075 * inf-child.c (inf_child_target): Don't set the nonexistent
3076 field to_terminal_save_ours.
3077 * inferior.h (child_terminal_save_ours): Remove declaration.
3078 * terminal.h (gdb_save_tty_state): New declaration.
3079 * inflow.c (child_terminal_save_ours): Rename to ...
3080 (gdb_save_tty_state): ... this.
3081 * tui/tui.c: Include terminal.h.
3082 (tui_enable): Use gdb_save_tty_state instead of
3083 target_terminal_save_ours.
3084 (tui_disable): Likewise.
3086 2014-08-25 Doug Evans <dje@google.com>
3088 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3089 Pass NULL instead of 0 for context pointer.
3091 2014-08-25 Yao Qi <yao@codesourcery.com>
3093 * dwarf2read.c: Fix grammatical error.
3095 2014-08-24 Yao Qi <yao@codesourcery.com>
3097 * dwarf2read.c (scan_partial_symbols): Update comments.
3098 Rename argument 'need_pc' with 'set_addrmap'.
3099 (add_partial_namespace): Rename argument 'need_pc' with
3101 (add_partial_module): Likewise.
3102 (add_partial_subprogram): Likewise. Update comments.
3103 (dwarf2_name): Fix typo.
3105 2014-08-22 Doug Evans <dje@google.com>
3108 * dwarf2read.c (dwarf_record_line_p): New function.
3109 (dwarf_decode_lines_1): Ignore subsequent line number entries
3110 for the same line if any entry had a non-zero discriminator.
3112 2014-08-22 Doug Evans <dje@google.com>
3114 * buildsym.h (record_line_ftype): New typedef.
3115 (record_line): Use it.
3116 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3117 (dwarf_decode_lines_1): Call them.
3119 2014-08-22 Yao Qi <yao@codesourcery.com>
3121 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3122 (ctf_end): Remove code.
3124 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3126 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3127 (linux_make_corefile_notes): call update_thread_list, protected against
3130 2014-08-21 Pedro Alves <palves@redhat.com>
3132 * infcmd.c (attach_command): Remove comment.
3134 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3136 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3137 unsigned LONGEST to ULONGEST.
3139 2014-08-20 Pedro Alves <palves@redhat.com>
3141 * Makefile.in (check-read1): New rule.
3143 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3145 * value.c (value_from_contents_and_address): Strip resolved_type's
3146 typedef layers before checking its TYPE_DATA_LOCATION.
3148 2014-08-20 Pedro Alves <palves@redhat.com>
3150 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3152 2014-08-20 Yao Qi <yao@codesourcery.com>
3154 * amd64-tdep.c (amd64_classify): Add a blank line after the
3155 example. Move "*/" to a new line.
3156 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3157 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3158 * dwarf2read.c (psymtab_include_file_name): Likewise.
3160 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3161 Pedro Alves <palves@redhat.com>
3165 * ada-lang.c (coerce_unspec_val_to_type): Use
3166 value_contents_copy_raw.
3167 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3168 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3169 * cp-valprint.c (cp_print_value_fields): Let the common printing
3170 code handle optimized out values.
3171 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3172 * d-valprint.c (dynamic_array_type): Use
3173 value_bits_any_optimized_out.
3174 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3175 check_any_valid fields.
3176 (check_pieced_value_bits): Delete and inline ...
3177 (check_pieced_synthetic_pointer): ... here.
3178 (check_pieced_value_validity): Delete.
3179 (check_pieced_value_invalid): Delete.
3180 (pieced_value_funcs): Remove check_validity and check_any_valid
3182 (read_pieced_value): Use mark_value_bits_optimized_out.
3183 (write_pieced_value): Switch to use
3184 mark_value_bytes_optimized_out.
3185 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3186 of assuming the whole value is optimized out.
3187 * findvar.c (read_frame_register_value): Remove special handling
3188 of optimized out registers.
3189 (value_from_register): Use mark_value_bytes_optimized_out.
3190 * frame-unwind.c (frame_unwind_got_optimized): Use
3191 mark_value_bytes_optimized_out.
3192 * jv-valprint.c (java_value_print): Adjust.
3193 (java_print_value_fields): Let the common printing code handle
3194 optimized out values.
3195 * mips-tdep.c (mips_print_register): Remove special handling of
3196 optimized out registers.
3197 * opencl-lang.c (lval_func_check_validity): Delete.
3198 (lval_func_check_any_valid): Delete.
3199 (opencl_value_funcs): Remove check_validity and check_any_valid
3201 * p-valprint.c (pascal_object_print_value_fields): Let the common
3202 printing code handle optimized out values.
3203 * stack.c (read_frame_arg): Remove special handling of optimized
3204 out values. Fetch both VAL and ENTRYVAL before comparing
3205 contents. Adjust to value_available_contents_eq rename.
3206 * valprint.c (valprint_check_validity)
3207 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3208 (val_print_array_elements): Adjust.
3209 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3210 (value_bits_any_optimized_out): New function.
3211 (value_entirely_covered_by_range_vector): New function, factored
3212 out from value_entirely_unavailable.
3213 (value_entirely_unavailable): Reimplement.
3214 (value_entirely_optimized_out): New function.
3215 (insert_into_bit_range_vector): New function, factored out from
3216 mark_value_bits_unavailable.
3217 (mark_value_bits_unavailable): Reimplement.
3218 (struct ranges_and_idx): New struct.
3219 (find_first_range_overlap_and_match): New function, factored out
3220 from value_available_contents_bits_eq.
3221 (value_available_contents_bits_eq): Rename to ...
3222 (value_contents_bits_eq): ... this. Check both unavailable
3223 contents and optimized out contents.
3224 (value_available_contents_eq): Rename to ...
3225 (value_contents_eq): ... this.
3226 (allocate_value_lazy): Remove reference to the old optimized_out
3228 (allocate_optimized_out_value): Use
3229 mark_value_bytes_optimized_out.
3230 (require_not_optimized_out): Adjust to check whether the
3231 optimized_out vec is empty.
3232 (ranges_copy_adjusted): New function, factored out from
3233 value_contents_copy_raw.
3234 (value_contents_copy_raw): Also copy the optimized out ranges.
3235 Assert the destination ranges aren't optimized out.
3236 (value_contents_copy): Update comment, remove call to
3237 require_not_optimized_out.
3238 (value_contents_equal): Adjust to check whether the optimized_out
3240 (set_value_optimized_out, value_optimized_out_const): Delete.
3241 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3243 (value_entirely_optimized_out, value_bits_valid): Delete.
3244 (value_copy): Take a VEC copy of the 'optimized_out' field.
3245 (value_primitive_field): Remove special handling of optimized out.
3246 (value_fetch_lazy): Assert that lazy values have no unavailable
3247 regions. Use value_bits_any_optimized_out. Remove some special
3248 handling for optimized out values.
3249 * value.h: Add intro comment about <optimized out> and
3251 (struct lval_funcs): Remove check_validity and check_any_valid
3253 (set_value_optimized_out, value_optimized_out_const): Remove.
3254 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3256 (value_bits_any_optimized_out): New declaration.
3257 (value_bits_valid): Delete declaration.
3258 (value_available_contents_eq): Rename to ...
3259 (value_contents_eq): ... this, and extend comments.
3261 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3263 Fix -fsanitize=address on unreadable inferior strings.
3264 * valprint.c (val_print_string): Fix access before BUFFER.
3266 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3268 * target.c (target_struct_size): Remove.
3269 (target_struct_allocsize): Remove.
3270 (DEFAULT_ALLOCSIZE): Remove.
3271 (target_ops_p): New typedef.
3272 (DEF_VEC_P (target_ops_p)): New vector type.
3273 (target_structs): Change type to VEC (target_ops_p).
3274 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3275 (find_default_run_target): Rewrite for loop following changes to
3278 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3280 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3281 Adjust code accordingly. Adjust function description comment.
3283 2014-08-19 Yao Qi <yao@codesourcery.com>
3285 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3288 2014-08-19 Alan Modra <amodra@gmail.com>
3290 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3291 * config.in: Regenerate.
3292 * configure: Regenerate.
3294 2014-08-19 Tom Tromey <tromey@redhat.com>
3295 Gary Benson <gbenson@redhat.com>
3297 * common/common-debug.h: New file.
3298 * common/common-debug.c: Likewise.
3299 * debug.c: Likewise.
3300 * Makefile.in (SFILES): Add common/common-debug.c.
3301 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3302 (COMMON_OBS): Add common-debug.o and debug.o.
3303 (common-debug.o): New rule.
3304 * common/common-defs.h: Include common-debug.h.
3305 * common/agent.c (debug_agent_printf): New function.
3306 (DEBUG_AGENT): Redefine.
3307 * nat/i386-dregs.c (debug_printf): Undefine.
3309 2014-08-19 Gary Benson <gbenson@redhat.com>
3311 * common/common-defs.h: Include print-utils.h.
3312 * utils.h: Do not include print-utils.h.
3314 2014-08-19 Tom Tromey <tromey@redhat.com>
3315 Gary Benson <gbenson@redhat.com>
3317 * common/common-types.h: New file.
3318 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3319 * common/common-defs.h: Include common-types.h.
3320 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3323 2014-08-19 Tom Tromey <tromey@redhat.com>
3324 Gary Benson <gbenson@redhat.com>
3326 * common/errors.h: New file.
3327 * common/errors.c: Likewise.
3328 * Makefile.in (SFILES): Add common/errors.c.
3329 (HFILES_NO_SRCDIR): Add common/errors.h.
3330 (COMMON_OBS): Add errors.o.
3331 (errors.o): New rule.
3332 * common/common-defs.h: Include errors.h.
3333 * utils.h (perror_with_name, error, verror, warning, vwarning):
3335 * common/common-utils.h: (malloc_failure, internal_error):
3338 2014-08-19 Gary Benson <gbenson@redhat.com>
3340 * utils.c (internal_vproblem): Always print the message.
3342 2014-08-18 Doug Evans <dje@google.com>
3344 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3346 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3348 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3349 Return 0 if TYPE is dynamic.
3350 (print_range): Add handling of dynamic ranges.
3352 2014-08-18 Keven Boell <keven.boell@intel.com>
3353 Joel Brobecker <brobecker@adacore.com>
3355 * gdbtypes.h (struct main_type): Add field "data_location".
3356 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3357 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3358 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3359 a dynamic data location.
3360 (resolve_dynamic_type): Add DW_AT_data_location handling.
3361 (copy_recursive, copy_type): Copy the data_location information
3363 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3364 * value.c (value_from_contents_and_address): Add
3365 DW_AT_data_location handling.
3367 2014-08-18 Keven Boell <keven.boell@intel.com>
3368 Joel Brobecker <brobecker@adacore.com>
3370 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3371 field "get_object_address".
3372 * dwarf2expr.c (execute_stack_op): Add handling for
3373 DW_OP_push_object_address.
3374 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3375 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3376 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3377 (dwarf_expr_get_obj_addr): New function.
3378 (dwarf_expr_ctx_funcs): Add get_object_address field.
3379 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3380 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3381 (dwarf2_evaluate_property): Add parameter "address". Use it.
3382 (needs_get_obj_addr): New function.
3383 (needs_frame_ctx_funcs): Add get_object_address field.
3384 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3385 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3386 (resolve_dynamic_array): Likewise.
3388 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3390 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3391 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3392 fixed value for records and unions for which some GNAT encodings
3395 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3397 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3398 rewrite to avoid "else if" and "else" constructs. Should be
3399 a no-op in practice.
3401 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3403 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3406 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3409 * eval.c: Update all calls to find_overload_match.
3410 * valarith.c: Likewise.
3411 (value_user_defined_cpp_op, value_user_defined_op): New
3412 argument NOSIDE. Update all callers.
3413 * valops.c (find_overload_match): New argument NOSIDE.
3414 * value.h (find_overload_match): Update signature.
3416 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3418 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3419 'items' methods instead of 'iteritems' method on dictionaries.
3421 2014-08-15 Doug Evans <dje@google.com>
3423 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3426 2014-08-15 Doug Evans <dje@google.com>
3428 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3430 2014-08-15 Doug Evans <dje@google.com>
3432 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3434 2014-08-15 Doug Evans <dje@google.com>
3436 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3439 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3441 * dcache.h: Include target.h, to avoid compile time warnings.
3443 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3445 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3446 frame_info" partial declaration.
3447 * gdbarch.h: Regenerate.
3449 2014-08-15 Yao Qi <yao@codesourcery.com>
3451 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3452 Add parameter 'decode_for_pst_p'. Callers update.
3454 2014-08-13 Yao Qi <yao@codesourcery.com>
3457 * configure.ac: Use local variable 'pos'.
3458 * configure: Regenerated.
3460 2014-08-11 Doug Evans <dje@google.com>
3462 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3463 message, it is redundant with "Reading symbols from ..." message.
3465 2014-08-10 Doug Evans <xdje42@gmail.com>
3467 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3469 2014-08-09 Yao Qi <yao@codesourcery.com>
3472 * remote.c (remote_xfer_partial): Remove dead code.
3474 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3476 * ia64-linux-tdep.c: Include "regset.h".
3477 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3478 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3479 (ia64_linux_supply_fpregset): New function.
3480 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3481 (ia64_linux_regset_from_core_section): New function.
3482 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3485 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3487 * m68klinux-tdep.c: Include "regset.h".
3488 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3489 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3490 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3491 (m68k_linux_regset_from_core_section): New function.
3492 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3495 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3497 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3498 function. Move logic to...
3499 (tilegx_linux_regmap): ... this new register map.
3500 (tilegx_linux_regset): Refer to register map, replace supply
3501 method by regcache_supply_regset, and add collect method.
3502 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3503 TILEGX_FIRST_EASY_REGNUM.
3505 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3507 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3508 that calls regcache_supply_regset and handles the EPC register
3509 separately. Move main logic to...
3510 (score7_linux_gregmap): ... this new register map.
3511 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3512 (score7_linux_gregset): Refer to register map. Add collect method.
3513 (score7_linux_regset_from_core_section): Replace
3514 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3515 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3516 (struct regset): Delete unused forward declaraction.
3517 (struct pt_regs): Delete structure definition.
3518 (elf_gregset_t): Delete typedef.
3520 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3522 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3523 (nios2_core_regset): Add collect method.
3525 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3527 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3528 platform-independent and don't write to read-only input buffer.
3529 (m32r_linux_collect_gregset): New function.
3530 (m32r_linux_gregset): Add collect method.
3532 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3534 * hppa-linux-tdep.c (greg_map): Rename to...
3535 (hppa_linux_gregmap): ... this. Also convert to
3536 regcache_map_entry format.
3537 (hppa_linux_supply_regset): Delete function.
3538 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3539 (hppa_linux_fpregmap): ... this new register map.
3540 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3541 register map, replace supply method by regcache_supply_regset, and
3542 add collect method regcache_collect_regset.
3544 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3546 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3547 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3548 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3549 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3550 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3551 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3552 (frv_linux_supply_gregset): Replace main logic by call to
3553 regcache_supply_regset, but keep clearing gr32-gr63.
3554 (frv_linux_supply_fpregset): Delete function.
3555 (frv_linux_gregset): Refer to appropriate register map and add
3556 regcache_collect_regset as the collect method.
3557 (frv_linux_fpregset): Likewise. Also exchange the supply method
3558 by regcache_supply_regset.
3560 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3562 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3563 by call to alpha_supply_int_regs.
3564 (alpha_linux_collect_gregset): New function.
3565 (alpha_linux_supply_fpregset): Replace logic by call to
3566 alpha_supply_fp_regs.
3567 (alpha_linux_collect_fpregset): New function.
3568 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3570 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3572 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3573 by call to regcache_collect_regset.
3574 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3575 instead of aarch64_linux_supply_gregset/_fpregset.
3576 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3577 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3578 header file instead.
3579 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3580 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3581 functions. Move logic to ...
3582 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3584 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3585 refer to new register maps, replace *_regset_from_core by
3586 regcache_supply_regset, and also use regcache_collect_regset.
3587 * aarch64-linux-tdep.h: Include "regset.h".
3588 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3590 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3591 macros, moved from C source file.
3592 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3593 variable declarations.
3595 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3597 * s390-linux-nat.c: Include "regset.h".
3598 (regmap_gregset): Delete macro.
3599 (s390_64_regmap_gregset): New register map for
3600 regcache_supply/_collect_regset.
3601 (s390_64_gregset): New regset.
3602 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3603 (regmap_fpregset): Delete macro.
3604 (s390_native_supply, s390_native_collect): Delete functions.
3605 (supply_gregset, fill_gregset): Replace s390-specific regmap
3606 handling by a call to regcache_supply/_collect_regset.
3607 (supply_fpregset, fill_fpregset): Call regcache_supply/
3608 _collect_regset instead of s390_native_supply/_collect.
3609 (fetch_regset, store_regset): Likewise. Also change the last
3610 parameter to a regset instead of a regmap.
3611 (s390_linux_fetch_inferior_registers)
3612 (390_linux_store_inferior_registers): Adjust last parameter in
3613 calls to fetch_regset and store_regset.
3614 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3615 (s390_gregmap): ... this. Also make static const and convert to
3616 regcache_map_entry format.
3617 (s390x_regmap_gregset): Delete.
3618 (s390_regmap_fpregset): Rename to...
3619 (s390_fpregmap): ... this. Make static const and convert to
3620 regcache_map_entry format.
3621 (s390_regmap_upper, s390_regmap_last_break)
3622 (s390x_regmap_last_break, s390_regmap_system_call)
3623 (s390_regmap_tdb): Likewise.
3624 (s390_supply_regset, s390_collect_regset): Remove functions.
3625 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3627 (s390_gregset, s390_fpregset, s390_upper_regset)
3628 (s390_last_break_regset, s390x_last_break_regset)
3629 (s390_system_call_regset, s390_tdb_regset): Make global and
3630 replace s390_supply/_collect_regset by regcache_supply/
3632 (s390x_gregset): Delete.
3633 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3634 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3635 (s390_regmap_fpregset, s390_regmap_last_break)
3636 (s390x_regmap_last_break, s390_regmap_system_call)
3637 (s390_regmap_tdb): Delete global variable declarations.
3638 (s390_gregset, s390_fpregset, s390_last_break_regset)
3639 (s390x_last_break_regset, s390_system_call_regset)
3640 (s390_tdb_regset): New global variable declarations.
3642 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3644 * regcache.c: Include "regset.h".
3645 (regcache_transfer_regset): New local function.
3646 (regcache_supply_regset, regcache_collect_regset): New functions.
3647 * regcache.h (struct regcache_map_entry): New structure.
3648 (REGCACHE_MAP_SKIP): New enum value.
3649 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3651 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3653 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3654 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3655 (ppc_linux_collect_gregset ): Likewise.
3656 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3657 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3658 (ppc_collect_vrregset): Likewise.
3659 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3662 2014-08-07 Yao Qi <yao@codesourcery.com>
3664 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3665 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3666 * remote.c (remote_read_bytes): Likewise.
3668 2014-08-07 Yao Qi <yao@codesourcery.com>
3670 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3672 2014-08-07 Yao Qi <yao@codesourcery.com>
3675 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3676 TARGET_XFER_OK instead of 0.
3678 2014-08-07 Gary Benson <gbenson@redhat.com>
3680 * common/common-defs.h: Include errno.h.
3681 * defs.h: Do not include errno.h.
3682 * ada-typeprint.c: Likewise.
3683 * c-typeprint.c: Likewise.
3684 * core-regset.c: Likewise.
3685 * corefile.c: Likewise.
3686 * corelow.c: Likewise.
3687 * event-loop.c: Likewise.
3688 * f-typeprint.c: Likewise.
3689 * gnu-nat.c: Likewise.
3690 * go32-nat.c: Likewise.
3691 * i386gnu-nat.c: Likewise.
3692 * m2-typeprint.c: Likewise.
3693 * nat/linux-btrace.c: Likewise.
3694 * p-typeprint.c: Likewise.
3695 * procfs.c: Likewise.
3696 * remote-sim.c: Likewise.
3697 * rs6000-nat.c: Likewise.
3698 * target.c: Likewise.
3699 * typeprint.c: Likewise.
3700 * ui-file.c: Likewise.
3701 * valops.c: Likewise.
3702 * valprint.c: Likewise.
3704 2014-08-07 Gary Benson <gbenson@redhat.com>
3706 * common/common-defs.h: Include string.h.
3707 * aarch64-tdep.c: Do not include string.h.
3708 * ada-exp.y: Likewise.
3709 * ada-lang.c: Likewise.
3710 * ada-lex.l: Likewise.
3711 * ada-typeprint.c: Likewise.
3712 * ada-valprint.c: Likewise.
3713 * aix-thread.c: Likewise.
3714 * alpha-linux-tdep.c: Likewise.
3715 * alpha-mdebug-tdep.c: Likewise.
3716 * alpha-nat.c: Likewise.
3717 * alpha-osf1-tdep.c: Likewise.
3718 * alpha-tdep.c: Likewise.
3719 * alphanbsd-tdep.c: Likewise.
3720 * amd64-dicos-tdep.c: Likewise.
3721 * amd64-linux-tdep.c: Likewise.
3722 * amd64-nat.c: Likewise.
3723 * amd64-sol2-tdep.c: Likewise.
3724 * amd64fbsd-tdep.c: Likewise.
3725 * amd64obsd-tdep.c: Likewise.
3726 * arch-utils.c: Likewise.
3727 * arm-linux-nat.c: Likewise.
3728 * arm-linux-tdep.c: Likewise.
3729 * arm-tdep.c: Likewise.
3730 * arm-wince-tdep.c: Likewise.
3731 * armbsd-tdep.c: Likewise.
3732 * armnbsd-nat.c: Likewise.
3733 * armnbsd-tdep.c: Likewise.
3734 * armobsd-tdep.c: Likewise.
3735 * avr-tdep.c: Likewise.
3736 * ax-gdb.c: Likewise.
3737 * ax-general.c: Likewise.
3738 * bcache.c: Likewise.
3739 * bfin-tdep.c: Likewise.
3740 * breakpoint.c: Likewise.
3741 * build-id.c: Likewise.
3742 * buildsym.c: Likewise.
3743 * c-exp.y: Likewise.
3744 * c-lang.c: Likewise.
3745 * c-typeprint.c: Likewise.
3746 * c-valprint.c: Likewise.
3747 * charset.c: Likewise.
3748 * cli-out.c: Likewise.
3749 * cli/cli-cmds.c: Likewise.
3750 * cli/cli-decode.c: Likewise.
3751 * cli/cli-dump.c: Likewise.
3752 * cli/cli-interp.c: Likewise.
3753 * cli/cli-logging.c: Likewise.
3754 * cli/cli-script.c: Likewise.
3755 * cli/cli-setshow.c: Likewise.
3756 * cli/cli-utils.c: Likewise.
3757 * coffread.c: Likewise.
3758 * common/agent.c: Likewise.
3759 * common/buffer.c: Likewise.
3760 * common/buffer.h: Likewise.
3761 * common/common-utils.c: Likewise.
3762 * common/filestuff.c: Likewise.
3763 * common/filestuff.c: Likewise.
3764 * common/format.c: Likewise.
3765 * common/print-utils.c: Likewise.
3766 * common/rsp-low.c: Likewise.
3767 * common/signals.c: Likewise.
3768 * common/vec.h: Likewise.
3769 * common/xml-utils.c: Likewise.
3770 * core-regset.c: Likewise.
3771 * corefile.c: Likewise.
3772 * corelow.c: Likewise.
3773 * cp-abi.c: Likewise.
3774 * cp-name-parser.y: Likewise.
3775 * cp-support.c: Likewise.
3776 * cp-valprint.c: Likewise.
3777 * cris-tdep.c: Likewise.
3778 * d-exp.y: Likewise.
3779 * darwin-nat.c: Likewise.
3780 * dbxread.c: Likewise.
3781 * dcache.c: Likewise.
3782 * demangle.c: Likewise.
3783 * dicos-tdep.c: Likewise.
3784 * disasm.c: Likewise.
3785 * doublest.c: Likewise.
3786 * dsrec.c: Likewise.
3787 * dummy-frame.c: Likewise.
3788 * dwarf2-frame.c: Likewise.
3789 * dwarf2loc.c: Likewise.
3790 * dwarf2read.c: Likewise.
3791 * elfread.c: Likewise.
3792 * environ.c: Likewise.
3794 * event-loop.c: Likewise.
3795 * exceptions.c: Likewise.
3797 * expprint.c: Likewise.
3798 * f-exp.y: Likewise.
3799 * f-lang.c: Likewise.
3800 * f-typeprint.c: Likewise.
3801 * f-valprint.c: Likewise.
3802 * fbsd-nat.c: Likewise.
3803 * findcmd.c: Likewise.
3804 * findvar.c: Likewise.
3805 * fork-child.c: Likewise.
3806 * frame.c: Likewise.
3807 * frv-linux-tdep.c: Likewise.
3808 * frv-tdep.c: Likewise.
3810 * gdb_bfd.c: Likewise.
3811 * gdbarch.c: Likewise.
3812 * gdbarch.sh: Likewise.
3813 * gdbtypes.c: Likewise.
3814 * gnu-nat.c: Likewise.
3815 * gnu-v2-abi.c: Likewise.
3816 * gnu-v3-abi.c: Likewise.
3817 * go-exp.y: Likewise.
3818 * go-lang.c: Likewise.
3819 * go32-nat.c: Likewise.
3820 * guile/guile.c: Likewise.
3821 * guile/scm-auto-load.c: Likewise.
3822 * hppa-hpux-tdep.c: Likewise.
3823 * hppa-linux-nat.c: Likewise.
3824 * hppanbsd-tdep.c: Likewise.
3825 * hppaobsd-tdep.c: Likewise.
3826 * i386-cygwin-tdep.c: Likewise.
3827 * i386-dicos-tdep.c: Likewise.
3828 * i386-linux-tdep.c: Likewise.
3829 * i386-nto-tdep.c: Likewise.
3830 * i386-sol2-tdep.c: Likewise.
3831 * i386-tdep.c: Likewise.
3832 * i386bsd-tdep.c: Likewise.
3833 * i386gnu-nat.c: Likewise.
3834 * i386nbsd-tdep.c: Likewise.
3835 * i386obsd-tdep.c: Likewise.
3836 * i387-tdep.c: Likewise.
3837 * ia64-libunwind-tdep.c: Likewise.
3838 * ia64-linux-nat.c: Likewise.
3839 * inf-child.c: Likewise.
3840 * inf-ptrace.c: Likewise.
3841 * inf-ttrace.c: Likewise.
3842 * infcall.c: Likewise.
3843 * infcmd.c: Likewise.
3844 * inflow.c: Likewise.
3845 * infrun.c: Likewise.
3846 * interps.c: Likewise.
3847 * iq2000-tdep.c: Likewise.
3848 * irix5-nat.c: Likewise.
3849 * jv-exp.y: Likewise.
3850 * jv-lang.c: Likewise.
3851 * jv-typeprint.c: Likewise.
3852 * jv-valprint.c: Likewise.
3853 * language.c: Likewise.
3854 * linux-fork.c: Likewise.
3855 * linux-nat.c: Likewise.
3856 * lm32-tdep.c: Likewise.
3857 * m2-exp.y: Likewise.
3858 * m2-typeprint.c: Likewise.
3859 * m32c-tdep.c: Likewise.
3860 * m32r-linux-nat.c: Likewise.
3861 * m32r-linux-tdep.c: Likewise.
3862 * m32r-rom.c: Likewise.
3863 * m32r-tdep.c: Likewise.
3864 * m68hc11-tdep.c: Likewise.
3865 * m68k-tdep.c: Likewise.
3866 * m68kbsd-tdep.c: Likewise.
3867 * m68klinux-nat.c: Likewise.
3868 * m68klinux-tdep.c: Likewise.
3869 * m88k-tdep.c: Likewise.
3870 * machoread.c: Likewise.
3871 * macrocmd.c: Likewise.
3873 * mdebugread.c: Likewise.
3874 * mem-break.c: Likewise.
3875 * memattr.c: Likewise.
3876 * memory-map.c: Likewise.
3877 * mep-tdep.c: Likewise.
3878 * mi/mi-cmd-break.c: Likewise.
3879 * mi/mi-cmd-disas.c: Likewise.
3880 * mi/mi-cmd-env.c: Likewise.
3881 * mi/mi-cmd-stack.c: Likewise.
3882 * mi/mi-cmd-var.c: Likewise.
3883 * mi/mi-cmds.c: Likewise.
3884 * mi/mi-console.c: Likewise.
3885 * mi/mi-getopt.c: Likewise.
3886 * mi/mi-interp.c: Likewise.
3887 * mi/mi-main.c: Likewise.
3888 * mi/mi-parse.c: Likewise.
3889 * microblaze-rom.c: Likewise.
3890 * microblaze-tdep.c: Likewise.
3891 * mingw-hdep.c: Likewise.
3892 * minidebug.c: Likewise.
3893 * minsyms.c: Likewise.
3894 * mips-irix-tdep.c: Likewise.
3895 * mips-linux-tdep.c: Likewise.
3896 * mips-tdep.c: Likewise.
3897 * mips64obsd-tdep.c: Likewise.
3898 * mipsnbsd-tdep.c: Likewise.
3899 * mipsread.c: Likewise.
3900 * mn10300-linux-tdep.c: Likewise.
3901 * mn10300-tdep.c: Likewise.
3902 * monitor.c: Likewise.
3903 * moxie-tdep.c: Likewise.
3904 * mt-tdep.c: Likewise.
3905 * nat/linux-btrace.c: Likewise.
3906 * nat/linux-osdata.c: Likewise.
3907 * nat/linux-procfs.c: Likewise.
3908 * nat/linux-ptrace.c: Likewise.
3909 * nat/linux-waitpid.c: Likewise.
3910 * nbsd-tdep.c: Likewise.
3911 * nios2-linux-tdep.c: Likewise.
3912 * nto-procfs.c: Likewise.
3913 * nto-tdep.c: Likewise.
3914 * objc-lang.c: Likewise.
3915 * objfiles.c: Likewise.
3916 * opencl-lang.c: Likewise.
3917 * osabi.c: Likewise.
3918 * osdata.c: Likewise.
3919 * p-exp.y: Likewise.
3920 * p-lang.c: Likewise.
3921 * p-typeprint.c: Likewise.
3922 * parse.c: Likewise.
3923 * posix-hdep.c: Likewise.
3924 * ppc-linux-nat.c: Likewise.
3925 * ppc-sysv-tdep.c: Likewise.
3926 * ppcfbsd-tdep.c: Likewise.
3927 * ppcnbsd-tdep.c: Likewise.
3928 * ppcobsd-tdep.c: Likewise.
3929 * printcmd.c: Likewise.
3930 * procfs.c: Likewise.
3931 * prologue-value.c: Likewise.
3932 * python/py-auto-load.c: Likewise.
3933 * python/py-gdb-readline.c: Likewise.
3934 * ravenscar-thread.c: Likewise.
3935 * regcache.c: Likewise.
3936 * registry.c: Likewise.
3937 * remote-fileio.c: Likewise.
3938 * remote-m32r-sdi.c: Likewise.
3939 * remote-mips.c: Likewise.
3940 * remote-notif.c: Likewise.
3941 * remote-sim.c: Likewise.
3942 * remote.c: Likewise.
3943 * reverse.c: Likewise.
3944 * rs6000-aix-tdep.c: Likewise.
3945 * ser-base.c: Likewise.
3946 * ser-go32.c: Likewise.
3947 * ser-mingw.c: Likewise.
3948 * ser-pipe.c: Likewise.
3949 * ser-tcp.c: Likewise.
3950 * ser-unix.c: Likewise.
3951 * serial.c: Likewise.
3952 * sh-tdep.c: Likewise.
3953 * sh64-tdep.c: Likewise.
3954 * shnbsd-tdep.c: Likewise.
3956 * sol-thread.c: Likewise.
3957 * solib-dsbt.c: Likewise.
3958 * solib-frv.c: Likewise.
3959 * solib-osf.c: Likewise.
3960 * solib-som.c: Likewise.
3961 * solib-spu.c: Likewise.
3962 * solib-target.c: Likewise.
3963 * solib.c: Likewise.
3964 * somread.c: Likewise.
3965 * source.c: Likewise.
3966 * sparc-nat.c: Likewise.
3967 * sparc-sol2-tdep.c: Likewise.
3968 * sparc-tdep.c: Likewise.
3969 * sparc64-tdep.c: Likewise.
3970 * sparc64fbsd-tdep.c: Likewise.
3971 * sparc64nbsd-tdep.c: Likewise.
3972 * sparcnbsd-tdep.c: Likewise.
3973 * spu-linux-nat.c: Likewise.
3974 * spu-multiarch.c: Likewise.
3975 * spu-tdep.c: Likewise.
3976 * stabsread.c: Likewise.
3977 * stack.c: Likewise.
3978 * std-regs.c: Likewise.
3979 * symfile.c: Likewise.
3980 * symmisc.c: Likewise.
3981 * symtab.c: Likewise.
3982 * target.c: Likewise.
3983 * thread.c: Likewise.
3984 * tilegx-linux-nat.c: Likewise.
3985 * tilegx-tdep.c: Likewise.
3987 * tracepoint.c: Likewise.
3988 * tui/tui-command.c: Likewise.
3989 * tui/tui-data.c: Likewise.
3990 * tui/tui-disasm.c: Likewise.
3991 * tui/tui-file.c: Likewise.
3992 * tui/tui-layout.c: Likewise.
3993 * tui/tui-out.c: Likewise.
3994 * tui/tui-regs.c: Likewise.
3995 * tui/tui-source.c: Likewise.
3996 * tui/tui-stack.c: Likewise.
3997 * tui/tui-win.c: Likewise.
3998 * tui/tui-windata.c: Likewise.
3999 * tui/tui-winsource.c: Likewise.
4000 * typeprint.c: Likewise.
4001 * ui-file.c: Likewise.
4002 * ui-out.c: Likewise.
4003 * user-regs.c: Likewise.
4004 * utils.c: Likewise.
4005 * v850-tdep.c: Likewise.
4006 * valarith.c: Likewise.
4007 * valops.c: Likewise.
4008 * valprint.c: Likewise.
4009 * value.c: Likewise.
4010 * varobj.c: Likewise.
4011 * vax-tdep.c: Likewise.
4012 * vaxnbsd-tdep.c: Likewise.
4013 * vaxobsd-tdep.c: Likewise.
4014 * windows-nat.c: Likewise.
4015 * xcoffread.c: Likewise.
4016 * xml-support.c: Likewise.
4017 * xstormy16-tdep.c: Likewise.
4018 * xtensa-linux-nat.c: Likewise.
4020 2014-08-07 Gary Benson <gbenson@redhat.com>
4022 * common/common-defs.h: Include gdb_assert.h.
4023 * aarch64-tdep.c: Do not include gdb_assert.h.
4024 * addrmap.c: Likewise.
4025 * aix-thread.c: Likewise.
4026 * alpha-linux-tdep.c: Likewise.
4027 * alpha-mdebug-tdep.c: Likewise.
4028 * alphanbsd-tdep.c: Likewise.
4029 * amd64-nat.c: Likewise.
4030 * amd64-tdep.c: Likewise.
4031 * amd64bsd-nat.c: Likewise.
4032 * amd64fbsd-nat.c: Likewise.
4033 * amd64fbsd-tdep.c: Likewise.
4034 * amd64nbsd-nat.c: Likewise.
4035 * amd64nbsd-tdep.c: Likewise.
4036 * amd64obsd-nat.c: Likewise.
4037 * amd64obsd-tdep.c: Likewise.
4038 * arch-utils.c: Likewise.
4039 * arm-tdep.c: Likewise.
4040 * armbsd-tdep.c: Likewise.
4042 * bcache.c: Likewise.
4043 * bfin-tdep.c: Likewise.
4044 * blockframe.c: Likewise.
4045 * breakpoint.c: Likewise.
4046 * bsd-kvm.c: Likewise.
4047 * bsd-uthread.c: Likewise.
4048 * buildsym.c: Likewise.
4049 * c-exp.y: Likewise.
4050 * c-lang.c: Likewise.
4051 * charset.c: Likewise.
4052 * cleanups.c: Likewise.
4053 * cli-out.c: Likewise.
4054 * cli/cli-decode.c: Likewise.
4055 * cli/cli-dump.c: Likewise.
4056 * cli/cli-logging.c: Likewise.
4057 * cli/cli-script.c: Likewise.
4058 * cli/cli-utils.c: Likewise.
4059 * coffread.c: Likewise.
4060 * common/common-utils.c: Likewise.
4061 * common/queue.h: Likewise.
4062 * common/signals.c: Likewise.
4063 * common/vec.h: Likewise.
4064 * complaints.c: Likewise.
4065 * completer.c: Likewise.
4066 * corelow.c: Likewise.
4067 * cp-abi.c: Likewise.
4068 * cp-name-parser.y: Likewise.
4069 * cp-namespace.c: Likewise.
4070 * cp-support.c: Likewise.
4071 * cris-tdep.c: Likewise.
4072 * dbxread.c: Likewise.
4073 * dictionary.c: Likewise.
4074 * doublest.c: Likewise.
4075 * dsrec.c: Likewise.
4076 * dummy-frame.c: Likewise.
4077 * dwarf2-frame-tailcall.c: Likewise.
4078 * dwarf2-frame.c: Likewise.
4079 * dwarf2expr.c: Likewise.
4080 * dwarf2loc.c: Likewise.
4081 * dwarf2read.c: Likewise.
4083 * event-loop.c: Likewise.
4084 * exceptions.c: Likewise.
4085 * expprint.c: Likewise.
4086 * f-valprint.c: Likewise.
4087 * fbsd-nat.c: Likewise.
4088 * findvar.c: Likewise.
4089 * frame-unwind.c: Likewise.
4090 * frame.c: Likewise.
4091 * frv-tdep.c: Likewise.
4092 * gcore.c: Likewise.
4093 * gdb-dlfcn.c: Likewise.
4094 * gdb_bfd.c: Likewise.
4095 * gdbarch.c: Likewise.
4096 * gdbarch.sh: Likewise.
4097 * gdbtypes.c: Likewise.
4098 * gnu-nat.c: Likewise.
4099 * gnu-v3-abi.c: Likewise.
4100 * go-lang.c: Likewise.
4101 * guile/scm-exception.c: Likewise.
4102 * guile/scm-gsmob.c: Likewise.
4103 * guile/scm-lazy-string.c: Likewise.
4104 * guile/scm-math.c: Likewise.
4105 * guile/scm-pretty-print.c: Likewise.
4106 * guile/scm-safe-call.c: Likewise.
4107 * guile/scm-utils.c: Likewise.
4108 * guile/scm-value.c: Likewise.
4109 * h8300-tdep.c: Likewise.
4110 * hppa-hpux-nat.c: Likewise.
4111 * hppa-tdep.c: Likewise.
4112 * hppanbsd-tdep.c: Likewise.
4113 * hppaobsd-tdep.c: Likewise.
4114 * i386-darwin-nat.c: Likewise.
4115 * i386-darwin-tdep.c: Likewise.
4116 * i386-nto-tdep.c: Likewise.
4117 * i386-tdep.c: Likewise.
4118 * i386bsd-nat.c: Likewise.
4119 * i386fbsd-tdep.c: Likewise.
4120 * i386gnu-nat.c: Likewise.
4121 * i386nbsd-tdep.c: Likewise.
4122 * i386obsd-tdep.c: Likewise.
4123 * i387-tdep.c: Likewise.
4124 * ia64-libunwind-tdep.c: Likewise.
4125 * ia64-tdep.c: Likewise.
4126 * inf-ptrace.c: Likewise.
4127 * inf-ttrace.c: Likewise.
4128 * infcall.c: Likewise.
4129 * infcmd.c: Likewise.
4130 * infrun.c: Likewise.
4131 * inline-frame.c: Likewise.
4132 * interps.c: Likewise.
4133 * jv-lang.c: Likewise.
4134 * jv-typeprint.c: Likewise.
4135 * linux-fork.c: Likewise.
4136 * linux-nat.c: Likewise.
4137 * linux-thread-db.c: Likewise.
4138 * m32c-tdep.c: Likewise.
4139 * m32r-linux-nat.c: Likewise.
4140 * m32r-tdep.c: Likewise.
4141 * m68k-tdep.c: Likewise.
4142 * m68kbsd-nat.c: Likewise.
4143 * m68kbsd-tdep.c: Likewise.
4144 * m88k-tdep.c: Likewise.
4145 * machoread.c: Likewise.
4146 * macroexp.c: Likewise.
4147 * macrotab.c: Likewise.
4148 * maint.c: Likewise.
4149 * mdebugread.c: Likewise.
4150 * memory-map.c: Likewise.
4151 * mep-tdep.c: Likewise.
4152 * mi/mi-common.c: Likewise.
4153 * microblaze-tdep.c: Likewise.
4154 * mingw-hdep.c: Likewise.
4155 * mips-linux-nat.c: Likewise.
4156 * mips-linux-tdep.c: Likewise.
4157 * mips-tdep.c: Likewise.
4158 * mips64obsd-tdep.c: Likewise.
4159 * mipsnbsd-tdep.c: Likewise.
4160 * mn10300-linux-tdep.c: Likewise.
4161 * mn10300-tdep.c: Likewise.
4162 * moxie-tdep.c: Likewise.
4163 * mt-tdep.c: Likewise.
4164 * nat/linux-btrace.c: Likewise.
4165 * nat/linux-osdata.c: Likewise.
4166 * nat/linux-ptrace.c: Likewise.
4167 * nat/mips-linux-watch.c: Likewise.
4168 * nios2-linux-tdep.c: Likewise.
4169 * nios2-tdep.c: Likewise.
4170 * objc-lang.c: Likewise.
4171 * objfiles.c: Likewise.
4172 * obsd-nat.c: Likewise.
4173 * opencl-lang.c: Likewise.
4174 * osabi.c: Likewise.
4175 * parse.c: Likewise.
4176 * ppc-linux-nat.c: Likewise.
4177 * ppc-sysv-tdep.c: Likewise.
4178 * ppcfbsd-nat.c: Likewise.
4179 * ppcfbsd-tdep.c: Likewise.
4180 * ppcnbsd-nat.c: Likewise.
4181 * ppcnbsd-tdep.c: Likewise.
4182 * ppcobsd-nat.c: Likewise.
4183 * ppcobsd-tdep.c: Likewise.
4184 * printcmd.c: Likewise.
4185 * procfs.c: Likewise.
4186 * prologue-value.c: Likewise.
4187 * psymtab.c: Likewise.
4188 * python/py-lazy-string.c: Likewise.
4189 * python/py-value.c: Likewise.
4190 * regcache.c: Likewise.
4191 * reggroups.c: Likewise.
4192 * registry.c: Likewise.
4193 * remote-sim.c: Likewise.
4194 * remote.c: Likewise.
4195 * rs6000-aix-tdep.c: Likewise.
4196 * rs6000-tdep.c: Likewise.
4197 * s390-linux-tdep.c: Likewise.
4198 * score-tdep.c: Likewise.
4199 * ser-base.c: Likewise.
4200 * ser-mingw.c: Likewise.
4201 * sh-tdep.c: Likewise.
4202 * sh64-tdep.c: Likewise.
4203 * solib-darwin.c: Likewise.
4204 * solib-spu.c: Likewise.
4205 * solib-svr4.c: Likewise.
4206 * source.c: Likewise.
4207 * sparc-nat.c: Likewise.
4208 * sparc-sol2-tdep.c: Likewise.
4209 * sparc-tdep.c: Likewise.
4210 * sparc64-sol2-tdep.c: Likewise.
4211 * sparc64-tdep.c: Likewise.
4212 * sparc64fbsd-tdep.c: Likewise.
4213 * sparc64nbsd-tdep.c: Likewise.
4214 * sparc64obsd-tdep.c: Likewise.
4215 * sparcnbsd-tdep.c: Likewise.
4216 * sparcobsd-tdep.c: Likewise.
4217 * spu-multiarch.c: Likewise.
4218 * spu-tdep.c: Likewise.
4219 * stabsread.c: Likewise.
4220 * stack.c: Likewise.
4221 * symfile.c: Likewise.
4222 * symtab.c: Likewise.
4223 * target-descriptions.c: Likewise.
4224 * target-memory.c: Likewise.
4225 * target.c: Likewise.
4226 * tic6x-linux-tdep.c: Likewise.
4227 * tic6x-tdep.c: Likewise.
4228 * tilegx-linux-nat.c: Likewise.
4229 * tilegx-tdep.c: Likewise.
4231 * tramp-frame.c: Likewise.
4232 * tui/tui-out.c: Likewise.
4233 * tui/tui-winsource.c: Likewise.
4234 * ui-out.c: Likewise.
4235 * user-regs.c: Likewise.
4236 * utils.c: Likewise.
4237 * v850-tdep.c: Likewise.
4238 * valops.c: Likewise.
4239 * value.c: Likewise.
4240 * varobj.c: Likewise.
4241 * vax-nat.c: Likewise.
4242 * xml-syscall.c: Likewise.
4243 * xml-tdesc.c: Likewise.
4244 * xstormy16-tdep.c: Likewise.
4245 * xtensa-linux-nat.c: Likewise.
4246 * xtensa-tdep.c: Likewise.
4248 2014-08-07 Gary Benson <gbenson@redhat.com>
4250 * common/common-defs.h: Include common-utils.h.
4251 * defs.h: Do not include common-utils.h.
4252 * common/gdb_assert.h: Likewise.
4253 * darwin-nat.h: Likewise.
4254 * nat/linux-btrace.c: Likewise.
4255 * target/waitstatus.h: Likewise.
4257 2014-08-07 Gary Benson <gbenson@redhat.com>
4259 * common/common-defs.h: Include ptid.h.
4260 * defs.h: Do not include ptid.h.
4261 * inferior.h: Likewise.
4262 * infrun.h: Likewise.
4263 * nat/linux-btrace.h: Likewise.
4264 * nat/linux-osdata.h: Likewise.
4265 * target/waitstatus.h: Likewise.
4267 2014-08-07 Gary Benson <gbenson@redhat.com>
4269 * common/common-defs.h: Include gdb_locale.h.
4270 * defs.h: Do not include gdb_locale.h.
4272 2014-08-07 Gary Benson <gbenson@redhat.com>
4274 * common/common-defs.h: Include gdb/signals.h.
4275 * defs.h: Do not include gdb/signals.h.
4277 2014-08-07 Gary Benson <gbenson@redhat.com>
4279 * common/common-defs.h: Include pathmax.h.
4280 * defs.h: Do not include pathmax.h.
4282 2014-08-07 Gary Benson <gbenson@redhat.com>
4284 * common/common-defs.h: Include libiberty.h.
4285 * defs.h: Do not include libiberty.h.
4286 * common/queue.h: Likewise.
4287 * cp-name-parser.y: Likewise.
4288 * mi/mi-cmd-catch.c: Likewise.
4289 * python/python.c: Likewise.
4291 2014-08-07 Gary Benson <gbenson@redhat.com>
4293 * common/common-defs.h: Include ansidecl.h.
4294 * defs.h: Do not include ansidecl.h.
4295 * common/buffer.h: Likewise.
4296 * common/common-utils.h: Likewise.
4298 2014-08-07 Gary Benson <gbenson@redhat.com>
4300 * common/common-defs.h: Include stddef.h.
4301 * defs.h: Do not include stddef.h.
4302 * common/common-utils.h: Likewise.
4303 * amd64fbsd-nat.c: Likewise.
4304 * bcache.c: Likewise.
4305 * charset.c: Likewise.
4306 * common/buffer.h: Likewise.
4307 * common/vec.h: Likewise.
4308 * i386bsd-nat.c: Likewise.
4309 * nat/linux-btrace.h: Likewise.
4310 * ppcfbsd-nat.c: Likewise.
4311 * ppcnbsd-tdep.h: Likewise.
4312 * ppcobsd-nat.c: Likewise.
4313 * ppcobsd-tdep.h: Likewise.
4314 * python/py-gdb-readline.c: Likewise.
4316 2014-08-07 Gary Benson <gbenson@redhat.com>
4318 * common/common-defs.h: Include stdarg.h.
4319 * defs.h: Do not include stdarg.h.
4320 * ada-lang.c: Likewise.
4321 * common/common-utils.h: Likewise.
4322 * guile/scm-string.c: Likewise.
4323 * guile/scm-utils.c: Likewise.
4324 * m32c-tdep.c: Likewise.
4326 2014-08-07 Gary Benson <gbenson@redhat.com>
4328 * common/common-defs.h: Include stdlib.h.
4329 * defs.h: Do not include stdlib.h.
4330 * addrmap.c: Likewise.
4331 * bcache.c: Likewise.
4332 * common/buffer.c: Likewise.
4333 * common/common-utils.c: Likewise.
4334 * cp-name-parser.y: Likewise.
4335 * go32-nat.c: Likewise.
4336 * mn10300-linux-tdep.c: Likewise.
4337 * nat/linux-osdata.c: Likewise.
4338 * tui/tui.c: Likewise.
4339 * windows-nat.c: Likewise.
4341 2014-08-07 Gary Benson <gbenson@redhat.com>
4343 * common/common-defs.h: Include stdio.h.
4344 * defs.h: Do not include stdio.h.
4345 * ada-lang.c: Likewise.
4346 * common/buffer.c: Likewise.
4347 * common/common-utils.c: Likewise.
4348 * cp-name-parser.y: Likewise.
4349 * gnu-nat.c: Likewise.
4350 * go32-nat.c: Likewise.
4351 * i386gnu-nat.c: Likewise.
4352 * proc-api.c: Likewise.
4353 * proc-events.c: Likewise.
4354 * proc-flags.c: Likewise.
4355 * proc-why.c: Likewise.
4356 * python/python-internal.h: Likewise.
4357 * target-memory.c: Likewise.
4358 * tui/tui-io.c: Likewise.
4359 * tui/tui.c: Likewise.
4361 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4363 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4364 (scan_dyntag_auxv): Same.
4366 2014-08-06 Yao Qi <yao@codesourcery.com>
4368 * amd64-linux-nat.c: Remove duplicated include
4370 * i386-linux-nat.c: Likewise.
4372 2014-08-06 Yao Qi <yao@codesourcery.com>
4374 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4375 operand" with "Special opcode" in comments.
4377 2014-08-05 Gary Benson <gbenson@redhat.com>
4379 * interps.c (initialize_interps): Remove prototype.
4380 (interpreter_initialized): Remove static global.
4381 (interp_add): Do not call initialize_interps.
4382 (initialize_interps): Remove function.
4384 2014-08-05 Gary Benson <gbenson@redhat.com>
4386 * utils.c (vwarning): Remove spurious va_end.
4388 2014-08-05 Alan Modra <amodra@gmail.com>
4390 * charset.c (convert_between_encodings): Cast result of obstack_base.
4391 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4392 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4393 (read_unwind_info): Use size_t for some locals.
4394 * jit.c (finalize_symtab): Likewise.
4395 * utils.c (hashtab_obstack_allocate): Likewise.
4396 * symmisc.c (print_objfile_statistics): Update format strings.
4398 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4400 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4401 (Changes in GDB 7.8): ... here.
4403 2014-08-04 Tom Tromey <tromey@redhat.com>
4405 * target.c (set_targetdebug): New function.
4406 (initialize_targets): Pass set_targetdebug when creating "set
4409 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4411 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4412 if detecting a variable-sized field that is not the last field.
4413 Fix struct type length computation.
4415 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4417 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4420 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4422 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4423 Remove "+ 8" offset in computation of CHAIN_VMA.
4425 2014-07-31 Doug Evans <dje@google.com>
4427 * inflow.c (child_terminal_inferior): Add comment.
4428 (child_terminal_ours_for_output): Add comment.
4429 (child_terminal_ours): Add comment.
4430 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4431 (linux_nat_terminal_ours): Add comment.
4433 2014-07-31 Gary Benson <gbenson@redhat.com>
4435 * common/btrace-common.h: Do not include defs.h or server.h.
4436 * nat/mips-linux-watch.h: Likewise.
4437 * gdb-dlfcn.h: Do not include defs.h.
4438 * tracefile.h: Likewise.
4440 2014-07-30 Roland McGrath <mcgrathr@google.com>
4442 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4444 2014-07-30 Tom Tromey <tromey@redhat.com>
4446 * bsd-kvm.c (bsd_kvm_open): Constify.
4447 * corelow.c (core_open): Constify.
4448 * ctf.c (ctf_open): Constify.
4449 * dbug-rom.c (dbug_open): Constify.
4450 * exec.c (exec_open): Constify.
4451 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4452 * microblaze-rom.c (picobug_open): Constify.
4453 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4455 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4456 * record-btrace.c (record_btrace_open): Constify.
4457 * record-full.c (record_full_core_open_1, record_full_open_1)
4458 (record_full_open): Constify.
4459 * remote-m32r-sdi.c (m32r_open): Constify.
4460 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4461 (rockhopper_open, lsi_open): Constify.
4462 * remote-sim.c (gdbsim_open): Constify.
4463 * remote.c (remote_open, extended_remote_open, remote_open_1):
4465 * target.h (struct target_ops) <to_open>: Make "arg" const.
4466 * tracefile-tfile.c (tfile_open): Constify.
4468 2014-07-30 Tom Tromey <tromey@redhat.com>
4470 * breakpoint.c (map_breakpoint_numbers): Update.
4471 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4472 (get_number_const): New function.
4473 (get_number): Rewrite using get_number_const.
4474 (init_number_or_range): Make "string" const.
4475 (number_is_in_list): Make "list" const.
4476 * cli/cli-utils.h (get_number_const): Declare.
4477 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4478 (init_number_or_range, number_is_in_list): Update.
4479 * printcmd.c (map_display_numbers): Update.
4480 * value.c (value_from_history_ref): Constify.
4481 * value.h (value_from_history_ref): Update.
4483 2014-07-30 Tom Tromey <tromey@redhat.com>
4485 * corefile.c (hook_type, call_extra_exec_file_hooks)
4486 (specify_exec_file_hook): Constify.
4487 * exec.c (exec_file_attach): Make "filename" const.
4488 * gdbcore.h (deprecated_exec_file_display_hook)
4489 (specify_exec_file_hook, exec_file_attach): Constify.
4490 * main.c (captured_main): Use catch_command_errors_const.
4492 2014-07-30 Tom Tromey <tromey@redhat.com>
4494 * target.c (open_target): New function.
4495 (add_target_with_completer, add_deprecated_target_alias): Use
4496 set_cmd_sfunc, set_cmd_context.
4497 (debug_to_open): Remove.
4498 (setup_target_debug): Update.
4500 2014-07-30 Yao Qi <yao@codesourcery.com>
4502 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4504 * parse.c (exp_iterate): Update comments.
4506 2014-07-30 Gary Benson <gbenson@redhat.com>
4508 * common/common-defs.h: New file.
4509 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4510 * defs.h: Include common-defs.h.
4511 Do not include config.h or build-gnulib/config.h.
4513 2014-07-30 Gary Benson <gbenson@redhat.com>
4515 * common/common-utils.h: Do not include config.h.
4516 * nat/linux-btrace.h: Likewise.
4518 2014-07-30 Gary Benson <gbenson@redhat.com>
4520 * btrace.c: Include defs.h.
4521 * common/ptid.c: Include defs.h or server.h as appropriate.
4522 * nat/mips-linux-watch.c: Likewise.
4524 2014-07-29 Tom Tromey <tromey@redhat.com>
4526 * target.c (target_is_pushed): Simplify.
4528 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4532 2014-07-29 Yao Qi <yao@codesourcery.com>
4535 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4537 2014-07-28 Doug Evans <xdje42@gmail.com>
4540 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4541 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4544 2014-07-28 Will Newton <will.newton@linaro.org>
4546 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4547 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4548 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4549 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4550 (THUMB2_EABI_SYSCALL): Likewise.
4551 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4553 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4554 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4556 2014-07-27 Doug Evans <xdje42@gmail.com>
4558 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4560 2014-07-27 Doug Evans <xdje42@gmail.com>
4562 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4564 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4565 Doug Evans <xdje42@gmail.com>
4568 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4569 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4570 * configure.ac: Try to use guild to compile an scm file, if it fails
4571 then disable guile support.
4572 * configure: Regenerate.
4573 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4575 (GUILE_COMPILED_FILES): New variable.
4576 (GUILE_FILES) Update.
4577 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4578 (stamp-guile): Compile scm files.
4579 * guile/guile.c (boot_guile_support): New function.
4580 (standard_throw_args_p): New function.
4581 (print_standard_throw_error, print_throw_error): New functions.
4582 (handle_boot_error): New function.
4583 (initialize_scheme_side): Rewrite to call boot_guile_support.
4584 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4585 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4587 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4588 Doug Evans <xdje42@gmail.com>
4591 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4592 * guile/lib/gdb/support.scm: New file.
4593 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4594 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4596 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4598 (%assert-type): Ditto, and renamed to assert-type.
4599 (%exception-print-style): Delete.
4601 2014-07-26 Doug Evans <xdje42@gmail.com>
4604 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4605 * configure: Regenerate.
4606 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4608 (PYTHON_FILES): New variable.
4609 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4610 (GUILE_FILES): New variable.
4611 (stamp-python, install-python, uninstall-python): Handle empty
4613 (stamp-guile, install-guile, uninstall-guile): Ditto.
4615 2014-07-26 Doug Evans <xdje42@gmail.com>
4618 * guile/lib/gdb.scm (pretty-printers): Export.
4619 (set-pretty-printers!): Export.
4620 * guile/lib/gdb/printing.scm (gdb module): Update.
4621 (prepend-pretty-printer!, append-pretty-printer!): Update.
4622 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4623 (pretty_printer_list_var): Delete.
4624 (pretty_printer_list): New static global.
4625 (gdbscm_pretty_printers): New function.
4626 (gdbscm_set_pretty_printers_x): New function.
4627 (ppscm_find_pretty_printer_from_gdb): Update.
4628 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4629 (gdbscm_initialize_pretty_printers): Update.
4631 2014-07-26 Doug Evans <xdje42@gmail.com>
4634 * configure.ac: Add check for header gc/gc.h.
4635 Add check for function setenv.
4636 * configure: Regenerate.
4637 * config.in: Regenerate.
4638 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4640 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4642 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4643 variation in gdbarch matching.
4645 2014-07-25 Tom Tromey <tromey@redhat.com>
4647 * exec.c (using_exec_ops): Remove.
4648 (exec_close_1): Update. Remove extraneous block, reindent.
4649 (add_target_sections): Use target_is_pushed.
4651 2014-07-25 Pedro Alves <palves@redhat.com>
4653 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4654 * monitor.c (monitor_create_inferior): Likewise.
4655 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4656 * remote-sim.c (gdbsim_create_inferior): Likewise.
4657 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4658 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4659 * windows-nat.c (do_initial_windows_stuff): Likewise.
4661 2014-07-25 Pedro Alves <palves@redhat.com>
4663 * NEWS: Mention signal passing and "signal" command changes.
4664 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4666 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4668 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4669 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4670 (jump_command): Adjust clear_proceed_status call.
4671 (signal_command): Warn if other thread that are resumed have
4672 signals that will be delivered. Adjust clear_proceed_status call.
4673 (until_next_command, finish_command)
4674 (proceed_after_attach_callback, attach_command_post_wait)
4675 (attach_command): Adjust clear_proceed_status call.
4676 * infrun.c (proceed_after_vfork_done): Likewise.
4677 (proceed_after_attach_callback): Adjust comment.
4678 (clear_proceed_status_thread): Clear stop_signal if not in pass
4680 (clear_proceed_status_callback): Delete.
4681 (clear_proceed_status): New 'step' parameter. Only clear the
4682 proceed status of threads the command being prepared is about to
4684 (proceed): If passed in an explicit signal, override stop_signal
4685 with it. Don't pass the last stop signal to the thread we're
4687 (init_wait_for_inferior): Adjust clear_proceed_status call.
4688 (switch_back_to_stepped_thread): Clear the signal if it should not
4690 * infrun.h (clear_proceed_status): New 'step' parameter.
4691 (user_visible_resume_ptid): Add comment.
4692 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4693 signal is in pass state.
4694 * remote.c (append_pending_thread_resumptions): Likewise.
4695 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4697 2014-07-25 Tom Tromey <tromey@redhat.com>
4699 * target.h (target_stopped_data_address)
4700 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4703 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4705 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4707 (avr_pointer_to_address): Likewise.
4709 2014-07-24 Tom Tromey <tromey@redhat.com>
4711 * monitor.c (compile_pattern): Update.
4712 * target.h (struct target_ops) <to_shortname, to_longname,
4715 2014-07-24 Tom Tromey <tromey@redhat.com>
4717 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4718 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4719 (add_info_alias, add_com): Make "doc" const.
4720 (print_doc_line): Make "str" const.
4721 (delete_cmd): Update.
4722 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4723 (print_doc_line): Update.
4724 * cli/cli-script.c (document_command): Update.
4725 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4726 (add_com, add_info, add_info_alias): Update.
4727 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4728 * python/py-cmd.c (cmdpy_destroyer): Update.
4730 2014-07-24 Tom Tromey <tromey@redhat.com>
4732 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4733 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4734 (help_cmd_list): Constify.
4735 (lookup_cmd): Update.
4736 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4738 (help_cmd_list, apropos_cmd): Update.
4739 * cli/cli-script.c (show_user): Update.
4740 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4741 * cli/cli-setshow.h (cmd_show_list): Update.
4742 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4743 (cmd_show_list): Update.
4744 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4745 * python/py-cmd.c (cmdpy_destroyer): Update.
4747 2014-07-24 Tom Tromey <tromey@redhat.com>
4749 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4750 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4752 * command.h (deprecate_cmd): Update.
4753 * maint.c (maintenance_do_deprecate): Add casts.
4755 2014-07-24 Tom Tromey <tromey@redhat.com>
4757 * cli/cli-decode.c (help_cmd): Make parameter "const".
4758 * cli/cli-decode.h (help_cmd): Update.
4760 2014-07-24 Tom Tromey <tromey@redhat.com>
4762 * stack.c (up_silently_base, down_silently_base): Make argument
4765 2014-07-24 Tom Tromey <tromey@redhat.com>
4767 * solib.c (solib_add): Make "pattern" const.
4768 * solib.h (solib_add): Update.
4770 2014-07-24 Tom Tromey <tromey@redhat.com>
4772 * remote.c (remote_serial_open, print_packet, putpkt)
4773 (putpkt_binary): Constify.
4774 * remote.h (putpkt): Update.
4776 2014-07-24 Tom Tromey <tromey@redhat.com>
4778 * monitor.c (monitor_open): Make "args" const.
4779 * monitor.h (monitor_open): Update.
4781 2014-07-24 Tom Tromey <tromey@redhat.com>
4783 * maint.c (match_bfd_flags): Make "string" const.
4784 (print_bfd_section_info): Remove casts.
4785 (print_objfile_section_info): Make "string" const.
4787 2014-07-24 Tom Tromey <tromey@redhat.com>
4789 * inf-child.c (inf_child_open_target): Make "arg" const.
4790 * inf-child.h (inf_child_open_target): Update.
4792 2014-07-24 Tom Tromey <tromey@redhat.com>
4794 * environ.c (unset_in_environ): Make "var" const.
4795 * environ.h (unset_in_environ): Update.
4797 2014-07-24 Tom Tromey <tromey@redhat.com>
4799 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4801 (scan_filename_with_cleanup): Likewise.
4802 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4803 Make arguments const.
4804 (restore_command): Update.
4806 2014-07-24 Pedro Alves <palves@redhat.com>
4808 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4810 2014-07-24 Tom Tromey <tromey@redhat.com>
4811 Gary Benson <gbenson@redhat.com>
4813 * nat/linux-ptrace.c (additional_flags): New global.
4814 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4815 additional_flags; don't check GDBSERVER.
4816 (linux_ptrace_set_additional_flags): New function.
4817 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4819 * linux-nat.c (_initialize_linux_nat): Call
4820 linux_ptrace_set_additional_flags.
4822 2014-07-24 Tom Tromey <tromey@redhat.com>
4824 * make-target-delegates (munge_type, write_debugmethod): New
4826 (debug_names): New global.
4827 ($TARGET_DEBUG_PRINTER): New global.
4828 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4830 Write debug methods. Generate init_debug_target.
4831 * target-debug.h: New file.
4832 * target-delegates.c: Rebuild.
4833 * target.c: Include target-debug.h.
4834 (debug_target): Hoist definition.
4835 (target_kill, target_get_section_table, target_memory_map)
4836 (target_flash_erase, target_flash_done, target_detach)
4837 (target_disconnect, target_wait, target_resume)
4838 (target_pass_signals, target_program_signals, target_follow_fork)
4839 (target_mourn_inferior, target_search_memory)
4840 (target_thread_address_space, target_close)
4841 (target_find_new_threads, target_core_of_thread)
4842 (target_verify_memory, target_insert_mask_watchpoint)
4843 (target_remove_mask_watchpoint): Remove targetdebug code.
4844 (debug_to_post_attach, debug_to_prepare_to_store)
4845 (debug_to_files_info, debug_to_insert_breakpoint)
4846 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4847 (debug_to_region_ok_for_hw_watchpoint)
4848 (debug_to_can_accel_watchpoint_condition)
4849 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4850 (debug_to_watchpoint_addr_within_range)
4851 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4852 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4853 (debug_to_terminal_init, debug_to_terminal_inferior)
4854 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4855 (debug_to_terminal_save_ours, debug_to_terminal_info)
4856 (debug_to_load, debug_to_post_startup_inferior)
4857 (debug_to_insert_fork_catchpoint)
4858 (debug_to_remove_fork_catchpoint)
4859 (debug_to_insert_vfork_catchpoint)
4860 (debug_to_remove_vfork_catchpoint)
4861 (debug_to_insert_exec_catchpoint)
4862 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4863 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4864 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4865 (setup_target_debug): Call init_debug_target.
4866 * target.h (TARGET_DEBUG_PRINTER): New macro.
4867 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4868 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4870 2014-07-24 Gary Benson <gbenson@redhat.com>
4872 * exceptions.h (throw_vfatal): Renamed to...
4873 (throw_vquit): New declaration.
4874 (throw_quit): Likewise.
4875 * exceptions.c (throw_vfatal): Renamed to...
4876 (throw_vquit): New function.
4877 (throw_quit): Likewise.
4878 (throw_error): Call throw_verror rather than throw_it.
4879 * utils.h (vfatal): Removed.
4881 * utils.c (vfatal): Removed.
4883 (internal_verror): Replaced call to fatal with call to throw_quit.
4884 (quit): Replaced calls to fatal with calls to throw_quit.
4886 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4888 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4891 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4893 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4894 less than zero in conditional expression.
4896 2014-07-23 Tom Tromey <tromey@redhat.com>
4898 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4899 ($INTRO_PART): Don't match whitespace.
4900 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4902 ($METHOD): Add $METHOD_TRAILER.
4904 (scan_target_h): New sub.
4905 Change main loop not to collect state.
4906 * target-delegates.c: Rebuild.
4908 2014-07-23 Gary Benson <gbenson@redhat.com>
4910 * cp-support.c (gdb_demangle): Fix build on systems without
4913 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4915 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4916 for reference entry value target data value.
4918 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4920 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4921 value_available_contents_eq.
4923 2014-07-22 Pedro Alves <palves@redhat.com>
4925 * value.c (allocate_optimized_out_value): Don't mark value as
4928 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4930 * MAINTAINERS (Write After Approval): Update my email address.
4932 2014-07-20 Doug Evans <dje@google.com>
4935 * remote.c (putpkt_binary): Add text to error message.
4937 2014-07-20 Yao Qi <yao@codesourcery.com>
4939 * eval.c: Remove "Chill" from comments.
4940 * gdbtypes.h: Likewise.
4941 * symtab.h: Likewise.
4943 2014-07-20 Yao Qi <yao@codesourcery.com>
4945 * std-operator.def: Update comments to TERNOP_SLICE.
4947 2014-07-20 Yao Qi <yao@codesourcery.com>
4949 * std-operator.def: Remove BINOP_RANGE.
4950 * breakpoint.c (watchpoint_exp_is_const): Update.
4951 * expprint.c (dump_subexp_body_standard): Likewise.
4952 * eval.c (init_array_element): Remove dead code.
4953 (evaluate_subexp_standard): Likewise.
4955 2014-07-20 Yao Qi <yao@codesourcery.com>
4957 * std-operator.def: Remove BINOP_IN.
4958 * breakpoint.c (watchpoint_exp_is_const): Update.
4959 * eval.c (evaluate_subexp_standard): Likewise.
4960 * expprint.c (dump_subexp_body_standard): Likewise.
4962 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4964 * microblaze-tdep.c (microblaze_register_names): Add
4965 the rshr and rslr register names.
4966 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4967 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4968 Use of tdesc_numbered_register. Use of
4969 microblaze_register_g_packet_guesses. Use of
4970 tdesc_use_registers. Use of set_gdbarch_register_type.
4971 (microblaze_register_g_packet_guesses): New.
4972 * microblaze-tdep.h (microblaze_reg_num): Add
4973 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4974 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4975 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4976 * features/microblaze-core.xml: New file.
4977 * features/microblaze-stack-protect.xml: New file.
4978 * features/microblaze-with-stack-protect.c: New file.
4979 * features/microblaze-with-stack-protect.xml: New file.
4980 * features/microblaze.xml: New file.
4981 * features/microblaze.c: New file.
4982 * features/Makefile (microblaze-with-stack-protect): Add
4983 microblaze-with-stack-protect microblaze and microblaze-expedite.
4984 * regformats/microblaze-with-stack-protect.dat: New file.
4985 * regformats/microblaze.dat: New file.
4986 * doc/gdb.texinfo (MicroBlaze Features): Added.
4988 2014-07-18 Tom Tromey <tromey@redhat.com>
4990 * exec.c (exec_ops): Now static.
4991 * exec.h (exec_ops): Don't declare.
4993 2014-07-18 Tom Tromey <tromey@redhat.com>
4995 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4996 to find_target_beneath.
4997 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4998 find_target_beneath.
4999 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5001 2014-07-18 Tom Tromey <tromey@redhat.com>
5004 * utils.c (quit): Use target_supports_terminal_ours.
5005 * target.h (target_supports_terminal_ours): Declare.
5006 * target.c (target_supports_delete_record): Don't check
5007 to_delete_record against NULL.
5008 (target_supports_terminal_ours): New function.
5010 2014-07-18 Tom Tromey <tromey@redhat.com>
5013 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5014 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5015 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5016 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5017 * windows-nat.c (windows_xfer_partial): Always delegate.
5018 * record-btrace.c (record_btrace_xfer_partial): Simplify
5020 (record_btrace_fetch_registers, record_btrace_store_registers)
5021 (record_btrace_prepare_to_store, record_btrace_resume)
5022 (record_btrace_wait, record_btrace_find_new_threads)
5023 (record_btrace_thread_alive): Likewise.
5024 * procfs.c (procfs_xfer_partial): Always delegate.
5025 * corelow.c (core_xfer_partial): Always delegate.
5026 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5028 2014-07-18 Tom Tromey <tromey@redhat.com>
5030 * exec.c (exec_make_note_section): Move earlier.
5032 2014-07-17 Doug Evans <dje@google.com>
5035 * maint.c (count_symtabs_and_blocks): Handle NULL
5036 current_program_space.
5037 (report_command_stats): Check global enabled flag in addition to
5038 recorded enabled flag.
5039 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5041 2014-07-16 Pedro Alves <palves@redhat.com>
5043 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5045 2014-07-16 Tom Tromey <tromey@redhat.com>
5047 * target.h (struct target_ops) <to_delete_record>: Reformat
5050 2014-07-16 Tom Tromey <tromey@redhat.com>
5052 * target-delegates.c: Rebuild.
5054 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5056 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5057 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5058 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5059 (avr_pointer_to_address): Likewise.
5060 (avr_address_class_type_flags): New function.
5061 (avr_address_class_type_flags_to_name): Likewise.
5062 (avr_address_class_name_to_type_flags): Likewise.
5063 (avr_gdbarch_init): Set address_class_type_flags,
5064 address_class_type_flags_to_name and
5065 address_class_name_to_type_flags.
5067 2014-07-15 Pedro Alves <palves@redhat.com>
5069 * linux-nat.c (kill_callback): Save errno and work with saved
5072 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5074 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5076 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5078 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5079 breakpoint support correctly.
5081 2014-07-14 Pedro Alves <palves@redhat.com>
5083 * utils.c (prompt_for_continue): Call target_terminal_ours.
5085 2014-07-14 Pedro Alves <palves@redhat.com>
5087 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5088 catch_errors. Don't re-enable stdin or notify observers where,
5090 (fetch_inferior_event_wrapper): Delete.
5092 2014-07-14 Pedro Alves <palves@redhat.com>
5095 * top.c: Include "inf-loop.h".
5096 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5098 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5100 (gdb_readline_wrapper): Store whether the target is async, and
5103 2014-07-14 Pedro Alves <palves@redhat.com>
5106 * top.c (gdb_readline_wrapper_line): Tweak comment.
5107 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5108 the input handler callback.
5110 2014-07-14 Pedro Alves <palves@redhat.com>
5113 * main.c: Include event-top.h.
5114 (handle_command_errors): New function.
5115 (catch_command_errors, catch_command_errors_const): Use it.
5117 2014-07-14 Pedro Alves <palves@redhat.com>
5119 * exceptions.c (catch_command_errors, catch_command_errors_const):
5121 * exceptions.h (catch_command_errors_ftype)
5122 (catch_command_errors_const_ftype): Moved to main.c.
5123 (catch_command_errors, catch_command_errors_const): Delete
5125 * main.c (catch_command_errors_ftype)
5126 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5127 (catch_command_errors, catch_command_errors_const)): Moved here
5128 from exceptions.c and make static.
5130 2014-07-14 Pedro Alves <palves@redhat.com>
5132 * exceptions.c (print_any_exception): Delete.
5133 (catch_exceptions_with_msg): Use exception_print instead of
5134 print_any_exception.
5135 (catch_errors): Use exception_fprintf instead of
5136 print_any_exception.
5137 (catch_command_errors, catch_command_errors_const): Use
5138 exception_print instead of print_any_exception.
5140 2014-07-14 Pedro Alves <palves@redhat.com>
5142 * infcall.c (run_inferior_call): Set 'sync_execution' while
5143 running the inferior call.
5145 2014-07-14 Pedro Alves <palves@redhat.com>
5147 * value.c (value_contents_equal): Delete function.
5148 * value.h (value_contents_equal): Delete declaration.
5150 2014-07-14 Tom Tromey <tromey@redhat.com>
5153 * gdbtypes.c (is_dynamic_type_internal): New function, from
5155 (is_dynamic_type): Rewrite.
5156 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5157 (resolve_dynamic_struct): Likewise.
5158 (resolve_dynamic_type_internal): New function, from
5159 resolve_dynamic_type.
5160 (resolve_dynamic_type): Rewrite.
5162 2014-07-14 Tom Tromey <tromey@redhat.com>
5164 * target.c (target_require_runnable): Also check record_stratum.
5167 2014-07-11 Yao Qi <yao@codesourcery.com>
5169 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5170 thumb_instruction_restores_sp return true.
5172 2014-07-11 Yao Qi <yao@codesourcery.com>
5174 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5175 (thumb_in_function_epilogue_p): Call
5176 thumb_instruction_restores_sp.
5178 2014-07-11 Yao Qi <yao@codesourcery.com>
5180 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5182 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5184 2014-07-11 Gary Benson <gbenson@redhat.com>
5186 * amd64-linux-nat.c (gdbcore.h): Remove include.
5187 (regset.h): Likewise.
5188 (nat/linux-btrace.h): Likewise.
5189 (btrace.h): Likewise.
5190 (gdb_assert.h): Likewise.
5191 (string.h): Likewise.
5192 (sys/uio.h): Likewise.
5193 (sys/debugreg.h): Likewise.
5194 (sys/syscall.h): Likewise.
5195 (sys/procfs.h): Likewise.
5196 (sys/user.h): Likewise.
5197 (asm/ptrace.h): Likewise.
5198 (i386-nat.h): Likewise.
5199 * i386-linux-nat.c (i386-nat.h): Likewise.
5200 (regset.h): Likewise.
5201 (target.h): Likewise.
5202 (linux-nat.h): Likewise.
5203 (nat/linux-btrace.h): Likewise.
5204 (btrace.h): Likewise.
5205 (gdb_assert.h): Likewise.
5206 (string.h): Likewise.
5207 (sys/uio.h): Likewise.
5208 (sys/user.h): Likewise.
5209 (sys/procfs.h): Likewise.
5210 (sys/reg.h): Likewise.
5211 (sys/debugreg.h): Likewise.
5212 (ORIG_EAX): Remove definition.
5214 2014-07-11 Gary Benson <gbenson@redhat.com>
5216 * i386-linux-nat.h: New file.
5217 * x86-linux-nat.h: Likewise.
5218 * x86-linux-nat.c: Likewise.
5219 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5220 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5221 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5222 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5223 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5224 (PTRACE_SETREGSET): Likewise.
5225 (arch_lwp_info): Now in x86-linux-nat.c.
5226 (have_ptrace_getregset): Now in x86-linux-nat.h.
5227 (x86_linux_dr_get): Now in x86-linux-nat.c.
5228 (x86_linux_dr_set): Likewise.
5229 (x86_linux_dr_get_addr): Likewise.
5230 (x86_linux_dr_get_control): Likewise.
5231 (x86_linux_dr_get_status): Likewise.
5232 (update_debug_registers_callback): Likewise.
5233 (x86_linux_dr_set_control): Likewise.
5234 (x86_linux_dr_set_addr): Likewise.
5235 (x86_linux_prepare_to_resume): Likewise.
5236 (x86_linux_new_thread): Likewise.
5237 (x86_linux_new_fork): Likewise.
5238 (x86_linux_get_thread_area): Likewise.
5239 (super_post_startup_inferior): Likewise.
5240 (x86_linux_child_post_startup_inferior): Likewise.
5241 (AMD64_LINUX_USER64_CS): Likewise.
5242 (AMD64_LINUX_X32_DS): Likewise.
5243 (x86_linux_read_description): Likewise.
5244 (x86_linux_enable_btrace): Likewise.
5245 (x86_linux_disable_btrace): Likewise.
5246 (x86_linux_teardown_btrace): Likewise.
5247 (x86_linux_read_btrace): Likewise.
5248 (x86_linux_create_target): Likewise.
5249 (x86_linux_add_target): Likewise.
5250 * i386-linux-nat.c (x86-linux-nat.h): New include.
5251 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5252 (PTRACE_SETREGSET): Likewise.
5253 (arch_lwp_info): Now in x86-linux-nat.c.
5254 (have_ptrace_getregset): Now in x86-linux-nat.h.
5255 (x86_linux_dr_get): Now in x86-linux-nat.c.
5256 (x86_linux_dr_set): Likewise.
5257 (x86_linux_dr_get_addr): Likewise.
5258 (x86_linux_dr_get_control): Likewise.
5259 (x86_linux_dr_get_status): Likewise.
5260 (update_debug_registers_callback): Likewise.
5261 (x86_linux_dr_set_control): Likewise.
5262 (x86_linux_dr_set_addr): Likewise.
5263 (x86_linux_prepare_to_resume): Likewise.
5264 (x86_linux_new_thread): Likewise.
5265 (x86_linux_new_fork): Likewise.
5266 (x86_linux_get_thread_area): Likewise.
5267 (super_post_startup_inferior): Likewise.
5268 (x86_linux_child_post_startup_inferior): Likewise.
5269 (AMD64_LINUX_USER64_CS): Likewise.
5270 (AMD64_LINUX_X32_DS): Likewise.
5271 (x86_linux_read_description): Likewise.
5272 (x86_linux_enable_btrace): Likewise.
5273 (x86_linux_disable_btrace): Likewise.
5274 (x86_linux_teardown_btrace): Likewise.
5275 (x86_linux_read_btrace): Likewise.
5276 (x86_linux_create_target): Likewise.
5277 (x86_linux_add_target): Likewise.
5279 2014-07-11 Gary Benson <gbenson@redhat.com>
5281 * amd64-linux-nat.c: Comment and whitespace changes.
5282 * i386-linux-nat.c: Comment and whitespace changes.
5284 2014-07-11 Gary Benson <gbenson@redhat.com>
5286 * amd64-linux-nat.c (x86_linux_create_target): New function.
5287 (x86_linux_add_target): Likewise.
5288 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5289 * i386-linux-nat.c (x86_linux_create_target): New function.
5290 (x86_linux_add_target): Likewise.
5291 (_initialize_i386_linux_nat): Delegate to the above new functions.
5293 2014-07-11 Gary Benson <gbenson@redhat.com>
5295 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5296 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5297 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5298 (ps_get_thread_area): Delegate to the above.
5300 2014-07-11 Gary Benson <gbenson@redhat.com>
5302 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5303 x86_linux_read_description. All uses updated. amd64-specific
5304 code conditionalized. Conditionalized i386-specific code added.
5305 Redundant cast removed.
5306 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5307 x86_linux_read_description. All uses updated. i386-specific
5308 code conditionalized. Conditionalized amd64-specific code added.
5309 One sizeof replaced with the actual type it is describing.
5311 2014-07-11 Gary Benson <gbenson@redhat.com>
5313 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5314 x86_linux_dr_get. All uses updated.
5315 (amd64_linux_dr_set): Renamed to
5316 x86_linux_dr_set. All uses updated.
5317 (amd64_linux_dr_get_addr): Renamed to
5318 x86_linux_dr_get_addr. All uses updated.
5319 (amd64_linux_dr_get_control): Renamed to
5320 x86_linux_dr_get_control. All uses updated.
5321 (amd64_linux_dr_get_status): Renamed to
5322 x86_linux_dr_get_status. All uses updated.
5323 (amd64_linux_dr_set_control): Renamed to
5324 x86_linux_dr_set_control. All uses updated.
5325 (amd64_linux_dr_set_addr): Renamed to
5326 x86_linux_dr_set_addr. All uses updated.
5327 (amd64_linux_prepare_to_resume): Renamed to
5328 x86_linux_prepare_to_resume. All uses updated.
5329 (amd64_linux_new_thread): Renamed to
5330 x86_linux_new_thread. All uses updated.
5331 (amd64_linux_new_fork): Renamed to
5332 x86_linux_new_fork. All uses updated.
5333 (amd64_linux_child_post_startup_inferior): Renamed to
5334 x86_linux_child_post_startup_inferior. All uses updated.
5335 (amd64_linux_enable_btrace): Renamed to
5336 x86_linux_enable_btrace. All uses updated.
5337 (amd64_linux_disable_btrace): Renamed to
5338 x86_linux_disable_btrace. All uses updated.
5339 (amd64_linux_teardown_btrace): Renamed to
5340 x86_linux_teardown_btrace. All uses updated.
5341 (amd64_linux_read_btrace): Renamed to
5342 x86_linux_read_btrace. All uses updated.
5343 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5344 x86_linux_dr_get. All uses updated.
5345 (i386_linux_dr_set): Renamed to
5346 x86_linux_dr_set. All uses updated.
5347 (i386_linux_dr_get_addr): Renamed to
5348 x86_linux_dr_get_addr. All uses updated.
5349 (i386_linux_dr_get_control): Renamed to
5350 x86_linux_dr_get_control. All uses updated.
5351 (i386_linux_dr_get_status): Renamed to
5352 x86_linux_dr_get_status. All uses updated.
5353 (i386_linux_dr_set_control): Renamed to
5354 x86_linux_dr_set_control. All uses updated.
5355 (i386_linux_dr_set_addr): Renamed to
5356 x86_linux_dr_set_addr. All uses updated.
5357 (i386_linux_prepare_to_resume): Renamed to
5358 x86_linux_prepare_to_resume. All uses updated.
5359 (i386_linux_new_thread): Renamed to
5360 x86_linux_new_thread. All uses updated.
5361 (i386_linux_new_fork): Renamed to
5362 x86_linux_new_fork. All uses updated.
5363 (i386_linux_child_post_startup_inferior): Renamed to
5364 x86_linux_child_post_startup_inferior. All uses updated.
5365 (i386_linux_enable_btrace): Renamed to
5366 x86_linux_enable_btrace. All uses updated.
5367 (i386_linux_disable_btrace): Renamed to
5368 x86_linux_disable_btrace. All uses updated.
5369 (i386_linux_teardown_btrace): Renamed to
5370 x86_linux_teardown_btrace. All uses updated.
5371 (i386_linux_read_btrace): Renamed to
5372 x86_linux_read_btrace. All uses updated.
5374 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5376 * remote.c (extended_remote_post_attach): New function.
5377 (init_extended_remote_ops): Install it as to_post_attach method.
5379 2014-07-09 Pedro Alves <palves@redhat.com>
5381 * infcmd.c (attach_command_post_wait): Don't call
5382 target_terminal_inferior here.
5383 (attach_command): Call it here instead.
5385 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5387 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5389 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5390 from varobj.c, with additional checks.
5391 (c_varobj_ops): Fill in is_path_expr_parent field.
5392 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5393 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5395 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5397 (varobj_default_is_path_expr_parent): New function.
5398 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5399 (varobj_default_is_path_expr_parent): Declare new function.
5401 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5403 * infcmd.c (finish_backward): Turn internal error into normal error.
5405 2014-07-07 Pedro Alves <palves@redhat.com>
5408 * remote.c (async_handle_remote_sigint)
5409 (async_handle_remote_sigint_twice): Call
5410 gdb_call_async_signal_handler instead of
5411 mark_async_signal_handler.
5413 2014-07-07 Tom Tromey <tromey@redhat.com>
5415 * target-delegates.c: Rebuild.
5416 * target.c (target_info_record): Remove.
5417 * record.c (info_record_command): Unconditionally call
5419 * target.h (struct target_ops) <to_info_record>: Use
5420 TARGET_DEFAULT_IGNORE.
5421 (target_info_record): Remove.
5423 2014-07-07 Tom Tromey <tromey@redhat.com>
5425 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5426 TARGET_DEFAULT_NORETURN.
5427 * target.c (generic_tls_error): New function.
5428 (target_translate_tls_address): Don't search target stack.
5429 * target-delegates.c: Rebuild.
5430 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5432 * linux-thread-db.c (thread_db_get_thread_local_address):
5433 Unconditionally call beneath target.
5435 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5437 * cli/cli-logging.c (pop_output_files): Assign targerr to
5440 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5442 * MAINTAINERS (Write After Approval): Update my email address.
5444 2014-07-02 Gary Benson <gbenson@redhat.com>
5446 * proc-service.c (ps_xfer_memory): Update comment.
5447 (ps_pstop): Remove unused function.
5448 (ps_pcontinue): Likewise.
5449 (ps_lstop): Likewise.
5450 (ps_lcontinue): Likewise.
5451 (ps_lgetxregsize): Likewise.
5452 (ps_lgetxregs): Likewise.
5453 (ps_lsetxregs): Likewise.
5454 (ps_plog): Likewise.
5455 (ps_ptread): Likewise.
5456 (ps_ptwrite): Likewise.
5458 2014-07-01 Mark Wielaard <mjw@redhat.com>
5460 * dwarf2read.c (add_array_cv_type): New function.
5461 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5462 (read_tag_volatile_type): Likewise.
5464 2014-07-01 Tom Tromey <tromey@redhat.com>
5466 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5467 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5468 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5469 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5470 * command.h (cmd_cfunc_ftype): Move earlier.
5471 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5472 (add_com, add_info): Use cmd_cfunc_ftype.
5474 2014-06-30 Tom Tromey <tromey@redhat.com>
5476 * symtab.c (operator_chars): Make parameters and return type
5478 (file_matches): Make "files" const.
5479 (struct search_symbols_data) <files>: Now const.
5480 (search_symbols): Make "regexp" and "files" parameters const.
5482 (symtab_symbol_info): Remove cast.
5483 (rbreak_command): Update.
5484 * symtab.h (search_symbols): Update.
5486 2014-06-27 Yao Qi <yao@codesourcery.com>
5488 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5489 Change parameter type to 'struct thread_info *'. Caller
5491 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5493 * dummy-frame.c (struct dummy_frame_id): New.
5494 (dummy_frame_id_eq): New function.
5495 (struct dummy_frame) <id>: Change its type to 'struct
5497 (dummy_frame_push): Add parameter ptid and save it in
5499 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5501 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5503 (lookup_dummy_frame): Change parameter type to 'struct
5504 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5505 instead of frame_id_eq.
5506 (dummy_frame_pop): Add parameter ptid. Callers updated.
5507 Update comments. Compose dummy_frame_id and pass it to
5509 (dummy_frame_discard): Add parameter ptid.
5510 (dummy_frame_sniffer): Compose dummy_frame_id and call
5511 dummy_frame_id_eq instead of frame_id_eq.
5512 (fprint_dummy_frames): Print ptid.
5513 * dummy-frame.h: Remove comments.
5514 (dummy_frame_push): Add ptid in declaration.
5515 (dummy_frame_pop, dummy_frame_discard): Likewise.
5517 2014-06-26 Tom Tromey <tromey@redhat.com>
5519 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5520 * command.h (error_no_arg): Update.
5522 2014-06-26 Tom Tromey <tromey@redhat.com>
5524 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5525 (do_show_command): Make "arg" const.
5526 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5528 2014-06-26 Tom Tromey <tromey@redhat.com>
5530 * record-full.c (record_full_get_bookmark): Make "args" const.
5531 (record_full_goto_bookmark): Make "raw_bookmark" const.
5532 * record.c (record_goto): New function.
5533 (cmd_record_goto): Use it. Now static.
5534 * record.h (record_goto): Declare.
5535 (cmd_record_goto): Remove declaration.
5536 * target-delegates.c: Rebuild.
5537 * target.h (struct target_ops) <to_get_bookmark,
5538 to_goto_bookmark>: Make parameter const.
5540 2014-06-26 Tom Tromey <tromey@redhat.com>
5542 * defs.h (generic_load): Update.
5543 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5544 * monitor.c (monitor_load): Make "args" const.
5545 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5546 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5548 (mips_load): Make "file" const.
5549 * remote-sim.c (gdbsim_load): Make "args" const.
5550 * remote.c (remote_load): Make "name" const.
5551 * symfile.c (generic_load): Make "args" const.
5552 * target-delegates.c: Rebuild.
5553 * target.c (target_load): Make "arg" const.
5554 (debug_to_load): Make "args" const.
5555 * target.h (struct target_ops) <to_load>: Make parameter const.
5556 (target_load): Update.
5558 2014-06-26 Tom Tromey <tromey@redhat.com>
5561 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5562 (dwarf2_physname, read_partial_die)
5563 (guess_partial_die_structure_name, fixup_partial_die)
5564 (guess_full_die_structure_name, anonymous_struct_prefix)
5565 (dwarf2_name): Use per-BFD obstack.
5567 2014-06-26 Yao Qi <yao@codesourcery.com>
5569 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5570 dummyframe and this_id into inner block below.
5572 2014-06-26 Yao Qi <yao@codesourcery.com>
5574 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5575 with "signal_pass[0]" in the initialization of signal_pass.
5577 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5579 * record-btrace.c (record_btrace_generating_corefile)
5580 (record_btrace_prepare_to_generate_core)
5581 (record_btrace_done_generating_core): New.
5582 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5583 (record_btrace_store_registers, record_btrace_prepare_to_store):
5584 Forward request when generating a core file.
5585 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5586 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5587 to_done_generating_core.
5589 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5591 * target.h (target_ops) <to_prepare_to_generate_core>
5592 <to_done_generating_core>: New.
5593 (target_prepare_to_generate_core, target_done_generating_core): New.
5594 * target.c (target_prepare_to_generate_core)
5595 (target_done_generating_core): New.
5596 * target-delegates.c: Regenerate.
5597 * gcore.c: (write_gcore_file): Rename to ...
5598 (write_gcore_file_1): ...this.
5599 (write_gcore_file): Call target_prepare_to_generate_core
5600 and target_done_generating_core.
5602 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5604 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5605 * gcore.c (write_gcore_file): Free memory returned from
5606 make_corefile_notes.
5607 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5608 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5610 2014-06-24 Yao Qi <yao@codesourcery.com>
5612 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5613 (arm_linux_init_abi): Set skip_trampoline_code with
5614 gdbarch_skip_trampoline_code instead of
5615 find_solib_trampoline_target.
5617 2014-06-24 Yao Qi <yao@codesourcery.com>
5619 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5620 arm_skip_bx_reg returns non-zero.
5622 2014-06-24 Yao Qi <yao@codesourcery.com>
5624 * arm-tdep.c (arm_skip_bx_reg): New function.
5625 (arm_skip_stub): Call arm_skip_bx_reg.
5627 2014-06-23 Don Breazeal <donb@codesourcery.com>
5629 * MAINTAINERS: Add myself as write-after-approval maintainer.
5631 2014-06-23 Pedro Alves <palves@redhat.com>
5633 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5634 DR_CONTROL before setting DR0..DR3.
5635 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5636 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5637 bits of DR_CONTROL related to the debug register slot being
5638 disabled. If all slots are vacant, clear local slowdown as well,
5639 and assert DR_CONTROL is 0.
5641 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5643 * python/lib/gdb/command/xmethods.py
5644 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5645 current progspace only if the string "progspace" matches LOCUS_RE.
5647 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5649 Fix --with-system-readline with readline-6.3 patch 5.
5650 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5651 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5654 2014-06-20 Tom Tromey <tromey@redhat.com>
5656 * dwarf2read.c (dw2_get_real_path): Use correct type in
5658 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5660 2014-06-20 Gary Benson <gbenson@redhat.com>
5662 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5663 * common/glibc_thread_db.h: Likewise.
5664 * common/i386-cpuid.h: Likewise.
5665 * common/i386-gcc-cpuid.h: Likewise.
5666 * common/linux-btrace.h: Likewise.
5667 * common/linux-osdata.h: Likewise.
5668 * common/linux-procfs.h: Likewise.
5669 * common/linux-ptrace.h: Likewise.
5670 * common/mips-linux-watch.h: Likewise.
5671 * common/linux-btrace.c: Moved to nat.
5672 * common/linux-osdata.c: Likewise.
5673 * common/linux-procfs.c: Likewise.
5674 * common/linux-ptrace.c: Likewise.
5675 * common/mips-linux-watch.c: Likewise.
5676 * nat/gdb_thread_db.h: Moved from common.
5677 * nat/glibc_thread_db.h: Likewise.
5678 * nat/i386-cpuid.h: Likewise.
5679 * nat/i386-gcc-cpuid.h: Likewise.
5680 * nat/linux-btrace.c: Likewise.
5681 * nat/linux-btrace.h: Likewise.
5682 * nat/linux-osdata.c: Likewise.
5683 * nat/linux-osdata.h: Likewise.
5684 * nat/linux-procfs.c: Likewise.
5685 * nat/linux-procfs.h: Likewise.
5686 * nat/linux-ptrace.c: Likewise.
5687 * nat/linux-ptrace.h: Likewise.
5688 * nat/mips-linux-watch.c: Likewise.
5689 * nat/mips-linux-watch.h: Likewise.
5690 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5691 (object file files): Reordered.
5692 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5693 of glibc_thread_db.h.
5695 2014-06-20 Gary Benson <gbenson@redhat.com>
5697 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5698 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5699 (i386_dr_low): Likewise.
5700 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5701 (i386_dr_low_set_addr): Likewise.
5702 (i386_dr_low_get_addr): Likewise.
5703 (i386_dr_low_can_set_control): Likewise.
5704 (i386_dr_low_set_control): Likewise.
5705 (i386_dr_low_get_control): Likewise.
5706 (i386_dr_low_get_status): Likewise.
5707 (i386_get_debug_register_length): Likewise.
5708 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5709 (i386_dr_low): Likewise.
5710 * nat/i386-dregs.c (i386-low.h): Remove include.
5711 (i386-nat.h): Likewise.
5712 (nat/i386-dregs.h): New include.
5713 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5714 (i386_dr_low_set_addr): Likewise.
5715 (i386_dr_low_get_addr): Likewise.
5716 (i386_dr_low_can_set_control): Likewise.
5717 (i386_dr_low_set_control): Likewise.
5718 (i386_dr_low_get_control): Likewise.
5719 (i386_dr_low_get_status): Likewise.
5720 (i386_get_debug_register_length): Likewise.
5721 (debug_hw_points): Likewise.
5723 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5725 * Makefile.in (SFILES): Add d-exp.y.
5726 (YYFILES): Add d-exp.c.
5727 (YYOBJ): Add d-exp.o.
5728 (local-maintainer-clean): Delete d-exp.c.
5729 * d-exp.y: New file.
5730 * d-lang.h (d_parse): New declaration.
5731 (d_error): New declaration.
5732 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5733 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5734 PREC_ORDER operators.
5735 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5737 2014-06-19 Yao Qi <yao@codesourcery.com>
5739 * gdbthread.h (any_running): Remove the declaration.
5740 * thread.c (any_running): Remove.
5742 2014-06-19 Yao Qi <yao@codesourcery.com>
5744 * gdbthread.h (struct thread_info) <state>: Change its type to
5745 'enum thread_state'. Update comments.
5747 2014-06-19 Pedro Alves <palves@redhat.com>
5749 * gdbthread.h (ALL_THREADS): Delete.
5750 (ALL_NON_EXITED_THREADS): New macro.
5751 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5752 instead of ALL_THREADS.
5753 * infrun.c (find_thread_needs_step_over)
5754 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5755 instead of ALL_THREADS.
5756 * record-btrace.c (record_btrace_open)
5757 (record_btrace_stop_recording, record_btrace_close)
5758 (record_btrace_is_replaying, record_btrace_resume)
5759 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5760 * remote.c (append_pending_thread_resumptions): Likewise.
5761 * thread.c (thread_apply_all_command): Likewise.
5763 2014-06-19 Gary Benson <gbenson@redhat.com>
5765 * i386-nat.c (i386_stopped_by_watchpoint):
5766 Use i386_dr_stopped_by_watchpoint.
5767 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5768 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5770 2014-06-19 Gary Benson <gbenson@redhat.com>
5772 * nat/i386-dregs.c: New file.
5773 * Makefile.in (i386-dregs.o): New rule.
5774 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5775 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5776 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5777 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5778 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5779 * config/i386/go32.mh (NATDEPFILES): Likewise.
5780 * config/i386/linux.mh (NATDEPFILES): Likewise.
5781 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5782 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5783 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5784 * i386-nat.h (debug_hw_points): New declaration.
5785 * i386-nat.c (breakpoint.h): Remove include.
5786 (command.h): Likewise.
5787 (target.h): Likewise.
5788 (gdb_assert.h): Likewise.
5789 (debug_hw_points): Made nonstatic.
5790 (debug_printf): Now in i386-dregs.c.
5791 (TARGET_HAS_DR_LEN_8): Likewise.
5792 (DR_CONTROL_SHIFT): Likewise.
5793 (DR_CONTROL_SIZE): Likewise.
5794 (DR_RW_EXECUTE): Likewise.
5795 (DR_RW_WRITE): Likewise.
5796 (DR_RW_READ): Likewise.
5797 (DR_RW_IORW): Likewise.
5798 (DR_LEN_1): Likewise.
5799 (DR_LEN_2): Likewise.
5800 (DR_LEN_4): Likewise.
5801 (DR_LEN_8): Likewise.
5802 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5803 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5804 (DR_ENABLE_SIZE): Likewise.
5805 (DR_LOCAL_SLOWDOWN): Likewise.
5806 (DR_GLOBAL_SLOWDOWN): Likewise.
5807 (DR_CONTROL_RESERVED): Likewise.
5808 (I386_DR_CONTROL_MASK): Likewise.
5809 (I386_DR_VACANT): Likewise.
5810 (I386_DR_LOCAL_ENABLE): Likewise.
5811 (I386_DR_GLOBAL_ENABLE): Likewise.
5812 (I386_DR_DISABLE): Likewise.
5813 (I386_DR_SET_RW_LEN): Likewise.
5814 (I386_DR_GET_RW_LEN): Likewise.
5815 (I386_DR_WATCH_HIT): Likewise.
5816 (i386_wp_op_t): Likewise.
5817 (i386_show_dr): Likewise.
5818 (i386_length_and_rw_bits): Likewise.
5819 (i386_insert_aligned_watchpoint): Likewise.
5820 (i386_remove_aligned_watchpoint): Likewise.
5821 (i386_handle_nonaligned_watchpoint): Likewise.
5822 (i386_update_inferior_debug_regs): Likewise.
5823 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5824 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5825 (i386_region_ok_for_watchpoint):
5826 Use i386_dr_region_ok_for_watchpoint.
5827 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5829 2014-06-19 Gary Benson <gbenson@redhat.com>
5831 * i386-nat.c (i386_insert_hw_breakpoint): Use
5832 i386_insert_watchpoint.
5833 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5835 2014-06-19 Gary Benson <gbenson@redhat.com>
5837 * i386-nat.c (i386_dr_show): Renamed to
5838 i386_show_dr and made static. All uses updated.
5839 (i386_dr_length_and_rw_bits): Renamed to
5840 i386_length_and_rw_bits and made static.
5842 (i386_dr_insert_aligned_watchpoint): Renamed to
5843 i386_insert_aligned_watchpoint and made static.
5845 (i386_dr_remove_aligned_watchpoint): Renamed to
5846 i386_remove_aligned_watchpoint and made static.
5848 (i386_dr_update_inferior_debug_regs): Renamed to
5849 i386_update_inferior_debug_regs and made static.
5851 * nat/i386-dregs.h (i386_dr_show): Removed.
5852 (i386_dr_length_and_rw_bits): Likewise.
5853 (i386_dr_insert_aligned_watchpoint): Likewise.
5854 (i386_dr_remove_aligned_watchpoint): Likewise.
5855 (i386_dr_update_inferior_debug_regs): Likewise.
5857 2014-06-19 Gary Benson <gbenson@redhat.com>
5859 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5860 * configure: Regenerate.
5861 * config.in: Likewise.
5862 * main.c (signal.h): New include.
5863 (setup_alternate_signal_stack): New function.
5864 (captured_main): Call the above.
5865 * cp-support.c (signal.h): New include.
5866 (catch_demangler_crashes): New flag.
5867 (SIGJMP_BUF): New define.
5868 (SIGSETJMP): Likewise.
5869 (SIGLONGJMP): Likewise.
5870 (gdb_demangle_jmp_buf): New static global.
5871 (gdb_demangle_attempt_core_dump): Likewise.
5872 (gdb_demangle_signal_handler): New function.
5873 (gdb_demangle): If catch_demangler_crashes is set, install the
5874 above signal handler before calling bfd_demangle, and restore
5875 the original signal handler afterwards. Display the offending
5876 symbol and call demangler_warning the first time a segmentation
5878 (_initialize_cp_support): New maint set/show command.
5880 2014-06-19 Gary Benson <gbenson@redhat.com>
5882 * utils.h (resource_limit_kind): New enum.
5883 (can_dump_core): New declaration.
5884 (warn_cant_dump_core): Likewise.
5885 (dump_core): Likewise.
5886 * utils.c (dump_core): Made nonstatic. Added new
5887 parameter "limit_kind".
5888 (can_dump_core): Made nonstatic. Moved printing code to...
5889 (warn_cant_dump_core): New function.
5890 (can_dump_core_warn): Likewise.
5891 (internal_vproblem): Replace calls to can_dump_core with
5892 calls to can_dump_core_warn. Supply new argument to each.
5894 2014-06-19 Gary Benson <gbenson@redhat.com>
5896 * utils.h (demangler_vwarning): New declaration.
5897 (demangler_warning): Likewise.
5898 * utils.c (struct internal_problem)
5899 <user_settable_should_quit>: New field.
5900 <user_settable_should_dump_core>: Likewise
5901 (internal_error_problem): Add values for above new fields.
5902 (internal_warning_problem): Likewise.
5903 (demangler_warning_problem): New static global.
5904 (demangler_vwarning): New function.
5905 (demangler_warning): Likewise.
5906 (add_internal_problem_command): Selectively add commands.
5907 (_initialize_utils): New internal problem command.
5908 * maint.c (maintenance_demangler_warning): New function.
5909 (_initialize_maint_cmds): New command.
5911 2014-06-18 Tom Tromey <tromey@redhat.com>
5913 * f-valprint.c (info_common_command_for_block): Update.
5914 * symtab.h (struct general_symbol_info) <common_block>: Now
5917 2014-06-18 Tom Tromey <tromey@redhat.com>
5919 * symtab.h (struct symtab) <blockvector>: Now const.
5920 * ada-lang.c (ada_add_global_exceptions): Update.
5921 * buildsym.c (augment_type_symtab): Update.
5922 * dwarf2read.c (dw2_lookup_symbol): Update.
5923 * jit.c (finalize_symtab): Update.
5924 * jv-lang.c (add_class_symtab_symbol): Update.
5925 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5927 * objfiles.c (objfile_relocate1): Update.
5928 * psymtab.c (lookup_symbol_aux_psymtabs)
5929 (maintenance_check_psymtabs): Update.
5930 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5932 * spu-tdep.c (spu_catch_start): Update.
5933 * symmisc.c (dump_symtab_1): Update.
5934 * symtab.c (lookup_global_symbol_from_objfile)
5935 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5936 (basic_lookup_transparent_type_quick)
5937 (basic_lookup_transparent_type, find_pc_sect_symtab)
5938 (find_pc_sect_line, search_symbols): Update.
5939 * block.c (find_block_in_blockvector): Make "bl" const.
5940 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5942 (blockvector_contains_pc): Make "bv" const.
5943 (block_for_pc_sect): Update.
5944 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5945 (blockvector_contains_pc): Update.
5946 * breakpoint.c (resolve_sal_pc): Update.
5947 * inline-frame.c (block_starting_point_at): Update.
5949 2014-06-18 Tom Tromey <tromey@redhat.com>
5951 * completer.c (complete_line): Make "line_buffer" const.
5952 * completer.h (complete_line): Update.
5954 2014-06-18 Tom Tromey <tromey@redhat.com>
5956 * symtab.c (add_macro_name): Remove unneeded cast.
5958 2014-06-18 Tom Tromey <tromey@redhat.com>
5960 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5961 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5963 2014-06-18 Tom Tromey <tromey@redhat.com>
5965 * probe.c (info_probes_for_ops): Make "arg" const.
5966 * probe.h (info_probes_for_ops): Update.
5968 2014-06-18 Tom Tromey <tromey@redhat.com>
5970 * varobj.c (varobj_create): Update.
5971 * valops.c (value_of_this): Update.
5972 * tracepoint.c (add_local_symbols, scope_info): Update.
5973 * symtab.h (struct general_symbol_info) <block>: Now const.
5974 * symtab.c (skip_prologue_sal)
5975 (default_make_symbol_completion_list_break_on)
5976 (skip_prologue_using_sal): Update.
5977 * stack.h (iterate_over_block_locals)
5978 (iterate_over_block_local_vars): Update.
5979 * stack.c (print_frame_args): Update.
5980 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5982 (get_selected_block): Make return type const.
5983 * python/py-frame.c (frapy_block): Update.
5984 * python/py-block.c (gdbpy_block_for_pc): Update.
5985 * p-exp.y (%union) <bval>: Now const.
5986 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5987 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5988 * m2-exp.y (%union) <bval>: Now const.
5989 * linespec.c (get_current_search_block): Make return type const.
5990 (create_sals_line_offset, find_label_symbols): Update.
5991 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5993 (block_starting_point_at): Make "block" const.
5994 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5995 (check_exception_resume): Update.
5996 * guile/scm-frame.c (gdbscm_frame_block): Update.
5997 * guile/scm-block.c (gdbscm_lookup_block): Update.
5998 * frame.h (get_frame_block): Update.
5999 (get_selected_block): Make return type const.
6000 * frame.c (frame_id_inner): Update.
6001 * f-valprint.c (info_common_command_for_block)
6002 (info_common_command): Update.
6003 * dwarf2loc.c (dwarf2_find_location_expression)
6004 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6005 (locexpr_describe_location_piece): Update.
6006 * c-exp.y (%union) <bval>: Now const.
6007 * breakpoint.c (resolve_sal_pc): Update.
6008 * blockframe.c (get_frame_block):Make return type const.
6009 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6010 (block_innermost_frame): Update.
6011 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6012 (block_for_pc, block_for_pc_sect): Update.
6013 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6015 (block_for_pc_sect, block_for_pc): Make return type const.
6016 * ax-gdb.c (gen_expr): Update.
6017 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6018 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6019 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6020 (ada_read_var_value): Update.
6021 * ada-exp.y (struct name_info) <block>: Now const.
6023 (block_lookup): Constify.
6025 2014-06-18 Gary Benson <gbenson@redhat.com>
6027 * nat/i386-dregs.h: New file.
6028 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6029 * i386-nat.h (i386-dregs.h): New include.
6030 (DR_FIRSTADDR): Now in i386-dregs.h.
6031 (DR_LASTADDR): Likewise.
6032 (DR_NADDR): Likewise.
6033 (DR_STATUS): Likewise.
6034 (DR_CONTROL): Likewise.
6035 (i386_debug_reg_state): Likewise.
6036 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6038 2014-06-18 Don Breazeal <donb@codesourcery.com>
6040 * breakpoint.c (set_longjmp_breakpoint): Call
6041 momentary_breakpoint_from_master with additional argument.
6042 (set_longjmp_breakpoint_for_call_dummy): Call
6043 momentary_breakpoint_from_master with additional argument.
6044 (set_std_terminate_breakpoint): Call
6045 momentary_breakpoint_from_master with additional argument.
6046 (momentary_breakpoint_from_master): Add argument to function
6047 definition and use it to initialize structure member flag.
6048 (clone_momentary_breakpoint): Call
6049 momentary_breakpoint_from_master with additional argument.
6050 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6051 member flags set in momentary_breakpoint_from_master.
6053 2014-06-18 Gary Benson <gbenson@redhat.com>
6055 * i386-nat.c (i386_show_dr): Renamed to
6056 i386_dr_show and made nonstatic. All uses updated.
6057 (i386_length_and_rw_bits): Renamed to
6058 i386_dr_length_and_rw_bits and made nonstatic.
6060 (i386_insert_aligned_watchpoint): Renamed to
6061 i386_dr_insert_aligned_watchpoint and made nonstatic.
6063 (i386_remove_aligned_watchpoint): Renamed to
6064 i386_dr_remove_aligned_watchpoint and made nonstatic.
6066 (i386_update_inferior_debug_regs): Renamed to
6067 i386_dr_update_inferior_debug_regs and made nonstatic.
6070 2014-06-18 Gary Benson <gbenson@redhat.com>
6072 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6073 (i386_dr_low_can_set_control): Likewise.
6074 (i386_dr_low_set_addr): Likewise.
6075 (i386_dr_low_set_control): Likewise.
6076 (i386_dr_low_get_addr): Likewise.
6077 (i386_dr_low_get_status): Likewise.
6078 (i386_dr_low_get_control): Likewise.
6079 (i386_insert_aligned_watchpoint): Use new macros.
6080 (i386_update_inferior_debug_regs): Likewise.
6081 (i386_stopped_data_address): Likewise.
6083 2014-06-18 Gary Benson <gbenson@redhat.com>
6085 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6086 New parameter. All uses updated.
6088 2014-06-18 Gary Benson <gbenson@redhat.com>
6090 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6093 2014-06-18 Gary Benson <gbenson@redhat.com>
6095 * i386-nat.c (debug_printf): New macro.
6096 (i386_get_debug_register_length): Likewise.
6097 (TARGET_HAS_DR_LEN_8): Use above macro.
6098 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6099 and printf_unfiltered. Use phex to format values.
6101 2014-06-18 Gary Benson <gbenson@redhat.com>
6103 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6106 2014-06-18 Gary Benson <gbenson@redhat.com>
6108 * i386-nat.c: Comment changes.
6110 2014-06-18 Gary Benson <gbenson@redhat.com>
6112 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6114 2014-06-18 Gary Benson <gbenson@redhat.com>
6116 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6117 (i386_insert_aligned_watchpoint): Likewise.
6118 (i386_remove_aligned_watchpoint): Likewise.
6119 (i386_handle_nonaligned_watchpoint): Likewise.
6121 2014-06-18 Gary Benson <gbenson@redhat.com>
6123 * i386-nat.c: Whitespace changes.
6125 2014-06-17 Samuel Bronson <naesten@gmail.com>
6127 * MAINTAINERS: Update Roland McGrath's email address.
6128 Thanks to Sergio Durigan Junior for pointing out that he left
6129 Red Hat a while ago, and giving me a current address.
6131 2014-06-17 Tom Tromey <tromey@redhat.com>
6133 * utils.h (savestring): Remove declaration.
6135 2014-06-17 Tom Tromey <tromey@redhat.com>
6137 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6139 2014-06-16 Keith Seitz <keiths@redhat.com>
6142 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6143 to update the varobj if inferior_ptid is null_ptid.
6145 2014-06-16 Tom Tromey <tromey@redhat.com>
6147 * target.h (struct target_ops) <to_info_proc>: Make parameter
6149 (target_info_proc): Update.
6150 * target.c (target_info_proc): Make "args" const.
6151 * procfs.c (procfs_info_proc): Update.
6152 * linux-tdep.c (linux_info_proc): Update.
6153 (linux_core_info_proc_mappings): Make "args" const.
6154 (linux_core_info_proc): Update.
6155 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6156 * gdbarch.c: Rebuild.
6157 * gdbarch.h: Rebuild.
6158 * corelow.c (core_info_proc): Update.
6160 2014-06-16 Tom Tromey <tromey@redhat.com>
6162 * target.h (struct target_ops) <to_disconnect>: Make parameter
6164 (target_disconnect): Update.
6165 * target.c (target_disconnect): Make "args" const.
6166 * target-delegates.c: Rebuild.
6167 * remote.c (remote_disconnect): Update.
6168 * record.h (record_disconnect): Update.
6169 * record.c (record_disconnect): Update.
6170 * inf-child.c (inf_child_disconnect): Update.
6172 2014-06-16 Tom Tromey <tromey@redhat.com>
6174 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6175 * target.c (debug_to_rcmd, default_rcmd): Update.
6176 * target-delegates.c: Rebuild.
6177 * remote.c (remote_rcmd): Update.
6178 * monitor.c (monitor_rcmd): Update.
6180 2014-06-16 Pedro Alves <palves@redhat.com>
6182 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6183 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6184 have OBJF_SHARED set.
6185 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6186 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6187 instead of OBJF_USERLOADED.
6188 * objfiles.h (OBJF_SHARED): Update comment.
6189 (userloaded_objfile_contains_address_p): Rename to ...
6190 (shared_objfile_contains_address_p): ... this, and update
6192 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6194 (remove_symbol_file_command): Skip objfiles that don't have
6197 2014-06-16 Tom Tromey <tromey@redhat.com>
6199 * minsyms.h (prim_record_minimal_symbol)
6200 (prim_record_minimal_symbol_and_info): Update comments.
6202 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6204 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6205 or --without-guile, according to how GDB was built.
6207 2014-06-13 Tom Tromey <tromey@redhat.com>
6209 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6211 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6213 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6215 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6216 help_list.Pass all_commands, not -1, to help_list.
6217 * cli/cli-dump.c (dump_command, append_command)
6218 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6219 (binary_dump_command, binary_append_command): Pass all_commands,
6220 not -1, to help_list.
6221 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6223 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6225 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6227 * top.c (set_history): Pass all_commands, not -1, to help_list.
6228 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6229 all_commands, not -1, to help_list.
6230 * symfile.c (overlay_command): Pass all_commands, not -1, to
6232 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6234 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6236 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6238 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6239 not -1, to help_list.
6240 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6241 not -1, to help_list.
6242 * maint.c (maintenance_command, maintenance_info_command)
6243 (maintenance_print_command, maintenance_set_cmd): Pass
6244 all_commands, not -1, to help_list.
6245 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6247 * language.c (set_check): Pass all_commands, not -1, to help_list.
6248 * infcmd.c (unset_command): Pass all_commands, not -1, to
6250 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6252 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6254 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6256 * breakpoint.c (save_command): Pass all_commands, not -1, to
6258 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6259 all_commands, not -1, to help_list.
6261 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6263 * regcache.c (struct register_to_invalidate): New structure.
6264 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6266 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6268 2014-06-12 Yao Qi <yao@codesourcery.com>
6270 * varobj.c (varobj_get_num_children): Call
6271 varobj_is_dynamic_p.
6272 (varobj_list_children): Likewise.
6273 (varobj_update): Likewise. Update comments.
6275 2014-06-12 Yao Qi <yao@codesourcery.com>
6277 * varobj.c (varobj_pretty_printed_p): Rename to ...
6278 (varobj_is_dynamic_p): ... this. New function.
6279 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6280 (varobj_is_dynamic_p): Declare.
6281 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6282 (mi_print_value_p, varobj_update_one): Likewise.
6284 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6285 Yao Qi <yao@codesourcery.com>
6287 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6288 (varobj_get_iterator): Wrap up code for pretty-printer by
6289 "#if HAVE_PYTHON" and "#endif".
6290 (update_dynamic_varobj_children): Likewise.
6292 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6293 Yao Qi <yao@codesourcery.com>
6295 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6296 gdb_python_initialized is false. Move some code from varobj.c.
6297 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6298 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6299 (struct varobj_item): Moved to varobj-iter.h".
6300 (varobj_clear_saved_item): New function.
6301 (update_dynamic_varobj_children): Move python-related code to
6303 (free_variable): Call varobj_clear_saved_item and
6306 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6307 Yao Qi <yao@codesourcery.com>
6309 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6310 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6311 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6312 (py-varobj.o): New rule.
6313 * python/py-varobj.c: New file.
6314 * python/python-internal.h (py_varobj_get_iterator): Declare.
6315 * varobj-iter.h: New file.
6316 * varobj.c: Include "varobj-iter.h"
6317 (struct varobj) <child_iter>: Change its type from "PyObject *"
6318 to "struct varobj_iter *".
6319 <saved_item>: Likewise.
6320 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6321 [HAVE_PYTHON] (varobj_get_iterator): New function.
6322 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6323 python-specific code to python/py-varobj.c.
6324 (install_visualizer): Call varobj_iter_delete instead of
6326 * varobj.h (varobj_ensure_python_env): Declare.
6328 2014-06-12 Yao Qi <yao@codesourcery.com>
6330 * varobj.c (struct varobj_item): New structure.
6331 (create_child_with_value): Update declaration.
6332 (varobj_add_child): Replace arguments 'name' and 'value' with
6333 'item'. All callers updated.
6334 (install_dynamic_child): Likewise.
6335 (update_dynamic_varobj_children): Likewise.
6336 (varobj_add_child): Likewise.
6337 (create_child_with_value): Likewise.
6339 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6341 * NEWS: Create a new section for the next release branch.
6342 Rename the section of the current branch, now that it has
6345 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6347 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6348 * version.in: Bump version to 7.8.50.DATE-cvs.
6350 2014-06-11 Pedro Alves <palves@redhat.com>
6353 * ser-mingw.c (net_windows_socket_check_pending): New function.
6354 (net_windows_select_thread): Ignore spurious wakeups. Use
6355 net_windows_socket_check_pending.
6356 (net_windows_wait_handle): Check for pending events with
6357 ioctlsocket, through net_windows_socket_check_pending, instead of
6358 checking the socket's event.
6360 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6362 * python/python-internal.h (gdb_PyObject_GetAttrString)
6363 (gdb_PyObject_HasAttrString): New inline function definitions.
6364 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6365 char * of the second argument to PyObject_GetAttrString.
6367 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6369 * serial.c (serial_write): Fix index of character to be printed
6370 in call to serial_logchar when serial debug traces are enabled.
6372 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6374 * gdbtypes (resolve_dynamic_range): Add function description.
6376 2014-06-09 Pedro Alves <palves@redhat.com>
6378 * linux-nat.c (linux_child_follow_fork): Initialize status with
6379 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6380 inner block. Only pass the signal to PTRACE_DETACH if in pass
6383 2014-06-09 Gary Benson <gbenson@redhat.com>
6385 * common/signals.c (gdb_signal_from_host): Reorder to separate
6386 the always-available ANSI-standard signals from the signals that
6388 (do_gdb_signal_to_host): Likewise.
6389 * proc-events.c (signal_table): Likewise.
6391 2014-06-08 Hui Zhu <hui@codesourcery.com>
6393 * common/linux-ptrace.c (linux_disable_event_reporting): New
6395 * common/linux-ptrace.h (linux_disable_event_reporting): New
6397 * linux-nat.c (linux_child_follow_fork): Do a single step before
6400 2014-06-07 Keith Seitz <keiths@redhat.com>
6404 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6405 from symbol_matches_domain in symtab.c. All local callers
6406 of symbol_matches_domain updated.
6407 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6408 search STRUCT_DOMAIN.
6409 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6410 independently. standard_lookup will do that automatically.
6411 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6412 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6413 (cp_lookup_symbol_in_namespace): Likewise.
6414 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6415 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6416 may return a STRUCT_DOMAIN match.
6417 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6418 * cp-support.c: Include language.h.
6419 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6421 * psymtab.c (match_partial_symbol): Compare the requested
6422 domain with the symbol's domain directly.
6423 (lookup_partial_symbol): Likewise.
6424 * symtab.c (lookup_symbol_in_language): Explain when/why
6425 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6426 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6427 appropriate languages.
6428 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6429 and moved to ada-lang.c
6430 (lookup_block_symbol): Explain that this function only returns
6431 symbol matching the requested DOMAIN.
6432 Compare the requested domain with the symbol's domain directly.
6433 (iterate_over_symbols): Compare the requested domain with the
6434 symbol's domain directly.
6435 * symtab.h (symbol_matches_domain): Remove.
6437 2014-06-06 Doug Evans <xdje42@gmail.com>
6439 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6440 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6441 (gdbscm_guile_version_is_at_least): Declare.
6442 (gdbscm_scm_string_to_int): Declare.
6443 * guile/guile.c (gdbscm_guile_major_version): New global.
6444 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6445 (guile_datadir): New static global.
6446 (gdbscm_guile_data_directory): New function.
6447 (initialize_scheme_side): Update.
6448 (misc_guile_functions): Add guile-data-directory.
6449 (initialize_gdb_module): Fetch guile version number.
6450 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6451 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6452 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6453 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6455 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6456 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6457 * guile/scm-value.c (gdbscm_value_to_string): Only call
6458 scm_port_conversion_strategy if Guile version >= 2.0.6.
6460 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6462 * main.c (print_gdb_help): Add -q and --silent.
6464 2014-06-06 Gary Benson <gbenson@redhat.com>
6466 * common/signals.c: Remove preprocessor conditionals for
6467 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6468 SIGSEGV and SIGTERM.
6469 * proc-events.c: Likewise.
6471 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6473 * symfile.c (symfile_free_objfile): Remove restriction to
6475 * symfile-mem.c (symbol_file_add_from_memory): Call
6476 add_target_sections_of_objfile.
6478 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6480 * guile/scm-value.c (gdbscm_history_append_x): Use
6481 'vlscm_get_value_smob_arg_unsafe' instead of
6482 'vlscm_scm_to_value'.
6484 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6487 * utils.c (printchar): Don't escape at all if quoter is NUL.
6488 Update function documentation to clarify effect of parameter
6490 * remote.c (escape_buffer): Pass '\\' as the quoter to
6491 fputstrn_unfiltered.
6492 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6493 generate the output.
6494 (mi_solib_unloaded): Same.
6496 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6498 * development.sh: Delete.
6499 * Makefile.in (config.status): Adjust dependency on development.sh.
6500 * configure.ac: Adjust development.sh source call.
6501 * configure: Regenerate.
6503 2014-06-04 Doug Evans <xdje42@gmail.com>
6505 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6506 is_scheme_bkpt, spec.
6507 (bpscm_make_breakpoint_smob): Initialize new members.
6508 (gdbscm_create_breakpoint_x): Split into two ...
6509 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6510 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6511 (scheme_function breakpoint_functions): Update.
6512 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6513 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6514 register-breakpoint!.
6516 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6519 * mem-break.c (z_type_supported): Return zero if
6520 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6522 2014-06-04 Tom Tromey <tromey@redhat.com>
6524 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6525 value_from_contents_and_address_unresolved.
6526 (ada_template_to_fixed_record_type_1): Likewise.
6527 (ada_which_variant_applies): Likewise.
6528 * value.h (value_from_contents_and_address_unresolved): Declare.
6529 * value.c (value_from_contents_and_address_unresolved): New
6531 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6532 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6533 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6535 2014-06-04 Tom Tromey <tromey@redhat.com>
6537 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6539 2014-06-04 Tom Tromey <tromey@redhat.com>
6541 * procfs.c (procfs_attach): Make "args" const.
6542 * windows-nat.c (windows_attach): Make "args" const.
6543 * nto-procfs.c (procfs_attach): Make "args" const.
6544 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6545 * go32-nat.c (go32_attach): Make "args" const.
6546 * gnu-nat.c (gnu_attach): Make "args" const.
6547 * darwin-nat.c (darwin_attach): Make "args" const.
6548 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6549 * linux-nat.c (linux_nat_attach): Make "args" const.
6550 * remote.c (extended_remote_attach_1, extended_remote_attach):
6552 * target.h (struct target_ops) <to_attach>: Make "args" const.
6553 (find_default_attach): Likewise.
6554 * utils.c (parse_pid_to_attach): Make "args" const.
6555 * utils.h (parse_pid_to_attach): Update.
6557 2014-06-04 Tom Tromey <tromey@redhat.com>
6559 * target-delegates.c: Rebuild.
6560 * target.c (default_thread_address_space): New function.
6561 (target_thread_address_space): Simplify.
6562 * target.h (struct target_ops) <to_thread_address_space>: Add
6563 TARGET_DEFAULT_FUNC.
6565 2014-06-04 Doug Evans <xdje42@gmail.com>
6567 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6569 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6571 * record-btrace.c: Include event-loop.h and inf-loop.h.
6572 (record_btrace_resume_exec_dir)
6573 (record_btrace_async_inferior_event_handler)
6574 (record_btrace_handle_async_inferior_event): New.
6575 (record_btrace_open): Create async event handler.
6576 (record_btrace_close): Delete async event handler.
6577 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6578 Mark async event handler.
6579 (record_btrace_execution_direction): New.
6580 (init_record_btrace_ops): Initialize to_execution_direction.
6582 2014-06-03 Doug Evans <xdje42@gmail.com>
6584 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6585 (gdbscm_make_parameter): Ditto.
6587 2014-06-03 Doug Evans <dje@google.com>
6589 * exec.c (exec_close_1): Call clear_section_table instead of
6590 resize_section_table.
6591 (clear_section_table): New function.
6592 (resize_section_table): Make static. Rename arg num_added to
6594 * exec.h (clear_section_table): Declare.
6595 (resize_section_table): Delete.
6596 * progspace.c (release_program_space): Call clear_section_table
6597 instead of resize_section_table.
6599 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6601 * NEWS (Python Scripting): Add entry about the new xmethods
6604 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6606 * python/py-xmethods.c: New file.
6607 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6608 (objfpy_dealloc): XDECREF on the new xmethods field.
6609 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6611 (objfpy_get_xmethods): New function.
6612 (objfile_getset): New entry 'xmethods'.
6613 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6614 (pspy_dealloc): XDECREF on the new xmethods field.
6615 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6617 (pspy_get_xmethods): New function.
6618 (pspace_getset): New entry 'xmethods'.
6619 * python/python-internal.h: Add declarations for new functions.
6620 * python/python.c (_initialize_python): Invoke
6621 gdbpy_initialize_xmethods.
6622 * python/lib/gdb/__init__.py (xmethods): New
6624 * python/lib/gdb/xmethod.py: New file.
6625 * python/lib/gdb/command/xmethods.py: New file.
6627 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6629 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6630 best match method returned by find_overload_match is an xmethod.
6631 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6632 the best matching operator returned by find_overload_match is an
6634 * valops.c: #include "extension.h".
6635 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6636 Return void. The list of matching source methods is returned in
6637 "fn_list" and a vector of matching debug method workers is
6638 returned in "xm_worker_vec". Update all callers.
6639 (value_find_oload_method_list): Likewise.
6640 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6641 non-NULL, then the index of the best matching method in this
6642 vector is returned. Update all callers.
6643 (find_overload_match): Include xmethods while performing overload
6646 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6648 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6649 * extension-priv.h (struct extension_language_ops): Add the
6651 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6652 get_matching_xmethod_workers, get_xmethod_argtypes,
6653 invoke_xmethod, free_xmethod_worker,
6654 free_xmethod_worker_vec): New functions.
6655 * extension.h: #include "common/vec.h".
6656 New function declarations.
6657 (struct xmethod_worker): New struct.
6658 (VEC (xmethod_worker_ptr)): New vector type.
6659 (xmethod_worker_ptr): New typedef.
6660 (xmethod_worker_vec): Likewise.
6661 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6663 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6664 (struct builtin_type): New field "xmethod".
6665 * valarith.c (value_ptradd): Assert that the value argument is not
6667 * valops.c (value_must_coerce_to_target): Return 0 for
6668 lval_xcallable values.
6669 * value.c (struct value): New field XM_WORKER in the field
6671 (value_address, value_raw_address): Return 0 for lval_xcallable
6673 (set_value_address): Assert that the value is not an
6675 (value_free): Free the associated xmethod worker when freeing
6676 lval_xcallable values.
6677 (set_value_component_location): Assert that the WHOLE value is not
6679 (value_of_xmethod, call_xmethod): New functions.
6680 * value.h: Declare "struct xmethod_worker".
6681 Declare new functions value_of_xmethod, call_xmethod.
6683 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6684 Pedro Alves <palves@redhat.com>
6686 PR breakpoints/17000
6687 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6688 New function, extracted from software_breakpoint_inserted_here_p.
6689 (software_breakpoint_inserted_here_p): Replace factored out code
6690 by call to find_non_raw_software_breakpoint_inserted_here.
6691 (bp_target_info_copy_insertion_state): New function.
6692 (bkpt_insert_location): Handle the case of a single-step
6693 breakpoint already inserted at the same address.
6694 (bkpt_remove_location): Handle the case of a single-step
6695 breakpoint still inserted at the same address.
6696 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6697 breakpoint already inserted at the same address.
6698 (deprecated_remove_raw_breakpoint): Handle the case of a
6699 non-raw breakpoint still inserted at the same address.
6700 (find_single_step_breakpoint): New function, extracted from
6701 single_step_breakpoint_inserted_here_p.
6702 (find_single_step_breakpoint): New function,
6703 factored out from single_step_breakpoint_inserted_here_p.
6704 (single_step_breakpoint_inserted_here_p): Reimplement.
6706 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6708 Pushed by Joel Brobecker <brobecker@adacore.com>
6709 * source.c (show_substitute_path_command): Fix display of matching
6712 2014-06-03 Gary Benson <gbenson@redhat.com>
6714 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6716 2014-06-02 Doug Evans <xdje42@gmail.com>
6718 Add parameter support for Guile.
6719 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6720 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6721 (scm-param.o): New rule.
6722 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6723 (gdbscm_misc_error): Declare.
6724 (gdbscm_canonicalize_command_name): Declare.
6725 (gdbscm_scm_to_host_string): Declare.
6726 (gdbscm_scm_from_host_string): Declare.
6727 (gdbscm_initialize_parameters): Declare.
6728 * guile/guile.c (initialize_gdb_module): Call
6729 gdbscm_initialize_parameters.
6730 * guile/lib/gdb.scm: Export parameter symbols.
6731 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6732 cmdscm_canonicalize_name and made public. All callers updated.
6733 * guile/scm-exception.c (gdbscm_misc_error): New function.
6734 * guile/scm-param.c: New file.
6735 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6736 (gdbscm_scm_to_host_string): New function.
6737 (gdbscm_scm_from_host_string): New function.
6738 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6740 2014-06-02 Doug Evans <xdje42@gmail.com>
6742 Add command support for Guile.
6743 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6744 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6745 (scm-cmd.o): New rule.
6746 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6747 (gdbscm_user_error_p): Declare.
6748 (gdbscm_parse_command_name): Declare.
6749 (gdbscm_valid_command_class_p): Declare.
6750 (gdbscm_initialize_commands): Declare.
6751 * guile/guile.c (initialize_gdb_module): Call
6752 gdbscm_initialize_commands.
6753 * guile/lib/gdb.scm: Export command symbols.
6754 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6755 (throw-user-error): New function.
6756 * guile/scm-cmd.c: New file.
6757 * guile/scm-exception.c (user_error_symbol): New static global.
6758 (gdbscm_user_error_p): New function.
6759 (gdbscm_initialize_exceptions): Set user_error_symbol.
6760 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6762 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6764 * top.c (command_loop): Handle comments here...
6765 (command_line_input): ... not here.
6767 2014-06-02 Doug Evans <xdje42@gmail.com>
6769 Add progspace support for Guile.
6770 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6771 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6772 (scm-progspace.o): New rule.
6773 * guile/guile-internal.h (pspace_smob): New typedef.
6774 (psscm_pspace_smob_pretty_printers): Declare.
6775 (psscm_pspace_smob_from_pspace): Declare.
6776 (psscm_scm_from_pspace): Declare.
6777 * guile/guile.c (initialize_gdb_module): Call
6778 gdbscm_initialize_pspaces.
6779 * guile/lib/gdb.scm: Export progspace symbols.
6780 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6782 (append-pretty-printer!): Ditto.
6783 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6785 * guile/scm-progspace.c: New file.
6787 2014-06-03 Alan Modra <amodra@gmail.com>
6789 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6790 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6792 2014-06-02 Doug Evans <dje@google.com>
6794 Add support for skeletonless type units.
6795 * dwarf2read.c (struct dwarf2_per_objfile): New member
6796 n_allocated_type_units.
6797 (struct dwarf2_per_objfile) <tu_stats>: New member
6798 nr_all_type_units_reallocs.
6799 (create_signatured_type_table_from_index): Initialize
6800 n_allocated_type_units
6801 (create_all_type_units): Ditto.
6802 (add_type_unit): Move up in file. New arg slot.
6803 All callers updated. Increase space for all_type_units more
6805 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6806 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6807 (lookup_dwp_signatured_type): Ditto.
6808 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6809 All callers updated.
6810 (build_type_psymtabs_1): Leave type_unit_groups as
6811 NULL if no TUs present.
6812 (print_tu_stats): New function.
6813 (process_skeletonless_type_unit): New function.
6814 (process_dwo_file_for_skeletonless_type_units): New
6816 (process_skeletonless_type_units): New function.
6817 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6818 Call print tu_stats if debugging enabled.
6820 2014-06-02 Pedro Alves <palves@redhat.com>
6822 * breakpoint.c (build_target_command_list): Don't build a command
6823 list if we have any duplicate location that isn't a dprintf.
6825 2014-06-02 Pedro Alves <palves@redhat.com>
6827 * breakpoint.c (dprintf_breakpoint_hit): New function.
6828 (initialize_breakpoint_ops): Install it as dprintf's
6829 breakpoint_hit method.
6831 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6833 * source.c (substitute_path_rule_matches): Simplify using
6834 filename_ncmp instead of FILENAME_CMP.
6836 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6838 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6840 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6842 * configure.ac: When Guile is available, check for the
6843 availability of 'scm_new_smob'.
6844 * configure, config.h.in: Regenerate.
6845 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6848 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6850 * frame.c (struct frame_info): Add stop_string field.
6851 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6852 (get_prev_frame_always): Old content moved into
6853 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6854 TRY_CATCH, handle MEMORY_ERROR exceptions.
6855 (frame_stop_reason_string): New function definition.
6856 * frame.h (unwind_stop_reason_to_string): Extend comment to
6857 mention frame_stop_reason_string.
6858 (frame_stop_reason_string): New function declaration.
6859 * stack.c (frame_info): Switch to frame_stop_reason_string.
6860 (backtrace_command_1): Switch to frame_stop_reason_string.
6861 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6862 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6863 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6865 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6867 * frame.c (frame_stop_reason_string): Rename to ...
6868 (unwind_stop_reason_to_string): this.
6869 * frame.h (frame_stop_reason_string): Rename to ...
6870 (unwind_stop_reason_to_string): this.
6871 * stack.c (frame_info): Update call to frame_stop_reason_string.
6872 (backtrace_command_1): Likewise.
6873 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6874 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6876 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6878 * frame.c (remove_prev_frame): New function.
6879 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6882 2014-05-29 Pedro Alves <palves@redhat.com>
6884 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6885 and make it const. When a single-step decays to a continue,
6886 clear 'step', not 'hw_step'. Pass whether the caller wanted
6887 to step to user_visible_resume_ptid, not what we ask the
6890 2014-05-29 Pedro Alves <palves@redhat.com>
6892 * infrun.c (process_event_stop_test, handle_step_into_function)
6893 (handle_step_into_function_backward): Adjust.
6894 Don't set the even thread's stop_step and call stop_waiting before
6895 calling end_stepping_range. Instead do that ...
6896 (end_stepping_range): ... here. Take an ecs pointer parameter.
6898 2014-05-29 Pedro Alves <palves@redhat.com>
6900 * infrun.c (stop_stepping): Rename to ...
6901 (stop_waiting): ... this.
6902 (proceed): Update comment.
6903 (process_event_stop_test, handle_inferior_event)
6904 (handle_signal_stop, handle_step_into_function)
6905 (handle_step_into_function_backward): Update.
6907 2014-05-29 Pedro Alves <palves@redhat.com>
6909 * infcall.c (run_inferior_call): Don't check whether the current
6910 thread is running after the proceed call.
6912 2014-05-29 Pedro Alves <palves@redhat.com>
6913 Tom Tromey <tromey@redhat.com>
6915 * NEWS: Mention "maint set target-async", "set mi-async", and that
6916 background execution commands are now always available.
6917 * target.h (target_async_permitted): Update comment.
6918 * target.c (target_async_permitted, target_async_permitted_1):
6920 (set_target_async_command): Rename to ...
6921 (maint_set_target_async_command): ... this.
6922 (show_target_async_command): Rename to ...
6923 (maint_show_target_async_command): ... this.
6924 (_initialize_target): Adjust.
6925 * infcmd.c (prepare_execution_command): Make extern.
6926 * inferior.h (prepare_execution_command): Declare.
6927 * infrun.c (set_observer_mode): Leave target async alone.
6928 * mi/mi-interp.c (mi_interpreter_init): Install
6929 mi_on_sync_execution_done as sync_execution_done observer.
6930 (mi_on_sync_execution_done): New function.
6931 (mi_execute_command_input_handler): Don't print the prompt if we
6932 just started a synchronous command with an async target.
6933 (mi_on_resume): Check sync_execution before printing prompt.
6934 * mi/mi-main.h (mi_async_p): Declare.
6935 * mi/mi-main.c: Include gdbcmd.h.
6936 (mi_async_p): New function.
6937 (mi_async, mi_async_1): New globals.
6938 (set_mi_async_command, show_mi_async_command, mi_async): New
6940 (exec_continue): Call prepare_execution_command.
6941 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6942 (mi_execute_async_cli_command): Use mi_async_p.
6943 (_initialize_mi_main): Install "set mi-async". Make
6944 "target-async" a deprecated alias.
6946 2014-05-29 Pedro Alves <palves@redhat.com>
6948 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6949 (_initialize_cli_interp): Adjust.
6950 * event-loop.c: Include "observer.h".
6951 (start_event_loop): Notify 'command_error' observers instead of
6952 calling display_gdb_prompt. Remove FIXME comment.
6953 * event-top.c (display_gdb_prompt): Remove call into the
6955 * inf-loop.c: Include "observer.h".
6956 (inferior_event_handler): Notify 'command_error' observers instead
6957 of calling display_gdb_prompt.
6958 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6959 observers instead of calling display_gdb_prompt.
6960 * interps.c (interp_set): Don't call display_gdb_prompt.
6961 (current_interp_display_prompt_p): Delete.
6962 * interps.h (interp_prompt_p): Delete declaration.
6963 (interp_prompt_p_ftype): Delete.
6964 (struct interp_procs) <prompt_proc_p>: Delete field.
6965 (current_interp_display_prompt_p): Delete declaration.
6966 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6967 (_initialize_mi_interp): Adjust.
6968 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6969 'command_error' observers.
6970 (tui_on_sync_execution_done, tui_on_command_error): New
6972 (tui_display_prompt_p): Delete.
6973 (_initialize_tui_interp): Adjust.
6975 2014-05-29 Pedro Alves <palves@redhat.com>
6978 * cli/cli-interp.c: Include infrun.h and observer.h.
6979 (cli_uiout, cli_interp): New globals.
6980 (cli_on_signal_received, cli_on_end_stepping_range)
6981 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6983 (cli_interpreter_init): Install them as 'end_stepping_range',
6984 'signal_received' 'signal_exited', 'exited' and 'no_history'
6986 (_initialize_cli_interp): Remove cli_interp local.
6987 * infrun.c (handle_inferior_event): Call the several stop reason
6988 observers instead of printing the stop reason directly.
6989 (end_stepping_range): New function.
6990 (print_end_stepping_range_reason, print_signal_exited_reason)
6991 (print_exited_reason, print_signal_received_reason)
6992 (print_no_history_reason): Make static, and add an uiout
6993 parameter. Print to that instead of to CURRENT_UIOUT.
6994 * infrun.h (print_end_stepping_range_reason)
6995 (print_signal_exited_reason, print_exited_reason)
6996 (print_signal_received_reason print_no_history_reason): New
6998 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7000 <cli_uiout>: New field.
7001 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7002 uiout for CLI output. Install 'signal_received',
7003 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7005 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7006 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7007 (mi_on_no_history): New functions.
7008 (ui_out_free_cleanup): Delete function.
7009 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7010 instead use the one already stored in the MI interpreter data.
7011 (mi_ui_out): Adjust.
7012 * tui/tui-interp.c: Include infrun.h and observer.h.
7013 (tui_interp): New global.
7014 (tui_on_signal_received, tui_on_end_stepping_range)
7015 (tui_on_signal_exited, tui_on_exited)
7016 (tui_on_no_history): New functions.
7017 (tui_init): Install them as 'end_stepping_range',
7018 'signal_received' 'signal_exited', 'exited' and 'no_history'
7020 (_initialize_tui_interp): Delete tui_interp local.
7022 2014-05-29 Pedro Alves <palves@redhat.com>
7025 * linux-nat.c (linux_nat_resume_callback): Rename the second
7026 parameter to 'except'. Skip LP if it points to EXCEPT.
7027 (linux_nat_resume): Don't mark the event lwp as not stopped
7028 before resuming sibling lwps. Instead ask
7029 linux_nat_resume_callback to skip the event lwp. Mark it as not
7030 stopped after actually resuming it.
7031 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7033 (wait_lwp): Mark the lwp as stopped here.
7034 (stop_wait_callback): Mark the lwp as not stopped right after
7035 resuming it. Don't mark lwps as stopped here.
7036 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7037 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7039 2014-05-29 Pedro Alves <palves@redhat.com>
7042 * infrun.c (resume): Determine how much to resume depending on
7043 whether the caller wanted a step, not whether we can hardware step
7044 the target. Mark all threads that we intend to run as running,
7045 unless we're calling an inferior function.
7046 (normal_stop): If the thread is running an infcall, don't finish
7048 * target.c (target_resume): Don't mark threads as running here.
7050 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7052 * serial.c (_initialize_serial): Remove support for
7053 the "set remotebaud" and "show remotebaud" commands.
7054 * NEWS: Add entry documenting the removal of that command.
7056 2014-05-28 Yao Qi <yao@codesourcery.com>
7058 * charset.c: Fix typo in comments.
7060 2014-05-27 Gary Benson <gbenson@redhat.com>
7062 * utils.c (internal_vproblem): Prompt for a bug report.
7064 2014-05-26 Andy Wingo <wingo@igalia.com>
7066 * guile/scm-arch.c (arscm_mark_arch_smob):
7067 * guile/scm-block.c (bkscm_mark_block_smob)
7068 (bkscm_mark_block_syms_progress_smob):
7069 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7070 * guile/scm-exception.c (exscm_mark_exception_smob):
7071 * guile/scm-frame.c (frscm_mark_frame_smob):
7072 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7073 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7074 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7075 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7076 (ppscm_mark_pretty_printer_worker_smob):
7077 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7078 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7079 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7080 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7082 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7085 2014-05-26 Andy Wingo <wingo@igalia.com>
7086 Doug Evans <xdje42@gmail.com>
7088 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7089 empty_base_class. All uses updated.
7090 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7091 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7093 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7094 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7095 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7096 (gdbscm_gsmob_has_property_p, add_property_name)
7097 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7098 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7099 (gdb-object-has-property?, gdb-object-properties): Remove.
7100 (gdb-object-kind): Renamed from gsmob-kind.
7102 2014-05-26 Andy Wingo <wingo@igalia.com>
7104 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7105 * configure: Regenerate.
7107 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7109 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7111 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7113 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7114 (replay_memory_access_read_only, replay_memory_access_read_write)
7115 (replay_memory_access_types, replay_memory_access)
7116 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7117 (cmd_set_record_btrace, cmd_show_record_btrace)
7118 (cmd_show_replay_memory_access): New.
7119 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7120 (record_btrace_remove_breakpoint): Replace
7121 record_btrace_allow_memory_access with replay_memory_access.
7122 (_initialize_record_btrace): Add commands.
7123 * NEWS: Announce it.
7125 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7127 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7129 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7131 * MAINTAINERS (Write After Approval): Move self back from
7134 2014-05-22 Pedro Alves <palves@redhat.com>
7136 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7137 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7138 (disable_randomization, enum exec_direction_kind)
7139 (execution_direction, stop_registers, start_remote)
7140 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7141 (wait_for_inferior, normal_stop, get_last_target_status)
7142 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7143 (insert_step_resume_breakpoint_at_sal)
7144 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7145 (set_step_info, print_stop_event, signal_stop_state)
7146 (signal_print_state, signal_pass_state, signal_stop_update)
7147 (signal_print_update, signal_pass_update)
7148 (update_signals_program_target, clear_exit_convenience_vars)
7149 (displaced_step_dump_bytes, update_observer_mode)
7150 (signal_catch_update, gdb_signal_from_command): Move
7152 * infrun.h: ... to this new file.
7153 * amd64-tdep.c: Include infrun.h.
7154 * annotate.c: Include infrun.h.
7155 * arch-utils.c: Include infrun.h.
7156 * arm-linux-tdep.c: Include infrun.h.
7157 * arm-tdep.c: Include infrun.h.
7158 * break-catch-sig.c: Include infrun.h.
7159 * breakpoint.c: Include infrun.h.
7160 * common/agent.c: Include infrun.h instead of inferior.h.
7161 * corelow.c: Include infrun.h.
7162 * event-top.c: Include infrun.h.
7163 * go32-nat.c: Include infrun.h.
7164 * i386-tdep.c: Include infrun.h.
7165 * inf-loop.c: Include infrun.h.
7166 * infcall.c: Include infrun.h.
7167 * infcmd.c: Include infrun.h.
7168 * infrun.c: Include infrun.h.
7169 * linux-fork.c: Include infrun.h.
7170 * linux-nat.c: Include infrun.h.
7171 * linux-thread-db.c: Include infrun.h.
7172 * monitor.c: Include infrun.h.
7173 * nto-tdep.c: Include infrun.h.
7174 * procfs.c: Include infrun.h.
7175 * record-btrace.c: Include infrun.h.
7176 * record-full.c: Include infrun.h.
7177 * remote-m32r-sdi.c: Include infrun.h.
7178 * remote-mips.c: Include infrun.h.
7179 * remote-notif.c: Include infrun.h.
7180 * remote-sim.c: Include infrun.h.
7181 * remote.c: Include infrun.h.
7182 * reverse.c: Include infrun.h.
7183 * rs6000-tdep.c: Include infrun.h.
7184 * s390-linux-tdep.c: Include infrun.h.
7185 * solib-irix.c: Include infrun.h.
7186 * solib-osf.c: Include infrun.h.
7187 * solib-svr4.c: Include infrun.h.
7188 * target.c: Include infrun.h.
7189 * top.c: Include infrun.h.
7190 * windows-nat.c: Include infrun.h.
7191 * mi/mi-interp.c: Include infrun.h.
7192 * mi/mi-main.c: Include infrun.h.
7193 * python/py-threadevent.c: Include infrun.h.
7195 2014-05-22 Pedro Alves <palves@redhat.com>
7197 * infrun.c (handle_inferior_event): Store the exit code for
7198 --return-child-result here, instead of ...
7199 (print_exited_reason): ... here.
7201 2014-05-21 Pedro Alves <palves@redhat.com>
7204 * gdbthread.h (struct thread_control_state): New field
7206 * infrun.c (follow_fork): Copy the new thread control field to the
7208 (clear_proceed_status_thread): Clear the new thread control field.
7209 (proceed): Set the new thread control field.
7210 * interps.h (command_interp): Declare.
7211 * interps.c (command_interpreter): New global.
7212 (command_interp): New function.
7213 (interp_exec): Set `command_interpreter' while here.
7214 * cli-out.c (cli_uiout_dtor): New function.
7215 (cli_ui_out_impl): Install it.
7216 * mi/mi-interp.c: Include cli-out.h.
7217 (mi_cmd_interpreter_exec): Add comment.
7218 (restore_current_uiout_cleanup): New function.
7219 (ui_out_free_cleanup): New function.
7220 (mi_on_normal_stop): If finishing an execution command started by
7221 a CLI command, or any kind of breakpoint-like event triggered,
7222 print the stop event to the output (CLI) stream.
7223 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7225 2014-05-21 Pedro Alves <palves@redhat.com>
7227 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7228 current source line having changed.
7229 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7230 * infrun.c (normal_stop): Adjust call to
7231 set_current_sal_from_frame.
7232 * source.c (clear_lines_listed_range): New function.
7233 (set_current_source_symtab_and_line, identify_source_line): Clear
7234 the lines listed range.
7235 (line_info): Handle the first "info line" after the current source
7236 line having changed.
7237 * stack.c (print_stack_frame): Remove center handling.
7238 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7241 2014-05-21 Pedro Alves <palves@redhat.com>
7243 * inf-child.c (inf_child_mourn_inferior): New function.
7244 * inf-child.h (inf_child_mourn_inferior): New declaration.
7245 * darwin-nat.c (darwin_mourn_inferior): Use
7246 inf_child_mourn_inferior.
7247 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7248 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7249 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7250 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7251 * windows-nat.c (windows_mourn_inferior): Likewise.
7253 2014-05-21 Doug Evans <xdje42@gmail.com>
7255 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7257 2014-05-21 Doug Evans <xdje42@gmail.com>
7259 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7260 (gdbscm_out_of_range_error): Ditto.
7261 (gdbscm_memory_error): Ditto.
7262 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7263 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7264 (gdbscm_out_of_range_error): Update.
7265 (gdbscm_memory_error): Update.
7266 (gdbscm_scm_to_target_string_unsafe): Delete.
7268 2014-05-21 Pedro Alves <palves@redhat.com>
7270 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7272 (inf_child_open_target): New function.
7273 (inf_child_open): Use inf_child_open_target to push the target
7274 instead of erroring out.
7275 (inf_child_disconnect, inf_child_close)
7276 (inf_child_maybe_unpush_target): New functions.
7277 (inf_child_target): Install inf_child_disconnect and
7278 inf_child_close. Store a pointer to the returned object.
7279 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7281 * target.c (auto_connect_native_target): New global.
7282 (show_default_run_target): New function.
7283 (find_default_run_target): Return NULL if automatically connecting
7284 to the native target is disabled.
7285 (_initialize_target): Install set/show auto-connect-native-target.
7286 * NEWS: Mention "set auto-connect-native-target", and "target
7288 * linux-nat.c (super_close): New global.
7289 (linux_nat_close): Call super_close.
7290 (linux_nat_add_target): Store a pointer to the base class's
7292 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7293 inf_child_maybe_unpush.
7294 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7296 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7297 the inferior. Use inf_child_maybe_unpush_target.
7298 (inf_ttrace_attach): Don't push the target if it is already
7300 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7301 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7302 after mourning the inferior. Use inf_child_maybe_unpush_target.
7303 (darwin_attach_pid): Don't push the target if it is already
7305 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7306 mourning the inferior. Use inf_child_maybe_unpush_target.
7307 (gnu_detach): Use inf_child_maybe_unpush_target.
7308 * go32-nat.c (go32_create_inferior): Don't push the target if it
7310 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7311 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7312 (procfs_open): Rename to ...
7313 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7314 comments. Can target_preopen before changing node. Call
7315 inf_child_open_target to push the target explicitly.
7316 (procfs_attach): Don't push the target if it is already pushed.
7317 (procfs_detach): Use inf_child_maybe_unpush_target.
7318 (procfs_create_inferior): Don't push the target if it is already
7320 (nto_native_ops): New global.
7321 (procfs_open): Reimplement.
7322 (procfs_native_open): New function.
7323 (init_procfs_targets): Install procfs_native_open as to_open of
7324 "target native". Store a pointer to the "native" target in
7326 * procfs.c (procfs_attach): Don't push the target if it is already
7328 (procfs_detach): Use inf_child_maybe_unpush_target.
7329 (procfs_mourn_inferior): Only unpush the target after mourning the
7330 inferior. Use inf_child_maybe_unpush_target.
7331 (procfs_init_inferior): Don't push the target if it is already
7333 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7334 if it is already pushed.
7336 2014-05-21 Pedro Alves <palves@redhat.com>
7338 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7339 and "procfs" targets are now called "native" instead.
7341 2014-05-21 Pedro Alves <palves@redhat.com>
7343 * go32-nat.c (go32_open): Delete.
7344 (go32_target): Don't override the to_open method.
7346 2014-05-21 Pedro Alves <palves@redhat.com>
7348 * nto-procfs.c (procfs_can_run): New function.
7349 (nto_procfs_ops): New global.
7350 (init_procfs_targets): New, based on procfs_target. Install
7351 "target native" in addition to "target procfs".
7352 (_initialize_procfs): Call init_procfs_targets instead of adding
7355 2014-05-21 Pedro Alves <palves@redhat.com>
7357 * windows-nat.c (windows_target): Don't override to_shortname,
7358 to_longname or to_doc.
7360 2014-05-21 Pedro Alves <palves@redhat.com>
7362 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7365 2014-05-21 Pedro Alves <palves@redhat.com>
7367 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7368 to_shortname, to_longname or to_doc.
7370 2014-05-21 Pedro Alves <palves@redhat.com>
7372 * go32-nat.c (go32_target): Don't override to_shortname,
7373 to_longname or to_doc.
7375 2014-05-21 Pedro Alves <palves@redhat.com>
7377 * inf-child.c (inf_child_open): Remove mention of "child".
7378 (inf_child_target): Rename target to "native" instead of "child".
7380 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7382 * Makefile.in (SFILES): Delete "regset.c".
7383 (COMMON_OBS): Delete "regset.o".
7385 * regset.h (regset_alloc): Delete prototype.
7387 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7389 * sparc-linux-tdep.c (sparc32_linux_gregset)
7390 (sparc32_linux_fpregset): New static regset structures.
7391 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7392 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7394 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7395 (sparc64_linux_fpregset): New static regset structures.
7396 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7397 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7398 New static regset structures.
7399 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7400 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7401 New static regset structures.
7402 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7403 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7404 New static regset structures.
7405 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7406 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7407 New static regset structures.
7408 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7410 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7412 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7413 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7414 register maps ("regmaps") from "*regset" to "*regmap". Do this
7415 for all regmap types and variables.
7416 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7417 (sparc32_linux_supply_core_gregset)
7418 (sparc32_linux_collect_core_gregset)
7419 (sparc32_linux_supply_core_fpregset)
7420 (sparc32_linux_collect_core_fpregset): Likewise.
7421 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7422 (sparc_gregmap, sparc_fpregmap): ... these.
7423 (sparc_supply_gregset, sparc_collect_gregset)
7424 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7425 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7426 (_initialize_sparc_nat): Rename regmaps.
7427 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7428 (sparc_gregmap, sparc_fpregmap): ... these.
7429 (sparc_supply_gregset, sparc_collect_gregset)
7430 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7431 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7433 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7434 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7436 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7438 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7439 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7440 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7442 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7443 (sparc32_bsd_fpregset): Rename to...
7444 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7445 (sparc32_bsd_fpregmap): ... these.
7446 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7447 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7448 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7449 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7450 (struct sparc_gregmap, struct sparc_fpregmap)
7451 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7452 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7453 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7454 (sparc32_supply_regset, sparc32_collect_gregset)
7455 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7457 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7458 (sparc64_linux_ptrace_gregmap): ... this.
7459 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7460 (_initialize_sparc64_linux_nat): Rename regmaps.
7461 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7462 (sparc64_linux_core_gregmap): ... this.
7463 (sparc64_linux_supply_core_gregset)
7464 (sparc64_linux_collect_core_gregset)
7465 (sparc64_linux_supply_core_fpregset)
7466 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7467 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7468 (sparc64_sol2_fpregset): Rename to...
7469 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7470 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7471 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7473 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7474 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7475 (sparc64_bsd_fpregset): Rename to...
7476 (struct sparc_gregmap, sparc64_sol2_gregmap)
7477 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7478 (sparc64_bsd_fpregmap): ... these.
7479 (sparc64_supply_gregset, sparc64_collect_gregset)
7480 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7482 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7483 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7484 (sparc64fbsd_gregmap): ... this.
7485 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7486 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7488 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7489 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7490 (sparc64nbsd_collect_fpregset): Likewise.
7491 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7492 (sparc64nbsd_gregmap): ... this.
7493 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7495 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7496 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7497 (sparc64obsd_gregmap): ... this.
7498 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7500 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7501 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7502 (sparc32nbsd_gregmap): ... this.
7503 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7506 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7508 * score-tdep.c (score7_linux_gregset): New static regset
7510 (score7_linux_regset_from_core_section): Remove dynamic regset
7512 (score_gdbarch_init): Drop allocation of tdep structure.
7513 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7515 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7517 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7519 (am33_regset_from_core_section): Remove dynamic regset
7522 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7524 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7525 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7527 (mips_linux_regset_from_core_section): Remove dynamic regset
7529 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7530 'gregset64', 'fpregset', and 'fpregset64'.
7531 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7532 deleted tdep fields.
7534 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7536 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7538 (amd64_regset_from_core_section): Remove dynamic regset
7540 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7542 (amd64obsd_regset_from_core_section): Remove dynamic regset
7544 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7546 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7547 x86-common regset supply function.
7548 * i386-tdep.c (i386_collect_gregset): Make static.
7549 (i386_gregset): New global regset structure.
7550 (i386_fpregset, i386_xstateregset): New static regset structures.
7551 (i386_regset_from_core_section): Remove dynamic regset
7553 (i386_gdbarch_init): Remove initialization of tdep fields
7554 'gregset', 'fpregset', and 'xstateregset'.
7555 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7556 'fpregset', and 'xstateregset'.
7557 (i386_collect_gregset): Remove prototype.
7558 (i386_gregset): New declaration.
7559 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7561 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7564 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7566 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7567 (arm_linux_vfpregset): New static regset structures.
7568 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7570 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7571 and 'vfpregset' fields.
7573 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7575 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7576 (aarch64_linux_fpregset): New static regset structures.
7577 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7578 of regset structures.
7579 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7582 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7584 * regset.h (struct regset): Remove gdbarch field.
7585 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7586 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7587 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7589 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7590 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7591 (ppc32_linux_vsxregset): Likewise.
7592 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7593 via the regcache instead of the regset.
7594 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7595 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7596 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7597 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7600 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7602 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7603 Constify structures.
7604 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7605 (alphanbsd_aout_gregset): Likewise.
7606 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7607 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7609 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7610 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7612 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7613 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7614 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7615 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7616 * m88k-tdep.c (m88k_gregset): Likewise.
7617 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7618 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7619 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7620 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7621 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7622 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7623 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7624 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7625 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7627 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7628 * sh-tdep.h (sh_corefile_gregset): Likewise.
7629 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7630 * vax-tdep.c (vax_gregset): Likewise.
7632 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7634 Fix TLS access for -static -pthread.
7635 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7636 (try_thread_db_load_1): Initialize it.
7637 (thread_db_get_thread_local_address): Call it if LM is zero.
7638 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7639 * target.h (struct target_ops) (to_get_thread_local_address): Add
7640 load_module_addr comment.
7642 2014-05-21 Pedro Alves <palves@redhat.com>
7644 * dcache.c (dcache_read_memory_partial): If reading the cache line
7645 fails, fallback to reading just the memory the caller wanted.
7647 2014-05-20 Doug Evans <dje@google.com>
7649 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7650 instead of get_current_arch.
7652 2014-05-20 Pedro Alves <palves@redhat.com>
7654 * NEWS: Mention that compare-sections now works with all targets.
7656 * remote.c (PACKET_qCRC): New enum value.
7657 (remote_verify_memory): Don't send qCRC if the target has no
7658 execution. Use packet_support/packet_ok. If the target doesn't
7659 support the qCRC packet, fallback to a deep memory copy.
7660 (compare_sections_command): Say "target image" instead of "remote
7662 (_initialize_remote): Add PACKET_qCRC to the list of config
7663 packets that have no associated command. Extend comment.
7664 * target.c (simple_verify_memory, default_verify_memory): New
7666 * target.h (struct target_ops) <to_verify_memory>: Default to
7667 default_verify_memory.
7668 (simple_verify_memory): New declaration.
7669 * target-delegates.c: Regenerate.
7671 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7673 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7675 2014-05-20 Hui Zhu <hui@codesourcery.com>
7676 Yao Qi <yao@codesourcery.com>
7679 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7680 and change address of sp and pc.
7682 2014-05-19 Tom Tromey <tromey@redhat.com>
7684 * gdbtypes.c (rank_function): Use XNEWVEC.
7685 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7687 2014-05-19 Doug Evans <dje@google.com>
7689 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7690 build_type_unit_groups and moved closer to only caller. Remove
7691 arguments. All references updated. Remove outdated .gdb_index
7693 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7694 build_type_psymtabs_1.
7696 2014-05-19 Doug Evans <dje@google.com>
7698 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7699 n_type_unit_groups, all_type_unit_groups. All uses removed.
7700 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7701 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7702 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7703 (add_type_unit_group_to_table): Delete.
7705 2014-05-19 Doug Evans <dje@google.com>
7707 * eval.c (evaluate_subexp_standard): Add some comments.
7709 2014-05-17 Doug Evans <xdje42@gmail.com>
7711 * progspace.c (remove_program_space): Delete, unused.
7712 * progspace.h (remove_program_space): Ditto.
7714 2014-05-17 Doug Evans <xdje42@gmail.com>
7716 * inferior.c (prune_inferiors): Fix comment.
7717 (remove_inferior_command): Call prune_program_spaces.
7719 2014-05-16 Doug Evans <dje@google.com>
7721 New command line option -D.
7723 * main.c (set_gdb_data_directory): New function.
7724 (captured_main): Recognize -D. Flag error for --data-directory "".
7725 Call set_gdb_data_directory.
7726 (print_gdb_help): Print --data-directory, -D.
7727 * main.h (set_gdb_data_directory): Declare.
7728 * top.c (staged_gdb_datadir): New static global.
7729 (set_gdb_datadir): Call set_gdb_data_directory
7730 (show_gdb_datadir): New function.
7731 (init_main): Update init of data-directory parameter.
7733 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7735 Import the "dirfd" gnulib module.
7736 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7737 * gnulib/aclocal.m4: Update.
7738 * gnulib/config.in: Update.
7739 * gnulib/configure: Update.
7740 * gnulib/import/Makefile.am: Update.
7741 * gnulib/import/Makefile.in: Update.
7742 * gnulib/import/dirfd.c: New.
7743 * gnulib/import/m4/dirfd.m4: New.
7744 * gnulib/import/m4/gnulib-cache.m4: Update.
7745 * gnulib/import/m4/gnulib-comp.m4: Update.
7747 2014-05-16 Pierre Muller <muller@sourceware.org>
7748 Yao Qi <yao@codesourcery.com>
7750 * valprint.c (print_wchar): Move the code on checking whether
7751 W is a printable wide char to the default branch of switch
7752 statement below. Call wchar_printable instead of gdb_iswprint.
7754 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7756 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7757 ldr.w and ldrd instructions.
7759 2014-05-15 Doug Evans <dje@google.com>
7761 * dwarf2read.c (read_structure_type): Delete outdated comments.
7763 2014-05-14 Tom Tromey <tromey@redhat.com>
7765 * macrocmd.c (print_macro_definition): Reindent.
7767 2014-05-13 Doug Evans <xdje42@gmail.com>
7769 * python/py-cmd.c (cmdpy_completer): Add comment.
7770 (completers): Make const.
7772 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7774 * infrun.c (resume): Remove should_resume (unused). Move up
7775 declaration of resume_ptid.
7777 2014-05-13 Tom Tromey <tromey@redhat.com>
7779 * language.h (unop_type_check): Remove.
7780 (binop_type_check): Don't declare.
7782 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7784 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7785 call to regcache_raw_collect.
7787 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7789 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7790 mi_console->quote as the quoting character.
7792 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7794 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7796 2014-04-29 Tom Tromey <tromey@redhat.com>
7798 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7799 "show debug varobj".
7801 2014-05-07 Kyle McMartin <kyle@redhat.com>
7803 Pushed by Joel Brobecker <brobecker@adacore.com>.
7804 * aarch64-tdep.c (aarch64_software_single_step): New function.
7805 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7806 with aarch64_software_single_step.
7808 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7812 2014-05-05 Keith Seitz <keiths@redhat.com>
7814 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7815 variable or history value is successfully parsed.
7817 2014-05-05 Yao Qi <yao@codesourcery.com>
7818 Pedro Alves <palves@redhat.com>
7820 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7821 address of blocks that intersects the requested range. Trim
7822 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7824 * ctf.c (ctf_xfer_partial): Likewise.
7826 2014-05-05 Yao Qi <yao@codesourcery.com>
7828 * printcmd.c (display_command): Remove the check to
7829 target_has_execution.
7831 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7833 * ppcobsd-nat.c: Include "obsd-nat.h".
7834 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7836 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7838 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7840 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7841 and 16-bit signed and unsigned arguments. Update comment.
7842 (stap_parse_probe_arguments): Extend code to handle such
7843 arguments. Use warning instead of complaint to notify about
7844 unrecognized bitness.
7846 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7848 PR breakpoints/16889
7849 * stap-probe.c (stap_parse_probe_arguments): Simplify
7850 check for non-prefixed probes (i.e., probes whose
7851 arguments do not start with "N@"). Always set the
7852 argument type to a sane value.
7854 2014-05-01 David Taylor <dtaylor@emc.com>
7856 * remote.c (compare_sections_command): Add -r option to compare
7857 all loadable read-only sections.
7859 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7861 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7862 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7864 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7865 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7866 Remove unused CORE_ADDR argument. Update all callers.
7868 2014-04-29 Pedro Alves <palves@redhat.com>
7870 * remote.c (struct packet_config) <detect>: Extend comment.
7871 (add_packet_config_cmd): Don't set the config's detect or support
7873 (init_all_packet_configs): Also initialize the config's 'detect'
7875 (reset_all_packet_configs_support): New function.
7876 (remote_open_1): Call reset_all_packet_configs_support instead of
7877 init_all_packet_configs.
7878 (_initialize_remote): Initialize all packet configs. Assert that
7879 all packets have an associated command, except a few known
7882 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7884 * dwarf2read.c (read_subrange_type): Handle dynamic
7885 DW_AT_lower_bound attributes.
7887 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7889 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7890 dynamic bounds before computing its upper bound.
7891 (ada_discrete_type_low_bound): Same as above with the lower bound.
7893 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7895 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7896 range types. Adjust the array handling implementation to
7897 take advantage of this change.
7898 (resolve_dynamic_range): New function, mostly extracted from
7899 resolve_dynamic_bounds.
7900 (resolve_dynamic_array): New function, mostly extracted from
7901 resolve_dynamic_bounds.
7902 (resolve_dynamic_bounds): Delete.
7903 (resolve_dynamic_type): Reimplement. Add handling of
7904 TYPE_CODE_RANGE types.
7906 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7908 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7909 handling of parallel ___XA types.
7911 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7913 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7914 unnecessary second call to static_unwrap_type.
7916 2014-04-27 Hui Zhu <hui@codesourcery.com>
7918 * stack.c (print_frame_info): Call do_gdb_disassembly with
7919 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7921 2014-04-26 Doug Evans <xdje42@gmail.com>
7923 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7925 2014-04-25 Pedro Alves <palves@redhat.com>
7928 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7929 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7930 and newline from built string.
7931 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7932 (linux_ptrace_attach_fail_reason): ... this.
7933 * linux-nat.c (linux_nat_attach): Adjust to use
7934 linux_ptrace_attach_fail_reason.
7936 2014-04-25 Pedro Alves <palves@redhat.com>
7938 * remote.c (struct remote_state): Remove multi_process_aware,
7939 non_stop_aware, cond_tracepoints, cond_breakpoints,
7940 breakpoint_commands, fast_tracepoints, static_tracepoints,
7941 install_in_trace, disconnected_tracing,
7942 enable_disable_tracepoints, string_tracing, and
7943 augmented_libraries_svr4_read fields.
7944 (remote_multi_process_p): Move further below in the file.
7945 (struct packet_config): Add comments.
7946 (update_packet_config): Delete function.
7947 (show_packet_config_cmd): Use packet_config_support.
7948 (add_packet_config_cmd): Use NULL as set callback.
7949 (packet_ok): "set remote foo-packet"-style commands no longer
7950 change config->supported -- adjust.
7951 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7952 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7953 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7954 (PACKET_QNonStop, PACKET_multiprocess_feature)
7955 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7956 (PACKET_DisconnectedTracing_feature)
7957 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7958 (set_remote_protocol_packet_cmd): Delete function.
7959 (packet_config_support, packet_support): New functions.
7960 (set_remote_protocol_Z_packet_cmd): Don't call
7961 update_packet_config.
7962 (remote_query_attached, remote_pass_signals)
7963 (remote_program_signals, remote_threads_info)
7964 (remote_threads_extra_info, remote_start_remote): Use
7966 (remote_start_remote): Use packet_config_support and
7968 (init_all_packet_configs): Set all packets to unknown support,
7969 instead of calling update_packet_config.
7970 (remote_check_symbols): Use packet_support.
7971 (remote_supported_packet): Unconditionally set the packet config's
7973 (remote_multi_process_feature, remote_non_stop_feature)
7974 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7975 (remote_breakpoint_commands_feature)
7976 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7977 (remote_install_in_trace_feature)
7978 (remote_disconnected_tracing_feature)
7979 (remote_enable_disable_tracepoint_feature)
7980 (remote_string_tracing_feature)
7981 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7982 (remote_protocol_features): Adjust to use remote_supported_packet
7983 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7984 "ConditionalTracepoints", "ConditionalBreakpoints",
7985 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7986 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7987 "EnableDisableTracepoints", and "tracenz".
7988 (remote_query_supported): Use packet_support.
7989 (remote_open_1): Adjust.
7990 (extended_remote_attach_1): Use packet_support. Switch on the
7991 result of packet_ok instead of checking whether the packet ended
7993 (remote_vcont_resume): Use packet_support.
7994 (remote_resume, remote_stop_ns, fetch_register_using_p)
7995 (remote_prepare_to_store, store_register_using_P)
7996 (check_binary_download, remote_write_bytes): Use packet_support.
7997 (remote_vkill): Use packet_support. Switch on the result of
7998 packet_ok instead of checking whether the packet ended up
8000 (extended_remote_supports_disable_randomization): Use
8002 (extended_remote_run): Switch on the result of packet_ok instead
8003 of checking whether the packet ended up disabled.
8004 (remote_insert_breakpoint, remote_remove_breakpoint)
8005 (remote_insert_watchpoint, remote_remove_watchpoint)
8006 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8008 (remote_search_memory): Use packet_config_support.
8009 (remote_get_thread_local_address, remote_get_tib_address)
8010 (remote_hostio_send_command, remote_can_execute_reverse): Use
8012 (remote_supports_cond_tracepoints)
8013 (remote_supports_cond_breakpoints)
8014 (remote_supports_fast_tracepoints)
8015 (remote_supports_static_tracepoints)
8016 (remote_supports_install_in_trace)
8017 (remote_supports_enable_disable_tracepoint)
8018 (remote_supports_string_tracing)
8019 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8020 the packet config says the feature is enabled or disabled.
8021 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8022 (remote_get_trace_status): Use packet_support.
8023 (remote_set_disconnected_tracing): Adjust to check whether the
8024 feature is enabled with packet_support.
8025 (remote_set_trace_buffer_size, remote_use_agent)
8026 (remote_can_use_agent, remote_supports_btrace): Use
8028 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8029 Use packet_config_support.
8030 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8031 the packet config says the feature is enabled or disabled.
8032 (set_range_stepping): Use packet_support.
8034 2014-04-25 Tom Tromey <tromey@redhat.com>
8036 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8039 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8041 * NEWS: Mention support for C99 variable length arrays.
8043 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8045 * ada-lang.c (standard_exc): Expand introductory comment.
8047 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8048 Walfred Tedeschi <walfred.tedeschi@intel.com>
8050 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8052 (amd64_linux_read_description): Add code to handle AVX512 xstate
8053 mask and return respective tdesc.
8054 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8055 and features/i386/x32-avx512-linux.c.
8056 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8057 (amd64_linux_core_read_description): Add code to handle AVX512
8058 xstate mask and return respective tdesc.
8059 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8060 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8062 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8063 (tdesc_amd64_avx512_linux): New prototype.
8064 (tdesc_x32_avx512_linux): Likewise.
8065 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8066 features/i386/x32-avx512.c.
8067 (amd64_ymm_avx512_names): New register names for pseudo
8069 (amd64_ymmh_avx512_names): New register names for raw registers
8071 (amd64_k_names): New register names for K registers.
8072 (amd64_zmmh_names): New register names for ZMM raw registers.
8073 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8074 (amd64_xmm_avx512_names): New register names for XMM16-31
8076 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8078 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8079 if feature is present.
8080 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8081 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8082 (AMD64_NUM_REGS): Adjust to new number of registers.
8083 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8084 registers supplied via XSTATE by AVX512 registers.
8085 (i386_linux_read_description): Add case for AVX512.
8086 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8087 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8088 (i386_linux_core_read_description): Add case for AVX512.
8089 (i386_linux_init_abi): Install supported register note section
8091 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8093 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8094 registers to be number of zmm7h + 1.
8095 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8096 * i386-tdep.c: Include features/i386/i386-avx512.c.
8097 (i386_zmm_names): Add ZMM pseudo register names array.
8098 (i386_zmmh_names): Add ZMM raw register names array.
8099 (i386_k_names): Add K raw register names array.
8100 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8101 registers. AVX512 has 16 more ZMM registers than there are YMM
8103 (i386_zmmh_regnum_p): Add function to look up register number of
8105 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8106 (i386_k_regnum_p): Likewise for K raw registers.
8107 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8108 registers added by AVX512.
8109 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8110 registers added by AVX512.
8111 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8113 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8114 (i386_pseudo_register_name): Add ZMM pseudo registers.
8115 (i386_zmm_type): Construct and return vector registers type for ZMM
8117 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8118 ZMM0-31 pseudo registers and K registers.
8119 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8120 and YMM16-31 registers from register cache.
8121 (i386_pseudo_register_write): Add code to write K, ZMM and
8123 (i386_register_reggroup_p): Add code to include/exclude AVX512
8124 registers in/from respective register groups.
8125 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8126 registers if feature is present in xcr0.
8127 (i386_gdbarch_init): Add code to initialize AVX512 feature
8128 variables in tdep structure, wire in pseudo registers and call
8129 initialize_tdesc_i386_avx512.
8130 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8132 (i386_regnum): Add AVX512 registers.
8133 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8134 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8135 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8136 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8138 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8139 (i386_ymm_avx512_regnum_p): Likewise.
8140 (i386_k_regnum_p): Likewise.
8141 (i386_zmm_regnum_p): Likewise.
8142 (i386_zmmh_regnum_p): Likewise.
8143 * i387-tdep.c : Update year in copyright notice.
8144 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8146 (XSAVE_YMM_AVX512_ADDR): New macro.
8147 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8149 (XSAVE_XMM_AVX512_ADDR): New macro.
8150 (xsave_avx512_k_offset): New table for K register offsets in
8152 (XSAVE_AVX512_K_ADDR): New macro.
8153 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8155 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8156 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8158 (i387_collect_xsave): Add code to collect AVX512 registers from
8160 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8161 of XMM16-31 registers.
8162 (I387_NUM_K_REGS): New define for number of K registers.
8163 (I387_K0_REGNUM): New define for K0 register number.
8164 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8165 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8166 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8168 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8169 (I387_XMM16_REGNUM): New define for XMM16 register number.
8170 (I387_YMM0_REGNUM): New define for YMM0 register number.
8171 (I387_KEND_REGNUM): New define for last K register number.
8172 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8173 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8175 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8177 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8179 * features/Makefile: Add AVX512 related files.
8180 * features/i386/32bit-avx512.xml: New file.
8181 * features/i386/64bit-avx512.xml: Likewise.
8182 * features/i386/amd64-avx512-linux.c: Likewise.
8183 * features/i386/amd64-avx512-linux.xml: Likewise.
8184 * features/i386/amd64-avx512.c: Likewise.
8185 * features/i386/amd64-avx512.xml: Likewise.
8186 * features/i386/i386-avx512-linux.c: Likewise.
8187 * features/i386/i386-avx512-linux.xml: Likewise.
8188 * features/i386/i386-avx512.c: Likewise.
8189 * features/i386/i386-avx512.xml: Likewise.
8190 * features/i386/x32-avx512-linux.c: Likewise.
8191 * features/i386/x32-avx512-linux.xml: Likewise.
8192 * features/i386/x32-avx512.c: Likewise.
8193 * features/i386/x32-avx512.xml: Likewise.
8194 * regformats/i386/amd64-avx512-linux.dat: New file.
8195 * regformats/i386/amd64-avx512.dat: Likewise.
8196 * regformats/i386/i386-avx512-linux.dat: Likewise.
8197 * regformats/i386/i386-avx512.dat: Likewise.
8198 * regformats/i386/x32-avx512-linux.dat: Likewise.
8199 * regformats/i386/x32-avx512.dat: Likewise.
8200 * NEWS: Add note about new support for AVX512.
8203 2014-04-23 Pedro Alves <palves@redhat.com>
8205 * breakpoint.c (insert_bp_location): Tolerate errors if the
8206 breakpoint is set in a user-loaded objfile.
8207 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8208 location is marked shlib_disabled. If the breakpoint is set in a
8209 user-loaded objfile is a GDB-side memory breakpoint, validate it
8210 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8211 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8213 * mem-break.c (memory_validate_breakpoint): New function.
8214 * objfiles.c (userloaded_objfile_contains_address_p): New
8216 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8217 * target.h (memory_validate_breakpoint): New declaration.
8219 2014-04-23 Pedro Alves <palves@redhat.com>
8221 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8222 the breakpoint is set in a shared library, only suppress
8223 errors for software breakpoints, not hardware breakpoints.
8225 2014-04-22 Pedro Alves <palves@redhat.com>
8227 * infrun.c (schedlock_applies): New function, factored out from
8228 find_thread_needs_step_over.
8229 (find_thread_needs_step_over): Use it.
8230 (switch_back_to_stepped_thread): Always clear trap_expected if the
8231 step over is finished. Return early if scheduler locking applies.
8232 Look for the stepping thread and a potential step-over thread with
8234 (currently_stepping_or_nexting_callback): Delete.
8236 2014-04-22 Nick Clifton <nickc@redhat.com>
8238 * NEWS: Mention that ARM sim now supports tracing.
8240 2014-04-22 Yao Qi <yao@codesourcery.com>
8242 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8244 * tracefile.c (tracefile_fetch_registers): ... it. New
8246 * tracefile.h (tracefile_fetch_registers): Declare.
8247 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8248 tracefile_fetch_registers.
8250 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8253 * windows-nat.c (thread_rec): Don't display a warning when
8254 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8255 fails for any reason, set th->suspended to -1, so that we don't
8256 try to resume such a thread. Also, don't return NULL in these
8257 cases, to avoid completely ruin the session due to "PC register is
8258 not available" error.
8259 (do_windows_fetch_inferior_registers): Check errors in
8260 GetThreadContext call.
8261 (windows_continue): Accept an additional argument KILLED; if not
8262 zero, ignore errors in the SetThreadContext call, since the
8263 inferior was killed and is shutting down.
8264 (windows_resume, get_windows_debug_event)
8265 (windows_create_inferior, windows_mourn_inferior)
8266 (windows_kill_inferior): All callers of windows_continue changed
8267 to adjust to its new calling sequence.
8269 2014-04-19 Yao Qi <yao@codesourcery.com>
8271 * ctf.c (ctf_open): Call post_create_inferior.
8273 2014-04-19 Yao Qi <yao@codesourcery.com>
8275 * ctf.c (handle_id): New static variable.
8276 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8277 value. Get the declaration of event "register" and get length
8278 of field "contents".
8280 2014-04-19 Yao Qi <yao@codesourcery.com>
8282 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8284 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8286 * valops.c (oload_method_static): Remove unnecessary argument
8287 METHOD. Update all callers.
8289 2014-04-18 Pedro alves <palves@redhat.com>
8290 Tom Tromey <tromey@redhat.com>
8293 * frame.c (get_prev_frame_1): Rename to ...
8294 (get_prev_frame_always): ... this, and make extern. Adjust.
8295 (skip_artificial_frames): Use get_prev_frame_always.
8296 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8297 (get_frame_unwind_stop_reason): Adjust to rename.
8298 * frame.h (get_prev_frame_always): Declare.
8299 * inline-frame.c: Include frame.h.
8300 (inline_frame_this_id): Use get_prev_frame_always.
8302 2014-04-18 Tristan Gingold <gingold@adacore.com>
8304 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8305 code by using bfd_mach_o_get_base_address.
8307 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8309 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8310 (spu_ax_pseudo_register_collect): New function.
8311 (spu_ax_pseudo_register_push_stack): Likewise.
8312 (spu_dwarf_reg_to_regnum): Likewise.
8313 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8315 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8317 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8318 Replace FRAME argument with FRAME_ID.
8319 * gdbarch.c, gdbarch.h: Regenerate.
8320 * findvar.c (default_value_from_register): Add GDBARCH argument;
8321 replace FRAME by FRAME_ID. No longer call get_frame_id.
8322 (value_from_register): Update call to gdbarch_value_from_register.
8323 * value.h (default_value_from_register): Update prototype.
8324 * s390-linux-tdep.c (s390_value_from_register): Update interface
8325 and call to default_value_from_register.
8326 * spu-tdep.c (spu_value_from_register): Likewise.
8328 * findvar.c (address_from_register): Remove TYPE argument.
8329 Do not call value_from_register; use gdbarch_value_from_register
8330 with null_frame_id instead.
8331 * value.h (address_from_register): Update prototype.
8332 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8333 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8334 address_from_register interface change.
8336 2014-04-17 Yao Qi <yao@codesourcery.com>
8338 * gdbtypes.h: Update comments to link to types and macros'
8341 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8343 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8345 2014-04-16 Keith Seitz <keiths@redhat.com>
8348 * dwarf2read.c (skip_one_die): Check that all relative-offset
8349 sibling DIEs fall within range of the current reader's buffer.
8350 (read_partial_die): Likewise.
8352 2014-04-16 Keith Seitz <keiths@redhat.com>
8355 * cp-namespace.c (lookup_symbol_file): If the type name of
8356 `this' is NULL, return immediately.
8358 2014-04-14 Keith Seitz <keiths@redhat.com>
8361 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8362 from symbol_matches_domain in symtab.c. All local callers
8363 of symbol_matches_domain updated.
8364 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8365 search STRUCT_DOMAIN.
8366 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8367 independently. standard_lookup will do that automatically.
8368 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8369 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8370 (cp_lookup_symbol_in_namespace): Likewise.
8371 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8372 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8373 may return a STRUCT_DOMAIN match.
8374 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8375 * cp-support.c: Include language.h.
8376 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8378 * psymtab.c (match_partial_symbol): Compare the requested
8379 domain with the symbol's domain directly.
8380 (lookup_partial_symbol): Likewise.
8381 * symtab.c (lookup_symbol_in_language): Explain when/why
8382 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8383 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8384 appropriate languages.
8385 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8386 and moved to ada-lang.c
8387 (lookup_block_symbol): Explain that this function only returns
8388 symbol matching the requested DOMAIN.
8389 Compare the requested domain with the symbol's domain directly.
8390 (iterate_over_symbols): Compare the requested domain with the
8391 symbol's domain directly.
8392 * symtab.h (symbol_matches_domain): Remove.
8394 2014-04-14 Tom Tromey <tromey@redhat.com>
8397 * c-exp.y (type_aggregate_p): New function.
8398 (qualified_name, classify_inner_name): Use it.
8399 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8400 and TYPE_TARGET_TYPE of an enum type.
8401 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8403 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8404 handle TYPE_DECLARED_CLASS.
8405 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8407 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8408 * valops.c (enum_constant_from_type): New function.
8409 (value_aggregate_elt): Use it.
8410 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8413 2014-04-14 Tom Tromey <tromey@redhat.com>
8415 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8416 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8418 * value.h (value_aggregate_elt): Update.
8420 2014-04-14 Tom Tromey <tromey@redhat.com>
8422 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8424 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8426 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8427 (evaluate_subexp_standard): Pass noside argument.
8428 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8429 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8430 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8431 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8432 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8434 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8436 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8437 points to a constant blob.
8439 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8441 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8442 property and store it as the high bound and flag the range accordingly.
8443 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8444 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8445 * gdbtypes.h (enum range_flags): New enum.
8446 (struct range_bounds): Add flags member.
8448 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8450 * c-typeprint.c (c_type_print_varspec_suffix): Added
8451 check for not yet resolved high bound. If unresolved, print
8452 "variable length" string to the console instead of random
8455 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8457 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8459 (ada_template_to_fixed_record_type_1): Likewise.
8460 (ada_to_fixed_type_1): Likewise.
8461 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8462 (cp_print_value): Likewise.
8463 * d-valprint.c (dynamic_array_type): Likewise.
8464 * findvar.c (address_of_variable): Likewise.
8465 * jv-valprint.c (java_value_print): Likewise.
8466 * valops.c (value_ind): Likewise.
8467 * value.c (coerce_ref): Likewise.
8469 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8471 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8472 value and retrieve the dynamic type size.
8474 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8476 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8477 passed to sizeof is dynamic evaluate the argument to compute the length.
8479 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8480 Joel Brobecker <brobecker@adacore.com>
8482 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8483 (dwarf2_evaluate_property): New function.
8484 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8485 * dwarf2read.c (attr_to_dynamic_prop): New function.
8486 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8488 * gdbtypes.c: Include dwarf2loc.h.
8489 (is_dynamic_type): New function.
8490 (resolve_dynamic_type): New function.
8491 (resolve_dynamic_bounds): New function.
8492 (get_type_length): New function.
8493 (check_typedef): Use get_type_length to compute type length.
8494 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8495 (TYPE_LOW_BOUND_KIND): New macro.
8496 (is_dynamic_type): New function prototype.
8497 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8498 to resolve dynamic properties of the type. Update comment.
8499 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8501 2014-04-14 Richard Henderson <rth@redhat.com>
8503 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8505 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8506 Doug Evans <xdje42@gmail.com>
8508 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8509 dereference TYPE_CODE_REF values.
8511 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8513 Revert the following changes due to regressions:
8515 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8516 (dwarf2_evaluate_property): New function.
8517 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8518 * dwarf2read.c (attr_to_dynamic_prop): New function.
8519 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8521 * gdbtypes.c: Include dwarf2loc.h.
8522 (is_dynamic_type): New function.
8523 (resolve_dynamic_type): New function.
8524 (resolve_dynamic_bounds): New function.
8525 (get_type_length): New function.
8526 (check_typedef): Use get_type_length to compute type length.
8527 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8528 (TYPE_LOW_BOUND_KIND): New macro.
8529 (is_dynamic_type): New function prototype.
8530 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8531 to resolve dynamic properties of the type. Update comment.
8532 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8534 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8535 passed to sizeof is dynamic evaluate the argument to compute the length.
8537 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8538 value and retrieve the dynamic type size.
8540 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8541 (ada_template_to_fixed_record_type_1): Likewise.
8542 (ada_to_fixed_type_1): Likewise.
8543 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8544 (cp_print_value): Likewise.
8545 * d-valprint.c (dynamic_array_type): Likewise.
8546 * eval.c (evaluate_subexp_with_coercion): Likewise.
8547 * findvar.c (address_of_variable): Likewise.
8548 * jv-valprint.c (java_value_print): Likewise.
8549 * valops.c (value_ind): Likewise.
8550 * value.c (coerce_ref): Likewise.
8552 * c-typeprint.c (c_type_print_varspec_suffix): Added
8553 check for not yet resolved high bound. If unresolved, print
8554 "variable length" string to the console instead of random
8557 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8558 property and store it as the high bound and flag the range accordingly.
8559 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8560 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8561 * gdbtypes.h (enum range_flags): New enum.
8562 (struct range_bounds): Add flags member.
8564 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8565 points to a constant blob.
8567 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8568 (evaluate_subexp_standard): Pass noside argument.
8569 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8570 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8571 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8572 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8573 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8575 2014-04-11 Keith Seitz <keiths@redhat.com>
8578 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8579 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8582 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8584 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8585 (evaluate_subexp_standard): Pass noside argument.
8586 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8587 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8588 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8589 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8590 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8592 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8594 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8595 points to a constant blob.
8597 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8599 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8600 property and store it as the high bound and flag the range accordingly.
8601 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8602 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8603 * gdbtypes.h (enum range_flags): New enum.
8604 (struct range_bounds): Add flags member.
8606 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8608 * c-typeprint.c (c_type_print_varspec_suffix): Added
8609 check for not yet resolved high bound. If unresolved, print
8610 "variable length" string to the console instead of random
8613 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8615 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8616 (ada_template_to_fixed_record_type_1): Likewise.
8617 (ada_to_fixed_type_1): Likewise.
8618 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8619 (cp_print_value): Likewise.
8620 * d-valprint.c (dynamic_array_type): Likewise.
8621 * eval.c (evaluate_subexp_with_coercion): Likewise.
8622 * findvar.c (address_of_variable): Likewise.
8623 * jv-valprint.c (java_value_print): Likewise.
8624 * valops.c (value_ind): Likewise.
8625 * value.c (coerce_ref): Likewise.
8627 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8629 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8630 value and retrieve the dynamic type size.
8632 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8634 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8635 passed to sizeof is dynamic evaluate the argument to compute the length.
8637 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8639 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8640 (dwarf2_evaluate_property): New function.
8641 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8642 * dwarf2read.c (attr_to_dynamic_prop): New function.
8643 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8645 * gdbtypes.c: Include dwarf2loc.h.
8646 (is_dynamic_type): New function.
8647 (resolve_dynamic_type): New function.
8648 (resolve_dynamic_bounds): New function.
8649 (get_type_length): New function.
8650 (check_typedef): Use get_type_length to compute type length.
8651 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8652 (TYPE_LOW_BOUND_KIND): New macro.
8653 (is_dynamic_type): New function prototype.
8654 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8655 to resolve dynamic properties of the type. Update comment.
8656 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8658 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8660 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8661 declaring high/low bounds and change uses accordingly. Call
8662 create_range_type instead of create_static_range_type.
8663 * gdbtypes.c (create_range_type): New function.
8664 (create_range_type): Convert bounds into struct bound_prop and pass
8665 them to create_range_type.
8666 * gdbtypes.h (struct bound_prop): New struct.
8667 (create_range_type): New function prototype.
8668 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8669 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8670 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8672 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8674 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8676 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8677 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8678 * ada-lang.c: All uses of create_range_type updated.
8679 * coffread.c: All uses of create_range_type updated.
8680 * dwarf2read.c: All uses of create_range_type updated.
8681 * f-exp.y: All uses of create_range_type updated.
8682 * m2-valprint.c: All uses of create_range_type updated.
8683 * mdebugread.c: All uses of create_range_type updated.
8684 * stabsread.c: All uses of create_range_type updated.
8685 * valops.c: All uses of create_range_type updated.
8686 * valprint.c: All uses of create_range_type updated.
8688 2014-04-10 Pedro Alves <palves@redhat.com>
8690 * breakpoint.c (single_step_breakpoints)
8691 (single_step_gdbarch): Move up in the file.
8692 (one_breakpoint_xfer_memory): New function, factored out from ...
8693 (breakpoint_xfer_memory): ... here. Also process single-step
8696 2014-04-09 Tristan Gingold <gingold@adacore.com>
8698 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8700 (darwin_decode_exception_message): Free port only after use.
8702 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8704 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8705 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8706 when setting the size of call_length.
8708 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8710 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8711 dereference TYPE_CODE_REF values.
8713 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8715 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8716 end of warning message.
8718 2014-04-03 Doug Evans <dje@google.com>
8720 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8721 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8723 2014-04-02 Alan Modra <amodra@gmail.com>
8725 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8726 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8727 (struct symbol_file_add_from_memory_args): Add size field.
8728 (find_vdso_size): New function.
8729 (add_vsyscall_page): Attempt to find vdso size.
8731 2014-04-01 Doug Evans <dje@google.com>
8733 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8735 2014-04-01 Tristan Gingold <gingold@adacore.com>
8737 * darwin-nat.c (darwin_encode_reply): Add prototype.
8738 (darwin_decode_exception_message): Reply to unknown inferiors.
8739 (darwin_decode_message): Handle message by id. Ignore message
8740 to unknown inferior.
8741 (darwin_wait): Discard unknown messages, add debug trace.
8743 2014-03-31 Doug Evans <dje@google.com>
8745 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8748 2014-03-31 Doug Evans <dje@google.com>
8750 New option "set print symbol-loading".
8752 * solib.c (solib_read_symbols): Only print symbol loading messages
8754 (solib_add): If symbol loading is in "brief" mode, notify user
8755 symbols are being loaded.
8756 (reload_shared_libraries_1): Ditto.
8757 * symfile.c (print_symbol_loading_off): New static global.
8758 (print_symbol_loading_brief): New static global.
8759 (print_symbol_loading_full): New static global.
8760 (print_symbol_loading_enums): New static global.
8761 (print_symbol_loading): New static global.
8762 (print_symbol_loading_p): New function.
8763 (symbol_file_add_with_addrs): Only print symbol loading messages
8765 (_initialize_symfile): Register "print symbol-loading" set/show
8767 * symfile.h (print_symbol_loading_p): Declare.
8769 2014-03-30 Doug Evans <xdje42@gmail.com>
8771 * infrun.c (set_last_target_status): New function.
8772 (handle_inferior_event): Call it.
8774 2014-03-30 Doug Evans <xdje42@gmail.com>
8776 * inferior.h (enum stop_kind): Improve comment.
8778 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8780 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8781 a reference, strip the reference layer before calling
8782 the lang_ops value_has_mutated callback.
8784 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8786 Remove some globals from our parser.
8787 * language.c (unk_lang_parser): Add "struct parser_state"
8789 * language.h (struct language_defn) <la_parser>: Likewise.
8790 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8791 (initialize_expout): Add "struct parser_state" argument.
8792 Rewrite function to use the parser state.
8793 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8794 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8795 write_exp_elt_longcst, write_exp_elt_dblcst,
8796 write_exp_elt_decfloatcst, write_exp_elt_type,
8797 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8798 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8799 write_dollar_variable): Likewise.
8800 (parse_exp_in_context_1): Use parser state.
8801 (insert_type_address_space): Add "struct parser_state" argument.
8803 (increase_expout_size): New function.
8804 * parser-defs.h: Forward declare "struct language_defn" and
8805 "struct parser_state".
8806 (expout, expout_size, expout_ptr): Remove extern declarations.
8807 (parse_gdbarch, parse_language): Rewrite macro declarations to
8808 accept the parser state.
8809 (struct parser_state): New struct.
8810 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8811 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8812 write_exp_elt_decfloatcst, write_exp_elt_type,
8813 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8814 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8815 write_exp_msymbol, write_dollar_variable,
8816 mark_struct_expression, insert_type_address_space): Add "struct
8817 parser_state" argument.
8818 (increase_expout_size): New function.
8819 * utils.c (do_clear_parser_state): New function.
8820 (make_cleanup_clear_parser_state): Likewise.
8821 * utils.h (make_cleanup_clear_parser_state): New function
8823 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8824 Update calls to write_exp* in order to pass the parser state.
8825 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8826 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8827 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8828 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8829 * stap-probe.c (stap_parse_register_operand): Likewise.
8830 (stap_parse_single_operand): Likewise.
8831 (stap_parse_argument_1): Likewise.
8832 (stap_parse_argument): Use parser state.
8833 * stap-probe.h: Include "parser-defs.h".
8834 (struct stap_parse_info) <pstate>: New field.
8835 * c-exp.y (parse_type): Rewrite to use parser state.
8836 (yyparse): Redefine to c_parse_internal.
8837 (pstate): New global variable.
8838 (parse_number): Add "struct parser_state" argument.
8839 (write_destructor_name): Likewise.
8840 (type_exp): Update calls to write_exp* and similars in order to
8842 (exp1, exp, variable, qualified_name, space_identifier,
8843 typename, typebase): Likewise.
8844 (write_destructor_name, parse_number, lex_one_token,
8845 classify_name, classify_inner_name, c_parse): Add "struct
8846 parser_state" argument. Update function to use parser state.
8847 * c-lang.h: Forward declare "struct parser_state".
8848 (c_parse): Add "struct parser_state" argument.
8849 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8850 (yyparse): Redefine macro to ada_parse_internal.
8851 (pstate): New variable.
8852 (write_int, write_object_renaming, write_var_or_type,
8853 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8854 type_int, type_long, type_long_long, type_float, type_double,
8855 type_long_double, type_char, type_boolean, type_system_address):
8856 Add "struct parser_state" argument.
8857 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8858 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8859 var_or_type, aggregate, aggregate_component_list,
8860 positional_list, others, component_group,
8861 component_associations): Update calls to write_exp* and similar
8862 functions in order to use parser state.
8863 (ada_parse, write_var_from_sym, write_int,
8864 write_exp_op_with_string, write_object_renaming,
8865 find_primitive_type, write_selectors, write_ambiguous_var,
8866 write_var_or_type, write_name_assoc, type_int, type_long,
8867 type_long_long, type_float, type_double, type_long_double,
8868 type_char, type_boolean, type_system_address): Add "struct
8869 parser_state" argument. Adjust function to use parser state.
8870 * ada-lang.c (parse): Likewise.
8871 * ada-lang.h: Forward declare "struct parser_state".
8872 (ada_parse): Add "struct parser_state" argument.
8873 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8874 calls to both functions.
8875 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8877 (yyparse): Redefine macro to f_parse_internal.
8878 (pstate): New variable.
8879 (parse_number): Add "struct parser_state" argument.
8880 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8881 and similars in order to use parser state.
8882 (parse_number): Adjust code to use parser state.
8884 (f_parse): New function.
8885 * f-lang.h: Forward declare "struct parser_state".
8886 (f_parse): Add "struct parser_state" argument.
8887 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8889 (yyparse): Redefine macro for java_parse_internal.
8890 (pstate): New variable.
8891 (push_expression_name, push_expression_name, insert_exp): Add
8892 "struct parser_state" argument.
8893 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8894 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8895 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8896 PostIncrementExpression, PostDecrementExpression,
8897 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8898 UnaryExpressionNotPlusMinus, CastExpression,
8899 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8900 RelationalExpression, EqualityExpression, AndExpression,
8901 ExclusiveOrExpression, InclusiveOrExpression,
8902 ConditionalAndExpression, ConditionalOrExpression,
8903 ConditionalExpression, Assignment, LeftHandSide): Update
8904 calls to write_exp* and similars in order to use parser state.
8905 (parse_number): Ajust code to use parser state.
8907 (java_parse): New function.
8908 (push_variable): Add "struct parser_state" argument. Adjust
8909 code to user parser state.
8910 (push_fieldnames, push_qualified_expression_name,
8911 push_expression_name, insert_exp): Likewise.
8912 * jv-lang.h: Forward declare "struct parser_state".
8913 (java_parse): Add "struct parser_state" argument.
8914 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8916 (yyparse): Redefine macro to m2_parse_internal.
8917 (pstate): New variable.
8918 (type_exp, exp, fblock, variable, type): Update calls to
8919 write_exp* and similars to use parser state.
8921 (m2_parse): New function.
8922 * m2-lang.h: Forward declare "struct parser_state".
8923 (m2_parse): Add "struct parser_state" argument.
8924 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8925 * objc-lang.h: Forward declare "struct parser_state".
8926 (end_msglist): Add "struct parser_state" argument.
8927 * p-exp.y (parse_type): Rewrite macro to use parser state.
8928 (yyparse): Redefine macro to pascal_parse_internal.
8929 (pstate): New variable.
8930 (parse_number): Add "struct parser_state" argument.
8931 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8932 write_exp* and similars in order to use parser state.
8933 (parse_number, yylex): Adjust code to use parser state.
8934 (pascal_parse): New function.
8935 * p-lang.h: Forward declare "struct parser_state".
8936 (pascal_parse): Add "struct parser_state" argument.
8937 * go-exp.y (parse_type): Rewrite macro to use parser state.
8938 (yyparse): Redefine macro to go_parse_internal.
8939 (pstate): New variable.
8940 (parse_number): Add "struct parser_state" argument.
8941 (type_exp, exp1, exp, variable, type): Update calls to
8942 write_exp* and similars in order to use parser state.
8943 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8944 to use parser state.
8945 (go_parse): Likewise.
8946 * go-lang.h: Forward declare "struct parser_state".
8947 (go_parse): Add "struct parser_state" argument.
8949 2014-03-27 Doug Evans <dje@google.com>
8951 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8953 2014-03-27 Doug Evans <dje@google.com>
8955 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8956 Remove argument abbrev_section. All callers updated.
8958 2014-03-27 Doug Evans <dje@google.com>
8960 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8961 addr_base, ranges_base.
8963 2014-03-26 Keith Seitz <keiths@redhat.com>
8965 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8966 types, not VAR_DOMAIN.
8968 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8970 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8972 * features/nios2-linux.c: Regenerated.
8973 * features/nios2.c: Regenerated.
8975 2014-03-25 Pedro Alves <palves@redhat.com>
8977 * cli/cli-script.c (script_from_file): Force the interpreter to
8980 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8982 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8983 small stack allocation.
8985 2014-03-24 Tristan Gingold <gingold@adacore.com>
8987 * darwin-nat.c (exc_server): Remove unused prototype.
8988 (darwin_dump_message): Correctly display data on x86_64.
8989 (darwin_encode_reply): Fix style.
8990 Add comments and fix indentation.
8992 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8994 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8996 2014-03-22 Doug Evans <xdje42@gmail.com>
8998 * infcmd.c: Whitespace fixes.
8999 (interrupt_command): Merge two function comments into one.
9001 2014-03-22 Doug Evans <xdje42@gmail.com>
9003 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9006 2014-03-22 Yao Qi <yao@codesourcery.com>
9008 * remote.c (target_read_live_memory): Remove.
9009 (memory_xfer_live_readonly_partial): Rename it to
9010 remote_xfer_live_readonly_partial. Remove argument 'object'.
9011 All callers updated. Call remote_read_bytes_1
9012 instead of target_read_live_memory.
9013 * tracepoint.c (set_traceframe_number): Remove.
9014 (make_cleanup_restore_traceframe_number): Likewise .
9015 * tracepoint.h (set_traceframe_number): Remove declaration.
9016 (make_cleanup_restore_traceframe_number): Likewise.
9018 2014-03-22 Yao Qi <yao@codesourcery.com>
9020 * remote.c (remote_read_bytes): Move code on reading from the
9022 (remote_read_bytes_1): ... here. New function.
9024 2014-03-22 Yao Qi <yao@codesourcery.com>
9026 * ctf.c (ctf_xfer_partial): Check the return value of
9027 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9028 return TARGET_XFER_UNAVAILABLE.
9029 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9030 * target.c (target_read_live_memory): Move it to remote.c.
9031 (memory_xfer_live_readonly_partial): Likewise.
9032 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9033 * remote.c (target_read_live_memory): Moved from target.c.
9034 (memory_xfer_live_readonly_partial): Likewise.
9035 (remote_read_bytes): Factored out from
9036 memory_xfer_partial_1.
9038 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9040 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9043 2014-03-21 Pedro Alves <palves@redhat.com>
9045 * infrun.c (normal_stop): Extend comment.
9047 2014-03-21 Hui Zhu <hui@codesourcery.com>
9048 Pedro Alves <palves@redhat.com>
9050 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9052 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9053 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9054 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9056 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9058 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9059 `z' formatted output modifier.
9061 2014-03-20 Tom Tromey <tromey@redhat.com>
9062 Sergio Durigan Junior <sergiodj@redhat.com>
9064 * probe.c (parse_probes): Turn assert into an ordinary error.
9065 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9066 exceptions when parsing probes. Rearrange the code for clarity.
9068 2014-03-20 Tom Tromey <tromey@redhat.com>
9071 * top.c (execute_command): Only dispatch events if the command
9074 2014-03-20 Tom Tromey <tromey@redhat.com>
9077 * infcall.c: Include event-top.h.
9078 (run_inferior_call): Call async_disable_stdin if needed.
9080 2014-03-20 Pedro Alves <palves@redhat.com>
9082 * infrun.c (prepare_to_proceed): Delete.
9083 (thread_still_needs_step_over): New function.
9084 (find_thread_needs_step_over): New function.
9085 (proceed): If the current thread needs a step-over, set its
9086 steping_over_breakpoint flag. Adjust to use
9087 find_thread_needs_step_over instead of prepare_to_proceed.
9088 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9089 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9091 (switch_back_to_stepped_thread): Step over breakpoints of all
9092 threads not the stepping thread, before switching back to the
9095 2014-03-20 Pedro Alves <palves@redhat.com>
9097 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9099 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9100 * infrun.c (saved_singlestep_ptid)
9101 (stepping_past_singlestep_breakpoint): Delete.
9102 (resume): Remove stepping_past_singlestep_breakpoint handling.
9103 (proceed): Store the prev_pc of the stepping thread too.
9104 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9106 (enum infwait_states): Delete infwait_thread_hop_state.
9107 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9109 (handle_inferior_event): Adjust.
9110 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9111 handling and the thread-hop code. Before removing single-step
9112 breakpoints, check whether the thread hit a single-step breakpoint
9113 of another thread. If it did, the trap is not a random signal.
9114 (switch_back_to_stepped_thread): If the event thread hit a
9115 single-step breakpoint, unblock it before switching to the
9116 stepping thread. Handle the case of the stepped thread having
9118 (keep_going): Handle the case of the current thread moving past a
9119 single-step breakpoint.
9121 2014-03-20 Pedro Alves <palves@redhat.com>
9124 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9125 are being stepped over.
9126 (breakpoint_address_match): Make extern.
9127 * breakpoint.h (breakpoint_address_match): New declaration.
9128 * inferior.h (stepping_past_instruction_at): New declaration.
9129 * infrun.c (struct step_over_info): New type.
9130 (step_over_info): New global.
9131 (set_step_over_info, clear_step_over_info)
9132 (stepping_past_instruction_at): New functions.
9133 (handle_inferior_event): Clear the step-over info when
9134 trap_expected is cleared.
9135 (resume): Remove now stale comment.
9136 (clear_proceed_status): Clear step-over info.
9137 (proceed): Adjust step-over handling to set or clear the step-over
9138 info instead of removing all breakpoints.
9139 (handle_signal_stop): When setting up a thread-hop, don't remove
9141 (stop_stepping): Clear step-over info.
9142 (keep_going): Adjust step-over handling to set or clear step-over
9143 info and then always inserting breakpoints, instead of removing
9144 all breakpoints when stepping over one.
9146 2014-03-20 Pedro Alves <palves@redhat.com>
9148 * infrun.c (previous_inferior_ptid): Adjust comment.
9149 (deferred_step_ptid): Delete.
9150 (infrun_thread_ptid_changed, prepare_to_proceed)
9151 (init_wait_for_inferior): Adjust.
9152 (handle_signal_stop): Delete deferred_step_ptid handling.
9154 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9157 * defs.h (sync_quit_force_run): New declaration.
9158 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9159 * event-top.c (async_sigterm_handler): New declaration.
9160 (async_sigterm_token): New variable.
9161 (async_init_signals): Create also async_sigterm_token.
9162 (async_sigterm_handler): New function.
9163 (sync_quit_force_run): New variable.
9164 (handle_sigterm): Replace quit_force call by other calls.
9165 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9167 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9169 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9170 offset into SPE pseudo registers.
9172 2014-03-18 Pedro Alves <palves@redhat.com>
9175 * inferior.h (print_stop_event): Declare.
9176 * infrun.c (print_stop_event): New, factored out from ...
9177 (normal_stop): ... this.
9178 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9179 of bpstat_print/print_stack_frame.
9181 2014-03-17 Tom Tromey <tromey@redhat.com>
9183 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9185 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9187 * ada-lang.c (decode_constrained_packed_array): Perform a
9188 minimal coercion for reference with coerce_ref instead of
9191 2014-03-17 Tristan Gingold <gingold@adacore.com>
9193 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9194 (darwin_solib_create_inferior_hook): Emit a warning if version
9197 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9199 * python/py-value.c (get_field_flag): Cast flag_name argument to
9200 PyObject_GetAttrString to support Python 2.4.
9202 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9204 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9205 (Global Maintainers): Remove Jan Kratochvil.
9207 2014-03-14 Pedro Alves <palves@redhat.com>
9209 * inferior.h (terminal_ours_for_output): Rename to ...
9210 (child_terminal_ours_for_output): ... this.
9211 (terminal_save_ours): Rename to ...
9212 (child_terminal_save_ours): ... this.
9213 (terminal_ours): Rename to ...
9214 (child_terminal_ours): ... this.
9215 (terminal_inferior): Rename to ...
9216 (child_terminal_inferior): ... this.
9217 (terminal_init_inferior): Rename to ...
9218 (child_terminal_init_inferior): ... this.
9219 (terminal_init_inferior_with_pgrp): Rename to ...
9220 (child_terminal_init_inferior_with_pgrp): ... this.
9221 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9222 (child_terminal_init_with_pgrp): ... this.
9223 (terminal_save_ours): Rename to ...
9224 (child_terminal_save_ours): ... this.
9225 (terminal_init_inferior): Rename to ...
9226 (child_terminal_init): ... this. Adjust.
9227 (terminal_inferior): Rename to ...
9228 (child_terminal_inferior): ... this.
9229 (terminal_ours_for_output): Rename to ...
9230 (child_terminal_ours_for_output): ... this. Adjust.
9231 (terminal_ours): Rename to ...
9232 (child_terminal_ours): ... this.
9233 (terminal_ours_1): Rename to ...
9234 (child_terminal_ours_1): ... this. Adjust.
9235 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9236 * windows-nat.c (do_initial_windows_stuff): Adjust.
9237 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9238 (gnu_terminal_init): ... this. Adjust.
9239 (gnu_target): Adjust.
9240 * inf-child.c (inf_child_target): Adjust.
9242 2014-03-13 Doug Evans <xdje42@gmail.com>
9245 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9248 2014-03-13 Doug Evans <xdje42@gmail.com>
9250 * value.c (record_latest_value): Call release_value_or_incref
9251 instead of release_value.
9253 2014-03-13 Pedro Alves <palves@redhat.com>
9255 * procfs.c (procfs_target): Don't override to_shortname,
9256 to_longname or to_doc.
9258 2014-03-13 Pedro Alves <palves@redhat.com>
9260 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9261 Unix in user visible strings.
9263 2014-03-12 Stan Shebs <stan@codesourcery.com>
9265 * gdbtypes.h: Annotate comments for Doxygen, add a page
9266 block comment with some general info.
9268 2014-03-12 Pedro Alves <palves@redhat.com>
9270 * infcmd.c (prepare_execution_command): New function, factored out
9271 from several execution commands.
9272 (run_command_1, continue_command, step_1, jump_command)
9273 (signal_command, until_command, advance_command, finish_command)
9274 (attach_command): Use prepare_execution_command.
9276 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9278 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9281 (struct arm_linux_thread_points): Removed.
9282 (struct arm_linux_process_info): New.
9283 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9284 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9285 (arm_linux_find_breakpoints_by_tid): Removed.
9286 (struct arch_lwp_info): New.
9287 (arm_linux_find_process_pid): New functions.
9288 (arm_linux_add_process): New functions.
9289 (arm_linux_process_info_get): New functions.
9290 (arm_linux_forget_process): New function.
9291 (arm_linux_get_debug_reg_state): New function.
9292 (struct update_registers_data): New.
9293 (update_registers_callback): New function.
9294 (arm_linux_insert_hw_breakpoint1): Updated.
9295 (arm_linux_remove_hw_breakpoint1): Updated.
9296 (arm_linux_insert_hw_breakpoint): Updated.
9297 (arm_linux_remove_hw_breakpoint): Updated.
9298 (arm_linux_insert_watchpoint): Updated.
9299 (arm_linux_remove_watchpoint): Updated.
9300 (arm_linux_new_thread): Updated.
9301 (arm_linux_prepare_to_resume): New function.
9302 (arm_linux_new_fork): New function.
9303 (_initialize_arm_linux_nat): Updated.
9305 2014-03-12 Pedro Alves <palves@redhat.com>
9307 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9309 2014-03-12 Tom Tromey <tromey@redhat.com>
9311 * inf-child.c (return_zero): New function.
9312 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9313 * aix-thread.c (aix_thread_inferior_created): New function.
9314 (aix_thread_attach): Remove.
9315 (init_aix_thread_ops): Don't set to_attach.
9316 (_initialize_aix_thread): Register inferior_created observer.
9317 * corelow.c (init_core_ops): Don't set to_attach or
9319 * exec.c (init_exec_ops): Don't set to_attach or
9321 * infcmd.c (run_command_1): Use find_run_target. Make direct
9323 (attach_command): Use find_attach_target. Make direct target
9325 * record-btrace.c (init_record_btrace_ops): Don't set
9327 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9329 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9330 set to_create_inferior.
9331 * target.c (complete_target_initialization): Add assertion.
9332 (target_create_inferior): Remove.
9333 (find_default_attach, find_default_create_inferior): Remove.
9334 (find_attach_target, find_run_target): New functions.
9335 (find_default_is_async_p, find_default_can_async_p)
9336 (target_supports_non_stop, target_attach): Remove.
9337 (init_dummy_target): Don't set to_create_inferior or
9338 to_supports_non_stop.
9339 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9340 TARGET_DEFAULT_FUNC.
9341 <to_create_inferior>: Add comment.
9342 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9343 TARGET_DEFAULT_RETURN.
9344 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9345 (find_attach_target, find_run_target): Declare.
9346 (target_create_inferior): Remove.
9347 (target_has_execution_1): Update comment.
9348 (target_supports_non_stop): Remove.
9349 * target-delegates.c: Rebuild.
9351 2014-03-12 Pedro Alves <palves@redhat.com>
9353 * inf-child.h: Update comment to not mention Unix.
9355 2014-03-12 Pedro Alves <palves@redhat.com>
9357 * inf-child.c: Update top comment to not mention Unix. Add
9358 generic comment describing how this target is meant to be used.
9359 (inf_child_post_attach, inf_child_post_startup_inferior)
9360 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9363 2014-03-12 Pedro Alves <palves@redhat.com>
9365 * nto-procfs.c: Include inf-child.h.
9366 (procfs_ops): Delete global.
9367 (procfs_can_run): Delete method.
9368 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9369 target pointer instead of referencing procfs_ops.
9370 (procfs_prepare_to_store): Delete.
9371 (init_procfs_ops): Delete function.
9372 (procfs_target): New function, based on init_procfs_ops, but
9373 inherit inf_child_target.
9374 (_initialize_procfs): Use procfs_target.
9376 2014-03-12 Pedro Alves <palves@redhat.com>
9378 * windows-nat.c: Include inf-child.h.
9379 (windows_ops): Delete global.
9380 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9382 (init_windows_ops): Delete function.
9383 (windows_target): New function, based on init_windows_ops, but
9384 inherit inf_child_target.
9385 (_initialize_windows_nat): Use windows_target. Install x86
9386 specific target methods here.
9388 2014-03-10 Doug Evans <xdje42@gmail.com>
9390 * guile/guile.c (call_initialize_gdb_module): New function.
9391 (initialize_guile): Replace call to scm_init_guile with call to
9394 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9396 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9397 in call to TYPE_CODE macro.
9399 2014-03-10 Jerome Guitton <guitton@adacore.com>
9401 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9402 Resolve tagged types to full view.
9404 2014-03-10 Hui Zhu <hui@codesourcery.com>
9406 * target.h (target_insert_breakpoint): Remove "hardware" from its
9409 2014-03-07 Doug Evans <dje@google.com>
9411 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9413 2014-03-07 Doug Evans <dje@google.com>
9415 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9416 Remove unused local comp_dir_attr. Assert exactly one of
9417 stub_comp_unit_die, stub_comp_dir is non-NULL.
9419 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9421 * target.h (complete_target_initialization, add_target):
9424 2014-03-07 Pedro Alves <palves@redhat.com>
9426 * go32-nat.c: Include inf-child.h.
9427 (go32_ops): Delete global.
9428 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9430 (go32_create_inferior): Push the passed in target pointer instead
9431 of referencing go32_ops.
9432 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9433 (go32_target): New function, based on init_go32_ops, but inherit
9435 (_initialize_go32_nat): Use go32_target. Move parts of
9438 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9440 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9441 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9442 SYMBOL_VALUE_ADDRESS.
9443 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9445 2014-03-06 Yao Qi <yao@codesourcery.com>
9447 * breakpoint.c (get_tracepoint_by_number): Remove argument
9448 optional_p. All callers updated. Adjust comments. Update
9450 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9452 2014-03-06 Yao Qi <yao@codesourcery.com>
9454 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9455 early if get_number returns zero. Use 'p' instead of 'args'.
9457 2014-03-06 Yao Qi <yao@codesourcery.com>
9459 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9462 2014-03-06 Yao Qi <yao@codesourcery.com>
9464 PR breakpoints/16508
9465 * tracepoint.c (check_trace_running): New function.
9466 (trace_find_command): Move code to check_trace_running and
9467 call check_trace_running.
9468 (trace_find_pc_command): Likewise.
9469 (trace_find_tracepoint_command): Likewise.
9470 (trace_find_line_command): Likewise.
9471 (trace_find_range_command): Likewise.
9472 * tracepoint.h (check_trace_running): Likewise.
9473 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9475 2014-03-06 Yao Qi <yao@codesourcery.com>
9477 * target.h (struct target_ops) <to_traceframe_info>: Use
9478 TARGET_DEFAULT_NORETURN (tcomplain ()).
9479 * target-delegates.c: Regenerated.
9481 2014-03-05 Pedro Alves <palves@redhat.com>
9484 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9485 void. Update comment.
9486 (dcache_xfer_memory): Delete.
9487 (dcache_read_memory_partial): New, based on the read bits of
9489 (dcache_update): Add status parameter. Use ULONGEST for len, and
9490 adjust. Discard cache lines if the reason for the update was
9492 * dcache.h (dcache_xfer_memory): Delete declaration.
9493 (dcache_read_memory_partial): New declaration.
9494 (dcache_update): Update prototype.
9495 * target.c (raw_memory_xfer_partial): Update the dcache here.
9496 (memory_xfer_partial_1): Don't handle dcache writes here.
9498 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9500 * remote-sim.c (gdbsim_load): Add const to prog.
9502 2014-03-03 Tom Tromey <tromey@redhat.com>
9504 * elfread.c (probe_key): Change to bfd_data.
9505 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9506 now per-BFD, not per-objfile.
9507 * stap-probe.c (stap_probe_destroy): Update comment.
9508 (handle_stap_probe): Allocate on the per-BFD obstack.
9510 2014-03-03 Tom Tromey <tromey@redhat.com>
9512 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9513 * breakpoint.c (create_longjmp_master_breakpoint): Use
9515 (add_location_to_breakpoint, bkpt_probe_insert_location)
9516 (bkpt_probe_remove_location): Update.
9517 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9518 * elfread.c (elf_symfile_relocate_probe): Remove.
9519 (elf_probe_fns): Update.
9520 (insert_exception_resume_breakpoint): Change type of "probe"
9521 parameter to bound_probe.
9522 (check_exception_resume): Update.
9523 * objfiles.c (objfile_relocate1): Don't relocate probes.
9524 * probe.c (bound_probe_s): New typedef.
9525 (parse_probes): Use get_probe_address. Set sal's objfile.
9526 (find_probe_by_pc): Return a bound_probe.
9527 (collect_probes): Return a VEC(bound_probe_s).
9528 (compare_probes): Update.
9529 (gen_ui_out_table_header_info): Change type of "probes"
9531 (info_probes_for_ops): Update.
9532 (get_probe_address): New function.
9533 (probe_safe_evaluate_at_pc): Update.
9534 * probe.h (struct probe_ops) <get_probe_address>: New field.
9535 <set_semaphore, clear_semaphore>: Add objfile parameter.
9536 (struct probe) <objfile>: Remove field.
9538 <address>: Update comment.
9539 (struct bound_probe): New.
9540 (find_probe_by_pc): Return a bound_probe.
9541 (get_probe_address): Declare.
9542 * solib-svr4.c (struct probe_and_action) <address>: New field.
9543 (hash_probe_and_action, equal_probe_and_action): Update.
9544 (register_solib_event_probe): Add address parameter.
9545 (solib_event_probe_at): Update.
9546 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9548 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9549 (stap_get_probe_address): New function.
9550 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9551 (compile_probe_arg): Update.
9552 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9554 (handle_stap_probe): Don't relocate the probe.
9555 (stap_relocate): Remove.
9556 (stap_gen_info_probes_table_values): Update.
9557 (stap_probe_ops): Remove stap_relocate.
9558 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9559 (debug_sym_probe_fns): Update.
9560 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9561 * symtab.c (init_sal): Use memset.
9562 * symtab.h (struct symtab_and_line) <objfile>: New field.
9563 * tracepoint.c (start_tracing, stop_tracing): Update.
9565 2014-03-03 Tom Tromey <tromey@redhat.com>
9567 * probe.h (parse_probes, find_probe_by_pc)
9568 (find_probes_in_objfile): Fix comments.
9570 2014-03-02 Doug Evans <xdje42@gmail.com>
9572 * infrun.c (handle_signal_stop): Replace test for
9573 TARGET_WAITKIND_STOPPED with an assert.
9575 2014-03-02 Doug Evans <xdje42@gmail.com>
9577 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9579 2014-03-02 Doug Evans <xdje42@gmail.com>
9581 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9583 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9585 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9587 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9589 * i386obsd-nat.c: Include "obsd-nat.h".
9590 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9592 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9594 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9596 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9598 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9600 * mips64obsd-nat.c: Include "obsd-nath".
9601 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9603 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9605 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9607 * amd64obsd-nat.c: Include "obsd-nat,h.
9608 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9610 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9612 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9614 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9615 (find_overload_match): Update call to find_oload_champ.
9616 (find_oload_champ_namespace_loop): Likewise
9618 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9620 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9622 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9623 * config/sparc/obsd64.mh: New file.
9624 * sparc64obsd-nat.c: New file.
9626 * obsd-nat.h: New file.
9627 * obsd-nat.c: New file.
9628 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9629 (ALLDEPFILES): Add obsd-nat.c.
9631 2014-02-28 Tom Tromey <tromey@redhat.com>
9633 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9634 * cli-out.h (cli_ui_out_impl): Now const.
9635 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9636 * ui-out.c (struct ui_out) <impl>: Now const.
9637 (default_ui_out_impl): Now const.
9638 (ui_out_new): Make 'impl' parameter const.
9639 * ui-out.h (ui_out_new): Update.
9641 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9643 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9645 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9647 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9649 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9651 Additional PR 8882 fix.
9652 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9654 2014-02-27 Pedro Alves <palves@redhat.com>
9656 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9659 2014-02-27 Pedro Alves <palves@redhat.com>
9662 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9663 * nat/linux-waitpid.c: Include string.h.
9664 (status_to_str): Moved here and made extern.
9665 * nat/linux-waitpid.h (status_to_str): New declaration.
9667 2014-02-27 Hui Zhu <hui@codesourcery.com>
9670 * infrun.c (ptid_match): Move ...
9671 * common/ptid.c (ptid_match): ... here.
9672 * inferior.h (ptid_match): Move ...
9673 * common/ptid.h (ptid_match): ... here.
9675 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9677 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9678 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9681 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9683 * obsd-tdep.c (obsd_auxv_parse): New function.
9684 (obsd_init_abi): Set auxv_parse.
9686 * gdbarch.sh (auxv_parse): New.
9687 * gdbarch.h: Regenerated.
9688 * gdbarch.c: Regenerated.
9689 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9691 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9693 * guile/scm-value.c (gdbscm_history_append_x): New function.
9694 (value_functions): Add it.
9696 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9698 * dwarf2read.c (attr_value_as_address): New function.
9699 (dwarf2_find_base_address, read_call_site_scope): Use
9700 attr_value_as_address in place of DW_ADDR.
9701 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9702 the low and high addresses. Slight rework of the handling
9703 of the high pc being a constant form, and limit it to
9704 DWARF verson 4 or higher.
9705 (dwarf2_record_block_ranges): Likewise.
9706 (read_partial_die): Likewise.
9707 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9709 2014-02-26 Tom Tromey <tromey@redhat.com>
9711 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9713 2014-02-26 Tom Tromey <tromey@redhat.com>
9715 * elfread.c (elf_read_minimal_symbols): Return early if
9716 minimal symbols have already been read. Add "ei" parameter.
9717 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9718 * minsyms.c (prim_record_minimal_symbol_full): Update.
9719 * objfiles.h (struct objstats) <n_minsyms>: Move...
9720 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9721 * symmisc.c (print_objfile_statistics): Update.
9723 2014-02-26 Tom Tromey <tromey@redhat.com>
9725 * elfread.c (elf_read_minimal_symbols): New function, from
9727 (elf_symfile_read): Call it.
9729 2014-02-26 Tom Tromey <tromey@redhat.com>
9731 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9732 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9733 (lookup_minimal_symbol_solib_trampoline)
9734 (lookup_minimal_symbol_by_pc_section_1)
9735 (lookup_minimal_symbol_and_objfile): Update.
9736 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9737 Don't allocate a minimal symbol if minsyms have already been read.
9738 (build_minimal_symbol_hash_tables): Update.
9739 (install_minimal_symbols): Do nothing if minsyms already read.
9740 Use the per-BFD obstack.
9741 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9742 * objfiles.c (allocate_objfile): Call
9743 terminate_minimal_symbol_table later.
9744 (have_minimal_symbols): Update.
9745 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9746 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9747 Move from struct objfile.
9748 <minsyms_read>: New field.
9749 (struct objfile) <msymbols, minimal_symbol_count,
9750 msymbol_hash, msymbol_demangled_hash>: Move.
9751 (ALL_OBJFILE_MSYMBOLS): Update.
9752 * symfile.c (read_symbols): Set minsyms_read.
9753 (reread_symbols): Update.
9754 * symmisc.c (dump_objfile, dump_msymbols): Update.
9756 2014-02-26 Tom Tromey <tromey@redhat.com>
9758 * minsyms.c (msymbols_sort): Remove.
9759 * minsyms.h (msymbols_sort): Remove.
9760 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9761 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9762 * elfread.c (elf_symtab_read): Don't add section offsets.
9763 * xcoffread.c (record_minimal_symbol): Don't add section offset
9764 to minimal symbol address.
9765 * somread.c (text_offset, data_offset): Remove.
9766 (som_symtab_read): Don't add section offsets to minimal symbol
9768 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9769 Don't add section offsets to minimal symbols.
9770 * coffread.c (coff_symtab_read): Don't add section offsets
9771 to minimal symbol addresses.
9772 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9773 to minimal symbol addresses.
9774 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9775 section offset to minimal symbol addresses.
9776 * mdebugread.c (parse_partial_symbols): Don't add section
9777 offset to minimal symbol addresses.
9778 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9779 offset to minimal symbol addresses.
9781 2014-02-26 Tom Tromey <tromey@redhat.com>
9783 * ada-lang.c (ada_main_name): Update.
9784 (ada_add_standard_exceptions): Update.
9785 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9786 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9787 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9788 * auxv.c (ld_so_xfer_auxv): Update.
9789 * avr-tdep.c (avr_scan_prologue): Update.
9790 * ax-gdb.c (gen_var_ref): Update.
9791 * blockframe.c (get_pc_function_start)
9792 (find_pc_partial_function_gnu_ifunc): Update.
9793 * breakpoint.c (create_overlay_event_breakpoint)
9794 (create_longjmp_master_breakpoint)
9795 (create_std_terminate_master_breakpoint)
9796 (create_exception_master_breakpoint): Update.
9797 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9798 * c-valprint.c (c_val_print): Update.
9799 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9800 * common/agent.c (agent_look_up_symbols): Update.
9801 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9802 * dwarf2loc.c (call_site_to_target_addr): Update.
9803 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9804 * elfread.c (elf_gnu_ifunc_record_cache)
9805 (elf_gnu_ifunc_resolve_by_got): Update.
9806 * findvar.c (default_read_var_value): Update.
9807 * frame.c (inside_main_func): Update.
9808 * frv-tdep.c (frv_frame_this_id): Update.
9809 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9810 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9812 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9813 (hppa_hpux_find_dummy_bpaddr): Update.
9814 * hppa-tdep.c (hppa_symbol_address): Update.
9815 * infcmd.c (until_next_command): Update.
9816 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9818 * linespec.c (minsym_found, add_minsym): Update.
9819 * linux-nat.c (get_signo): Update.
9820 * linux-thread-db.c (inferior_has_bug): Update.
9821 * m32c-tdep.c (m32c_return_value)
9822 (m32c_m16c_address_to_pointer): Update.
9823 * m32r-tdep.c (m32r_frame_this_id): Update.
9824 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9825 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9826 * maint.c (maintenance_translate_address): Update.
9827 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9828 (frob_address): New function.
9829 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9830 frob_address. Rename parameter to "pc_in".
9831 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9833 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9835 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9836 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9837 * objc-lang.c (find_objc_msgsend): Update.
9838 * objfiles.c (objfile_relocate1): Update.
9839 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9840 * p-valprint.c (pascal_val_print): Update.
9841 * parse.c (write_exp_msymbol): Update.
9842 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9843 (ppc_elfv2_skip_entrypoint): Update.
9844 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9845 * printcmd.c (build_address_symbolic, msym_info)
9846 (address_info): Update.
9847 * proc-service.c (ps_pglobal_lookup): Update.
9848 * psymtab.c (find_pc_sect_psymtab_closer)
9849 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9850 Change msymbol parameter to bound_minimal_symbol.
9851 * ravenscar-thread.c (get_running_thread_id): Update.
9852 * remote.c (remote_check_symbols): Update.
9853 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9855 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9856 * solib-dsbt.c (lm_base): Update.
9857 * solib-frv.c (lm_base, main_got): Update.
9858 * solib-irix.c (locate_base): Update.
9859 * solib-som.c (som_solib_create_inferior_hook)
9860 (link_map_start): Update.
9861 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9862 * solib-svr4.c (elf_locate_base, enable_break): Update.
9863 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9864 (flush_ea_cache): Update.
9865 * stabsread.c (define_symbol, scan_file_globals): Update.
9866 * stack.c (find_frame_funname): Update.
9867 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9868 (debug_qf_find_pc_sect_symtab): Update.
9869 * symfile.c (simple_read_overlay_table)
9870 (simple_overlay_update): Update.
9871 * symfile.h (struct quick_symbol_functions)
9872 <find_pc_sect_symtab>: Change type of msymbol to
9873 bound_minimal_symbol.
9874 * symmisc.c (dump_msymbols): Update.
9875 * symtab.c (find_pc_sect_symtab_via_partial)
9876 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9877 (search_symbols, print_msymbol_info): Update.
9878 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9879 (MSYMBOL_VALUE_ADDRESS): Redefine.
9880 (BMSYMBOL_VALUE_ADDRESS): New macro.
9881 * tracepoint.c (scope_info): Update.
9882 * tui/tui-disasm.c (tui_find_disassembly_address)
9883 (tui_get_begin_asm_address): Update.
9884 * valops.c (find_function_in_inferior): Update.
9885 * value.c (value_static_field, value_fn_field): Update.
9887 2014-02-26 Tom Tromey <tromey@redhat.com>
9889 * ada-lang.c (ada_update_initial_language): Update.
9890 (ada_main_name, ada_has_this_exception_support): Update.
9891 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9892 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9893 * arm-tdep.c (arm_skip_stub): Update.
9894 * auxv.c (ld_so_xfer_auxv): Update.
9895 * avr-tdep.c (avr_scan_prologue): Update.
9896 * ax-gdb.c (gen_var_ref): Update.
9897 * breakpoint.c (struct breakpoint_objfile_data)
9898 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9899 type to bound_minimal_symbol.
9900 (create_overlay_event_breakpoint)
9901 (create_longjmp_master_breakpoint)
9902 (create_std_terminate_master_breakpoint)
9903 (create_exception_master_breakpoint): Update.
9904 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9905 * c-exp.y (classify_name): Update.
9906 * coffread.c (coff_symfile_read): Update.
9907 * common/agent.c (agent_look_up_symbols): Update.
9908 * d-lang.c (d_main_name): Update.
9909 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9910 * dec-thread.c (enable_dec_thread): Update.
9911 * dwarf2loc.c (call_site_to_target_addr): Update.
9912 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9913 * eval.c (evaluate_subexp_standard): Update.
9914 * findvar.c (struct minsym_lookup_data) <result>: Change type
9915 to bound_minimal_symbol.
9917 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9918 * frame.c (inside_main_func): Update.
9919 * frv-tdep.c (frv_frame_this_id): Update.
9920 * gcore.c (call_target_sbrk): Update.
9921 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9922 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9924 * go-lang.c (go_main_name): Update.
9925 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9926 (hppa_hpux_find_import_stub_for_addr): Update.
9927 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9928 Update. Change return type.
9929 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9931 * jit.c (jit_breakpoint_re_set_internal): Update.
9932 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9934 * linux-nat.c (get_signo): Update.
9935 * linux-thread-db.c (inferior_has_bug): Update
9936 * m32c-tdep.c (m32c_return_value)
9937 (m32c_m16c_address_to_pointer): Update.
9938 * m32r-tdep.c (m32r_frame_this_id): Update.
9939 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9940 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9941 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9942 lookup_minimal_symbol. Change return type.
9943 (lookup_minimal_symbol): Remove.
9944 (lookup_bound_minimal_symbol): Update.
9945 (lookup_minimal_symbol_text): Change return type.
9946 (lookup_minimal_symbol_solib_trampoline): Change return type.
9947 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9948 (lookup_minimal_symbol_solib_trampoline): Change return type.
9949 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9950 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9951 (value_nsstring, find_imps): Update.
9952 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9953 * p-lang.c (pascal_main_name): Update.
9954 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9955 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9956 * proc-service.c (ps_pglobal_lookup): Update.
9957 * ravenscar-thread.c (get_running_thread_msymbol): Change
9959 (has_ravenscar_runtime, get_running_thread_id): Update.
9960 * remote.c (remote_check_symbols): Update.
9961 * sol-thread.c (ps_pglobal_lookup): Update.
9962 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9963 * solib-dsbt.c (lm_base): Update.
9964 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9966 * solib-irix.c (locate_base): Update.
9967 * solib-som.c (som_solib_create_inferior_hook)
9968 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9970 * solib-spu.c (spu_enable_break): Update.
9971 * solib-svr4.c (elf_locate_base, enable_break): Update.
9972 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9973 (flush_ea_cache): Update.
9974 * stabsread.c (define_symbol): Update.
9975 * symfile.c (simple_read_overlay_table): Update.
9976 * symtab.c (find_pc_sect_line): Update.
9977 * tracepoint.c (scope_info): Update.
9978 * tui-disasm.c (tui_get_begin_asm_address): Update.
9979 * value.c (value_static_field): Update.
9981 2014-02-26 Tom Tromey <tromey@redhat.com>
9983 * minsyms.c (prim_record_minimal_symbol_full): Use
9984 SET_MSYMBOL_VALUE_ADDRESS.
9985 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9986 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9987 SET_MSYMBOL_VALUE_ADDRESS.
9988 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9989 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9991 2014-02-26 Tom Tromey <tromey@redhat.com>
9993 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9994 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9995 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9996 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9997 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9998 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9999 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10000 * ada-lang.c (ada_main_name): Update.
10001 (ada_lookup_simple_minsym): Update.
10002 (ada_make_symbol_completion_list): Update.
10003 (ada_add_standard_exceptions): Update.
10004 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10005 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10006 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10007 * arm-tdep.c (skip_prologue_function): Update.
10008 (arm_skip_stack_protector, arm_skip_stub): Update.
10009 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10010 (arm_wince_skip_main_prologue): Update.
10011 * auxv.c (ld_so_xfer_auxv): Update.
10012 * avr-tdep.c (avr_scan_prologue): Update.
10013 * ax-gdb.c (gen_var_ref): Update.
10014 * block.c (call_site_for_pc): Update.
10015 * blockframe.c (get_pc_function_start): Update.
10016 (find_pc_partial_function_gnu_ifunc): Update.
10017 * breakpoint.c (create_overlay_event_breakpoint): Update.
10018 (create_longjmp_master_breakpoint): Update.
10019 (create_std_terminate_master_breakpoint): Update.
10020 (create_exception_master_breakpoint): Update.
10021 (resolve_sal_pc): Update.
10022 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10023 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10025 * c-valprint.c (c_val_print): Update.
10026 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10027 * coffread.c (coff_symfile_read): Update.
10028 * common/agent.c (agent_look_up_symbols): Update.
10029 * dbxread.c (find_stab_function_addr): Update.
10030 (end_psymtab): Update.
10031 * dwarf2loc.c (call_site_to_target_addr): Update.
10032 (func_verify_no_selftailcall): Update.
10033 (tailcall_dump): Update.
10034 (call_site_find_chain_1): Update.
10035 (dwarf_expr_reg_to_entry_parameter): Update.
10036 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10037 (elf_gnu_ifunc_resolve_by_got): Update.
10038 * f-valprint.c (info_common_command): Update.
10039 * findvar.c (read_var_value): Update.
10040 * frame.c (get_prev_frame_1): Update.
10041 (inside_main_func): Update.
10042 * frv-tdep.c (frv_skip_main_prologue): Update.
10043 (frv_frame_this_id): Update.
10044 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10045 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10046 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10047 (gnuv3_skip_trampoline): Update.
10048 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10049 (hppa64_hpux_in_solib_call_trampoline): Update.
10050 (hppa_hpux_skip_trampoline_code): Update.
10051 (hppa64_hpux_search_dummy_call_sequence): Update.
10052 (hppa_hpux_find_import_stub_for_addr): Update.
10053 (hppa_hpux_find_dummy_bpaddr): Update.
10054 * hppa-tdep.c (hppa_symbol_address)
10055 (hppa_lookup_stub_minimal_symbol): Update.
10056 * i386-tdep.c (i386_skip_main_prologue): Update.
10057 (i386_pe_skip_trampoline_code): Update.
10058 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10059 * infcall.c (get_function_name): Update.
10060 * infcmd.c (until_next_command): Update.
10061 * jit.c (jit_breakpoint_re_set_internal): Update.
10062 (jit_inferior_init): Update.
10063 * linespec.c (minsym_found): Update.
10064 (add_minsym): Update.
10065 * linux-fork.c (info_checkpoints_command): Update.
10066 * linux-nat.c (get_signo): Update.
10067 * linux-thread-db.c (inferior_has_bug): Update.
10068 * m32c-tdep.c (m32c_return_value): Update.
10069 (m32c_m16c_address_to_pointer): Update.
10070 (m32c_m16c_pointer_to_address): Update.
10071 * m32r-tdep.c (m32r_frame_this_id): Update.
10072 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10073 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10074 * maint.c (maintenance_translate_address): Update.
10075 * minsyms.c (add_minsym_to_hash_table): Update.
10076 (add_minsym_to_demangled_hash_table): Update.
10077 (msymbol_objfile): Update.
10078 (lookup_minimal_symbol): Update.
10079 (iterate_over_minimal_symbols): Update.
10080 (lookup_minimal_symbol_text): Update.
10081 (lookup_minimal_symbol_by_pc_name): Update.
10082 (lookup_minimal_symbol_solib_trampoline): Update.
10083 (lookup_minimal_symbol_by_pc_section_1): Update.
10084 (lookup_minimal_symbol_and_objfile): Update.
10085 (prim_record_minimal_symbol_full): Update.
10086 (compare_minimal_symbols): Update.
10087 (compact_minimal_symbols): Update.
10088 (build_minimal_symbol_hash_tables): Update.
10089 (install_minimal_symbols): Update.
10090 (terminate_minimal_symbol_table): Update.
10091 (find_solib_trampoline_target): Update.
10092 (minimal_symbol_upper_bound): Update.
10093 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10094 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10095 (mips_skip_pic_trampoline_code): Update.
10096 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10097 * objc-lang.c (selectors_info): Update.
10098 (classes_info): Update.
10099 (find_methods): Update.
10100 (find_imps): Update.
10101 (find_objc_msgsend): Update.
10102 * objfiles.c (objfile_relocate1): Update.
10103 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10104 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10105 * p-valprint.c (pascal_val_print): Update.
10106 * parse.c (write_exp_msymbol): Update.
10107 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10108 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10109 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10110 * printcmd.c (build_address_symbolic): Update.
10111 (sym_info): Update.
10112 (address_info): Update.
10113 * proc-service.c (ps_pglobal_lookup): Update.
10114 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10115 (find_pc_sect_psymtab): Update.
10116 * python/py-framefilter.c (py_print_frame): Update.
10117 * ravenscar-thread.c (get_running_thread_id): Update.
10118 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10120 * remote.c (remote_check_symbols): Update.
10121 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10122 (rs6000_skip_trampoline_code): Update.
10123 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10124 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10125 * solib-dsbt.c (lm_base): Update.
10126 * solib-frv.c (lm_base): Update.
10127 (main_got): Update.
10128 * solib-irix.c (locate_base): Update.
10129 * solib-som.c (som_solib_create_inferior_hook): Update.
10130 (som_solib_desire_dynamic_linker_symbols): Update.
10131 (link_map_start): Update.
10132 * solib-spu.c (spu_enable_break): Update.
10133 (ocl_enable_break): Update.
10134 * solib-svr4.c (elf_locate_base): Update.
10135 (enable_break): Update.
10136 * spu-tdep.c (spu_get_overlay_table): Update.
10137 (spu_catch_start): Update.
10138 (flush_ea_cache): Update.
10139 * stabsread.c (define_symbol): Update.
10140 (scan_file_globals): Update.
10141 * stack.c (find_frame_funname): Update.
10142 (frame_info): Update.
10143 * symfile.c (simple_read_overlay_table): Update.
10144 (simple_overlay_update): Update.
10145 * symmisc.c (dump_msymbols): Update.
10146 * symtab.c (fixup_section): Update.
10147 (find_pc_sect_line): Update.
10148 (skip_prologue_sal): Update.
10149 (search_symbols): Update.
10150 (print_msymbol_info): Update.
10151 (rbreak_command): Update.
10152 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10153 (completion_list_objc_symbol): Update.
10154 (default_make_symbol_completion_list_break_on): Update.
10155 * tracepoint.c (scope_info): Update.
10156 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10157 (tui_get_begin_asm_address): Update.
10158 * valops.c (find_function_in_inferior): Update.
10159 * value.c (value_static_field): Update.
10160 (value_fn_field): Update.
10162 2014-02-26 Tom Tromey <tromey@redhat.com>
10164 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10165 bound minimal symbols. Move code that knows about minsym
10167 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10169 * minsyms.h (minimal_symbol_upper_bound): Declare.
10170 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10171 minimal_symbol_upper_bound.
10173 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10175 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10176 Use the type's name if its basic type does not have a tag.
10178 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10180 * dwarf2read.c (read_subrange_type): Add comment.
10182 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10184 * dwarf2read.c (update_enumeration_type_from_children): New
10185 function, mostly extracted from process_structure_scope.
10186 (read_enumeration_type): Call update_enumeration_type_from_children.
10187 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10188 and flag_flag_enum fields.
10190 2014-02-26 Pedro Alves <palves@redhat.com>
10192 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10193 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10194 to_xfer_partial method.
10196 2014-02-26 Pedro Alves <palves@redhat.com>
10198 * target.c (complete_target_initialization): Don't install
10199 default_xfer_partial as to_xfer_partial hook.
10200 (nomemory): Delete.
10201 (update_current_target): Don't INHERIT nor de_fault
10202 deprecated_xfer_memory. Delete de_fault macro.
10203 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10204 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10205 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10208 2014-02-26 Pedro Alves <palves@redhat.com>
10210 * go32-nat.c (my_write_child): New function.
10211 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10212 (go32_xfer_partial): New function.
10213 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10214 Instead install a to_xfer_partial hook.
10216 2014-02-26 Pedro Alves <palves@redhat.com>
10218 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10219 to_xfer_partial helper. Rewrite.
10220 (procfs_xfer_partial): New function.
10221 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10222 Install a to_xfer_partial hook.
10224 2014-02-26 Pedro Alves <palves@redhat.com>
10226 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10227 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10228 (m32r_xfer_partial): New function.
10229 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10230 Install a to_xfer_partial hook.
10232 2014-02-26 Pedro Alves <palves@redhat.com>
10234 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10236 (mips_xfer_partial): New function.
10237 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10238 hook. Install a to_xfer_partial hook.
10240 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10242 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10243 * gdbtypes.c (create_array_type_with_stride): New function,
10244 renaming create_array_type, but with an added parameter
10245 called "bit_stride".
10246 (create_array_type): Re-implement using
10247 create_array_type_with_stride.
10248 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10249 and DW_AT_bit_stride attributes.
10251 2014-02-26 Pedro Alves <palves@redhat.com>
10253 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10254 task-specific breakpoints.
10256 2014-02-25 Pedro Alves <palves@redhat.com>
10258 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10259 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10261 2014-02-25 Stan Shebs <stan@codesourcery.com>
10263 * defs.h: Annotate comments for Doxygen.
10265 2014-02-25 Tom Tromey <tromey@redhat.com>
10267 * target.h (target_ignore): Don't declare.
10268 * target.c (target_ignore): Remove.
10270 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10273 * auto-load.c (auto_load_objfile_script_1): Change filename to
10276 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10278 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10279 documentation. Adjust prototype to match the target_ops
10280 to_xfer_partial method. Adjust implementation accordingly.
10282 2014-02-25 Hui Zhu <hui@codesourcery.com>
10284 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10285 to_traceframe_info.
10287 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10289 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10290 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10291 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10292 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10293 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10294 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10295 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10296 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10298 (rl78_register_type): Use a data pointer type for SP and
10299 new pseudo registers mentioned above. Use a 16 bit integer
10300 type for all other register pairs.
10301 (rl78_register_name, rl78_g10_register_name): Update for
10302 new pseudo registers.
10303 (rl78_pseudo_register_read): Likewise.
10304 (rl78_pseudo_register_write): Likewise.
10305 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10306 to the newly added pseudo registers.
10308 2014-02-24 Doug Evans <dje@google.com>
10310 * value.c (record_latest_value): Fix comment.
10311 * printcmd.c (print_command_1): Remove code to handle -1 return from
10312 record_latest_value.
10314 2014-02-24 Pedro Alves <palves@redhat.com>
10316 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10317 deprecated_xfer_memory hook.
10318 (procfs_xfer_partial): Call procfs_xfer_memory instead
10319 of the deprecated_xfer_memory target hook.
10320 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10323 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10325 * windows-nat.c (windows_xfer_shared_libraries): Return
10326 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10327 requested object is TARGET_OBJECT_LIBRARIES.
10329 2014-02-24 Yao Qi <yao@codesourcery.com>
10331 * target.h (enum target_xfer_status)
10332 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10333 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10335 * corefile.c (memory_error_message): User updated.
10336 * exec.c (section_table_read_available_memory): Likewise.
10337 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10338 * target.c (target_xfer_status_to_string): Likewise.
10339 (raw_memory_xfer_partial): Likewise.
10340 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10341 * valops.c (read_value_memory): Likewise.
10342 * exec.h: Update comments.
10344 2014-02-24 Yao Qi <yao@codesourcery.com>
10346 * target.c (target_xfer_status_to_string): Rename argument err
10348 * target.h (target_xfer_status_to_string): Update declaration.
10349 Replace target_xfer_error_to_string with
10350 target_xfer_status_to_string in comment.
10352 2014-02-24 Yao Qi <yao@codesourcery.com>
10354 * mips-linux-nat.c (super_close): Update its type.
10355 (mips_linux_close): Pass 'self' to super_close.
10357 2014-02-24 Yao Qi <yao@codesourcery.com>
10359 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10360 * corefile.c (read_memory): Adjusted.
10361 * target.c (target_write_with_progress): Adjusted.
10363 2014-02-23 Yao Qi <yao@codesourcery.com>
10365 Revert two patches:
10367 2013-10-25 Yao Qi <yao@codesourcery.com>
10369 * remote.c (remote_traceframe_info): Return early if
10370 traceframe is not selected.
10372 2013-07-19 Yao Qi <yao@codesourcery.com>
10374 * target.c (update_current_target): Change the default action
10375 of 'to_traceframe_info' from tcomplain to return_zero.
10376 * target.h (struct target_ops) <to_traceframe_info>: Add more
10379 2014-02-23 Yao Qi <yao@codesourcery.com>
10381 * valops.c (read_value_memory): Rewrite it. Call
10382 target_xfer_partial in a loop.
10383 * exec.h (section_table_available_memory): Remove declaration.
10384 Move comments to ...
10385 * exec.c (section_table_available_memory): ... here. Make it
10388 2014-02-23 Yao Qi <yao@codesourcery.com>
10390 * exec.c (section_table_read_available_memory): New function.
10391 * exec.h (section_table_read_available_memory): Declare.
10392 * ctf.c (ctf_xfer_partial): Call
10393 section_table_read_available_memory.
10394 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10396 2014-02-23 Yao Qi <yao@codesourcery.com>
10398 * ctf.c (ctf_xfer_partial): Move code to ...
10399 * exec.c (exec_read_partial_read_only): ... it. New function.
10400 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10401 * tracefile.c: Include "exec.h".
10402 * exec.h (exec_read_partial_read_only): Declare.
10404 2014-02-23 Yao Qi <yao@codesourcery.com>
10406 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10407 (tfile_has_memory): Remove.
10408 (init_tfile_ops): Don't set fields to_has_all_memory and
10409 to_has_memory of tfile_ops.
10410 * tracefile.c (tracefile_has_all_memory): New function.
10411 (tracefile_has_memory): New function.
10412 (init_tracefile_ops): Initialize fields to_has_all_memory and
10413 to_has_memory of 'ops'.
10415 2014-02-23 Yao Qi <yao@codesourcery.com>
10417 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10418 (ctf_thread_alive, ctf_get_trace_status): Remove.
10419 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10420 init_tracefile_ops.
10421 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10422 (tfile_has_stack, tfile_has_registers): Remove.
10423 (tfile_thread_alive): Remove.
10424 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10425 init_tracefile_ops.
10426 * tracefile.c (tracefile_has_stack): New function.
10427 (tracefile_has_registers): New function.
10428 (tracefile_thread_alive): New function.
10429 (tracefile_get_trace_status): New function.
10430 (init_tracefile_ops): New function.
10431 * tracefile.h (init_tracefile_ops): Declare.
10433 2014-02-23 Yao Qi <yao@codesourcery.com>
10435 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10436 (O_LARGEFILE): Likewise.
10437 (tfile_ops): Likewise.
10438 (TRACE_HEADER_SIZE): Likewise.
10439 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10440 (cur_data_size): Likewise.
10441 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10442 (tfile_close, tfile_files_info): Likewise.
10443 (tfile_get_trace_status): Likewise.
10444 (tfile_get_tracepoint_status): Likewise.
10445 (tfile_get_traceframe_address): Likewise.
10446 (tfile_trace_find, match_blocktype): Likewise.
10447 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10448 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10449 (tfile_get_trace_state_variable_value): Likewise.
10450 (tfile_has_all_memory, tfile_has_memory): Likewise.
10451 (tfile_has_stack, tfile_has_registers): Likewise.
10452 (tfile_thread_alive, build_traceframe_info): Likewise.
10453 (tfile_traceframe_info, init_tfile_ops): Likewise.
10454 (_initialize_tracepoint): Don't call init_tfile_ops
10455 and add_target_with_completer.
10456 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10457 exec.h, completer.h and filenames.h.
10458 (_initialize_tracefile_tfile): New function.
10460 2014-02-23 Yao Qi <yao@codesourcery.com>
10462 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10464 (HFILES_NO_SRCDIR): Add tracefile.h.
10465 * ctf.c: Include "tracefile.h".
10466 * tracefile.h: New file.
10467 * tracefile.c: New file
10468 * tracefile-tfile.c: New file.
10469 * tracepoint.c: Include "tracefile.h".
10470 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10471 (stop_reason_names): Add const.
10472 (trace_file_writer_xfree): Move it to tracefile.c.
10473 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10474 (trace_save_ctf): Likewise.
10475 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10476 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10477 (tfile_write_header, tfile_write_regblock_type): Likewise.
10478 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10479 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10480 (tfile_write_raw_data, tfile_end): Likewise.
10481 (tfile_trace_file_writer_new): Likewise.
10482 (free_uploaded_tp): Make it extern.
10483 (free_uploaded_tsv): Make it extern.
10484 (_initialize_tracepoint): Move code to register command 'tsave'
10486 * tracepoint.h (stop_reason_names): Declare.
10487 (struct trace_frame_write_ops): Move it to tracefile.h.
10488 (struct trace_file_write_ops): Likewise.
10489 (struct trace_file_writer): Likewise.
10490 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10492 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10495 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10497 (get_cores_used_by_process): New parameter num_cores, use it.
10498 (linux_xfer_osdata_processes): Pass num_cores to it.
10499 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10502 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10504 * target.c (memory_xfer_partial): Fix length arg in call to
10505 breakpoint_xfer_memory.
10507 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10510 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10511 number comes after the + or - signs. Adjust length of register
10512 name to be extracted.
10514 2014-02-20 Tom Tromey <tromey@redhat.com>
10516 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10517 (ada_varobj_ops): Mark "extern".
10519 2014-02-20 Tom Tromey <tromey@redhat.com>
10521 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10523 2014-02-20 Doug Evans <xdje42@gmail.com>
10525 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10526 All callers updated.
10527 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10528 All callers updated.
10529 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10530 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10532 2014-02-20 lin zuojian <manjian2006@gmail.com>
10533 Joel Brobecker <brobecker@adacore.com>
10534 Doug Evans <xdje42@gmail.com>
10537 * dwarf2read.c (struct die_info): New member in_process.
10538 (reset_die_in_process): New function.
10539 (process_die): Set it at the start, reset when returning.
10540 (inherit_abstract_dies): Only call process_die if origin_child_die
10541 not already being processed.
10543 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10545 * windows-nat.c (handle_unload_dll): Add function documentation.
10546 (do_initial_windows_stuff): Add comment explaining why we wait
10547 until after inferior initialization has finished before
10548 processing all DLLs.
10550 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10552 * windows-nat.c (get_module_name): Delete.
10553 (windows_get_exec_module_filename): New function, mostly
10554 inspired from get_module_name.
10555 (windows_pid_to_exec_file): Replace call to get_module_name
10556 by call to windows_get_exec_module_filename.
10558 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10560 * windows-nat.c (handle_load_dll): Rewrite this function's
10561 introductory comment. Remove code using get_module_name
10562 to get the DLL's name.
10564 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10566 * windows-nat.c (get_windows_debug_event): Ignore
10567 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10568 if windows_initialization_done == 0.
10569 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10570 Adjust implementation to always load all DLLs.
10571 (do_initial_windows_stuff): Replace call to
10572 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10574 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10576 * windows-nat.c (_initialize_windows_nat): Deprecate the
10577 "dll-symbols" command. Turn the "add-shared-symbol-files"
10578 and "assf" aliases into commands, and deprecate them as well.
10579 * NEWS: Add entry explaining that "dll-symbols" and its two
10580 aliases are now deprecated.
10582 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10584 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10585 new-line in debug string. Remove trailing spaces.
10587 2014-02-19 Stan Shebs <stan@codesourcery.com>
10589 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10591 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10593 * NEWS: Add entry for the new feature
10594 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10597 2014-02-19 Stan Shebs <stan@codesourcery.com>
10599 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10601 2014-02-19 Pedro Alves <palves@redhat.com>
10603 * common/ptid.h (struct ptid): Mention that process_stratum
10604 targets should prefer ptid.lwp.
10606 2014-02-19 Pedro Alves <palves@redhat.com>
10608 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10609 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10610 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10611 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10612 store remote thread ids rather than ptid.tid.
10613 (_initialize_remote): Adjust.
10615 2014-02-19 Tom Tromey <tromey@redhat.com>
10617 * target.c (target_get_unwinder): Rewrite.
10618 (target_get_tailcall_unwinder): Rewrite.
10619 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10620 (record_btrace_to_get_tailcall_unwinder): New function.
10621 (init_record_btrace_ops): Update.
10622 * target.h (struct target_ops) <to_get_unwinder,
10623 to_get_tailcall_unwinder>: Now function pointers. Use
10624 TARGET_DEFAULT_RETURN.
10626 2014-02-19 Tom Tromey <tromey@redhat.com>
10628 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10630 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10632 2014-02-19 Tom Tromey <tromey@redhat.com>
10634 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10636 * target-delegates.c: Rebuild.
10637 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10638 TARGET_DEFAULT_FUNC.
10639 * target.c (default_target_decr_pc_after_break): Rename from
10640 forward_target_decr_pc_after_break. Simplify.
10641 (target_decr_pc_after_break): Rely on delegation.
10643 2014-02-19 Tom Tromey <tromey@redhat.com>
10645 * target.c (update_current_target): Do not INHERIT to_doc or
10646 to_magic. Do not de_fault to_open or to_close.
10648 2014-02-19 Tom Tromey <tromey@redhat.com>
10650 * gcore.h (objfile_find_memory_regions): Declare.
10651 * gcore.c (objfile_find_memory_regions): No longer static. Add
10653 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10654 * exec.c: Include gcore.h.
10655 (exec_set_find_memory_regions): Remove.
10656 (exec_find_memory_regions): Remove.
10657 (exec_do_find_memory_regions): Remove.
10658 (init_exec_ops): Update.
10659 * defs.h (exec_set_find_memory_regions): Remove.
10661 2014-02-19 Tom Tromey <tromey@redhat.com>
10663 * target-delegates.c: Rebuild.
10664 * target.h (struct target_ops) <to_extra_thread_info,
10665 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10666 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10667 not 0, in TARGET_DEFAULT_RETURN.
10669 2014-02-19 Tom Tromey <tromey@redhat.com>
10671 * target.c (complete_target_initialization): Remove casts. Use
10672 return_zero_has_execution.
10673 (return_zero): Add "ignore" argument.
10674 (return_zero_has_execution): New function.
10675 (init_dummy_target): Remove casts. Use
10676 return_zero_has_execution.
10678 2014-02-19 Tom Tromey <tromey@redhat.com>
10680 * target.c (update_current_target): Update comments. Do not
10681 INHERIT to_stratum.
10683 2014-02-19 Tom Tromey <tromey@redhat.com>
10685 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10687 * corelow.c (core_read_description): Delegate when needed.
10688 * remote.c (remote_read_description): Delegate when needed.
10689 * target-delegates.c: Rebuild.
10690 * target.c (target_read_description): Rewrite.
10691 * target.h (struct target_ops) <to_read_description>: Update
10692 comment. Use TARGET_DEFAULT_RETURN.
10694 2014-02-19 Tom Tromey <tromey@redhat.com>
10696 * target-delegates.c: Rebuild.
10697 * target.c (update_current_target): Don't inherit or default
10699 (find_default_run_target): Check against delegate_can_run.
10700 * target.h (struct target_ops) <to_can_run>: Use
10701 TARGET_DEFAULT_RETURN.
10703 2014-02-19 Tom Tromey <tromey@redhat.com>
10705 * target-delegates.c: Rebuild.
10706 * target.c (target_disconnect): Unconditionally delegate.
10707 * target.h (struct target_ops) <to_disconnect>: Use
10708 TARGET_DEFAULT_NORETURN.
10710 2014-02-19 Tom Tromey <tromey@redhat.com>
10712 * record.c (record_stop): Unconditionally delegate.
10713 * target-delegates.c: Rebuild.
10714 * target.c (target_stop_recording): Unconditionally delegate.
10715 * target.h (struct target_ops) <to_stop_recording>: Use
10716 TARGET_DEFAULT_IGNORE.
10718 2014-02-19 Tom Tromey <tromey@redhat.com>
10720 * target-delegates.c: Rebuild.
10721 * target.c (target_enable_btrace): Unconditionally delegate.
10722 * target.h (struct target_ops) <to_enable_btrace>: Use
10723 TARGET_DEFAULT_NORETURN.
10725 2014-02-19 Tom Tromey <tromey@redhat.com>
10727 * target-delegates.c: Rebuild.
10728 * target.c (target_read_btrace): Unconditionally delegate.
10729 * target.h (struct target_ops) <to_read_btrace>: Use
10730 TARGET_DEFAULT_NORETURN.
10732 2014-02-19 Tom Tromey <tromey@redhat.com>
10734 * target-delegates.c: Rebuild.
10735 * target.c (target_teardown_btrace): Unconditionally delegate.
10736 * target.h (struct target_ops) <to_teardown_btrace>: Use
10737 TARGET_DEFAULT_NORETURN.
10739 2014-02-19 Tom Tromey <tromey@redhat.com>
10741 * target-delegates.c: Rebuild.
10742 * target.c (target_disable_btrace): Unconditionally delegate.
10743 * target.h (struct target_ops) <to_disable_btrace>: Use
10744 TARGET_DEFAULT_NORETURN.
10746 2014-02-19 Tom Tromey <tromey@redhat.com>
10748 * target-delegates.c: Rebuild.
10749 * target.c (default_search_memory): New function.
10750 (simple_search_memory): Update comment.
10751 (target_search_memory): Unconditionally delegate.
10752 * target.h (struct target_ops) <to_search_memory>: Use
10753 TARGET_DEFAULT_FUNC.
10755 2014-02-19 Tom Tromey <tromey@redhat.com>
10757 * auxv.c (default_auxv_parse): No longer static.
10758 (target_auxv_parse): Unconditionally delegate.
10759 * auxv.h (default_auxv_parse): Declare.
10760 * target-delegates.c: Rebuild.
10761 * target.c: Include auxv.h.
10762 * target.h (struct target_ops) <to_auxv_parse>: Use
10763 TARGET_DEFAULT_FUNC.
10765 2014-02-19 Tom Tromey <tromey@redhat.com>
10767 * target-delegates.c: Rebuild.
10768 * target.c (target_memory_map): Unconditionally delegate.
10769 * target.h (struct target_ops) <to_memory_map>: Use
10770 TARGET_DEFAULT_RETURN.
10772 2014-02-19 Tom Tromey <tromey@redhat.com>
10774 * target-delegates.c: Rebuild.
10775 * target.c (target_thread_alive): Unconditionally delegate.
10776 * target.h (struct target_ops) <to_thread_alive>: Use
10777 TARGET_DEFAULT_RETURN.
10779 2014-02-19 Tom Tromey <tromey@redhat.com>
10781 * target-delegates.c: Rebuild.
10782 * target.c (target_save_record): Unconditionally delegate.
10783 * target.h (struct target_ops) <to_save_record>: Use
10784 TARGET_DEFAULT_NORETURN.
10786 2014-02-19 Tom Tromey <tromey@redhat.com>
10788 * target-delegates.c: Rebuild.
10789 * target.c (target_delete_record): Unconditionally delegate.
10790 * target.h (struct target_ops) <to_delete_record>: Use
10791 TARGET_DEFAULT_NORETURN.
10793 2014-02-19 Tom Tromey <tromey@redhat.com>
10795 * target-delegates.c: Rebuild.
10796 * target.c (target_record_is_replaying): Unconditionally
10798 * target.h (struct target_ops) <to_record_is_replaying>: Use
10799 TARGET_DEFAULT_RETURN.
10801 2014-02-19 Tom Tromey <tromey@redhat.com>
10803 * target-delegates.c: Rebuild.
10804 * target.c (target_goto_record_begin): Unconditionally delegate.
10805 * target.h (struct target_ops) <to_goto_record_begin>: Use
10806 TARGET_DEFAULT_NORETURN.
10808 2014-02-19 Tom Tromey <tromey@redhat.com>
10810 * target-delegates.c: Rebuild.
10811 * target.c (target_goto_record_end): Unconditionally delegate.
10812 * target.h (struct target_ops) <to_goto_record_end>: Use
10813 TARGET_DEFAULT_NORETURN.
10815 2014-02-19 Tom Tromey <tromey@redhat.com>
10817 * target-delegates.c: Rebuild.
10818 * target.c (target_goto_record): Unconditionally delegate.
10819 * target.h (struct target_ops) <to_goto_record>: Use
10820 TARGET_DEFAULT_NORETURN.
10822 2014-02-19 Tom Tromey <tromey@redhat.com>
10824 * target-delegates.c: Rebuild.
10825 * target.c (target_insn_history): Unconditionally delegate.
10826 * target.h (struct target_ops) <to_insn_history>: Use
10827 TARGET_DEFAULT_NORETURN.
10829 2014-02-19 Tom Tromey <tromey@redhat.com>
10831 * target-delegates.c: Rebuild.
10832 * target.c (target_insn_history_from): Unconditionally delegate.
10833 * target.h (struct target_ops) <to_insn_history_from>: Use
10834 TARGET_DEFAULT_NORETURN.
10836 2014-02-19 Tom Tromey <tromey@redhat.com>
10838 * target-delegates.c: Rebuild.
10839 * target.c (target_insn_history_range): Unconditionally delegate.
10840 * target.h (struct target_ops) <to_insn_history_range>: Use
10841 TARGET_DEFAULT_NORETURN.
10843 2014-02-19 Tom Tromey <tromey@redhat.com>
10845 * target-delegates.c: Rebuild.
10846 * target.c (target_call_history): Unconditionally delegate.
10847 * target.h (struct target_ops) <to_call_history>: Use
10848 TARGET_DEFAULT_NORETURN.
10850 2014-02-19 Tom Tromey <tromey@redhat.com>
10852 * target-delegates.c: Rebuild.
10853 * target.c (target_call_history_from): Unconditionally delegate.
10854 * target.h (struct target_ops) <to_call_history_from>: Use
10855 TARGET_DEFAULT_NORETURN.
10857 2014-02-19 Tom Tromey <tromey@redhat.com>
10859 * target-delegates.c: Rebuild.
10860 * target.c (target_call_history_range): Unconditionally delegate.
10861 * target.h (struct target_ops) <to_call_history_range>: Use
10862 TARGET_DEFAULT_NORETURN.
10864 2014-02-19 Tom Tromey <tromey@redhat.com>
10866 * target-delegates.c: Rebuild.
10867 * target.c (target_verify_memory): Unconditionally delegate.
10868 * target.h (struct target_ops) <to_verify_memory>: Use
10869 TARGET_DEFAULT_NORETURN.
10871 2014-02-19 Tom Tromey <tromey@redhat.com>
10873 * target-delegates.c: Rebuild.
10874 * target.c (target_core_of_thread): Unconditionally delegate.
10875 * target.h (struct target_ops) <to_core_of_thread>: Use
10876 TARGET_DEFAULT_RETURN.
10878 2014-02-19 Tom Tromey <tromey@redhat.com>
10880 * target-delegates.c: Rebuild.
10881 * target.c (target_flash_done): Unconditionally delegate.
10882 * target.h (struct target_ops) <to_flash_done>: Use
10883 TARGET_DEFAULT_NORETURN.
10885 2014-02-19 Tom Tromey <tromey@redhat.com>
10887 * target-delegates.c: Rebuild.
10888 * target.c (target_flash_erase): Unconditionally delegate.
10889 * target.h (struct target_ops) <to_flash_erase>: Use
10890 TARGET_DEFAULT_NORETURN.
10892 2014-02-19 Tom Tromey <tromey@redhat.com>
10894 * target-delegates.c: Rebuild.
10895 * target.c (target_get_section_table): Unconditionally delegate.
10896 * target.h (struct target_ops) <to_get_section_table>: Use
10897 TARGET_DEFAULT_RETURN.
10899 2014-02-19 Tom Tromey <tromey@redhat.com>
10901 * target-delegates.c: Rebuild.
10902 * target.c (target_pid_to_str): Unconditionally delegate.
10903 (init_dummy_target): Don't initialize to_pid_to_str.
10904 (default_pid_to_str): Rename from dummy_pid_to_str.
10905 * target.h (struct target_ops) <to_pid_to_str>: Use
10906 TARGET_DEFAULT_FUNC.
10908 2014-02-19 Tom Tromey <tromey@redhat.com>
10910 * target-delegates.c: Rebuild.
10911 * target.c (target_find_new_threads): Unconditionally delegate.
10912 * target.h (struct target_ops) <to_find_new_threads>: Use
10913 TARGET_DEFAULT_RETURN.
10915 2014-02-19 Tom Tromey <tromey@redhat.com>
10917 * target-delegates.c: Rebuild.
10918 * target.c (target_program_signals): Unconditionally delegate.
10919 * target.h (struct target_ops) <to_program_signals>: Use
10920 TARGET_DEFAULT_IGNORE.
10922 2014-02-19 Tom Tromey <tromey@redhat.com>
10924 * target-delegates.c: Rebuild.
10925 * target.c (target_pass_signals): Unconditionally delegate.
10926 * target.h (struct target_ops) <to_pass_signals>: Use
10927 TARGET_DEFAULT_IGNORE.
10929 2014-02-19 Tom Tromey <tromey@redhat.com>
10931 * target-delegates.c: Rebuild.
10932 * target.c (default_mourn_inferior): New function.
10933 (target_mourn_inferior): Unconditionally delegate.
10934 * target.h (struct target_ops) <to_mourn_inferior>: Use
10935 TARGET_DEFAULT_FUNC.
10937 2014-02-19 Tom Tromey <tromey@redhat.com>
10939 * target-delegates.c: Rebuild.
10940 * target.c (default_follow_fork): New function.
10941 (target_follow_fork): Unconditionally delegate.
10942 * target.h (struct target_ops) <to_follow_fork>: Use
10943 TARGET_DEFAULT_FUNC.
10945 2014-02-19 Tom Tromey <tromey@redhat.com>
10947 * target-delegates.c: Rebuild.
10948 * target.c (target_kill): Unconditionally delegate.
10949 * target.h (struct target_ops) <to_kill>: Use
10950 TARGET_DEFAULT_NORETURN.
10952 2014-02-19 Tom Tromey <tromey@redhat.com>
10954 * target-delegates.c: Rebuild.
10955 * target.c (target_masked_watch_num_registers): Unconditionally
10957 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10958 Use TARGET_DEFAULT_RETURN.
10960 2014-02-19 Tom Tromey <tromey@redhat.com>
10962 * target-delegates.c: Rebuild.
10963 * target.c (target_remove_mask_watchpoint): Unconditionally
10965 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10966 TARGET_DEFAULT_RETURN.
10968 2014-02-19 Tom Tromey <tromey@redhat.com>
10970 * target-delegates.c: Rebuild.
10971 * target.c (target_insert_mask_watchpoint): Unconditionally
10973 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10974 TARGET_DEFAULT_RETURN.
10976 2014-02-19 Tom Tromey <tromey@redhat.com>
10978 * target-delegates.c: Rebuild.
10979 * target.c (target_ranged_break_num_registers): Unconditionally
10981 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10982 Use TARGET_DEFAULT_RETURN.
10984 2014-02-19 Tom Tromey <tromey@redhat.com>
10986 * target-delegates.c: Rebuild.
10987 * target.c (target_fetch_registers): Unconditionally delegate.
10988 * target.h (struct target_ops) <to_fetch_registers>: Use
10989 TARGET_DEFAULT_NORETURN.
10991 2014-02-19 Tom Tromey <tromey@redhat.com>
10993 * target-delegates.c: Rebuild.
10994 * target.c (update_current_target): Don't inherit or default
10996 * target.h (struct target_ops) <to_stop>: Use
10997 TARGET_DEFAULT_IGNORE.
10999 2014-02-19 Tom Tromey <tromey@redhat.com>
11001 * target-delegates.c: Rebuild.
11002 * target.c (update_current_target): Don't inherit or default
11003 to_can_run_breakpoint_commands.
11004 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11005 Use TARGET_DEFAULT_RETURN.
11007 2014-02-19 Tom Tromey <tromey@redhat.com>
11009 * target-delegates.c: Rebuild.
11010 * target.c (update_current_target): Don't inherit or default
11011 to_supports_evaluation_of_breakpoint_conditions.
11012 * target.h (struct target_ops)
11013 <to_supports_evaluation_of_breakpoint_conditions>: Use
11014 TARGET_DEFAULT_RETURN.
11016 2014-02-19 Tom Tromey <tromey@redhat.com>
11018 * target-delegates.c: Rebuild.
11019 * target.c (update_current_target): Don't inherit or default
11020 to_augmented_libraries_svr4_read.
11021 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11022 Use TARGET_DEFAULT_RETURN.
11024 2014-02-19 Tom Tromey <tromey@redhat.com>
11026 * target-delegates.c: Rebuild.
11027 * target.c (update_current_target): Don't inherit or default
11029 * target.h (struct target_ops) <to_can_use_agent>: Use
11030 TARGET_DEFAULT_RETURN.
11032 2014-02-19 Tom Tromey <tromey@redhat.com>
11034 * target-delegates.c: Rebuild.
11035 * target.c (update_current_target): Don't inherit or default
11037 * target.h (struct target_ops) <to_use_agent>: Use
11038 TARGET_DEFAULT_NORETURN.
11040 2014-02-19 Tom Tromey <tromey@redhat.com>
11042 * target-delegates.c: Rebuild.
11043 * target.c (update_current_target): Don't inherit or default
11044 to_traceframe_info.
11045 (return_null): Remove.
11046 * target.h (struct target_ops) <to_traceframe_info>: Use
11047 TARGET_DEFAULT_RETURN.
11049 2014-02-19 Tom Tromey <tromey@redhat.com>
11051 * target-delegates.c: Rebuild.
11052 * target.c (update_current_target): Don't inherit or default
11053 to_static_tracepoint_markers_by_strid.
11054 * target.h (struct target_ops)
11055 <to_static_tracepoint_markers_by_strid>: Use
11056 TARGET_DEFAULT_NORETURN.
11058 2014-02-19 Tom Tromey <tromey@redhat.com>
11060 * target-delegates.c: Rebuild.
11061 * target.c (update_current_target): Don't inherit or default
11062 to_static_tracepoint_marker_at.
11063 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11064 Use TARGET_DEFAULT_RETURN.
11066 2014-02-19 Tom Tromey <tromey@redhat.com>
11068 * target-delegates.c: Rebuild.
11069 * target.c (update_current_target): Don't inherit or default
11070 to_set_permissions.
11071 * target.h (struct target_ops) <to_set_permissions>: Use
11072 TARGET_DEFAULT_IGNORE.
11074 2014-02-19 Tom Tromey <tromey@redhat.com>
11076 * target-delegates.c: Rebuild.
11077 * target.c (update_current_target): Don't inherit or default
11078 to_get_tib_address.
11079 * target.h (struct target_ops) <to_get_tib_address>: Use
11080 TARGET_DEFAULT_NORETURN.
11082 2014-02-19 Tom Tromey <tromey@redhat.com>
11084 * target-delegates.c: Rebuild.
11085 * target.c (update_current_target): Don't inherit or default
11086 to_set_trace_notes.
11087 * target.h (struct target_ops) <to_set_trace_notes>: Use
11088 TARGET_DEFAULT_RETURN.
11090 2014-02-19 Tom Tromey <tromey@redhat.com>
11092 * target-delegates.c: Rebuild.
11093 * target.c (update_current_target): Don't initialize
11094 to_set_trace_buffer_size.
11095 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11096 TARGET_DEFAULT_IGNORE.
11098 2014-02-19 Tom Tromey <tromey@redhat.com>
11100 * target-delegates.c: Rebuild.
11101 * target.c (update_current_target): Don't inherit or default
11102 to_set_circular_trace_buffer.
11103 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11104 TARGET_DEFAULT_IGNORE.
11106 2014-02-19 Tom Tromey <tromey@redhat.com>
11108 * target-delegates.c: Rebuild.
11109 * target.c (update_current_target): Don't inherit or default
11110 to_set_disconnected_tracing.
11111 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11112 TARGET_DEFAULT_IGNORE.
11114 2014-02-19 Tom Tromey <tromey@redhat.com>
11116 * target-delegates.c: Rebuild.
11117 * target.c (update_current_target): Don't inherit or default
11118 to_get_min_fast_tracepoint_insn_len.
11119 (return_minus_one): Remove.
11120 * target.h (struct target_ops)
11121 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11123 2014-02-19 Tom Tromey <tromey@redhat.com>
11125 * target-delegates.c: Rebuild.
11126 * target.c (update_current_target): Don't inherit or default
11127 to_get_raw_trace_data.
11128 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11129 TARGET_DEFAULT_NORETURN.
11131 2014-02-19 Tom Tromey <tromey@redhat.com>
11133 * target-delegates.c: Rebuild.
11134 * target.c (update_current_target): Don't inherit or default
11135 to_upload_trace_state_variables.
11136 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11137 Use TARGET_DEFAULT_RETURN.
11139 2014-02-19 Tom Tromey <tromey@redhat.com>
11141 * target-delegates.c: Rebuild.
11142 * target.c (update_current_target): Don't inherit or default
11143 to_upload_tracepoints.
11144 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11145 TARGET_DEFAULT_RETURN.
11147 2014-02-19 Tom Tromey <tromey@redhat.com>
11149 * target-delegates.c: Rebuild.
11150 * target.c (update_current_target): Don't inherit or default
11151 to_save_trace_data.
11152 * target.h (struct target_ops) <to_save_trace_data>: Use
11153 TARGET_DEFAULT_NORETURN.
11155 2014-02-19 Tom Tromey <tromey@redhat.com>
11157 * target-delegates.c: Rebuild.
11158 * target.c (update_current_target): Don't inherit or default
11159 to_get_trace_state_variable_value.
11160 * target.h (struct target_ops)
11161 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11163 2014-02-19 Tom Tromey <tromey@redhat.com>
11165 * target-delegates.c: Rebuild.
11166 * target.c (update_current_target): Don't inherit or default
11168 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11170 2014-02-19 Tom Tromey <tromey@redhat.com>
11172 * target-delegates.c: Rebuild.
11173 * target.c (update_current_target): Don't inherit or default
11175 * target.h (struct target_ops) <to_trace_stop>: Use
11176 TARGET_DEFAULT_NORETURN.
11178 2014-02-19 Tom Tromey <tromey@redhat.com>
11180 * target-delegates.c: Rebuild.
11181 * target.c (update_current_target): Don't inherit or default
11182 to_get_tracepoint_status.
11183 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11184 TARGET_DEFAULT_NORETURN.
11186 2014-02-19 Tom Tromey <tromey@redhat.com>
11188 * target-delegates.c: Rebuild.
11189 * target.c (update_current_target): Don't inherit or default
11190 to_get_trace_status.
11191 * target.h (struct target_ops) <to_get_trace_status>: Use
11192 TARGET_DEFAULT_RETURN.
11194 2014-02-19 Tom Tromey <tromey@redhat.com>
11196 * target-delegates.c: Rebuild.
11197 * target.c (update_current_target): Don't inherit or default
11199 * target.h (struct target_ops) <to_trace_start>: Use
11200 TARGET_DEFAULT_NORETURN.
11202 2014-02-19 Tom Tromey <tromey@redhat.com>
11204 * target-delegates.c: Rebuild.
11205 * target.c (update_current_target): Don't inherit or default
11206 to_trace_set_readonly_regions.
11207 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11208 Use TARGET_DEFAULT_NORETURN.
11210 2014-02-19 Tom Tromey <tromey@redhat.com>
11212 * target-delegates.c: Rebuild.
11213 * target.c (update_current_target): Don't inherit or default
11214 to_disable_tracepoint.
11215 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11216 TARGET_DEFAULT_NORETURN.
11218 2014-02-19 Tom Tromey <tromey@redhat.com>
11220 * target-delegates.c: Rebuild.
11221 * target.c (update_current_target): Don't inherit or default
11222 to_enable_tracepoint.
11223 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11224 TARGET_DEFAULT_NORETURN.
11226 2014-02-19 Tom Tromey <tromey@redhat.com>
11228 * target-delegates.c: Rebuild.
11229 * target.c (update_current_target): Don't inherit or default
11230 to_download_trace_state_variable.
11231 * target.h (struct target_ops) <to_download_trace_state_variable>:
11232 Use TARGET_DEFAULT_NORETURN.
11234 2014-02-19 Tom Tromey <tromey@redhat.com>
11236 * target-delegates.c: Rebuild.
11237 * target.c (update_current_target): Don't inherit or default
11238 to_can_download_tracepoint.
11239 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11240 TARGET_DEFAULT_RETURN.
11242 2014-02-19 Tom Tromey <tromey@redhat.com>
11244 * target-delegates.c: Rebuild.
11245 * target.c (update_current_target): Don't inherit or default
11246 to_download_tracepoint.
11247 * target.h (struct target_ops) <to_download_tracepoint>: Use
11248 TARGET_DEFAULT_NORETURN.
11250 2014-02-19 Tom Tromey <tromey@redhat.com>
11252 * target-delegates.c: Rebuild.
11253 * target.c (update_current_target): Don't inherit or default
11255 * target.h (struct target_ops) <to_trace_init>: Use
11256 TARGET_DEFAULT_RETURN.
11258 2014-02-19 Tom Tromey <tromey@redhat.com>
11260 * target-delegates.c: Rebuild.
11261 * target.c (update_current_target): Don't inherit or default
11262 to_supports_string_tracing.
11263 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11264 TARGET_DEFAULT_RETURN.
11266 2014-02-19 Tom Tromey <tromey@redhat.com>
11268 * target-delegates.c: Rebuild.
11269 * target.c (update_current_target): Don't inherit or default
11270 to_supports_enable_disable_tracepoint.
11271 * target.h (struct target_ops)
11272 <to_supports_enable_disable_tracepoint>: Use
11273 TARGET_DEFAULT_RETURN.
11275 2014-02-19 Tom Tromey <tromey@redhat.com>
11277 * target-delegates.c: Rebuild.
11278 * target.c (update_current_target): Don't inherit or default
11279 to_supports_multi_process.
11280 * target.h (struct target_ops) <to_supports_multi_process>: Use
11281 TARGET_DEFAULT_RETURN.
11283 2014-02-19 Tom Tromey <tromey@redhat.com>
11285 * target-delegates.c: Rebuild.
11286 * target.c (update_current_target): Don't inherit or default
11287 to_get_ada_task_ptid.
11288 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11289 TARGET_DEFAULT_FUNC.
11291 2014-02-19 Tom Tromey <tromey@redhat.com>
11293 * target-delegates.c: Rebuild.
11294 * target.c (update_current_target): Don't inherit or default
11295 to_thread_architecture.
11296 * target.h (struct target_ops) <to_thread_architecture>: Use
11297 TARGET_DEFAULT_FUNC.
11299 2014-02-19 Tom Tromey <tromey@redhat.com>
11301 * target-delegates.c: Rebuild.
11302 * target.c (update_current_target): Don't inherit or default
11303 to_execution_direction.
11304 * target.h (struct target_ops) <to_execution_direction>: Use
11305 TARGET_DEFAULT_FUNC.
11307 2014-02-19 Tom Tromey <tromey@redhat.com>
11309 * target-delegates.c: Rebuild.
11310 * target.c (update_current_target): Don't inherit or default
11311 to_can_execute_reverse.
11312 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11313 TARGET_DEFAULT_RETURN.
11314 (target_can_execute_reverse): Unconditionally delegate.
11316 2014-02-19 Tom Tromey <tromey@redhat.com>
11318 * target-delegates.c: Rebuild.
11319 * target.c (update_current_target): Don't inherit or default
11321 (dummy_goto_bookmark): Remove.
11322 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11323 * target.h (struct target_ops) <to_goto_bookmark>: Use
11324 TARGET_DEFAULT_NORETURN.
11326 2014-02-19 Tom Tromey <tromey@redhat.com>
11328 * target-delegates.c: Rebuild.
11329 * target.c (update_current_target): Don't inherit or default
11331 (dummy_get_bookmark): Remove.
11332 (init_dummy_target): Don't inherit or default to_get_bookmark.
11333 * target.h (struct target_ops) <to_get_bookmark>: Use
11334 TARGET_DEFAULT_NORETURN
11336 2014-02-19 Tom Tromey <tromey@redhat.com>
11338 * target-delegates.c: Rebuild.
11339 * target.c (update_current_target): Don't inherit or default
11340 to_make_corefile_notes.
11341 (init_dummy_target): Don't initialize to_make_corefile_notes.
11342 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11343 TARGET_DEFAULT_FUNC.
11345 2014-02-19 Tom Tromey <tromey@redhat.com>
11347 * target-delegates.c: Rebuild.
11348 * target.c (update_current_target): Don't inherit or default
11349 to_find_memory_regions.
11350 (init_dummy_target): Don't initialize to_find_memory_regions.
11351 * target.h (struct target_ops) <to_find_memory_regions>: Use
11352 TARGET_DEFAULT_FUNC.
11354 2014-02-19 Tom Tromey <tromey@redhat.com>
11356 * target-delegates.c: Rebuild.
11357 * target.c (update_current_target): Don't inherit or default
11359 * target.h (struct target_ops) <to_log_command>: Use
11360 TARGET_DEFAULT_IGNORE.
11361 (target_log_command): Unconditionally delegate.
11363 2014-02-19 Tom Tromey <tromey@redhat.com>
11365 * target-delegates.c: Rebuild.
11366 * target.c (update_current_target): Don't inherit or default
11367 to_pid_to_exec_file.
11368 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11369 TARGET_DEFAULT_RETURN.
11371 2014-02-19 Tom Tromey <tromey@redhat.com>
11373 * target-delegates.c: Rebuild.
11374 * target.c (update_current_target): Don't inherit or default
11376 (target_thread_name): Unconditionally delegate.
11377 * target.h (struct target_ops) <to_thread_name>: Use
11378 TARGET_DEFAULT_RETURN.
11380 2014-02-19 Tom Tromey <tromey@redhat.com>
11382 * target-delegates.c: Rebuild.
11383 * target.c (update_current_target): Don't inherit or default
11384 to_extra_thread_info.
11385 * target.h (struct target_ops) <to_extra_thread_info>: Use
11386 TARGET_DEFAULT_RETURN.
11388 2014-02-19 Tom Tromey <tromey@redhat.com>
11390 * target-delegates.c: Rebuild.
11391 * target.c (update_current_target): Don't inherit or default
11393 * target.h (struct target_ops) <to_has_exited>: Use
11394 TARGET_DEFAULT_RETURN..
11396 2014-02-19 Tom Tromey <tromey@redhat.com>
11398 * target-delegates.c: Rebuild.
11399 * target.c (update_current_target): Don't inherit or default
11400 to_set_syscall_catchpoint.
11401 (return_one): Remove.
11402 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11403 TARGET_DEFAULT_RETURN.
11405 2014-02-19 Tom Tromey <tromey@redhat.com>
11407 * target-delegates.c: Rebuild.
11408 * target.c (update_current_target): Don't inherit or default
11409 to_insert_exec_catchpoint.
11410 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11411 TARGET_DEFAULT_RETURN.
11413 2014-01-08 Tom Tromey <tromey@redhat.com>
11415 * target-delegates.c: Rebuild.
11416 * target.c (update_current_target): Don't inherit or default
11417 to_insert_exec_catchpoint.
11418 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11419 TARGET_DEFAULT_RETURN.
11421 2014-02-19 Tom Tromey <tromey@redhat.com>
11423 * target-delegates.c: Rebuild.
11424 * target.c (update_current_target): Don't inherit or default
11425 to_remove_vfork_catchpoint.
11426 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11427 TARGET_DEFAULT_RETURN.
11429 2014-02-19 Tom Tromey <tromey@redhat.com>
11431 * target-delegates.c: Rebuild.
11432 * target.c (update_current_target): Don't inherit or default
11433 to_insert_vfork_catchpoint.
11434 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11435 TARGET_DEFAULT_RETURN.
11437 2014-02-19 Tom Tromey <tromey@redhat.com>
11439 * target-delegates.c: Rebuild.
11440 * target.c (update_current_target): Don't inherit or default
11441 to_remove_fork_catchpoint.
11442 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11443 TARGET_DEFAULT_RETURN.
11445 2014-02-19 Tom Tromey <tromey@redhat.com>
11447 * target-delegates.c: Rebuild.
11448 * target.c (update_current_target): Don't inherit or default
11449 to_insert_fork_catchpoint.
11450 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11451 TARGET_DEFAULT_RETURN.
11453 2014-02-19 Tom Tromey <tromey@redhat.com>
11455 * target-delegates.c: Rebuild.
11456 * target.c (update_current_target): Don't inherit or default
11457 to_post_startup_inferior.
11458 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11459 TARGET_DEFAULT_IGNORE.
11461 2014-02-19 Tom Tromey <tromey@redhat.com>
11463 * target-delegates.c: Rebuild.
11464 * target.c (update_current_target): Don't inherit or default
11466 * target.h (struct target_ops) <to_load>: Use
11467 TARGET_DEFAULT_NORETURN.
11469 2014-02-19 Tom Tromey <tromey@redhat.com>
11471 * target-delegates.c: Rebuild.
11472 * target.c (update_current_target): Don't inherit or default
11474 * target.h (struct target_ops) <to_terminal_info>: Use
11475 TARGET_DEFAULT_FUNC.
11477 2014-02-19 Tom Tromey <tromey@redhat.com>
11479 * target-delegates.c: Rebuild.
11480 * target.c (update_current_target): Don't inherit or default
11481 to_terminal_save_ours.
11482 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11483 TARGET_DEFAULT_IGNORE.
11485 2014-02-19 Tom Tromey <tromey@redhat.com>
11487 * target-delegates.c: Rebuild.
11488 * target.c (update_current_target): Don't inherit or default
11490 * target.h (struct target_ops) <to_terminal_ours>: Use
11491 TARGET_DEFAULT_IGNORE.
11493 2014-02-19 Tom Tromey <tromey@redhat.com>
11495 * target-delegates.c: Rebuild.
11496 * target.c (update_current_target): Don't inherit or default
11497 to_terminal_ours_for_output.
11498 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11499 TARGET_DEFAULT_IGNORE.
11501 2014-02-19 Tom Tromey <tromey@redhat.com>
11503 * target-delegates.c: Rebuild.
11504 * target.c (update_current_target): Don't inherit or default
11505 to_terminal_inferior.
11506 * target.h (struct target_ops) <to_terminal_inferior>: Use
11507 TARGET_DEFAULT_IGNORE.
11509 2014-02-19 Tom Tromey <tromey@redhat.com>
11511 * target-delegates.c: Rebuild.
11512 * target.c (update_current_target): Don't inherit or default
11514 * target.h (struct target_ops) <to_terminal_init>: Use
11515 TARGET_DEFAULT_IGNORE.
11517 2014-02-19 Tom Tromey <tromey@redhat.com>
11519 * target-delegates.c: Rebuild.
11520 * target.c (update_current_target): Don't inherit or default
11521 to_can_accel_watchpoint_condition.
11522 * target.h (struct target_ops)
11523 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11525 2014-02-19 Tom Tromey <tromey@redhat.com>
11527 * target-delegates.c: Rebuild.
11528 * target.c (update_current_target): Don't inherit or default
11529 to_region_ok_for_hw_watchpoint.
11530 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11531 Use TARGET_DEFAULT_FUNC.
11533 2014-02-19 Tom Tromey <tromey@redhat.com>
11535 * target-delegates.c: Rebuild.
11536 * target.c (update_current_target): Don't inherit or default
11537 to_watchpoint_addr_within_range.
11538 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11539 Use TARGET_DEFAULT_FUNC.
11541 2014-02-19 Tom Tromey <tromey@redhat.com>
11543 * target-delegates.c: Rebuild.
11544 * target.c (update_current_target): Don't inherit or default
11545 to_remove_watchpoint.
11546 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11547 TARGET_DEFAULT_NORETURN.
11549 2014-02-19 Tom Tromey <tromey@redhat.com>
11551 * target-delegates.c: Rebuild.
11552 * target.c (update_current_target): Don't inherit or default
11553 to_insert_watchpoint.
11554 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11555 TARGET_DEFAULT_RETURN.
11557 2014-02-19 Tom Tromey <tromey@redhat.com>
11559 * target-delegates.c: Rebuild.
11560 * target.c (update_current_target): Don't inherit or default
11561 to_remove_hw_breakpoint.
11562 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11563 TARGET_DEFAULT_RETURN.
11565 2014-02-19 Tom Tromey <tromey@redhat.com>
11567 * target-delegates.c: Rebuild.
11568 * target.c (update_current_target): Don't inherit or default
11569 to_insert_hw_breakpoint.
11570 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11571 TARGET_DEFAULT_RETURN.
11573 2014-02-19 Tom Tromey <tromey@redhat.com>
11575 * target-delegates.c: Rebuild.
11576 * target.c (update_current_target): Don't inherit or default
11577 to_can_use_hw_breakpoint.
11578 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11579 TARGET_DEFAULT_RETURN.
11581 2014-02-19 Tom Tromey <tromey@redhat.com>
11583 * target-delegates.c: Rebuild.
11584 * target.c (update_current_target): Don't inherit or default
11586 * target.h (struct target_ops) <to_files_info>: Use
11587 TARGET_DEFAULT_IGNORE.
11589 2014-02-19 Tom Tromey <tromey@redhat.com>
11591 * target-delegates.c: Rebuild.
11592 * target.c (update_current_target): Don't inherit or default
11594 * target.h (struct target_ops) <to_store>: Use
11595 TARGET_DEFAULT_NORETURN.
11597 2014-02-19 Tom Tromey <tromey@redhat.com>
11599 * target-delegates.c: Rebuild.
11600 * target.c (update_current_target): Don't inherit or default
11602 * target.h (struct target_ops) <to_post_attach>: Use
11603 TARGET_DEFAULT_IGNORE.
11605 2014-02-19 Tom Tromey <tromey@redhat.com>
11607 * target-delegates.c: Rebuild.
11608 * target.c (update_current_target): Don't inherit or default
11610 (default_rcmd): New function.
11611 (do_monitor_command): Unconditionally delegate.
11612 * target.h (struct target_ops) <to_rmcd>: Use
11613 TARGET_DEFAULT_FUNC.
11615 2014-02-19 Tom Tromey <tromey@redhat.com>
11617 * target-delegates.c: Rebuild.
11618 * target.c (init_dummy_target): Don't initialize to_attach.
11619 (target_attach): Unconditionally delegate.
11620 * target.h (struct target_ops) <to_attach>: Use
11621 TARGET_DEFAULT_FUNC.
11623 2014-02-19 Tom Tromey <tromey@redhat.com>
11625 * target-delegates.c: Rebuild.
11626 * target.c (target_detach): Unconditionally delegate.
11627 (init_dummy_target): Don't initialize to_detach.
11628 * target.h (struct target_ops) <to_detach>: Use
11629 TARGET_DEFAULT_IGNORE.
11631 2014-02-19 Tom Tromey <tromey@redhat.com>
11633 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11635 (target_augmented_libraries_svr4_read): Add argument.
11636 * target.c (update_current_target): Update.
11637 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11640 2014-02-19 Tom Tromey <tromey@redhat.com>
11642 * target.h (struct target_ops) <to_call_history_range>: Add
11644 * target.c (target_call_history_range): Add argument.
11645 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11647 (record_btrace_call_history_from): Update.
11649 2014-02-19 Tom Tromey <tromey@redhat.com>
11651 * target.h (struct target_ops) <to_call_history_from>: Add
11653 * target.c (target_call_history_from): Add argument.
11654 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11657 2014-02-19 Tom Tromey <tromey@redhat.com>
11659 * target.h (struct target_ops) <to_call_history>: Add argument.
11660 * target.c (target_call_history): Add argument.
11661 * record-btrace.c (record_btrace_call_history): Add 'self'
11664 2014-02-19 Tom Tromey <tromey@redhat.com>
11666 * target.h (struct target_ops) <to_insn_history_range>: Add
11668 * target.c (target_insn_history_range): Add argument.
11669 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11671 (record_btrace_insn_history_from): Update.
11673 2014-02-19 Tom Tromey <tromey@redhat.com>
11675 * target.h (struct target_ops) <to_insn_history_from>: Add
11677 * target.c (target_insn_history_from): Add argument.
11678 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11681 2014-02-19 Tom Tromey <tromey@redhat.com>
11683 * target.h (struct target_ops) <to_insn_history>: Add argument.
11684 * target.c (target_insn_history): Add argument.
11685 * record-btrace.c (record_btrace_insn_history): Add 'self'
11688 2014-02-19 Tom Tromey <tromey@redhat.com>
11690 * target.h (struct target_ops) <to_goto_record>: Add argument.
11691 * target.c (target_goto_record): Add argument.
11692 * record-full.c (record_full_goto): Add 'self' argument.
11693 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11695 2014-02-19 Tom Tromey <tromey@redhat.com>
11697 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11698 * target.c (target_goto_record_end): Add argument.
11699 * record-full.c (record_full_goto_end): Add 'self' argument.
11700 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11702 2014-02-19 Tom Tromey <tromey@redhat.com>
11704 * target.h (struct target_ops) <to_goto_record_begin>: Add
11706 * target.c (target_goto_record_begin): Add argument.
11707 * record-full.c (record_full_goto_begin): Add 'self' argument.
11708 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11711 2014-02-19 Tom Tromey <tromey@redhat.com>
11713 * target.h (struct target_ops) <to_record_is_replaying>: Add
11715 * target.c (target_record_is_replaying): Add argument.
11716 * record-full.c (record_full_is_replaying): Add 'self' argument.
11717 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11719 (record_btrace_xfer_partial, record_btrace_store_registers)
11720 (record_btrace_prepare_to_store, record_btrace_resume)
11721 (record_btrace_wait, record_btrace_decr_pc_after_break)
11722 (record_btrace_find_new_threads, record_btrace_thread_alive):
11725 2014-02-19 Tom Tromey <tromey@redhat.com>
11727 * target.h (struct target_ops) <to_delete_record>: Add argument.
11728 * target.c (target_delete_record): Add argument.
11729 * record-full.c (record_full_delete): Add 'self' argument.
11731 2014-02-19 Tom Tromey <tromey@redhat.com>
11733 * target.h (struct target_ops) <to_save_record>: Add argument.
11734 * target.c (target_save_record): Add argument.
11735 * record-full.c (record_full_save): Add 'self' argument.
11736 (record_full_save): Add 'self' argument.
11738 2014-02-19 Tom Tromey <tromey@redhat.com>
11740 * target.h (struct target_ops) <to_info_record>: Add argument.
11741 * target.c (target_info_record): Add argument.
11742 * record.c (info_record_command): Add argument.
11743 * record-full.c (record_full_info): Add 'self' argument.
11744 * record-btrace.c (record_btrace_info): Add 'self' argument.
11746 2014-02-19 Tom Tromey <tromey@redhat.com>
11748 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11749 * target.c (target_stop_recording): Add argument.
11750 * record.c (record_stop): Add argument.
11751 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11754 2014-02-19 Tom Tromey <tromey@redhat.com>
11756 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11757 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11758 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11760 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11761 (_initialize_amd64_linux_nat): Use it.
11762 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11763 (_initialize_i386_linux_nat): Use it.
11765 2014-02-19 Tom Tromey <tromey@redhat.com>
11767 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11768 * target.c (target_teardown_btrace): Add argument.
11769 * remote.c (remote_teardown_btrace): Add 'self' argument.
11770 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11772 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11775 2014-02-19 Tom Tromey <tromey@redhat.com>
11777 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11778 * target.c (target_disable_btrace): Add argument.
11779 * remote.c (remote_disable_btrace): Add 'self' argument.
11780 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11782 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11785 2014-02-19 Tom Tromey <tromey@redhat.com>
11787 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11788 * target.c (target_enable_btrace): Add argument.
11789 * remote.c (remote_enable_btrace): Add 'self' argument.
11790 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11792 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11795 2014-02-19 Tom Tromey <tromey@redhat.com>
11797 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11798 (target_can_use_agent): Add argument.
11799 * target.c (update_current_target): Update.
11800 * remote.c (remote_can_use_agent): Add 'self' argument.
11801 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11803 2014-02-19 Tom Tromey <tromey@redhat.com>
11805 * target.h (struct target_ops) <to_use_agent>: Add argument.
11806 (target_use_agent): Add argument.
11807 * target.c (update_current_target): Update.
11808 * remote.c (remote_use_agent): Add 'self' argument.
11809 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11811 2014-02-19 Tom Tromey <tromey@redhat.com>
11813 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11814 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11815 (target_traceframe_info): Add argument.
11816 * target.c (update_current_target): Update.
11817 * remote.c (remote_traceframe_info): Add 'self' argument.
11818 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11820 2014-02-19 Tom Tromey <tromey@redhat.com>
11822 * target.h (target_static_tracepoint_markers_by_strid): Add
11824 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11826 * target.c (update_current_target): Update.
11827 * remote.c (struct target_ops)
11828 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11829 * linux-nat.c (struct target_ops)
11830 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11832 2014-02-19 Tom Tromey <tromey@redhat.com>
11834 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11836 (target_static_tracepoint_marker_at): Add argument.
11837 * target.c (update_current_target): Update.
11838 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11841 2014-02-19 Tom Tromey <tromey@redhat.com>
11843 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11844 (target_set_permissions): Add argument.
11845 * target.c (update_current_target): Update.
11846 * remote.c (remote_set_permissions): Add 'self' argument.
11847 (remote_start_remote): Update.
11849 2014-02-19 Tom Tromey <tromey@redhat.com>
11851 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11852 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11853 (target_get_tib_address): Add argument.
11854 * target.c (update_current_target): Update.
11855 * remote.c (remote_get_tib_address): Add 'self' argument.
11857 2014-02-19 Tom Tromey <tromey@redhat.com>
11859 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11860 (target_set_trace_notes): Add argument.
11861 * target.c (update_current_target): Update.
11862 * remote.c (remote_set_trace_notes): Add 'self' argument.
11864 2014-02-19 Tom Tromey <tromey@redhat.com>
11866 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11868 (target_set_trace_buffer_size): Add argument.
11869 * target.c (update_current_target): Update.
11870 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11872 2014-02-19 Tom Tromey <tromey@redhat.com>
11874 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11876 (target_set_circular_trace_buffer): Add argument.
11877 * target.c (update_current_target): Update.
11878 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11881 2014-02-19 Tom Tromey <tromey@redhat.com>
11883 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11885 (target_set_disconnected_tracing): Add argument.
11886 * target.c (update_current_target): Update.
11887 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11889 2014-02-19 Tom Tromey <tromey@redhat.com>
11891 * target.h (struct target_ops)
11892 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11893 (target_get_min_fast_tracepoint_insn_len): Add argument.
11894 * target.c (update_current_target): Update.
11895 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11898 2014-02-19 Tom Tromey <tromey@redhat.com>
11900 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11902 (target_get_raw_trace_data): Add argument.
11903 * target.c (update_current_target): Update.
11904 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11906 2014-02-19 Tom Tromey <tromey@redhat.com>
11908 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11910 (target_upload_trace_state_variables): Add argument.
11911 * target.c (update_current_target): Update.
11912 * remote.c (remote_upload_trace_state_variables): Add 'self'
11914 (remote_start_remote): Update.
11916 2014-02-19 Tom Tromey <tromey@redhat.com>
11918 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11920 (target_upload_tracepoints): Add argument.
11921 * target.c (update_current_target): Update.
11922 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11923 (remote_start_remote): Update.
11925 2014-02-19 Tom Tromey <tromey@redhat.com>
11927 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11928 (target_save_trace_data): Add argument.
11929 * target.c (update_current_target): Update.
11930 * remote.c (remote_save_trace_data): Add 'self' argument.
11932 2014-02-19 Tom Tromey <tromey@redhat.com>
11934 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11936 * target.h (struct target_ops)
11937 <to_get_trace_state_variable_value>: Add argument.
11938 (target_get_trace_state_variable_value): Add argument.
11939 * target.c (update_current_target): Update.
11940 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11942 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11944 2014-02-19 Tom Tromey <tromey@redhat.com>
11946 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11947 * target.h (struct target_ops) <to_trace_find>: Add argument.
11948 (target_trace_find): Add argument.
11949 * target.c (update_current_target): Update.
11950 * remote.c (remote_trace_find): Add 'self' argument.
11951 * ctf.c (ctf_trace_find): Add 'self' argument.
11953 2014-02-19 Tom Tromey <tromey@redhat.com>
11955 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11956 (target_trace_stop): Add argument.
11957 * target.c (update_current_target): Update.
11958 * remote.c (remote_trace_stop): Add 'self' argument.
11960 2014-02-19 Tom Tromey <tromey@redhat.com>
11962 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11963 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11965 (target_get_tracepoint_status): Add argument.
11966 * target.c (update_current_target): Update.
11967 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11969 2014-02-19 Tom Tromey <tromey@redhat.com>
11971 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11972 * target.h (struct target_ops) <to_get_trace_status>: Add
11974 (target_get_trace_status): Add argument.
11975 * target.c (update_current_target): Update.
11976 * remote.c (remote_get_trace_status): Add 'self' argument.
11977 (remote_start_remote, remote_can_download_tracepoint): Update.
11978 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11980 2014-02-19 Tom Tromey <tromey@redhat.com>
11982 * target.h (struct target_ops) <to_trace_start>: Add argument.
11983 (target_trace_start): Add argument.
11984 * target.c (update_current_target): Update.
11985 * remote.c (remote_trace_start): Add 'self' argument.
11987 2014-02-19 Tom Tromey <tromey@redhat.com>
11989 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11991 (target_trace_set_readonly_regions): Add argument.
11992 * target.c (update_current_target): Update.
11993 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11996 2014-02-19 Tom Tromey <tromey@redhat.com>
11998 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12000 (target_disable_tracepoint): Add argument.
12001 * target.c (update_current_target): Update.
12002 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12004 2014-02-19 Tom Tromey <tromey@redhat.com>
12006 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12008 (target_enable_tracepoint): Add argument.
12009 * target.c (update_current_target): Update.
12010 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12012 2014-02-19 Tom Tromey <tromey@redhat.com>
12014 * target.h (struct target_ops) <to_download_trace_state_variable>:
12016 (target_download_trace_state_variable): Add argument.
12017 * target.c (update_current_target): Update.
12018 * remote.c (remote_download_trace_state_variable): Add 'self'
12021 2014-02-19 Tom Tromey <tromey@redhat.com>
12023 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12025 (target_can_download_tracepoint): Add argument.
12026 * target.c (update_current_target): Update.
12027 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12029 2014-02-19 Tom Tromey <tromey@redhat.com>
12031 * target.h (struct target_ops) <to_download_tracepoint>: Add
12033 (target_download_tracepoint): Add argument.
12034 * target.c (update_current_target): Update.
12035 * remote.c (remote_download_tracepoint): Add 'self' argument.
12037 2014-02-19 Tom Tromey <tromey@redhat.com>
12039 * target.h (struct target_ops) <to_trace_init>: Add argument.
12040 (target_trace_init): Add argument.
12041 * target.c (update_current_target): Update.
12042 * remote.c (remote_trace_init): Add 'self' argument.
12044 2014-02-19 Tom Tromey <tromey@redhat.com>
12046 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12047 * target.c (target_fileio_readlink): Add argument.
12048 * remote.c (remote_hostio_readlink): Add 'self' argument.
12049 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12051 2014-02-19 Tom Tromey <tromey@redhat.com>
12053 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12054 * target.c (target_fileio_unlink): Add argument.
12055 * remote.c (remote_hostio_unlink): Add 'self' argument.
12056 (remote_file_delete): Update.
12057 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12059 2014-02-19 Tom Tromey <tromey@redhat.com>
12061 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12062 * target.c (target_fileio_close): Add argument.
12063 * remote.c (remote_hostio_close): Add 'self' argument.
12064 (remote_hostio_close_cleanup): Update.
12065 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12067 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12069 2014-02-19 Tom Tromey <tromey@redhat.com>
12071 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12072 * target.c (target_fileio_pread): Add argument.
12073 * remote.c (remote_hostio_pread): Add 'self' argument.
12074 (remote_bfd_iovec_pread, remote_file_get): Update.
12075 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12077 2014-02-19 Tom Tromey <tromey@redhat.com>
12079 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12080 * target.c (target_fileio_pwrite): Add argument.
12081 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12082 (remote_file_put): Update.
12083 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12085 2014-02-19 Tom Tromey <tromey@redhat.com>
12087 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12088 * target.c (target_fileio_open): Add argument.
12089 * remote.c (remote_hostio_open): Add 'self' argument.
12090 (remote_bfd_iovec_open): Add 'self' argument.
12091 (remote_file_put): Add 'self' argument.
12092 (remote_file_get): Add 'self' argument.
12093 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12095 2014-02-19 Tom Tromey <tromey@redhat.com>
12097 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12099 (target_can_run_breakpoint_commands): Add argument.
12100 * target.c (update_current_target): Update.
12101 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12103 (remote_insert_breakpoint): Add 'self' argument.
12104 (remote_insert_hw_breakpoint): Add 'self' argument.
12105 (remote_can_run_breakpoint_commands): Add 'self' argument.
12107 2014-02-19 Tom Tromey <tromey@redhat.com>
12109 * target.h (struct target_ops)
12110 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12111 (target_supports_evaluation_of_breakpoint_conditions): Add
12113 * target.c (update_current_target): Update.
12114 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12116 (remote_insert_breakpoint): Add 'self' argument.
12117 (remote_insert_hw_breakpoint): Add 'self' argument.
12118 (remote_supports_cond_breakpoints): Add 'self' argument.
12120 2014-02-19 Tom Tromey <tromey@redhat.com>
12122 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12124 (target_supports_string_tracing): Add argument.
12125 * target.c (update_current_target): Update.
12126 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12128 2014-02-19 Tom Tromey <tromey@redhat.com>
12130 * target.h (struct target_ops)
12131 <to_supports_disable_randomization>: Add argument.
12132 * target.c (find_default_supports_disable_randomization): Add
12134 (target_supports_disable_randomization): Add argument.
12135 (find_default_supports_disable_randomization): Add 'self'
12137 * remote.c (extended_remote_supports_disable_randomization): Add
12139 (remote_supports_disable_randomization): Add 'self' argument.
12140 (extended_remote_create_inferior): Update.
12141 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12144 2014-02-19 Tom Tromey <tromey@redhat.com>
12146 * target.h (struct target_ops)
12147 <to_supports_enable_disable_tracepoint>: Add argument.
12148 (target_supports_enable_disable_tracepoint): Add argument.
12149 * target.c (update_current_target): Update.
12150 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12153 2014-02-19 Tom Tromey <tromey@redhat.com>
12155 * target.h (struct target_ops) <to_supports_multi_process>: Add
12157 (target_supports_multi_process): Add argument.
12158 * target.c (update_current_target): Update.
12159 * remote.c (remote_supports_multi_process): Add 'self' argument.
12160 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12162 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12165 2014-02-19 Tom Tromey <tromey@redhat.com>
12167 * target.h (struct target_ops) <to_execution_direction>: Add
12169 (target_execution_direction): Add argument.
12170 * target.c (default_execution_direction): Add 'self' argument.
12171 * record-full.c (record_full_execution_direction): Add 'self'
12174 2014-02-19 Tom Tromey <tromey@redhat.com>
12176 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12178 (target_can_execute_reverse): Add argument.
12179 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12180 * record-full.c (record_full_can_execute_reverse): Add 'self'
12182 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12185 2014-02-19 Tom Tromey <tromey@redhat.com>
12187 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12188 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12190 (target_get_ada_task_ptid): Add argument.
12191 * target.c (update_current_target): Update.
12192 (default_get_ada_task_ptid): Add 'self' argument.
12193 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12194 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12195 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12197 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12199 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12201 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12203 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12204 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12207 2014-02-19 Tom Tromey <tromey@redhat.com>
12209 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12210 (target_goto_bookmark): Add argument.
12211 * target.c (dummy_goto_bookmark): Add 'self' argument.
12212 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12214 2014-02-19 Tom Tromey <tromey@redhat.com>
12216 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12217 (target_get_bookmark): Add argument.
12218 * target.c (dummy_get_bookmark): Add 'self' argument.
12219 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12221 2014-02-19 Tom Tromey <tromey@redhat.com>
12223 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12225 (target_make_corefile_notes): Add argument.
12226 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12227 * procfs.c (procfs_make_note_section): Add 'self' argument.
12228 (procfs_make_note_section): Add 'self' argument.
12229 (procfs_make_note_section): Add 'self' argument.
12230 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12232 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12233 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12234 * exec.c (exec_make_note_section): Add 'self' argument.
12235 (exec_make_note_section): Add 'self' argument.
12237 2014-02-19 Tom Tromey <tromey@redhat.com>
12239 * target.h (struct target_ops) <to_find_memory_regions>: Add
12241 (target_find_memory_regions): Add argument.
12242 * target.c (dummy_find_memory_regions): Add 'self' argument.
12243 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12244 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12245 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12246 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12247 * exec. (exec_do_find_memory_regions): New global.
12248 (exec_set_find_memory_regions): Rewrite.
12249 (exec_find_memory_regions): New function.
12250 (init_exec_ops): Use exec_find_memory_regions.
12252 2014-02-19 Tom Tromey <tromey@redhat.com>
12254 * target.h (struct target_ops) <to_supports_non_stop>: Add
12256 * target.c (find_default_supports_non_stop): Add argument.
12257 (target_supports_non_stop): Add argument.
12258 (find_default_supports_non_stop): Add 'self' argument.
12259 * remote.c (remote_supports_non_stop): Add 'self' argument.
12260 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12262 2014-02-19 Tom Tromey <tromey@redhat.com>
12264 * target.h (struct target_ops) <to_log_command>: Add argument.
12265 (target_log_command): Add argument.
12266 * serial.h (serial_log_command): Add 'self' argument.
12267 * serial.c (serial_log_command): Add 'self' argument.
12269 2014-02-19 Tom Tromey <tromey@redhat.com>
12271 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12272 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12274 (target_pid_to_exec_file): Add argument.
12275 * target.c (debug_to_pid_to_exec_file): Add argument.
12276 (update_current_target): Update.
12277 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12278 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12279 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12280 (linux_handle_extended_wait): Update.
12281 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12282 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12283 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12284 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12286 2014-02-19 Tom Tromey <tromey@redhat.com>
12288 * target.h (struct target_ops) <to_rcmd>: Add argument.
12289 (target_rcmd): Add argument.
12290 * target.c (debug_to_rcmd): Add argument.
12291 (update_current_target, do_monitor_command): Update.
12292 * remote.c (remote_rcmd): Add 'self' argument.
12293 * monitor.c (monitor_rcmd): Add 'self' argument.
12295 2014-02-19 Tom Tromey <tromey@redhat.com>
12297 * windows-nat.c (windows_stop): Add 'self' argument.
12298 * target.h (struct target_ops) <to_stop>: Add argument.
12299 * target.c (target_stop): Add argument.
12300 (debug_to_stop): Add argument.
12301 (update_current_target): Update.
12302 * remote.c (remote_stop): Add 'self' argument.
12303 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12304 (gdbsim_cntrl_c): Update.
12305 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12306 * procfs.c (procfs_stop): Add 'self' argument.
12307 * nto-procfs.c (procfs_stop): Add 'self' argument.
12308 * monitor.c (monitor_stop): Add 'self' argument.
12309 (monitor_open): Update.
12310 * linux-nat.c (linux_nat_stop): Add argument.
12311 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12312 * gnu-nat.c (gnu_stop): Add 'self' argument.
12313 * darwin-nat.c (darwin_stop): Add 'self' argument.
12315 2014-02-19 Tom Tromey <tromey@redhat.com>
12317 * target.h (struct target_ops) <to_thread_name>: Add argument.
12318 * target.c (target_thread_name): Add argument.
12319 (update_current_target): Update.
12320 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12322 2014-02-19 Tom Tromey <tromey@redhat.com>
12324 * target.h (struct target_ops) <to_extra_thread_info>: Add
12326 (target_extra_thread_info): Add argument.
12327 * target.c (update_current_target): Update.
12328 * remote.c (remote_threads_extra_info): Add 'self' argument.
12329 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12331 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12332 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12333 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12335 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12337 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12339 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12342 2014-02-19 Tom Tromey <tromey@redhat.com>
12344 * target.h (struct target_ops) <to_program_signals>: Add argument.
12345 * target.c (target_program_signals): Add argument.
12346 * remote.c (remote_program_signals): Add 'self' argument.
12348 2014-02-19 Tom Tromey <tromey@redhat.com>
12350 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12351 * target.c (target_pass_signals): Add argument.
12352 * remote.c (remote_pass_signals): Add 'self' argument.
12353 (remote_start_remote): Update.
12354 * procfs.c (procfs_pass_signals): Add 'self' argument.
12355 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12356 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12357 (linux_nat_create_inferior, linux_nat_attach): Update.
12359 2014-02-19 Tom Tromey <tromey@redhat.com>
12361 * windows-nat.c (windows_can_run): Add 'self' argument.
12362 * target.h (struct target_ops) <to_can_run>: Add argument.
12363 (target_can_run): Add argument.
12364 * target.c (debug_to_can_run): Add argument.
12365 (update_current_target): Update.
12366 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12367 * inf-child.c (inf_child_can_run): Add 'self' argument.
12368 * go32-nat.c (go32_can_run): Add 'self' argument.
12370 2014-02-19 Tom Tromey <tromey@redhat.com>
12372 * target.h (struct target_ops) <to_has_exited>: Add argument.
12373 (target_has_exited): Add argument.
12374 * target.c (debug_to_has_exited): Add argument.
12375 (update_current_target): Update.
12377 2014-02-19 Tom Tromey <tromey@redhat.com>
12379 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12381 (target_set_syscall_catchpoint): Add argument.
12382 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12384 * target.c (update_current_target): Update.
12386 2014-02-19 Tom Tromey <tromey@redhat.com>
12388 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12390 (target_remove_exec_catchpoint): Add argument.
12391 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12392 (update_current_target): Update.
12393 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12396 2014-02-19 Tom Tromey <tromey@redhat.com>
12398 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12400 (target_insert_exec_catchpoint): Add argument.
12401 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12402 (update_current_target): Update.
12403 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12406 2014-02-19 Tom Tromey <tromey@redhat.com>
12408 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12410 (target_remove_vfork_catchpoint): Add argument.
12411 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12412 (update_current_target): Update.
12413 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12416 2014-02-19 Tom Tromey <tromey@redhat.com>
12418 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12420 (target_insert_vfork_catchpoint): Add argument.
12421 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12422 (update_current_target): Update.
12423 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12426 2014-02-19 Tom Tromey <tromey@redhat.com>
12428 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12430 (target_remove_fork_catchpoint): Add argument.
12431 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12432 (update_current_target): Update.
12433 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12436 2014-02-19 Tom Tromey <tromey@redhat.com>
12438 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12440 (target_insert_fork_catchpoint): Add argument.
12441 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12442 (update_current_target): Update.
12443 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12446 2014-02-19 Tom Tromey <tromey@redhat.com>
12448 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12450 (target_post_startup_inferior): Add argument.
12451 * target.c (debug_to_post_startup_inferior): Add argument.
12452 (update_current_target): Update.
12453 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12455 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12457 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12459 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12461 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12463 (super_post_startup_inferior): Likewise.
12464 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12466 (super_post_startup_inferior): Likewise.
12467 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12468 Add 'self' argument.
12469 (super_post_startup_inferior): Likewise.
12471 2014-02-19 Tom Tromey <tromey@redhat.com>
12473 * target.h (struct target_ops) <to_load>: Add argument.
12474 * target.c (target_load): Add argument.
12475 (debug_to_load): Add argument.
12476 (update_current_target): Update.
12477 * remote.c (remote_load): Add 'self' argument.
12478 * remote-sim.c (gdbsim_load): Add 'self' argument.
12479 * remote-mips.c (mips_load): Add 'self' argument.
12480 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12481 * monitor.c (monitor_load): Add 'self' argument.
12482 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12484 2014-02-19 Tom Tromey <tromey@redhat.com>
12486 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12487 (target_terminal_info): Add argument.
12488 * target.c (debug_to_terminal_info): Add argument.
12489 (default_terminal_info): Likewise.
12490 * inflow.c (child_terminal_info): Add 'self' argument.
12491 * inferior.h (child_terminal_info): Add 'self' argument.
12492 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12494 2014-02-19 Tom Tromey <tromey@redhat.com>
12496 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12498 (target_terminal_save_ours): Add argument.
12499 * target.c (debug_to_terminal_save_ours): Add argument.
12500 (update_current_target): Update.
12501 * inflow.c (terminal_save_ours): Add 'self' argument.
12502 * inferior.h (terminal_save_ours): Add 'self' argument.
12504 2014-02-19 Tom Tromey <tromey@redhat.com>
12506 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12507 (target_terminal_ours): Add argument.
12508 * target.c (debug_to_terminal_ours): Add argument.
12509 (update_current_target): Update.
12510 * remote.c (remote_terminal_ours): Add 'self' argument.
12511 (remote_close): Update.
12512 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12513 * inflow.c (terminal_ours): Add 'self' argument.
12514 * inferior.h (terminal_ours): Add 'self' argument.
12515 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12517 2014-02-19 Pedro Alves <palves@redhat.com>
12518 Tom Tromey <tromey@redhat.com>
12520 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12522 (target_terminal_ours_for_output): Add argument.
12523 * target.c (debug_to_terminal_ours_for_output): Add argument.
12524 (update_current_target): Update.
12525 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12526 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12527 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12529 2014-02-19 Tom Tromey <tromey@redhat.com>
12531 * target.h (struct target_ops) <to_terminal_inferior>: Add
12533 * target.c (target_terminal_inferior): Add argument.
12534 (update_current_target): Update.
12535 * remote.c (remote_terminal_inferior): Add 'self' argument.
12536 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12537 * inflow.c (terminal_inferior): Add 'self' argument.
12538 * inferior.h (terminal_inferior): Add 'self' argument.
12539 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12540 (go32_terminal_inferior): Add 'self' argument.
12542 2014-02-19 Tom Tromey <tromey@redhat.com>
12544 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12545 (target_terminal_init): Add argument.
12546 * target.c (debug_to_terminal_init): Add argument.
12547 (update_current_target): Update.
12548 * inflow.c (terminal_init_inferior): Add 'self' argument.
12549 * inferior.h (terminal_init_inferior): Add 'self' argument.
12550 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12551 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12553 2014-02-19 Tom Tromey <tromey@redhat.com>
12555 * target.h (struct target_ops)
12556 <to_can_accel_watchpoint_condition>: Add argument.
12557 (target_can_accel_watchpoint_condition): Add argument.
12558 * target.c (debug_to_can_accel_watchpoint_condition): Add
12560 (update_current_target): Update.
12561 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12564 2014-02-19 Tom Tromey <tromey@redhat.com>
12566 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12568 (target_region_ok_for_hw_watchpoint): Add argument.
12569 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12570 (default_region_ok_for_hw_watchpoint): Add argument.
12571 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12572 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12574 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12576 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12578 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12580 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12582 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12584 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12585 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12587 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12588 Add 'self' argument.
12590 2014-02-19 Tom Tromey <tromey@redhat.com>
12592 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12594 (target_insert_watchpoint): Add argument.
12595 * target.c (debug_to_insert_watchpoint): Add argument.
12596 (update_current_target): Update.
12597 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12598 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12599 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12600 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12601 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12602 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12604 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12605 (procfs_insert_hw_watchpoint): Add 'self' argument.
12606 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12608 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12610 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12612 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12613 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12615 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12618 2014-02-19 Tom Tromey <tromey@redhat.com>
12620 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12622 (target_remove_watchpoint): Add argument.
12623 * target.c (debug_to_remove_watchpoint): Add argument.
12624 (update_current_target): Update.
12625 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12626 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12627 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12628 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12629 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12630 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12632 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12633 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12635 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12637 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12639 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12640 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12642 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12645 2014-02-19 Tom Tromey <tromey@redhat.com>
12647 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12649 (target_remove_hw_breakpoint): Add argument.
12650 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12651 (update_current_target): Update.
12652 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12653 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12655 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12656 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12658 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12661 2014-02-19 Tom Tromey <tromey@redhat.com>
12663 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12665 (target_insert_hw_breakpoint): Add argument.
12666 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12667 (update_current_target): Update.
12668 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12669 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12671 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12672 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12673 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12675 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12678 2014-02-19 Tom Tromey <tromey@redhat.com>
12680 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12682 (target_can_use_hardware_watchpoint): Add argument.
12683 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12684 (update_current_target): Update.
12685 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12687 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12689 * remote.c (remote_check_watch_resources): Add 'self' argument.
12690 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12691 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12693 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12694 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12696 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12698 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12700 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12702 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12704 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12706 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12707 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12709 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12712 2014-02-19 Tom Tromey <tromey@redhat.com>
12714 * target.h (struct target_ops) <to_post_attach>: Add argument.
12715 (target_post_attach): Add argument.
12716 * target.c (debug_to_post_attach): Add argument.
12717 (update_current_target): Update.
12718 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12719 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12720 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12721 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12722 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12724 2014-02-19 Tom Tromey <tromey@redhat.com>
12726 * windows-nat.c (windows_close): Add 'self' argument.
12727 * tracepoint.c (tfile_close): Add 'self' argument.
12728 * target.h (struct target_ops) <to_close>: Add argument.
12729 * target.c (target_close): Add argument.
12730 (update_current_target): Update.
12731 * remote.c (remote_close): Add 'self' argument.
12732 * remote-sim.c (gdbsim_close): Add 'self' argument.
12733 * remote-mips.c (mips_close): Add 'self' argument.
12734 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12735 * record-full.c (record_full_close): Add 'self' argument.
12736 * record-btrace.c (record_btrace_close): Add 'self' argument.
12737 * monitor.h (monitor_close): Add 'self' argument.
12738 * monitor.c (monitor_close): Add 'self' argument.
12739 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12740 * linux-nat.c (linux_nat_close): Add argument.
12741 * go32-nat.c (go32_close): Add 'self' argument.
12742 * exec.c (exec_close_1): Add 'self' argument.
12743 * ctf.c (ctf_close): Add 'self' argument.
12744 * corelow.c (core_close): Add 'self' argument.
12745 (core_close_cleanup): Update.
12746 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12747 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12749 2014-02-19 Tom Tromey <tromey@redhat.com>
12751 * remote.c (remote_load): New function.
12752 (init_remote_ops): Use it.
12754 2014-02-19 Tom Tromey <tromey@redhat.com>
12756 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12758 * common/linux-btrace.h (linux_supports_btrace): Update.
12759 * remote.c (remote_supports_btrace): Add "self" argument.
12760 * target-delegates.c: Rebuild.
12761 * target.c (target_supports_btrace): Remove.
12762 * target.h (struct target_ops) <to_supports_btrace>: Add
12763 target_ops argument.
12764 (target_supports_btrace): New define.
12766 2014-02-19 Tom Tromey <tromey@redhat.com>
12768 * record-full.c (record_full_beneath_to_resume_ops)
12769 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12770 (record_full_beneath_to_wait)
12771 (record_full_beneath_to_store_registers_ops)
12772 (record_full_beneath_to_store_registers)
12773 (record_full_beneath_to_xfer_partial_ops)
12774 (record_full_beneath_to_xfer_partial)
12775 (record_full_beneath_to_insert_breakpoint_ops)
12776 (record_full_beneath_to_insert_breakpoint)
12777 (record_full_beneath_to_remove_breakpoint_ops)
12778 (record_full_beneath_to_remove_breakpoint)
12779 (record_full_beneath_to_stopped_by_watchpoint)
12780 (record_full_beneath_to_stopped_data_address)
12781 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12782 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12783 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12784 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12785 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12786 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12787 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12788 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12789 (record_full_resume, record_full_wait_1)
12790 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12791 (record_full_store_registers, record_full_xfer_partial)
12792 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12793 (record_full_async, record_full_core_xfer_partial): Use target
12795 * target-delegates.c: Rebuild.
12796 * target.c (current_xfer_partial): Remove.
12797 (update_current_target): Do not INHERIT or de_fault
12798 to_insert_breakpoint, to_remove_breakpoint,
12799 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12800 to_is_async_p, to_async. Do not set to_xfer_partial field.
12801 (default_xfer_partial): Simplify.
12802 (current_xfer_partial): Remove.
12803 (target_wait, target_resume): Simplify.
12804 (find_default_can_async_p, find_default_is_async_p): Update.
12805 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12806 to_xfer_partial, to_stopped_by_watchpoint,
12807 to_stopped_data_address.
12808 (target_store_registers): Simplify.
12809 (forward_target_remove_breakpoint)
12810 (forward_target_insert_breakpoint): Remove.
12811 (target_remove_breakpoint, target_insert_breakpoint)
12812 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12813 * target.h (struct target_ops) <to_resume, to_wait,
12814 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12815 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12816 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12818 (forward_target_remove_breakpoint)
12819 (forward_target_insert_breakpoint): Remove.
12820 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12822 (record_btrace_insert_breakpoint): Delegate directly.
12824 2014-02-19 Tom Tromey <tromey@redhat.com>
12827 * target-delegates.c: New file.
12828 * target.c: Include target-delegates.c.
12829 (init_dummy_target): Call install_dummy_methods.
12830 (complete_target_initialization): Call install_delegators.
12831 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12832 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12833 * make-target-delegates: New file.
12835 2014-02-19 Tom Tromey <tromey@redhat.com>
12837 * record.c (find_record_target): Use find_target_at.
12838 * target.c (find_target_at): New function.
12839 * target.h (find_target_at): Declare.
12841 2014-02-19 Tom Tromey <tromey@redhat.com>
12843 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12844 Add 'ops' argument.
12845 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12847 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12848 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12850 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12852 * linux-nat.c (save_sigtrap): Update.
12853 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12854 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12855 (linux_nat_close): Update.
12856 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12858 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12860 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12861 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12862 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12863 (tmp_to_async): Add 'ops' argument.
12864 (record_full_stopped_by_watchpoint, record_full_async)
12865 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12867 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12868 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12869 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12870 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12871 (remote_is_async_p, remote_async): Add 'ops' argument.
12872 (remote_stopped_data_address): Update.
12873 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12874 * target.c (update_current_target)
12875 (find_default_can_async_p, find_default_is_async_p): Update.
12876 (init_dummy_target): Update.
12877 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12878 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12879 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12880 (target_can_async_p, target_is_async_p, target_async)
12881 (target_stopped_by_watchpoint): Update.
12883 2014-02-19 Yao Qi <yao@codesourcery.com>
12886 * gdbarch.sh: Remove startup_gdbarch.
12887 * gdbarch.c: Regenerated.
12888 * gdbarch.h: Likewise.
12890 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12892 * rl78-tdep.c (rl78_g10_register_name): New function.
12893 (rl78_return_value): Add g10 support.
12894 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12897 2014-02-17 Doug Evans <xdje42@gmail.com>
12899 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12900 (SUBDIR_GUILE_SRCS): Ditto.
12901 (scm-gsmob.o): Ditto.
12903 2014-02-17 Yao Qi <yao@codesourcery.com>
12905 * gnu-nat.c (ILL_RPC): Declare defined function.
12907 2014-02-17 Yao Qi <yao@codesourcery.com>
12909 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12910 mach_msg_type_number_t.
12911 (gnu_write_inferior): Likewise.
12913 2014-02-17 Yao Qi <yao@codesourcery.com>
12915 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12917 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12918 (inf_validate_procs, inf_signal): Likewise.
12919 (S_exception_raise_request): Likewise.
12920 (do_mach_notify_dead_name): Likewise.
12921 (steal_exc_port): Likewise.
12922 (gnu_read_inferior): Change 'copy_count''s type to
12923 mach_msg_type_number_t.
12924 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12927 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12929 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12930 flag. Adjust all users; in particular...
12931 (gnu_wait): ..., don't decrement its value in here...
12932 (gnu_create_inferior): ..., and instead set the flag in here,
12933 around the startup_inferior call, and call that one with
12934 START_INFERIOR_TRAPS_EXPECTED.
12936 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12937 (ILL_RPC): ... new macro.
12938 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12939 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12940 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12941 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12942 functions with ILL_RPC macro.
12943 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12944 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12945 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12946 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12947 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12948 (S_proc_getlogin_reply, S_proc_getsid_reply)
12949 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12950 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12951 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12952 (S_proc_getnports_reply, S_proc_is_important_reply)
12953 (S_proc_get_code_reply): New stub functions, generated with
12956 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12957 collected the type check structures.
12959 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12961 2014-02-14 Doug Evans <dje@google.com>
12963 * target.c (target_write_partial): Fix result type.
12965 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12967 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12968 the proper offsets to access fpregset_t.
12970 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12972 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12973 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12974 * h8300-tdep.c (setmachinelist): Remove global.
12975 * hppa-tdep.c (hppa_sigtramp): Remove global.
12976 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12977 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12978 * ravenscar-thread.c (update_target_observer): Remove global.
12979 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12981 2014-02-12 Tom Tromey <tromey@redhat.com>
12983 * common/rsp-low.c: Update comments.
12984 * common/rsp-low.h: Update comments.
12986 2014-02-12 Tom Tromey <tromey@redhat.com>
12988 * common/rsp-low.c (convert_ascii_to_int): Remove.
12989 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12991 2014-02-12 Tom Tromey <tromey@redhat.com>
12993 * common/rsp-low.h (unhexify): Don't declare.
12994 * common/rsp-low.c (unhexify): Remove.
12996 2014-02-12 Tom Tromey <tromey@redhat.com>
12998 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12999 * common/rsp-low.c (convert_int_to_ascii): Remove.
13001 2014-02-12 Tom Tromey <tromey@redhat.com>
13003 * common/rsp-low.h (hexify): Don't declare.
13004 * common/rsp-low.c (hexify): Remove.
13006 2014-02-12 Tom Tromey <tromey@redhat.com>
13008 * common/rsp-low.c (hexify): Never take strlen of argument.
13010 2014-02-12 Tom Tromey <tromey@redhat.com>
13012 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13013 * remote.c (extended_remote_run, remote_rcmd)
13014 (remote_download_trace_state_variable, remote_save_trace_data)
13015 (remote_set_trace_notes): Update.
13016 * tracepoint.c (encode_source_string, tfile_write_status)
13017 (tfile_write_uploaded_tsv): Update.
13019 2014-02-12 Tom Tromey <tromey@redhat.com>
13021 * tracepoint.c: Include rsp-low.h.
13022 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13023 * remote.c: Include rsp-low.h.
13024 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13025 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13026 (remote_unescape_input): Move to common/rsp-low.c.
13027 * common/rsp-low.h: New file.
13028 * common/rsp-low.c: New file.
13029 * Makefile.in (SFILES): Add common/rsp-low.c.
13030 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13031 (COMMON_OBS): Add rsp-low.o.
13032 (rsp-low.o): New target.
13034 2014-02-12 Tom Tromey <tromey@redhat.com>
13036 * utils.h: Include print-utils.h.
13037 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13038 (int_string, core_addr_to_string, core_addr_to_string_nz)
13039 (hex_string, hex_string_custom): Don't declare.
13040 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13041 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13042 (hex_string_custom, int_string, core_addr_to_string)
13043 (core_addr_to_string_nz, host_address_to_string): Move to
13044 common/print-utils.c.
13045 * common/print-utils.h: New file.
13046 * common/print-utils.c: New file
13047 * Makefile.in (SFILES): Add common/print-utils.c.
13048 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13049 (COMMON_OBS): Add print-utils.o.
13050 (print-utils.o): New target.
13052 2014-02-12 Tom Tromey <tromey@redhat.com>
13054 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13056 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13058 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13060 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13062 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13063 if a PT_IO ptrace request returns sucessfully but indicates that 0
13064 bytes were transferred.
13066 2014-02-12 Pedro Alves <palves@redhat.com>
13067 Kevin Buettner <kevinb@redhat.com>
13069 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13070 TYPE_INSTANCE_FLAG_CODE_SPACE.
13072 2014-02-12 Pedro Alves <palves@redhat.com>
13074 * h8300-tdep.c (pseudo_from_raw_register)
13075 (raw_from_pseudo_register): New functions.
13076 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13079 2014-02-12 Pedro Alves <palves@redhat.com>
13081 * h8300-tdep.c (h8300_register_sim_regno): New function.
13082 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13083 gdbarch_register_sim_regno hook.
13085 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13087 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13089 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13091 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13093 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13095 * obsd-tdep.h (obsd_init_abi): New prototype.
13096 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13097 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13098 (obsd_init_abi): New functions.
13099 * i386obsd-tdep.c: Include "obsd-tdep.h".
13100 (i386obsd_init_abi): Call obsd_init_abi.
13101 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13102 (amd64obsd_init_abi): Call obsd_init_abi.
13103 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13104 obsd-tdep.c to gdb_target_obs.
13106 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13108 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13109 double float arguments to 16-byte in the argument slots.
13111 2014-02-11 Doug Evans <xdje42@gmail.com>
13113 * configure.ac: Don't crash if pkg-config is not found and guile
13114 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13116 * configure: Regenerate.
13118 2014-02-11 Yao Qi <yao@codesourcery.com>
13120 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13121 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13122 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13123 * gnu-nat.c (gnu_xfer_memory): Likewise.
13124 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13125 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13126 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13127 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13129 2014-02-11 Yao Qi <yao@codesourcery.com>
13131 * target.h (enum target_xfer_error): Rename to ...
13132 (enum target_xfer_status): ... it. New. All users updated.
13133 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13135 (TARGET_XFER_STATUS_ERROR_P): New macro.
13136 (target_xfer_error_to_string): Remove declaration.
13137 (target_xfer_status_to_string): Declare.
13138 (target_xfer_partial_ftype): Adjust it.
13139 (struct target_ops) <to_xfer_partial>: Return
13140 target_xfer_status. Add argument xfered_len. Update
13142 * target.c (target_xfer_error_to_string): Rename to ...
13143 (target_xfer_status_to_string): ... it. New. All callers
13145 (target_read_live_memory): Likewise. Call target_xfer_partial
13146 instead of target_read.
13147 (memory_xfer_live_readonly_partial): Return
13148 target_xfer_status. Add argument xfered_len.
13149 (raw_memory_xfer_partial): Likewise.
13150 (memory_xfer_partial_1): Likewise.
13151 (memory_xfer_partial): Likewise.
13152 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13153 properly. Update debug message.
13154 (default_xfer_partial, current_xfer_partial): Likewise.
13155 (target_write_partial): Likewise.
13156 (target_read_partial): Likewise. All callers updated.
13157 (read_whatever_is_readable): Likewise.
13158 (target_write_with_progress): Likewise.
13159 (target_read_alloc_1): Likewise.
13161 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13162 * auxv.c (procfs_xfer_auxv): Likewise.
13163 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13164 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13165 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13166 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13167 * corefile.c (read_memory): Adjust.
13168 * corelow.c (core_xfer_partial): Likewise.
13169 * ctf.c (ctf_xfer_partial): Likewise.
13170 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13172 (darwin_xfer_partial): Likewise.
13173 * exec.c (section_table_xfer_memory_partial): Likewise. All
13175 (exec_xfer_partial): Likewise.
13176 * exec.h (section_table_xfer_memory_partial): Update
13178 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13180 (gnu_xfer_partial): Likewise.
13181 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13182 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13183 (ia64_hpux_xfer_solib_got): Likewise.
13184 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13185 type of 'partial_len' to ULONGEST.
13186 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13187 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13188 (linux_nat_xfer_partial): Likewise.
13189 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13190 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13191 * monitor.c (monitor_xfer_memory): Likewise.
13192 (monitor_xfer_partial): Likewise.
13193 * procfs.c (procfs_xfer_partial): Likewise.
13194 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13195 * record-full.c (record_full_xfer_partial): Likewise.
13196 (record_full_core_xfer_partial): Likewise.
13197 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13198 (gdbsim_xfer_partial): Likewise.
13199 * remote.c (remote_write_bytes_aux): Likewise. All callers
13201 (remote_write_bytes, remote_read_bytes): Likewise. All
13203 (remote_flash_erase): Likewise. All callers updated.
13204 (remote_write_qxfer): Likewise. All callers updated.
13205 (remote_read_qxfer): Likewise. All callers updated.
13206 (remote_xfer_partial): Likewise.
13207 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13208 (rs6000_xfer_shared_libraries): Likewise.
13209 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13210 (sol_thread_xfer_partial): Likewise.
13211 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13212 (sparc_xfer_partial): Likewise.
13213 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13215 (spu_xfer_partial): Likewise.
13216 * spu-multiarch.c (spu_xfer_partial): Likewise.
13217 * tracepoint.c (tfile_xfer_partial): Likewise.
13218 * windows-nat.c (windows_xfer_memory): Likewise.
13219 (windows_xfer_shared_libraries): Likewise.
13220 (windows_xfer_partial): Likewise.
13221 * valprint.c: Replace 'target_xfer_error' with
13222 'target_xfer_status' in comments.
13224 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13226 Checked in by Joel Brobecker <brobecker@adacore.com>.
13227 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13229 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13231 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13232 function parameters.
13234 2014-02-10 Will Newton <will.newton@linaro.org>
13236 * elfread.c (elf_rel_plt_read): Look for a .got section if
13237 looking up .got.plt fails.
13238 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13239 on address passed to elf_gnu_ifunc_record_cache.
13240 (elf_gnu_ifunc_resolve_addr): Likewise.
13241 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13243 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13245 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13246 (X_RETTURN): New macro.
13247 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13249 * sparc64-tdep.c (sparc64_init_abi): Hook
13250 sparc_in_function_epilogue_p.
13252 2014-02-10 Gary Benson <gbenson@redhat.com>
13254 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13255 Rename name_matcher to symbol_matcher.
13257 2014-02-10 Gary Benson <gbenson@redhat.com>
13259 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13260 Use expand_symtabs_file_matcher_ftype and
13261 expand_symtabs_symbol_matcher_ftype.
13263 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13265 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13266 (struct ada_symbol_cache): New.
13267 (ada_free_symbol_cache): Forward declare.
13268 (struct ada_pspace_data): New.
13269 (ada_pspace_data_handle): New static global.
13270 (get_ada_pspace_data, ada_pspace_data_cleanup)
13271 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13272 (cache_space, cache): Delete, now folded inside struct
13274 (ada_get_symbol_cache): New function.
13275 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13277 (_initialize_ada_language): Remove initialization of cache_space.
13278 Move call to observer_attach_inferior_exit up, grouping it
13279 with the other observer registrations inside this function.
13280 Rename command to be more general. Add call to
13281 register_program_space_data_with_cleanup.
13283 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13285 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13286 ada_new_objfile_observer.
13287 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13288 (_initialize_tasks): Update uses of ada_new_objfile_observer
13289 and ada_tasks_normal_stop_observer.
13291 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13293 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13294 returned by the 'Length attribute to integer.
13296 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13298 * ada-lang.c (_initialize_ada_language): Initialize
13299 cache_space obstack.
13301 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13303 * ada-lang.c (HASH_SIZE): New macro.
13304 (struct cache_entry): New type.
13305 (cache_space, cache): New static globals.
13306 (ada_clear_symbol_cache, find_entry): New functions.
13307 (lookup_cached_symbol, cache_symbol): Implement.
13308 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13309 (_initialize_ada_language): Attach ada_new_objfile_observer
13310 and ada_free_objfile_observer.
13312 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13314 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13315 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13316 struct block * parameter.
13317 (ada_lookup_symbol_list_worker): Constify local variable "block".
13318 Remove cast which is no longer necessary.
13320 2014-02-10 Doug Evans <xdje42@gmail.com>
13322 Add Guile as an extension language.
13323 * NEWS: Mention Guile scripting.
13324 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13325 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13326 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13327 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13328 (CLIBS): Add GUILE_LIBS.
13329 (install-guile): New rule.
13330 (guile.o): New rule.
13331 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13332 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13333 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13334 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13335 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13336 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13337 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13338 * configure.ac: New option --with-guile.
13339 * configure: Regenerate.
13340 * config.in: Regenerate.
13341 * auto-load.c: Remove #include "python/python.h". Add #include
13342 "gdb/section-scripts.h".
13343 (source_section_scripts): Handle Guile scripts.
13344 (_initialize_auto_load): Add name of Guile objfile script to
13345 scripts-directory help text.
13346 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13347 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13348 (struct breakpoint): New member scm_bp_object.
13349 * defs.h (enum command_control_type): New value guile_control.
13350 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13352 (show_user): Update comment.
13353 (_initialize_cli_cmds): Update help text for "show user". Update help
13354 text for max-user-call-depth.
13355 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13357 (multi_line_command_p): Add guile_control.
13358 (print_command_lines): Handle guile_control.
13359 (execute_control_command, recurse_read_control_structure): Ditto.
13360 (process_next_line): Recognize "guile" commands.
13361 * disasm.c (gdb_disassemble_info): Make non-static.
13362 * disasm.h: #include "dis-asm.h".
13363 (struct gdbarch): Add forward decl.
13364 (gdb_disassemble_info): Declare.
13365 * extension.c: #include "guile/guile.h".
13366 (extension_languages): Add guile.
13367 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13368 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13369 * gdbtypes.c (get_unsigned_type_max): New function.
13370 (get_signed_type_minmax): New function.
13371 * gdbtypes.h (get_unsigned_type_max): Declare.
13372 (get_signed_type_minmax): Declare.
13373 * guile/README: New file.
13374 * guile/guile-internal.h: New file.
13375 * guile/guile.c: New file.
13376 * guile/guile.h: New file.
13377 * guile/scm-arch.c: New file.
13378 * guile/scm-auto-load.c: New file.
13379 * guile/scm-block.c: New file.
13380 * guile/scm-breakpoint.c: New file.
13381 * guile/scm-disasm.c: New file.
13382 * guile/scm-exception.c: New file.
13383 * guile/scm-frame.c: New file.
13384 * guile/scm-gsmob.c: New file.
13385 * guile/scm-iterator.c: New file.
13386 * guile/scm-lazy-string.c: New file.
13387 * guile/scm-math.c: New file.
13388 * guile/scm-objfile.c: New file.
13389 * guile/scm-ports.c: New file.
13390 * guile/scm-pretty-print.c: New file.
13391 * guile/scm-safe-call.c: New file.
13392 * guile/scm-string.c: New file.
13393 * guile/scm-symbol.c: New file.
13394 * guile/scm-symtab.c: New file.
13395 * guile/scm-type.c: New file.
13396 * guile/scm-utils.c: New file.
13397 * guile/scm-value.c: New file.
13398 * guile/lib/gdb.scm: New file.
13399 * guile/lib/gdb/boot.scm: New file.
13400 * guile/lib/gdb/experimental.scm: New file.
13401 * guile/lib/gdb/init.scm: New file.
13402 * guile/lib/gdb/iterator.scm: New file.
13403 * guile/lib/gdb/printing.scm: New file.
13404 * guile/lib/gdb/types.scm: New file.
13405 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13406 (VPATH): Add $(GUILE_SRCDIR).
13407 (GUILE_DIR): New variable.
13408 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13409 (all): Add stamp-guile dependency.
13410 (stamp-guile): New rule.
13411 (clean-guile, install-guile, uninstall-guile): New rules.
13412 (install-only): Add install-guile dependency.
13413 (uninstall): Add uninstall-guile dependency.
13414 (clean): Add clean-guile dependency.
13416 2014-02-09 Doug Evans <xdje42@gmail.com>
13418 Revert this patch (which I approved, mea culpa).
13420 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13422 * Makefile.in (all-lib): Remove.
13423 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13425 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13427 Fix Python stack corruption.
13428 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
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-07 Doug Evans <dje@google.com>
13438 * extension-priv.h (extension_language_script_ops): Add comment.
13439 (extension_language_ops): Add comment.
13440 (active_ext_lang_state): Fix typo in comment.
13442 2014-02-07 Pedro Alves <palves@redhat.com>
13444 PR breakpoints/16292
13445 * infrun.c (handle_signal_stop) <signal arrives while stepping
13446 over a breakpoint>: Switch back to the stepping thread.
13448 2014-02-07 Yao Qi <yao@codesourcery.com>
13450 * target.c (target_xfer_partial): Return zero if LEN is zero.
13452 2014-02-07 Yao Qi <yao@codesourcery.com>
13454 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13455 (ld_so_xfer_auxv): Likewise.
13456 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13457 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13458 * corelow.c (core_xfer_partial): Likewise.
13459 * ctf.c (ctf_xfer_partial): Likewise.
13460 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13461 (darwin_xfer_partial): Likewise.
13462 * exec.c (exec_xfer_partial): Likewise.
13463 * gnu-nat.c (gnu_xfer_partial): Likewise.
13464 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13465 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13466 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13467 * linux-nat.c (linux_xfer_siginfo): Likewise.
13468 (linux_proc_xfer_spu): Likewise.
13469 * procfs.c (procfs_xfer_partial): Likewise.
13470 * record-full.c (record_full_xfer_partial): Likewise.
13471 (record_full_core_xfer_partial): Likewise.
13472 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13473 * remote.c (remote_write_qxfer): Likewise.
13474 (remote_write_qxfer, remote_read_qxfer): Likewise.
13475 (remote_xfer_partial): Likewise.
13476 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13477 (rs6000_xfer_shared_libraries): Likewise.
13478 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13479 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13480 (spu_xfer_partial): Likewise.
13481 * target.c (memory_xfer_partial_1): Likewise.
13482 * tracepoint.c (tfile_xfer_partial): Likewise.
13483 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13484 (windows_xfer_partial): Likewise.
13486 2014-02-07 Yao Qi <yao@codesourcery.com>
13488 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13490 (core_xfer_shared_libraries_aix): Likewise.
13491 * gdbarch.c, gdbarch.h: Regenerated.
13492 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13493 ULONGEST. Change 'len_avail' type to ULONGEST.
13494 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13495 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13497 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13499 2014-02-07 Yao Qi <yao@codesourcery.com>
13501 * corefile.c (memory_error): Get 'exception' from ERR and pass
13502 'exception' to throw_error.
13504 2014-02-06 Doug Evans <xdje42@gmail.com>
13506 * configure.ac (libpython checking): Remove all but python.o from
13507 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13508 * configure: Regenerate.
13510 * Makefile.in (SFILES): Add extension.c.
13511 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13512 (COMMON_OBS): Add extension.o.
13513 * extension.h: New file.
13514 * extension-priv.h: New file.
13515 * extension.c: New file.
13517 * python/python-internal.h: #include "extension.h".
13518 (gdbpy_auto_load_enabled): Declare.
13519 (gdbpy_apply_val_pretty_printer): Declare.
13520 (gdbpy_apply_frame_filter): Declare.
13521 (gdbpy_preserve_values): Declare.
13522 (gdbpy_breakpoint_cond_says_stop): Declare.
13523 (gdbpy_breakpoint_has_cond): Declare.
13524 (void source_python_script_for_objfile): Delete.
13525 * python/python.c: #include "extension-priv.h".
13526 Delete inclusion of "observer.h".
13527 (extension_language_python): Moved here and renamed from
13528 script_language_python in py-auto-load.c.
13529 Redefined to be of type extension_language_defn.
13530 (python_extension_script_ops): New global.
13531 (python_extension_ops): New global.
13532 (struct python_env): New member previous_active.
13533 (restore_python_env): Call restore_active_ext_lang.
13534 (ensure_python_env): Call set_active_ext_lang.
13535 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13537 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13539 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13541 (gdbpy_eval_from_control_command): Renamed from
13542 eval_python_from_control_command, made static. New arg extlang.
13543 (gdbpy_source_script) Renamed from source_python_script, made static.
13545 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13546 result to int. New arg extlang.
13547 (gdbpy_source_objfile_script): Renamed from
13548 source_python_script_for_objfile, made static. New arg extlang.
13549 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13550 static. New args extlang, extlang_printers. Change result type to
13552 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13553 static. New arg extlang. Rename arg printers to extlang_printers
13554 and change type to ext_lang_type_printers *.
13555 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13556 static. Replace argument arg with extlang, extlang_printers.
13557 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13558 (!HAVE_PYTHON, source_python_script): Delete.
13559 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13560 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13561 (!HAVE_PYTHON, start_type_printers): Delete.
13562 (!HAVE_PYTHON, apply_type_printers): Delete.
13563 (!HAVE_PYTHON, free_type_printers): Delete.
13564 (_initialize_python): Delete call to observer_attach_before_prompt.
13565 (finalize_python): Set/restore active extension language.
13566 (gdbpy_finish_initialization) Renamed from
13567 finish_python_initialization, made static. New arg extlang.
13568 (gdbpy_initialized): New function.
13569 * python/python.h: #include "extension.h". Delete #include
13570 "value.h", "mi/mi-cmds.h".
13571 (extension_language_python): Declare.
13572 (GDBPY_AUTO_FILE_NAME): Delete.
13573 (enum py_bt_status): Moved to extension.h and renamed to
13574 ext_lang_bt_status.
13575 (enum frame_filter_flags): Moved to extension.h.
13576 (enum py_frame_args): Moved to extension.h and renamed to
13577 ext_lang_frame_args.
13578 (finish_python_initialization): Delete.
13579 (eval_python_from_control_command): Delete.
13580 (source_python_script): Delete.
13581 (apply_val_pretty_printer): Delete.
13582 (apply_frame_filter): Delete.
13583 (preserve_python_values): Delete.
13584 (gdbpy_script_language_defn): Delete.
13585 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13586 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13588 * auto-load.c: #include "extension.h".
13589 (GDB_AUTO_FILE_NAME): Delete.
13590 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13591 (script_language_gdb): Delete, moved to extension.c and renamed to
13592 extension_language_gdb.
13593 (source_gdb_script_for_objfile): Delete.
13594 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13595 (loaded_script): Change type of language member to
13596 struct extension_language_defn *.
13597 (init_loaded_scripts_info): Initialize
13598 unsupported_script_warning_printed.
13599 (maybe_add_script): Make static. Change type of language arg to
13600 struct extension_language_defn *.
13601 (clear_section_scripts): Reset unsupported_script_warning_printed.
13602 (auto_load_objfile_script_1): Rewrite to use extension language API.
13603 (auto_load_objfile_script): Make public. Remove support-compiled-in
13604 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13605 (source_section_scripts): Rewrite to use extension language API.
13606 (load_auto_scripts_for_objfile): Rewrite to use
13607 auto_load_scripts_for_objfile.
13608 (collect_matching_scripts_data): Change type of language member to
13609 struct extension_language_defn *.
13610 (auto_load_info_scripts): Change type of language arg to
13611 struct extension_language_defn *.
13612 (unsupported_script_warning_print): New function.
13613 (script_not_found_warning_print): Make static.
13614 (_initialize_auto_load): Rewrite construction of scripts-directory
13616 * auto-load.h (struct objfile): Add forward decl.
13617 (struct script_language): Delete.
13618 (struct auto_load_pspace_info): Add forward decl.
13619 (struct extension_language_defn): Add forward decl.
13620 (maybe_add_script): Delete.
13621 (auto_load_objfile_script): Declare.
13622 (script_not_found_warning_print): Delete.
13623 (auto_load_info_scripts): Update prototype.
13624 (auto_load_gdb_scripts_enabled): Declare.
13625 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13626 auto_load_python_scripts_enabled and made public.
13627 (script_language_python): Delete, moved to python.c.
13628 (gdbpy_script_language_defn): Delete.
13629 (info_auto_load_python_scripts): Update to use
13630 extension_language_python.
13632 * breakpoint.c (condition_command): Replace call to
13633 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13634 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13635 with call to breakpoint_ext_lang_cond_says_stop.
13636 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13637 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13638 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13639 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13641 (local_setattro): Print name of extension language with existing
13644 * valprint.c (val_print, value_print): Update to call
13645 apply_ext_lang_val_pretty_printer.
13646 * cp-valprint.c (cp_print_value): Update call to
13647 apply_ext_lang_val_pretty_printer.
13648 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13649 (gdbpy_apply_val_pretty_printer): Renamed from
13650 apply_val_pretty_printer. New arg extlang.
13651 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13653 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13654 extension language API.
13655 * cli/cli-script.c (execute_control_command): Update to call
13656 eval_ext_lang_from_control_command.
13658 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13659 enum ext_lang_bt_status values. Update call to
13660 apply_ext_lang_frame_filter.
13661 (mi_cmd_stack_list_locals): Ditto.
13662 (mi_cmd_stack_list_args): Ditto.
13663 (mi_cmd_stack_list_variables): Ditto.
13664 * mi/mi-main.c: Delete #include "python/python-internal.h".
13665 Add #include "extension.h".
13666 (mi_cmd_list_features): Replace reference to python internal variable
13667 gdb_python_initialized with call to ext_lang_initialized_p.
13669 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13670 Update to use enum ext_lang_frame_args. Update to call
13671 apply_ext_lang_frame_filter.
13672 * python/py-framefilter.c (extract_sym): Update to use enum
13673 ext_lang_bt_status.
13674 (extract_value, py_print_type, py_print_value): Ditto.
13675 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13676 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13677 (py_print_frame): Ditto.
13678 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13679 New arg extlang. Update to use enum ext_lang_bt_status.
13681 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13682 finish_python_initialization. Replace with call to
13683 finish_ext_lang_initialization.
13685 * typeprint.c (do_free_global_table): Update to call
13686 free_ext_lang_type_printers.
13687 (create_global_typedef_table): Update to call
13688 start_ext_lang_type_printers.
13689 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13690 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13691 (type_print_options): Change type of global_printers from "void *"
13692 to "struct ext_lang_type_printers *".
13694 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13695 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13696 (gdbpy_preserve_values): Renamed from preserve_python_values.
13698 (!HAVE_PYTHON, preserve_python_values): Delete.
13700 * utils.c (quit_flag): Delete, moved to extension.c.
13701 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13704 * eval.c: Delete #include "python/python.h".
13705 * main.c: Delete #include "python/python.h".
13707 * defs.h: Update comment.
13709 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13713 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13715 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13718 2014-02-05 Yao Qi <yao@codesourcery.com>
13720 * remote.c (remote_pass_signals): Remove local 'buf' and use
13722 (remote_program_signals): Likewise.
13724 2014-02-05 Yao Qi <yao@codesourcery.com>
13726 * ctf.c: Include "inferior.h" and "gdbthread.h".
13727 (CTF_PID): A new macro.
13728 (ctf_open): Call inferior_appeared and add_thread_silent.
13729 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13730 (ctf_thread_alive): New function.
13731 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13733 2014-02-05 Yao Qi <yao@codesourcery.com>
13737 2013-05-24 Yao Qi <yao@codesourcery.com>
13739 * tracepoint.c (TFILE_PID): Remove.
13740 (tfile_open): Don't add thread and inferior.
13741 (tfile_close): Don't set 'inferior_ptid'. Don't call
13742 exit_inferior_silent.
13743 (tfile_thread_alive): Remove.
13744 (init_tfile_ops): Don't set field 'to_thread_alive' of
13747 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13749 * remote.c (remote_start_remote): Call remote_check_symbols even
13750 if only symbol-file (not file) has been given.
13752 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13754 * gdbarch.sh (skip_entrypoint): New callback.
13755 * gdbarch.c, gdbarch.h: Regenerate.
13756 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13757 * infrun.c (fill_in_stop_func): Likewise.
13758 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13759 (ppc_elfv2_elf_make_msymbol_special): New function.
13760 (ppc_elfv2_skip_entrypoint): Likewise.
13761 (ppc_linux_init_abi): Install them for ELFv2.
13763 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13765 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13766 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13767 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13768 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13769 structures returned in GPRs.
13771 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13773 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13774 offset to the stack parameter list for the ELFv2 ABI.
13776 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13778 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13779 set_gdbarch_convert_from_func_ptr_addr and
13780 set_gdbarch_elf_make_msymbol_special for ELFv1.
13781 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13782 function descriptors on ELFv1.
13783 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13784 set up r12 at function entry.
13786 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13788 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13789 (struct gdbarch_tdep): New member elf_abi.
13791 * rs6000-tdep.c: Include "elf/ppc64.h".
13792 (rs6000_gdbarch_init): Detect ELF ABI version.
13794 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13796 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13797 within a register pair holding a DFP 128-bit value on little-endian.
13798 (ppc64_sysv_abi_return_value_base): Likewise.
13799 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13800 (dfp_pseudo_register_write): Likewise.
13802 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13804 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13805 offset on little-endian when passing _Decimal32.
13806 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13808 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13810 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13811 of the overlapped FP register within the VSX register on little-
13813 (efpr_pseudo_register_write): Likewise.
13815 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13817 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13818 offset on little-endian when passing small structures.
13820 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13822 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13823 (struct ppc64_sysv_argpos): New data structure.
13824 (ppc64_sysv_abi_push_float): Remove.
13825 (ppc64_sysv_abi_push_val): New function.
13826 (ppc64_sysv_abi_push_integer): Likewise.
13827 (ppc64_sysv_abi_push_freg): Likewise.
13828 (ppc64_sysv_abi_push_vreg): Likewise.
13829 (ppc64_sysv_abi_push_param): Likewise.
13830 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13831 (ppc64_sysv_abi_return_value_base): New function.
13832 (ppc64_sysv_abi_return_value): Refactor to use it.
13834 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13836 * NEWS: Document new target powerpc64le-*-linux*.
13838 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13840 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13841 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13843 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13844 register set used in ELF core dumps. Add floating-point register set.
13846 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13848 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13849 dwarf2_to_gdb[] table using symbolic constants. Adjust
13850 penultimate entry from number representing the PC register
13851 to symbolic constant representing the MDR register. Add
13852 constant for the PC register to the end of the table.
13854 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13856 * bsd-kvm.c: Include <sys/param.h>
13858 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13860 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13862 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13864 * ada-lang.h (clear_ada_sym_cache): Delete.
13866 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13868 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13870 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13872 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13873 the sigreturn register save area only if the syscall is
13876 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13878 * valops.c (value_slice): Minor reformatting.
13880 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13882 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13884 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13886 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13887 New static globals.
13888 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13889 (ada_ignore_descriptive_types_p): New static global.
13890 (find_parallel_type_by_descriptive_type): Return immediately
13891 if ada_ignore_descriptive_types_p is set.
13892 (_initialize_ada_language): Register new commands "maintenance
13893 set ada", "maintenance show ada", "maintenance set ada
13894 ignore-descriptive-types" and "maintenance show ada
13895 ignore-descriptive-types".
13896 * NEWS: Add entry for new "maint ada set/show
13897 ignore-descriptive-types" commands.
13899 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13901 * record-btrace.c (record_btrace_close): Call btrace_teardown
13904 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13906 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13909 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13911 * ada-typeprint (type_is_full_subrange_of_target_type):
13913 (print_range): Add parameter bounds_prefered_p. If not set,
13914 try printing range types using the name of their base type.
13915 (print_range_type): Add parameter bounds_prefered_p.
13916 Use it in call to print_range.
13917 (print_array_type, ada_print_type): Update calls to print_range
13918 and print_range_type.
13920 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13922 * ada-typeprint.c (print_array_type, print_choices, print_range)
13923 (print_range_bound, print_dynamic_range_bound, print_range_type):
13924 Remove declaration.
13926 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13928 * ada-typeprint.c (print_range): Add missing empty line
13929 after local declaration.
13931 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13933 * ada-valprint.c (print_optional_low_bound): Get index_type's
13934 target type for as long as it is a TYPE_CODE_RANGE.
13936 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13938 * procfs.c (procfs_make_note_section): Remove assertion and
13939 associated comment.
13941 2014-01-24 Yao Qi <yao@codesourcery.com>
13943 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13944 * corelow.c (get_core_siginfo): Likewise.
13946 2014-01-24 Yao Qi <yao@codesourcery.com>
13948 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13949 ULONGEST. Don't check 'len' is negative.
13950 (remote_write_bytes): Change type of 'len' to ULONGEST.
13952 2014-01-23 Tom Tromey <tromey@redhat.com>
13955 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13956 Handle exception from frame.block.
13957 (FrameVars.fetch_frame_locals): Likewise.
13959 2014-01-23 Tom Tromey <tromey@redhat.com>
13962 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13963 on a NULL pointer. Move "goto error" to correct place.
13965 2014-01-23 Tom Tromey <tromey@redhat.com>
13968 * python/py-framefilter.c (apply_frame_filter): Call
13969 ensure_python_env after computing gdbarch.
13971 2014-01-23 Yao Qi <yao@codesourcery.com>
13973 * target.c (raw_memory_xfer_partial): Change argument type
13974 from void * to gdb_byte *.
13975 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13977 2014-01-22 Doug Evans <dje@google.com>
13979 New gdbserver option --debug-format=timestamp.
13980 * NEWS: Mention it.
13982 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13984 * syscalls/s390x-linux.xml: New file.
13985 * syscalls/s390-linux.xml: New file.
13986 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13987 (XML_SYSCALL_FILENAME_S390X): Likewise.
13988 (op_svc): New enum value for SVC opcode.
13989 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13990 (s390_linux_get_syscall_number): New function.
13991 (s390_gdbarch_init): Register '*get_syscall_number' and the
13992 syscall xml file name.
13993 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13994 "s390-linux.xml" and "s390x-linux.xml".
13995 * NEWS: Announce new feature.
13997 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13999 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14001 2014-01-22 Pedro Alves <palves@redhat.com>
14003 * xtensa-config.c: Include defs.h.
14005 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14007 * common/common-utils.h: Add "ARI:" comment beside __func__
14010 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14012 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14013 documentation a bit.
14015 2014-01-21 Roland McGrath <mcgrathr@google.com>
14017 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14018 * configure: Regenerate.
14019 * aclocal.m4: Regenerate.
14020 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14021 New substituted variables.
14022 (install-strip): New target.
14023 (INSTALL_SCRIPT): New substituted variable.
14024 (FLAGS_TO_PASS): Add it.
14025 (install-only): Use $(INSTALL_SCRIPT) rather than
14026 $(INSTALL_PROGRAM) for gcore.
14028 2014-01-20 Tom Tromey <tromey@redhat.com>
14030 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14033 2014-01-20 Tom Tromey <tromey@redhat.com>
14035 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14036 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14037 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14038 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14039 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14040 (struct cmd_list_element) <flags>: Remove.
14041 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14042 doc_allocated>: New fields.
14043 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14045 * maint.c (maintenance_do_deprecate): Update.
14046 * top.c (execute_command): Update.
14048 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14050 * xtensa-linux-nat.c: Include asm/ptrace.h.
14052 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14054 * Makefile.in (SFILES): Add d-support.c.
14055 (COMMON_OBS): Add d-support.o.
14056 * d-lang.h (d_parse_symbol): Add comment, now defined in
14058 * d-lang.c (parse_call_convention)
14059 (parse_attributes, parse_function_types)
14060 (parse_function_args, parse_type, parse_identifier)
14061 (call_convention_p, d_parse_symbol): Move functions to ...
14062 * d-support.c: ... New file.
14064 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14066 * d-lang.h (d_parse_symbol): Add declaration.
14067 * d-lang.c (extract_identifiers)
14068 (extract_type_info): Remove functions.
14069 (parse_call_convention, parse_attributes)
14070 (parse_function_types, parse_function_args)
14071 (parse_type, parse_identifier, call_convention_p)
14072 (d_parse_symbol): New functions.
14073 (d_demangle): Use d_parse_symbol to demangle D symbols.
14075 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14077 * d-lang.h (struct builtin_d_type): New data type.
14078 (builtin_d_type): Add declaration.
14079 * d-lang.c (d_language_arch_info, build_d_types)
14080 (builtin_d_type): New functions.
14081 (enum d_primitive_types): New data type.
14082 (d_language_defn): Change c_language_arch_info to
14083 d_language_arch_info.
14084 (d_type_data): New static variable.
14085 (_initialize_d_language): Initialize d_type_data.
14087 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14089 * d-lang.h (d_main_name): Add declaration.
14090 * d-lang.c (d_main_name): New function.
14091 * symtab.c (find_main_name): Add call to d_main_name.
14093 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14095 * d-lang.c (d_language_defn): Change macro_expansion_c to
14096 macro_expansion_no.
14098 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14100 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14102 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14104 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14105 gdb_exception" declaration.
14106 * remote.c (getpkt_or_notif_sane): Likewise.
14108 2014-01-17 Doug Evans <dje@google.com>
14110 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14111 function, contents of dirnames_to_char_ptr_vec_append moved here.
14112 (delim_string_to_char_ptr_vec): New function.
14113 (dirnames_to_char_ptr_vec_append): Rewrite.
14114 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14116 2014-01-17 Doug Evans <dje@google.com>
14118 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14120 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14121 #include "common-utils.h".
14122 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14123 * common/vec.h (VEC_ASSERT_PASS): Update.
14124 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14125 (MACH_CHECK_ERROR): Update.
14127 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14129 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14131 * gdbarch.h: Regenerate.
14133 2014-01-16 Tom Tromey <tromey@redhat.com>
14135 * value.c (struct value) <regnum>: Move earlier.
14137 2014-01-16 Tom Tromey <tromey@redhat.com>
14139 * remote.c (extended_remote_create_inferior): Rename from
14140 extended_remote_create_inferior_1. Add "ops" argument. Remove
14141 old implementation.
14143 2014-01-16 Pedro Alves <palves@redhat.com>
14145 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14146 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14149 2014-01-16 Doug Evans <dje@google.com>
14151 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14153 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14155 * btrace.h (btrace_thread_flag): New.
14156 (struct btrace_thread_info) <flags>: New.
14157 * record-btrace.c (record_btrace_resume_thread)
14158 (record_btrace_find_thread_to_move, btrace_step_no_history)
14159 (btrace_step_stopped, record_btrace_start_replaying)
14160 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14161 (record_btrace_find_resume_thread): New.
14162 (record_btrace_resume, record_btrace_wait): Extend.
14163 (record_btrace_can_execute_reverse): New.
14164 (record_btrace_open): Fail in non-stop mode.
14165 (record_btrace_set_replay): Split into this, ...
14166 (record_btrace_stop_replaying): ... this, ...
14167 (record_btrace_clear_histories): ... and this.
14168 (init_record_btrace_ops): Init to_can_execute_reverse.
14169 * NEWS: Announce it.
14171 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14173 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14174 (forward_target_decr_pc_after_break)
14175 (target_decr_pc_after_break): New.
14176 * target.c (forward_target_decr_pc_after_break)
14177 (target_decr_pc_after_break): New.
14178 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14179 instead of gdbarch_decr_pc_after_break.
14180 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14181 instead of gdbarch_decr_pc_after_break.
14182 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14183 instead of gdbarch_decr_pc_after_break.
14184 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14185 instead of gdbarch_decr_pc_after_break.
14186 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14187 instead of gdbarch_decr_pc_after_break.
14188 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14189 instead of gdbarch_decr_pc_after_break.
14191 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14193 * btrace.c: Include regcache.h.
14194 (btrace_add_pc): New.
14195 (btrace_enable): Call btrace_add_pc.
14196 (btrace_is_empty): New.
14197 * btrace.h (btrace_is_empty): New.
14198 * record-btrace.c (require_btrace, record_btrace_info): Call
14201 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14203 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14204 Support delta reads.
14205 (linux_disable_btrace): Change return type.
14206 * common/linux-btrace.h (linux_read_btrace): Change parameters
14207 and return type to allow error reporting. Update users.
14208 (linux_disable_btrace): Change return type. Update users.
14209 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14211 (btrace_error): New.
14212 (btrace_block) <begin>: Comment on BEGIN == 0.
14213 * btrace.c (btrace_compute_ftrace): Start from the end of
14215 (btrace_stitch_trace, btrace_clear_history): New.
14216 (btrace_fetch): Read delta trace, return if replaying.
14217 (btrace_clear): Move clear history code to btrace_clear_history.
14218 (parse_xml_btrace): Throw an error if parsing failed.
14219 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14220 and return type to allow error reporting.
14221 (target_read_btrace): Change parameters and return type to allow
14223 * target.c (target_read_btrace): Update.
14224 * remote.c (remote_read_btrace): Support delta reads. Pass
14226 * NEWS: Announce it.
14228 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14230 * record.h (record_btrace_frame_unwind)
14231 (record_btrace_tailcall_frame_unwind): New declarations.
14232 * dwarf2-frame: Include record.h
14233 (dwarf2_frame_cfa): Throw an error for btrace frames.
14234 * record-btrace.c: Include hashtab.h.
14235 (btrace_get_bfun_name): New.
14236 (btrace_call_history): Call btrace_get_bfun_name.
14237 (struct btrace_frame_cache): New.
14239 (bfcache_hash, bfcache_eq, bfcache_new): New.
14240 (btrace_get_frame_function): New.
14241 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14242 (record_btrace_frame_this_id): Compute own id.
14243 (record_btrace_frame_prev_register): Provide PC, throw_error
14244 for all other registers.
14245 (record_btrace_frame_sniffer): Detect btrace frames.
14246 (record_btrace_tailcall_frame_sniffer): New.
14247 (record_btrace_frame_dealloc_cache): New.
14248 (record_btrace_frame_unwind): Add new functions.
14249 (record_btrace_tailcall_frame_unwind): New.
14250 (_initialize_record_btrace): Allocate cache.
14251 * btrace.c (btrace_clear): Call reinit_frame_cache.
14252 * NEWS: Announce it.
14254 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14256 * record-btrace.c (record_btrace_set_replay)
14257 (record_btrace_goto_begin, record_btrace_goto_end)
14258 (record_btrace_goto): New.
14259 (init_record_btrace_ops): Initialize them.
14260 * NEWS: Announce it.
14262 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14264 * record-btrace.c (record_btrace_find_new_threads)
14265 (record_btrace_thread_alive): New.
14266 (init_record_btrace_ops): Initialize to_find_new_threads and
14269 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14271 * record-btrace.c (record_btrace_resume): New.
14272 (record_btrace_wait): New.
14273 (init_record_btrace_ops): Initialize to_wait and to_resume.
14275 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14277 * record-btrace.c (record_btrace_xfer_partial)
14278 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14279 (record_btrace_allow_memory_access): New.
14280 (init_record_btrace_ops): Initialize new methods.
14281 * target.c (raw_memory_xfer_partial): Bail out if target reports
14282 that this memory is not available.
14284 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14286 * target.h (target_ops) <to_insert_breakpoint>
14287 <to_remove_breakpoint>: Add target_ops parameter.
14288 (forward_target_insert_breakpoint): New.
14289 (forward_target_remove_breakpoint): New.
14290 (memory_remove_breakpoint, memory_insert_breakpoint):
14291 Add target_ops parameter.
14292 * target.c (target_insert_breakpoint): Split into this and ...
14293 (forward_target_insert_breakpoint): ... this.
14294 (target_remove_breakpoint): Split into this and ...
14295 (forward_target_remove_breakpoint): ... this.
14296 (debug_to_insert_breakpoint): Add target_ops parameter.
14297 Call forward_target_insert_breakpoint.
14298 (debug_to_remove_breakpoint): Add target_ops parameter.
14299 Call forward_target_remove_breakpoint.
14300 (update_current_target): Do not inherit or default to_insert_breakpoint
14301 and to_remove_breakpoint.
14302 * corelow.c (ignore): Add target_ops parameter.
14303 * exec.c (ignore): Add target_ops parameter.
14304 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14305 Add target_ops parameter.
14306 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14307 Add target_ops parameter.
14308 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14309 Add target_ops parameter.
14310 * record-full.c (record_full_beneath_to_insert_breakpoint)
14311 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14312 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14313 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14314 (record_full_core_remove_breakpoint): Add target_ops parameter.
14316 (record_full_beneath_to_insert_breakpoint_ops)
14317 (record_full_beneath_to_remove_breakpoint_ops)
14318 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14319 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14320 tmp_to_remove_breakpoint_ops,
14321 record_full_beneath_to_insert_breakpoint_ops, and
14322 record_full_beneath_to_remove_breakpoint_ops.
14323 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14324 (m32r_remove_breakpoint): Add target_ops parameter.
14325 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14326 Add target_ops parameter.
14327 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14328 Add target_ops parameter.
14330 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14331 Markus Metzger <markus.t.metzger@intel.com>
14333 * record-btrace.c: Include frame-unwind.h.
14334 (record_btrace_frame_unwind_stop_reason)
14335 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14336 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14338 (init_record_btrace_ops): Install it.
14340 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14342 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14345 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14347 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14350 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14352 * frame-unwind.c: Include target.h.
14353 (frame_unwind_try_unwinder): New function with code from ...
14354 (frame_unwind_find_by_frame): ... here. New variable
14355 unwinder_from_target, call also target_get_unwinder)
14356 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14357 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14358 * target.h (struct target_ops): New fields to_get_unwinder and
14359 to_get_tailcall_unwinder.
14360 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14362 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14364 * record-btrace.c (record_btrace_fetch_registers)
14365 (record_btrace_store_registers)
14366 (record_btrace_to_prepare_to_store): New.
14367 (init_record_btrace_ops): Add the above.
14369 2014-01-16 Tom Tromey <tromey@redhat.com>
14371 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14372 * target.h (struct target_ops) <to_prepare_to_store>: Add
14374 (target_prepare_to_store): Add argument.
14375 * target.c (debug_to_prepare_to_store): Add argument.
14376 (update_current_target): Update.
14377 * remote.c (remote_prepare_to_store): Add 'self' argument.
14378 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14379 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14380 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14381 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14383 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14384 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14385 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14386 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14387 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14389 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14391 * btrace.h (replay) <replay>: New.
14392 (btrace_is_replaying): New.
14393 * btrace.c (btrace_clear): Free replay iterator.
14394 (btrace_is_replaying): New.
14395 * record-btrace.c (record_btrace_is_replaying): New.
14396 (record_btrace_info): Print insn number if replaying.
14397 (record_btrace_insn_history): Start at replay position.
14398 (record_btrace_call_history): Start at replay position.
14399 (init_record_btrace_ops): Init to_record_is_replaying.
14401 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14403 * record-btrace.c (record_btrace_insn_history_range): Include
14405 (record_btrace_insn_history_from): Adjust range.
14406 (record_btrace_call_history_range): Include
14408 (record_btrace_call_history_from): Adjust range.
14409 * NEWS: Announce changes.
14411 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14413 * record.h (enum record_print_flag)
14414 <record_print_indent_calls>: New.
14415 * record.c (get_call_history_modifiers): Recognize /c modifier.
14416 (_initialize_record): Document /c modifier.
14417 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14418 Reorder fields. Optionally indent the function name. Update
14420 * NEWS: Announce changes.
14422 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14424 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14426 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14428 * btrace.c (ftrace_new_function): Start counting at one.
14429 * record-btrace.c (record_btrace_info): Adjust number of calls
14431 * NEWS: Announce it.
14433 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14435 * record-btrace.c (btrace_call_history_insn_range): Print
14436 insn range as [begin, end].
14438 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14440 * btrace.h (struct btrace_func_link): New.
14441 (enum btrace_function_flag): New.
14442 (struct btrace_inst): Rename to ...
14443 (struct btrace_insn): ...this. Update all users.
14444 (struct btrace_func) <ibegin, iend>: Remove.
14445 (struct btrace_func_link): New.
14446 (struct btrace_func): Rename to ...
14447 (struct btrace_function): ...this. Update all users.
14448 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14449 (number, level, flags>: New.
14450 (struct btrace_insn_iterator): Rename to ...
14451 (struct btrace_insn_history): ...this.
14453 (struct btrace_insn_iterator, btrace_call_iterator): New.
14454 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14455 (struct btrace_target_info) <begin, end, level>
14456 <insn_history, call_history>: New.
14457 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14458 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14459 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14460 (btrace_call_number, btrace_call_begin, btrace_call_end)
14461 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14462 (btrace_find_function_by_number, btrace_set_insn_history)
14463 (btrace_set_call_history): New.
14464 * btrace.c (btrace_init_insn_iterator)
14465 (btrace_init_func_iterator, compute_itrace): Remove.
14466 (ftrace_print_function_name, ftrace_print_filename)
14467 (ftrace_skip_file): Change
14468 parameter to const.
14469 (ftrace_init_func): Remove.
14470 (ftrace_debug): Use new btrace_function fields.
14471 (ftrace_function_switched): Also consider gaining and
14472 losing symbol information).
14473 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14474 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14475 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14477 (ftrace_new_function): Move. Remove debug print.
14478 (ftrace_update_lines, ftrace_update_insns): New.
14479 (ftrace_update_function): Check for call, ret, and jump.
14480 (compute_ftrace): Renamed to ...
14481 (btrace_compute_ftrace): ...this. Rewritten to compute call
14483 (btrace_fetch, btrace_clear): Updated.
14484 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14485 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14486 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14487 (btrace_call_number, btrace_call_begin, btrace_call_end)
14488 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14489 (btrace_find_function_by_number, btrace_set_insn_history)
14490 (btrace_set_call_history): New.
14491 * record-btrace.c (require_btrace): Use new btrace thread
14493 (record_btrace_info, btrace_insn_history)
14494 (record_btrace_insn_history, record_btrace_insn_history_range):
14495 Use new btrace thread info fields and new iterator.
14496 (btrace_func_history_src_line): Rename to ...
14497 (btrace_call_history_src_line): ...this. Use new btrace
14498 thread info fields.
14499 (btrace_func_history): Rename to ...
14500 (btrace_call_history): ...this. Use new btrace thread info
14501 fields and new iterator.
14502 (record_btrace_call_history, record_btrace_call_history_range):
14503 Use new btrace thread info fields and new iterator.
14505 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14507 * frame.h (frame_id_build_unavailable_stack_special): New.
14508 * frame.c (frame_id_build_unavailable_stack_special): New.
14510 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14512 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14513 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14514 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14516 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14517 (i386_insn_is_jump, i386_jmp_p): New.
14518 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14519 insn_is_jump to gdbarch.
14520 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14521 * gdbarch.h: Regenerated.
14522 * gdbarch.c: Regenerated.
14523 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14524 (default_insn_is_jump): New.
14525 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14526 (default_insn_is_jump): New.
14528 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14530 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14532 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14533 (btrace_read_type) <btrace_read_new>: Change to ...
14534 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14536 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14538 * common/linux-btrace.c (linux_read_btrace): Free trace from
14539 previous iteration.
14541 2014-01-15 Doug Evans <dje@google.com>
14543 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14546 2014-01-15 Tom Tromey <tromey@redhat.com>
14548 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14549 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14550 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14551 (set_objfile_main_name): New function.
14552 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14553 language_of_main>: New fields.
14554 (set_objfile_main_name): Declare.
14555 * symtab.c (find_main_name): Loop over objfiles to find the main
14557 (set_main_name): Now static.
14558 (get_main_info): Add comment.
14559 * symtab.h (set_main_name): Don't declare.
14561 2014-01-15 Tom Tromey <tromey@redhat.com>
14563 * symtab.c (main_progspace_key): New global.
14564 (struct main_info): New.
14565 (name_of_main, language_of_main): Remove.
14566 (get_main_info, main_info_cleanup): New function.
14567 (set_main_name, main_name, main_language): Use get_main_info.
14568 (_initialize_symtab): Initialize main_progspace_key.
14570 2014-01-15 Tom Tromey <tromey@redhat.com>
14572 * dbxread.c (process_one_symbol): Update.
14573 * dwarf2read.c (read_partial_die): Update.
14574 * symfile.c (set_initial_language): Call main_language.
14575 * symtab.c (language_of_main): Now static.
14576 (set_main_name): Add 'lang' parameter.
14577 (find_main_name): Update.
14578 (main_language): New function.
14579 (symtab_observer_executable_changed): Update.
14580 * symtab.h (set_main_name): Update.
14581 (language_of_main): Remove.
14582 (main_language): Declare.
14584 2014-01-15 Tom Tromey <tromey@redhat.com>
14586 * symfile.c (init_entry_point_info): Use new "initialized" field.
14588 * objfiles.h (struct entry_point) <initialized>: New field.
14589 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14590 (struct objfile) <ei>: ...here. Remove.
14591 * objfiles.c (entry_point_address_query): Update.
14593 2014-01-15 Tom Tromey <tromey@redhat.com>
14595 * objfiles.c (entry_point_address_query): Relocate entry point
14597 (objfile_relocate1): Do not relocate entry point address.
14598 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14599 <the_bfd_section_index>: New field.
14600 * symfile.c (init_entry_point_info): Find the entry point's
14603 2014-01-15 Tom Tromey <tromey@redhat.com>
14605 * solib-frv.c (enable_break): Use entry_point_address_query.
14607 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14609 * NEWS: Add note on improved process record-replay on
14610 arm*-linux* targets.
14612 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14614 * arm-tdep.c (enum arm_record_result): New enum.
14615 (arm_record_unsupported_insn): New function.
14616 (arm_record_coproc_data_proc): Removed.
14617 (thumb2_record_ld_st_multiple): New function.
14618 (thumb2_record_ld_st_dual_ex_tbb): New function.
14619 (thumb2_record_data_proc_sreg_mimm): New function.
14620 (thumb2_record_ps_dest_generic): New function.
14621 (thumb2_record_branch_misc_cntrl): New function.
14622 (thumb2_record_str_single_data): New function.
14623 (thumb2_record_ld_mem_hints): New function.
14624 (thumb2_record_ld_word): New function.
14625 (thumb2_record_lmul_lmla_div): New function.
14626 (thumb2_record_decode_insn_handler): New function.
14627 (decode_insn): Add thumb32 instruction handlers.
14629 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14631 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14632 (struct arm_linux_record_tdep): Declare.
14633 (arm_canonicalize_syscall): New function.
14634 (arm_all_but_pc_registers_record): New function.
14635 (arm_linux_syscall_record): New function.
14636 (arm_linux_init_abi): Add syscall recording constructs.
14637 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14638 decoding. (arm_record_coproc_data_proc): Update arm syscall
14640 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14641 <arm_syscall_record>: New field.
14642 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14645 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14647 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14648 register for push instruction recording.
14650 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14652 * arm-tdep.c (thumb_record_misc): Update to correct logical
14653 error while recording ldm, ldmia and pop instructions.
14655 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14657 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14659 2014-01-15 Pedro Alves <palves@redhat.com>
14661 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14662 (go32_resume, go32_fetch_registers, store_register)
14663 (go32_store_registers, go32_prepare_to_store)
14664 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14665 (go32_create_inferior, go32_can_run, go32_terminal_init)
14666 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14669 2014-01-15 Tom Tromey <tromey@redhat.com>
14671 * target.h (async_callback_ftype): New typedef.
14672 (struct target_ops) <to_async>: Use it.
14674 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14676 * python/py-value.c (get_field_type): Remove unnecessary curly
14677 braces for single-statement if block.
14679 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14681 * python/py-type.c (convert_field): Add missing empty line
14682 after declarations.
14684 2014-01-14 Doug Evans <dje@google.com>
14686 * symfile.h (expand_symtabs_matching): Renamed from
14687 expand_partial_symbol_names. Update prototype.
14688 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14689 * symfile.c (expand_symtabs_matching): Renamed from
14690 expand_partial_symbol_names. New args file_matcher, kind.
14691 Rename arg fun to symbol_matcher.
14692 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14693 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14694 ada_expand_partial_symbol_name.
14695 (ada_make_symbol_completion_list): Update to call
14696 expand_symtabs_matching.
14697 (ada_add_global_exceptions): Call expand_symtabs_matching.
14698 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14699 call map_symbol_filenames.
14700 * symtab.c (sources_info): Update to call map_symbol_filenames.
14701 (search_symbols): Call expand_symtabs_matching.
14702 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14703 (default_make_symbol_completion_list_break_on): Update to call
14704 expand_symtabs_matching.
14705 (make_source_files_completion_list): Update to call
14706 map_symbol_filenames.
14708 2014-01-14 Doug Evans <dje@google.com>
14710 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14711 (expand_symtabs_symbol_matcher_ftype): New typedef.
14712 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14713 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14714 * symfile.c (expand_partial_symbol_names): Update to use
14715 expand_symtabs_symbol_matcher_ftype.
14716 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14717 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14718 Arg name_matcher renamed to symbol_matcher.
14719 * psymtab.c (recursively_search_psymtabs): Update to use
14720 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14722 (expand_symtabs_matching_via_partial): Update to use
14723 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14724 Arg name_matcher renamed to symbol_matcher.
14726 2014-01-14 Doug Evans <dje@google.com>
14728 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14729 (map_partial_symbol_filenames): Ditto.
14730 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14731 (map_partial_symbol_filenames): Ditto.
14732 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14733 (map_partial_symbol_filenames): Ditto.
14734 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14735 (map_partial_symbol_filenames): Ditto.
14736 * symtab.c: Delete #include "psymtab.h".
14738 2014-01-14 Pedro Alves <palves@redhat.com>
14739 Tom Tromey <tromey@redhat.com>
14741 * infrun.c (use_displaced_stepping): Use find_record_target
14742 instead of RECORD_IS_USED.
14743 (adjust_pc_after_break): Use record_full_is_used instead of
14745 * record-btrace.c (record_btrace_open): Call record_preopen
14746 instead of checking RECORD_IS_USED.
14747 * record-full.c (record_full_shortname)
14748 (record_full_core_shortname): New globals.
14749 (record_full_is_used): New function.
14750 (find_full_open): Call record_preopen instead of checking
14752 (init_record_full_ops): Set the target's shortname to
14753 record_full_shortname.
14754 (init_record_full_core_ops): Set the target's shortname to
14755 record_full_core_shortname.
14756 * record-full.h (record_full_is_used): Declare.
14757 * record.c (find_record_target): Make extern.
14758 (record_preopen): New function.
14759 * record.h (RECORD_IS_USED): Delete macro.
14760 (find_record_target, record_preopen): Declare functions.
14762 2014-01-14 Yao Qi <yao@codesourcery.com>
14764 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14765 'len''s type to ULONGEST.
14766 (core_xfer_shared_libraries_aix): Likewise.
14767 * gdbarch.c, gdbarch.h: Regenerated.
14768 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14769 Change type of 'len' to ULONGEST.
14770 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14771 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14773 2014-01-14 Yao Qi <yao@codesourcery.com>
14775 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14776 type of 'len' to ULONGEST.
14777 (linux_xfer_osdata_processgroups): Likewise.
14778 (linux_xfer_osdata_threads): Likewise.
14779 (linux_xfer_osdata_fds): Likewise.
14780 (linux_xfer_osdata_isockets): Likewise.
14781 (linux_xfer_osdata_shm): Likewise.
14782 (linux_xfer_osdata_sem): Likewise.
14783 (linux_xfer_osdata_msg): Likewise.
14784 (linux_common_xfer_osdata): Likewise.
14785 (struct osdata_type) <getter>: Likewise.
14786 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14789 2014-01-14 Yao Qi <yao@codesourcery.com>
14791 * target.h (target_xfer_partial_ftype): Update.
14792 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14794 * aix-thread.c (aix_thread_xfer_partial): Change type of
14795 argument 'len' to ULONGEST.
14796 * auxv.c (procfs_xfer_auxv): Likewise.
14797 (ld_so_xfer_auxv): Likewise.
14798 (memory_xfer_auxv): Likewise.
14799 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14800 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14801 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14802 * corelow.c (core_xfer_partial): Likewise.
14803 * ctf.c (ctf_xfer_partial): Likewise.
14804 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14806 (darwin_read_dyld_info): Likewise.
14807 (darwin_xfer_partial): Likewise.
14808 * exec.c (section_table_xfer_memory_partial): Likewise.
14809 (exec_xfer_partial): Likewise.
14810 * exec.h (section_table_xfer_memory_partial): Update
14812 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14813 instead of plongest.
14814 (gnu_xfer_partial): Likewise.
14815 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14816 (ia64_hpux_xfer_solib_got): Likewise.
14817 (ia64_hpux_xfer_partial): Likewise.
14818 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14819 * inf-ptrace.c (inf_ptrace_xfer_partial):
14820 * inf-ttrace.c (inf_ttrace_xfer_partial):
14821 * linux-nat.c (linux_xfer_siginfo): Likewise.
14822 (linux_nat_xfer_partial): Likewise.
14823 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14824 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14825 * monitor.c (monitor_xfer_memory): Likewise.
14826 (monitor_xfer_partial): Likewise.
14827 * procfs.c (procfs_xfer_partial): Likewise.
14828 * record-full.c (record_full_xfer_partial): Likewise.
14829 (record_full_core_xfer_partial): Likewise.
14830 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14831 instead of plongest.
14832 (gdbsim_xfer_partial): Likewise.
14833 * remote.c (remote_xfer_partial): Likewise.
14834 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14835 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14837 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14838 (rs6000_xfer_shared_libraries): Likewise.
14839 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14840 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14841 (sparc_xfer_partial): Likewise.
14842 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14843 (spu_xfer_partial): Likewise.
14844 * spu-multiarch.c (spu_xfer_partial): Likewise.
14845 * target.c (target_read_live_memory): Likewise.
14846 (memory_xfer_live_readonly_partial): Likewise.
14847 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14848 (target_xfer_partial, default_xfer_partial): Likewise.
14849 (current_xfer_partial): Likewise.
14850 * tracepoint.c (tfile_xfer_partial): Likewise.
14851 * windows-nat.c (windows_xfer_memory): Likewise. Call
14852 pulongest instead of plongest.
14853 (windows_xfer_partial): Likewise.
14854 (windows_xfer_shared_libraries): Likewise.
14856 2014-01-14 Yao Qi <yao@codesourcery.com>
14858 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14859 target_xfer_partial_ftype.
14861 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14865 * valops.c (value_struct_elt_bitpos): New function
14866 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14867 object to 'None' if the field name is an empty string ("").
14868 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14869 attribute to look for a field when 'name' is 'None'.
14870 (get_field_type): New function
14872 2014-01-13 Doug Evans <dje@google.com>
14875 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14876 (try_open_dwop_file): Ditto.
14877 * gdb_bfd.c: #include "vec.h".
14878 (bfdp): New typedef.
14879 (struct gdb_bfd_data): New member included_bfds.
14880 (gdb_bfd_unref): Unref all included bfds.
14881 (gdb_bfd_record_inclusion): New function.
14882 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14884 2014-01-13 Tom Tromey <tromey@redhat.com>
14886 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14888 2014-01-13 Tom Tromey <tromey@redhat.com>
14890 * defs.h (use_windows): Remove.
14891 * gdb.c (main): Update.
14892 * main.c (captured_main, gdb_main): Update.
14893 * main.h (struct captured_main_args) <use_windows>: Remove.
14894 * top.c (use_windows): Remove.
14896 2014-01-13 Tom Tromey <tromey@redhat.com>
14898 * defs.h (deprecated_flush_hook): Remove.
14900 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14903 * linux-thread-db.c (try_thread_db_load): Add parameter
14904 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14905 (try_thread_db_load_from_pdir_1): Move it there from here.
14906 (try_thread_db_load_from_sdir): Update caller.
14907 (try_thread_db_load_from_dir): Move it there from here.
14909 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14911 * regformats/regdat.sh: Always rewrite the register file.
14913 2014-01-13 Pedro Alves <palves@redhat.com>
14915 * Makefile.in (CHECK_HEADERS): New variable.
14916 (check-headers:): New rule.
14918 2014-01-13 Tom Tromey <tromey@redhat.com>
14920 * cli/cli-setshow.c (do_set_command): Update.
14921 * defs.h (deprecated_set_hook): Remove.
14922 * top.c (deprecated_set_hook): Remove.
14924 2014-01-13 Pedro Alves <palves@redhat.com>
14926 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14927 the tracepoint if the PC is a pseudo-register.
14929 2014-01-13 Tom Tromey <tromey@redhat.com>
14931 * defs.h (XCALLOC): Remove.
14932 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14933 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14934 * dwarf2loc.c (allocate_piece_closure): Likewise.
14935 * elfread.c (elf_symfile_segments): Likewise.
14936 (elf_symfile_segments): Likewise.
14937 * gdbtypes.c (copy_type_recursive): Likewise.
14938 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14939 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14940 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14942 * mt-tdep.c (mt_gdbarch_init): Likewise.
14943 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14945 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14946 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14947 * registry.c (registry_alloc_data): Likewise.
14948 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14949 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14950 * serial.c (serial_fdopen_ops): Likewise.
14951 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14953 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14954 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14957 2014-01-13 Tom Tromey <tromey@redhat.com>
14959 * defs.h (XMALLOC): Remove.
14960 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14961 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14962 * cli-out.c (struct ui_out *): Likewise.
14963 * cli/cli-dump.c (add_dump_command): Likewise.
14964 (add_dump_command): Likewise.
14965 * complaints.c (get_complaints): Likewise.
14966 (find_complaint): Likewise.
14967 * dwarf2-frame.c (execute_cfa_program): Likewise.
14968 * dwarf2read.c (abbrev_table_read_table): Likewise.
14969 * gdbarch.sh: Likewise.
14970 * gdbarch.c: Rebuild.
14971 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14972 * interps.c (interp_new): Likewise.
14973 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14974 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14975 * mi/mi-console.c (mi_console_file_new): Likewise.
14976 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14977 * mi/mi-out.c (mi_out_new): Likewise.
14978 * mi/mi-parse.c (mi_parse): Likewise.
14979 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14980 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14981 * observer.c (xalloc_observer_list_node): Likewise.
14982 * regcache.c (regcache_xmalloc_1): Likewise.
14983 * reggroups.c (reggroup_new): Likewise.
14984 (_initialize_reggroup): Likewise.
14985 * registry.c (register_data_with_cleanup): Likewise.
14986 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14987 * ser-base.c (serial_ttystate): Likewise.
14988 * ser-mingw.c (make_pipe_state): Likewise.
14989 * ser-pipe.c (pipe_open): Likewise.
14990 * serial.c (serial_open): Likewise.
14991 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14992 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14993 (tui_alloc_win_info): Likewise.
14994 (tui_add_content_elements): Likewise.
14995 * tui/tui-file.c (tui_file_new): Likewise.
14996 * tui/tui-out.c (tui_out_new): Likewise.
14997 * ui-file.c (mem_file_new): Likewise.
14998 * ui-out.c (push_level): Likewise.
14999 (make_cleanup_ui_out_end): Likewise.
15000 (append_header_to_list): Likewise.
15001 (ui_out_new): Likewise.
15002 * user-regs.c (user_reg_add_builtin): Likewise.
15004 2014-01-13 Tom Tromey <tromey@redhat.com>
15006 * defs.h (XZALLOC): Remove.
15007 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15008 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15009 (get_ada_tasks_inferior_data): Likewise.
15010 * auto-load.c (get_auto_load_pspace_data): Likewise.
15011 * auxv.c (get_auxv_inferior_data): Likewise.
15012 * bfd-target.c (target_bfd_reopen): Likewise.
15013 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15014 (deprecated_insert_raw_breakpoint): Likewise.
15015 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15016 * corelow.c (core_open): Likewise.
15017 * darwin-nat.c (darwin_check_new_threads): Likewise.
15018 (darwin_attach_pid): Likewise.
15019 * dummy-frame.c (dummy_frame_push): Likewise.
15020 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15021 * dwarf2loc.c (allocate_piece_closure): Likewise.
15022 * elfread.c (elf_symfile_segments): Likewise.
15023 * eval.c (ptrmath_type_p): Likewise.
15024 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15025 * gdbtypes.c (alloc_type_arch): Likewise.
15026 (alloc_type_instance): Likewise.
15027 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15028 * inf-child.c (inf_child_can_use_agent): Likewise.
15029 * inflow.c (get_inflow_inferior_data): Likewise.
15030 * infrun.c (save_infcall_suspend_state): Likewise.
15031 * jit.c (jit_reader_load): Likewise.
15032 (get_jit_objfile_data): Likewise.
15033 (get_jit_program_space_data): Likewise.
15034 (jit_object_open_impl): Likewise.
15035 (jit_symtab_open_impl): Likewise.
15036 (jit_block_open_impl): Likewise.
15037 (jit_frame_sniffer): Likewise.
15038 * linux-fork.c (add_fork): Likewise.
15039 * maint.c (make_command_stats_cleanup): Likewise.
15040 * objfiles.c (get_objfile_pspace_data): Likewise.
15041 * opencl-lang.c (struct lval_closure): Likewise.
15042 * osdata.c (osdata_start_osdata): Likewise.
15043 * progspace.c (new_address_space): Likewise.
15044 (add_program_space): Likewise.
15045 * remote-sim.c (get_sim_inferior_data): Likewise.
15046 * sh-tdep.c (sh_gdbarch_init): Likewise.
15047 * skip.c (Ignore): Likewise.
15048 (skip_delete_command): Likewise.
15049 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15050 (library_list_start_library): Likewise.
15051 (solib_aix_current_sos): Likewise.
15052 * solib-darwin.c (get_darwin_info): Likewise.
15053 (darwin_current_sos): Likewise.
15054 * solib-dsbt.c (get_dsbt_info): Likewise.
15055 * solib-ia64-hpux.c (new_so_list): Likewise.
15056 (ia64_hpux_get_solib_linkage_addr): Likewise.
15057 * solib-spu.c (append_ocl_sos): Likewise.
15058 (spu_current_sos): Likewise.
15059 * solib-svr4.c (get_svr4_info): Likewise.
15060 (svr4_keep_data_in_core): Likewise.
15061 (library_list_start_library): Likewise.
15062 (svr4_default_sos): Likewise.
15063 (svr4_read_so_list): Likewise.
15064 * solib-target.c (library_list_start_library): Likewise.
15065 (solib_target_current_sos): Likewise.
15066 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15067 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15068 * symfile.c (default_symfile_segments): Likewise.
15069 * target-descriptions.c (tdesc_data_init): Likewise.
15070 (tdesc_create_reg): Likewise.
15071 (struct tdesc_type *): Likewise.
15072 (tdesc_create_vector): Likewise.
15073 (tdesc_set_struct_size): Likewise.
15074 (struct tdesc_type *): Likewise.
15075 (tdesc_free_feature): Likewise.
15076 (tdesc_create_feature): Likewise.
15077 * windows-nat.c (windows_add_thread): Likewise.
15078 (windows_make_so): Likewise.
15079 * xml-support.c (gdb_xml_body_text): Likewise.
15080 (gdb_xml_create_parser_and_cleanup): Likewise.
15081 (xml_process_xincludes): Likewise.
15082 * xml-syscall.c (allocate_syscalls_info): Likewise.
15083 (syscall_create_syscall_desc): Likewise.
15085 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15087 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15088 function, with code from i386_stap_parse_special_token.
15089 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15090 (i386_stap_parse_special_token): Move code to the two functions
15091 above; simplify it.
15093 2014-01-09 Pedro Alves <palves@redhat.com>
15094 Hui Zhu <hui@codesourcery.com>
15097 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15098 bp_err_string. Don't mark the location shlib_disabled if the
15099 error thrown wasn't a generic or memory error. Catch errors
15100 thrown while inserting breakpoints in overlayed code. Output
15101 error message of software breakpoints.
15102 * remote.c (remote_insert_breakpoint): If this breakpoint has
15103 target-side commands but this stub doesn't support Z0 packets,
15104 throw NOT_SUPPORTED_ERROR error.
15105 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15106 * target.h (target_insert_breakpoint): Extend comment.
15107 (target_insert_hw_breakpoint): Add comment.
15109 2014-01-08 Pedro Alves <palves@redhat.com>
15111 * remote.c (remote_add_thread): Add threads silently if starting
15113 (remote_notice_new_inferior): If in all-stop, and starting up,
15114 don't call notice_new_inferior.
15115 (get_current_thread): New function, factored out from ...
15116 (add_current_inferior_and_thread): ... this. Adjust.
15117 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15118 found any thread, then select the remote's current thread as GDB's
15119 current thread too.
15121 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15123 * NEWS: Create a new section for the next release branch.
15124 Rename the section of the current branch, now that it has
15127 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15129 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15130 * version.in: Bump version to 7.7.50.DATE-cvs.
15132 2014-01-08 Yao Qi <yao@codesourcery.com>
15134 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15135 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15136 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15138 2014-01-08 Yao Qi <yao@codesourcery.com>
15140 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15141 return value of bfd_get_filename to symbol_file_add_from_bfd.
15143 2014-01-08 Pierre Muller <muller@sourceware.org>
15146 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15147 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15148 to prim_record_mininal_symbol_and_info.
15149 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15150 in call to prim_record_minimal_symbol_and_info.
15151 (read_pe_exported_syms): Set index field of section_data.
15153 2014-01-07 Andrew Pinski <apinski@cavium.com>
15155 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15156 * features/aarch64.c: Regenerate.
15158 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15160 * target.c (return_null): Define.
15161 (update_current_target): Use it instead of return_zero for
15162 functions that return a pointer.
15164 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15166 * source.c (add_path): Fix check for duplicated paths in the previously
15169 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15171 * ada-lang.c: Remove duplicated include statements.
15172 * alphabsd-nat.c: Ditto.
15173 * amd64-darwin-tdep.c: Ditto.
15174 * amd64fbsd-nat.c: Ditto.
15175 * auto-load.c: Ditto.
15177 * breakpoint.c: Ditto.
15178 * dbxread.c: Ditto.
15179 * fork-child.c: Ditto.
15180 * gdb_usleep.c: Ditto.
15181 * i386-darwin-tdep.c: Ditto.
15182 * i386fbsd-nat.c: Ditto.
15184 * inferior.c: Ditto.
15185 * jv-lang.c: Ditto.
15186 * linux-nat.c: Ditto.
15187 * linux-tdep.c: Ditto.
15188 * m68kbsd-nat.c: Ditto.
15189 * m68klinux-nat.c: Ditto.
15190 * microblaze-tdep.c: Ditto.
15191 * mips-linux-tdep.c: Ditto.
15192 * mn10300-tdep.c: Ditto.
15193 * nto-tdep.c: Ditto.
15194 * opencl-lang.c: Ditto.
15196 * printcmd.c: Ditto.
15197 * regcache.c: Ditto.
15198 * remote-m32r-sdi.c: Ditto.
15200 * symfile.c: Ditto.
15202 * tilegx-linux-nat.c: Ditto.
15203 * tilegx-tdep.c: Ditto.
15204 * tracepoint.c: Ditto.
15206 * vaxbsd-nat.c: Ditto.
15207 * windows-nat.c: Ditto.
15208 * xtensa-tdep.c: Ditto.
15210 2014-01-07 Yao Qi <yao@codesourcery.com>
15212 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15214 2014-01-07 Yao Qi <yao@codesourcery.com>
15215 Joel Brobecker <brobecker@adacore.com>
15217 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15218 (pdc_write_regs): Likewise.
15219 (fetch_regs_kernel_thread): Likewise.
15220 (store_regs_kernel_thread): Likewise.
15222 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15224 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15225 tagged type objects to their actual type.
15227 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15229 * ada-valprint.c (print_field_values): Add "language" parameter.
15230 Update calls to print_field_values and print_variant_part.
15231 Pass new parameter "language" in call to val_print instead
15232 of "current_language". Replace call to ada_val_print by call
15234 (print_variant_part): Add "language" parameter.
15235 (ada_val_print_struct_union): Update call to print_field_values.
15237 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15239 * ada-valprint.c (ui_memcpy): Delete.
15240 (ada_print_floating): Update documentation. Add empty line
15241 between between function documentation and implementation.
15242 Delete variable "buffer". Use ui_file_xstrdup in place of
15243 ui_file_put. Minor adjustments following this change.
15245 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15247 * ada-valprint.c (ada_val_print_string): New function,
15248 extracted from ada_val_print_array.
15249 (ada_val_print_array): Replace extracted code by call
15250 to ada_val_print_string followed by a return. Move
15251 "else" branch to the function's top block.
15253 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15255 * ada-valprint.c (ada_val_print_array): Move implementation
15256 down. Rename parameter "offset" and "val" into "offset_aligned"
15257 and "original_value" respectively. Add parameter "offset".
15259 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15261 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15262 re-organizing the code. Change the "???" message printed
15263 when target type is a TYPE_CODE_UNDEF into
15264 "<ref to undefined type>".
15266 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15268 * ada-valprint.c (print_record): Delete, implementation inlined...
15269 (ada_val_print_struct_union): ... here. Remove call to
15270 ada_check_typedef in inlined implementation.
15272 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15274 * ada-valprint.c (ada_val_print_gnat_array): New function,
15275 extracted from ada_val_print_1;
15276 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15277 (ada_val_print_flt, ada_val_print_struct_union)
15278 (ada_val_print_ref): Likewise.
15279 (ada_val_print_1): Delete variables i and elttype.
15280 Replace extracted-out code by call to corresponding
15283 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15285 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15287 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15289 * ada-valprint.c (ada_val_print_1): Replace calls to
15290 ada_val_print_1 by calls to val_print.
15292 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15294 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15295 Update calls to self accordingly. Replace calls to c_val_print
15296 by calls to val_print.
15298 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15300 * ada-valprint.c (print_record): Delete declaration.
15301 (adjust_type_signedness, ada_val_print_1): Likewise.
15302 (ada_val_print): Move function implementation down.
15303 (print_variant_part, print_field_values, print_record):
15304 Move function implementation up.
15306 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15308 * python/py-type.c (typy_get_name): New function.
15309 (type_object_getset): Add entry for attribute "name".
15310 * NEWS: Add entry mentioning this new attribute.
15312 2014-01-07 Yao Qi <yao@codesourcery.com>
15314 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15317 2014-01-07 Yao Qi <yao@codesourcery.com>
15319 * gnu-nat.c (info_port_rights): Add qualifier const to
15322 2014-01-07 Yao Qi <yao@codesourcery.com>
15324 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15326 2014-01-07 Yao Qi <yao@codesourcery.com>
15328 * gnu-nat.c (make_inf) Update declaration.
15329 (make_inf): Make it static.
15330 (inf_set_traced): Likewise.
15331 (inf_port_to_thread, inf_task_died_status): Likewise.
15333 2014-01-07 Yao Qi <yao@codesourcery.com>
15335 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15337 2014-01-07 Yao Qi <yao@codesourcery.com>
15339 * gnu-nat.c (_initialize_gnu_nat): Declare.
15341 2014-01-07 Yao Qi <yao@codesourcery.com>
15343 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15345 (struct gdbarch_info) <byte_order>: Change type to
15347 <byte_order_for_code>: Likewise.
15348 * gdbarch.c, gdbarch.h: Regenerated.
15350 2014-01-06 Sasha Smundak <asmundak@google.com>
15352 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15354 2014-01-06 Tom Tromey <tromey@redhat.com>
15356 * doublest.c (convert_doublest_to_floatformat): Use const, not
15358 * somread.c (som_symtab_read): Likewise.
15360 2014-01-07 Hui Zhu <hui@codesourcery.com>
15362 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15363 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15364 (gdb_bfd_fopen): Ditto.
15365 (gdb_bfd_openr): Ditto.
15366 (gdb_bfd_openw): Ditto.
15367 (gdb_bfd_openr_iovec): Ditto.
15368 (gdb_bfd_fdopenr): Ditto.
15369 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15370 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15372 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15374 * symfile-mem.c (symbol_file_add_from_memory): Removed
15375 gdb_bfd_stash_filename.
15377 2014-01-03 Doug Evans <dje@google.com>
15379 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15382 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15384 Update year range in copyright notice of all files.
15386 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15388 * top.c (print_gdb_version): Set copyright year to 2014.
15390 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15392 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15394 For older changes see ChangeLog-2013.
15400 version-control: never