1 2014-11-21 Doug Evans <dje@google.com>
3 * psymtab.c (psymtab_search_name): Fix whitespace.
5 2014-11-21 Yao Qi <yao@codesourcery.com>
7 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
9 * gnulib/import/Makefile.am: Re-generated.
10 * gnulib/import/Makefile.in: Likewise.
11 * gnulib/import/m4/gnulib-cache.m4: Likewise.
13 2014-11-21 Yao Qi <yao@codesourcery.com>
15 * gdb_wchar.h: Include wchar.h and wctype.h.
16 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
17 include wchar.h and wctype.h.
18 Don't check HAVE_WCHAR_H.
20 2014-11-21 Yao Qi <yao@codesourcery.com>
22 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
24 * gnulib/import/Makefile.am: Re-generated.
25 * gnulib/import/Makefile.in: Likewise.
26 * gnulib/import/m4/gnulib-cache.m4: Likewise.
28 2014-11-21 Yao Qi <yao@codesourcery.com>
30 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
32 * gnulib/import/Makefile.am: Re-generated.
33 * gnulib/import/Makefile.in: Likewise.
34 * gnulib/import/m4/gnulib-cache.m4: Likewise.
36 2014-11-21 Yao Qi <yao@codesourcery.com>
38 * common/common-defs.h: Include alloca.h
39 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
40 * configure: Re-generated.
41 * defs.h: Remove code handling alloca.
42 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
45 2014-11-21 Yao Qi <yao@codesourcery.com>
47 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
49 * gnulib/import/Makefile.am: Re-generated.
50 * gnulib/import/Makefile.in: Likewise..
51 * gnulib/import/m4/gnulib-cache.m4: Likewise.
53 2014-11-21 Yao Qi <yao@codesourcery.com>
55 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
58 2014-11-21 Joel Brobecker <brobecker@adacore.com>
60 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
61 flag_unsigned if HIGH_BOUND is constant and negative.
63 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
66 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
67 modifier from "struct gdbarch" when compiling without Expat (XML)
69 (get_syscall_by_number): Likewise.
70 (get_syscall_by_name): Likewise.
71 (get_syscall_names): Likewise.
73 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
76 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
77 set_xml_syscall_file_name to provide gdbarch.
78 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
79 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
80 * breakpoint.c (print_it_catch_syscall): Adjust call to
81 get_syscall_by_number to provide gdbarch.
82 (print_one_catch_syscall): Likewise.
83 (print_mention_catch_syscall): Likewise.
84 (print_recreate_catch_syscall): Likewise.
85 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
86 and get_syscall_by_name to provide gdbarch.
87 (catch_syscall_completer): Adjust call to get_syscall_names to
89 * gdbarch.c: Regenerate.
90 * gdbarch.h: Likewise.
91 * gdbarch.sh: Forward declare "struct syscalls_info".
92 (xml_syscall_file): New variable.
93 (syscalls_info): Likewise.
94 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
95 set_xml_syscall_file_name to provide gdbarch.
96 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
97 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
98 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
99 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
100 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
101 * xml-syscall.c: Include gdbarch.h.
102 (set_xml_syscall_file_name): Accept gdbarch parameter.
103 (get_syscall_by_number): Likewise.
104 (get_syscall_by_name): Likewise.
105 (get_syscall_names): Likewise.
106 (my_gdb_datadir): Delete global variable.
107 (struct syscalls_info) <my_gdb_datadir>: New variable.
108 (struct syscalls_info) <sysinfo>: Rename variable to
110 (sysinfo): Delete global variable.
111 (have_initialized_sysinfo): Likewise.
112 (xml_syscall_file): Likewise.
113 (sysinfo_free_syscalls_desc): Rename to...
114 (syscalls_info_free_syscalls_desc): ... this.
115 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
116 code to the new layout of "struct syscalls_info".
117 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
119 (syscall_create_syscall_desc): Likewise.
120 (syscall_start_syscall): Likewise.
121 (syscall_parse_xml): Likewise.
122 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
123 (init_sysinfo): Rename to...
124 (init_syscalls_info): ...this. Add gdbarch as a parameter.
125 Adjust function to deal with gdbarch.
126 (xml_get_syscall_number): Delete parameter sysinfo. Accept
127 gdbarch as a parameter. Adjust code.
128 (xml_get_syscall_name): Likewise.
129 (xml_list_of_syscalls): Likewise.
130 (set_xml_syscall_file_name): Accept gdbarch as parameter.
131 (get_syscall_by_number): Likewise.
132 (get_syscall_by_name): Likewise.
133 (get_syscall_names): Likewise.
134 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
135 (get_syscall_by_number): Likewise.
136 (get_syscall_by_name): Likewise.
137 (get_syscall_names): Likewise.
139 2014-11-20 Doug Evans <xdje42@gmail.com>
141 Split struct symtab into two: struct symtab and compunit_symtab.
142 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
143 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
144 to "struct compunit_symtab *". All callers updated.
145 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
146 "struct symtab *" argument to "struct compunit_symtab *".
148 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
149 result to "struct compunit_symtab *". All callers updated.
150 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
151 Change result to "struct compunit_symtab *". All callers updated.
152 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
153 hange type to "struct compunit_symtab *". All uses updated.
154 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
155 Change type to "struct compunit_symtab *". All uses updated.
156 * buildsym.c (struct buildsym_compunit): New struct.
157 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
158 (buildsym_compunit): New static global.
159 (finish_block_internal): Update to fetch objfile from
161 (make_blockvector): Delete objfile argument.
162 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
163 debugformat, producer.
164 (start_buildsym_compunit): New function.
165 (free_buildsym_compunit): Renamed from free_subfiles_list.
167 (patch_subfile_names): Rewrite to use buildsym_compunit.
168 (get_compunit_symtab): New function.
169 (get_macro_table): Delete argument comp_dir. All callers updated.
170 (start_symtab): Change result to "struct compunit_symtab *".
171 All callers updated. Create the subfile of the main source file.
172 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
173 (reset_symtab_globals): Update.
174 (end_symtab_get_static_block): Update to use buildsym_compunit.
175 (end_symtab_without_blockvector): Rewrite.
176 (end_symtab_with_blockvector): Change result to
177 "struct compunit_symtab *". All callers updated.
178 Update to use buildsym_compunit. Don't set symtab->dirname,
179 instead set it in the compunit.
180 Explicitly make sure main symtab is first in its list.
181 Set debugformat, producer, blockvector, block_line_section, and
182 macrotable in the compunit.
183 (end_symtab_from_static_block): Change result to
184 "struct compunit_symtab *". All callers updated.
185 (end_symtab, end_expandable_symtab): Ditto.
186 (set_missing_symtab): Change symtab argument to
187 "struct compunit_symtab *". All callers updated.
188 (augment_type_symtab): Ditto.
189 (record_debugformat): Update to use buildsym_compunit.
190 (record_producer): Update to use buildsym_compunit.
191 * buildsym.h (struct subfile) <dirname>: Delete.
192 <producer, debugformat>: Delete.
193 <buildsym_compunit>: New member.
194 (get_compunit_symtab): Declare.
195 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
196 from primary_symtab. Change type to "struct compunit_symtab *".
198 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
200 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
201 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
202 symtab. Change type to "struct compunit_symtab *". All uses updated.
203 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
205 (dw2_find_last_source_symtab): Ditto.
206 (dw2_lookup_symbol): Ditto.
207 (recursively_find_pc_sect_compunit_symtab): Renamed from
208 recursively_find_pc_sect_symtab. Change result to
209 "struct compunit_symtab *". All callers updated.
210 (dw2_find_pc_sect_compunit_symtab): Renamed from
211 dw2_find_pc_sect_symtab. Change result to
212 "struct compunit_symtab *". All callers updated.
213 (get_compunit_symtab): Renamed from get_symtab. Change result to
214 "struct compunit_symtab *". All callers updated.
215 (recursively_compute_inclusions): Change type of immediate_parent
216 argument to "struct compunit_symtab *". All callers updated.
217 (compute_compunit_symtab_includes): Renamed from
218 compute_symtab_includes. All callers updated. Rewrite to compute
219 includes of compunit_symtabs and not symtabs.
220 (process_full_comp_unit): Update to work with struct compunit_symtab.
221 (process_full_type_unit): Ditto.
222 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
223 (dwarf_decode_lines): Remove special case handling of main subfile.
224 (macro_start_file): Delete argument comp_dir. All callers updated.
225 (dwarf_decode_macro_bytes): Ditto.
226 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
227 use struct compunit_symtab.
228 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
229 * jit.c (finalize_symtab): Build compunit_symtab.
230 * jv-lang.c (get_java_class_symtab): Change result to
231 "struct compunit_symtab *". All callers updated.
232 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
233 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
234 comp_dir. Change type to "struct compunit_symtab *".
236 (new_macro_table): Change comp_dir argument to cust,
237 "struct compunit_symtab *". All callers updated.
238 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
239 nr_primary_symtabs. All uses updated.
240 (count_symtabs_and_blocks): Update to handle compunits.
241 (report_command_stats): Update output, "primary symtabs" renamed to
243 * mdebugread.c (new_symtab): Change result to
244 "struct compunit_symtab *". All callers updated.
245 (parse_procedure): Change type of search_symtab argument to
246 "struct compunit_symtab *". All callers updated.
247 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
249 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
250 symtabs. Change type to "struct compunit_symtab *". All uses updated.
251 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
253 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
255 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
256 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
257 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
258 symtab. Change type to "struct compunit_symtab *". All uses updated.
259 * psymtab.c (psymtab_to_symtab): Change result type to
260 "struct compunit_symtab *". All callers updated.
261 (find_pc_sect_compunit_symtab_from_partial): Renamed from
262 find_pc_sect_symtab_from_partial. Change result type to
263 "struct compunit_symtab *". All callers updated.
264 (lookup_symbol_aux_psymtabs): Change result type to
265 "struct compunit_symtab *". All callers updated.
266 (find_last_source_symtab_from_partial): Ditto.
267 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
268 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
269 and macro_table from compunit.
270 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
271 type to "struct compunit_symtab *". All callers updated.
272 (debug_qf_lookup_symbol): Ditto.
273 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
274 debug_qf_find_pc_sect_symtab, change result type to
275 "struct compunit_symtab *". All callers updated.
276 * symfile.c (allocate_symtab): Delete objfile argument.
278 (allocate_compunit_symtab): New function.
279 (add_compunit_symtab_to_objfile): New function.
280 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
281 Change result type to "struct compunit_symtab *". All uses updated.
282 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
283 Change result type to "struct compunit_symtab *". All uses updated.
284 * symmisc.c (print_objfile_statistics): Compute blockvector count in
286 (dump_symtab_1): Update test for primary source symtab.
287 (maintenance_info_symtabs): Update to handle compunit symtabs.
288 (maintenance_check_symtabs): Ditto.
289 * symtab.c (set_primary_symtab): Delete.
290 (compunit_primary_filetab): New function.
291 (compunit_language): New function.
292 (iterate_over_some_symtabs): Change type of arguments "first",
293 "after_last" to "struct compunit_symtab *". All callers updated.
294 Update to loop over symtabs in each compunit.
295 (error_in_psymtab_expansion): Rename symtab argument to cust,
296 and change type to "struct compunit_symtab *". All callers updated.
297 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
298 Change result type to "struct compunit_symtab *". All callers updated.
299 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
300 Change result type to "struct compunit_symtab *". All callers updated.
301 (find_pc_sect_line): Only loop over symtabs within selected compunit
302 instead of all symtabs in the objfile.
303 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
304 <compunit_symtab> New member.
305 <block_line_section>: Moved to compunit_symtab.
306 <locations_valid>: Ditto.
307 <epilogue_unwind_valid>: Ditto.
308 <macro_table>: Ditto.
310 <debugformat>: Ditto.
313 <call_site_htab>: Ditto.
317 (SYMTAB_COMPUNIT): New macro.
318 (SYMTAB_BLOCKVECTOR): Update definition.
319 (SYMTAB_OBJFILE): Update definition.
320 (SYMTAB_DIRNAME): Update definition.
321 (struct compunit_symtab): New type. Common members among all source
322 symtabs within a compilation unit moved here. All uses updated.
323 (COMPUNIT_OBJFILE): New macro.
324 (COMPUNIT_FILETABS): New macro.
325 (COMPUNIT_DEBUGFORMAT): New macro.
326 (COMPUNIT_PRODUCER): New macro.
327 (COMPUNIT_DIRNAME): New macro.
328 (COMPUNIT_BLOCKVECTOR): New macro.
329 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
330 (COMPUNIT_LOCATIONS_VALID): New macro.
331 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
332 (COMPUNIT_CALL_SITE_HTAB): New macro.
333 (COMPUNIT_MACRO_TABLE): New macro.
334 (ALL_COMPUNIT_FILETABS): New macro.
335 (compunit_symtab_ptr): New typedef.
336 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
338 2014-11-20 Joel Brobecker <brobecker@adacore.com>
340 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
341 if the TYPE_CODE of range_type's base type does not match
342 the TYPE_CODE of encoding_type's base type.
344 2014-11-19 Joel Brobecker <brobecker@adacore.com>
346 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
349 2014-11-19 Joel Brobecker <brobecker@adacore.com>
351 * ada-lang.c (ada_is_redundant_range_encoding): New function.
352 (ada_is_redundant_index_type_desc): New function.
353 (to_fixed_array_type): Ignore parallel XA type if redundant.
355 2014-11-19 Joel Brobecker <brobecker@adacore.com>
357 * ada-lang.c (constrained_packed_array_type): Set the length
358 of the return array as if both bounds where zero if that
359 returned array's index type is dynamic.
361 2014-11-19 Yao Qi <yao@codesourcery.com>
363 * config/i386/go32.mh (CC): Remove.
365 2014-11-18 Doug Evans <xdje42@gmail.com>
367 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
370 2014-11-18 Doug Evans <xdje42@gmail.com>
372 * buildsym.c (buildsym_objfile): New static global.
373 (buildsym_comp_dir): New static global.
374 (finish_block_internal): Delete arg objfile. All callers updated.
375 (finish_block): Delete arg objfile. All callers updated.
376 (start_subfile): Delete arg dirname. All callers updated.
377 (patch_subfile_names): Update buildsym_comp_dir.
378 (get_macro_table): Delete arg objfile. All callers updated.
379 (start_symtab): New arg objfile. All callers updated.
380 Rename arg dirname to comp_dir.
381 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
382 (end_symtab_get_static_block): Delete arg objfile. All callers
384 (end_symtab_without_blockvector): Ditto.
385 (end_symtab_with_blockvector): Ditto.
386 (end_symtab_from_static_block): Ditto.
388 (end_expandable_symtab): Ditto.
389 (augment_type_symtab): Ditto.
390 * coffread.c (coff_start_symtab): New arg objfile. All callers
393 2014-11-18 Doug Evans <xdje42@gmail.com>
395 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
398 2014-11-18 Doug Evans <xdje42@gmail.com>
400 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
401 symtab.dirname updated to use it.
403 2014-11-18 Doug Evans <xdje42@gmail.com>
405 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
406 symtab.objfile updated to use it.
408 2014-11-18 Doug Evans <xdje42@gmail.com>
410 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
412 2014-11-18 Doug Evans <xdje42@gmail.com>
414 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
416 * findvar.c (default_read_var_value): Ditto.
417 * jv-lang.c (add_class_symtab_symbol): Ditto.
418 * parse.c (operator_check_standard): Ditto.
419 * printcmd.c (address_info): Ditto.
420 * symtab.c (fixup_symbol_section): Ditto.
421 (skip_prologue_sal): Ditto.
422 * tracepoint.c (scope_info): Ditto.
423 * valops.c (find_function_in_inferior): Ditto.
424 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
425 * python/py-symbol.c (set_symbol): Ditto.
427 2014-11-18 Doug Evans <xdje42@gmail.com>
429 * buildsym.c (main_subfile): New static global.
430 (free_subfiles_list): New function.
431 (start_symtab): Set main_subfile.
432 (restart_symtab): Replace init of subfiles, current_subfile with
433 call to free_subfiles_list.
434 (watch_main_source_file_lossage): Use main_subfile.
435 (reset_symtab_globals): Replace init of current_subfile with call
436 to free_subfiles_list.
437 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
438 functions, split out from ...
439 (end_symtab_from_static_block): ... here. Rewrite to call them.
441 2014-11-18 Doug Evans <xdje42@gmail.com>
443 The result of symtab expansion is always a primary symtab.
444 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
445 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
446 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
447 (psymtab_to_symtab): Add comment and assert.
448 (map_matching_symbols_psymtab): Remove unnecessary test for
451 2014-11-15 Doug Evans <xdje42@gmail.com>
454 * symtab.c (find_pc_line_symtab): New function.
455 * symtab.h (find_pc_line_symtab): Declare.
456 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
458 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
459 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
460 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
461 * tui/tui-win.c (make_visible_with_new_height): Ditto.
462 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
463 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
465 2014-11-15 Doug Evans <xdje42@gmail.com>
467 * symtab.c (expand_symtab_containing_pc): Renamed from
468 find_pc_sect_symtab_via_partial. All callers updated.
470 2014-11-15 Yao Qi <yao@codesourcery.com>
472 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
474 2014-11-14 Joel Brobecker <brobecker@adacore.com>
476 * common/common-defs.h: Move <stdarg.h> #include ahead of
479 2014-11-14 Pedro Alves <palves@redhat.com>
481 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
482 [!PHONY_ICONV] (gdb_iconv): New function.
483 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
485 2014-11-13 Doug Evans <dje@google.com>
488 * dwarf2read.c (find_slot_in_mapped_hash): Handle
489 "(anonymous namespace)".
491 2014-11-13 Doug Evans <dje@google.com>
493 * dwarf2read.c (update_enumeration_type_from_children): Avoid
496 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
498 * NEWS (maint set target-async): Fix typo.
500 2014-11-12 Pedro Alves <palves@redhat.com>
502 * infrun.c (enum infwait_states, infwait_state): Delete.
504 2014-11-12 Pedro Alves <palves@redhat.com>
506 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
507 Rewrite stepping over a permanent breakpoint.
508 (thread_still_needs_step_over, proceed): Don't set
509 stepping_over_breakpoint for permanent breakpoints.
510 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
511 single-step breakpoints out of the target on hardware step
513 (process_event_stop_test): If stepping a permanent breakpoint
514 doesn't hit the step-resume breakpoint, delete the step-resume
516 (switch_back_to_stepped_thread): Also check if the stepped thread
517 has advanced already on hardware step targets.
518 (currently_stepping): Return true if the thread stepped a
521 2014-11-12 Pedro Alves <palves@redhat.com>
523 Mark locations as permanent, not the whole breakpoint.
524 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
525 (mark_breakpoints_out): Don't mark permanent breakpoints as
527 (breakpoint_init_inferior): Use mark_breakpoints_out.
528 (breakpoint_here_p): Adjust.
529 (bpstat_stop_status, describe_other_breakpoints): Remove handling
530 of permanent breakpoints.
531 (make_breakpoint_permanent): Mark each location as permanent,
532 instead of marking the breakpoint.
533 (add_location_to_breakpoint): If the location is permanent, mark
534 it as such, and as inserted.
535 (init_breakpoint_sal): Don't make the breakpoint permanent here.
536 (bp_location_compare, update_global_location_list): Adjust.
537 (update_breakpoint_locations): Don't make the breakpoint permanent
539 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
541 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
542 (struct bp_location) <permanent>: New field.
543 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
544 reference to bp_permanent.
546 2014-11-12 Pedro Alves <palves@redhat.com>
548 * arch-utils.c (default_skip_permanent_breakpoint): New function.
549 * arch-utils.h (default_skip_permanent_breakpoint): New
551 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
552 Install default_skip_permanent_breakpoint as default method.
553 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
554 (i386_gdbarch_init): Don't install it.
555 * infrun.c (resume): Assume there's always a
556 gdbarch_skip_permanent_breakpoint implementation.
557 * gdbarch.h, gdbarch.c: Regenerate.
559 2014-11-11 Daniel Colascione <dancol@dancol.org>
561 Warn about cross-PID-namespace debugging.
562 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
563 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
564 * linux-thread-db.c (check_pid_namespace_match): New function.
565 (thread_db_inferior_created): Call it.
567 2014-11-10 Doug Evans <xdje42@gmail.com>
569 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
570 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
572 2014-11-10 Doug Evans <xdje42@gmail.com>
574 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
576 2014-11-10 Doug Evans <xdje42@gmail.com>
579 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
580 (lookup_static_symbol): Move definition to new location and rewrite.
581 (lookup_symbol_in_objfile): New function.
582 (lookup_symbol_global_iterator_cb): Call it.
584 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
586 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
588 2014-11-07 Pedro Alves <palves@redhat.com>
590 * infrun.c (process_event_stop_test) <subroutine check>: Don't
591 check if we did a "nexti" inside a prologue.
592 * symtab.c (in_prologue): Delete function.
593 * symtab.h (in_prologue): Delete declaration.
595 2014-11-06 Doug Evans <xdje42@gmail.com>
597 * symtab.h (lookup_global_symbol): Improve function comment.
599 2014-11-06 Doug Evans <xdje42@gmail.com>
601 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
603 * symtab.h (lookup_global_symbol): Update decl.
604 (lookup_static_symbol): Move decl to better location.
606 2014-11-06 Doug Evans <xdje42@gmail.com>
608 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
610 2014-11-06 Doug Evans <xdje42@gmail.com>
612 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
614 (lookup_symbol_in_all_objfiles): Renamed from
615 lookup_symbol_aux_symtabs. All callers updated.
616 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
618 (lookup_symbol_in_objfile_symtabs): Renamed from
619 lookup_symbol_aux_objfile. All callers updated.
621 2014-11-06 Doug Evans <xdje42@gmail.com>
623 * symtab.c (lookup_symbol_in_block): Renamed from
624 lookup_symbol_aux_block. All callers updated.
626 2014-11-06 Doug Evans <xdje42@gmail.com>
628 * symtab.c (lookup_static_symbol): Renamed from
629 lookup_static_symbol_aux. All callers updated.
630 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
633 2014-11-06 Doug Evans <xdje42@gmail.com>
635 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
636 * block.c (block_lookup_symbol): Use it.
637 * cp-support.c (make_symbol_overload_list_block): Use it.
638 * symtab.c (iterate_over_symbols): Use it.
640 2014-11-06 Doug Evans <xdje42@gmail.com>
642 * symtab.c (lookup_block_symbol): Moved to ...
643 * block.c (block_lookup_symbol): ... here and renamed.
645 * block.h (block_lookup_symbol): Declare.
646 * symtab.h (lookup_block_symbol): Delete.
648 2014-11-06 Doug Evans <xdje42@gmail.com>
650 * ada-lang.c (ada_make_symbol_completion_list): Use
651 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
652 * symtab.c (lookup_objfile_from_block): Ditto.
654 2014-11-06 Doug Evans <xdje42@gmail.com>
656 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
659 2014-11-06 Doug Evans <xdje42@gmail.com>
661 * objfiles.c (get_objfile_arch): Constify.
662 * objfiles.h (get_objfile_arch): Update prototype.
663 * solib.c (solib_global_lookup): Fetch arch from objfile,
666 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
668 * nios2-tdep.c (wild_insn): Delete.
669 (profiler_insn, irqentry_insn): Delete.
670 (nios2_match_sequence): Delete.
671 (nios2_analyze_prologue): Update comments. Remove matching
672 of obsolete profiler_insn and irqentry_insn sequences.
674 2014-11-05 Alan Modra <amodra@gmail.com>
676 * charset.c (convert_between_encodings): Shrink obstack using
678 * minsyms.c (install_minimal_symbols): Likewise.
679 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
680 to char* before doing pointer arithmetic.
682 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
684 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
686 2014-11-04 Pedro Alves <palves@redhat.com>
688 * breakpoint.c (breakpoint_thread_match): Delete function.
689 * breakpoint.h (breakpoint_thread_match): Delete declaration.
691 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
694 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
695 the method args also under EVAL_SKIP when evaluating method
696 calls under EVAL_SKIP.
698 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
700 * dwarf2loc.c (read_pieced_value): Do big endian
701 processing only if gdb_regnum is not -1.
702 (write_pieced_value): Ditto.
704 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
706 * arm-linux-tdep.c (arm_linux_init_abi): Use
707 info.byte_order_for_code to choose endianity of breakpoint
708 instructions snippets.
710 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
712 * arm-tdep.c (extract_arm_insn): Use
713 gdbarch_byte_order_for_code to read arm instruction.
715 2014-11-02 Doug Evans <xdje42@gmail.com>
717 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
719 2014-11-02 Doug Evans <xdje42@gmail.com>
721 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
722 main_subfile before returning.
724 2014-10-31 Doug Evans <xdje42@gmail.com>
726 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
727 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
729 2014-10-31 Doug Evans <xdje42@gmail.com>
731 * valops.c (value_cast_pointers): Fix whitespace.
732 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
735 2014-10-30 Doug Evans <dje@google.com>
737 * NEWS: Mention ability add attributes to gdb.Objfile and
738 gdb.Progspace objects.
739 * python/py-objfile.c (objfile_object): New member dict.
740 (objfpy_dealloc): Py_XDECREF dict.
741 (objfpy_initialize): Initialize dict.
742 (objfile_getset): Add __dict__.
743 (objfile_object_type): Set tp_dictoffset member.
744 * python/py-progspace.c (progspace_object): New member dict.
745 (pspy_dealloc): Py_XDECREF dict.
746 (pspy_initialize): Initialize dict.
747 (pspace_getset): Add __dict__.
748 (pspace_object_type): Set tp_dictoffset member.
750 2014-10-30 Yao Qi <yao@codesourcery.com>
752 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
753 replace '\\' with '\\\\'.
755 2014-10-29 Joel Brobecker <brobecker@adacore.com>
759 2014-10-29 Pedro Alves <palves@redhat.com>
762 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
763 instead of assuming a thread with a stepping range is always
766 2014-10-29 Pedro Alves <palves@redhat.com>
769 * event-top.c (change_line_handler): Call
770 gdb_rl_callback_handler_remove instead of
771 rl_callback_handler_remove.
772 (callback_handler_installed): New global.
773 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
774 (gdb_rl_callback_handler_reinstall): New functions.
775 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
776 gdb_rl_callback_handler_install instead of
777 rl_callback_handler_remove and rl_callback_handler_install.
778 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
779 instead of rl_callback_handler_remove.
780 * event-top.h (gdb_rl_callback_handler_remove)
781 (gdb_rl_callback_handler_install)
782 (gdb_rl_callback_handler_reinstall): New declarations.
783 * infrun.c (reinstall_readline_callback_handler_cleanup): New
785 (fetch_inferior_event): Install it.
786 * top.c (gdb_readline_wrapper_line) Call
787 gdb_rl_callback_handler_remove instead of
788 rl_callback_handler_remove.
789 (gdb_readline_wrapper_cleanup): Don't call
790 rl_callback_handler_install.
792 2014-10-29 Pedro Alves <palves@redhat.com>
794 * event-top.c (command_line_handler): Clear the first byte of
795 linebuffer, when it is first allocated.
797 2014-10-29 Pedro Alves <palves@redhat.com>
799 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
802 2014-10-29 Pedro Alves <palves@redhat.com>
806 * tui/tui-interp.c (tui_is_toplevel): Delete global.
807 (tui_allowed_p): Delete function.
808 * tui/tui.c: Include "interps.h".
809 (tui_enable): Don't use tui_allowed_p. Error out here with
810 detailed error messages if the TUI is the top level interpreter,
811 or if output is not a terminal. Use newterm instead of initscr,
812 and error out if initializing the terminal fails. Also error out if
813 the terminal doesn't support cursor addressing.
814 * tui/tui.h (tui_allowed_p): Delete declaration.
816 2014-10-29 Joel Brobecker <brobecker@adacore.com>
818 * arm-tdep.c (arm_skip_stack_protector): Return early if
819 address loaded by first "ldr" instruction does not have
820 a corresponding minimal symbol. Update comment.
822 2014-10-29 Yao Qi <yao@codesourcery.com>
824 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
825 loaded address correctly of ldr instruction.
827 2014-10-28 Pedro Alves <palves@redhat.com>
830 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
832 * infrun.c (resume) <stepping breakpoint instruction>: Set the
833 thread's stepped_breakpoint field. Skip if reverse debugging.
835 (init_thread_stepping_state, handle_signal_stop): Clear the
836 thread's stepped_breakpoint field.
838 2014-10-27 Pedro Alves <palves@redhat.com>
840 * remote.c (remote_thread_alive): New, factored out from ...
841 (remote_thread_alive): ... this.
842 (remote_update_thread_list): Bail out before deleting threads if
843 the target returned an empty list, and, the current thread has a
846 2014-10-27 Pedro Alves <palves@redhat.com>
848 * infrun.c (handle_signal_stop): Also skip handlers when a random
849 signal arrives while handling a "stepi" or a "nexti". Set the
850 thread's 'step_after_step_resume_breakpoint' flag.
852 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
854 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
855 (arm_record_ld_st_imm_offset): Reimplement to cover all
856 load/store cases for ARM opcode 010.
857 (arm_record_ld_st_multiple): Reimplement to cover all
858 load/store cases for ARM opcode 100.
860 2014-10-26 Doug Evans <xdje42@gmail.com>
862 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
864 2014-10-26 Doug Evans <xdje42@gmail.com>
866 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
867 parameter "kind" to "block_index".
868 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
870 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
872 2014-10-26 Doug Evans <xdje42@gmail.com>
874 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
876 2014-10-26 Doug Evans <xdje42@gmail.com>
878 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
881 2014-10-26 Doug Evans <xdje42@gmail.com>
883 * parser-defs.h (block_found): Move decl from here ...
884 * symtab.h (block_found): ... to here.
886 2014-10-26 Doug Evans <xdje42@gmail.com>
888 * symtab.h (struct field_of_this_result): Fix typo in comment.
889 (lookup_symbol_in_language): Move function comment here.
890 (lookup_symbol): Improve function comment.
891 (basic_lookup_symbol_nonlocal): Ditto.
892 (lookup_symbol_static, lookup_symbol_global): Ditto.
893 (lookup_symbol_aux_block): Ditto.
894 (lookup_language_this): Add function comment.
895 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
897 (lookup_block_symbol): Improve function comment.
898 (lookup_struct): Fix capitalization in function comment.
899 (lookup_transparent_type): Add function comment.
900 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
901 Improve function comment.
902 (lookup_objfile_from_block): Add function comment.
903 * symtab.c (lookup_symbol_in_language): Update function comment.
904 (lookup_symbol, lookup_language_this): Ditto.
905 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
906 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
907 (basic_lookup_symbol_nonlocal): Ditto.
908 (lookup_symbol_static, lookup_symbol_global): Ditto.
909 (lookup_transparent_type, lookup_block_symbol): Ditto.
911 2014-10-25 Doug Evans <xdje42@gmail.com>
913 * symtab.c (types_info): Delete forward decl.
914 (functions_info, variables_info, sources_info): Ditto.
915 (_initialize_symtab): Rewrite forward decl to use
916 initialize_file_ftype.
918 2014-10-25 Doug Evans <xdje42@gmail.com>
920 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
922 2014-10-25 Doug Evans <xdje42@gmail.com>
924 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
925 of local var child_die.
927 2014-10-24 Don Breazeal <donb@codesourcery.com>
929 * infrun.c (follow_fork_inferior): Update fork message printing
930 to use target_terminal_ours_for_output instead of
931 target_terminal_ours, to use _() for all format strings, to print
932 "vfork" instead of "fork" for vforks, and to add a detach message.
933 (handle_vfork_child_exec_or_exit): Update message printing to use
934 target_terminal_ours_for_output instead of target_terminal_ours, to
935 use _() for all format strings, and to fix some formatting.
937 2014-10-24 Pedro Alves <palves@redhat.com>
939 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
940 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
941 * config/vax/vax.mh: Delete.
942 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
943 obsolete configurations section.
944 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
945 * vax-nat.c: Delete file.
947 2014-10-24 Pedro Alves <palves@redhat.com>
949 * NEWS (Removed targets): Add OS/arch column.
951 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
953 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
954 on the arg type of a constructor only if it is of reference type.
956 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
958 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
959 accessors and constants from nios2 opcodes update.
960 (nios2_get_next_pc): Likewise.
962 2014-10-19 Doug Evans <xdje42@gmail.com>
964 * gdbthread.h (set_running): Fix comment.
965 (set_executing, finish_thread_state): Fix comment.
967 2014-10-18 Doug Evans <xdje42@gmail.com>
969 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
971 2014-10-17 Doug Evans <dje@google.com>
973 * NEWS: Mention new event gdb.clear_objfiles.
974 * python/py-event.h (emit_clear_objfiles_event): Clear
975 * python/py-events.h (events_object): New member clear_objfiles.
976 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
978 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
979 emit clear_objfiles event.
980 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
982 (emit_clear_objfiles_event): New function.
983 (clear_objfiles): New event.
984 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
986 * python/python.c (_initialize_python): Call
987 gdbpy_initialize_clear_objfiles_event.
989 2014-10-17 Doug Evans <dje@google.com>
991 * NEWS: Mention new gdb.Objfile.progspace attribute.
992 * python/py-objfile.c (objfpy_get_progspace): New function.
993 (objfile_getset): New entry for "progspace".
995 2014-10-17 Pedro Alves <palves@redhat.com>
998 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
999 returns a copy of the input.
1000 (run_command_1, continue_command, step_1, jump_command)
1001 (signal_command, until_command, advance_command, finish_command)
1002 (attach_command): Adjust and install a cleanup to free the
1005 2014-10-17 Pedro Alves <palves@redhat.com>
1008 * infcmd.c (continue_1): If continuing all threads in the
1009 foreground, make sure the inferior's terminal settings are put in
1012 2014-10-17 Pedro Alves <palves@redhat.com>
1015 * annotate.c (annotate_breakpoints_invalid): Use
1016 target_terminal_our_for_output instead of target_terminal_ours.
1017 Give back the terminal to the target.
1018 (annotate_frames_invalid): Likewise.
1020 2014-10-17 Pedro Alves <palves@redhat.com>
1022 * target.c (enum terminal_state): New enum.
1023 (terminal_state): New global.
1024 (target_terminal_init): New function.
1025 (target_terminal_inferior): Skip if inferior already owns the
1027 (target_terminal_ours, target_terminal_ours_for_output): New
1029 * target.h (target_terminal_init): Convert to function prototype.
1030 (target_terminal_ours_for_output): Convert to function prototype
1032 (target_terminal_ours): Convert to function prototype and tweak
1034 * windows-nat.c (do_initial_windows_stuff): Call
1035 target_terminal_init instead of child_terminal_init_with_pgrp.
1037 2014-10-17 Pedro Alves <palves@redhat.com>
1039 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1040 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1041 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1043 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1044 * ada-lang.h [__alpha__ && __osf__]
1045 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1046 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1047 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1049 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1051 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1052 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1053 * configure: Regenerate.
1054 * configure.ac: Remove references to osf.
1055 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1056 section. Remove all other references to osf.
1057 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1058 Remove all other references to osf.
1059 * dec-thread.c: Delete file.
1060 * defs.h (GDB_OSABI_OSF1): Delete.
1061 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1063 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1064 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1066 (unconditionally_kill_inferior)
1067 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1068 * solib-osf.c: Delete file.
1070 2014-10-17 Pedro Alves <palves@redhat.com>
1072 * remote.c (clear_threads_listing_context): Move higher up, out of
1073 the HAVE_LIBEXPAT guard.
1075 2014-10-16 Tristan Gingold <gingold@adacore.com>
1077 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1078 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1081 2014-10-15 Pedro Alves <palves@redhat.com>
1083 * dec-thread.c (dec_thread_count_gdb_threads)
1084 (dec_thread_add_gdb_thread): Delete.
1085 (dec_thread_update_thread_list): Delete.
1086 (dec_thread_find_new_threads): Rename to ...
1087 (dec_thread_update_thread_list): ... this. Delete GDB-size
1088 threads that are no longer found in dec_thread_list.
1089 (resync_thread_list): Delete.
1090 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1093 2014-10-15 Pedro Alves <palves@redhat.com>
1095 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1096 * remote.c (remote_update_thread_list): Skip calling prune_threads
1097 if any thread listing method is supported, and instead walk over
1098 the set of remote threads listed, deleting those that are not
1099 found in GDB's thread list.
1101 2014-10-15 Pedro Alves <palves@redhat.com>
1103 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1104 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1105 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1106 (bsd_uthread_target): Adjust.
1107 * corelow.c (core_open): Adjust.
1108 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1109 (dec_thread_update_thread_list): New function.
1110 (init_dec_thread_ops): Adjust.
1111 * gdbthread.h (prune_threads): New declaration.
1112 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1113 (thread_db_update_thread_list): ... this. Call prune_threads.
1114 (init_thread_db_ops): Adjust.
1115 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1116 (procfs_update_thread_list): ... this. Call prune_threads.
1117 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1119 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1120 (obsd_update_thread_list): ... this. Call prune_threads.
1121 (obsd_add_target): Adjust.
1122 * procfs.c (procfs_target): Adjust.
1123 (procfs_notice_thread): Update comment.
1124 (procfs_find_new_threads): Rename to ...
1125 (procfs_update_thread_list): ... this. Call prune_threads.
1126 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1128 (ravenscar_wait): Adjust.
1129 (ravenscar_find_new_threads): Rename to ...
1130 (ravenscar_update_thread_list): ... this. Call prune_threads.
1131 (init_ravenscar_thread_ops): Adjust.
1132 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1133 (record_btrace_update_thread_list): ... this. Adjust comment.
1134 (init_record_btrace_ops): Adjust.
1135 * remote.c (remote_threads_info): Rename to ...
1136 (remote_update_thread_list): ... this. Call prune_threads.
1137 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1139 * sol-thread.c (check_for_thread_db): Adjust.
1140 (sol_find_new_threads_callback): Rename to ...
1141 (sol_update_thread_list_callback): ... this.
1142 (sol_find_new_threads): Rename to ...
1143 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1144 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1145 * target-delegates.c: Regenerate.
1146 * target.c (target_find_new_threads): Rename to ...
1147 (target_update_thread_list): ... this.
1148 * target.h (struct target_ops): Rename to_find_new_threads field
1149 to to_update_thread_list.
1150 (target_find_new_threads): Rename to ...
1151 (target_update_thread_list): ... this.
1152 * thread.c (prune_threads): Make extern.
1153 (update_thread_list): Adjust.
1155 2014-10-15 Pedro Alves <palves@redhat.com>
1157 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1158 Add describing comment. Return -1 if the qL packet is not
1160 (struct thread_item, thread_item_t): Move higher up in
1161 the file. Add comments.
1162 (struct threads_parsing_context): Move higher up in
1163 the file, add comments, and remote to ...
1164 (struct threads_listing_context): ... this.
1165 (remote_newthread_step): Don't add the thread to GDB's thread
1166 database here. Instead push it to the thread_listing_context
1168 (remote_find_new_threads): Rename to ...
1169 (remote_get_threads_with_ql): ... this. Add target_ops and
1170 targets_listing_context parameters. Pass down context.
1171 (start_thread): Adjust.
1172 (clear_threads_parsing_context): Rename to ...
1173 (clear_threads_listing_context): ... this.
1174 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1175 remote_threads_info.
1176 (remote_get_threads_with_qthreadinfo): Ditto.
1177 (remote_threads_info): Reimplement.
1179 2014-10-15 Pedro Alves <palves@redhat.com>
1181 * infrun.c (resume): Don't force displaced-stepping for all
1182 single-steps on software single-stepping archs.
1184 2014-10-15 Pedro Alves <palves@redhat.com>
1186 * breakpoint.c (single_step_breakpoints): Delete global.
1187 (insert_single_step_breakpoint): Adjust to store the breakpoint
1188 pointer in the current thread.
1189 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1190 (cancel_single_step_breakpoints): Delete functions.
1191 (breakpoint_has_location_inserted_here): Make extern.
1192 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1194 * breakpoint.h (breakpoint_has_location_inserted_here): New
1196 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1197 (cancel_single_step_breakpoints): Remove declarations.
1198 * gdbthread.h (struct thread_control_state)
1199 <single_step_breakpoints>: New field.
1200 (delete_single_step_breakpoints)
1201 (thread_has_single_step_breakpoints_set)
1202 (thread_has_single_step_breakpoint_here): New declarations.
1203 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1204 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1205 (singlestep_pc): Delete globals.
1206 (infrun_thread_ptid_changed): Remove references to removed
1208 (resume_cleanups): Delete the current thread's single-step
1210 (maybe_software_singlestep): Remove references to removed globals.
1211 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1212 delete_single_step_breakpoints.
1213 (init_wait_for_inferior): Remove references to removed globals.
1214 (delete_thread_infrun_breakpoints): Delete the thread's
1215 single-step breakpoints too.
1216 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1217 single-step breakpoints here.
1218 (delete_stopped_threads_single_step_breakpoints): New function.
1219 (adjust_pc_after_break): Adjust to use
1220 thread_has_single_step_breakpoints_set.
1221 (handle_inferior_event): Remove references to removed globals.
1222 Use delete_stopped_threads_single_step_breakpoints.
1223 (handle_signal_stop): Adjust to per-thread single-step
1224 breakpoints. Swap test order to do cheaper tests first.
1225 (switch_back_to_stepped_thread): Extend debug output. Remove
1226 references to removed globals.
1227 * record-full.c (record_full_wait_1): Adjust to per-thread
1228 single-step breakpoints.
1229 * thread.c (delete_single_step_breakpoints)
1230 (thread_has_single_step_breakpoints_set)
1231 (thread_has_single_step_breakpoint_here): New functions.
1232 (clear_thread_inferior_resources): Also delete the thread's
1233 single-step breakpoints.
1235 2014-10-15 Pedro Alves <palves@redhat.com>
1237 * thread.c (delete_thread_breakpoint): New function.
1238 (delete_step_resume_breakpoint)
1239 (delete_exception_resume_breakpoint): Use it.
1240 (delete_at_next_stop): New function.
1241 (clear_thread_inferior_resources): Use delete_at_next_stop.
1243 2014-10-15 Pedro Alves <palves@redhat.com>
1245 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1246 (breakpoint_inserted_here_p): ... here. Remove special case for
1247 software single-step breakpoints.
1248 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1249 (software_breakpoint_inserted_here_p): ... here. Remove special
1250 case for software single-step breakpoints.
1251 (bp_target_info_copy_insertion_state)
1252 (deprecated_insert_raw_breakpoint)
1253 (deprecated_remove_raw_breakpoint): Delete functions.
1254 * breakpoint.h (deprecated_insert_raw_breakpoint)
1255 (deprecated_remove_raw_breakpoint): Remove declarations.
1257 2014-10-15 Pedro Alves <palves@redhat.com>
1260 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1261 Delete array globals.
1262 (single_step_breakpoints): New global.
1263 (breakpoint_xfer_memory): Remove special handling for single-step
1265 (update_breakpoints_after_exec): Delete bp_single_step
1267 (detach_breakpoints): Remove special handling for single-step
1269 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1270 (bpstat_stop_status): Add comment.
1271 (bpstat_what, bptype_string, print_one_breakpoint_location)
1272 (adjust_breakpoint_address, init_bp_location): Handle
1274 (new_single_step_breakpoint): New function.
1275 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1276 handling for single-step breakpoints.
1277 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1278 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1280 (detach_single_step_breakpoints, find_single_step_breakpoint):
1282 (breakpoint_has_location_inserted_here): New function.
1283 (single_step_breakpoint_inserted_here_p): Rewrite.
1284 * breakpoint.h: Remove FIXME.
1285 (enum bptype) <bp_single_step>: New enum value.
1286 (insert_single_step_breakpoint): Update comment.
1287 * infrun.c (resume_cleanups)
1288 (delete_step_thread_step_resume_breakpoint): Remove single-step
1290 (fetch_inferior_event): Install a cleanup that removes infrun
1292 (switch_back_to_stepped_thread) <expect thread advanced also>:
1293 Clear step-over info.
1295 2014-10-15 Pedro Alves <palves@redhat.com>
1297 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1298 (delete_thread_infrun_breakpoints): New function, with parts
1299 salvaged from delete_step_resume_breakpoint_callback.
1300 (delete_step_thread_step_resume_breakpoint): Delete.
1301 (for_each_just_stopped_thread_callback_func): New typedef.
1302 (for_each_just_stopped_thread): New function.
1303 (delete_just_stopped_threads_infrun_breakpoints): New function.
1304 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1305 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1307 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1309 2014-10-15 Pedro Alves <palves@redhat.com>
1311 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1312 trying to step past a non-steppable watchpoint.
1313 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1315 * infrun.c (struct step_over_info): Add new field
1316 'nonsteppable_watchpoint_p' and adjust comments.
1317 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1319 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1320 (stepping_past_nonsteppable_watchpoint): New function.
1321 (step_over_info_valid_p): Also return true if stepping past a
1322 nonsteppable watchpoint.
1323 (proceed): Adjust call to set_step_over_info. Remove reference to
1325 (init_wait_for_inferior): Remove reference to init_infwait_state.
1326 (waiton_ptid): Delete global.
1327 (struct execution_control_state)
1328 <stepped_after_stopped_by_watchpoint>: Delete field.
1329 (wait_for_inferior, fetch_inferior_event): Always pass
1330 minus_one_ptid to target_wait.
1331 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1333 (init_infwait_state): Delete function.
1334 (handle_inferior_event): Remove infwait_state handling.
1335 (handle_signal_stop) <watchpoints handling>: Adjust after
1336 stepped_after_stopped_by_watchpoint removal. Don't remove
1337 breakpoints here nor set infwait_state. Set the thread's
1338 stepping_over_watchpoint flag, and call keep_going instead.
1339 (keep_going): Handle stepping_over_watchpoint. Adjust
1340 set_step_over_info calls.
1341 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1344 2014-10-15 Pedro Alves <palves@redhat.com>
1346 * infrun.c (step_over_info_valid_p): New function.
1347 (resume): Use step_over_info_valid_p instead of checking the
1348 threads's trap_expected flag.
1350 2014-10-15 Doug Evans <dje@google.com>
1351 Walfred Tedeschi <walfred.tedeschi@intel.com>
1354 * python/lib/gdb/__init__.py (packages): Add "printer".
1355 * python/lib/gdb/command/bound_registers.py: Moved to ...
1356 * python/lib/gdb/printer/bound_registers.py: ... here.
1357 Add printer to global set of builtin printers. Rename printer from
1358 "bound" to "mpx_bound128".
1359 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1360 registered as global "builtin" printer.
1361 (add_builtin_pretty_printer): New function.
1362 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1363 gdb/printer/__init__.py.
1365 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1367 * Makefile.in (SFILES): Remove d-support.c.
1368 (COMMON_OBS): Remove d-support.o.
1369 * d-lang.h (d_parse_symbol): Remove declaration.
1370 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1371 * d-support.c: Remove file.
1373 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1375 * gdb/infrun.c (process_event_stop_test): Apply
1376 gdbarch_addr_bits_remove to longjmp resume address.
1378 2014-10-15 Pedro Alves <palves@redhat.com>
1380 * regformats/microblaze.dat: Delete file.
1382 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1384 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1385 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1387 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1389 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1392 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1396 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1397 with qualified args.
1399 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1401 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1402 of the case where the second operand is a pointer.
1403 <BINOP_SUB>: Likewise.
1405 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1407 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1408 only if it is not NULL.
1409 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1410 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1411 (struct probe_ops) <clear_semaphore>: Likewise.
1412 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1414 (stop_tracing): Likewise, for clear_semaphore.
1416 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1418 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1419 using language_c, instead of current_language.
1421 2014-10-13 Doug Evans <dje@google.com>
1423 * python/py-objfile.c (objfpy_initialize): New function.
1424 (objfpy_new, objfile_to_objfile_object): Call it.
1425 * python/py-progspace.c (pspy_initialize): New function.
1426 (pspy_new, pspace_to_pspace_object): Call it.
1428 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1429 Jan Kratochvil <jan.kratochvil@redhat.com>
1431 Fix "save breakpoints" for "catch" command.
1432 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1435 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1437 Fix "save breakpoints" for "disable $bpnum" command.
1438 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1440 2014-10-10 Pedro Alves <palves@redhat.com>
1442 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1443 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1444 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1445 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1447 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1448 * configure.ac: Remove references to IRIX.
1449 * configure.host: Add *-*-irix* to the obsolete hosts section.
1450 Remove all other references to irix.
1451 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1454 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1456 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1457 isn't valid, release the tdesc arch data and return NULL.
1459 2014-10-10 Pedro Alves <palves@redhat.com>
1461 * linux-tdep.c: Include observer.h.
1462 (linux_inferior_data): New global.
1463 (struct linux_info): New structure.
1464 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1465 (get_linux_inferior_data): New functions.
1466 (linux_vsyscall_range): Rename to ...
1467 (linux_vsyscall_range_raw): ... this.
1468 (linux_vsyscall_range): New function; handles caching.
1469 (_initialize_linux_tdep): Register linux_inferior_data. Install
1470 inferior_exit and inferior_appeared observers.
1472 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1473 Pedro Alves <palves@redhat.com>
1476 * solib-svr4.c (svr4_read_so_list): Rename to ...
1477 (svr4_current_sos_1): ... this and change the function comment.
1478 (svr4_current_sos): New function.
1480 2014-10-10 Pedro Alves <palves@redhat.com>
1482 * arch-utils.c (default_vsyscall_range): New function.
1483 * arch-utils.h (default_vsyscall_range): New declaration.
1484 * gdbarch.sh (vsyscall_range): New hook.
1485 * gdbarch.h, gdbarch.c: Regenerate.
1486 * linux-tdep.c (linux_vsyscall_range): New function.
1487 (linux_init_abi): Install linux_vsyscall_range as
1488 vsyscall_range gdbarch hook.
1489 * memrange.c (address_in_mem_range): New function.
1490 * memrange.h (address_in_mem_range): New declaration.
1491 * symfile-mem.c (find_vdso_size): Delete function.
1492 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1494 2014-10-10 Pedro Alves <palves@redhat.com>
1496 * infrun.c (normal_stop): Fix typo in comment.
1498 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1501 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1502 typo when using logical AND to determine instruction type.
1504 2014-10-09 Yao Qi <yao@codesourcery.com>
1506 * infrun.c (handle_signal_stop): Remove local variable
1509 2014-10-08 Stan Shebs <stan@codesourcery.com>
1511 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1513 2014-10-08 Gary Benson <gbenson@redhat.com>
1515 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1517 2014-10-08 Gary Benson <gbenson@redhat.com>
1519 * common/common-defs.h: Include common-exceptions.h.
1520 * exceptions.h: Do not include common-exceptions.h.
1522 2014-10-08 Gary Benson <gbenson@redhat.com>
1524 * common/common-defs.h: Include cleanups.h.
1525 * common/common-exceptions.c: Do not include cleanups.h.
1526 * utils.h: Likewise.
1528 2014-10-08 Gary Benson <gbenson@redhat.com>
1530 * ada-lang.c: Do not include exceptions.h.
1531 * ada-valprint.c: Likewise.
1532 * amd64-tdep.c: Likewise.
1533 * auto-load.c: Likewise.
1534 * block.c: Likewise.
1535 * break-catch-throw.c: Likewise.
1536 * breakpoint.c: Likewise.
1537 * btrace.c: Likewise.
1538 * c-lang.c: Likewise.
1539 * cli/cli-cmds.c: Likewise.
1540 * cli/cli-interp.c: Likewise.
1541 * cli/cli-script.c: Likewise.
1542 * completer.c: Likewise.
1543 * corefile.c: Likewise.
1544 * corelow.c: Likewise.
1545 * cp-abi.c: Likewise.
1546 * cp-support.c: Likewise.
1547 * cp-valprint.c: Likewise.
1548 * darwin-nat.c: Likewise.
1549 * dwarf2-frame-tailcall.c: Likewise.
1550 * dwarf2-frame.c: Likewise.
1551 * dwarf2loc.c: Likewise.
1552 * dwarf2read.c: Likewise.
1554 * event-loop.c: Likewise.
1555 * event-top.c: Likewise.
1556 * f-valprint.c: Likewise.
1557 * frame-unwind.c: Likewise.
1558 * frame.c: Likewise.
1559 * gdbtypes.c: Likewise.
1560 * gnu-v2-abi.c: Likewise.
1561 * gnu-v3-abi.c: Likewise.
1562 * guile/scm-auto-load.c: Likewise.
1563 * guile/scm-breakpoint.c: Likewise.
1564 * guile/scm-cmd.c: Likewise.
1565 * guile/scm-frame.c: Likewise.
1566 * guile/scm-lazy-string.c: Likewise.
1567 * guile/scm-param.c: Likewise.
1568 * guile/scm-symbol.c: Likewise.
1569 * guile/scm-type.c: Likewise.
1570 * hppa-hpux-tdep.c: Likewise.
1571 * i386-tdep.c: Likewise.
1572 * inf-loop.c: Likewise.
1573 * infcall.c: Likewise.
1574 * infcmd.c: Likewise.
1575 * infrun.c: Likewise.
1576 * interps.c: Likewise.
1577 * interps.h: Likewise.
1579 * linespec.c: Likewise.
1580 * linux-nat.c: Likewise.
1581 * linux-thread-db.c: Likewise.
1582 * m32r-rom.c: Likewise.
1584 * memory-map.c: Likewise.
1585 * mi/mi-cmd-break.c: Likewise.
1586 * mi/mi-cmd-stack.c: Likewise.
1587 * mi/mi-interp.c: Likewise.
1588 * mi/mi-main.c: Likewise.
1589 * monitor.c: Likewise.
1590 * nto-procfs.c: Likewise.
1591 * objc-lang.c: Likewise.
1592 * p-valprint.c: Likewise.
1593 * parse.c: Likewise.
1594 * ppc-linux-tdep.c: Likewise.
1595 * printcmd.c: Likewise.
1596 * probe.c: Likewise.
1597 * python/py-auto-load.c: Likewise.
1598 * python/py-breakpoint.c: Likewise.
1599 * python/py-cmd.c: Likewise.
1600 * python/py-finishbreakpoint.c: Likewise.
1601 * python/py-frame.c: Likewise.
1602 * python/py-framefilter.c: Likewise.
1603 * python/py-function.c: Likewise.
1604 * python/py-gdb-readline.c: Likewise.
1605 * python/py-inferior.c: Likewise.
1606 * python/py-infthread.c: Likewise.
1607 * python/py-lazy-string.c: Likewise.
1608 * python/py-linetable.c: Likewise.
1609 * python/py-param.c: Likewise.
1610 * python/py-prettyprint.c: Likewise.
1611 * python/py-symbol.c: Likewise.
1612 * python/py-type.c: Likewise.
1613 * python/py-value.c: Likewise.
1614 * python/python-internal.h: Likewise.
1615 * python/python.c: Likewise.
1616 * record-btrace.c: Likewise.
1617 * record-full.c: Likewise.
1618 * regcache.c: Likewise.
1619 * remote-fileio.c: Likewise.
1620 * remote-mips.c: Likewise.
1621 * remote.c: Likewise.
1622 * rs6000-aix-tdep.c: Likewise.
1623 * rs6000-nat.c: Likewise.
1625 * solib-darwin.c: Likewise.
1626 * solib-dsbt.c: Likewise.
1627 * solib-frv.c: Likewise.
1628 * solib-ia64-hpux.c: Likewise.
1629 * solib-spu.c: Likewise.
1630 * solib-svr4.c: Likewise.
1631 * solib.c: Likewise.
1632 * spu-tdep.c: Likewise.
1633 * stack.c: Likewise.
1634 * stap-probe.c: Likewise.
1635 * symfile-mem.c: Likewise.
1636 * symmisc.c: Likewise.
1637 * target.c: Likewise.
1638 * thread.c: Likewise.
1640 * tracepoint.c: Likewise.
1641 * tui/tui-interp.c: Likewise.
1642 * typeprint.c: Likewise.
1643 * utils.c: Likewise.
1644 * valarith.c: Likewise.
1645 * valops.c: Likewise.
1646 * valprint.c: Likewise.
1647 * value.c: Likewise.
1648 * varobj.c: Likewise.
1649 * windows-nat.c: Likewise.
1650 * xml-support.c: Likewise.
1652 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1654 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1656 (extended_mips16_next_pc): Update accordingly.
1658 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1660 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1662 (micromips_instruction_is_compact_branch): Likewise.
1663 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1664 or a compact jump, reaching a jump delay slot, or seeing a
1665 second non-prologue instruction.
1666 (micromips_scan_prologue): Also terminate scanning upon seeing a
1667 compact branch or jump, or reaching a branch or jump delay slot.
1668 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1669 or jump delay slot, or seeing a second non-prologue instruction.
1670 (mips32_instruction_has_delay_slot): Retain instruction
1671 examination code only, update arguments accordingly and move
1672 instruction fetch pieces to...
1673 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1674 (micromips_instruction_has_delay_slot): Likewise and to...
1675 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1676 (mips16_instruction_has_delay_slot): Likewise and to...
1677 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1678 (mips_single_step_through_delay): Update accordingly.
1679 (mips_adjust_breakpoint_address): Likewise.
1681 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1683 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1684 !mustbe32 also return 1 for 32-bit instructions.
1685 (mips16_instruction_has_delay_slot): Likewise. Add an
1686 explanatory comment.
1688 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1690 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1693 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1695 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1697 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1698 for the breakpoint's address. Don't preinitialize `placed_size'.
1699 (insert_bp_location): Set `reqstd_address' rather than
1701 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1702 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1704 (bkpt_remove_location): Likewise.
1705 (deprecated_insert_raw_breakpoint): Likewise.
1706 (deprecated_remove_raw_breakpoint): Likewise.
1707 (find_single_step_breakpoint): Likewise.
1708 * mem-break.c (default_memory_insert_breakpoint): Use
1709 `reqstd_address' for the breakpoint's address. Don't set
1710 `placed_address' or `placed_size' if breakpoint contents couldn't
1711 have been determined.
1712 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1713 the breakpoint's address.
1714 (remote_insert_hw_breakpoint): Likewise. Don't set
1715 `placed_address' or `placed_size' if breakpoint couldn't have been
1717 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1718 `reqstd_address' for the breakpoint's address.
1719 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1720 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1721 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1722 * microblaze-linux-tdep.c
1723 (microblaze_linux_memory_remove_breakpoint): Likewise.
1724 * monitor.c (monitor_insert_breakpoint): Likewise.
1725 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1726 (procfs_insert_hw_breakpoint): Likewise.
1727 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1728 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1729 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1730 * remote-mips.c (mips_insert_breakpoint): Likewise.
1731 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1733 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1735 * valops.c (value_assign): Check for bit field assignments
1736 before calling architecture-specific register value
1737 conversion functions.
1739 2014-10-03 Pierre Muller <muller@sourceware.org>
1741 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1743 2014-10-02 Pedro Alves <palves@redhat.com>
1745 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1746 threads_are_executing.
1747 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1749 * gdbthread.h (threads_are_executing): Declare.
1750 (handle_signal_stop) <random signals>: Don't print about the
1751 signal here if stopping.
1752 (end_stepping_range): Don't notify observers here.
1753 (normal_stop): Update the thread list. If stopped by a random
1754 signal or a stepping range ended, notify observers.
1755 * thread.c (threads_executing): New global.
1756 (init_thread_list): Clear 'threads_executing'.
1757 (set_executing): Set or clear 'threads_executing'.
1758 (threads_are_executing): New function.
1759 (update_threads_executing): New function.
1760 (update_thread_list): Use it.
1762 2014-10-02 Pedro Alves <palves@redhat.com>
1764 PR breakpoints/17431
1765 * breakpoint.c (update_breakpoints_after_exec): Don't create
1766 overlay, longjmp, std terminate nor exception breakpoints here.
1768 2014-10-02 Pedro Alves <palves@redhat.com>
1770 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1772 * inferior.c (find_inferior_for_program_space): Give preference to
1773 the current inferior.
1774 * inferior.h (find_inferior_for_program_space): Update comment.
1775 * progspace.c (switch_to_program_space_and_thread): Prefer the
1776 current inferior if it's bound to the program space requested. If
1777 the inferior found doesn't have a PID yet, don't bother looking up
1779 * progspace.h (switch_to_program_space_and_thread): Adjust
1781 * thread.c (any_thread_of_process, any_live_thread_of_process):
1782 Give preference to the current thread.
1784 2014-10-01 Pedro Alves <palves@redhat.com>
1786 * breakpoint.c (insert_bp_location): Error out if inserting a
1787 software breakpoint at a read-only address.
1788 * target.c (memory_xfer_check_region): New function, factored out
1790 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1792 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1793 against the memory region attributes.
1795 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1797 * NEWS: Announce new exit-code field in -list-thread-groups
1799 * inferior.c (exit_inferior_1): Don't clear exit code.
1800 (inferior_appeared): Clear exit code.
1801 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1804 2014-10-01 Pedro Alves <palves@redhat.com>
1806 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1807 GENERATED" along with emacs/vi read-only markers.
1808 * regformats/aarch64.dat: Regenerate.
1809 * regformats/arm-with-iwmmxt.dat: Regenerate.
1810 * regformats/arm-with-neon.dat: Regenerate.
1811 * regformats/arm-with-vfpv2.dat: Regenerate.
1812 * regformats/arm-with-vfpv3.dat: Regenerate.
1813 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1814 * regformats/i386/amd64-avx.dat: Regenerate.
1815 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1816 * regformats/i386/amd64-avx512.dat: Regenerate.
1817 * regformats/i386/amd64-linux.dat: Regenerate.
1818 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1819 * regformats/i386/amd64-mpx.dat: Regenerate.
1820 * regformats/i386/amd64.dat: Regenerate.
1821 * regformats/i386/i386-avx-linux.dat: Regenerate.
1822 * regformats/i386/i386-avx.dat: Regenerate.
1823 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1824 * regformats/i386/i386-avx512.dat: Regenerate.
1825 * regformats/i386/i386-linux.dat: Regenerate.
1826 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1827 * regformats/i386/i386-mmx.dat: Regenerate.
1828 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1829 * regformats/i386/i386-mpx.dat: Regenerate.
1830 * regformats/i386/i386.dat: Regenerate.
1831 * regformats/i386/x32-avx-linux.dat: Regenerate.
1832 * regformats/i386/x32-avx.dat: Regenerate.
1833 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1834 * regformats/i386/x32-avx512.dat: Regenerate.
1835 * regformats/i386/x32-linux.dat: Regenerate.
1836 * regformats/i386/x32.dat: Regenerate.
1837 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1838 * regformats/mips-dsp-linux.dat: Regenerate.
1839 * regformats/mips-linux.dat: Regenerate.
1840 * regformats/mips64-dsp-linux.dat: Regenerate.
1841 * regformats/mips64-linux.dat: Regenerate.
1842 * regformats/nios2-linux.dat: Regenerate.
1843 * regformats/rs6000/powerpc-32.dat: Regenerate.
1844 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1845 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1846 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1847 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1848 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1849 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1850 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1851 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1852 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1853 * regformats/s390-linux32.dat: Regenerate.
1854 * regformats/s390-linux32v1.dat: Regenerate.
1855 * regformats/s390-linux32v2.dat: Regenerate.
1856 * regformats/s390-linux64.dat: Regenerate.
1857 * regformats/s390-linux64v1.dat: Regenerate.
1858 * regformats/s390-linux64v2.dat: Regenerate.
1859 * regformats/s390-te-linux64.dat: Regenerate.
1860 * regformats/s390x-linux64.dat: Regenerate.
1861 * regformats/s390x-linux64v1.dat: Regenerate.
1862 * regformats/s390x-linux64v2.dat: Regenerate.
1863 * regformats/s390x-te-linux64.dat: Regenerate.
1864 * regformats/tic6x-c62x-linux.dat: Regenerate.
1865 * regformats/tic6x-c62x.dat: Regenerate.
1866 * regformats/tic6x-c64x-linux.dat: Regenerate.
1867 * regformats/tic6x-c64x.dat: Regenerate.
1868 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1869 * regformats/tic6x-c64xp.dat: Regenerate.
1871 2014-10-01 Pedro Alves <palves@redhat.com>
1873 * features/Makefile: Update comments.
1874 (XMLTOC): List all xml files we build C files from.
1875 (clean-cfiles): New rule.
1877 2014-10-01 Pedro Alves <palves@redhat.com>
1879 * features/i386/amd64-avx512-linux.c: Regenerate.
1880 * features/i386/amd64-avx512.c: Regenerate.
1881 * features/i386/x32-avx512-linux.c: Regenerate.
1882 * features/i386/x32-avx512.c: Regenerate.
1884 2014-10-01 Pedro Alves <palves@redhat.com>
1886 * features/Makefile (WHICH): Remove arm-with-m,
1887 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1889 2014-10-01 Pedro Alves <palves@redhat.com>
1891 * features/Makefile (clean): New rule.
1893 2014-10-01 Pedro Alves <palves@redhat.com>
1895 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1896 (zmm14h): Add missing end quotes.
1898 2014-10-01 Pedro Alves <palves@redhat.com>
1900 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1901 * features/aarch64.c: Regenerate.
1903 2014-09-30 Don Breazeal <donb@codesourcery.com>
1905 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1906 code so as to work with follow_fork_inferior.
1907 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1908 (inf_ttrace_create_inferior): Remove reference to
1909 inf_ttrace_vfork_ppid.
1910 (inf_ttrace_attach): Ditto.
1911 (inf_ttrace_detach): Ditto.
1912 (inf_ttrace_kill): Use current_inferior instead of
1913 inf_ttrace_vfork_ppid.
1914 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1915 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1916 inferior away from the parent.
1917 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1919 (follow_fork_inferior): New function.
1920 (follow_inferior_reset_breakpoints): Make function static.
1921 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1922 * linux-nat.c (linux_child_follow_fork): Move target-independent
1923 code to infrun.c:follow_fork_inferior.
1925 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1927 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1928 * gdbarch.c: Regenerate.
1929 * gdbarch.h: Likewise.
1930 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1931 gdbarch method 'regset_from_core_section'.
1932 (get_core_register_section): Remove handling for the case that
1933 regset == NULL and regset_from_core_section is defined.
1934 (get_core_registers): Drop check for deleted method.
1935 * procfs.c (procfs_do_thread_registers): Adjust comment.
1937 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1939 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1940 (linux_nat_make_corefile_notes): Remove.
1941 (linux_target_install_ops): Do not set target method
1942 'make_corefile_notes'.
1943 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1945 (linux_corefile_thread_callback): Instead of args->collect, call
1946 linux_collect_thread_registers.
1947 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1948 NULL unless there is a regset iterator.
1949 (linux_make_corefile_notes_1): Remove.
1950 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1951 by linux_make_corefile_notes.
1952 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1954 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1956 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1957 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1959 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1961 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1963 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1964 (xtensa_iterate_over_regset_sections): New.
1965 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1967 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1969 * vax-tdep.c (vax_regset_from_core_section): Remove.
1970 (vax_iterate_over_regset_sections): New.
1971 (vax_gdbarch_init): Adjust gdbarch initialization.
1973 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1975 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1976 (tilegx_regset_from_core_section): Remove.
1977 (tilegx_iterate_over_regset_sections): New.
1978 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1980 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1982 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1983 (sparc_iterate_over_regset_sections): New.
1984 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1985 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1987 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1988 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1989 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1990 target method 'make_corefile_notes'.
1992 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1994 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1995 'sizeof_gregset' and 'sizeof_fpregset'.
1996 * sh-tdep.c (sh_regset_from_core_section): Remove.
1997 (sh_iterate_over_regset_sections): New.
1998 (sh_gdbarch_init): Adjust gdbarch initialization.
1999 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2001 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2004 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2006 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2007 (score7_linux_iterate_over_regset_sections): New.
2008 (score_gdbarch_init): Adjust gdbarch initialization.
2010 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2012 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2014 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2015 method 'make_corefile_notes'.
2016 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2017 (ppcfbsd_regset_from_core_section): Remove.
2018 (ppcfbsd_iterate_over_regset_sections): New.
2019 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2021 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2022 (ppcnbsd_iterate_over_regset_sections): New.
2023 (ppcnbsd_init_abi): Adjust.
2024 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2025 (ppcobsd_iterate_over_regset_sections): New.
2026 (ppcobsd_init_abi): Adjust.
2027 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2028 (rs6000_aix_iterate_over_regset_sections): New.
2029 (rs6000_aix_init_osabi): Adjust.
2031 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2033 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2034 (nios2_regset_from_core_section): Remove.
2035 (nios2_iterate_over_regset_sections): New.
2036 (nios2_linux_init_abi): Adjust gdbarch initialization.
2038 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2040 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2041 (am33_iterate_over_regset_sections): New.
2042 (am33_linux_init_osabi): Adjust gdbarch initialization.
2044 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2046 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2047 (mips_linux_iterate_over_regset_sections): New.
2048 (mips_linux_init_abi): Adjust gdbarch initialization.
2049 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2050 (mips64obsd_iterate_over_regset_sections): New.
2051 (mips64obsd_init_abi): Adjust.
2052 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2053 (mipsnbsd_iterate_over_regset_sections): New.
2054 (mipsnbsd_init_abi): Adjust.
2056 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2058 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2059 (m88k_iterate_over_regset_sections): New.
2060 (m88k_gdbarch_init): Adjust gdbarch initialization.
2062 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2064 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2065 (ia64_linux_iterate_over_regset_sections): New.
2066 (ia64_linux_init_abi): Adjust gdbarch initialization.
2068 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2070 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2071 (m68kbsd_iterate_over_regset_sections): New.
2072 (m68kbsd_init_abi): Adjust gdbarch initialization.
2073 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2074 (m68k_linux_iterate_over_regset_sections): New.
2075 (m68k_linux_init_abi): Adjust gdbarch initialization.
2077 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2079 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2080 (m32r_linux_regset_from_core_section): Remove.
2081 (m32r_linux_iterate_over_regset_sections): New.
2082 (m32r_linux_init_abi): Adjust gdbarch initialization.
2084 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2086 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2087 (amd64obsd_iterate_over_regset_sections): New.
2088 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2089 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2091 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2092 regset_from_core_section initialization.
2093 * i386-tdep.c (i386_regset_from_core_section): Remove.
2094 (i386_iterate_over_regset_sections): New.
2095 (i386_gdbarch_init): Adjust gdbarch initialization.
2096 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2097 (i386_iterate_over_regset_sections): New prototype.
2098 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2100 (i386obsd_aout_iterate_over_regset_sections): New.
2101 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2102 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2104 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2105 (amd64fbsd_init_abi): Call fbsd_init_abi.
2106 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2107 (i386fbsd4_init_abi): Call fbsd_init_abi.
2108 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2109 target method 'make_corefile_notes'.
2110 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2112 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2114 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2115 (hppa_hpux_iterate_over_regset_sections): New.
2116 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2117 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2118 (hppa_linux_iterate_over_regset_sections): New.
2119 (hppa_linux_init_abi): Adjust.
2120 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2121 (hppanbsd_iterate_over_regset_sections): New.
2122 (hppanbsd_init_abi): Adjust.
2123 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2124 (hppaobsd_iterate_over_regset_sections): New.
2125 (hppaobsd_init_abi): Adjust.
2127 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2129 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2130 (frv_linux_iterate_over_regset_sections): New.
2131 (frv_linux_init_abi): Adjust gdbarch initialization.
2133 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2135 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2136 (armbsd_iterate_over_regset_sections): New prototype.
2137 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2138 (armbsd_iterate_over_regset_sections): New.
2139 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2142 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2144 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2145 (alpha_linux_iterate_over_regset_sections): New.
2146 (alpha_linux_init_abi): Adjust gdbarch initialization.
2147 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2149 (alphanbsd_iterate_over_regset_sections): New prototype.
2151 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2153 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2155 (aarch64_linux_iterate_over_regset_sections): New.
2156 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2158 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2160 * fbsd-tdep.c: New file.
2161 * fbsd-tdep.h: New file.
2162 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2163 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2164 (ALLDEPFILES): Add fbsd-tdep.c.
2166 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2168 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2170 * gdbarch.h: Regenerate.
2171 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2173 (get_core_register_section): Add parameter 'regset' and use it, if
2174 set. Add parameter 'min_size' and verify the bfd section size
2176 (get_core_registers_cb): Add parameter 'regset' and pass it to
2177 get_core_register section. For the "standard" register sections
2178 ".reg" and ".reg2", set an appropriate default for human_name.
2179 (get_core_registers): Don't abort when the gdbarch has an iterator
2180 but no regset_from_core_section. Add NULL/0 for parameters
2181 'regset'/'min_size' in calls to get_core_register_section.
2182 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2183 'regset' and use it instead of calling the
2184 regset_from_core_section gdbarch method.
2185 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2186 * i386-tdep.c (i386_supply_xstateregset)
2187 (i386_collect_xstateregset, i386_xstateregset): Moved to
2189 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2191 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2192 core file support only if the regset iterator hasn't been set.
2193 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2194 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2195 Moved from i386-tdep.c and renamed to *_linux*.
2196 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2197 each callback invocation. Allow any .reg-xstate size when reading
2199 * amd64-tdep.c (amd64_supply_xstateregset)
2200 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2202 (amd64_regset_from_core_section): Remove.
2203 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2204 install an amd64-specific regset_from_core_section gdbarch method.
2205 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2206 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2207 Moved from amd64-tdep.c and renamed to *_linux*.
2208 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2209 to each callback invocation. Allow any .reg-xstate size when
2210 reading from a core file.
2211 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2212 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2213 each callback invocation.
2214 (arm_linux_init_abi): No longer set the regset_from_core_section
2216 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2217 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2218 each callback invocation.
2219 (ppc_linux_init_abi): No longer set the regset_from_core_section
2221 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2222 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2223 (s390_regset_from_core_section): Remove.
2224 (s390_iterate_over_regset_sections): Add regset parameter to each
2225 callback invocation.
2226 (s390_gdbarch_init): No longer set the regset_from_core_section
2227 gdbarch method. Drop initialization of deleted tdep fields.
2229 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2231 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2232 (amd64_linux_iterate_over_regset_sections): New.
2233 (amd64_linux_init_abi_common): Don't install the regset section
2234 list, but the new iterator in gdbarch.
2235 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2236 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2237 (arm_linux_iterate_over_regset_sections): ...here. New function.
2238 (arm_linux_init_abi): Set iterator instead of section list.
2239 * corelow.c (get_core_registers_cb): New function, logic moved
2241 (get_core_registers): ...loop body here. Use new iterator method
2242 instead of walking through the regset section list.
2243 * gdbarch.sh: Remove 'core_regset_sections'. New method
2244 'iterate_over_regset_sections'. New typedef
2245 'iterate_over_regset_sections_cb'.
2246 * gdbarch.c: Regenerate.
2247 * gdbarch.h: Likewise.
2248 * i386-linux-tdep.c (i386_linux_regset_sections)
2249 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2251 (i386_linux_iterate_over_regset_sections): New.
2252 (i386_linux_init_abi): Don't choose a regset section list, but
2253 install new iterator in gdbarch.
2254 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2255 (linux_collect_regset_section_cb): New function, logic moved
2257 (linux_collect_thread_registers): ...loop body here. Use iterator
2258 method instead of walking through list.
2259 (linux_make_corefile_notes_1): Check for presence of iterator
2260 method instead of regset section list.
2261 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2262 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2263 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2264 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2265 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2266 (ppc_linux_init_abi): Don't choose from above regset section
2267 lists, but install new iterator in gdbarch.
2268 * regset.h (struct core_regset_section): Remove.
2269 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2270 have_linux_v1, have_linux_v2, and have_tdb.
2271 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2272 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2273 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2274 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2275 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2276 (s390_iterate_over_regset_sections): ...here. New function. Use
2278 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2279 regset section lists, but install new iterator.
2281 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2283 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2285 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2287 * progspace.c (print_program_space): Don't prune program spaces
2288 before printing them.
2290 2014-09-25 Pedro Alves <palves@redhat.com>
2292 * infrun.c (user_visible_resume_ptid): Don't check
2293 singlestep_breakpoints_inserted_p.
2295 2014-09-25 Pedro Alves <palves@redhat.com>
2297 * breakpoint.c (should_be_inserted): Add debug output.
2299 2014-09-25 Pedro Alves <palves@redhat.com>
2301 * infrun.c (stepping_past_instruction_at)
2302 (clear_exit_convenience_vars): Point at infrun.h instead of
2304 (handle_signal_stop): Fix typo.
2306 2014-09-24 Yao Qi <yao@codesourcery.com>
2308 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2311 2014-09-22 Gary Benson <gbenson@redhat.com>
2313 * target.c (target_stop): Updated comment.
2315 2014-09-22 Gary Benson <gbenson@redhat.com>
2317 * target/target.h (target_stop_ptid): Renamed as...
2318 (target_stop_and_wait): New function. Updated comment.
2320 (target_continue_ptid): Renamed as...
2321 (target_continue_no_signal): New function. Updated comment.
2324 2014-09-22 Pedro Alves <palves@redhat.com>
2326 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2328 * breakpoint.c (enum ugll_insert_mode): New enum.
2329 (always_inserted_mode): Now a plain boolean.
2330 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2331 (breakpoints_always_inserted_mode): Delete.
2332 (breakpoints_should_be_inserted_now): New function.
2333 (insert_breakpoints): Pass UGLL_INSERT to
2334 update_global_location_list instead of calling
2335 insert_breakpoint_locations manually.
2336 (create_solib_event_breakpoint_1): New, factored out from ...
2337 (create_solib_event_breakpoint): ... this.
2338 (create_and_insert_solib_event_breakpoint): Use
2339 create_solib_event_breakpoint_1 instead of calling
2340 insert_breakpoint_locations manually.
2341 (update_global_location_list): Change parameter type from boolean
2342 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2343 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2344 (update_global_location_list_nothrow): Change parameter type from
2345 boolean to enum ugll_insert_mode.
2346 (_initialize_breakpoint): "breakpoint always-inserted" option is
2347 now a boolean command. Update help text.
2348 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2349 (breakpoints_should_be_inserted_now): New declaration.
2350 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2351 Remove breakpoints_always_inserted_mode check.
2352 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2353 * remote.c (remote_start_remote): Likewise.
2355 2014-09-22 Pedro Alves <palves@redhat.com>
2357 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2358 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2359 Instead, pass UGLL_INSERT to update_global_location_list.
2360 (update_global_location_list): Change parameter type from boolean
2361 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2362 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2363 (create_solib_event_breakpoint_1): New, factored out from ...
2364 (create_solib_event_breakpoint): ... this.
2365 (create_and_insert_solib_event_breakpoint): Use
2366 create_solib_event_breakpoint_1 instead of calling
2367 insert_breakpoint_locations manually.
2368 (update_global_location_list): Handle UGLL_INSERT.
2370 2014-09-22 Pedro Alves <palves@redhat.com>
2372 * breakpoint.c (enum ugll_insert_mode): New enum.
2373 (update_global_location_list)
2374 (update_global_location_list_nothrow): Change parameter type from
2375 boolean to enum ugll_insert_mode. All callers adjusted.
2377 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2379 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2380 SystemTap support in GDB.
2382 2014-09-19 Don Breazeal <donb@codesourcery.com>
2384 * linux-nat.c (linux_handle_extended_wait): Call
2385 linux_ptrace_get_extended_event.
2386 (wait_lwp): Call linux_is_extended_waitstatus.
2387 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2388 and linux_is_extended_waitstatus.
2389 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2390 linux_ptrace_get_extended_event.
2391 (linux_ptrace_get_extended_event): New function.
2392 (linux_is_extended_waitstatus): New function.
2393 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2394 (linux_is_extended_waitstatus): New declarations.
2396 2014-09-19 Yao Qi <yao@codesourcery.com>
2398 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2399 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2400 comments. Callers update.
2401 (dwarf_decode_lines): Likewise.
2402 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2403 comments. Skip the line table if 'lowpc' is greater than
2404 'address'. Don't check
2405 dwarf2_per_objfile->has_section_at_zero.
2407 2014-09-18 Doug Evans <dje@google.com>
2409 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2410 * python/py-symtab.c (stpy_get_producer): New function.
2411 (symtab_object_getset): Add "producer" attribute.
2413 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
2416 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2417 (do_captured_read_memory_integer): Remove.
2418 (safe_read_memory_integer): Use target_read_memory directly instead
2419 of catching errors in do_captured_read_memory_integer.
2421 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2423 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2426 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2428 * objc-lang.c (find_implementation_from_class): Remove dead code.
2430 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2433 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2434 "fprintf_unfiltered (gdb_stdlog...)".
2436 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2438 PR breakpoints/12526
2439 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2441 * breakpoint.c (watch_command_1): Use these fields to retain
2442 bitfield information.
2443 (extract_bitfield_from_watchpoint_value): New function.
2444 (watchpoint_check): Use it.
2445 (update_watchpoint): Use it. Optimize the address and length of a
2446 HW watchpoint pointing to a bitfield.
2447 * value.h (unpack_value_bitfield): New prototype.
2448 * value.c (unpack_value_bitfield): Make extern.
2450 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2452 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2454 * gnu-nat.c (inf_threads): New function.
2455 * gnu-nat.h (inf_threads_ftype): New typedef.
2456 (inf_threads): New declaration.
2457 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2458 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2459 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2460 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2461 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2462 (i386_gnu_dr_get_control): New functions.
2463 (reg_addr): New structure.
2464 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2465 i386 debugging register hooks.
2466 * NEWS: Mention this.
2468 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2470 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2471 vector data transfer instructions.
2472 (arm_record_coproc_data_proc): Updated.
2474 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2476 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2477 arm_record_exreg_ld_st_insn.
2478 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2481 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2483 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2484 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2485 processing instructions.
2487 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2489 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2490 for advance SIMD struct ld/st insn.
2491 (thumb2_record_decode_insn_handler): Replace stub handler with
2492 thumb2_record_asimd_struct_ld_st.
2494 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2496 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2497 for asimd, vfp and coprocessor insns.
2498 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2499 and coprocessor insns.
2500 (thumb2_record_coproc_insn): New function.
2501 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2503 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2506 2014-09-13 Doug Evans <xdje42@gmail.com>
2508 * NEWS: Mention new "queue-signal" command.
2509 * infcmd.c (queue_signal_command): New function.
2510 (_initialize_infcmd): Add new queue-signal command.
2512 2014-09-13 Doug Evans <xdje42@gmail.com>
2514 * linux-nat.c (wait_lwp): Add debugging printf.
2515 (linux_nat_wait_1): Ditto.
2517 2014-09-12 Pedro Alves <palves@redhat.com>
2519 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2520 (create_and_insert_solib_event_breakpoint): New functions.
2521 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2522 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2523 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2524 (remove_dbx_link_breakpoint): Delete function.
2525 (insert_dbx_link_bpt_in_file): Use
2526 create_and_insert_solib_event_breakpoint instead of
2527 deprecated_insert_raw_breakpoint.
2528 (procfs_wait): Don't check whether we hit __dbx_link here.
2529 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2531 * solib-irix.c (base_breakpoint): Delete global.
2532 (disable_break): Delete function.
2533 (enable_break): Use create_solib_event_breakpoint
2534 instead of deprecated_insert_raw_breakpoint.
2535 (irix_solib_handle_event): New function.
2536 (irix_solib_create_inferior_hook): Don't run the target or disable
2537 the mapping-complete breakpoint here.
2538 (_initialize_irix_solib): Install irix_solib_handle_event as
2539 so_ops->handle_event hook.
2541 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2542 Ulrich Weigand <uweigand@de.ibm.com>
2545 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2546 instead of read_memory_unsigned_integer.
2548 2014-09-12 Gary Benson <gbenson@redhat.com>
2550 * nat/linux-waitpid.c: Include common-defs.h.
2551 [GDBSERVER]: Add FIXME comment.
2552 [!GDBSERVER]: Don't include defs.h or signal.h.
2553 (linux_debug) [!GDBSERVER]: Remove empty block.
2555 2014-09-12 Gary Benson <gbenson@redhat.com>
2557 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2558 Don't include defs.h or server.h.
2560 2014-09-12 Gary Benson <gbenson@redhat.com>
2562 * nat/linux-btrace.c: Include common-defs.h.
2563 Don't include defs.h, server.h or gdbthread.h.
2564 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2566 2014-09-12 Gary Benson <gbenson@redhat.com>
2568 * common/agent.c: Include common-defs.h.
2569 Don't include defs.h or server.h.
2570 * common/buffer.c: Likewise.
2571 * common/common-debug.c: Likewise.
2572 * common/common-utils.c: Likewise.
2573 * common/errors.c: Likewise.
2574 * common/filestuff.c: Likewise.
2575 * common/format.c: Likewise.
2576 * common/gdb_vecs.c: Likewise.
2577 * common/print-utils.c: Likewise.
2578 * common/ptid.c: Likewise.
2579 * common/rsp-low.c: Likewise.
2580 * common/signals.c: Likewise.
2581 * common/vec.c: Likewise.
2582 * common/xml-utils.c: Likewise.
2583 * nat/linux-osdata.c: Likewise.
2584 * nat/linux-procfs.c: Likewise.
2585 * nat/linux-ptrace.c: Likewise.
2586 * nat/mips-linux-watch.c: Likewise.
2587 * target/waitstatus.c: Likewise.
2589 2014-09-12 Tom Tromey <tromey@redhat.com>
2590 Gary Benson <gbenson@redhat.com>
2592 * common/common-regcache.h: New file.
2593 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2594 * regcache.h: Include common-regcache.h.
2595 (regcache_read_pc): Don't declare.
2596 * regcache.c (get_thread_regcache_for_ptid): New function.
2597 * nat/linux-btrace.c: Don't include regcache.h.
2598 Include common-regcache.h.
2599 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2601 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2603 * regcache.h (struct regset): Declare.
2605 2014-09-11 Pedro Alves <palves@redhat.com>
2608 * main.c: Include "infrun.h".
2609 (catch_command_errors, catch_command_errors_const): Wait for the
2610 foreground command to complete.
2611 * top.c (maybe_wait_sync_command_done): New function, factored out
2613 (maybe_wait_sync_command_done): ... here.
2614 * top.h (maybe_wait_sync_command_done): New declaration.
2616 2014-09-11 Tom Tromey <tromey@redhat.com>
2617 Gary Benson <gbenson@redhat.com>
2619 * common/symbol.h: New file.
2620 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2621 * minsyms.c (find_minimal_symbol_address): New function.
2622 * common/agent.c: Include common/symbol.h.
2623 [!GDBSERVER]: Don't include objfiles.h.
2624 (agent_look_up_symbols): Use find_minimal_symbol_address.
2626 2014-09-11 Gary Benson <gbenson@redhat.com>
2628 * target/target.h (target_stop_ptid, target_continue_ptid):
2630 * target.c (target_stop_ptid, target_continue_ptid): New
2632 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2633 (agent_run_command): Always use target_stop_ptid and
2634 target_continue_ptid.
2636 2014-09-11 Tom Tromey <tromey@redhat.com>
2637 Gary Benson <gbenson@redhat.com>
2639 * target/target.h: New file.
2640 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2641 * target.h: Include target/target.h.
2642 (target_read_memory, target_write_memory): Don't declare.
2643 * target.c (target_read_uint32): New function.
2644 * common/agent.c: Include target/target.h.
2645 [!GDBSERVER]: Don't include target.h.
2646 (helper_thread_id): Type changed to uint32_t.
2647 (agent_get_helper_thread_id): Use target_read_uint32.
2648 (agent_run_command): Always use target_read_memory and
2649 target_write_memory.
2650 (agent_capability): Type changed to uint32_t.
2651 (agent_capability_check): Use target_read_uint32.
2653 2014-09-11 Gary Benson <gbenson@redhat.com>
2655 * common/common-debug.h (show_debug_regs): Declare.
2656 * common/common-debug.c (show_debug_regs): Define.
2657 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2658 all uses with show_debug_regs. Replace all uses that considered
2659 debug_hw_points as a multi-value integer with straight boolean
2661 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2662 with show_debug_regs.
2663 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2664 all uses with show_debug_regs.
2665 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2666 uses with show_debug_regs.
2668 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2670 * findvar.c (address_from_register): Handle targets requiring
2671 a special conversion routine even for plain pointer types.
2673 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2675 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2676 (store_register): Do not call exec_one_dummy_insn.
2678 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2680 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2681 dereference it first. Use value_enclosing_type instead of
2683 (ada_array_length): Likewise.
2685 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2687 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2688 Adjust function implementation and documentation accordingly.
2689 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2690 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2691 Update call to ada_value_ptr_subscript.
2693 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2695 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2696 instead of VAL's type.
2698 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2700 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2702 2014-09-09 Doug Evans <xdje42@gmail.com>
2705 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2706 last parameter to pkg-config, not first.
2707 * configure.ac: Pass --with-guile provided pkg-config path to
2708 GDB_GUILE_PROGRAM_NAMES.
2709 * configure: Regenerate.
2711 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2713 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2716 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2718 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2719 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2720 the list of sections determining GDB_OSABI_IRIX.
2722 2014-09-09 James Hogan <james.hogan@imgtec.com>
2724 * MAINTAINERS (Write After Approval): Add "James Hogan".
2726 2014-09-09 James Hogan <james.hogan@imgtec.com>
2728 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2730 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2732 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2734 2014-09-08 Doug Evans <xdje42@gmail.com>
2737 * guile.c: #include <signal.h>.
2738 (_initialize_guile): Block SIGCHLD while initializing Guile.
2740 Replaces the following, which is reverted.
2742 2014-07-26 Doug Evans <xdje42@gmail.com>
2745 * configure.ac: Add check for header gc/gc.h.
2746 Add check for function setenv.
2747 * configure: Regenerate.
2748 * config.in: Regenerate.
2749 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2751 2014-09-08 Doug Evans <xdje42@gmail.com>
2753 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2754 with named constant. Fix style of pointer comparison.
2755 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2757 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2760 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2761 decide whether we display the command on "show user".
2762 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2763 printing command name.
2764 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2765 * cli/cli-decode.c (cli_user_command_p): Create helper function
2766 to verify whether cmd_list_element is a user-defined command.
2768 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2771 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2772 Fix goto out of TRY_CATCH.
2774 2014-09-06 Doug Evans <xdje42@gmail.com>
2775 Tom Tromey <tromey@redhat.com>
2778 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2779 $_any_caller_matches.
2780 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2781 * python/lib/gdb/function/caller_is.py: New file.
2783 2014-09-06 Doug Evans <xdje42@gmail.com>
2785 * infcmd.c (program_info): Fix typo.
2787 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2790 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2791 'number'. New variable 'has_digit'. Rewrite code to deal with
2792 subexpressions on SDT probes.
2794 2014-09-04 Pedro Alves <palves@redhat.com>
2796 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2797 the input is only one character long.
2799 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2802 * f-valprint.c (f_val_print): Specify the correct print option to
2803 use when printing integer values.
2805 2014-09-04 Gary Benson <gbenson@redhat.com>
2807 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2808 Remove code to cope with LWPs wrapped as PIDs.
2809 Add assertions to ensure no wrapped LWPs are passed.
2811 2014-09-04 Pedro Alves <palves@redhat.com>
2813 * value.c (value_ranges_copy_adjusted): New function, factored out
2815 (value_contents_copy_raw): ... here.
2816 (unpack_value_bits_as_long_1): Rename back to ...
2817 (unpack_bits_as_long): ... this. Remove 'original_value' and
2818 'result' parameters. Change return type to LONGEST.
2819 (unpack_value_bits_as_long): Delete.
2820 (unpack_value_field_as_long_1): Delete.
2821 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2822 (unpack_value_bitfield): New function.
2823 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2824 (value_fetch_lazy): Use unpack_value_bitfield.
2825 * value.h (unpack_value_bits_as_long): Delete declaration.
2827 2014-09-03 Sasha Smundak <asmundak@google.com>
2829 * python/py-frame.c (frapy_read_register): New function.
2831 2014-09-03 James Hogan <james.hogan@imgtec.com>
2833 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2834 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2836 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2839 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2841 (add_cmd): Set "completer_handle_brkchars" to NULL.
2842 * cli/cli-decode.h (struct cmd_list_element)
2843 <completer_handle_brkchars>: New field.
2844 * command.h (completer_ftype_void): New typedef.
2845 (set_cmd_completer_handle_brkchars): New prototype.
2846 * completer.c (set_gdb_completion_word_break_characters): New
2848 (complete_line_internal): Call "completer_handle_brkchars"
2849 callback from command.
2850 * completer.h: Include "command.h".
2851 (set_gdb_completion_word_break_characters): New prototype.
2852 * python/py-cmd.c (cmdpy_completer_helper): New function.
2853 (cmdpy_completer_handle_brkchars): New function.
2854 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2855 (cmdpy_init): Set completer_handle_brkchars to
2856 cmdpy_completer_handle_brkchars.
2858 2014-09-03 Gary Benson <gbenson@redhat.com>
2860 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2861 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2862 Loop conditions changed to equivalent form.
2863 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2864 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2865 ALL_DEBUG_ADDRESS_REGISTERS.
2867 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2869 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2872 2014-09-02 Doug Evans <dje@google.com>
2874 * typeprint.c (find_global_typedef): Fix comment.
2876 2014-09-02 Gary Benson <gbenson@redhat.com>
2878 * i386-nat.h: Renamed as...
2879 * x86-nat.h: New file. All type, function and variable name
2880 prefixes changed from "i386_" to "x86_". All references updated.
2881 * i386-nat.c: Renamed as...
2882 * x86-nat.c: New file. All type, function and variable name
2883 prefixes changed from "i386_" to "x86_". All references updated.
2884 * common/i386-xstate.h: Renamed as...
2885 * common/x86-xstate.h: New file. All type, function and variable
2886 name prefixes changed from "i386_" to "x86_". All references
2888 * nat/i386-cpuid.h: Renamed as...
2889 * nat/x86-cpuid.h: New file. All type, function and variable name
2890 prefixes changed from "i386_" to "x86_". All references updated.
2891 * nat/i386-gcc-cpuid.h: Renamed as...
2892 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2893 name prefixes changed from "i386_" to "x86_". All references
2895 * nat/i386-dregs.h: Renamed as...
2896 * nat/x86-dregs.h: New file. All type, function and variable name
2897 prefixes changed from "i386_" to "x86_". All references updated.
2898 * nat/i386-dregs.c: Renamed as...
2899 * nat/x86-dregs.c: New file. All type, function and variable name
2900 prefixes changed from "i386_" to "x86_". All references updated.
2902 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2904 * varobj.c (_initialize_varobj): Move to the end of file.
2906 2014-08-29 Gary Benson <gbenson@redhat.com>
2908 * common/common-exceptions.h: New file.
2909 * common/common-exceptions.c: Likewise.
2910 * Makefile.in (SFILES): Add common/common-exceptions.c.
2911 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2912 (COMMON_OBS): Add common-exceptions.o.
2913 (common-exceptions.o): New rule.
2914 * exceptions.h (common-exceptions.h): Include.
2915 (gdb_setjmp.h): Do not include.
2916 (return_reason): Moved to common-exceptions.h.
2917 (enum return_reason): Likewise.
2918 (RETURN_MASK): Likewise.
2919 (typedef return_mask): Likewise.
2920 (enum errors): Likewise.
2921 (struct gdb_exception): Likewise.
2922 (exceptions_state_mc_init): Likewise.
2923 (exceptions_state_mc_action_iter): Likewise.
2924 (exceptions_state_mc_action_iter_1): Likewise.
2925 (TRY_CATCH): Likewise.
2926 (throw_exception): Likewise.
2927 (throw_verror): Likewise.
2928 (throw_vquit): Likewise.
2929 (throw_error): Likewise.
2930 (throw_quit): Likewise.
2931 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2932 (enum catcher_action): Likewise.
2933 (struct catcher): Likewise.
2934 (current_catcher): Likewise.
2935 (catcher_list_size): Likewise.
2936 (exceptions_state_mc_init): Likewise.
2937 (catcher_pop): Likewise.
2938 (exceptions_state_mc): Likewise.
2939 (exceptions_state_mc_action_iter): Likewise.
2940 (exceptions_state_mc_action_iter_1): Likewise.
2941 (throw_exception): Likewise.
2942 (exception_messages): Likewise.
2943 (exception_messages_size): Likewise.
2944 (throw_it): Likewise.
2945 (throw_verror): Likewise.
2946 (throw_vquit): Likewise.
2947 (throw_error): Likewise.
2948 (throw_quit): Likewise.
2949 (prepare_to_throw_exception): New function.
2951 2014-08-29 Gary Benson <gbenson@redhat.com>
2953 * common/gdb_setjmp.h: New file.
2954 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2955 * configure.ac: Move sigsetjmp check...
2956 * common/common.m4: ...here.
2957 * configure: Regenerate.
2958 * cp-support.c (SIGJMP_BUF): Delete.
2959 (SIGSETJMP): Likewise.
2960 (SIGLONGJMP): Likewise.
2961 * exceptions.h (gdb_setjmp.h): Include.
2962 (setjmp.h): Do not include.
2963 (EXCEPTIONS_SIGJMP_BUF): Delete.
2964 (EXCEPTIONS_SIGSETJMP): Likewise.
2965 (EXCEPTIONS_SIGLONGJMP): Likewise.
2966 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2968 * exceptions.c: Likewise.
2970 2014-08-29 Gary Benson <gbenson@redhat.com>
2972 * cleanups.h: Moved to...
2973 * common/cleanups.h: New file.
2974 * cleanups.c: Moved to...
2975 * common/cleanups.c: New file. Include common-defs.h and
2976 cleanups.h. Do not include defs.h.
2977 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2978 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2979 (cleanups.o): New rule.
2981 2014-08-29 Gary Benson <gbenson@redhat.com>
2983 * common/errors.h (internal_warning): New declaration.
2984 (internal_vwarning): Likewise.
2985 * common/errors.c (internal_warning): New function.
2986 * utils.h (internal_warning): Don't declare.
2987 (internal_vwarning): Likewise.
2988 * utils.c (internal_warning): Removed.
2990 2014-08-29 Gary Benson <gbenson@redhat.com>
2992 * main.c (captured_main): Use warning during startup.
2993 Prefix startup warning messages with command name.
2995 2014-08-29 Gary Benson <gbenson@redhat.com>
2997 * main.c (captured_main): Handle usage errors with error.
2999 2014-08-29 Gary Benson <gbenson@redhat.com>
3001 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3002 exit pair with a call to error. Wrap the message with _().
3004 2014-08-29 Gary Benson <gbenson@redhat.com>
3006 * main.c (captured_main): Replace a fprintf/exit
3007 pair with a call to error. Wrap the message with _().
3009 2014-08-29 Gary Benson <gbenson@redhat.com>
3011 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3012 pairs with calls to error. Wrap the message with _().
3014 2014-08-29 Gary Benson <gbenson@redhat.com>
3016 * utils.c (vwarning): Protect calls to target_terminal_ours
3019 2014-08-29 Gary Benson <gbenson@redhat.com>
3021 * exceptions.c (print_flush): Protect calls to
3022 target_terminal_ours and wrap_here.
3024 2014-08-29 Gary Benson <gbenson@redhat.com>
3026 * utils.h (filtered_printing_initialized): New declaration.
3027 * utils.c (abort_with_message): New function.
3028 (internal_vproblem): Use abort_with_message for first level
3029 recursive internal problems, and if gdb_stderr is not set up.
3030 Protect calls to target_terminal_ours, begin_line and query.
3032 2014-08-28 Doug Evans <dje@google.com>
3034 * symtab.c (in_prologue): Move definition to better spot.
3035 (skip_prologue_using_sal): Ditto.
3037 2014-08-28 Doug Evans <dje@google.com>
3039 * symtab.c (find_function_start_sal): Move definition to better spot.
3041 2014-08-28 Yao Qi <yao@codesourcery.com>
3043 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3044 found_stack_adjust in forward scan. Remove condition check
3045 on found_stack_adjust which is always true. Indent the code.
3047 2014-08-28 Yao Qi <yao@codesourcery.com>
3049 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3050 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3051 (dwarf_decode_lines): Remove argument
3052 want_line_info. Remove condition check on want_line_info.
3055 2014-08-27 Doug Evans <dje@google.com>
3057 * dwarf2read.c (dwarf_record_line): Fix typo.
3059 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3061 * target.h (struct target_ops::to_terminal_save_ours): Remove
3063 (target_terminal_save_ours): Remove macro.
3064 * target-delegates.c: Regenerate.
3065 * inf-child.c (inf_child_target): Don't set the nonexistent
3066 field to_terminal_save_ours.
3067 * inferior.h (child_terminal_save_ours): Remove declaration.
3068 * terminal.h (gdb_save_tty_state): New declaration.
3069 * inflow.c (child_terminal_save_ours): Rename to ...
3070 (gdb_save_tty_state): ... this.
3071 * tui/tui.c: Include terminal.h.
3072 (tui_enable): Use gdb_save_tty_state instead of
3073 target_terminal_save_ours.
3074 (tui_disable): Likewise.
3076 2014-08-25 Doug Evans <dje@google.com>
3078 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3079 Pass NULL instead of 0 for context pointer.
3081 2014-08-25 Yao Qi <yao@codesourcery.com>
3083 * dwarf2read.c: Fix grammatical error.
3085 2014-08-24 Yao Qi <yao@codesourcery.com>
3087 * dwarf2read.c (scan_partial_symbols): Update comments.
3088 Rename argument 'need_pc' with 'set_addrmap'.
3089 (add_partial_namespace): Rename argument 'need_pc' with
3091 (add_partial_module): Likewise.
3092 (add_partial_subprogram): Likewise. Update comments.
3093 (dwarf2_name): Fix typo.
3095 2014-08-22 Doug Evans <dje@google.com>
3098 * dwarf2read.c (dwarf_record_line_p): New function.
3099 (dwarf_decode_lines_1): Ignore subsequent line number entries
3100 for the same line if any entry had a non-zero discriminator.
3102 2014-08-22 Doug Evans <dje@google.com>
3104 * buildsym.h (record_line_ftype): New typedef.
3105 (record_line): Use it.
3106 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3107 (dwarf_decode_lines_1): Call them.
3109 2014-08-22 Yao Qi <yao@codesourcery.com>
3111 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3112 (ctf_end): Remove code.
3114 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3116 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3117 (linux_make_corefile_notes): call update_thread_list, protected against
3120 2014-08-21 Pedro Alves <palves@redhat.com>
3122 * infcmd.c (attach_command): Remove comment.
3124 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3126 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3127 unsigned LONGEST to ULONGEST.
3129 2014-08-20 Pedro Alves <palves@redhat.com>
3131 * Makefile.in (check-read1): New rule.
3133 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3135 * value.c (value_from_contents_and_address): Strip resolved_type's
3136 typedef layers before checking its TYPE_DATA_LOCATION.
3138 2014-08-20 Pedro Alves <palves@redhat.com>
3140 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3142 2014-08-20 Yao Qi <yao@codesourcery.com>
3144 * amd64-tdep.c (amd64_classify): Add a blank line after the
3145 example. Move "*/" to a new line.
3146 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3147 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3148 * dwarf2read.c (psymtab_include_file_name): Likewise.
3150 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3151 Pedro Alves <palves@redhat.com>
3155 * ada-lang.c (coerce_unspec_val_to_type): Use
3156 value_contents_copy_raw.
3157 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3158 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3159 * cp-valprint.c (cp_print_value_fields): Let the common printing
3160 code handle optimized out values.
3161 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3162 * d-valprint.c (dynamic_array_type): Use
3163 value_bits_any_optimized_out.
3164 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3165 check_any_valid fields.
3166 (check_pieced_value_bits): Delete and inline ...
3167 (check_pieced_synthetic_pointer): ... here.
3168 (check_pieced_value_validity): Delete.
3169 (check_pieced_value_invalid): Delete.
3170 (pieced_value_funcs): Remove check_validity and check_any_valid
3172 (read_pieced_value): Use mark_value_bits_optimized_out.
3173 (write_pieced_value): Switch to use
3174 mark_value_bytes_optimized_out.
3175 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3176 of assuming the whole value is optimized out.
3177 * findvar.c (read_frame_register_value): Remove special handling
3178 of optimized out registers.
3179 (value_from_register): Use mark_value_bytes_optimized_out.
3180 * frame-unwind.c (frame_unwind_got_optimized): Use
3181 mark_value_bytes_optimized_out.
3182 * jv-valprint.c (java_value_print): Adjust.
3183 (java_print_value_fields): Let the common printing code handle
3184 optimized out values.
3185 * mips-tdep.c (mips_print_register): Remove special handling of
3186 optimized out registers.
3187 * opencl-lang.c (lval_func_check_validity): Delete.
3188 (lval_func_check_any_valid): Delete.
3189 (opencl_value_funcs): Remove check_validity and check_any_valid
3191 * p-valprint.c (pascal_object_print_value_fields): Let the common
3192 printing code handle optimized out values.
3193 * stack.c (read_frame_arg): Remove special handling of optimized
3194 out values. Fetch both VAL and ENTRYVAL before comparing
3195 contents. Adjust to value_available_contents_eq rename.
3196 * valprint.c (valprint_check_validity)
3197 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3198 (val_print_array_elements): Adjust.
3199 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3200 (value_bits_any_optimized_out): New function.
3201 (value_entirely_covered_by_range_vector): New function, factored
3202 out from value_entirely_unavailable.
3203 (value_entirely_unavailable): Reimplement.
3204 (value_entirely_optimized_out): New function.
3205 (insert_into_bit_range_vector): New function, factored out from
3206 mark_value_bits_unavailable.
3207 (mark_value_bits_unavailable): Reimplement.
3208 (struct ranges_and_idx): New struct.
3209 (find_first_range_overlap_and_match): New function, factored out
3210 from value_available_contents_bits_eq.
3211 (value_available_contents_bits_eq): Rename to ...
3212 (value_contents_bits_eq): ... this. Check both unavailable
3213 contents and optimized out contents.
3214 (value_available_contents_eq): Rename to ...
3215 (value_contents_eq): ... this.
3216 (allocate_value_lazy): Remove reference to the old optimized_out
3218 (allocate_optimized_out_value): Use
3219 mark_value_bytes_optimized_out.
3220 (require_not_optimized_out): Adjust to check whether the
3221 optimized_out vec is empty.
3222 (ranges_copy_adjusted): New function, factored out from
3223 value_contents_copy_raw.
3224 (value_contents_copy_raw): Also copy the optimized out ranges.
3225 Assert the destination ranges aren't optimized out.
3226 (value_contents_copy): Update comment, remove call to
3227 require_not_optimized_out.
3228 (value_contents_equal): Adjust to check whether the optimized_out
3230 (set_value_optimized_out, value_optimized_out_const): Delete.
3231 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3233 (value_entirely_optimized_out, value_bits_valid): Delete.
3234 (value_copy): Take a VEC copy of the 'optimized_out' field.
3235 (value_primitive_field): Remove special handling of optimized out.
3236 (value_fetch_lazy): Assert that lazy values have no unavailable
3237 regions. Use value_bits_any_optimized_out. Remove some special
3238 handling for optimized out values.
3239 * value.h: Add intro comment about <optimized out> and
3241 (struct lval_funcs): Remove check_validity and check_any_valid
3243 (set_value_optimized_out, value_optimized_out_const): Remove.
3244 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3246 (value_bits_any_optimized_out): New declaration.
3247 (value_bits_valid): Delete declaration.
3248 (value_available_contents_eq): Rename to ...
3249 (value_contents_eq): ... this, and extend comments.
3251 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3253 Fix -fsanitize=address on unreadable inferior strings.
3254 * valprint.c (val_print_string): Fix access before BUFFER.
3256 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3258 * target.c (target_struct_size): Remove.
3259 (target_struct_allocsize): Remove.
3260 (DEFAULT_ALLOCSIZE): Remove.
3261 (target_ops_p): New typedef.
3262 (DEF_VEC_P (target_ops_p)): New vector type.
3263 (target_structs): Change type to VEC (target_ops_p).
3264 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3265 (find_default_run_target): Rewrite for loop following changes to
3268 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3270 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3271 Adjust code accordingly. Adjust function description comment.
3273 2014-08-19 Yao Qi <yao@codesourcery.com>
3275 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3278 2014-08-19 Alan Modra <amodra@gmail.com>
3280 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3281 * config.in: Regenerate.
3282 * configure: Regenerate.
3284 2014-08-19 Tom Tromey <tromey@redhat.com>
3285 Gary Benson <gbenson@redhat.com>
3287 * common/common-debug.h: New file.
3288 * common/common-debug.c: Likewise.
3289 * debug.c: Likewise.
3290 * Makefile.in (SFILES): Add common/common-debug.c.
3291 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3292 (COMMON_OBS): Add common-debug.o and debug.o.
3293 (common-debug.o): New rule.
3294 * common/common-defs.h: Include common-debug.h.
3295 * common/agent.c (debug_agent_printf): New function.
3296 (DEBUG_AGENT): Redefine.
3297 * nat/i386-dregs.c (debug_printf): Undefine.
3299 2014-08-19 Gary Benson <gbenson@redhat.com>
3301 * common/common-defs.h: Include print-utils.h.
3302 * utils.h: Do not include print-utils.h.
3304 2014-08-19 Tom Tromey <tromey@redhat.com>
3305 Gary Benson <gbenson@redhat.com>
3307 * common/common-types.h: New file.
3308 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3309 * common/common-defs.h: Include common-types.h.
3310 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3313 2014-08-19 Tom Tromey <tromey@redhat.com>
3314 Gary Benson <gbenson@redhat.com>
3316 * common/errors.h: New file.
3317 * common/errors.c: Likewise.
3318 * Makefile.in (SFILES): Add common/errors.c.
3319 (HFILES_NO_SRCDIR): Add common/errors.h.
3320 (COMMON_OBS): Add errors.o.
3321 (errors.o): New rule.
3322 * common/common-defs.h: Include errors.h.
3323 * utils.h (perror_with_name, error, verror, warning, vwarning):
3325 * common/common-utils.h: (malloc_failure, internal_error):
3328 2014-08-19 Gary Benson <gbenson@redhat.com>
3330 * utils.c (internal_vproblem): Always print the message.
3332 2014-08-18 Doug Evans <dje@google.com>
3334 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3336 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3338 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3339 Return 0 if TYPE is dynamic.
3340 (print_range): Add handling of dynamic ranges.
3342 2014-08-18 Keven Boell <keven.boell@intel.com>
3343 Joel Brobecker <brobecker@adacore.com>
3345 * gdbtypes.h (struct main_type): Add field "data_location".
3346 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3347 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3348 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3349 a dynamic data location.
3350 (resolve_dynamic_type): Add DW_AT_data_location handling.
3351 (copy_recursive, copy_type): Copy the data_location information
3353 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3354 * value.c (value_from_contents_and_address): Add
3355 DW_AT_data_location handling.
3357 2014-08-18 Keven Boell <keven.boell@intel.com>
3358 Joel Brobecker <brobecker@adacore.com>
3360 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3361 field "get_object_address".
3362 * dwarf2expr.c (execute_stack_op): Add handling for
3363 DW_OP_push_object_address.
3364 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3365 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3366 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3367 (dwarf_expr_get_obj_addr): New function.
3368 (dwarf_expr_ctx_funcs): Add get_object_address field.
3369 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3370 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3371 (dwarf2_evaluate_property): Add parameter "address". Use it.
3372 (needs_get_obj_addr): New function.
3373 (needs_frame_ctx_funcs): Add get_object_address field.
3374 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3375 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3376 (resolve_dynamic_array): Likewise.
3378 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3380 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3381 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3382 fixed value for records and unions for which some GNAT encodings
3385 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3387 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3388 rewrite to avoid "else if" and "else" constructs. Should be
3389 a no-op in practice.
3391 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3393 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3396 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3399 * eval.c: Update all calls to find_overload_match.
3400 * valarith.c: Likewise.
3401 (value_user_defined_cpp_op, value_user_defined_op): New
3402 argument NOSIDE. Update all callers.
3403 * valops.c (find_overload_match): New argument NOSIDE.
3404 * value.h (find_overload_match): Update signature.
3406 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3408 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3409 'items' methods instead of 'iteritems' method on dictionaries.
3411 2014-08-15 Doug Evans <dje@google.com>
3413 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3416 2014-08-15 Doug Evans <dje@google.com>
3418 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3420 2014-08-15 Doug Evans <dje@google.com>
3422 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3424 2014-08-15 Doug Evans <dje@google.com>
3426 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3429 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3431 * dcache.h: Include target.h, to avoid compile time warnings.
3433 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3435 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3436 frame_info" partial declaration.
3437 * gdbarch.h: Regenerate.
3439 2014-08-15 Yao Qi <yao@codesourcery.com>
3441 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3442 Add parameter 'decode_for_pst_p'. Callers update.
3444 2014-08-13 Yao Qi <yao@codesourcery.com>
3447 * configure.ac: Use local variable 'pos'.
3448 * configure: Regenerated.
3450 2014-08-11 Doug Evans <dje@google.com>
3452 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3453 message, it is redundant with "Reading symbols from ..." message.
3455 2014-08-10 Doug Evans <xdje42@gmail.com>
3457 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3459 2014-08-09 Yao Qi <yao@codesourcery.com>
3462 * remote.c (remote_xfer_partial): Remove dead code.
3464 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3466 * ia64-linux-tdep.c: Include "regset.h".
3467 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3468 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3469 (ia64_linux_supply_fpregset): New function.
3470 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3471 (ia64_linux_regset_from_core_section): New function.
3472 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3475 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3477 * m68klinux-tdep.c: Include "regset.h".
3478 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3479 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3480 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3481 (m68k_linux_regset_from_core_section): New function.
3482 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3485 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3487 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3488 function. Move logic to...
3489 (tilegx_linux_regmap): ... this new register map.
3490 (tilegx_linux_regset): Refer to register map, replace supply
3491 method by regcache_supply_regset, and add collect method.
3492 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3493 TILEGX_FIRST_EASY_REGNUM.
3495 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3497 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3498 that calls regcache_supply_regset and handles the EPC register
3499 separately. Move main logic to...
3500 (score7_linux_gregmap): ... this new register map.
3501 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3502 (score7_linux_gregset): Refer to register map. Add collect method.
3503 (score7_linux_regset_from_core_section): Replace
3504 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3505 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3506 (struct regset): Delete unused forward declaraction.
3507 (struct pt_regs): Delete structure definition.
3508 (elf_gregset_t): Delete typedef.
3510 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3512 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3513 (nios2_core_regset): Add collect method.
3515 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3517 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3518 platform-independent and don't write to read-only input buffer.
3519 (m32r_linux_collect_gregset): New function.
3520 (m32r_linux_gregset): Add collect method.
3522 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3524 * hppa-linux-tdep.c (greg_map): Rename to...
3525 (hppa_linux_gregmap): ... this. Also convert to
3526 regcache_map_entry format.
3527 (hppa_linux_supply_regset): Delete function.
3528 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3529 (hppa_linux_fpregmap): ... this new register map.
3530 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3531 register map, replace supply method by regcache_supply_regset, and
3532 add collect method regcache_collect_regset.
3534 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3536 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3537 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3538 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3539 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3540 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3541 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3542 (frv_linux_supply_gregset): Replace main logic by call to
3543 regcache_supply_regset, but keep clearing gr32-gr63.
3544 (frv_linux_supply_fpregset): Delete function.
3545 (frv_linux_gregset): Refer to appropriate register map and add
3546 regcache_collect_regset as the collect method.
3547 (frv_linux_fpregset): Likewise. Also exchange the supply method
3548 by regcache_supply_regset.
3550 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3552 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3553 by call to alpha_supply_int_regs.
3554 (alpha_linux_collect_gregset): New function.
3555 (alpha_linux_supply_fpregset): Replace logic by call to
3556 alpha_supply_fp_regs.
3557 (alpha_linux_collect_fpregset): New function.
3558 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3560 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3562 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3563 by call to regcache_collect_regset.
3564 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3565 instead of aarch64_linux_supply_gregset/_fpregset.
3566 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3567 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3568 header file instead.
3569 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3570 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3571 functions. Move logic to ...
3572 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3574 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3575 refer to new register maps, replace *_regset_from_core by
3576 regcache_supply_regset, and also use regcache_collect_regset.
3577 * aarch64-linux-tdep.h: Include "regset.h".
3578 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3580 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3581 macros, moved from C source file.
3582 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3583 variable declarations.
3585 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3587 * s390-linux-nat.c: Include "regset.h".
3588 (regmap_gregset): Delete macro.
3589 (s390_64_regmap_gregset): New register map for
3590 regcache_supply/_collect_regset.
3591 (s390_64_gregset): New regset.
3592 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3593 (regmap_fpregset): Delete macro.
3594 (s390_native_supply, s390_native_collect): Delete functions.
3595 (supply_gregset, fill_gregset): Replace s390-specific regmap
3596 handling by a call to regcache_supply/_collect_regset.
3597 (supply_fpregset, fill_fpregset): Call regcache_supply/
3598 _collect_regset instead of s390_native_supply/_collect.
3599 (fetch_regset, store_regset): Likewise. Also change the last
3600 parameter to a regset instead of a regmap.
3601 (s390_linux_fetch_inferior_registers)
3602 (390_linux_store_inferior_registers): Adjust last parameter in
3603 calls to fetch_regset and store_regset.
3604 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3605 (s390_gregmap): ... this. Also make static const and convert to
3606 regcache_map_entry format.
3607 (s390x_regmap_gregset): Delete.
3608 (s390_regmap_fpregset): Rename to...
3609 (s390_fpregmap): ... this. Make static const and convert to
3610 regcache_map_entry format.
3611 (s390_regmap_upper, s390_regmap_last_break)
3612 (s390x_regmap_last_break, s390_regmap_system_call)
3613 (s390_regmap_tdb): Likewise.
3614 (s390_supply_regset, s390_collect_regset): Remove functions.
3615 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3617 (s390_gregset, s390_fpregset, s390_upper_regset)
3618 (s390_last_break_regset, s390x_last_break_regset)
3619 (s390_system_call_regset, s390_tdb_regset): Make global and
3620 replace s390_supply/_collect_regset by regcache_supply/
3622 (s390x_gregset): Delete.
3623 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3624 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3625 (s390_regmap_fpregset, s390_regmap_last_break)
3626 (s390x_regmap_last_break, s390_regmap_system_call)
3627 (s390_regmap_tdb): Delete global variable declarations.
3628 (s390_gregset, s390_fpregset, s390_last_break_regset)
3629 (s390x_last_break_regset, s390_system_call_regset)
3630 (s390_tdb_regset): New global variable declarations.
3632 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3634 * regcache.c: Include "regset.h".
3635 (regcache_transfer_regset): New local function.
3636 (regcache_supply_regset, regcache_collect_regset): New functions.
3637 * regcache.h (struct regcache_map_entry): New structure.
3638 (REGCACHE_MAP_SKIP): New enum value.
3639 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3641 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3643 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3644 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3645 (ppc_linux_collect_gregset ): Likewise.
3646 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3647 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3648 (ppc_collect_vrregset): Likewise.
3649 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3652 2014-08-07 Yao Qi <yao@codesourcery.com>
3654 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3655 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3656 * remote.c (remote_read_bytes): Likewise.
3658 2014-08-07 Yao Qi <yao@codesourcery.com>
3660 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3662 2014-08-07 Yao Qi <yao@codesourcery.com>
3665 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3666 TARGET_XFER_OK instead of 0.
3668 2014-08-07 Gary Benson <gbenson@redhat.com>
3670 * common/common-defs.h: Include errno.h.
3671 * defs.h: Do not include errno.h.
3672 * ada-typeprint.c: Likewise.
3673 * c-typeprint.c: Likewise.
3674 * core-regset.c: Likewise.
3675 * corefile.c: Likewise.
3676 * corelow.c: Likewise.
3677 * event-loop.c: Likewise.
3678 * f-typeprint.c: Likewise.
3679 * gnu-nat.c: Likewise.
3680 * go32-nat.c: Likewise.
3681 * i386gnu-nat.c: Likewise.
3682 * m2-typeprint.c: Likewise.
3683 * nat/linux-btrace.c: Likewise.
3684 * p-typeprint.c: Likewise.
3685 * procfs.c: Likewise.
3686 * remote-sim.c: Likewise.
3687 * rs6000-nat.c: Likewise.
3688 * target.c: Likewise.
3689 * typeprint.c: Likewise.
3690 * ui-file.c: Likewise.
3691 * valops.c: Likewise.
3692 * valprint.c: Likewise.
3694 2014-08-07 Gary Benson <gbenson@redhat.com>
3696 * common/common-defs.h: Include string.h.
3697 * aarch64-tdep.c: Do not include string.h.
3698 * ada-exp.y: Likewise.
3699 * ada-lang.c: Likewise.
3700 * ada-lex.l: Likewise.
3701 * ada-typeprint.c: Likewise.
3702 * ada-valprint.c: Likewise.
3703 * aix-thread.c: Likewise.
3704 * alpha-linux-tdep.c: Likewise.
3705 * alpha-mdebug-tdep.c: Likewise.
3706 * alpha-nat.c: Likewise.
3707 * alpha-osf1-tdep.c: Likewise.
3708 * alpha-tdep.c: Likewise.
3709 * alphanbsd-tdep.c: Likewise.
3710 * amd64-dicos-tdep.c: Likewise.
3711 * amd64-linux-tdep.c: Likewise.
3712 * amd64-nat.c: Likewise.
3713 * amd64-sol2-tdep.c: Likewise.
3714 * amd64fbsd-tdep.c: Likewise.
3715 * amd64obsd-tdep.c: Likewise.
3716 * arch-utils.c: Likewise.
3717 * arm-linux-nat.c: Likewise.
3718 * arm-linux-tdep.c: Likewise.
3719 * arm-tdep.c: Likewise.
3720 * arm-wince-tdep.c: Likewise.
3721 * armbsd-tdep.c: Likewise.
3722 * armnbsd-nat.c: Likewise.
3723 * armnbsd-tdep.c: Likewise.
3724 * armobsd-tdep.c: Likewise.
3725 * avr-tdep.c: Likewise.
3726 * ax-gdb.c: Likewise.
3727 * ax-general.c: Likewise.
3728 * bcache.c: Likewise.
3729 * bfin-tdep.c: Likewise.
3730 * breakpoint.c: Likewise.
3731 * build-id.c: Likewise.
3732 * buildsym.c: Likewise.
3733 * c-exp.y: Likewise.
3734 * c-lang.c: Likewise.
3735 * c-typeprint.c: Likewise.
3736 * c-valprint.c: Likewise.
3737 * charset.c: Likewise.
3738 * cli-out.c: Likewise.
3739 * cli/cli-cmds.c: Likewise.
3740 * cli/cli-decode.c: Likewise.
3741 * cli/cli-dump.c: Likewise.
3742 * cli/cli-interp.c: Likewise.
3743 * cli/cli-logging.c: Likewise.
3744 * cli/cli-script.c: Likewise.
3745 * cli/cli-setshow.c: Likewise.
3746 * cli/cli-utils.c: Likewise.
3747 * coffread.c: Likewise.
3748 * common/agent.c: Likewise.
3749 * common/buffer.c: Likewise.
3750 * common/buffer.h: Likewise.
3751 * common/common-utils.c: Likewise.
3752 * common/filestuff.c: Likewise.
3753 * common/filestuff.c: Likewise.
3754 * common/format.c: Likewise.
3755 * common/print-utils.c: Likewise.
3756 * common/rsp-low.c: Likewise.
3757 * common/signals.c: Likewise.
3758 * common/vec.h: Likewise.
3759 * common/xml-utils.c: Likewise.
3760 * core-regset.c: Likewise.
3761 * corefile.c: Likewise.
3762 * corelow.c: Likewise.
3763 * cp-abi.c: Likewise.
3764 * cp-name-parser.y: Likewise.
3765 * cp-support.c: Likewise.
3766 * cp-valprint.c: Likewise.
3767 * cris-tdep.c: Likewise.
3768 * d-exp.y: Likewise.
3769 * darwin-nat.c: Likewise.
3770 * dbxread.c: Likewise.
3771 * dcache.c: Likewise.
3772 * demangle.c: Likewise.
3773 * dicos-tdep.c: Likewise.
3774 * disasm.c: Likewise.
3775 * doublest.c: Likewise.
3776 * dsrec.c: Likewise.
3777 * dummy-frame.c: Likewise.
3778 * dwarf2-frame.c: Likewise.
3779 * dwarf2loc.c: Likewise.
3780 * dwarf2read.c: Likewise.
3781 * elfread.c: Likewise.
3782 * environ.c: Likewise.
3784 * event-loop.c: Likewise.
3785 * exceptions.c: Likewise.
3787 * expprint.c: Likewise.
3788 * f-exp.y: Likewise.
3789 * f-lang.c: Likewise.
3790 * f-typeprint.c: Likewise.
3791 * f-valprint.c: Likewise.
3792 * fbsd-nat.c: Likewise.
3793 * findcmd.c: Likewise.
3794 * findvar.c: Likewise.
3795 * fork-child.c: Likewise.
3796 * frame.c: Likewise.
3797 * frv-linux-tdep.c: Likewise.
3798 * frv-tdep.c: Likewise.
3800 * gdb_bfd.c: Likewise.
3801 * gdbarch.c: Likewise.
3802 * gdbarch.sh: Likewise.
3803 * gdbtypes.c: Likewise.
3804 * gnu-nat.c: Likewise.
3805 * gnu-v2-abi.c: Likewise.
3806 * gnu-v3-abi.c: Likewise.
3807 * go-exp.y: Likewise.
3808 * go-lang.c: Likewise.
3809 * go32-nat.c: Likewise.
3810 * guile/guile.c: Likewise.
3811 * guile/scm-auto-load.c: Likewise.
3812 * hppa-hpux-tdep.c: Likewise.
3813 * hppa-linux-nat.c: Likewise.
3814 * hppanbsd-tdep.c: Likewise.
3815 * hppaobsd-tdep.c: Likewise.
3816 * i386-cygwin-tdep.c: Likewise.
3817 * i386-dicos-tdep.c: Likewise.
3818 * i386-linux-tdep.c: Likewise.
3819 * i386-nto-tdep.c: Likewise.
3820 * i386-sol2-tdep.c: Likewise.
3821 * i386-tdep.c: Likewise.
3822 * i386bsd-tdep.c: Likewise.
3823 * i386gnu-nat.c: Likewise.
3824 * i386nbsd-tdep.c: Likewise.
3825 * i386obsd-tdep.c: Likewise.
3826 * i387-tdep.c: Likewise.
3827 * ia64-libunwind-tdep.c: Likewise.
3828 * ia64-linux-nat.c: Likewise.
3829 * inf-child.c: Likewise.
3830 * inf-ptrace.c: Likewise.
3831 * inf-ttrace.c: Likewise.
3832 * infcall.c: Likewise.
3833 * infcmd.c: Likewise.
3834 * inflow.c: Likewise.
3835 * infrun.c: Likewise.
3836 * interps.c: Likewise.
3837 * iq2000-tdep.c: Likewise.
3838 * irix5-nat.c: Likewise.
3839 * jv-exp.y: Likewise.
3840 * jv-lang.c: Likewise.
3841 * jv-typeprint.c: Likewise.
3842 * jv-valprint.c: Likewise.
3843 * language.c: Likewise.
3844 * linux-fork.c: Likewise.
3845 * linux-nat.c: Likewise.
3846 * lm32-tdep.c: Likewise.
3847 * m2-exp.y: Likewise.
3848 * m2-typeprint.c: Likewise.
3849 * m32c-tdep.c: Likewise.
3850 * m32r-linux-nat.c: Likewise.
3851 * m32r-linux-tdep.c: Likewise.
3852 * m32r-rom.c: Likewise.
3853 * m32r-tdep.c: Likewise.
3854 * m68hc11-tdep.c: Likewise.
3855 * m68k-tdep.c: Likewise.
3856 * m68kbsd-tdep.c: Likewise.
3857 * m68klinux-nat.c: Likewise.
3858 * m68klinux-tdep.c: Likewise.
3859 * m88k-tdep.c: Likewise.
3860 * machoread.c: Likewise.
3861 * macrocmd.c: Likewise.
3863 * mdebugread.c: Likewise.
3864 * mem-break.c: Likewise.
3865 * memattr.c: Likewise.
3866 * memory-map.c: Likewise.
3867 * mep-tdep.c: Likewise.
3868 * mi/mi-cmd-break.c: Likewise.
3869 * mi/mi-cmd-disas.c: Likewise.
3870 * mi/mi-cmd-env.c: Likewise.
3871 * mi/mi-cmd-stack.c: Likewise.
3872 * mi/mi-cmd-var.c: Likewise.
3873 * mi/mi-cmds.c: Likewise.
3874 * mi/mi-console.c: Likewise.
3875 * mi/mi-getopt.c: Likewise.
3876 * mi/mi-interp.c: Likewise.
3877 * mi/mi-main.c: Likewise.
3878 * mi/mi-parse.c: Likewise.
3879 * microblaze-rom.c: Likewise.
3880 * microblaze-tdep.c: Likewise.
3881 * mingw-hdep.c: Likewise.
3882 * minidebug.c: Likewise.
3883 * minsyms.c: Likewise.
3884 * mips-irix-tdep.c: Likewise.
3885 * mips-linux-tdep.c: Likewise.
3886 * mips-tdep.c: Likewise.
3887 * mips64obsd-tdep.c: Likewise.
3888 * mipsnbsd-tdep.c: Likewise.
3889 * mipsread.c: Likewise.
3890 * mn10300-linux-tdep.c: Likewise.
3891 * mn10300-tdep.c: Likewise.
3892 * monitor.c: Likewise.
3893 * moxie-tdep.c: Likewise.
3894 * mt-tdep.c: Likewise.
3895 * nat/linux-btrace.c: Likewise.
3896 * nat/linux-osdata.c: Likewise.
3897 * nat/linux-procfs.c: Likewise.
3898 * nat/linux-ptrace.c: Likewise.
3899 * nat/linux-waitpid.c: Likewise.
3900 * nbsd-tdep.c: Likewise.
3901 * nios2-linux-tdep.c: Likewise.
3902 * nto-procfs.c: Likewise.
3903 * nto-tdep.c: Likewise.
3904 * objc-lang.c: Likewise.
3905 * objfiles.c: Likewise.
3906 * opencl-lang.c: Likewise.
3907 * osabi.c: Likewise.
3908 * osdata.c: Likewise.
3909 * p-exp.y: Likewise.
3910 * p-lang.c: Likewise.
3911 * p-typeprint.c: Likewise.
3912 * parse.c: Likewise.
3913 * posix-hdep.c: Likewise.
3914 * ppc-linux-nat.c: Likewise.
3915 * ppc-sysv-tdep.c: Likewise.
3916 * ppcfbsd-tdep.c: Likewise.
3917 * ppcnbsd-tdep.c: Likewise.
3918 * ppcobsd-tdep.c: Likewise.
3919 * printcmd.c: Likewise.
3920 * procfs.c: Likewise.
3921 * prologue-value.c: Likewise.
3922 * python/py-auto-load.c: Likewise.
3923 * python/py-gdb-readline.c: Likewise.
3924 * ravenscar-thread.c: Likewise.
3925 * regcache.c: Likewise.
3926 * registry.c: Likewise.
3927 * remote-fileio.c: Likewise.
3928 * remote-m32r-sdi.c: Likewise.
3929 * remote-mips.c: Likewise.
3930 * remote-notif.c: Likewise.
3931 * remote-sim.c: Likewise.
3932 * remote.c: Likewise.
3933 * reverse.c: Likewise.
3934 * rs6000-aix-tdep.c: Likewise.
3935 * ser-base.c: Likewise.
3936 * ser-go32.c: Likewise.
3937 * ser-mingw.c: Likewise.
3938 * ser-pipe.c: Likewise.
3939 * ser-tcp.c: Likewise.
3940 * ser-unix.c: Likewise.
3941 * serial.c: Likewise.
3942 * sh-tdep.c: Likewise.
3943 * sh64-tdep.c: Likewise.
3944 * shnbsd-tdep.c: Likewise.
3946 * sol-thread.c: Likewise.
3947 * solib-dsbt.c: Likewise.
3948 * solib-frv.c: Likewise.
3949 * solib-osf.c: Likewise.
3950 * solib-som.c: Likewise.
3951 * solib-spu.c: Likewise.
3952 * solib-target.c: Likewise.
3953 * solib.c: Likewise.
3954 * somread.c: Likewise.
3955 * source.c: Likewise.
3956 * sparc-nat.c: Likewise.
3957 * sparc-sol2-tdep.c: Likewise.
3958 * sparc-tdep.c: Likewise.
3959 * sparc64-tdep.c: Likewise.
3960 * sparc64fbsd-tdep.c: Likewise.
3961 * sparc64nbsd-tdep.c: Likewise.
3962 * sparcnbsd-tdep.c: Likewise.
3963 * spu-linux-nat.c: Likewise.
3964 * spu-multiarch.c: Likewise.
3965 * spu-tdep.c: Likewise.
3966 * stabsread.c: Likewise.
3967 * stack.c: Likewise.
3968 * std-regs.c: Likewise.
3969 * symfile.c: Likewise.
3970 * symmisc.c: Likewise.
3971 * symtab.c: Likewise.
3972 * target.c: Likewise.
3973 * thread.c: Likewise.
3974 * tilegx-linux-nat.c: Likewise.
3975 * tilegx-tdep.c: Likewise.
3977 * tracepoint.c: Likewise.
3978 * tui/tui-command.c: Likewise.
3979 * tui/tui-data.c: Likewise.
3980 * tui/tui-disasm.c: Likewise.
3981 * tui/tui-file.c: Likewise.
3982 * tui/tui-layout.c: Likewise.
3983 * tui/tui-out.c: Likewise.
3984 * tui/tui-regs.c: Likewise.
3985 * tui/tui-source.c: Likewise.
3986 * tui/tui-stack.c: Likewise.
3987 * tui/tui-win.c: Likewise.
3988 * tui/tui-windata.c: Likewise.
3989 * tui/tui-winsource.c: Likewise.
3990 * typeprint.c: Likewise.
3991 * ui-file.c: Likewise.
3992 * ui-out.c: Likewise.
3993 * user-regs.c: Likewise.
3994 * utils.c: Likewise.
3995 * v850-tdep.c: Likewise.
3996 * valarith.c: Likewise.
3997 * valops.c: Likewise.
3998 * valprint.c: Likewise.
3999 * value.c: Likewise.
4000 * varobj.c: Likewise.
4001 * vax-tdep.c: Likewise.
4002 * vaxnbsd-tdep.c: Likewise.
4003 * vaxobsd-tdep.c: Likewise.
4004 * windows-nat.c: Likewise.
4005 * xcoffread.c: Likewise.
4006 * xml-support.c: Likewise.
4007 * xstormy16-tdep.c: Likewise.
4008 * xtensa-linux-nat.c: Likewise.
4010 2014-08-07 Gary Benson <gbenson@redhat.com>
4012 * common/common-defs.h: Include gdb_assert.h.
4013 * aarch64-tdep.c: Do not include gdb_assert.h.
4014 * addrmap.c: Likewise.
4015 * aix-thread.c: Likewise.
4016 * alpha-linux-tdep.c: Likewise.
4017 * alpha-mdebug-tdep.c: Likewise.
4018 * alphanbsd-tdep.c: Likewise.
4019 * amd64-nat.c: Likewise.
4020 * amd64-tdep.c: Likewise.
4021 * amd64bsd-nat.c: Likewise.
4022 * amd64fbsd-nat.c: Likewise.
4023 * amd64fbsd-tdep.c: Likewise.
4024 * amd64nbsd-nat.c: Likewise.
4025 * amd64nbsd-tdep.c: Likewise.
4026 * amd64obsd-nat.c: Likewise.
4027 * amd64obsd-tdep.c: Likewise.
4028 * arch-utils.c: Likewise.
4029 * arm-tdep.c: Likewise.
4030 * armbsd-tdep.c: Likewise.
4032 * bcache.c: Likewise.
4033 * bfin-tdep.c: Likewise.
4034 * blockframe.c: Likewise.
4035 * breakpoint.c: Likewise.
4036 * bsd-kvm.c: Likewise.
4037 * bsd-uthread.c: Likewise.
4038 * buildsym.c: Likewise.
4039 * c-exp.y: Likewise.
4040 * c-lang.c: Likewise.
4041 * charset.c: Likewise.
4042 * cleanups.c: Likewise.
4043 * cli-out.c: Likewise.
4044 * cli/cli-decode.c: Likewise.
4045 * cli/cli-dump.c: Likewise.
4046 * cli/cli-logging.c: Likewise.
4047 * cli/cli-script.c: Likewise.
4048 * cli/cli-utils.c: Likewise.
4049 * coffread.c: Likewise.
4050 * common/common-utils.c: Likewise.
4051 * common/queue.h: Likewise.
4052 * common/signals.c: Likewise.
4053 * common/vec.h: Likewise.
4054 * complaints.c: Likewise.
4055 * completer.c: Likewise.
4056 * corelow.c: Likewise.
4057 * cp-abi.c: Likewise.
4058 * cp-name-parser.y: Likewise.
4059 * cp-namespace.c: Likewise.
4060 * cp-support.c: Likewise.
4061 * cris-tdep.c: Likewise.
4062 * dbxread.c: Likewise.
4063 * dictionary.c: Likewise.
4064 * doublest.c: Likewise.
4065 * dsrec.c: Likewise.
4066 * dummy-frame.c: Likewise.
4067 * dwarf2-frame-tailcall.c: Likewise.
4068 * dwarf2-frame.c: Likewise.
4069 * dwarf2expr.c: Likewise.
4070 * dwarf2loc.c: Likewise.
4071 * dwarf2read.c: Likewise.
4073 * event-loop.c: Likewise.
4074 * exceptions.c: Likewise.
4075 * expprint.c: Likewise.
4076 * f-valprint.c: Likewise.
4077 * fbsd-nat.c: Likewise.
4078 * findvar.c: Likewise.
4079 * frame-unwind.c: Likewise.
4080 * frame.c: Likewise.
4081 * frv-tdep.c: Likewise.
4082 * gcore.c: Likewise.
4083 * gdb-dlfcn.c: Likewise.
4084 * gdb_bfd.c: Likewise.
4085 * gdbarch.c: Likewise.
4086 * gdbarch.sh: Likewise.
4087 * gdbtypes.c: Likewise.
4088 * gnu-nat.c: Likewise.
4089 * gnu-v3-abi.c: Likewise.
4090 * go-lang.c: Likewise.
4091 * guile/scm-exception.c: Likewise.
4092 * guile/scm-gsmob.c: Likewise.
4093 * guile/scm-lazy-string.c: Likewise.
4094 * guile/scm-math.c: Likewise.
4095 * guile/scm-pretty-print.c: Likewise.
4096 * guile/scm-safe-call.c: Likewise.
4097 * guile/scm-utils.c: Likewise.
4098 * guile/scm-value.c: Likewise.
4099 * h8300-tdep.c: Likewise.
4100 * hppa-hpux-nat.c: Likewise.
4101 * hppa-tdep.c: Likewise.
4102 * hppanbsd-tdep.c: Likewise.
4103 * hppaobsd-tdep.c: Likewise.
4104 * i386-darwin-nat.c: Likewise.
4105 * i386-darwin-tdep.c: Likewise.
4106 * i386-nto-tdep.c: Likewise.
4107 * i386-tdep.c: Likewise.
4108 * i386bsd-nat.c: Likewise.
4109 * i386fbsd-tdep.c: Likewise.
4110 * i386gnu-nat.c: Likewise.
4111 * i386nbsd-tdep.c: Likewise.
4112 * i386obsd-tdep.c: Likewise.
4113 * i387-tdep.c: Likewise.
4114 * ia64-libunwind-tdep.c: Likewise.
4115 * ia64-tdep.c: Likewise.
4116 * inf-ptrace.c: Likewise.
4117 * inf-ttrace.c: Likewise.
4118 * infcall.c: Likewise.
4119 * infcmd.c: Likewise.
4120 * infrun.c: Likewise.
4121 * inline-frame.c: Likewise.
4122 * interps.c: Likewise.
4123 * jv-lang.c: Likewise.
4124 * jv-typeprint.c: Likewise.
4125 * linux-fork.c: Likewise.
4126 * linux-nat.c: Likewise.
4127 * linux-thread-db.c: Likewise.
4128 * m32c-tdep.c: Likewise.
4129 * m32r-linux-nat.c: Likewise.
4130 * m32r-tdep.c: Likewise.
4131 * m68k-tdep.c: Likewise.
4132 * m68kbsd-nat.c: Likewise.
4133 * m68kbsd-tdep.c: Likewise.
4134 * m88k-tdep.c: Likewise.
4135 * machoread.c: Likewise.
4136 * macroexp.c: Likewise.
4137 * macrotab.c: Likewise.
4138 * maint.c: Likewise.
4139 * mdebugread.c: Likewise.
4140 * memory-map.c: Likewise.
4141 * mep-tdep.c: Likewise.
4142 * mi/mi-common.c: Likewise.
4143 * microblaze-tdep.c: Likewise.
4144 * mingw-hdep.c: Likewise.
4145 * mips-linux-nat.c: Likewise.
4146 * mips-linux-tdep.c: Likewise.
4147 * mips-tdep.c: Likewise.
4148 * mips64obsd-tdep.c: Likewise.
4149 * mipsnbsd-tdep.c: Likewise.
4150 * mn10300-linux-tdep.c: Likewise.
4151 * mn10300-tdep.c: Likewise.
4152 * moxie-tdep.c: Likewise.
4153 * mt-tdep.c: Likewise.
4154 * nat/linux-btrace.c: Likewise.
4155 * nat/linux-osdata.c: Likewise.
4156 * nat/linux-ptrace.c: Likewise.
4157 * nat/mips-linux-watch.c: Likewise.
4158 * nios2-linux-tdep.c: Likewise.
4159 * nios2-tdep.c: Likewise.
4160 * objc-lang.c: Likewise.
4161 * objfiles.c: Likewise.
4162 * obsd-nat.c: Likewise.
4163 * opencl-lang.c: Likewise.
4164 * osabi.c: Likewise.
4165 * parse.c: Likewise.
4166 * ppc-linux-nat.c: Likewise.
4167 * ppc-sysv-tdep.c: Likewise.
4168 * ppcfbsd-nat.c: Likewise.
4169 * ppcfbsd-tdep.c: Likewise.
4170 * ppcnbsd-nat.c: Likewise.
4171 * ppcnbsd-tdep.c: Likewise.
4172 * ppcobsd-nat.c: Likewise.
4173 * ppcobsd-tdep.c: Likewise.
4174 * printcmd.c: Likewise.
4175 * procfs.c: Likewise.
4176 * prologue-value.c: Likewise.
4177 * psymtab.c: Likewise.
4178 * python/py-lazy-string.c: Likewise.
4179 * python/py-value.c: Likewise.
4180 * regcache.c: Likewise.
4181 * reggroups.c: Likewise.
4182 * registry.c: Likewise.
4183 * remote-sim.c: Likewise.
4184 * remote.c: Likewise.
4185 * rs6000-aix-tdep.c: Likewise.
4186 * rs6000-tdep.c: Likewise.
4187 * s390-linux-tdep.c: Likewise.
4188 * score-tdep.c: Likewise.
4189 * ser-base.c: Likewise.
4190 * ser-mingw.c: Likewise.
4191 * sh-tdep.c: Likewise.
4192 * sh64-tdep.c: Likewise.
4193 * solib-darwin.c: Likewise.
4194 * solib-spu.c: Likewise.
4195 * solib-svr4.c: Likewise.
4196 * source.c: Likewise.
4197 * sparc-nat.c: Likewise.
4198 * sparc-sol2-tdep.c: Likewise.
4199 * sparc-tdep.c: Likewise.
4200 * sparc64-sol2-tdep.c: Likewise.
4201 * sparc64-tdep.c: Likewise.
4202 * sparc64fbsd-tdep.c: Likewise.
4203 * sparc64nbsd-tdep.c: Likewise.
4204 * sparc64obsd-tdep.c: Likewise.
4205 * sparcnbsd-tdep.c: Likewise.
4206 * sparcobsd-tdep.c: Likewise.
4207 * spu-multiarch.c: Likewise.
4208 * spu-tdep.c: Likewise.
4209 * stabsread.c: Likewise.
4210 * stack.c: Likewise.
4211 * symfile.c: Likewise.
4212 * symtab.c: Likewise.
4213 * target-descriptions.c: Likewise.
4214 * target-memory.c: Likewise.
4215 * target.c: Likewise.
4216 * tic6x-linux-tdep.c: Likewise.
4217 * tic6x-tdep.c: Likewise.
4218 * tilegx-linux-nat.c: Likewise.
4219 * tilegx-tdep.c: Likewise.
4221 * tramp-frame.c: Likewise.
4222 * tui/tui-out.c: Likewise.
4223 * tui/tui-winsource.c: Likewise.
4224 * ui-out.c: Likewise.
4225 * user-regs.c: Likewise.
4226 * utils.c: Likewise.
4227 * v850-tdep.c: Likewise.
4228 * valops.c: Likewise.
4229 * value.c: Likewise.
4230 * varobj.c: Likewise.
4231 * vax-nat.c: Likewise.
4232 * xml-syscall.c: Likewise.
4233 * xml-tdesc.c: Likewise.
4234 * xstormy16-tdep.c: Likewise.
4235 * xtensa-linux-nat.c: Likewise.
4236 * xtensa-tdep.c: Likewise.
4238 2014-08-07 Gary Benson <gbenson@redhat.com>
4240 * common/common-defs.h: Include common-utils.h.
4241 * defs.h: Do not include common-utils.h.
4242 * common/gdb_assert.h: Likewise.
4243 * darwin-nat.h: Likewise.
4244 * nat/linux-btrace.c: Likewise.
4245 * target/waitstatus.h: Likewise.
4247 2014-08-07 Gary Benson <gbenson@redhat.com>
4249 * common/common-defs.h: Include ptid.h.
4250 * defs.h: Do not include ptid.h.
4251 * inferior.h: Likewise.
4252 * infrun.h: Likewise.
4253 * nat/linux-btrace.h: Likewise.
4254 * nat/linux-osdata.h: Likewise.
4255 * target/waitstatus.h: Likewise.
4257 2014-08-07 Gary Benson <gbenson@redhat.com>
4259 * common/common-defs.h: Include gdb_locale.h.
4260 * defs.h: Do not include gdb_locale.h.
4262 2014-08-07 Gary Benson <gbenson@redhat.com>
4264 * common/common-defs.h: Include gdb/signals.h.
4265 * defs.h: Do not include gdb/signals.h.
4267 2014-08-07 Gary Benson <gbenson@redhat.com>
4269 * common/common-defs.h: Include pathmax.h.
4270 * defs.h: Do not include pathmax.h.
4272 2014-08-07 Gary Benson <gbenson@redhat.com>
4274 * common/common-defs.h: Include libiberty.h.
4275 * defs.h: Do not include libiberty.h.
4276 * common/queue.h: Likewise.
4277 * cp-name-parser.y: Likewise.
4278 * mi/mi-cmd-catch.c: Likewise.
4279 * python/python.c: Likewise.
4281 2014-08-07 Gary Benson <gbenson@redhat.com>
4283 * common/common-defs.h: Include ansidecl.h.
4284 * defs.h: Do not include ansidecl.h.
4285 * common/buffer.h: Likewise.
4286 * common/common-utils.h: Likewise.
4288 2014-08-07 Gary Benson <gbenson@redhat.com>
4290 * common/common-defs.h: Include stddef.h.
4291 * defs.h: Do not include stddef.h.
4292 * common/common-utils.h: Likewise.
4293 * amd64fbsd-nat.c: Likewise.
4294 * bcache.c: Likewise.
4295 * charset.c: Likewise.
4296 * common/buffer.h: Likewise.
4297 * common/vec.h: Likewise.
4298 * i386bsd-nat.c: Likewise.
4299 * nat/linux-btrace.h: Likewise.
4300 * ppcfbsd-nat.c: Likewise.
4301 * ppcnbsd-tdep.h: Likewise.
4302 * ppcobsd-nat.c: Likewise.
4303 * ppcobsd-tdep.h: Likewise.
4304 * python/py-gdb-readline.c: Likewise.
4306 2014-08-07 Gary Benson <gbenson@redhat.com>
4308 * common/common-defs.h: Include stdarg.h.
4309 * defs.h: Do not include stdarg.h.
4310 * ada-lang.c: Likewise.
4311 * common/common-utils.h: Likewise.
4312 * guile/scm-string.c: Likewise.
4313 * guile/scm-utils.c: Likewise.
4314 * m32c-tdep.c: Likewise.
4316 2014-08-07 Gary Benson <gbenson@redhat.com>
4318 * common/common-defs.h: Include stdlib.h.
4319 * defs.h: Do not include stdlib.h.
4320 * addrmap.c: Likewise.
4321 * bcache.c: Likewise.
4322 * common/buffer.c: Likewise.
4323 * common/common-utils.c: Likewise.
4324 * cp-name-parser.y: Likewise.
4325 * go32-nat.c: Likewise.
4326 * mn10300-linux-tdep.c: Likewise.
4327 * nat/linux-osdata.c: Likewise.
4328 * tui/tui.c: Likewise.
4329 * windows-nat.c: Likewise.
4331 2014-08-07 Gary Benson <gbenson@redhat.com>
4333 * common/common-defs.h: Include stdio.h.
4334 * defs.h: Do not include stdio.h.
4335 * ada-lang.c: Likewise.
4336 * common/buffer.c: Likewise.
4337 * common/common-utils.c: Likewise.
4338 * cp-name-parser.y: Likewise.
4339 * gnu-nat.c: Likewise.
4340 * go32-nat.c: Likewise.
4341 * i386gnu-nat.c: Likewise.
4342 * proc-api.c: Likewise.
4343 * proc-events.c: Likewise.
4344 * proc-flags.c: Likewise.
4345 * proc-why.c: Likewise.
4346 * python/python-internal.h: Likewise.
4347 * target-memory.c: Likewise.
4348 * tui/tui-io.c: Likewise.
4349 * tui/tui.c: Likewise.
4351 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4353 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4354 (scan_dyntag_auxv): Same.
4356 2014-08-06 Yao Qi <yao@codesourcery.com>
4358 * amd64-linux-nat.c: Remove duplicated include
4360 * i386-linux-nat.c: Likewise.
4362 2014-08-06 Yao Qi <yao@codesourcery.com>
4364 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4365 operand" with "Special opcode" in comments.
4367 2014-08-05 Gary Benson <gbenson@redhat.com>
4369 * interps.c (initialize_interps): Remove prototype.
4370 (interpreter_initialized): Remove static global.
4371 (interp_add): Do not call initialize_interps.
4372 (initialize_interps): Remove function.
4374 2014-08-05 Gary Benson <gbenson@redhat.com>
4376 * utils.c (vwarning): Remove spurious va_end.
4378 2014-08-05 Alan Modra <amodra@gmail.com>
4380 * charset.c (convert_between_encodings): Cast result of obstack_base.
4381 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4382 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4383 (read_unwind_info): Use size_t for some locals.
4384 * jit.c (finalize_symtab): Likewise.
4385 * utils.c (hashtab_obstack_allocate): Likewise.
4386 * symmisc.c (print_objfile_statistics): Update format strings.
4388 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4390 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4391 (Changes in GDB 7.8): ... here.
4393 2014-08-04 Tom Tromey <tromey@redhat.com>
4395 * target.c (set_targetdebug): New function.
4396 (initialize_targets): Pass set_targetdebug when creating "set
4399 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4401 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4402 if detecting a variable-sized field that is not the last field.
4403 Fix struct type length computation.
4405 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4407 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4410 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4412 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4413 Remove "+ 8" offset in computation of CHAIN_VMA.
4415 2014-07-31 Doug Evans <dje@google.com>
4417 * inflow.c (child_terminal_inferior): Add comment.
4418 (child_terminal_ours_for_output): Add comment.
4419 (child_terminal_ours): Add comment.
4420 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4421 (linux_nat_terminal_ours): Add comment.
4423 2014-07-31 Gary Benson <gbenson@redhat.com>
4425 * common/btrace-common.h: Do not include defs.h or server.h.
4426 * nat/mips-linux-watch.h: Likewise.
4427 * gdb-dlfcn.h: Do not include defs.h.
4428 * tracefile.h: Likewise.
4430 2014-07-30 Roland McGrath <mcgrathr@google.com>
4432 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4434 2014-07-30 Tom Tromey <tromey@redhat.com>
4436 * bsd-kvm.c (bsd_kvm_open): Constify.
4437 * corelow.c (core_open): Constify.
4438 * ctf.c (ctf_open): Constify.
4439 * dbug-rom.c (dbug_open): Constify.
4440 * exec.c (exec_open): Constify.
4441 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4442 * microblaze-rom.c (picobug_open): Constify.
4443 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4445 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4446 * record-btrace.c (record_btrace_open): Constify.
4447 * record-full.c (record_full_core_open_1, record_full_open_1)
4448 (record_full_open): Constify.
4449 * remote-m32r-sdi.c (m32r_open): Constify.
4450 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4451 (rockhopper_open, lsi_open): Constify.
4452 * remote-sim.c (gdbsim_open): Constify.
4453 * remote.c (remote_open, extended_remote_open, remote_open_1):
4455 * target.h (struct target_ops) <to_open>: Make "arg" const.
4456 * tracefile-tfile.c (tfile_open): Constify.
4458 2014-07-30 Tom Tromey <tromey@redhat.com>
4460 * breakpoint.c (map_breakpoint_numbers): Update.
4461 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4462 (get_number_const): New function.
4463 (get_number): Rewrite using get_number_const.
4464 (init_number_or_range): Make "string" const.
4465 (number_is_in_list): Make "list" const.
4466 * cli/cli-utils.h (get_number_const): Declare.
4467 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4468 (init_number_or_range, number_is_in_list): Update.
4469 * printcmd.c (map_display_numbers): Update.
4470 * value.c (value_from_history_ref): Constify.
4471 * value.h (value_from_history_ref): Update.
4473 2014-07-30 Tom Tromey <tromey@redhat.com>
4475 * corefile.c (hook_type, call_extra_exec_file_hooks)
4476 (specify_exec_file_hook): Constify.
4477 * exec.c (exec_file_attach): Make "filename" const.
4478 * gdbcore.h (deprecated_exec_file_display_hook)
4479 (specify_exec_file_hook, exec_file_attach): Constify.
4480 * main.c (captured_main): Use catch_command_errors_const.
4482 2014-07-30 Tom Tromey <tromey@redhat.com>
4484 * target.c (open_target): New function.
4485 (add_target_with_completer, add_deprecated_target_alias): Use
4486 set_cmd_sfunc, set_cmd_context.
4487 (debug_to_open): Remove.
4488 (setup_target_debug): Update.
4490 2014-07-30 Yao Qi <yao@codesourcery.com>
4492 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4494 * parse.c (exp_iterate): Update comments.
4496 2014-07-30 Gary Benson <gbenson@redhat.com>
4498 * common/common-defs.h: New file.
4499 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4500 * defs.h: Include common-defs.h.
4501 Do not include config.h or build-gnulib/config.h.
4503 2014-07-30 Gary Benson <gbenson@redhat.com>
4505 * common/common-utils.h: Do not include config.h.
4506 * nat/linux-btrace.h: Likewise.
4508 2014-07-30 Gary Benson <gbenson@redhat.com>
4510 * btrace.c: Include defs.h.
4511 * common/ptid.c: Include defs.h or server.h as appropriate.
4512 * nat/mips-linux-watch.c: Likewise.
4514 2014-07-29 Tom Tromey <tromey@redhat.com>
4516 * target.c (target_is_pushed): Simplify.
4518 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4522 2014-07-29 Yao Qi <yao@codesourcery.com>
4525 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4527 2014-07-28 Doug Evans <xdje42@gmail.com>
4530 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4531 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4534 2014-07-28 Will Newton <will.newton@linaro.org>
4536 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4537 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4538 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4539 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4540 (THUMB2_EABI_SYSCALL): Likewise.
4541 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4543 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4544 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4546 2014-07-27 Doug Evans <xdje42@gmail.com>
4548 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4550 2014-07-27 Doug Evans <xdje42@gmail.com>
4552 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4554 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4555 Doug Evans <xdje42@gmail.com>
4558 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4559 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4560 * configure.ac: Try to use guild to compile an scm file, if it fails
4561 then disable guile support.
4562 * configure: Regenerate.
4563 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4565 (GUILE_COMPILED_FILES): New variable.
4566 (GUILE_FILES) Update.
4567 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4568 (stamp-guile): Compile scm files.
4569 * guile/guile.c (boot_guile_support): New function.
4570 (standard_throw_args_p): New function.
4571 (print_standard_throw_error, print_throw_error): New functions.
4572 (handle_boot_error): New function.
4573 (initialize_scheme_side): Rewrite to call boot_guile_support.
4574 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4575 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4577 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4578 Doug Evans <xdje42@gmail.com>
4581 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4582 * guile/lib/gdb/support.scm: New file.
4583 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4584 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4586 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4588 (%assert-type): Ditto, and renamed to assert-type.
4589 (%exception-print-style): Delete.
4591 2014-07-26 Doug Evans <xdje42@gmail.com>
4594 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4595 * configure: Regenerate.
4596 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4598 (PYTHON_FILES): New variable.
4599 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4600 (GUILE_FILES): New variable.
4601 (stamp-python, install-python, uninstall-python): Handle empty
4603 (stamp-guile, install-guile, uninstall-guile): Ditto.
4605 2014-07-26 Doug Evans <xdje42@gmail.com>
4608 * guile/lib/gdb.scm (pretty-printers): Export.
4609 (set-pretty-printers!): Export.
4610 * guile/lib/gdb/printing.scm (gdb module): Update.
4611 (prepend-pretty-printer!, append-pretty-printer!): Update.
4612 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4613 (pretty_printer_list_var): Delete.
4614 (pretty_printer_list): New static global.
4615 (gdbscm_pretty_printers): New function.
4616 (gdbscm_set_pretty_printers_x): New function.
4617 (ppscm_find_pretty_printer_from_gdb): Update.
4618 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4619 (gdbscm_initialize_pretty_printers): Update.
4621 2014-07-26 Doug Evans <xdje42@gmail.com>
4624 * configure.ac: Add check for header gc/gc.h.
4625 Add check for function setenv.
4626 * configure: Regenerate.
4627 * config.in: Regenerate.
4628 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4630 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4632 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4633 variation in gdbarch matching.
4635 2014-07-25 Tom Tromey <tromey@redhat.com>
4637 * exec.c (using_exec_ops): Remove.
4638 (exec_close_1): Update. Remove extraneous block, reindent.
4639 (add_target_sections): Use target_is_pushed.
4641 2014-07-25 Pedro Alves <palves@redhat.com>
4643 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4644 * monitor.c (monitor_create_inferior): Likewise.
4645 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4646 * remote-sim.c (gdbsim_create_inferior): Likewise.
4647 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4648 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4649 * windows-nat.c (do_initial_windows_stuff): Likewise.
4651 2014-07-25 Pedro Alves <palves@redhat.com>
4653 * NEWS: Mention signal passing and "signal" command changes.
4654 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4656 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4658 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4659 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4660 (jump_command): Adjust clear_proceed_status call.
4661 (signal_command): Warn if other thread that are resumed have
4662 signals that will be delivered. Adjust clear_proceed_status call.
4663 (until_next_command, finish_command)
4664 (proceed_after_attach_callback, attach_command_post_wait)
4665 (attach_command): Adjust clear_proceed_status call.
4666 * infrun.c (proceed_after_vfork_done): Likewise.
4667 (proceed_after_attach_callback): Adjust comment.
4668 (clear_proceed_status_thread): Clear stop_signal if not in pass
4670 (clear_proceed_status_callback): Delete.
4671 (clear_proceed_status): New 'step' parameter. Only clear the
4672 proceed status of threads the command being prepared is about to
4674 (proceed): If passed in an explicit signal, override stop_signal
4675 with it. Don't pass the last stop signal to the thread we're
4677 (init_wait_for_inferior): Adjust clear_proceed_status call.
4678 (switch_back_to_stepped_thread): Clear the signal if it should not
4680 * infrun.h (clear_proceed_status): New 'step' parameter.
4681 (user_visible_resume_ptid): Add comment.
4682 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4683 signal is in pass state.
4684 * remote.c (append_pending_thread_resumptions): Likewise.
4685 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4687 2014-07-25 Tom Tromey <tromey@redhat.com>
4689 * target.h (target_stopped_data_address)
4690 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4693 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4695 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4697 (avr_pointer_to_address): Likewise.
4699 2014-07-24 Tom Tromey <tromey@redhat.com>
4701 * monitor.c (compile_pattern): Update.
4702 * target.h (struct target_ops) <to_shortname, to_longname,
4705 2014-07-24 Tom Tromey <tromey@redhat.com>
4707 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4708 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4709 (add_info_alias, add_com): Make "doc" const.
4710 (print_doc_line): Make "str" const.
4711 (delete_cmd): Update.
4712 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4713 (print_doc_line): Update.
4714 * cli/cli-script.c (document_command): Update.
4715 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4716 (add_com, add_info, add_info_alias): Update.
4717 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4718 * python/py-cmd.c (cmdpy_destroyer): Update.
4720 2014-07-24 Tom Tromey <tromey@redhat.com>
4722 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4723 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4724 (help_cmd_list): Constify.
4725 (lookup_cmd): Update.
4726 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4728 (help_cmd_list, apropos_cmd): Update.
4729 * cli/cli-script.c (show_user): Update.
4730 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4731 * cli/cli-setshow.h (cmd_show_list): Update.
4732 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4733 (cmd_show_list): Update.
4734 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4735 * python/py-cmd.c (cmdpy_destroyer): Update.
4737 2014-07-24 Tom Tromey <tromey@redhat.com>
4739 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4740 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4742 * command.h (deprecate_cmd): Update.
4743 * maint.c (maintenance_do_deprecate): Add casts.
4745 2014-07-24 Tom Tromey <tromey@redhat.com>
4747 * cli/cli-decode.c (help_cmd): Make parameter "const".
4748 * cli/cli-decode.h (help_cmd): Update.
4750 2014-07-24 Tom Tromey <tromey@redhat.com>
4752 * stack.c (up_silently_base, down_silently_base): Make argument
4755 2014-07-24 Tom Tromey <tromey@redhat.com>
4757 * solib.c (solib_add): Make "pattern" const.
4758 * solib.h (solib_add): Update.
4760 2014-07-24 Tom Tromey <tromey@redhat.com>
4762 * remote.c (remote_serial_open, print_packet, putpkt)
4763 (putpkt_binary): Constify.
4764 * remote.h (putpkt): Update.
4766 2014-07-24 Tom Tromey <tromey@redhat.com>
4768 * monitor.c (monitor_open): Make "args" const.
4769 * monitor.h (monitor_open): Update.
4771 2014-07-24 Tom Tromey <tromey@redhat.com>
4773 * maint.c (match_bfd_flags): Make "string" const.
4774 (print_bfd_section_info): Remove casts.
4775 (print_objfile_section_info): Make "string" const.
4777 2014-07-24 Tom Tromey <tromey@redhat.com>
4779 * inf-child.c (inf_child_open_target): Make "arg" const.
4780 * inf-child.h (inf_child_open_target): Update.
4782 2014-07-24 Tom Tromey <tromey@redhat.com>
4784 * environ.c (unset_in_environ): Make "var" const.
4785 * environ.h (unset_in_environ): Update.
4787 2014-07-24 Tom Tromey <tromey@redhat.com>
4789 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4791 (scan_filename_with_cleanup): Likewise.
4792 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4793 Make arguments const.
4794 (restore_command): Update.
4796 2014-07-24 Pedro Alves <palves@redhat.com>
4798 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4800 2014-07-24 Tom Tromey <tromey@redhat.com>
4801 Gary Benson <gbenson@redhat.com>
4803 * nat/linux-ptrace.c (additional_flags): New global.
4804 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4805 additional_flags; don't check GDBSERVER.
4806 (linux_ptrace_set_additional_flags): New function.
4807 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4809 * linux-nat.c (_initialize_linux_nat): Call
4810 linux_ptrace_set_additional_flags.
4812 2014-07-24 Tom Tromey <tromey@redhat.com>
4814 * make-target-delegates (munge_type, write_debugmethod): New
4816 (debug_names): New global.
4817 ($TARGET_DEBUG_PRINTER): New global.
4818 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4820 Write debug methods. Generate init_debug_target.
4821 * target-debug.h: New file.
4822 * target-delegates.c: Rebuild.
4823 * target.c: Include target-debug.h.
4824 (debug_target): Hoist definition.
4825 (target_kill, target_get_section_table, target_memory_map)
4826 (target_flash_erase, target_flash_done, target_detach)
4827 (target_disconnect, target_wait, target_resume)
4828 (target_pass_signals, target_program_signals, target_follow_fork)
4829 (target_mourn_inferior, target_search_memory)
4830 (target_thread_address_space, target_close)
4831 (target_find_new_threads, target_core_of_thread)
4832 (target_verify_memory, target_insert_mask_watchpoint)
4833 (target_remove_mask_watchpoint): Remove targetdebug code.
4834 (debug_to_post_attach, debug_to_prepare_to_store)
4835 (debug_to_files_info, debug_to_insert_breakpoint)
4836 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4837 (debug_to_region_ok_for_hw_watchpoint)
4838 (debug_to_can_accel_watchpoint_condition)
4839 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4840 (debug_to_watchpoint_addr_within_range)
4841 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4842 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4843 (debug_to_terminal_init, debug_to_terminal_inferior)
4844 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4845 (debug_to_terminal_save_ours, debug_to_terminal_info)
4846 (debug_to_load, debug_to_post_startup_inferior)
4847 (debug_to_insert_fork_catchpoint)
4848 (debug_to_remove_fork_catchpoint)
4849 (debug_to_insert_vfork_catchpoint)
4850 (debug_to_remove_vfork_catchpoint)
4851 (debug_to_insert_exec_catchpoint)
4852 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4853 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4854 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4855 (setup_target_debug): Call init_debug_target.
4856 * target.h (TARGET_DEBUG_PRINTER): New macro.
4857 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4858 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4860 2014-07-24 Gary Benson <gbenson@redhat.com>
4862 * exceptions.h (throw_vfatal): Renamed to...
4863 (throw_vquit): New declaration.
4864 (throw_quit): Likewise.
4865 * exceptions.c (throw_vfatal): Renamed to...
4866 (throw_vquit): New function.
4867 (throw_quit): Likewise.
4868 (throw_error): Call throw_verror rather than throw_it.
4869 * utils.h (vfatal): Removed.
4871 * utils.c (vfatal): Removed.
4873 (internal_verror): Replaced call to fatal with call to throw_quit.
4874 (quit): Replaced calls to fatal with calls to throw_quit.
4876 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4878 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4881 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4883 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4884 less than zero in conditional expression.
4886 2014-07-23 Tom Tromey <tromey@redhat.com>
4888 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4889 ($INTRO_PART): Don't match whitespace.
4890 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4892 ($METHOD): Add $METHOD_TRAILER.
4894 (scan_target_h): New sub.
4895 Change main loop not to collect state.
4896 * target-delegates.c: Rebuild.
4898 2014-07-23 Gary Benson <gbenson@redhat.com>
4900 * cp-support.c (gdb_demangle): Fix build on systems without
4903 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4905 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4906 for reference entry value target data value.
4908 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4910 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4911 value_available_contents_eq.
4913 2014-07-22 Pedro Alves <palves@redhat.com>
4915 * value.c (allocate_optimized_out_value): Don't mark value as
4918 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4920 * MAINTAINERS (Write After Approval): Update my email address.
4922 2014-07-20 Doug Evans <dje@google.com>
4925 * remote.c (putpkt_binary): Add text to error message.
4927 2014-07-20 Yao Qi <yao@codesourcery.com>
4929 * eval.c: Remove "Chill" from comments.
4930 * gdbtypes.h: Likewise.
4931 * symtab.h: Likewise.
4933 2014-07-20 Yao Qi <yao@codesourcery.com>
4935 * std-operator.def: Update comments to TERNOP_SLICE.
4937 2014-07-20 Yao Qi <yao@codesourcery.com>
4939 * std-operator.def: Remove BINOP_RANGE.
4940 * breakpoint.c (watchpoint_exp_is_const): Update.
4941 * expprint.c (dump_subexp_body_standard): Likewise.
4942 * eval.c (init_array_element): Remove dead code.
4943 (evaluate_subexp_standard): Likewise.
4945 2014-07-20 Yao Qi <yao@codesourcery.com>
4947 * std-operator.def: Remove BINOP_IN.
4948 * breakpoint.c (watchpoint_exp_is_const): Update.
4949 * eval.c (evaluate_subexp_standard): Likewise.
4950 * expprint.c (dump_subexp_body_standard): Likewise.
4952 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4954 * microblaze-tdep.c (microblaze_register_names): Add
4955 the rshr and rslr register names.
4956 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4957 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4958 Use of tdesc_numbered_register. Use of
4959 microblaze_register_g_packet_guesses. Use of
4960 tdesc_use_registers. Use of set_gdbarch_register_type.
4961 (microblaze_register_g_packet_guesses): New.
4962 * microblaze-tdep.h (microblaze_reg_num): Add
4963 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4964 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4965 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4966 * features/microblaze-core.xml: New file.
4967 * features/microblaze-stack-protect.xml: New file.
4968 * features/microblaze-with-stack-protect.c: New file.
4969 * features/microblaze-with-stack-protect.xml: New file.
4970 * features/microblaze.xml: New file.
4971 * features/microblaze.c: New file.
4972 * features/Makefile (microblaze-with-stack-protect): Add
4973 microblaze-with-stack-protect microblaze and microblaze-expedite.
4974 * regformats/microblaze-with-stack-protect.dat: New file.
4975 * regformats/microblaze.dat: New file.
4976 * doc/gdb.texinfo (MicroBlaze Features): Added.
4978 2014-07-18 Tom Tromey <tromey@redhat.com>
4980 * exec.c (exec_ops): Now static.
4981 * exec.h (exec_ops): Don't declare.
4983 2014-07-18 Tom Tromey <tromey@redhat.com>
4985 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4986 to find_target_beneath.
4987 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4988 find_target_beneath.
4989 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4991 2014-07-18 Tom Tromey <tromey@redhat.com>
4994 * utils.c (quit): Use target_supports_terminal_ours.
4995 * target.h (target_supports_terminal_ours): Declare.
4996 * target.c (target_supports_delete_record): Don't check
4997 to_delete_record against NULL.
4998 (target_supports_terminal_ours): New function.
5000 2014-07-18 Tom Tromey <tromey@redhat.com>
5003 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5004 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5005 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5006 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5007 * windows-nat.c (windows_xfer_partial): Always delegate.
5008 * record-btrace.c (record_btrace_xfer_partial): Simplify
5010 (record_btrace_fetch_registers, record_btrace_store_registers)
5011 (record_btrace_prepare_to_store, record_btrace_resume)
5012 (record_btrace_wait, record_btrace_find_new_threads)
5013 (record_btrace_thread_alive): Likewise.
5014 * procfs.c (procfs_xfer_partial): Always delegate.
5015 * corelow.c (core_xfer_partial): Always delegate.
5016 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5018 2014-07-18 Tom Tromey <tromey@redhat.com>
5020 * exec.c (exec_make_note_section): Move earlier.
5022 2014-07-17 Doug Evans <dje@google.com>
5025 * maint.c (count_symtabs_and_blocks): Handle NULL
5026 current_program_space.
5027 (report_command_stats): Check global enabled flag in addition to
5028 recorded enabled flag.
5029 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5031 2014-07-16 Pedro Alves <palves@redhat.com>
5033 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5035 2014-07-16 Tom Tromey <tromey@redhat.com>
5037 * target.h (struct target_ops) <to_delete_record>: Reformat
5040 2014-07-16 Tom Tromey <tromey@redhat.com>
5042 * target-delegates.c: Rebuild.
5044 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5046 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5047 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5048 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5049 (avr_pointer_to_address): Likewise.
5050 (avr_address_class_type_flags): New function.
5051 (avr_address_class_type_flags_to_name): Likewise.
5052 (avr_address_class_name_to_type_flags): Likewise.
5053 (avr_gdbarch_init): Set address_class_type_flags,
5054 address_class_type_flags_to_name and
5055 address_class_name_to_type_flags.
5057 2014-07-15 Pedro Alves <palves@redhat.com>
5059 * linux-nat.c (kill_callback): Save errno and work with saved
5062 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5064 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5066 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5068 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5069 breakpoint support correctly.
5071 2014-07-14 Pedro Alves <palves@redhat.com>
5073 * utils.c (prompt_for_continue): Call target_terminal_ours.
5075 2014-07-14 Pedro Alves <palves@redhat.com>
5077 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5078 catch_errors. Don't re-enable stdin or notify observers where,
5080 (fetch_inferior_event_wrapper): Delete.
5082 2014-07-14 Pedro Alves <palves@redhat.com>
5085 * top.c: Include "inf-loop.h".
5086 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5088 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5090 (gdb_readline_wrapper): Store whether the target is async, and
5093 2014-07-14 Pedro Alves <palves@redhat.com>
5096 * top.c (gdb_readline_wrapper_line): Tweak comment.
5097 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5098 the input handler callback.
5100 2014-07-14 Pedro Alves <palves@redhat.com>
5103 * main.c: Include event-top.h.
5104 (handle_command_errors): New function.
5105 (catch_command_errors, catch_command_errors_const): Use it.
5107 2014-07-14 Pedro Alves <palves@redhat.com>
5109 * exceptions.c (catch_command_errors, catch_command_errors_const):
5111 * exceptions.h (catch_command_errors_ftype)
5112 (catch_command_errors_const_ftype): Moved to main.c.
5113 (catch_command_errors, catch_command_errors_const): Delete
5115 * main.c (catch_command_errors_ftype)
5116 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5117 (catch_command_errors, catch_command_errors_const)): Moved here
5118 from exceptions.c and make static.
5120 2014-07-14 Pedro Alves <palves@redhat.com>
5122 * exceptions.c (print_any_exception): Delete.
5123 (catch_exceptions_with_msg): Use exception_print instead of
5124 print_any_exception.
5125 (catch_errors): Use exception_fprintf instead of
5126 print_any_exception.
5127 (catch_command_errors, catch_command_errors_const): Use
5128 exception_print instead of print_any_exception.
5130 2014-07-14 Pedro Alves <palves@redhat.com>
5132 * infcall.c (run_inferior_call): Set 'sync_execution' while
5133 running the inferior call.
5135 2014-07-14 Pedro Alves <palves@redhat.com>
5137 * value.c (value_contents_equal): Delete function.
5138 * value.h (value_contents_equal): Delete declaration.
5140 2014-07-14 Tom Tromey <tromey@redhat.com>
5143 * gdbtypes.c (is_dynamic_type_internal): New function, from
5145 (is_dynamic_type): Rewrite.
5146 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5147 (resolve_dynamic_struct): Likewise.
5148 (resolve_dynamic_type_internal): New function, from
5149 resolve_dynamic_type.
5150 (resolve_dynamic_type): Rewrite.
5152 2014-07-14 Tom Tromey <tromey@redhat.com>
5154 * target.c (target_require_runnable): Also check record_stratum.
5157 2014-07-11 Yao Qi <yao@codesourcery.com>
5159 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5160 thumb_instruction_restores_sp return true.
5162 2014-07-11 Yao Qi <yao@codesourcery.com>
5164 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5165 (thumb_in_function_epilogue_p): Call
5166 thumb_instruction_restores_sp.
5168 2014-07-11 Yao Qi <yao@codesourcery.com>
5170 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5172 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5174 2014-07-11 Gary Benson <gbenson@redhat.com>
5176 * amd64-linux-nat.c (gdbcore.h): Remove include.
5177 (regset.h): Likewise.
5178 (nat/linux-btrace.h): Likewise.
5179 (btrace.h): Likewise.
5180 (gdb_assert.h): Likewise.
5181 (string.h): Likewise.
5182 (sys/uio.h): Likewise.
5183 (sys/debugreg.h): Likewise.
5184 (sys/syscall.h): Likewise.
5185 (sys/procfs.h): Likewise.
5186 (sys/user.h): Likewise.
5187 (asm/ptrace.h): Likewise.
5188 (i386-nat.h): Likewise.
5189 * i386-linux-nat.c (i386-nat.h): Likewise.
5190 (regset.h): Likewise.
5191 (target.h): Likewise.
5192 (linux-nat.h): Likewise.
5193 (nat/linux-btrace.h): Likewise.
5194 (btrace.h): Likewise.
5195 (gdb_assert.h): Likewise.
5196 (string.h): Likewise.
5197 (sys/uio.h): Likewise.
5198 (sys/user.h): Likewise.
5199 (sys/procfs.h): Likewise.
5200 (sys/reg.h): Likewise.
5201 (sys/debugreg.h): Likewise.
5202 (ORIG_EAX): Remove definition.
5204 2014-07-11 Gary Benson <gbenson@redhat.com>
5206 * i386-linux-nat.h: New file.
5207 * x86-linux-nat.h: Likewise.
5208 * x86-linux-nat.c: Likewise.
5209 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5210 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5211 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5212 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5213 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5214 (PTRACE_SETREGSET): Likewise.
5215 (arch_lwp_info): Now in x86-linux-nat.c.
5216 (have_ptrace_getregset): Now in x86-linux-nat.h.
5217 (x86_linux_dr_get): Now in x86-linux-nat.c.
5218 (x86_linux_dr_set): Likewise.
5219 (x86_linux_dr_get_addr): Likewise.
5220 (x86_linux_dr_get_control): Likewise.
5221 (x86_linux_dr_get_status): Likewise.
5222 (update_debug_registers_callback): Likewise.
5223 (x86_linux_dr_set_control): Likewise.
5224 (x86_linux_dr_set_addr): Likewise.
5225 (x86_linux_prepare_to_resume): Likewise.
5226 (x86_linux_new_thread): Likewise.
5227 (x86_linux_new_fork): Likewise.
5228 (x86_linux_get_thread_area): Likewise.
5229 (super_post_startup_inferior): Likewise.
5230 (x86_linux_child_post_startup_inferior): Likewise.
5231 (AMD64_LINUX_USER64_CS): Likewise.
5232 (AMD64_LINUX_X32_DS): Likewise.
5233 (x86_linux_read_description): Likewise.
5234 (x86_linux_enable_btrace): Likewise.
5235 (x86_linux_disable_btrace): Likewise.
5236 (x86_linux_teardown_btrace): Likewise.
5237 (x86_linux_read_btrace): Likewise.
5238 (x86_linux_create_target): Likewise.
5239 (x86_linux_add_target): Likewise.
5240 * i386-linux-nat.c (x86-linux-nat.h): New include.
5241 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5242 (PTRACE_SETREGSET): Likewise.
5243 (arch_lwp_info): Now in x86-linux-nat.c.
5244 (have_ptrace_getregset): Now in x86-linux-nat.h.
5245 (x86_linux_dr_get): Now in x86-linux-nat.c.
5246 (x86_linux_dr_set): Likewise.
5247 (x86_linux_dr_get_addr): Likewise.
5248 (x86_linux_dr_get_control): Likewise.
5249 (x86_linux_dr_get_status): Likewise.
5250 (update_debug_registers_callback): Likewise.
5251 (x86_linux_dr_set_control): Likewise.
5252 (x86_linux_dr_set_addr): Likewise.
5253 (x86_linux_prepare_to_resume): Likewise.
5254 (x86_linux_new_thread): Likewise.
5255 (x86_linux_new_fork): Likewise.
5256 (x86_linux_get_thread_area): Likewise.
5257 (super_post_startup_inferior): Likewise.
5258 (x86_linux_child_post_startup_inferior): Likewise.
5259 (AMD64_LINUX_USER64_CS): Likewise.
5260 (AMD64_LINUX_X32_DS): Likewise.
5261 (x86_linux_read_description): Likewise.
5262 (x86_linux_enable_btrace): Likewise.
5263 (x86_linux_disable_btrace): Likewise.
5264 (x86_linux_teardown_btrace): Likewise.
5265 (x86_linux_read_btrace): Likewise.
5266 (x86_linux_create_target): Likewise.
5267 (x86_linux_add_target): Likewise.
5269 2014-07-11 Gary Benson <gbenson@redhat.com>
5271 * amd64-linux-nat.c: Comment and whitespace changes.
5272 * i386-linux-nat.c: Comment and whitespace changes.
5274 2014-07-11 Gary Benson <gbenson@redhat.com>
5276 * amd64-linux-nat.c (x86_linux_create_target): New function.
5277 (x86_linux_add_target): Likewise.
5278 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5279 * i386-linux-nat.c (x86_linux_create_target): New function.
5280 (x86_linux_add_target): Likewise.
5281 (_initialize_i386_linux_nat): Delegate to the above new functions.
5283 2014-07-11 Gary Benson <gbenson@redhat.com>
5285 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5286 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5287 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5288 (ps_get_thread_area): Delegate to the above.
5290 2014-07-11 Gary Benson <gbenson@redhat.com>
5292 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5293 x86_linux_read_description. All uses updated. amd64-specific
5294 code conditionalized. Conditionalized i386-specific code added.
5295 Redundant cast removed.
5296 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5297 x86_linux_read_description. All uses updated. i386-specific
5298 code conditionalized. Conditionalized amd64-specific code added.
5299 One sizeof replaced with the actual type it is describing.
5301 2014-07-11 Gary Benson <gbenson@redhat.com>
5303 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5304 x86_linux_dr_get. All uses updated.
5305 (amd64_linux_dr_set): Renamed to
5306 x86_linux_dr_set. All uses updated.
5307 (amd64_linux_dr_get_addr): Renamed to
5308 x86_linux_dr_get_addr. All uses updated.
5309 (amd64_linux_dr_get_control): Renamed to
5310 x86_linux_dr_get_control. All uses updated.
5311 (amd64_linux_dr_get_status): Renamed to
5312 x86_linux_dr_get_status. All uses updated.
5313 (amd64_linux_dr_set_control): Renamed to
5314 x86_linux_dr_set_control. All uses updated.
5315 (amd64_linux_dr_set_addr): Renamed to
5316 x86_linux_dr_set_addr. All uses updated.
5317 (amd64_linux_prepare_to_resume): Renamed to
5318 x86_linux_prepare_to_resume. All uses updated.
5319 (amd64_linux_new_thread): Renamed to
5320 x86_linux_new_thread. All uses updated.
5321 (amd64_linux_new_fork): Renamed to
5322 x86_linux_new_fork. All uses updated.
5323 (amd64_linux_child_post_startup_inferior): Renamed to
5324 x86_linux_child_post_startup_inferior. All uses updated.
5325 (amd64_linux_enable_btrace): Renamed to
5326 x86_linux_enable_btrace. All uses updated.
5327 (amd64_linux_disable_btrace): Renamed to
5328 x86_linux_disable_btrace. All uses updated.
5329 (amd64_linux_teardown_btrace): Renamed to
5330 x86_linux_teardown_btrace. All uses updated.
5331 (amd64_linux_read_btrace): Renamed to
5332 x86_linux_read_btrace. All uses updated.
5333 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5334 x86_linux_dr_get. All uses updated.
5335 (i386_linux_dr_set): Renamed to
5336 x86_linux_dr_set. All uses updated.
5337 (i386_linux_dr_get_addr): Renamed to
5338 x86_linux_dr_get_addr. All uses updated.
5339 (i386_linux_dr_get_control): Renamed to
5340 x86_linux_dr_get_control. All uses updated.
5341 (i386_linux_dr_get_status): Renamed to
5342 x86_linux_dr_get_status. All uses updated.
5343 (i386_linux_dr_set_control): Renamed to
5344 x86_linux_dr_set_control. All uses updated.
5345 (i386_linux_dr_set_addr): Renamed to
5346 x86_linux_dr_set_addr. All uses updated.
5347 (i386_linux_prepare_to_resume): Renamed to
5348 x86_linux_prepare_to_resume. All uses updated.
5349 (i386_linux_new_thread): Renamed to
5350 x86_linux_new_thread. All uses updated.
5351 (i386_linux_new_fork): Renamed to
5352 x86_linux_new_fork. All uses updated.
5353 (i386_linux_child_post_startup_inferior): Renamed to
5354 x86_linux_child_post_startup_inferior. All uses updated.
5355 (i386_linux_enable_btrace): Renamed to
5356 x86_linux_enable_btrace. All uses updated.
5357 (i386_linux_disable_btrace): Renamed to
5358 x86_linux_disable_btrace. All uses updated.
5359 (i386_linux_teardown_btrace): Renamed to
5360 x86_linux_teardown_btrace. All uses updated.
5361 (i386_linux_read_btrace): Renamed to
5362 x86_linux_read_btrace. All uses updated.
5364 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5366 * remote.c (extended_remote_post_attach): New function.
5367 (init_extended_remote_ops): Install it as to_post_attach method.
5369 2014-07-09 Pedro Alves <palves@redhat.com>
5371 * infcmd.c (attach_command_post_wait): Don't call
5372 target_terminal_inferior here.
5373 (attach_command): Call it here instead.
5375 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5377 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5379 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5380 from varobj.c, with additional checks.
5381 (c_varobj_ops): Fill in is_path_expr_parent field.
5382 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5383 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5385 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5387 (varobj_default_is_path_expr_parent): New function.
5388 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5389 (varobj_default_is_path_expr_parent): Declare new function.
5391 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5393 * infcmd.c (finish_backward): Turn internal error into normal error.
5395 2014-07-07 Pedro Alves <palves@redhat.com>
5398 * remote.c (async_handle_remote_sigint)
5399 (async_handle_remote_sigint_twice): Call
5400 gdb_call_async_signal_handler instead of
5401 mark_async_signal_handler.
5403 2014-07-07 Tom Tromey <tromey@redhat.com>
5405 * target-delegates.c: Rebuild.
5406 * target.c (target_info_record): Remove.
5407 * record.c (info_record_command): Unconditionally call
5409 * target.h (struct target_ops) <to_info_record>: Use
5410 TARGET_DEFAULT_IGNORE.
5411 (target_info_record): Remove.
5413 2014-07-07 Tom Tromey <tromey@redhat.com>
5415 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5416 TARGET_DEFAULT_NORETURN.
5417 * target.c (generic_tls_error): New function.
5418 (target_translate_tls_address): Don't search target stack.
5419 * target-delegates.c: Rebuild.
5420 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5422 * linux-thread-db.c (thread_db_get_thread_local_address):
5423 Unconditionally call beneath target.
5425 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5427 * cli/cli-logging.c (pop_output_files): Assign targerr to
5430 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5432 * MAINTAINERS (Write After Approval): Update my email address.
5434 2014-07-02 Gary Benson <gbenson@redhat.com>
5436 * proc-service.c (ps_xfer_memory): Update comment.
5437 (ps_pstop): Remove unused function.
5438 (ps_pcontinue): Likewise.
5439 (ps_lstop): Likewise.
5440 (ps_lcontinue): Likewise.
5441 (ps_lgetxregsize): Likewise.
5442 (ps_lgetxregs): Likewise.
5443 (ps_lsetxregs): Likewise.
5444 (ps_plog): Likewise.
5445 (ps_ptread): Likewise.
5446 (ps_ptwrite): Likewise.
5448 2014-07-01 Mark Wielaard <mjw@redhat.com>
5450 * dwarf2read.c (add_array_cv_type): New function.
5451 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5452 (read_tag_volatile_type): Likewise.
5454 2014-07-01 Tom Tromey <tromey@redhat.com>
5456 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5457 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5458 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5459 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5460 * command.h (cmd_cfunc_ftype): Move earlier.
5461 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5462 (add_com, add_info): Use cmd_cfunc_ftype.
5464 2014-06-30 Tom Tromey <tromey@redhat.com>
5466 * symtab.c (operator_chars): Make parameters and return type
5468 (file_matches): Make "files" const.
5469 (struct search_symbols_data) <files>: Now const.
5470 (search_symbols): Make "regexp" and "files" parameters const.
5472 (symtab_symbol_info): Remove cast.
5473 (rbreak_command): Update.
5474 * symtab.h (search_symbols): Update.
5476 2014-06-27 Yao Qi <yao@codesourcery.com>
5478 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5479 Change parameter type to 'struct thread_info *'. Caller
5481 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5483 * dummy-frame.c (struct dummy_frame_id): New.
5484 (dummy_frame_id_eq): New function.
5485 (struct dummy_frame) <id>: Change its type to 'struct
5487 (dummy_frame_push): Add parameter ptid and save it in
5489 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5491 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5493 (lookup_dummy_frame): Change parameter type to 'struct
5494 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5495 instead of frame_id_eq.
5496 (dummy_frame_pop): Add parameter ptid. Callers updated.
5497 Update comments. Compose dummy_frame_id and pass it to
5499 (dummy_frame_discard): Add parameter ptid.
5500 (dummy_frame_sniffer): Compose dummy_frame_id and call
5501 dummy_frame_id_eq instead of frame_id_eq.
5502 (fprint_dummy_frames): Print ptid.
5503 * dummy-frame.h: Remove comments.
5504 (dummy_frame_push): Add ptid in declaration.
5505 (dummy_frame_pop, dummy_frame_discard): Likewise.
5507 2014-06-26 Tom Tromey <tromey@redhat.com>
5509 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5510 * command.h (error_no_arg): Update.
5512 2014-06-26 Tom Tromey <tromey@redhat.com>
5514 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5515 (do_show_command): Make "arg" const.
5516 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5518 2014-06-26 Tom Tromey <tromey@redhat.com>
5520 * record-full.c (record_full_get_bookmark): Make "args" const.
5521 (record_full_goto_bookmark): Make "raw_bookmark" const.
5522 * record.c (record_goto): New function.
5523 (cmd_record_goto): Use it. Now static.
5524 * record.h (record_goto): Declare.
5525 (cmd_record_goto): Remove declaration.
5526 * target-delegates.c: Rebuild.
5527 * target.h (struct target_ops) <to_get_bookmark,
5528 to_goto_bookmark>: Make parameter const.
5530 2014-06-26 Tom Tromey <tromey@redhat.com>
5532 * defs.h (generic_load): Update.
5533 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5534 * monitor.c (monitor_load): Make "args" const.
5535 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5536 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5538 (mips_load): Make "file" const.
5539 * remote-sim.c (gdbsim_load): Make "args" const.
5540 * remote.c (remote_load): Make "name" const.
5541 * symfile.c (generic_load): Make "args" const.
5542 * target-delegates.c: Rebuild.
5543 * target.c (target_load): Make "arg" const.
5544 (debug_to_load): Make "args" const.
5545 * target.h (struct target_ops) <to_load>: Make parameter const.
5546 (target_load): Update.
5548 2014-06-26 Tom Tromey <tromey@redhat.com>
5551 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5552 (dwarf2_physname, read_partial_die)
5553 (guess_partial_die_structure_name, fixup_partial_die)
5554 (guess_full_die_structure_name, anonymous_struct_prefix)
5555 (dwarf2_name): Use per-BFD obstack.
5557 2014-06-26 Yao Qi <yao@codesourcery.com>
5559 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5560 dummyframe and this_id into inner block below.
5562 2014-06-26 Yao Qi <yao@codesourcery.com>
5564 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5565 with "signal_pass[0]" in the initialization of signal_pass.
5567 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5569 * record-btrace.c (record_btrace_generating_corefile)
5570 (record_btrace_prepare_to_generate_core)
5571 (record_btrace_done_generating_core): New.
5572 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5573 (record_btrace_store_registers, record_btrace_prepare_to_store):
5574 Forward request when generating a core file.
5575 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5576 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5577 to_done_generating_core.
5579 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5581 * target.h (target_ops) <to_prepare_to_generate_core>
5582 <to_done_generating_core>: New.
5583 (target_prepare_to_generate_core, target_done_generating_core): New.
5584 * target.c (target_prepare_to_generate_core)
5585 (target_done_generating_core): New.
5586 * target-delegates.c: Regenerate.
5587 * gcore.c: (write_gcore_file): Rename to ...
5588 (write_gcore_file_1): ...this.
5589 (write_gcore_file): Call target_prepare_to_generate_core
5590 and target_done_generating_core.
5592 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5594 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5595 * gcore.c (write_gcore_file): Free memory returned from
5596 make_corefile_notes.
5597 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5598 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5600 2014-06-24 Yao Qi <yao@codesourcery.com>
5602 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5603 (arm_linux_init_abi): Set skip_trampoline_code with
5604 gdbarch_skip_trampoline_code instead of
5605 find_solib_trampoline_target.
5607 2014-06-24 Yao Qi <yao@codesourcery.com>
5609 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5610 arm_skip_bx_reg returns non-zero.
5612 2014-06-24 Yao Qi <yao@codesourcery.com>
5614 * arm-tdep.c (arm_skip_bx_reg): New function.
5615 (arm_skip_stub): Call arm_skip_bx_reg.
5617 2014-06-23 Don Breazeal <donb@codesourcery.com>
5619 * MAINTAINERS: Add myself as write-after-approval maintainer.
5621 2014-06-23 Pedro Alves <palves@redhat.com>
5623 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5624 DR_CONTROL before setting DR0..DR3.
5625 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5626 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5627 bits of DR_CONTROL related to the debug register slot being
5628 disabled. If all slots are vacant, clear local slowdown as well,
5629 and assert DR_CONTROL is 0.
5631 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5633 * python/lib/gdb/command/xmethods.py
5634 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5635 current progspace only if the string "progspace" matches LOCUS_RE.
5637 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5639 Fix --with-system-readline with readline-6.3 patch 5.
5640 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5641 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5644 2014-06-20 Tom Tromey <tromey@redhat.com>
5646 * dwarf2read.c (dw2_get_real_path): Use correct type in
5648 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5650 2014-06-20 Gary Benson <gbenson@redhat.com>
5652 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5653 * common/glibc_thread_db.h: Likewise.
5654 * common/i386-cpuid.h: Likewise.
5655 * common/i386-gcc-cpuid.h: Likewise.
5656 * common/linux-btrace.h: Likewise.
5657 * common/linux-osdata.h: Likewise.
5658 * common/linux-procfs.h: Likewise.
5659 * common/linux-ptrace.h: Likewise.
5660 * common/mips-linux-watch.h: Likewise.
5661 * common/linux-btrace.c: Moved to nat.
5662 * common/linux-osdata.c: Likewise.
5663 * common/linux-procfs.c: Likewise.
5664 * common/linux-ptrace.c: Likewise.
5665 * common/mips-linux-watch.c: Likewise.
5666 * nat/gdb_thread_db.h: Moved from common.
5667 * nat/glibc_thread_db.h: Likewise.
5668 * nat/i386-cpuid.h: Likewise.
5669 * nat/i386-gcc-cpuid.h: Likewise.
5670 * nat/linux-btrace.c: Likewise.
5671 * nat/linux-btrace.h: Likewise.
5672 * nat/linux-osdata.c: Likewise.
5673 * nat/linux-osdata.h: Likewise.
5674 * nat/linux-procfs.c: Likewise.
5675 * nat/linux-procfs.h: Likewise.
5676 * nat/linux-ptrace.c: Likewise.
5677 * nat/linux-ptrace.h: Likewise.
5678 * nat/mips-linux-watch.c: Likewise.
5679 * nat/mips-linux-watch.h: Likewise.
5680 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5681 (object file files): Reordered.
5682 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5683 of glibc_thread_db.h.
5685 2014-06-20 Gary Benson <gbenson@redhat.com>
5687 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5688 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5689 (i386_dr_low): Likewise.
5690 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5691 (i386_dr_low_set_addr): Likewise.
5692 (i386_dr_low_get_addr): Likewise.
5693 (i386_dr_low_can_set_control): Likewise.
5694 (i386_dr_low_set_control): Likewise.
5695 (i386_dr_low_get_control): Likewise.
5696 (i386_dr_low_get_status): Likewise.
5697 (i386_get_debug_register_length): Likewise.
5698 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5699 (i386_dr_low): Likewise.
5700 * nat/i386-dregs.c (i386-low.h): Remove include.
5701 (i386-nat.h): Likewise.
5702 (nat/i386-dregs.h): New include.
5703 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5704 (i386_dr_low_set_addr): Likewise.
5705 (i386_dr_low_get_addr): Likewise.
5706 (i386_dr_low_can_set_control): Likewise.
5707 (i386_dr_low_set_control): Likewise.
5708 (i386_dr_low_get_control): Likewise.
5709 (i386_dr_low_get_status): Likewise.
5710 (i386_get_debug_register_length): Likewise.
5711 (debug_hw_points): Likewise.
5713 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5715 * Makefile.in (SFILES): Add d-exp.y.
5716 (YYFILES): Add d-exp.c.
5717 (YYOBJ): Add d-exp.o.
5718 (local-maintainer-clean): Delete d-exp.c.
5719 * d-exp.y: New file.
5720 * d-lang.h (d_parse): New declaration.
5721 (d_error): New declaration.
5722 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5723 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5724 PREC_ORDER operators.
5725 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5727 2014-06-19 Yao Qi <yao@codesourcery.com>
5729 * gdbthread.h (any_running): Remove the declaration.
5730 * thread.c (any_running): Remove.
5732 2014-06-19 Yao Qi <yao@codesourcery.com>
5734 * gdbthread.h (struct thread_info) <state>: Change its type to
5735 'enum thread_state'. Update comments.
5737 2014-06-19 Pedro Alves <palves@redhat.com>
5739 * gdbthread.h (ALL_THREADS): Delete.
5740 (ALL_NON_EXITED_THREADS): New macro.
5741 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5742 instead of ALL_THREADS.
5743 * infrun.c (find_thread_needs_step_over)
5744 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5745 instead of ALL_THREADS.
5746 * record-btrace.c (record_btrace_open)
5747 (record_btrace_stop_recording, record_btrace_close)
5748 (record_btrace_is_replaying, record_btrace_resume)
5749 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5750 * remote.c (append_pending_thread_resumptions): Likewise.
5751 * thread.c (thread_apply_all_command): Likewise.
5753 2014-06-19 Gary Benson <gbenson@redhat.com>
5755 * i386-nat.c (i386_stopped_by_watchpoint):
5756 Use i386_dr_stopped_by_watchpoint.
5757 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5758 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5760 2014-06-19 Gary Benson <gbenson@redhat.com>
5762 * nat/i386-dregs.c: New file.
5763 * Makefile.in (i386-dregs.o): New rule.
5764 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5765 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5766 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5767 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5768 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5769 * config/i386/go32.mh (NATDEPFILES): Likewise.
5770 * config/i386/linux.mh (NATDEPFILES): Likewise.
5771 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5772 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5773 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5774 * i386-nat.h (debug_hw_points): New declaration.
5775 * i386-nat.c (breakpoint.h): Remove include.
5776 (command.h): Likewise.
5777 (target.h): Likewise.
5778 (gdb_assert.h): Likewise.
5779 (debug_hw_points): Made nonstatic.
5780 (debug_printf): Now in i386-dregs.c.
5781 (TARGET_HAS_DR_LEN_8): Likewise.
5782 (DR_CONTROL_SHIFT): Likewise.
5783 (DR_CONTROL_SIZE): Likewise.
5784 (DR_RW_EXECUTE): Likewise.
5785 (DR_RW_WRITE): Likewise.
5786 (DR_RW_READ): Likewise.
5787 (DR_RW_IORW): Likewise.
5788 (DR_LEN_1): Likewise.
5789 (DR_LEN_2): Likewise.
5790 (DR_LEN_4): Likewise.
5791 (DR_LEN_8): Likewise.
5792 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5793 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5794 (DR_ENABLE_SIZE): Likewise.
5795 (DR_LOCAL_SLOWDOWN): Likewise.
5796 (DR_GLOBAL_SLOWDOWN): Likewise.
5797 (DR_CONTROL_RESERVED): Likewise.
5798 (I386_DR_CONTROL_MASK): Likewise.
5799 (I386_DR_VACANT): Likewise.
5800 (I386_DR_LOCAL_ENABLE): Likewise.
5801 (I386_DR_GLOBAL_ENABLE): Likewise.
5802 (I386_DR_DISABLE): Likewise.
5803 (I386_DR_SET_RW_LEN): Likewise.
5804 (I386_DR_GET_RW_LEN): Likewise.
5805 (I386_DR_WATCH_HIT): Likewise.
5806 (i386_wp_op_t): Likewise.
5807 (i386_show_dr): Likewise.
5808 (i386_length_and_rw_bits): Likewise.
5809 (i386_insert_aligned_watchpoint): Likewise.
5810 (i386_remove_aligned_watchpoint): Likewise.
5811 (i386_handle_nonaligned_watchpoint): Likewise.
5812 (i386_update_inferior_debug_regs): Likewise.
5813 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5814 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5815 (i386_region_ok_for_watchpoint):
5816 Use i386_dr_region_ok_for_watchpoint.
5817 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5819 2014-06-19 Gary Benson <gbenson@redhat.com>
5821 * i386-nat.c (i386_insert_hw_breakpoint): Use
5822 i386_insert_watchpoint.
5823 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5825 2014-06-19 Gary Benson <gbenson@redhat.com>
5827 * i386-nat.c (i386_dr_show): Renamed to
5828 i386_show_dr and made static. All uses updated.
5829 (i386_dr_length_and_rw_bits): Renamed to
5830 i386_length_and_rw_bits and made static.
5832 (i386_dr_insert_aligned_watchpoint): Renamed to
5833 i386_insert_aligned_watchpoint and made static.
5835 (i386_dr_remove_aligned_watchpoint): Renamed to
5836 i386_remove_aligned_watchpoint and made static.
5838 (i386_dr_update_inferior_debug_regs): Renamed to
5839 i386_update_inferior_debug_regs and made static.
5841 * nat/i386-dregs.h (i386_dr_show): Removed.
5842 (i386_dr_length_and_rw_bits): Likewise.
5843 (i386_dr_insert_aligned_watchpoint): Likewise.
5844 (i386_dr_remove_aligned_watchpoint): Likewise.
5845 (i386_dr_update_inferior_debug_regs): Likewise.
5847 2014-06-19 Gary Benson <gbenson@redhat.com>
5849 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5850 * configure: Regenerate.
5851 * config.in: Likewise.
5852 * main.c (signal.h): New include.
5853 (setup_alternate_signal_stack): New function.
5854 (captured_main): Call the above.
5855 * cp-support.c (signal.h): New include.
5856 (catch_demangler_crashes): New flag.
5857 (SIGJMP_BUF): New define.
5858 (SIGSETJMP): Likewise.
5859 (SIGLONGJMP): Likewise.
5860 (gdb_demangle_jmp_buf): New static global.
5861 (gdb_demangle_attempt_core_dump): Likewise.
5862 (gdb_demangle_signal_handler): New function.
5863 (gdb_demangle): If catch_demangler_crashes is set, install the
5864 above signal handler before calling bfd_demangle, and restore
5865 the original signal handler afterwards. Display the offending
5866 symbol and call demangler_warning the first time a segmentation
5868 (_initialize_cp_support): New maint set/show command.
5870 2014-06-19 Gary Benson <gbenson@redhat.com>
5872 * utils.h (resource_limit_kind): New enum.
5873 (can_dump_core): New declaration.
5874 (warn_cant_dump_core): Likewise.
5875 (dump_core): Likewise.
5876 * utils.c (dump_core): Made nonstatic. Added new
5877 parameter "limit_kind".
5878 (can_dump_core): Made nonstatic. Moved printing code to...
5879 (warn_cant_dump_core): New function.
5880 (can_dump_core_warn): Likewise.
5881 (internal_vproblem): Replace calls to can_dump_core with
5882 calls to can_dump_core_warn. Supply new argument to each.
5884 2014-06-19 Gary Benson <gbenson@redhat.com>
5886 * utils.h (demangler_vwarning): New declaration.
5887 (demangler_warning): Likewise.
5888 * utils.c (struct internal_problem)
5889 <user_settable_should_quit>: New field.
5890 <user_settable_should_dump_core>: Likewise
5891 (internal_error_problem): Add values for above new fields.
5892 (internal_warning_problem): Likewise.
5893 (demangler_warning_problem): New static global.
5894 (demangler_vwarning): New function.
5895 (demangler_warning): Likewise.
5896 (add_internal_problem_command): Selectively add commands.
5897 (_initialize_utils): New internal problem command.
5898 * maint.c (maintenance_demangler_warning): New function.
5899 (_initialize_maint_cmds): New command.
5901 2014-06-18 Tom Tromey <tromey@redhat.com>
5903 * f-valprint.c (info_common_command_for_block): Update.
5904 * symtab.h (struct general_symbol_info) <common_block>: Now
5907 2014-06-18 Tom Tromey <tromey@redhat.com>
5909 * symtab.h (struct symtab) <blockvector>: Now const.
5910 * ada-lang.c (ada_add_global_exceptions): Update.
5911 * buildsym.c (augment_type_symtab): Update.
5912 * dwarf2read.c (dw2_lookup_symbol): Update.
5913 * jit.c (finalize_symtab): Update.
5914 * jv-lang.c (add_class_symtab_symbol): Update.
5915 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5917 * objfiles.c (objfile_relocate1): Update.
5918 * psymtab.c (lookup_symbol_aux_psymtabs)
5919 (maintenance_check_psymtabs): Update.
5920 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5922 * spu-tdep.c (spu_catch_start): Update.
5923 * symmisc.c (dump_symtab_1): Update.
5924 * symtab.c (lookup_global_symbol_from_objfile)
5925 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5926 (basic_lookup_transparent_type_quick)
5927 (basic_lookup_transparent_type, find_pc_sect_symtab)
5928 (find_pc_sect_line, search_symbols): Update.
5929 * block.c (find_block_in_blockvector): Make "bl" const.
5930 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5932 (blockvector_contains_pc): Make "bv" const.
5933 (block_for_pc_sect): Update.
5934 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5935 (blockvector_contains_pc): Update.
5936 * breakpoint.c (resolve_sal_pc): Update.
5937 * inline-frame.c (block_starting_point_at): Update.
5939 2014-06-18 Tom Tromey <tromey@redhat.com>
5941 * completer.c (complete_line): Make "line_buffer" const.
5942 * completer.h (complete_line): Update.
5944 2014-06-18 Tom Tromey <tromey@redhat.com>
5946 * symtab.c (add_macro_name): Remove unneeded cast.
5948 2014-06-18 Tom Tromey <tromey@redhat.com>
5950 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5951 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5953 2014-06-18 Tom Tromey <tromey@redhat.com>
5955 * probe.c (info_probes_for_ops): Make "arg" const.
5956 * probe.h (info_probes_for_ops): Update.
5958 2014-06-18 Tom Tromey <tromey@redhat.com>
5960 * varobj.c (varobj_create): Update.
5961 * valops.c (value_of_this): Update.
5962 * tracepoint.c (add_local_symbols, scope_info): Update.
5963 * symtab.h (struct general_symbol_info) <block>: Now const.
5964 * symtab.c (skip_prologue_sal)
5965 (default_make_symbol_completion_list_break_on)
5966 (skip_prologue_using_sal): Update.
5967 * stack.h (iterate_over_block_locals)
5968 (iterate_over_block_local_vars): Update.
5969 * stack.c (print_frame_args): Update.
5970 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5972 (get_selected_block): Make return type const.
5973 * python/py-frame.c (frapy_block): Update.
5974 * python/py-block.c (gdbpy_block_for_pc): Update.
5975 * p-exp.y (%union) <bval>: Now const.
5976 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5977 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5978 * m2-exp.y (%union) <bval>: Now const.
5979 * linespec.c (get_current_search_block): Make return type const.
5980 (create_sals_line_offset, find_label_symbols): Update.
5981 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5983 (block_starting_point_at): Make "block" const.
5984 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5985 (check_exception_resume): Update.
5986 * guile/scm-frame.c (gdbscm_frame_block): Update.
5987 * guile/scm-block.c (gdbscm_lookup_block): Update.
5988 * frame.h (get_frame_block): Update.
5989 (get_selected_block): Make return type const.
5990 * frame.c (frame_id_inner): Update.
5991 * f-valprint.c (info_common_command_for_block)
5992 (info_common_command): Update.
5993 * dwarf2loc.c (dwarf2_find_location_expression)
5994 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5995 (locexpr_describe_location_piece): Update.
5996 * c-exp.y (%union) <bval>: Now const.
5997 * breakpoint.c (resolve_sal_pc): Update.
5998 * blockframe.c (get_frame_block):Make return type const.
5999 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6000 (block_innermost_frame): Update.
6001 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6002 (block_for_pc, block_for_pc_sect): Update.
6003 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6005 (block_for_pc_sect, block_for_pc): Make return type const.
6006 * ax-gdb.c (gen_expr): Update.
6007 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6008 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6009 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6010 (ada_read_var_value): Update.
6011 * ada-exp.y (struct name_info) <block>: Now const.
6013 (block_lookup): Constify.
6015 2014-06-18 Gary Benson <gbenson@redhat.com>
6017 * nat/i386-dregs.h: New file.
6018 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6019 * i386-nat.h (i386-dregs.h): New include.
6020 (DR_FIRSTADDR): Now in i386-dregs.h.
6021 (DR_LASTADDR): Likewise.
6022 (DR_NADDR): Likewise.
6023 (DR_STATUS): Likewise.
6024 (DR_CONTROL): Likewise.
6025 (i386_debug_reg_state): Likewise.
6026 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6028 2014-06-18 Don Breazeal <donb@codesourcery.com>
6030 * breakpoint.c (set_longjmp_breakpoint): Call
6031 momentary_breakpoint_from_master with additional argument.
6032 (set_longjmp_breakpoint_for_call_dummy): Call
6033 momentary_breakpoint_from_master with additional argument.
6034 (set_std_terminate_breakpoint): Call
6035 momentary_breakpoint_from_master with additional argument.
6036 (momentary_breakpoint_from_master): Add argument to function
6037 definition and use it to initialize structure member flag.
6038 (clone_momentary_breakpoint): Call
6039 momentary_breakpoint_from_master with additional argument.
6040 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6041 member flags set in momentary_breakpoint_from_master.
6043 2014-06-18 Gary Benson <gbenson@redhat.com>
6045 * i386-nat.c (i386_show_dr): Renamed to
6046 i386_dr_show and made nonstatic. All uses updated.
6047 (i386_length_and_rw_bits): Renamed to
6048 i386_dr_length_and_rw_bits and made nonstatic.
6050 (i386_insert_aligned_watchpoint): Renamed to
6051 i386_dr_insert_aligned_watchpoint and made nonstatic.
6053 (i386_remove_aligned_watchpoint): Renamed to
6054 i386_dr_remove_aligned_watchpoint and made nonstatic.
6056 (i386_update_inferior_debug_regs): Renamed to
6057 i386_dr_update_inferior_debug_regs and made nonstatic.
6060 2014-06-18 Gary Benson <gbenson@redhat.com>
6062 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6063 (i386_dr_low_can_set_control): Likewise.
6064 (i386_dr_low_set_addr): Likewise.
6065 (i386_dr_low_set_control): Likewise.
6066 (i386_dr_low_get_addr): Likewise.
6067 (i386_dr_low_get_status): Likewise.
6068 (i386_dr_low_get_control): Likewise.
6069 (i386_insert_aligned_watchpoint): Use new macros.
6070 (i386_update_inferior_debug_regs): Likewise.
6071 (i386_stopped_data_address): Likewise.
6073 2014-06-18 Gary Benson <gbenson@redhat.com>
6075 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6076 New parameter. All uses updated.
6078 2014-06-18 Gary Benson <gbenson@redhat.com>
6080 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6083 2014-06-18 Gary Benson <gbenson@redhat.com>
6085 * i386-nat.c (debug_printf): New macro.
6086 (i386_get_debug_register_length): Likewise.
6087 (TARGET_HAS_DR_LEN_8): Use above macro.
6088 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6089 and printf_unfiltered. Use phex to format values.
6091 2014-06-18 Gary Benson <gbenson@redhat.com>
6093 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6096 2014-06-18 Gary Benson <gbenson@redhat.com>
6098 * i386-nat.c: Comment changes.
6100 2014-06-18 Gary Benson <gbenson@redhat.com>
6102 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6104 2014-06-18 Gary Benson <gbenson@redhat.com>
6106 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6107 (i386_insert_aligned_watchpoint): Likewise.
6108 (i386_remove_aligned_watchpoint): Likewise.
6109 (i386_handle_nonaligned_watchpoint): Likewise.
6111 2014-06-18 Gary Benson <gbenson@redhat.com>
6113 * i386-nat.c: Whitespace changes.
6115 2014-06-17 Samuel Bronson <naesten@gmail.com>
6117 * MAINTAINERS: Update Roland McGrath's email address.
6118 Thanks to Sergio Durigan Junior for pointing out that he left
6119 Red Hat a while ago, and giving me a current address.
6121 2014-06-17 Tom Tromey <tromey@redhat.com>
6123 * utils.h (savestring): Remove declaration.
6125 2014-06-17 Tom Tromey <tromey@redhat.com>
6127 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6129 2014-06-16 Keith Seitz <keiths@redhat.com>
6132 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6133 to update the varobj if inferior_ptid is null_ptid.
6135 2014-06-16 Tom Tromey <tromey@redhat.com>
6137 * target.h (struct target_ops) <to_info_proc>: Make parameter
6139 (target_info_proc): Update.
6140 * target.c (target_info_proc): Make "args" const.
6141 * procfs.c (procfs_info_proc): Update.
6142 * linux-tdep.c (linux_info_proc): Update.
6143 (linux_core_info_proc_mappings): Make "args" const.
6144 (linux_core_info_proc): Update.
6145 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6146 * gdbarch.c: Rebuild.
6147 * gdbarch.h: Rebuild.
6148 * corelow.c (core_info_proc): Update.
6150 2014-06-16 Tom Tromey <tromey@redhat.com>
6152 * target.h (struct target_ops) <to_disconnect>: Make parameter
6154 (target_disconnect): Update.
6155 * target.c (target_disconnect): Make "args" const.
6156 * target-delegates.c: Rebuild.
6157 * remote.c (remote_disconnect): Update.
6158 * record.h (record_disconnect): Update.
6159 * record.c (record_disconnect): Update.
6160 * inf-child.c (inf_child_disconnect): Update.
6162 2014-06-16 Tom Tromey <tromey@redhat.com>
6164 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6165 * target.c (debug_to_rcmd, default_rcmd): Update.
6166 * target-delegates.c: Rebuild.
6167 * remote.c (remote_rcmd): Update.
6168 * monitor.c (monitor_rcmd): Update.
6170 2014-06-16 Pedro Alves <palves@redhat.com>
6172 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6173 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6174 have OBJF_SHARED set.
6175 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6176 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6177 instead of OBJF_USERLOADED.
6178 * objfiles.h (OBJF_SHARED): Update comment.
6179 (userloaded_objfile_contains_address_p): Rename to ...
6180 (shared_objfile_contains_address_p): ... this, and update
6182 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6184 (remove_symbol_file_command): Skip objfiles that don't have
6187 2014-06-16 Tom Tromey <tromey@redhat.com>
6189 * minsyms.h (prim_record_minimal_symbol)
6190 (prim_record_minimal_symbol_and_info): Update comments.
6192 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6194 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6195 or --without-guile, according to how GDB was built.
6197 2014-06-13 Tom Tromey <tromey@redhat.com>
6199 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6201 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6203 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6205 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6206 help_list.Pass all_commands, not -1, to help_list.
6207 * cli/cli-dump.c (dump_command, append_command)
6208 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6209 (binary_dump_command, binary_append_command): Pass all_commands,
6210 not -1, to help_list.
6211 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6213 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6215 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6217 * top.c (set_history): Pass all_commands, not -1, to help_list.
6218 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6219 all_commands, not -1, to help_list.
6220 * symfile.c (overlay_command): Pass all_commands, not -1, to
6222 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6224 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6226 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6228 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6229 not -1, to help_list.
6230 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6231 not -1, to help_list.
6232 * maint.c (maintenance_command, maintenance_info_command)
6233 (maintenance_print_command, maintenance_set_cmd): Pass
6234 all_commands, not -1, to help_list.
6235 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6237 * language.c (set_check): Pass all_commands, not -1, to help_list.
6238 * infcmd.c (unset_command): Pass all_commands, not -1, to
6240 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6242 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6244 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6246 * breakpoint.c (save_command): Pass all_commands, not -1, to
6248 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6249 all_commands, not -1, to help_list.
6251 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6253 * regcache.c (struct register_to_invalidate): New structure.
6254 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6256 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6258 2014-06-12 Yao Qi <yao@codesourcery.com>
6260 * varobj.c (varobj_get_num_children): Call
6261 varobj_is_dynamic_p.
6262 (varobj_list_children): Likewise.
6263 (varobj_update): Likewise. Update comments.
6265 2014-06-12 Yao Qi <yao@codesourcery.com>
6267 * varobj.c (varobj_pretty_printed_p): Rename to ...
6268 (varobj_is_dynamic_p): ... this. New function.
6269 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6270 (varobj_is_dynamic_p): Declare.
6271 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6272 (mi_print_value_p, varobj_update_one): Likewise.
6274 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6275 Yao Qi <yao@codesourcery.com>
6277 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6278 (varobj_get_iterator): Wrap up code for pretty-printer by
6279 "#if HAVE_PYTHON" and "#endif".
6280 (update_dynamic_varobj_children): Likewise.
6282 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6283 Yao Qi <yao@codesourcery.com>
6285 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6286 gdb_python_initialized is false. Move some code from varobj.c.
6287 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6288 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6289 (struct varobj_item): Moved to varobj-iter.h".
6290 (varobj_clear_saved_item): New function.
6291 (update_dynamic_varobj_children): Move python-related code to
6293 (free_variable): Call varobj_clear_saved_item and
6296 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6297 Yao Qi <yao@codesourcery.com>
6299 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6300 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6301 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6302 (py-varobj.o): New rule.
6303 * python/py-varobj.c: New file.
6304 * python/python-internal.h (py_varobj_get_iterator): Declare.
6305 * varobj-iter.h: New file.
6306 * varobj.c: Include "varobj-iter.h"
6307 (struct varobj) <child_iter>: Change its type from "PyObject *"
6308 to "struct varobj_iter *".
6309 <saved_item>: Likewise.
6310 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6311 [HAVE_PYTHON] (varobj_get_iterator): New function.
6312 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6313 python-specific code to python/py-varobj.c.
6314 (install_visualizer): Call varobj_iter_delete instead of
6316 * varobj.h (varobj_ensure_python_env): Declare.
6318 2014-06-12 Yao Qi <yao@codesourcery.com>
6320 * varobj.c (struct varobj_item): New structure.
6321 (create_child_with_value): Update declaration.
6322 (varobj_add_child): Replace arguments 'name' and 'value' with
6323 'item'. All callers updated.
6324 (install_dynamic_child): Likewise.
6325 (update_dynamic_varobj_children): Likewise.
6326 (varobj_add_child): Likewise.
6327 (create_child_with_value): Likewise.
6329 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6331 * NEWS: Create a new section for the next release branch.
6332 Rename the section of the current branch, now that it has
6335 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6337 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6338 * version.in: Bump version to 7.8.50.DATE-cvs.
6340 2014-06-11 Pedro Alves <palves@redhat.com>
6343 * ser-mingw.c (net_windows_socket_check_pending): New function.
6344 (net_windows_select_thread): Ignore spurious wakeups. Use
6345 net_windows_socket_check_pending.
6346 (net_windows_wait_handle): Check for pending events with
6347 ioctlsocket, through net_windows_socket_check_pending, instead of
6348 checking the socket's event.
6350 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6352 * python/python-internal.h (gdb_PyObject_GetAttrString)
6353 (gdb_PyObject_HasAttrString): New inline function definitions.
6354 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6355 char * of the second argument to PyObject_GetAttrString.
6357 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6359 * serial.c (serial_write): Fix index of character to be printed
6360 in call to serial_logchar when serial debug traces are enabled.
6362 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6364 * gdbtypes (resolve_dynamic_range): Add function description.
6366 2014-06-09 Pedro Alves <palves@redhat.com>
6368 * linux-nat.c (linux_child_follow_fork): Initialize status with
6369 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6370 inner block. Only pass the signal to PTRACE_DETACH if in pass
6373 2014-06-09 Gary Benson <gbenson@redhat.com>
6375 * common/signals.c (gdb_signal_from_host): Reorder to separate
6376 the always-available ANSI-standard signals from the signals that
6378 (do_gdb_signal_to_host): Likewise.
6379 * proc-events.c (signal_table): Likewise.
6381 2014-06-08 Hui Zhu <hui@codesourcery.com>
6383 * common/linux-ptrace.c (linux_disable_event_reporting): New
6385 * common/linux-ptrace.h (linux_disable_event_reporting): New
6387 * linux-nat.c (linux_child_follow_fork): Do a single step before
6390 2014-06-07 Keith Seitz <keiths@redhat.com>
6394 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6395 from symbol_matches_domain in symtab.c. All local callers
6396 of symbol_matches_domain updated.
6397 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6398 search STRUCT_DOMAIN.
6399 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6400 independently. standard_lookup will do that automatically.
6401 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6402 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6403 (cp_lookup_symbol_in_namespace): Likewise.
6404 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6405 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6406 may return a STRUCT_DOMAIN match.
6407 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6408 * cp-support.c: Include language.h.
6409 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6411 * psymtab.c (match_partial_symbol): Compare the requested
6412 domain with the symbol's domain directly.
6413 (lookup_partial_symbol): Likewise.
6414 * symtab.c (lookup_symbol_in_language): Explain when/why
6415 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6416 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6417 appropriate languages.
6418 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6419 and moved to ada-lang.c
6420 (lookup_block_symbol): Explain that this function only returns
6421 symbol matching the requested DOMAIN.
6422 Compare the requested domain with the symbol's domain directly.
6423 (iterate_over_symbols): Compare the requested domain with the
6424 symbol's domain directly.
6425 * symtab.h (symbol_matches_domain): Remove.
6427 2014-06-06 Doug Evans <xdje42@gmail.com>
6429 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6430 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6431 (gdbscm_guile_version_is_at_least): Declare.
6432 (gdbscm_scm_string_to_int): Declare.
6433 * guile/guile.c (gdbscm_guile_major_version): New global.
6434 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6435 (guile_datadir): New static global.
6436 (gdbscm_guile_data_directory): New function.
6437 (initialize_scheme_side): Update.
6438 (misc_guile_functions): Add guile-data-directory.
6439 (initialize_gdb_module): Fetch guile version number.
6440 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6441 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6442 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6443 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6445 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6446 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6447 * guile/scm-value.c (gdbscm_value_to_string): Only call
6448 scm_port_conversion_strategy if Guile version >= 2.0.6.
6450 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6452 * main.c (print_gdb_help): Add -q and --silent.
6454 2014-06-06 Gary Benson <gbenson@redhat.com>
6456 * common/signals.c: Remove preprocessor conditionals for
6457 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6458 SIGSEGV and SIGTERM.
6459 * proc-events.c: Likewise.
6461 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6463 * symfile.c (symfile_free_objfile): Remove restriction to
6465 * symfile-mem.c (symbol_file_add_from_memory): Call
6466 add_target_sections_of_objfile.
6468 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6470 * guile/scm-value.c (gdbscm_history_append_x): Use
6471 'vlscm_get_value_smob_arg_unsafe' instead of
6472 'vlscm_scm_to_value'.
6474 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6477 * utils.c (printchar): Don't escape at all if quoter is NUL.
6478 Update function documentation to clarify effect of parameter
6480 * remote.c (escape_buffer): Pass '\\' as the quoter to
6481 fputstrn_unfiltered.
6482 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6483 generate the output.
6484 (mi_solib_unloaded): Same.
6486 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6488 * development.sh: Delete.
6489 * Makefile.in (config.status): Adjust dependency on development.sh.
6490 * configure.ac: Adjust development.sh source call.
6491 * configure: Regenerate.
6493 2014-06-04 Doug Evans <xdje42@gmail.com>
6495 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6496 is_scheme_bkpt, spec.
6497 (bpscm_make_breakpoint_smob): Initialize new members.
6498 (gdbscm_create_breakpoint_x): Split into two ...
6499 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6500 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6501 (scheme_function breakpoint_functions): Update.
6502 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6503 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6504 register-breakpoint!.
6506 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6509 * mem-break.c (z_type_supported): Return zero if
6510 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6512 2014-06-04 Tom Tromey <tromey@redhat.com>
6514 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6515 value_from_contents_and_address_unresolved.
6516 (ada_template_to_fixed_record_type_1): Likewise.
6517 (ada_which_variant_applies): Likewise.
6518 * value.h (value_from_contents_and_address_unresolved): Declare.
6519 * value.c (value_from_contents_and_address_unresolved): New
6521 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6522 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6523 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6525 2014-06-04 Tom Tromey <tromey@redhat.com>
6527 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6529 2014-06-04 Tom Tromey <tromey@redhat.com>
6531 * procfs.c (procfs_attach): Make "args" const.
6532 * windows-nat.c (windows_attach): Make "args" const.
6533 * nto-procfs.c (procfs_attach): Make "args" const.
6534 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6535 * go32-nat.c (go32_attach): Make "args" const.
6536 * gnu-nat.c (gnu_attach): Make "args" const.
6537 * darwin-nat.c (darwin_attach): Make "args" const.
6538 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6539 * linux-nat.c (linux_nat_attach): Make "args" const.
6540 * remote.c (extended_remote_attach_1, extended_remote_attach):
6542 * target.h (struct target_ops) <to_attach>: Make "args" const.
6543 (find_default_attach): Likewise.
6544 * utils.c (parse_pid_to_attach): Make "args" const.
6545 * utils.h (parse_pid_to_attach): Update.
6547 2014-06-04 Tom Tromey <tromey@redhat.com>
6549 * target-delegates.c: Rebuild.
6550 * target.c (default_thread_address_space): New function.
6551 (target_thread_address_space): Simplify.
6552 * target.h (struct target_ops) <to_thread_address_space>: Add
6553 TARGET_DEFAULT_FUNC.
6555 2014-06-04 Doug Evans <xdje42@gmail.com>
6557 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6559 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6561 * record-btrace.c: Include event-loop.h and inf-loop.h.
6562 (record_btrace_resume_exec_dir)
6563 (record_btrace_async_inferior_event_handler)
6564 (record_btrace_handle_async_inferior_event): New.
6565 (record_btrace_open): Create async event handler.
6566 (record_btrace_close): Delete async event handler.
6567 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6568 Mark async event handler.
6569 (record_btrace_execution_direction): New.
6570 (init_record_btrace_ops): Initialize to_execution_direction.
6572 2014-06-03 Doug Evans <xdje42@gmail.com>
6574 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6575 (gdbscm_make_parameter): Ditto.
6577 2014-06-03 Doug Evans <dje@google.com>
6579 * exec.c (exec_close_1): Call clear_section_table instead of
6580 resize_section_table.
6581 (clear_section_table): New function.
6582 (resize_section_table): Make static. Rename arg num_added to
6584 * exec.h (clear_section_table): Declare.
6585 (resize_section_table): Delete.
6586 * progspace.c (release_program_space): Call clear_section_table
6587 instead of resize_section_table.
6589 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6591 * NEWS (Python Scripting): Add entry about the new xmethods
6594 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6596 * python/py-xmethods.c: New file.
6597 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6598 (objfpy_dealloc): XDECREF on the new xmethods field.
6599 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6601 (objfpy_get_xmethods): New function.
6602 (objfile_getset): New entry 'xmethods'.
6603 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6604 (pspy_dealloc): XDECREF on the new xmethods field.
6605 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6607 (pspy_get_xmethods): New function.
6608 (pspace_getset): New entry 'xmethods'.
6609 * python/python-internal.h: Add declarations for new functions.
6610 * python/python.c (_initialize_python): Invoke
6611 gdbpy_initialize_xmethods.
6612 * python/lib/gdb/__init__.py (xmethods): New
6614 * python/lib/gdb/xmethod.py: New file.
6615 * python/lib/gdb/command/xmethods.py: New file.
6617 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6619 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6620 best match method returned by find_overload_match is an xmethod.
6621 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6622 the best matching operator returned by find_overload_match is an
6624 * valops.c: #include "extension.h".
6625 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6626 Return void. The list of matching source methods is returned in
6627 "fn_list" and a vector of matching debug method workers is
6628 returned in "xm_worker_vec". Update all callers.
6629 (value_find_oload_method_list): Likewise.
6630 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6631 non-NULL, then the index of the best matching method in this
6632 vector is returned. Update all callers.
6633 (find_overload_match): Include xmethods while performing overload
6636 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6638 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6639 * extension-priv.h (struct extension_language_ops): Add the
6641 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6642 get_matching_xmethod_workers, get_xmethod_argtypes,
6643 invoke_xmethod, free_xmethod_worker,
6644 free_xmethod_worker_vec): New functions.
6645 * extension.h: #include "common/vec.h".
6646 New function declarations.
6647 (struct xmethod_worker): New struct.
6648 (VEC (xmethod_worker_ptr)): New vector type.
6649 (xmethod_worker_ptr): New typedef.
6650 (xmethod_worker_vec): Likewise.
6651 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6653 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6654 (struct builtin_type): New field "xmethod".
6655 * valarith.c (value_ptradd): Assert that the value argument is not
6657 * valops.c (value_must_coerce_to_target): Return 0 for
6658 lval_xcallable values.
6659 * value.c (struct value): New field XM_WORKER in the field
6661 (value_address, value_raw_address): Return 0 for lval_xcallable
6663 (set_value_address): Assert that the value is not an
6665 (value_free): Free the associated xmethod worker when freeing
6666 lval_xcallable values.
6667 (set_value_component_location): Assert that the WHOLE value is not
6669 (value_of_xmethod, call_xmethod): New functions.
6670 * value.h: Declare "struct xmethod_worker".
6671 Declare new functions value_of_xmethod, call_xmethod.
6673 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6674 Pedro Alves <palves@redhat.com>
6676 PR breakpoints/17000
6677 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6678 New function, extracted from software_breakpoint_inserted_here_p.
6679 (software_breakpoint_inserted_here_p): Replace factored out code
6680 by call to find_non_raw_software_breakpoint_inserted_here.
6681 (bp_target_info_copy_insertion_state): New function.
6682 (bkpt_insert_location): Handle the case of a single-step
6683 breakpoint already inserted at the same address.
6684 (bkpt_remove_location): Handle the case of a single-step
6685 breakpoint still inserted at the same address.
6686 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6687 breakpoint already inserted at the same address.
6688 (deprecated_remove_raw_breakpoint): Handle the case of a
6689 non-raw breakpoint still inserted at the same address.
6690 (find_single_step_breakpoint): New function, extracted from
6691 single_step_breakpoint_inserted_here_p.
6692 (find_single_step_breakpoint): New function,
6693 factored out from single_step_breakpoint_inserted_here_p.
6694 (single_step_breakpoint_inserted_here_p): Reimplement.
6696 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6698 Pushed by Joel Brobecker <brobecker@adacore.com>
6699 * source.c (show_substitute_path_command): Fix display of matching
6702 2014-06-03 Gary Benson <gbenson@redhat.com>
6704 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6706 2014-06-02 Doug Evans <xdje42@gmail.com>
6708 Add parameter support for Guile.
6709 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6710 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6711 (scm-param.o): New rule.
6712 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6713 (gdbscm_misc_error): Declare.
6714 (gdbscm_canonicalize_command_name): Declare.
6715 (gdbscm_scm_to_host_string): Declare.
6716 (gdbscm_scm_from_host_string): Declare.
6717 (gdbscm_initialize_parameters): Declare.
6718 * guile/guile.c (initialize_gdb_module): Call
6719 gdbscm_initialize_parameters.
6720 * guile/lib/gdb.scm: Export parameter symbols.
6721 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6722 cmdscm_canonicalize_name and made public. All callers updated.
6723 * guile/scm-exception.c (gdbscm_misc_error): New function.
6724 * guile/scm-param.c: New file.
6725 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6726 (gdbscm_scm_to_host_string): New function.
6727 (gdbscm_scm_from_host_string): New function.
6728 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6730 2014-06-02 Doug Evans <xdje42@gmail.com>
6732 Add command support for Guile.
6733 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6734 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6735 (scm-cmd.o): New rule.
6736 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6737 (gdbscm_user_error_p): Declare.
6738 (gdbscm_parse_command_name): Declare.
6739 (gdbscm_valid_command_class_p): Declare.
6740 (gdbscm_initialize_commands): Declare.
6741 * guile/guile.c (initialize_gdb_module): Call
6742 gdbscm_initialize_commands.
6743 * guile/lib/gdb.scm: Export command symbols.
6744 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6745 (throw-user-error): New function.
6746 * guile/scm-cmd.c: New file.
6747 * guile/scm-exception.c (user_error_symbol): New static global.
6748 (gdbscm_user_error_p): New function.
6749 (gdbscm_initialize_exceptions): Set user_error_symbol.
6750 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6752 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6754 * top.c (command_loop): Handle comments here...
6755 (command_line_input): ... not here.
6757 2014-06-02 Doug Evans <xdje42@gmail.com>
6759 Add progspace support for Guile.
6760 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6761 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6762 (scm-progspace.o): New rule.
6763 * guile/guile-internal.h (pspace_smob): New typedef.
6764 (psscm_pspace_smob_pretty_printers): Declare.
6765 (psscm_pspace_smob_from_pspace): Declare.
6766 (psscm_scm_from_pspace): Declare.
6767 * guile/guile.c (initialize_gdb_module): Call
6768 gdbscm_initialize_pspaces.
6769 * guile/lib/gdb.scm: Export progspace symbols.
6770 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6772 (append-pretty-printer!): Ditto.
6773 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6775 * guile/scm-progspace.c: New file.
6777 2014-06-03 Alan Modra <amodra@gmail.com>
6779 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6780 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6782 2014-06-02 Doug Evans <dje@google.com>
6784 Add support for skeletonless type units.
6785 * dwarf2read.c (struct dwarf2_per_objfile): New member
6786 n_allocated_type_units.
6787 (struct dwarf2_per_objfile) <tu_stats>: New member
6788 nr_all_type_units_reallocs.
6789 (create_signatured_type_table_from_index): Initialize
6790 n_allocated_type_units
6791 (create_all_type_units): Ditto.
6792 (add_type_unit): Move up in file. New arg slot.
6793 All callers updated. Increase space for all_type_units more
6795 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6796 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6797 (lookup_dwp_signatured_type): Ditto.
6798 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6799 All callers updated.
6800 (build_type_psymtabs_1): Leave type_unit_groups as
6801 NULL if no TUs present.
6802 (print_tu_stats): New function.
6803 (process_skeletonless_type_unit): New function.
6804 (process_dwo_file_for_skeletonless_type_units): New
6806 (process_skeletonless_type_units): New function.
6807 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6808 Call print tu_stats if debugging enabled.
6810 2014-06-02 Pedro Alves <palves@redhat.com>
6812 * breakpoint.c (build_target_command_list): Don't build a command
6813 list if we have any duplicate location that isn't a dprintf.
6815 2014-06-02 Pedro Alves <palves@redhat.com>
6817 * breakpoint.c (dprintf_breakpoint_hit): New function.
6818 (initialize_breakpoint_ops): Install it as dprintf's
6819 breakpoint_hit method.
6821 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6823 * source.c (substitute_path_rule_matches): Simplify using
6824 filename_ncmp instead of FILENAME_CMP.
6826 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6828 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6830 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6832 * configure.ac: When Guile is available, check for the
6833 availability of 'scm_new_smob'.
6834 * configure, config.h.in: Regenerate.
6835 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6838 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6840 * frame.c (struct frame_info): Add stop_string field.
6841 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6842 (get_prev_frame_always): Old content moved into
6843 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6844 TRY_CATCH, handle MEMORY_ERROR exceptions.
6845 (frame_stop_reason_string): New function definition.
6846 * frame.h (unwind_stop_reason_to_string): Extend comment to
6847 mention frame_stop_reason_string.
6848 (frame_stop_reason_string): New function declaration.
6849 * stack.c (frame_info): Switch to frame_stop_reason_string.
6850 (backtrace_command_1): Switch to frame_stop_reason_string.
6851 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6852 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6853 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6855 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6857 * frame.c (frame_stop_reason_string): Rename to ...
6858 (unwind_stop_reason_to_string): this.
6859 * frame.h (frame_stop_reason_string): Rename to ...
6860 (unwind_stop_reason_to_string): this.
6861 * stack.c (frame_info): Update call to frame_stop_reason_string.
6862 (backtrace_command_1): Likewise.
6863 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6864 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6866 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6868 * frame.c (remove_prev_frame): New function.
6869 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6872 2014-05-29 Pedro Alves <palves@redhat.com>
6874 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6875 and make it const. When a single-step decays to a continue,
6876 clear 'step', not 'hw_step'. Pass whether the caller wanted
6877 to step to user_visible_resume_ptid, not what we ask the
6880 2014-05-29 Pedro Alves <palves@redhat.com>
6882 * infrun.c (process_event_stop_test, handle_step_into_function)
6883 (handle_step_into_function_backward): Adjust.
6884 Don't set the even thread's stop_step and call stop_waiting before
6885 calling end_stepping_range. Instead do that ...
6886 (end_stepping_range): ... here. Take an ecs pointer parameter.
6888 2014-05-29 Pedro Alves <palves@redhat.com>
6890 * infrun.c (stop_stepping): Rename to ...
6891 (stop_waiting): ... this.
6892 (proceed): Update comment.
6893 (process_event_stop_test, handle_inferior_event)
6894 (handle_signal_stop, handle_step_into_function)
6895 (handle_step_into_function_backward): Update.
6897 2014-05-29 Pedro Alves <palves@redhat.com>
6899 * infcall.c (run_inferior_call): Don't check whether the current
6900 thread is running after the proceed call.
6902 2014-05-29 Pedro Alves <palves@redhat.com>
6903 Tom Tromey <tromey@redhat.com>
6905 * NEWS: Mention "maint set target-async", "set mi-async", and that
6906 background execution commands are now always available.
6907 * target.h (target_async_permitted): Update comment.
6908 * target.c (target_async_permitted, target_async_permitted_1):
6910 (set_target_async_command): Rename to ...
6911 (maint_set_target_async_command): ... this.
6912 (show_target_async_command): Rename to ...
6913 (maint_show_target_async_command): ... this.
6914 (_initialize_target): Adjust.
6915 * infcmd.c (prepare_execution_command): Make extern.
6916 * inferior.h (prepare_execution_command): Declare.
6917 * infrun.c (set_observer_mode): Leave target async alone.
6918 * mi/mi-interp.c (mi_interpreter_init): Install
6919 mi_on_sync_execution_done as sync_execution_done observer.
6920 (mi_on_sync_execution_done): New function.
6921 (mi_execute_command_input_handler): Don't print the prompt if we
6922 just started a synchronous command with an async target.
6923 (mi_on_resume): Check sync_execution before printing prompt.
6924 * mi/mi-main.h (mi_async_p): Declare.
6925 * mi/mi-main.c: Include gdbcmd.h.
6926 (mi_async_p): New function.
6927 (mi_async, mi_async_1): New globals.
6928 (set_mi_async_command, show_mi_async_command, mi_async): New
6930 (exec_continue): Call prepare_execution_command.
6931 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6932 (mi_execute_async_cli_command): Use mi_async_p.
6933 (_initialize_mi_main): Install "set mi-async". Make
6934 "target-async" a deprecated alias.
6936 2014-05-29 Pedro Alves <palves@redhat.com>
6938 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6939 (_initialize_cli_interp): Adjust.
6940 * event-loop.c: Include "observer.h".
6941 (start_event_loop): Notify 'command_error' observers instead of
6942 calling display_gdb_prompt. Remove FIXME comment.
6943 * event-top.c (display_gdb_prompt): Remove call into the
6945 * inf-loop.c: Include "observer.h".
6946 (inferior_event_handler): Notify 'command_error' observers instead
6947 of calling display_gdb_prompt.
6948 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6949 observers instead of calling display_gdb_prompt.
6950 * interps.c (interp_set): Don't call display_gdb_prompt.
6951 (current_interp_display_prompt_p): Delete.
6952 * interps.h (interp_prompt_p): Delete declaration.
6953 (interp_prompt_p_ftype): Delete.
6954 (struct interp_procs) <prompt_proc_p>: Delete field.
6955 (current_interp_display_prompt_p): Delete declaration.
6956 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6957 (_initialize_mi_interp): Adjust.
6958 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6959 'command_error' observers.
6960 (tui_on_sync_execution_done, tui_on_command_error): New
6962 (tui_display_prompt_p): Delete.
6963 (_initialize_tui_interp): Adjust.
6965 2014-05-29 Pedro Alves <palves@redhat.com>
6968 * cli/cli-interp.c: Include infrun.h and observer.h.
6969 (cli_uiout, cli_interp): New globals.
6970 (cli_on_signal_received, cli_on_end_stepping_range)
6971 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6973 (cli_interpreter_init): Install them as 'end_stepping_range',
6974 'signal_received' 'signal_exited', 'exited' and 'no_history'
6976 (_initialize_cli_interp): Remove cli_interp local.
6977 * infrun.c (handle_inferior_event): Call the several stop reason
6978 observers instead of printing the stop reason directly.
6979 (end_stepping_range): New function.
6980 (print_end_stepping_range_reason, print_signal_exited_reason)
6981 (print_exited_reason, print_signal_received_reason)
6982 (print_no_history_reason): Make static, and add an uiout
6983 parameter. Print to that instead of to CURRENT_UIOUT.
6984 * infrun.h (print_end_stepping_range_reason)
6985 (print_signal_exited_reason, print_exited_reason)
6986 (print_signal_received_reason print_no_history_reason): New
6988 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6990 <cli_uiout>: New field.
6991 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6992 uiout for CLI output. Install 'signal_received',
6993 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6995 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6996 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6997 (mi_on_no_history): New functions.
6998 (ui_out_free_cleanup): Delete function.
6999 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7000 instead use the one already stored in the MI interpreter data.
7001 (mi_ui_out): Adjust.
7002 * tui/tui-interp.c: Include infrun.h and observer.h.
7003 (tui_interp): New global.
7004 (tui_on_signal_received, tui_on_end_stepping_range)
7005 (tui_on_signal_exited, tui_on_exited)
7006 (tui_on_no_history): New functions.
7007 (tui_init): Install them as 'end_stepping_range',
7008 'signal_received' 'signal_exited', 'exited' and 'no_history'
7010 (_initialize_tui_interp): Delete tui_interp local.
7012 2014-05-29 Pedro Alves <palves@redhat.com>
7015 * linux-nat.c (linux_nat_resume_callback): Rename the second
7016 parameter to 'except'. Skip LP if it points to EXCEPT.
7017 (linux_nat_resume): Don't mark the event lwp as not stopped
7018 before resuming sibling lwps. Instead ask
7019 linux_nat_resume_callback to skip the event lwp. Mark it as not
7020 stopped after actually resuming it.
7021 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7023 (wait_lwp): Mark the lwp as stopped here.
7024 (stop_wait_callback): Mark the lwp as not stopped right after
7025 resuming it. Don't mark lwps as stopped here.
7026 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7027 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7029 2014-05-29 Pedro Alves <palves@redhat.com>
7032 * infrun.c (resume): Determine how much to resume depending on
7033 whether the caller wanted a step, not whether we can hardware step
7034 the target. Mark all threads that we intend to run as running,
7035 unless we're calling an inferior function.
7036 (normal_stop): If the thread is running an infcall, don't finish
7038 * target.c (target_resume): Don't mark threads as running here.
7040 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7042 * serial.c (_initialize_serial): Remove support for
7043 the "set remotebaud" and "show remotebaud" commands.
7044 * NEWS: Add entry documenting the removal of that command.
7046 2014-05-28 Yao Qi <yao@codesourcery.com>
7048 * charset.c: Fix typo in comments.
7050 2014-05-27 Gary Benson <gbenson@redhat.com>
7052 * utils.c (internal_vproblem): Prompt for a bug report.
7054 2014-05-26 Andy Wingo <wingo@igalia.com>
7056 * guile/scm-arch.c (arscm_mark_arch_smob):
7057 * guile/scm-block.c (bkscm_mark_block_smob)
7058 (bkscm_mark_block_syms_progress_smob):
7059 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7060 * guile/scm-exception.c (exscm_mark_exception_smob):
7061 * guile/scm-frame.c (frscm_mark_frame_smob):
7062 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7063 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7064 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7065 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7066 (ppscm_mark_pretty_printer_worker_smob):
7067 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7068 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7069 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7070 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7072 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7075 2014-05-26 Andy Wingo <wingo@igalia.com>
7076 Doug Evans <xdje42@gmail.com>
7078 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7079 empty_base_class. All uses updated.
7080 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7081 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7083 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7084 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7085 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7086 (gdbscm_gsmob_has_property_p, add_property_name)
7087 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7088 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7089 (gdb-object-has-property?, gdb-object-properties): Remove.
7090 (gdb-object-kind): Renamed from gsmob-kind.
7092 2014-05-26 Andy Wingo <wingo@igalia.com>
7094 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7095 * configure: Regenerate.
7097 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7099 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7101 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7103 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7104 (replay_memory_access_read_only, replay_memory_access_read_write)
7105 (replay_memory_access_types, replay_memory_access)
7106 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7107 (cmd_set_record_btrace, cmd_show_record_btrace)
7108 (cmd_show_replay_memory_access): New.
7109 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7110 (record_btrace_remove_breakpoint): Replace
7111 record_btrace_allow_memory_access with replay_memory_access.
7112 (_initialize_record_btrace): Add commands.
7113 * NEWS: Announce it.
7115 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7117 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7119 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7121 * MAINTAINERS (Write After Approval): Move self back from
7124 2014-05-22 Pedro Alves <palves@redhat.com>
7126 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7127 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7128 (disable_randomization, enum exec_direction_kind)
7129 (execution_direction, stop_registers, start_remote)
7130 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7131 (wait_for_inferior, normal_stop, get_last_target_status)
7132 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7133 (insert_step_resume_breakpoint_at_sal)
7134 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7135 (set_step_info, print_stop_event, signal_stop_state)
7136 (signal_print_state, signal_pass_state, signal_stop_update)
7137 (signal_print_update, signal_pass_update)
7138 (update_signals_program_target, clear_exit_convenience_vars)
7139 (displaced_step_dump_bytes, update_observer_mode)
7140 (signal_catch_update, gdb_signal_from_command): Move
7142 * infrun.h: ... to this new file.
7143 * amd64-tdep.c: Include infrun.h.
7144 * annotate.c: Include infrun.h.
7145 * arch-utils.c: Include infrun.h.
7146 * arm-linux-tdep.c: Include infrun.h.
7147 * arm-tdep.c: Include infrun.h.
7148 * break-catch-sig.c: Include infrun.h.
7149 * breakpoint.c: Include infrun.h.
7150 * common/agent.c: Include infrun.h instead of inferior.h.
7151 * corelow.c: Include infrun.h.
7152 * event-top.c: Include infrun.h.
7153 * go32-nat.c: Include infrun.h.
7154 * i386-tdep.c: Include infrun.h.
7155 * inf-loop.c: Include infrun.h.
7156 * infcall.c: Include infrun.h.
7157 * infcmd.c: Include infrun.h.
7158 * infrun.c: Include infrun.h.
7159 * linux-fork.c: Include infrun.h.
7160 * linux-nat.c: Include infrun.h.
7161 * linux-thread-db.c: Include infrun.h.
7162 * monitor.c: Include infrun.h.
7163 * nto-tdep.c: Include infrun.h.
7164 * procfs.c: Include infrun.h.
7165 * record-btrace.c: Include infrun.h.
7166 * record-full.c: Include infrun.h.
7167 * remote-m32r-sdi.c: Include infrun.h.
7168 * remote-mips.c: Include infrun.h.
7169 * remote-notif.c: Include infrun.h.
7170 * remote-sim.c: Include infrun.h.
7171 * remote.c: Include infrun.h.
7172 * reverse.c: Include infrun.h.
7173 * rs6000-tdep.c: Include infrun.h.
7174 * s390-linux-tdep.c: Include infrun.h.
7175 * solib-irix.c: Include infrun.h.
7176 * solib-osf.c: Include infrun.h.
7177 * solib-svr4.c: Include infrun.h.
7178 * target.c: Include infrun.h.
7179 * top.c: Include infrun.h.
7180 * windows-nat.c: Include infrun.h.
7181 * mi/mi-interp.c: Include infrun.h.
7182 * mi/mi-main.c: Include infrun.h.
7183 * python/py-threadevent.c: Include infrun.h.
7185 2014-05-22 Pedro Alves <palves@redhat.com>
7187 * infrun.c (handle_inferior_event): Store the exit code for
7188 --return-child-result here, instead of ...
7189 (print_exited_reason): ... here.
7191 2014-05-21 Pedro Alves <palves@redhat.com>
7194 * gdbthread.h (struct thread_control_state): New field
7196 * infrun.c (follow_fork): Copy the new thread control field to the
7198 (clear_proceed_status_thread): Clear the new thread control field.
7199 (proceed): Set the new thread control field.
7200 * interps.h (command_interp): Declare.
7201 * interps.c (command_interpreter): New global.
7202 (command_interp): New function.
7203 (interp_exec): Set `command_interpreter' while here.
7204 * cli-out.c (cli_uiout_dtor): New function.
7205 (cli_ui_out_impl): Install it.
7206 * mi/mi-interp.c: Include cli-out.h.
7207 (mi_cmd_interpreter_exec): Add comment.
7208 (restore_current_uiout_cleanup): New function.
7209 (ui_out_free_cleanup): New function.
7210 (mi_on_normal_stop): If finishing an execution command started by
7211 a CLI command, or any kind of breakpoint-like event triggered,
7212 print the stop event to the output (CLI) stream.
7213 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7215 2014-05-21 Pedro Alves <palves@redhat.com>
7217 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7218 current source line having changed.
7219 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7220 * infrun.c (normal_stop): Adjust call to
7221 set_current_sal_from_frame.
7222 * source.c (clear_lines_listed_range): New function.
7223 (set_current_source_symtab_and_line, identify_source_line): Clear
7224 the lines listed range.
7225 (line_info): Handle the first "info line" after the current source
7226 line having changed.
7227 * stack.c (print_stack_frame): Remove center handling.
7228 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7231 2014-05-21 Pedro Alves <palves@redhat.com>
7233 * inf-child.c (inf_child_mourn_inferior): New function.
7234 * inf-child.h (inf_child_mourn_inferior): New declaration.
7235 * darwin-nat.c (darwin_mourn_inferior): Use
7236 inf_child_mourn_inferior.
7237 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7238 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7239 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7240 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7241 * windows-nat.c (windows_mourn_inferior): Likewise.
7243 2014-05-21 Doug Evans <xdje42@gmail.com>
7245 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7247 2014-05-21 Doug Evans <xdje42@gmail.com>
7249 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7250 (gdbscm_out_of_range_error): Ditto.
7251 (gdbscm_memory_error): Ditto.
7252 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7253 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7254 (gdbscm_out_of_range_error): Update.
7255 (gdbscm_memory_error): Update.
7256 (gdbscm_scm_to_target_string_unsafe): Delete.
7258 2014-05-21 Pedro Alves <palves@redhat.com>
7260 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7262 (inf_child_open_target): New function.
7263 (inf_child_open): Use inf_child_open_target to push the target
7264 instead of erroring out.
7265 (inf_child_disconnect, inf_child_close)
7266 (inf_child_maybe_unpush_target): New functions.
7267 (inf_child_target): Install inf_child_disconnect and
7268 inf_child_close. Store a pointer to the returned object.
7269 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7271 * target.c (auto_connect_native_target): New global.
7272 (show_default_run_target): New function.
7273 (find_default_run_target): Return NULL if automatically connecting
7274 to the native target is disabled.
7275 (_initialize_target): Install set/show auto-connect-native-target.
7276 * NEWS: Mention "set auto-connect-native-target", and "target
7278 * linux-nat.c (super_close): New global.
7279 (linux_nat_close): Call super_close.
7280 (linux_nat_add_target): Store a pointer to the base class's
7282 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7283 inf_child_maybe_unpush.
7284 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7286 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7287 the inferior. Use inf_child_maybe_unpush_target.
7288 (inf_ttrace_attach): Don't push the target if it is already
7290 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7291 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7292 after mourning the inferior. Use inf_child_maybe_unpush_target.
7293 (darwin_attach_pid): Don't push the target if it is already
7295 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7296 mourning the inferior. Use inf_child_maybe_unpush_target.
7297 (gnu_detach): Use inf_child_maybe_unpush_target.
7298 * go32-nat.c (go32_create_inferior): Don't push the target if it
7300 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7301 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7302 (procfs_open): Rename to ...
7303 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7304 comments. Can target_preopen before changing node. Call
7305 inf_child_open_target to push the target explicitly.
7306 (procfs_attach): Don't push the target if it is already pushed.
7307 (procfs_detach): Use inf_child_maybe_unpush_target.
7308 (procfs_create_inferior): Don't push the target if it is already
7310 (nto_native_ops): New global.
7311 (procfs_open): Reimplement.
7312 (procfs_native_open): New function.
7313 (init_procfs_targets): Install procfs_native_open as to_open of
7314 "target native". Store a pointer to the "native" target in
7316 * procfs.c (procfs_attach): Don't push the target if it is already
7318 (procfs_detach): Use inf_child_maybe_unpush_target.
7319 (procfs_mourn_inferior): Only unpush the target after mourning the
7320 inferior. Use inf_child_maybe_unpush_target.
7321 (procfs_init_inferior): Don't push the target if it is already
7323 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7324 if it is already pushed.
7326 2014-05-21 Pedro Alves <palves@redhat.com>
7328 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7329 and "procfs" targets are now called "native" instead.
7331 2014-05-21 Pedro Alves <palves@redhat.com>
7333 * go32-nat.c (go32_open): Delete.
7334 (go32_target): Don't override the to_open method.
7336 2014-05-21 Pedro Alves <palves@redhat.com>
7338 * nto-procfs.c (procfs_can_run): New function.
7339 (nto_procfs_ops): New global.
7340 (init_procfs_targets): New, based on procfs_target. Install
7341 "target native" in addition to "target procfs".
7342 (_initialize_procfs): Call init_procfs_targets instead of adding
7345 2014-05-21 Pedro Alves <palves@redhat.com>
7347 * windows-nat.c (windows_target): Don't override to_shortname,
7348 to_longname or to_doc.
7350 2014-05-21 Pedro Alves <palves@redhat.com>
7352 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7355 2014-05-21 Pedro Alves <palves@redhat.com>
7357 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7358 to_shortname, to_longname or to_doc.
7360 2014-05-21 Pedro Alves <palves@redhat.com>
7362 * go32-nat.c (go32_target): Don't override to_shortname,
7363 to_longname or to_doc.
7365 2014-05-21 Pedro Alves <palves@redhat.com>
7367 * inf-child.c (inf_child_open): Remove mention of "child".
7368 (inf_child_target): Rename target to "native" instead of "child".
7370 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7372 * Makefile.in (SFILES): Delete "regset.c".
7373 (COMMON_OBS): Delete "regset.o".
7375 * regset.h (regset_alloc): Delete prototype.
7377 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7379 * sparc-linux-tdep.c (sparc32_linux_gregset)
7380 (sparc32_linux_fpregset): New static regset structures.
7381 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7382 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7384 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7385 (sparc64_linux_fpregset): New static regset structures.
7386 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7387 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7388 New static regset structures.
7389 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7390 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7391 New static regset structures.
7392 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7393 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7394 New static regset structures.
7395 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7396 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7397 New static regset structures.
7398 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7400 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7402 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7403 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7404 register maps ("regmaps") from "*regset" to "*regmap". Do this
7405 for all regmap types and variables.
7406 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7407 (sparc32_linux_supply_core_gregset)
7408 (sparc32_linux_collect_core_gregset)
7409 (sparc32_linux_supply_core_fpregset)
7410 (sparc32_linux_collect_core_fpregset): Likewise.
7411 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7412 (sparc_gregmap, sparc_fpregmap): ... these.
7413 (sparc_supply_gregset, sparc_collect_gregset)
7414 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7415 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7416 (_initialize_sparc_nat): Rename regmaps.
7417 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7418 (sparc_gregmap, sparc_fpregmap): ... these.
7419 (sparc_supply_gregset, sparc_collect_gregset)
7420 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7421 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7423 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7424 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7426 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7428 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7429 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7430 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7432 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7433 (sparc32_bsd_fpregset): Rename to...
7434 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7435 (sparc32_bsd_fpregmap): ... these.
7436 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7437 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7438 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7439 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7440 (struct sparc_gregmap, struct sparc_fpregmap)
7441 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7442 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7443 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7444 (sparc32_supply_regset, sparc32_collect_gregset)
7445 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7447 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7448 (sparc64_linux_ptrace_gregmap): ... this.
7449 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7450 (_initialize_sparc64_linux_nat): Rename regmaps.
7451 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7452 (sparc64_linux_core_gregmap): ... this.
7453 (sparc64_linux_supply_core_gregset)
7454 (sparc64_linux_collect_core_gregset)
7455 (sparc64_linux_supply_core_fpregset)
7456 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7457 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7458 (sparc64_sol2_fpregset): Rename to...
7459 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7460 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7461 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7463 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7464 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7465 (sparc64_bsd_fpregset): Rename to...
7466 (struct sparc_gregmap, sparc64_sol2_gregmap)
7467 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7468 (sparc64_bsd_fpregmap): ... these.
7469 (sparc64_supply_gregset, sparc64_collect_gregset)
7470 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7472 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7473 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7474 (sparc64fbsd_gregmap): ... this.
7475 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7476 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7478 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7479 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7480 (sparc64nbsd_collect_fpregset): Likewise.
7481 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7482 (sparc64nbsd_gregmap): ... this.
7483 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7485 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7486 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7487 (sparc64obsd_gregmap): ... this.
7488 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7490 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7491 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7492 (sparc32nbsd_gregmap): ... this.
7493 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7496 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7498 * score-tdep.c (score7_linux_gregset): New static regset
7500 (score7_linux_regset_from_core_section): Remove dynamic regset
7502 (score_gdbarch_init): Drop allocation of tdep structure.
7503 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7505 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7507 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7509 (am33_regset_from_core_section): Remove dynamic regset
7512 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7514 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7515 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7517 (mips_linux_regset_from_core_section): Remove dynamic regset
7519 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7520 'gregset64', 'fpregset', and 'fpregset64'.
7521 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7522 deleted tdep fields.
7524 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7526 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7528 (amd64_regset_from_core_section): Remove dynamic regset
7530 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7532 (amd64obsd_regset_from_core_section): Remove dynamic regset
7534 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7536 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7537 x86-common regset supply function.
7538 * i386-tdep.c (i386_collect_gregset): Make static.
7539 (i386_gregset): New global regset structure.
7540 (i386_fpregset, i386_xstateregset): New static regset structures.
7541 (i386_regset_from_core_section): Remove dynamic regset
7543 (i386_gdbarch_init): Remove initialization of tdep fields
7544 'gregset', 'fpregset', and 'xstateregset'.
7545 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7546 'fpregset', and 'xstateregset'.
7547 (i386_collect_gregset): Remove prototype.
7548 (i386_gregset): New declaration.
7549 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7551 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7554 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7556 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7557 (arm_linux_vfpregset): New static regset structures.
7558 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7560 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7561 and 'vfpregset' fields.
7563 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7565 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7566 (aarch64_linux_fpregset): New static regset structures.
7567 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7568 of regset structures.
7569 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7572 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7574 * regset.h (struct regset): Remove gdbarch field.
7575 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7576 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7577 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7579 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7580 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7581 (ppc32_linux_vsxregset): Likewise.
7582 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7583 via the regcache instead of the regset.
7584 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7585 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7586 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7587 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7590 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7592 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7593 Constify structures.
7594 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7595 (alphanbsd_aout_gregset): Likewise.
7596 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7597 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7599 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7600 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7602 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7603 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7604 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7605 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7606 * m88k-tdep.c (m88k_gregset): Likewise.
7607 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7608 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7609 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7610 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7611 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7612 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7613 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7614 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7615 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7617 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7618 * sh-tdep.h (sh_corefile_gregset): Likewise.
7619 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7620 * vax-tdep.c (vax_gregset): Likewise.
7622 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7624 Fix TLS access for -static -pthread.
7625 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7626 (try_thread_db_load_1): Initialize it.
7627 (thread_db_get_thread_local_address): Call it if LM is zero.
7628 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7629 * target.h (struct target_ops) (to_get_thread_local_address): Add
7630 load_module_addr comment.
7632 2014-05-21 Pedro Alves <palves@redhat.com>
7634 * dcache.c (dcache_read_memory_partial): If reading the cache line
7635 fails, fallback to reading just the memory the caller wanted.
7637 2014-05-20 Doug Evans <dje@google.com>
7639 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7640 instead of get_current_arch.
7642 2014-05-20 Pedro Alves <palves@redhat.com>
7644 * NEWS: Mention that compare-sections now works with all targets.
7646 * remote.c (PACKET_qCRC): New enum value.
7647 (remote_verify_memory): Don't send qCRC if the target has no
7648 execution. Use packet_support/packet_ok. If the target doesn't
7649 support the qCRC packet, fallback to a deep memory copy.
7650 (compare_sections_command): Say "target image" instead of "remote
7652 (_initialize_remote): Add PACKET_qCRC to the list of config
7653 packets that have no associated command. Extend comment.
7654 * target.c (simple_verify_memory, default_verify_memory): New
7656 * target.h (struct target_ops) <to_verify_memory>: Default to
7657 default_verify_memory.
7658 (simple_verify_memory): New declaration.
7659 * target-delegates.c: Regenerate.
7661 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7663 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7665 2014-05-20 Hui Zhu <hui@codesourcery.com>
7666 Yao Qi <yao@codesourcery.com>
7669 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7670 and change address of sp and pc.
7672 2014-05-19 Tom Tromey <tromey@redhat.com>
7674 * gdbtypes.c (rank_function): Use XNEWVEC.
7675 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7677 2014-05-19 Doug Evans <dje@google.com>
7679 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7680 build_type_unit_groups and moved closer to only caller. Remove
7681 arguments. All references updated. Remove outdated .gdb_index
7683 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7684 build_type_psymtabs_1.
7686 2014-05-19 Doug Evans <dje@google.com>
7688 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7689 n_type_unit_groups, all_type_unit_groups. All uses removed.
7690 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7691 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7692 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7693 (add_type_unit_group_to_table): Delete.
7695 2014-05-19 Doug Evans <dje@google.com>
7697 * eval.c (evaluate_subexp_standard): Add some comments.
7699 2014-05-17 Doug Evans <xdje42@gmail.com>
7701 * progspace.c (remove_program_space): Delete, unused.
7702 * progspace.h (remove_program_space): Ditto.
7704 2014-05-17 Doug Evans <xdje42@gmail.com>
7706 * inferior.c (prune_inferiors): Fix comment.
7707 (remove_inferior_command): Call prune_program_spaces.
7709 2014-05-16 Doug Evans <dje@google.com>
7711 New command line option -D.
7713 * main.c (set_gdb_data_directory): New function.
7714 (captured_main): Recognize -D. Flag error for --data-directory "".
7715 Call set_gdb_data_directory.
7716 (print_gdb_help): Print --data-directory, -D.
7717 * main.h (set_gdb_data_directory): Declare.
7718 * top.c (staged_gdb_datadir): New static global.
7719 (set_gdb_datadir): Call set_gdb_data_directory
7720 (show_gdb_datadir): New function.
7721 (init_main): Update init of data-directory parameter.
7723 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7725 Import the "dirfd" gnulib module.
7726 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7727 * gnulib/aclocal.m4: Update.
7728 * gnulib/config.in: Update.
7729 * gnulib/configure: Update.
7730 * gnulib/import/Makefile.am: Update.
7731 * gnulib/import/Makefile.in: Update.
7732 * gnulib/import/dirfd.c: New.
7733 * gnulib/import/m4/dirfd.m4: New.
7734 * gnulib/import/m4/gnulib-cache.m4: Update.
7735 * gnulib/import/m4/gnulib-comp.m4: Update.
7737 2014-05-16 Pierre Muller <muller@sourceware.org>
7738 Yao Qi <yao@codesourcery.com>
7740 * valprint.c (print_wchar): Move the code on checking whether
7741 W is a printable wide char to the default branch of switch
7742 statement below. Call wchar_printable instead of gdb_iswprint.
7744 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7746 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7747 ldr.w and ldrd instructions.
7749 2014-05-15 Doug Evans <dje@google.com>
7751 * dwarf2read.c (read_structure_type): Delete outdated comments.
7753 2014-05-14 Tom Tromey <tromey@redhat.com>
7755 * macrocmd.c (print_macro_definition): Reindent.
7757 2014-05-13 Doug Evans <xdje42@gmail.com>
7759 * python/py-cmd.c (cmdpy_completer): Add comment.
7760 (completers): Make const.
7762 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7764 * infrun.c (resume): Remove should_resume (unused). Move up
7765 declaration of resume_ptid.
7767 2014-05-13 Tom Tromey <tromey@redhat.com>
7769 * language.h (unop_type_check): Remove.
7770 (binop_type_check): Don't declare.
7772 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7774 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7775 call to regcache_raw_collect.
7777 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7779 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7780 mi_console->quote as the quoting character.
7782 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7784 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7786 2014-04-29 Tom Tromey <tromey@redhat.com>
7788 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7789 "show debug varobj".
7791 2014-05-07 Kyle McMartin <kyle@redhat.com>
7793 Pushed by Joel Brobecker <brobecker@adacore.com>.
7794 * aarch64-tdep.c (aarch64_software_single_step): New function.
7795 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7796 with aarch64_software_single_step.
7798 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7802 2014-05-05 Keith Seitz <keiths@redhat.com>
7804 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7805 variable or history value is successfully parsed.
7807 2014-05-05 Yao Qi <yao@codesourcery.com>
7808 Pedro Alves <palves@redhat.com>
7810 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7811 address of blocks that intersects the requested range. Trim
7812 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7814 * ctf.c (ctf_xfer_partial): Likewise.
7816 2014-05-05 Yao Qi <yao@codesourcery.com>
7818 * printcmd.c (display_command): Remove the check to
7819 target_has_execution.
7821 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7823 * ppcobsd-nat.c: Include "obsd-nat.h".
7824 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7826 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7828 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7830 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7831 and 16-bit signed and unsigned arguments. Update comment.
7832 (stap_parse_probe_arguments): Extend code to handle such
7833 arguments. Use warning instead of complaint to notify about
7834 unrecognized bitness.
7836 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7838 PR breakpoints/16889
7839 * stap-probe.c (stap_parse_probe_arguments): Simplify
7840 check for non-prefixed probes (i.e., probes whose
7841 arguments do not start with "N@"). Always set the
7842 argument type to a sane value.
7844 2014-05-01 David Taylor <dtaylor@emc.com>
7846 * remote.c (compare_sections_command): Add -r option to compare
7847 all loadable read-only sections.
7849 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7851 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7852 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7854 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7855 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7856 Remove unused CORE_ADDR argument. Update all callers.
7858 2014-04-29 Pedro Alves <palves@redhat.com>
7860 * remote.c (struct packet_config) <detect>: Extend comment.
7861 (add_packet_config_cmd): Don't set the config's detect or support
7863 (init_all_packet_configs): Also initialize the config's 'detect'
7865 (reset_all_packet_configs_support): New function.
7866 (remote_open_1): Call reset_all_packet_configs_support instead of
7867 init_all_packet_configs.
7868 (_initialize_remote): Initialize all packet configs. Assert that
7869 all packets have an associated command, except a few known
7872 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7874 * dwarf2read.c (read_subrange_type): Handle dynamic
7875 DW_AT_lower_bound attributes.
7877 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7879 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7880 dynamic bounds before computing its upper bound.
7881 (ada_discrete_type_low_bound): Same as above with the lower bound.
7883 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7885 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7886 range types. Adjust the array handling implementation to
7887 take advantage of this change.
7888 (resolve_dynamic_range): New function, mostly extracted from
7889 resolve_dynamic_bounds.
7890 (resolve_dynamic_array): New function, mostly extracted from
7891 resolve_dynamic_bounds.
7892 (resolve_dynamic_bounds): Delete.
7893 (resolve_dynamic_type): Reimplement. Add handling of
7894 TYPE_CODE_RANGE types.
7896 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7898 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7899 handling of parallel ___XA types.
7901 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7903 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7904 unnecessary second call to static_unwrap_type.
7906 2014-04-27 Hui Zhu <hui@codesourcery.com>
7908 * stack.c (print_frame_info): Call do_gdb_disassembly with
7909 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7911 2014-04-26 Doug Evans <xdje42@gmail.com>
7913 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7915 2014-04-25 Pedro Alves <palves@redhat.com>
7918 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7919 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7920 and newline from built string.
7921 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7922 (linux_ptrace_attach_fail_reason): ... this.
7923 * linux-nat.c (linux_nat_attach): Adjust to use
7924 linux_ptrace_attach_fail_reason.
7926 2014-04-25 Pedro Alves <palves@redhat.com>
7928 * remote.c (struct remote_state): Remove multi_process_aware,
7929 non_stop_aware, cond_tracepoints, cond_breakpoints,
7930 breakpoint_commands, fast_tracepoints, static_tracepoints,
7931 install_in_trace, disconnected_tracing,
7932 enable_disable_tracepoints, string_tracing, and
7933 augmented_libraries_svr4_read fields.
7934 (remote_multi_process_p): Move further below in the file.
7935 (struct packet_config): Add comments.
7936 (update_packet_config): Delete function.
7937 (show_packet_config_cmd): Use packet_config_support.
7938 (add_packet_config_cmd): Use NULL as set callback.
7939 (packet_ok): "set remote foo-packet"-style commands no longer
7940 change config->supported -- adjust.
7941 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7942 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7943 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7944 (PACKET_QNonStop, PACKET_multiprocess_feature)
7945 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7946 (PACKET_DisconnectedTracing_feature)
7947 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7948 (set_remote_protocol_packet_cmd): Delete function.
7949 (packet_config_support, packet_support): New functions.
7950 (set_remote_protocol_Z_packet_cmd): Don't call
7951 update_packet_config.
7952 (remote_query_attached, remote_pass_signals)
7953 (remote_program_signals, remote_threads_info)
7954 (remote_threads_extra_info, remote_start_remote): Use
7956 (remote_start_remote): Use packet_config_support and
7958 (init_all_packet_configs): Set all packets to unknown support,
7959 instead of calling update_packet_config.
7960 (remote_check_symbols): Use packet_support.
7961 (remote_supported_packet): Unconditionally set the packet config's
7963 (remote_multi_process_feature, remote_non_stop_feature)
7964 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7965 (remote_breakpoint_commands_feature)
7966 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7967 (remote_install_in_trace_feature)
7968 (remote_disconnected_tracing_feature)
7969 (remote_enable_disable_tracepoint_feature)
7970 (remote_string_tracing_feature)
7971 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7972 (remote_protocol_features): Adjust to use remote_supported_packet
7973 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7974 "ConditionalTracepoints", "ConditionalBreakpoints",
7975 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7976 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7977 "EnableDisableTracepoints", and "tracenz".
7978 (remote_query_supported): Use packet_support.
7979 (remote_open_1): Adjust.
7980 (extended_remote_attach_1): Use packet_support. Switch on the
7981 result of packet_ok instead of checking whether the packet ended
7983 (remote_vcont_resume): Use packet_support.
7984 (remote_resume, remote_stop_ns, fetch_register_using_p)
7985 (remote_prepare_to_store, store_register_using_P)
7986 (check_binary_download, remote_write_bytes): Use packet_support.
7987 (remote_vkill): Use packet_support. Switch on the result of
7988 packet_ok instead of checking whether the packet ended up
7990 (extended_remote_supports_disable_randomization): Use
7992 (extended_remote_run): Switch on the result of packet_ok instead
7993 of checking whether the packet ended up disabled.
7994 (remote_insert_breakpoint, remote_remove_breakpoint)
7995 (remote_insert_watchpoint, remote_remove_watchpoint)
7996 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7998 (remote_search_memory): Use packet_config_support.
7999 (remote_get_thread_local_address, remote_get_tib_address)
8000 (remote_hostio_send_command, remote_can_execute_reverse): Use
8002 (remote_supports_cond_tracepoints)
8003 (remote_supports_cond_breakpoints)
8004 (remote_supports_fast_tracepoints)
8005 (remote_supports_static_tracepoints)
8006 (remote_supports_install_in_trace)
8007 (remote_supports_enable_disable_tracepoint)
8008 (remote_supports_string_tracing)
8009 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8010 the packet config says the feature is enabled or disabled.
8011 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8012 (remote_get_trace_status): Use packet_support.
8013 (remote_set_disconnected_tracing): Adjust to check whether the
8014 feature is enabled with packet_support.
8015 (remote_set_trace_buffer_size, remote_use_agent)
8016 (remote_can_use_agent, remote_supports_btrace): Use
8018 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8019 Use packet_config_support.
8020 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8021 the packet config says the feature is enabled or disabled.
8022 (set_range_stepping): Use packet_support.
8024 2014-04-25 Tom Tromey <tromey@redhat.com>
8026 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8029 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8031 * NEWS: Mention support for C99 variable length arrays.
8033 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8035 * ada-lang.c (standard_exc): Expand introductory comment.
8037 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8038 Walfred Tedeschi <walfred.tedeschi@intel.com>
8040 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8042 (amd64_linux_read_description): Add code to handle AVX512 xstate
8043 mask and return respective tdesc.
8044 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8045 and features/i386/x32-avx512-linux.c.
8046 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8047 (amd64_linux_core_read_description): Add code to handle AVX512
8048 xstate mask and return respective tdesc.
8049 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8050 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8052 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8053 (tdesc_amd64_avx512_linux): New prototype.
8054 (tdesc_x32_avx512_linux): Likewise.
8055 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8056 features/i386/x32-avx512.c.
8057 (amd64_ymm_avx512_names): New register names for pseudo
8059 (amd64_ymmh_avx512_names): New register names for raw registers
8061 (amd64_k_names): New register names for K registers.
8062 (amd64_zmmh_names): New register names for ZMM raw registers.
8063 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8064 (amd64_xmm_avx512_names): New register names for XMM16-31
8066 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8068 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8069 if feature is present.
8070 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8071 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8072 (AMD64_NUM_REGS): Adjust to new number of registers.
8073 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8074 registers supplied via XSTATE by AVX512 registers.
8075 (i386_linux_read_description): Add case for AVX512.
8076 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8077 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8078 (i386_linux_core_read_description): Add case for AVX512.
8079 (i386_linux_init_abi): Install supported register note section
8081 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8083 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8084 registers to be number of zmm7h + 1.
8085 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8086 * i386-tdep.c: Include features/i386/i386-avx512.c.
8087 (i386_zmm_names): Add ZMM pseudo register names array.
8088 (i386_zmmh_names): Add ZMM raw register names array.
8089 (i386_k_names): Add K raw register names array.
8090 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8091 registers. AVX512 has 16 more ZMM registers than there are YMM
8093 (i386_zmmh_regnum_p): Add function to look up register number of
8095 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8096 (i386_k_regnum_p): Likewise for K raw registers.
8097 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8098 registers added by AVX512.
8099 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8100 registers added by AVX512.
8101 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8103 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8104 (i386_pseudo_register_name): Add ZMM pseudo registers.
8105 (i386_zmm_type): Construct and return vector registers type for ZMM
8107 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8108 ZMM0-31 pseudo registers and K registers.
8109 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8110 and YMM16-31 registers from register cache.
8111 (i386_pseudo_register_write): Add code to write K, ZMM and
8113 (i386_register_reggroup_p): Add code to include/exclude AVX512
8114 registers in/from respective register groups.
8115 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8116 registers if feature is present in xcr0.
8117 (i386_gdbarch_init): Add code to initialize AVX512 feature
8118 variables in tdep structure, wire in pseudo registers and call
8119 initialize_tdesc_i386_avx512.
8120 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8122 (i386_regnum): Add AVX512 registers.
8123 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8124 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8125 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8126 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8128 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8129 (i386_ymm_avx512_regnum_p): Likewise.
8130 (i386_k_regnum_p): Likewise.
8131 (i386_zmm_regnum_p): Likewise.
8132 (i386_zmmh_regnum_p): Likewise.
8133 * i387-tdep.c : Update year in copyright notice.
8134 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8136 (XSAVE_YMM_AVX512_ADDR): New macro.
8137 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8139 (XSAVE_XMM_AVX512_ADDR): New macro.
8140 (xsave_avx512_k_offset): New table for K register offsets in
8142 (XSAVE_AVX512_K_ADDR): New macro.
8143 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8145 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8146 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8148 (i387_collect_xsave): Add code to collect AVX512 registers from
8150 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8151 of XMM16-31 registers.
8152 (I387_NUM_K_REGS): New define for number of K registers.
8153 (I387_K0_REGNUM): New define for K0 register number.
8154 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8155 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8156 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8158 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8159 (I387_XMM16_REGNUM): New define for XMM16 register number.
8160 (I387_YMM0_REGNUM): New define for YMM0 register number.
8161 (I387_KEND_REGNUM): New define for last K register number.
8162 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8163 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8165 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8167 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8169 * features/Makefile: Add AVX512 related files.
8170 * features/i386/32bit-avx512.xml: New file.
8171 * features/i386/64bit-avx512.xml: Likewise.
8172 * features/i386/amd64-avx512-linux.c: Likewise.
8173 * features/i386/amd64-avx512-linux.xml: Likewise.
8174 * features/i386/amd64-avx512.c: Likewise.
8175 * features/i386/amd64-avx512.xml: Likewise.
8176 * features/i386/i386-avx512-linux.c: Likewise.
8177 * features/i386/i386-avx512-linux.xml: Likewise.
8178 * features/i386/i386-avx512.c: Likewise.
8179 * features/i386/i386-avx512.xml: Likewise.
8180 * features/i386/x32-avx512-linux.c: Likewise.
8181 * features/i386/x32-avx512-linux.xml: Likewise.
8182 * features/i386/x32-avx512.c: Likewise.
8183 * features/i386/x32-avx512.xml: Likewise.
8184 * regformats/i386/amd64-avx512-linux.dat: New file.
8185 * regformats/i386/amd64-avx512.dat: Likewise.
8186 * regformats/i386/i386-avx512-linux.dat: Likewise.
8187 * regformats/i386/i386-avx512.dat: Likewise.
8188 * regformats/i386/x32-avx512-linux.dat: Likewise.
8189 * regformats/i386/x32-avx512.dat: Likewise.
8190 * NEWS: Add note about new support for AVX512.
8193 2014-04-23 Pedro Alves <palves@redhat.com>
8195 * breakpoint.c (insert_bp_location): Tolerate errors if the
8196 breakpoint is set in a user-loaded objfile.
8197 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8198 location is marked shlib_disabled. If the breakpoint is set in a
8199 user-loaded objfile is a GDB-side memory breakpoint, validate it
8200 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8201 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8203 * mem-break.c (memory_validate_breakpoint): New function.
8204 * objfiles.c (userloaded_objfile_contains_address_p): New
8206 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8207 * target.h (memory_validate_breakpoint): New declaration.
8209 2014-04-23 Pedro Alves <palves@redhat.com>
8211 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8212 the breakpoint is set in a shared library, only suppress
8213 errors for software breakpoints, not hardware breakpoints.
8215 2014-04-22 Pedro Alves <palves@redhat.com>
8217 * infrun.c (schedlock_applies): New function, factored out from
8218 find_thread_needs_step_over.
8219 (find_thread_needs_step_over): Use it.
8220 (switch_back_to_stepped_thread): Always clear trap_expected if the
8221 step over is finished. Return early if scheduler locking applies.
8222 Look for the stepping thread and a potential step-over thread with
8224 (currently_stepping_or_nexting_callback): Delete.
8226 2014-04-22 Nick Clifton <nickc@redhat.com>
8228 * NEWS: Mention that ARM sim now supports tracing.
8230 2014-04-22 Yao Qi <yao@codesourcery.com>
8232 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8234 * tracefile.c (tracefile_fetch_registers): ... it. New
8236 * tracefile.h (tracefile_fetch_registers): Declare.
8237 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8238 tracefile_fetch_registers.
8240 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8243 * windows-nat.c (thread_rec): Don't display a warning when
8244 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8245 fails for any reason, set th->suspended to -1, so that we don't
8246 try to resume such a thread. Also, don't return NULL in these
8247 cases, to avoid completely ruin the session due to "PC register is
8248 not available" error.
8249 (do_windows_fetch_inferior_registers): Check errors in
8250 GetThreadContext call.
8251 (windows_continue): Accept an additional argument KILLED; if not
8252 zero, ignore errors in the SetThreadContext call, since the
8253 inferior was killed and is shutting down.
8254 (windows_resume, get_windows_debug_event)
8255 (windows_create_inferior, windows_mourn_inferior)
8256 (windows_kill_inferior): All callers of windows_continue changed
8257 to adjust to its new calling sequence.
8259 2014-04-19 Yao Qi <yao@codesourcery.com>
8261 * ctf.c (ctf_open): Call post_create_inferior.
8263 2014-04-19 Yao Qi <yao@codesourcery.com>
8265 * ctf.c (handle_id): New static variable.
8266 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8267 value. Get the declaration of event "register" and get length
8268 of field "contents".
8270 2014-04-19 Yao Qi <yao@codesourcery.com>
8272 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8274 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8276 * valops.c (oload_method_static): Remove unnecessary argument
8277 METHOD. Update all callers.
8279 2014-04-18 Pedro alves <palves@redhat.com>
8280 Tom Tromey <tromey@redhat.com>
8283 * frame.c (get_prev_frame_1): Rename to ...
8284 (get_prev_frame_always): ... this, and make extern. Adjust.
8285 (skip_artificial_frames): Use get_prev_frame_always.
8286 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8287 (get_frame_unwind_stop_reason): Adjust to rename.
8288 * frame.h (get_prev_frame_always): Declare.
8289 * inline-frame.c: Include frame.h.
8290 (inline_frame_this_id): Use get_prev_frame_always.
8292 2014-04-18 Tristan Gingold <gingold@adacore.com>
8294 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8295 code by using bfd_mach_o_get_base_address.
8297 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8299 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8300 (spu_ax_pseudo_register_collect): New function.
8301 (spu_ax_pseudo_register_push_stack): Likewise.
8302 (spu_dwarf_reg_to_regnum): Likewise.
8303 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8305 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8307 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8308 Replace FRAME argument with FRAME_ID.
8309 * gdbarch.c, gdbarch.h: Regenerate.
8310 * findvar.c (default_value_from_register): Add GDBARCH argument;
8311 replace FRAME by FRAME_ID. No longer call get_frame_id.
8312 (value_from_register): Update call to gdbarch_value_from_register.
8313 * value.h (default_value_from_register): Update prototype.
8314 * s390-linux-tdep.c (s390_value_from_register): Update interface
8315 and call to default_value_from_register.
8316 * spu-tdep.c (spu_value_from_register): Likewise.
8318 * findvar.c (address_from_register): Remove TYPE argument.
8319 Do not call value_from_register; use gdbarch_value_from_register
8320 with null_frame_id instead.
8321 * value.h (address_from_register): Update prototype.
8322 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8323 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8324 address_from_register interface change.
8326 2014-04-17 Yao Qi <yao@codesourcery.com>
8328 * gdbtypes.h: Update comments to link to types and macros'
8331 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8333 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8335 2014-04-16 Keith Seitz <keiths@redhat.com>
8338 * dwarf2read.c (skip_one_die): Check that all relative-offset
8339 sibling DIEs fall within range of the current reader's buffer.
8340 (read_partial_die): Likewise.
8342 2014-04-16 Keith Seitz <keiths@redhat.com>
8345 * cp-namespace.c (lookup_symbol_file): If the type name of
8346 `this' is NULL, return immediately.
8348 2014-04-14 Keith Seitz <keiths@redhat.com>
8351 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8352 from symbol_matches_domain in symtab.c. All local callers
8353 of symbol_matches_domain updated.
8354 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8355 search STRUCT_DOMAIN.
8356 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8357 independently. standard_lookup will do that automatically.
8358 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8359 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8360 (cp_lookup_symbol_in_namespace): Likewise.
8361 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8362 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8363 may return a STRUCT_DOMAIN match.
8364 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8365 * cp-support.c: Include language.h.
8366 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8368 * psymtab.c (match_partial_symbol): Compare the requested
8369 domain with the symbol's domain directly.
8370 (lookup_partial_symbol): Likewise.
8371 * symtab.c (lookup_symbol_in_language): Explain when/why
8372 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8373 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8374 appropriate languages.
8375 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8376 and moved to ada-lang.c
8377 (lookup_block_symbol): Explain that this function only returns
8378 symbol matching the requested DOMAIN.
8379 Compare the requested domain with the symbol's domain directly.
8380 (iterate_over_symbols): Compare the requested domain with the
8381 symbol's domain directly.
8382 * symtab.h (symbol_matches_domain): Remove.
8384 2014-04-14 Tom Tromey <tromey@redhat.com>
8387 * c-exp.y (type_aggregate_p): New function.
8388 (qualified_name, classify_inner_name): Use it.
8389 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8390 and TYPE_TARGET_TYPE of an enum type.
8391 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8393 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8394 handle TYPE_DECLARED_CLASS.
8395 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8397 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8398 * valops.c (enum_constant_from_type): New function.
8399 (value_aggregate_elt): Use it.
8400 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8403 2014-04-14 Tom Tromey <tromey@redhat.com>
8405 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8406 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8408 * value.h (value_aggregate_elt): Update.
8410 2014-04-14 Tom Tromey <tromey@redhat.com>
8412 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8414 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8416 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8417 (evaluate_subexp_standard): Pass noside argument.
8418 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8419 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8420 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8421 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8422 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8424 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8426 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8427 points to a constant blob.
8429 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8431 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8432 property and store it as the high bound and flag the range accordingly.
8433 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8434 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8435 * gdbtypes.h (enum range_flags): New enum.
8436 (struct range_bounds): Add flags member.
8438 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8440 * c-typeprint.c (c_type_print_varspec_suffix): Added
8441 check for not yet resolved high bound. If unresolved, print
8442 "variable length" string to the console instead of random
8445 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8447 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8449 (ada_template_to_fixed_record_type_1): Likewise.
8450 (ada_to_fixed_type_1): Likewise.
8451 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8452 (cp_print_value): Likewise.
8453 * d-valprint.c (dynamic_array_type): Likewise.
8454 * findvar.c (address_of_variable): Likewise.
8455 * jv-valprint.c (java_value_print): Likewise.
8456 * valops.c (value_ind): Likewise.
8457 * value.c (coerce_ref): Likewise.
8459 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8461 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8462 value and retrieve the dynamic type size.
8464 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8466 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8467 passed to sizeof is dynamic evaluate the argument to compute the length.
8469 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8470 Joel Brobecker <brobecker@adacore.com>
8472 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8473 (dwarf2_evaluate_property): New function.
8474 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8475 * dwarf2read.c (attr_to_dynamic_prop): New function.
8476 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8478 * gdbtypes.c: Include dwarf2loc.h.
8479 (is_dynamic_type): New function.
8480 (resolve_dynamic_type): New function.
8481 (resolve_dynamic_bounds): New function.
8482 (get_type_length): New function.
8483 (check_typedef): Use get_type_length to compute type length.
8484 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8485 (TYPE_LOW_BOUND_KIND): New macro.
8486 (is_dynamic_type): New function prototype.
8487 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8488 to resolve dynamic properties of the type. Update comment.
8489 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8491 2014-04-14 Richard Henderson <rth@redhat.com>
8493 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8495 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8496 Doug Evans <xdje42@gmail.com>
8498 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8499 dereference TYPE_CODE_REF values.
8501 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8503 Revert the following changes due to regressions:
8505 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8506 (dwarf2_evaluate_property): New function.
8507 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8508 * dwarf2read.c (attr_to_dynamic_prop): New function.
8509 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8511 * gdbtypes.c: Include dwarf2loc.h.
8512 (is_dynamic_type): New function.
8513 (resolve_dynamic_type): New function.
8514 (resolve_dynamic_bounds): New function.
8515 (get_type_length): New function.
8516 (check_typedef): Use get_type_length to compute type length.
8517 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8518 (TYPE_LOW_BOUND_KIND): New macro.
8519 (is_dynamic_type): New function prototype.
8520 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8521 to resolve dynamic properties of the type. Update comment.
8522 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8524 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8525 passed to sizeof is dynamic evaluate the argument to compute the length.
8527 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8528 value and retrieve the dynamic type size.
8530 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8531 (ada_template_to_fixed_record_type_1): Likewise.
8532 (ada_to_fixed_type_1): Likewise.
8533 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8534 (cp_print_value): Likewise.
8535 * d-valprint.c (dynamic_array_type): Likewise.
8536 * eval.c (evaluate_subexp_with_coercion): Likewise.
8537 * findvar.c (address_of_variable): Likewise.
8538 * jv-valprint.c (java_value_print): Likewise.
8539 * valops.c (value_ind): Likewise.
8540 * value.c (coerce_ref): Likewise.
8542 * c-typeprint.c (c_type_print_varspec_suffix): Added
8543 check for not yet resolved high bound. If unresolved, print
8544 "variable length" string to the console instead of random
8547 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8548 property and store it as the high bound and flag the range accordingly.
8549 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8550 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8551 * gdbtypes.h (enum range_flags): New enum.
8552 (struct range_bounds): Add flags member.
8554 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8555 points to a constant blob.
8557 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8558 (evaluate_subexp_standard): Pass noside argument.
8559 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8560 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8561 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8562 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8563 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8565 2014-04-11 Keith Seitz <keiths@redhat.com>
8568 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8569 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8572 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8574 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8575 (evaluate_subexp_standard): Pass noside argument.
8576 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8577 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8578 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8579 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8580 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8582 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8584 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8585 points to a constant blob.
8587 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8589 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8590 property and store it as the high bound and flag the range accordingly.
8591 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8592 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8593 * gdbtypes.h (enum range_flags): New enum.
8594 (struct range_bounds): Add flags member.
8596 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8598 * c-typeprint.c (c_type_print_varspec_suffix): Added
8599 check for not yet resolved high bound. If unresolved, print
8600 "variable length" string to the console instead of random
8603 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8605 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8606 (ada_template_to_fixed_record_type_1): Likewise.
8607 (ada_to_fixed_type_1): Likewise.
8608 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8609 (cp_print_value): Likewise.
8610 * d-valprint.c (dynamic_array_type): Likewise.
8611 * eval.c (evaluate_subexp_with_coercion): Likewise.
8612 * findvar.c (address_of_variable): Likewise.
8613 * jv-valprint.c (java_value_print): Likewise.
8614 * valops.c (value_ind): Likewise.
8615 * value.c (coerce_ref): Likewise.
8617 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8619 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8620 value and retrieve the dynamic type size.
8622 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8624 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8625 passed to sizeof is dynamic evaluate the argument to compute the length.
8627 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8629 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8630 (dwarf2_evaluate_property): New function.
8631 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8632 * dwarf2read.c (attr_to_dynamic_prop): New function.
8633 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8635 * gdbtypes.c: Include dwarf2loc.h.
8636 (is_dynamic_type): New function.
8637 (resolve_dynamic_type): New function.
8638 (resolve_dynamic_bounds): New function.
8639 (get_type_length): New function.
8640 (check_typedef): Use get_type_length to compute type length.
8641 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8642 (TYPE_LOW_BOUND_KIND): New macro.
8643 (is_dynamic_type): New function prototype.
8644 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8645 to resolve dynamic properties of the type. Update comment.
8646 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8648 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8650 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8651 declaring high/low bounds and change uses accordingly. Call
8652 create_range_type instead of create_static_range_type.
8653 * gdbtypes.c (create_range_type): New function.
8654 (create_range_type): Convert bounds into struct bound_prop and pass
8655 them to create_range_type.
8656 * gdbtypes.h (struct bound_prop): New struct.
8657 (create_range_type): New function prototype.
8658 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8659 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8660 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8662 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8664 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8666 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8667 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8668 * ada-lang.c: All uses of create_range_type updated.
8669 * coffread.c: All uses of create_range_type updated.
8670 * dwarf2read.c: All uses of create_range_type updated.
8671 * f-exp.y: All uses of create_range_type updated.
8672 * m2-valprint.c: All uses of create_range_type updated.
8673 * mdebugread.c: All uses of create_range_type updated.
8674 * stabsread.c: All uses of create_range_type updated.
8675 * valops.c: All uses of create_range_type updated.
8676 * valprint.c: All uses of create_range_type updated.
8678 2014-04-10 Pedro Alves <palves@redhat.com>
8680 * breakpoint.c (single_step_breakpoints)
8681 (single_step_gdbarch): Move up in the file.
8682 (one_breakpoint_xfer_memory): New function, factored out from ...
8683 (breakpoint_xfer_memory): ... here. Also process single-step
8686 2014-04-09 Tristan Gingold <gingold@adacore.com>
8688 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8690 (darwin_decode_exception_message): Free port only after use.
8692 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8694 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8695 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8696 when setting the size of call_length.
8698 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8700 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8701 dereference TYPE_CODE_REF values.
8703 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8705 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8706 end of warning message.
8708 2014-04-03 Doug Evans <dje@google.com>
8710 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8711 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8713 2014-04-02 Alan Modra <amodra@gmail.com>
8715 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8716 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8717 (struct symbol_file_add_from_memory_args): Add size field.
8718 (find_vdso_size): New function.
8719 (add_vsyscall_page): Attempt to find vdso size.
8721 2014-04-01 Doug Evans <dje@google.com>
8723 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8725 2014-04-01 Tristan Gingold <gingold@adacore.com>
8727 * darwin-nat.c (darwin_encode_reply): Add prototype.
8728 (darwin_decode_exception_message): Reply to unknown inferiors.
8729 (darwin_decode_message): Handle message by id. Ignore message
8730 to unknown inferior.
8731 (darwin_wait): Discard unknown messages, add debug trace.
8733 2014-03-31 Doug Evans <dje@google.com>
8735 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8738 2014-03-31 Doug Evans <dje@google.com>
8740 New option "set print symbol-loading".
8742 * solib.c (solib_read_symbols): Only print symbol loading messages
8744 (solib_add): If symbol loading is in "brief" mode, notify user
8745 symbols are being loaded.
8746 (reload_shared_libraries_1): Ditto.
8747 * symfile.c (print_symbol_loading_off): New static global.
8748 (print_symbol_loading_brief): New static global.
8749 (print_symbol_loading_full): New static global.
8750 (print_symbol_loading_enums): New static global.
8751 (print_symbol_loading): New static global.
8752 (print_symbol_loading_p): New function.
8753 (symbol_file_add_with_addrs): Only print symbol loading messages
8755 (_initialize_symfile): Register "print symbol-loading" set/show
8757 * symfile.h (print_symbol_loading_p): Declare.
8759 2014-03-30 Doug Evans <xdje42@gmail.com>
8761 * infrun.c (set_last_target_status): New function.
8762 (handle_inferior_event): Call it.
8764 2014-03-30 Doug Evans <xdje42@gmail.com>
8766 * inferior.h (enum stop_kind): Improve comment.
8768 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8770 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8771 a reference, strip the reference layer before calling
8772 the lang_ops value_has_mutated callback.
8774 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8776 Remove some globals from our parser.
8777 * language.c (unk_lang_parser): Add "struct parser_state"
8779 * language.h (struct language_defn) <la_parser>: Likewise.
8780 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8781 (initialize_expout): Add "struct parser_state" argument.
8782 Rewrite function to use the parser state.
8783 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8784 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8785 write_exp_elt_longcst, write_exp_elt_dblcst,
8786 write_exp_elt_decfloatcst, write_exp_elt_type,
8787 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8788 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8789 write_dollar_variable): Likewise.
8790 (parse_exp_in_context_1): Use parser state.
8791 (insert_type_address_space): Add "struct parser_state" argument.
8793 (increase_expout_size): New function.
8794 * parser-defs.h: Forward declare "struct language_defn" and
8795 "struct parser_state".
8796 (expout, expout_size, expout_ptr): Remove extern declarations.
8797 (parse_gdbarch, parse_language): Rewrite macro declarations to
8798 accept the parser state.
8799 (struct parser_state): New struct.
8800 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8801 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8802 write_exp_elt_decfloatcst, write_exp_elt_type,
8803 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8804 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8805 write_exp_msymbol, write_dollar_variable,
8806 mark_struct_expression, insert_type_address_space): Add "struct
8807 parser_state" argument.
8808 (increase_expout_size): New function.
8809 * utils.c (do_clear_parser_state): New function.
8810 (make_cleanup_clear_parser_state): Likewise.
8811 * utils.h (make_cleanup_clear_parser_state): New function
8813 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8814 Update calls to write_exp* in order to pass the parser state.
8815 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8816 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8817 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8818 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8819 * stap-probe.c (stap_parse_register_operand): Likewise.
8820 (stap_parse_single_operand): Likewise.
8821 (stap_parse_argument_1): Likewise.
8822 (stap_parse_argument): Use parser state.
8823 * stap-probe.h: Include "parser-defs.h".
8824 (struct stap_parse_info) <pstate>: New field.
8825 * c-exp.y (parse_type): Rewrite to use parser state.
8826 (yyparse): Redefine to c_parse_internal.
8827 (pstate): New global variable.
8828 (parse_number): Add "struct parser_state" argument.
8829 (write_destructor_name): Likewise.
8830 (type_exp): Update calls to write_exp* and similars in order to
8832 (exp1, exp, variable, qualified_name, space_identifier,
8833 typename, typebase): Likewise.
8834 (write_destructor_name, parse_number, lex_one_token,
8835 classify_name, classify_inner_name, c_parse): Add "struct
8836 parser_state" argument. Update function to use parser state.
8837 * c-lang.h: Forward declare "struct parser_state".
8838 (c_parse): Add "struct parser_state" argument.
8839 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8840 (yyparse): Redefine macro to ada_parse_internal.
8841 (pstate): New variable.
8842 (write_int, write_object_renaming, write_var_or_type,
8843 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8844 type_int, type_long, type_long_long, type_float, type_double,
8845 type_long_double, type_char, type_boolean, type_system_address):
8846 Add "struct parser_state" argument.
8847 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8848 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8849 var_or_type, aggregate, aggregate_component_list,
8850 positional_list, others, component_group,
8851 component_associations): Update calls to write_exp* and similar
8852 functions in order to use parser state.
8853 (ada_parse, write_var_from_sym, write_int,
8854 write_exp_op_with_string, write_object_renaming,
8855 find_primitive_type, write_selectors, write_ambiguous_var,
8856 write_var_or_type, write_name_assoc, type_int, type_long,
8857 type_long_long, type_float, type_double, type_long_double,
8858 type_char, type_boolean, type_system_address): Add "struct
8859 parser_state" argument. Adjust function to use parser state.
8860 * ada-lang.c (parse): Likewise.
8861 * ada-lang.h: Forward declare "struct parser_state".
8862 (ada_parse): Add "struct parser_state" argument.
8863 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8864 calls to both functions.
8865 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8867 (yyparse): Redefine macro to f_parse_internal.
8868 (pstate): New variable.
8869 (parse_number): Add "struct parser_state" argument.
8870 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8871 and similars in order to use parser state.
8872 (parse_number): Adjust code to use parser state.
8874 (f_parse): New function.
8875 * f-lang.h: Forward declare "struct parser_state".
8876 (f_parse): Add "struct parser_state" argument.
8877 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8879 (yyparse): Redefine macro for java_parse_internal.
8880 (pstate): New variable.
8881 (push_expression_name, push_expression_name, insert_exp): Add
8882 "struct parser_state" argument.
8883 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8884 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8885 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8886 PostIncrementExpression, PostDecrementExpression,
8887 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8888 UnaryExpressionNotPlusMinus, CastExpression,
8889 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8890 RelationalExpression, EqualityExpression, AndExpression,
8891 ExclusiveOrExpression, InclusiveOrExpression,
8892 ConditionalAndExpression, ConditionalOrExpression,
8893 ConditionalExpression, Assignment, LeftHandSide): Update
8894 calls to write_exp* and similars in order to use parser state.
8895 (parse_number): Ajust code to use parser state.
8897 (java_parse): New function.
8898 (push_variable): Add "struct parser_state" argument. Adjust
8899 code to user parser state.
8900 (push_fieldnames, push_qualified_expression_name,
8901 push_expression_name, insert_exp): Likewise.
8902 * jv-lang.h: Forward declare "struct parser_state".
8903 (java_parse): Add "struct parser_state" argument.
8904 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8906 (yyparse): Redefine macro to m2_parse_internal.
8907 (pstate): New variable.
8908 (type_exp, exp, fblock, variable, type): Update calls to
8909 write_exp* and similars to use parser state.
8911 (m2_parse): New function.
8912 * m2-lang.h: Forward declare "struct parser_state".
8913 (m2_parse): Add "struct parser_state" argument.
8914 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8915 * objc-lang.h: Forward declare "struct parser_state".
8916 (end_msglist): Add "struct parser_state" argument.
8917 * p-exp.y (parse_type): Rewrite macro to use parser state.
8918 (yyparse): Redefine macro to pascal_parse_internal.
8919 (pstate): New variable.
8920 (parse_number): Add "struct parser_state" argument.
8921 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8922 write_exp* and similars in order to use parser state.
8923 (parse_number, yylex): Adjust code to use parser state.
8924 (pascal_parse): New function.
8925 * p-lang.h: Forward declare "struct parser_state".
8926 (pascal_parse): Add "struct parser_state" argument.
8927 * go-exp.y (parse_type): Rewrite macro to use parser state.
8928 (yyparse): Redefine macro to go_parse_internal.
8929 (pstate): New variable.
8930 (parse_number): Add "struct parser_state" argument.
8931 (type_exp, exp1, exp, variable, type): Update calls to
8932 write_exp* and similars in order to use parser state.
8933 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8934 to use parser state.
8935 (go_parse): Likewise.
8936 * go-lang.h: Forward declare "struct parser_state".
8937 (go_parse): Add "struct parser_state" argument.
8939 2014-03-27 Doug Evans <dje@google.com>
8941 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8943 2014-03-27 Doug Evans <dje@google.com>
8945 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8946 Remove argument abbrev_section. All callers updated.
8948 2014-03-27 Doug Evans <dje@google.com>
8950 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8951 addr_base, ranges_base.
8953 2014-03-26 Keith Seitz <keiths@redhat.com>
8955 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8956 types, not VAR_DOMAIN.
8958 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8960 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8962 * features/nios2-linux.c: Regenerated.
8963 * features/nios2.c: Regenerated.
8965 2014-03-25 Pedro Alves <palves@redhat.com>
8967 * cli/cli-script.c (script_from_file): Force the interpreter to
8970 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8972 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8973 small stack allocation.
8975 2014-03-24 Tristan Gingold <gingold@adacore.com>
8977 * darwin-nat.c (exc_server): Remove unused prototype.
8978 (darwin_dump_message): Correctly display data on x86_64.
8979 (darwin_encode_reply): Fix style.
8980 Add comments and fix indentation.
8982 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8984 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8986 2014-03-22 Doug Evans <xdje42@gmail.com>
8988 * infcmd.c: Whitespace fixes.
8989 (interrupt_command): Merge two function comments into one.
8991 2014-03-22 Doug Evans <xdje42@gmail.com>
8993 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8996 2014-03-22 Yao Qi <yao@codesourcery.com>
8998 * remote.c (target_read_live_memory): Remove.
8999 (memory_xfer_live_readonly_partial): Rename it to
9000 remote_xfer_live_readonly_partial. Remove argument 'object'.
9001 All callers updated. Call remote_read_bytes_1
9002 instead of target_read_live_memory.
9003 * tracepoint.c (set_traceframe_number): Remove.
9004 (make_cleanup_restore_traceframe_number): Likewise .
9005 * tracepoint.h (set_traceframe_number): Remove declaration.
9006 (make_cleanup_restore_traceframe_number): Likewise.
9008 2014-03-22 Yao Qi <yao@codesourcery.com>
9010 * remote.c (remote_read_bytes): Move code on reading from the
9012 (remote_read_bytes_1): ... here. New function.
9014 2014-03-22 Yao Qi <yao@codesourcery.com>
9016 * ctf.c (ctf_xfer_partial): Check the return value of
9017 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9018 return TARGET_XFER_UNAVAILABLE.
9019 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9020 * target.c (target_read_live_memory): Move it to remote.c.
9021 (memory_xfer_live_readonly_partial): Likewise.
9022 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9023 * remote.c (target_read_live_memory): Moved from target.c.
9024 (memory_xfer_live_readonly_partial): Likewise.
9025 (remote_read_bytes): Factored out from
9026 memory_xfer_partial_1.
9028 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9030 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9033 2014-03-21 Pedro Alves <palves@redhat.com>
9035 * infrun.c (normal_stop): Extend comment.
9037 2014-03-21 Hui Zhu <hui@codesourcery.com>
9038 Pedro Alves <palves@redhat.com>
9040 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9042 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9043 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9044 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9046 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9048 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9049 `z' formatted output modifier.
9051 2014-03-20 Tom Tromey <tromey@redhat.com>
9052 Sergio Durigan Junior <sergiodj@redhat.com>
9054 * probe.c (parse_probes): Turn assert into an ordinary error.
9055 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9056 exceptions when parsing probes. Rearrange the code for clarity.
9058 2014-03-20 Tom Tromey <tromey@redhat.com>
9061 * top.c (execute_command): Only dispatch events if the command
9064 2014-03-20 Tom Tromey <tromey@redhat.com>
9067 * infcall.c: Include event-top.h.
9068 (run_inferior_call): Call async_disable_stdin if needed.
9070 2014-03-20 Pedro Alves <palves@redhat.com>
9072 * infrun.c (prepare_to_proceed): Delete.
9073 (thread_still_needs_step_over): New function.
9074 (find_thread_needs_step_over): New function.
9075 (proceed): If the current thread needs a step-over, set its
9076 steping_over_breakpoint flag. Adjust to use
9077 find_thread_needs_step_over instead of prepare_to_proceed.
9078 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9079 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9081 (switch_back_to_stepped_thread): Step over breakpoints of all
9082 threads not the stepping thread, before switching back to the
9085 2014-03-20 Pedro Alves <palves@redhat.com>
9087 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9089 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9090 * infrun.c (saved_singlestep_ptid)
9091 (stepping_past_singlestep_breakpoint): Delete.
9092 (resume): Remove stepping_past_singlestep_breakpoint handling.
9093 (proceed): Store the prev_pc of the stepping thread too.
9094 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9096 (enum infwait_states): Delete infwait_thread_hop_state.
9097 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9099 (handle_inferior_event): Adjust.
9100 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9101 handling and the thread-hop code. Before removing single-step
9102 breakpoints, check whether the thread hit a single-step breakpoint
9103 of another thread. If it did, the trap is not a random signal.
9104 (switch_back_to_stepped_thread): If the event thread hit a
9105 single-step breakpoint, unblock it before switching to the
9106 stepping thread. Handle the case of the stepped thread having
9108 (keep_going): Handle the case of the current thread moving past a
9109 single-step breakpoint.
9111 2014-03-20 Pedro Alves <palves@redhat.com>
9114 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9115 are being stepped over.
9116 (breakpoint_address_match): Make extern.
9117 * breakpoint.h (breakpoint_address_match): New declaration.
9118 * inferior.h (stepping_past_instruction_at): New declaration.
9119 * infrun.c (struct step_over_info): New type.
9120 (step_over_info): New global.
9121 (set_step_over_info, clear_step_over_info)
9122 (stepping_past_instruction_at): New functions.
9123 (handle_inferior_event): Clear the step-over info when
9124 trap_expected is cleared.
9125 (resume): Remove now stale comment.
9126 (clear_proceed_status): Clear step-over info.
9127 (proceed): Adjust step-over handling to set or clear the step-over
9128 info instead of removing all breakpoints.
9129 (handle_signal_stop): When setting up a thread-hop, don't remove
9131 (stop_stepping): Clear step-over info.
9132 (keep_going): Adjust step-over handling to set or clear step-over
9133 info and then always inserting breakpoints, instead of removing
9134 all breakpoints when stepping over one.
9136 2014-03-20 Pedro Alves <palves@redhat.com>
9138 * infrun.c (previous_inferior_ptid): Adjust comment.
9139 (deferred_step_ptid): Delete.
9140 (infrun_thread_ptid_changed, prepare_to_proceed)
9141 (init_wait_for_inferior): Adjust.
9142 (handle_signal_stop): Delete deferred_step_ptid handling.
9144 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9147 * defs.h (sync_quit_force_run): New declaration.
9148 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9149 * event-top.c (async_sigterm_handler): New declaration.
9150 (async_sigterm_token): New variable.
9151 (async_init_signals): Create also async_sigterm_token.
9152 (async_sigterm_handler): New function.
9153 (sync_quit_force_run): New variable.
9154 (handle_sigterm): Replace quit_force call by other calls.
9155 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9157 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9159 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9160 offset into SPE pseudo registers.
9162 2014-03-18 Pedro Alves <palves@redhat.com>
9165 * inferior.h (print_stop_event): Declare.
9166 * infrun.c (print_stop_event): New, factored out from ...
9167 (normal_stop): ... this.
9168 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9169 of bpstat_print/print_stack_frame.
9171 2014-03-17 Tom Tromey <tromey@redhat.com>
9173 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9175 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9177 * ada-lang.c (decode_constrained_packed_array): Perform a
9178 minimal coercion for reference with coerce_ref instead of
9181 2014-03-17 Tristan Gingold <gingold@adacore.com>
9183 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9184 (darwin_solib_create_inferior_hook): Emit a warning if version
9187 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9189 * python/py-value.c (get_field_flag): Cast flag_name argument to
9190 PyObject_GetAttrString to support Python 2.4.
9192 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9194 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9195 (Global Maintainers): Remove Jan Kratochvil.
9197 2014-03-14 Pedro Alves <palves@redhat.com>
9199 * inferior.h (terminal_ours_for_output): Rename to ...
9200 (child_terminal_ours_for_output): ... this.
9201 (terminal_save_ours): Rename to ...
9202 (child_terminal_save_ours): ... this.
9203 (terminal_ours): Rename to ...
9204 (child_terminal_ours): ... this.
9205 (terminal_inferior): Rename to ...
9206 (child_terminal_inferior): ... this.
9207 (terminal_init_inferior): Rename to ...
9208 (child_terminal_init_inferior): ... this.
9209 (terminal_init_inferior_with_pgrp): Rename to ...
9210 (child_terminal_init_inferior_with_pgrp): ... this.
9211 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9212 (child_terminal_init_with_pgrp): ... this.
9213 (terminal_save_ours): Rename to ...
9214 (child_terminal_save_ours): ... this.
9215 (terminal_init_inferior): Rename to ...
9216 (child_terminal_init): ... this. Adjust.
9217 (terminal_inferior): Rename to ...
9218 (child_terminal_inferior): ... this.
9219 (terminal_ours_for_output): Rename to ...
9220 (child_terminal_ours_for_output): ... this. Adjust.
9221 (terminal_ours): Rename to ...
9222 (child_terminal_ours): ... this.
9223 (terminal_ours_1): Rename to ...
9224 (child_terminal_ours_1): ... this. Adjust.
9225 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9226 * windows-nat.c (do_initial_windows_stuff): Adjust.
9227 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9228 (gnu_terminal_init): ... this. Adjust.
9229 (gnu_target): Adjust.
9230 * inf-child.c (inf_child_target): Adjust.
9232 2014-03-13 Doug Evans <xdje42@gmail.com>
9235 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9238 2014-03-13 Doug Evans <xdje42@gmail.com>
9240 * value.c (record_latest_value): Call release_value_or_incref
9241 instead of release_value.
9243 2014-03-13 Pedro Alves <palves@redhat.com>
9245 * procfs.c (procfs_target): Don't override to_shortname,
9246 to_longname or to_doc.
9248 2014-03-13 Pedro Alves <palves@redhat.com>
9250 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9251 Unix in user visible strings.
9253 2014-03-12 Stan Shebs <stan@codesourcery.com>
9255 * gdbtypes.h: Annotate comments for Doxygen, add a page
9256 block comment with some general info.
9258 2014-03-12 Pedro Alves <palves@redhat.com>
9260 * infcmd.c (prepare_execution_command): New function, factored out
9261 from several execution commands.
9262 (run_command_1, continue_command, step_1, jump_command)
9263 (signal_command, until_command, advance_command, finish_command)
9264 (attach_command): Use prepare_execution_command.
9266 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9268 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9271 (struct arm_linux_thread_points): Removed.
9272 (struct arm_linux_process_info): New.
9273 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9274 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9275 (arm_linux_find_breakpoints_by_tid): Removed.
9276 (struct arch_lwp_info): New.
9277 (arm_linux_find_process_pid): New functions.
9278 (arm_linux_add_process): New functions.
9279 (arm_linux_process_info_get): New functions.
9280 (arm_linux_forget_process): New function.
9281 (arm_linux_get_debug_reg_state): New function.
9282 (struct update_registers_data): New.
9283 (update_registers_callback): New function.
9284 (arm_linux_insert_hw_breakpoint1): Updated.
9285 (arm_linux_remove_hw_breakpoint1): Updated.
9286 (arm_linux_insert_hw_breakpoint): Updated.
9287 (arm_linux_remove_hw_breakpoint): Updated.
9288 (arm_linux_insert_watchpoint): Updated.
9289 (arm_linux_remove_watchpoint): Updated.
9290 (arm_linux_new_thread): Updated.
9291 (arm_linux_prepare_to_resume): New function.
9292 (arm_linux_new_fork): New function.
9293 (_initialize_arm_linux_nat): Updated.
9295 2014-03-12 Pedro Alves <palves@redhat.com>
9297 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9299 2014-03-12 Tom Tromey <tromey@redhat.com>
9301 * inf-child.c (return_zero): New function.
9302 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9303 * aix-thread.c (aix_thread_inferior_created): New function.
9304 (aix_thread_attach): Remove.
9305 (init_aix_thread_ops): Don't set to_attach.
9306 (_initialize_aix_thread): Register inferior_created observer.
9307 * corelow.c (init_core_ops): Don't set to_attach or
9309 * exec.c (init_exec_ops): Don't set to_attach or
9311 * infcmd.c (run_command_1): Use find_run_target. Make direct
9313 (attach_command): Use find_attach_target. Make direct target
9315 * record-btrace.c (init_record_btrace_ops): Don't set
9317 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9319 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9320 set to_create_inferior.
9321 * target.c (complete_target_initialization): Add assertion.
9322 (target_create_inferior): Remove.
9323 (find_default_attach, find_default_create_inferior): Remove.
9324 (find_attach_target, find_run_target): New functions.
9325 (find_default_is_async_p, find_default_can_async_p)
9326 (target_supports_non_stop, target_attach): Remove.
9327 (init_dummy_target): Don't set to_create_inferior or
9328 to_supports_non_stop.
9329 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9330 TARGET_DEFAULT_FUNC.
9331 <to_create_inferior>: Add comment.
9332 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9333 TARGET_DEFAULT_RETURN.
9334 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9335 (find_attach_target, find_run_target): Declare.
9336 (target_create_inferior): Remove.
9337 (target_has_execution_1): Update comment.
9338 (target_supports_non_stop): Remove.
9339 * target-delegates.c: Rebuild.
9341 2014-03-12 Pedro Alves <palves@redhat.com>
9343 * inf-child.h: Update comment to not mention Unix.
9345 2014-03-12 Pedro Alves <palves@redhat.com>
9347 * inf-child.c: Update top comment to not mention Unix. Add
9348 generic comment describing how this target is meant to be used.
9349 (inf_child_post_attach, inf_child_post_startup_inferior)
9350 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9353 2014-03-12 Pedro Alves <palves@redhat.com>
9355 * nto-procfs.c: Include inf-child.h.
9356 (procfs_ops): Delete global.
9357 (procfs_can_run): Delete method.
9358 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9359 target pointer instead of referencing procfs_ops.
9360 (procfs_prepare_to_store): Delete.
9361 (init_procfs_ops): Delete function.
9362 (procfs_target): New function, based on init_procfs_ops, but
9363 inherit inf_child_target.
9364 (_initialize_procfs): Use procfs_target.
9366 2014-03-12 Pedro Alves <palves@redhat.com>
9368 * windows-nat.c: Include inf-child.h.
9369 (windows_ops): Delete global.
9370 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9372 (init_windows_ops): Delete function.
9373 (windows_target): New function, based on init_windows_ops, but
9374 inherit inf_child_target.
9375 (_initialize_windows_nat): Use windows_target. Install x86
9376 specific target methods here.
9378 2014-03-10 Doug Evans <xdje42@gmail.com>
9380 * guile/guile.c (call_initialize_gdb_module): New function.
9381 (initialize_guile): Replace call to scm_init_guile with call to
9384 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9386 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9387 in call to TYPE_CODE macro.
9389 2014-03-10 Jerome Guitton <guitton@adacore.com>
9391 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9392 Resolve tagged types to full view.
9394 2014-03-10 Hui Zhu <hui@codesourcery.com>
9396 * target.h (target_insert_breakpoint): Remove "hardware" from its
9399 2014-03-07 Doug Evans <dje@google.com>
9401 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9403 2014-03-07 Doug Evans <dje@google.com>
9405 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9406 Remove unused local comp_dir_attr. Assert exactly one of
9407 stub_comp_unit_die, stub_comp_dir is non-NULL.
9409 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9411 * target.h (complete_target_initialization, add_target):
9414 2014-03-07 Pedro Alves <palves@redhat.com>
9416 * go32-nat.c: Include inf-child.h.
9417 (go32_ops): Delete global.
9418 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9420 (go32_create_inferior): Push the passed in target pointer instead
9421 of referencing go32_ops.
9422 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9423 (go32_target): New function, based on init_go32_ops, but inherit
9425 (_initialize_go32_nat): Use go32_target. Move parts of
9428 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9430 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9431 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9432 SYMBOL_VALUE_ADDRESS.
9433 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9435 2014-03-06 Yao Qi <yao@codesourcery.com>
9437 * breakpoint.c (get_tracepoint_by_number): Remove argument
9438 optional_p. All callers updated. Adjust comments. Update
9440 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9442 2014-03-06 Yao Qi <yao@codesourcery.com>
9444 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9445 early if get_number returns zero. Use 'p' instead of 'args'.
9447 2014-03-06 Yao Qi <yao@codesourcery.com>
9449 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9452 2014-03-06 Yao Qi <yao@codesourcery.com>
9454 PR breakpoints/16508
9455 * tracepoint.c (check_trace_running): New function.
9456 (trace_find_command): Move code to check_trace_running and
9457 call check_trace_running.
9458 (trace_find_pc_command): Likewise.
9459 (trace_find_tracepoint_command): Likewise.
9460 (trace_find_line_command): Likewise.
9461 (trace_find_range_command): Likewise.
9462 * tracepoint.h (check_trace_running): Likewise.
9463 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9465 2014-03-06 Yao Qi <yao@codesourcery.com>
9467 * target.h (struct target_ops) <to_traceframe_info>: Use
9468 TARGET_DEFAULT_NORETURN (tcomplain ()).
9469 * target-delegates.c: Regenerated.
9471 2014-03-05 Pedro Alves <palves@redhat.com>
9474 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9475 void. Update comment.
9476 (dcache_xfer_memory): Delete.
9477 (dcache_read_memory_partial): New, based on the read bits of
9479 (dcache_update): Add status parameter. Use ULONGEST for len, and
9480 adjust. Discard cache lines if the reason for the update was
9482 * dcache.h (dcache_xfer_memory): Delete declaration.
9483 (dcache_read_memory_partial): New declaration.
9484 (dcache_update): Update prototype.
9485 * target.c (raw_memory_xfer_partial): Update the dcache here.
9486 (memory_xfer_partial_1): Don't handle dcache writes here.
9488 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9490 * remote-sim.c (gdbsim_load): Add const to prog.
9492 2014-03-03 Tom Tromey <tromey@redhat.com>
9494 * elfread.c (probe_key): Change to bfd_data.
9495 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9496 now per-BFD, not per-objfile.
9497 * stap-probe.c (stap_probe_destroy): Update comment.
9498 (handle_stap_probe): Allocate on the per-BFD obstack.
9500 2014-03-03 Tom Tromey <tromey@redhat.com>
9502 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9503 * breakpoint.c (create_longjmp_master_breakpoint): Use
9505 (add_location_to_breakpoint, bkpt_probe_insert_location)
9506 (bkpt_probe_remove_location): Update.
9507 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9508 * elfread.c (elf_symfile_relocate_probe): Remove.
9509 (elf_probe_fns): Update.
9510 (insert_exception_resume_breakpoint): Change type of "probe"
9511 parameter to bound_probe.
9512 (check_exception_resume): Update.
9513 * objfiles.c (objfile_relocate1): Don't relocate probes.
9514 * probe.c (bound_probe_s): New typedef.
9515 (parse_probes): Use get_probe_address. Set sal's objfile.
9516 (find_probe_by_pc): Return a bound_probe.
9517 (collect_probes): Return a VEC(bound_probe_s).
9518 (compare_probes): Update.
9519 (gen_ui_out_table_header_info): Change type of "probes"
9521 (info_probes_for_ops): Update.
9522 (get_probe_address): New function.
9523 (probe_safe_evaluate_at_pc): Update.
9524 * probe.h (struct probe_ops) <get_probe_address>: New field.
9525 <set_semaphore, clear_semaphore>: Add objfile parameter.
9526 (struct probe) <objfile>: Remove field.
9528 <address>: Update comment.
9529 (struct bound_probe): New.
9530 (find_probe_by_pc): Return a bound_probe.
9531 (get_probe_address): Declare.
9532 * solib-svr4.c (struct probe_and_action) <address>: New field.
9533 (hash_probe_and_action, equal_probe_and_action): Update.
9534 (register_solib_event_probe): Add address parameter.
9535 (solib_event_probe_at): Update.
9536 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9538 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9539 (stap_get_probe_address): New function.
9540 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9541 (compile_probe_arg): Update.
9542 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9544 (handle_stap_probe): Don't relocate the probe.
9545 (stap_relocate): Remove.
9546 (stap_gen_info_probes_table_values): Update.
9547 (stap_probe_ops): Remove stap_relocate.
9548 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9549 (debug_sym_probe_fns): Update.
9550 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9551 * symtab.c (init_sal): Use memset.
9552 * symtab.h (struct symtab_and_line) <objfile>: New field.
9553 * tracepoint.c (start_tracing, stop_tracing): Update.
9555 2014-03-03 Tom Tromey <tromey@redhat.com>
9557 * probe.h (parse_probes, find_probe_by_pc)
9558 (find_probes_in_objfile): Fix comments.
9560 2014-03-02 Doug Evans <xdje42@gmail.com>
9562 * infrun.c (handle_signal_stop): Replace test for
9563 TARGET_WAITKIND_STOPPED with an assert.
9565 2014-03-02 Doug Evans <xdje42@gmail.com>
9567 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9569 2014-03-02 Doug Evans <xdje42@gmail.com>
9571 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9573 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9575 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9577 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9579 * i386obsd-nat.c: Include "obsd-nat.h".
9580 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9582 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9584 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9586 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9588 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9590 * mips64obsd-nat.c: Include "obsd-nath".
9591 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9593 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9595 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9597 * amd64obsd-nat.c: Include "obsd-nat,h.
9598 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9600 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9602 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9604 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9605 (find_overload_match): Update call to find_oload_champ.
9606 (find_oload_champ_namespace_loop): Likewise
9608 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9610 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9612 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9613 * config/sparc/obsd64.mh: New file.
9614 * sparc64obsd-nat.c: New file.
9616 * obsd-nat.h: New file.
9617 * obsd-nat.c: New file.
9618 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9619 (ALLDEPFILES): Add obsd-nat.c.
9621 2014-02-28 Tom Tromey <tromey@redhat.com>
9623 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9624 * cli-out.h (cli_ui_out_impl): Now const.
9625 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9626 * ui-out.c (struct ui_out) <impl>: Now const.
9627 (default_ui_out_impl): Now const.
9628 (ui_out_new): Make 'impl' parameter const.
9629 * ui-out.h (ui_out_new): Update.
9631 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9633 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9635 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9637 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9639 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9641 Additional PR 8882 fix.
9642 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9644 2014-02-27 Pedro Alves <palves@redhat.com>
9646 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9649 2014-02-27 Pedro Alves <palves@redhat.com>
9652 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9653 * nat/linux-waitpid.c: Include string.h.
9654 (status_to_str): Moved here and made extern.
9655 * nat/linux-waitpid.h (status_to_str): New declaration.
9657 2014-02-27 Hui Zhu <hui@codesourcery.com>
9660 * infrun.c (ptid_match): Move ...
9661 * common/ptid.c (ptid_match): ... here.
9662 * inferior.h (ptid_match): Move ...
9663 * common/ptid.h (ptid_match): ... here.
9665 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9667 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9668 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9671 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9673 * obsd-tdep.c (obsd_auxv_parse): New function.
9674 (obsd_init_abi): Set auxv_parse.
9676 * gdbarch.sh (auxv_parse): New.
9677 * gdbarch.h: Regenerated.
9678 * gdbarch.c: Regenerated.
9679 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9681 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9683 * guile/scm-value.c (gdbscm_history_append_x): New function.
9684 (value_functions): Add it.
9686 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9688 * dwarf2read.c (attr_value_as_address): New function.
9689 (dwarf2_find_base_address, read_call_site_scope): Use
9690 attr_value_as_address in place of DW_ADDR.
9691 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9692 the low and high addresses. Slight rework of the handling
9693 of the high pc being a constant form, and limit it to
9694 DWARF verson 4 or higher.
9695 (dwarf2_record_block_ranges): Likewise.
9696 (read_partial_die): Likewise.
9697 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9699 2014-02-26 Tom Tromey <tromey@redhat.com>
9701 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9703 2014-02-26 Tom Tromey <tromey@redhat.com>
9705 * elfread.c (elf_read_minimal_symbols): Return early if
9706 minimal symbols have already been read. Add "ei" parameter.
9707 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9708 * minsyms.c (prim_record_minimal_symbol_full): Update.
9709 * objfiles.h (struct objstats) <n_minsyms>: Move...
9710 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9711 * symmisc.c (print_objfile_statistics): Update.
9713 2014-02-26 Tom Tromey <tromey@redhat.com>
9715 * elfread.c (elf_read_minimal_symbols): New function, from
9717 (elf_symfile_read): Call it.
9719 2014-02-26 Tom Tromey <tromey@redhat.com>
9721 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9722 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9723 (lookup_minimal_symbol_solib_trampoline)
9724 (lookup_minimal_symbol_by_pc_section_1)
9725 (lookup_minimal_symbol_and_objfile): Update.
9726 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9727 Don't allocate a minimal symbol if minsyms have already been read.
9728 (build_minimal_symbol_hash_tables): Update.
9729 (install_minimal_symbols): Do nothing if minsyms already read.
9730 Use the per-BFD obstack.
9731 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9732 * objfiles.c (allocate_objfile): Call
9733 terminate_minimal_symbol_table later.
9734 (have_minimal_symbols): Update.
9735 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9736 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9737 Move from struct objfile.
9738 <minsyms_read>: New field.
9739 (struct objfile) <msymbols, minimal_symbol_count,
9740 msymbol_hash, msymbol_demangled_hash>: Move.
9741 (ALL_OBJFILE_MSYMBOLS): Update.
9742 * symfile.c (read_symbols): Set minsyms_read.
9743 (reread_symbols): Update.
9744 * symmisc.c (dump_objfile, dump_msymbols): Update.
9746 2014-02-26 Tom Tromey <tromey@redhat.com>
9748 * minsyms.c (msymbols_sort): Remove.
9749 * minsyms.h (msymbols_sort): Remove.
9750 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9751 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9752 * elfread.c (elf_symtab_read): Don't add section offsets.
9753 * xcoffread.c (record_minimal_symbol): Don't add section offset
9754 to minimal symbol address.
9755 * somread.c (text_offset, data_offset): Remove.
9756 (som_symtab_read): Don't add section offsets to minimal symbol
9758 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9759 Don't add section offsets to minimal symbols.
9760 * coffread.c (coff_symtab_read): Don't add section offsets
9761 to minimal symbol addresses.
9762 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9763 to minimal symbol addresses.
9764 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9765 section offset to minimal symbol addresses.
9766 * mdebugread.c (parse_partial_symbols): Don't add section
9767 offset to minimal symbol addresses.
9768 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9769 offset to minimal symbol addresses.
9771 2014-02-26 Tom Tromey <tromey@redhat.com>
9773 * ada-lang.c (ada_main_name): Update.
9774 (ada_add_standard_exceptions): Update.
9775 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9776 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9777 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9778 * auxv.c (ld_so_xfer_auxv): Update.
9779 * avr-tdep.c (avr_scan_prologue): Update.
9780 * ax-gdb.c (gen_var_ref): Update.
9781 * blockframe.c (get_pc_function_start)
9782 (find_pc_partial_function_gnu_ifunc): Update.
9783 * breakpoint.c (create_overlay_event_breakpoint)
9784 (create_longjmp_master_breakpoint)
9785 (create_std_terminate_master_breakpoint)
9786 (create_exception_master_breakpoint): Update.
9787 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9788 * c-valprint.c (c_val_print): Update.
9789 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9790 * common/agent.c (agent_look_up_symbols): Update.
9791 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9792 * dwarf2loc.c (call_site_to_target_addr): Update.
9793 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9794 * elfread.c (elf_gnu_ifunc_record_cache)
9795 (elf_gnu_ifunc_resolve_by_got): Update.
9796 * findvar.c (default_read_var_value): Update.
9797 * frame.c (inside_main_func): Update.
9798 * frv-tdep.c (frv_frame_this_id): Update.
9799 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9800 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9802 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9803 (hppa_hpux_find_dummy_bpaddr): Update.
9804 * hppa-tdep.c (hppa_symbol_address): Update.
9805 * infcmd.c (until_next_command): Update.
9806 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9808 * linespec.c (minsym_found, add_minsym): Update.
9809 * linux-nat.c (get_signo): Update.
9810 * linux-thread-db.c (inferior_has_bug): Update.
9811 * m32c-tdep.c (m32c_return_value)
9812 (m32c_m16c_address_to_pointer): Update.
9813 * m32r-tdep.c (m32r_frame_this_id): Update.
9814 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9815 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9816 * maint.c (maintenance_translate_address): Update.
9817 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9818 (frob_address): New function.
9819 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9820 frob_address. Rename parameter to "pc_in".
9821 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9823 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9825 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9826 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9827 * objc-lang.c (find_objc_msgsend): Update.
9828 * objfiles.c (objfile_relocate1): Update.
9829 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9830 * p-valprint.c (pascal_val_print): Update.
9831 * parse.c (write_exp_msymbol): Update.
9832 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9833 (ppc_elfv2_skip_entrypoint): Update.
9834 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9835 * printcmd.c (build_address_symbolic, msym_info)
9836 (address_info): Update.
9837 * proc-service.c (ps_pglobal_lookup): Update.
9838 * psymtab.c (find_pc_sect_psymtab_closer)
9839 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9840 Change msymbol parameter to bound_minimal_symbol.
9841 * ravenscar-thread.c (get_running_thread_id): Update.
9842 * remote.c (remote_check_symbols): Update.
9843 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9845 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9846 * solib-dsbt.c (lm_base): Update.
9847 * solib-frv.c (lm_base, main_got): Update.
9848 * solib-irix.c (locate_base): Update.
9849 * solib-som.c (som_solib_create_inferior_hook)
9850 (link_map_start): Update.
9851 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9852 * solib-svr4.c (elf_locate_base, enable_break): Update.
9853 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9854 (flush_ea_cache): Update.
9855 * stabsread.c (define_symbol, scan_file_globals): Update.
9856 * stack.c (find_frame_funname): Update.
9857 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9858 (debug_qf_find_pc_sect_symtab): Update.
9859 * symfile.c (simple_read_overlay_table)
9860 (simple_overlay_update): Update.
9861 * symfile.h (struct quick_symbol_functions)
9862 <find_pc_sect_symtab>: Change type of msymbol to
9863 bound_minimal_symbol.
9864 * symmisc.c (dump_msymbols): Update.
9865 * symtab.c (find_pc_sect_symtab_via_partial)
9866 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9867 (search_symbols, print_msymbol_info): Update.
9868 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9869 (MSYMBOL_VALUE_ADDRESS): Redefine.
9870 (BMSYMBOL_VALUE_ADDRESS): New macro.
9871 * tracepoint.c (scope_info): Update.
9872 * tui/tui-disasm.c (tui_find_disassembly_address)
9873 (tui_get_begin_asm_address): Update.
9874 * valops.c (find_function_in_inferior): Update.
9875 * value.c (value_static_field, value_fn_field): Update.
9877 2014-02-26 Tom Tromey <tromey@redhat.com>
9879 * ada-lang.c (ada_update_initial_language): Update.
9880 (ada_main_name, ada_has_this_exception_support): Update.
9881 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9882 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9883 * arm-tdep.c (arm_skip_stub): Update.
9884 * auxv.c (ld_so_xfer_auxv): Update.
9885 * avr-tdep.c (avr_scan_prologue): Update.
9886 * ax-gdb.c (gen_var_ref): Update.
9887 * breakpoint.c (struct breakpoint_objfile_data)
9888 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9889 type to bound_minimal_symbol.
9890 (create_overlay_event_breakpoint)
9891 (create_longjmp_master_breakpoint)
9892 (create_std_terminate_master_breakpoint)
9893 (create_exception_master_breakpoint): Update.
9894 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9895 * c-exp.y (classify_name): Update.
9896 * coffread.c (coff_symfile_read): Update.
9897 * common/agent.c (agent_look_up_symbols): Update.
9898 * d-lang.c (d_main_name): Update.
9899 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9900 * dec-thread.c (enable_dec_thread): Update.
9901 * dwarf2loc.c (call_site_to_target_addr): Update.
9902 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9903 * eval.c (evaluate_subexp_standard): Update.
9904 * findvar.c (struct minsym_lookup_data) <result>: Change type
9905 to bound_minimal_symbol.
9907 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9908 * frame.c (inside_main_func): Update.
9909 * frv-tdep.c (frv_frame_this_id): Update.
9910 * gcore.c (call_target_sbrk): Update.
9911 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9912 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9914 * go-lang.c (go_main_name): Update.
9915 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9916 (hppa_hpux_find_import_stub_for_addr): Update.
9917 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9918 Update. Change return type.
9919 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9921 * jit.c (jit_breakpoint_re_set_internal): Update.
9922 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9924 * linux-nat.c (get_signo): Update.
9925 * linux-thread-db.c (inferior_has_bug): Update
9926 * m32c-tdep.c (m32c_return_value)
9927 (m32c_m16c_address_to_pointer): Update.
9928 * m32r-tdep.c (m32r_frame_this_id): Update.
9929 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9930 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9931 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9932 lookup_minimal_symbol. Change return type.
9933 (lookup_minimal_symbol): Remove.
9934 (lookup_bound_minimal_symbol): Update.
9935 (lookup_minimal_symbol_text): Change return type.
9936 (lookup_minimal_symbol_solib_trampoline): Change return type.
9937 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9938 (lookup_minimal_symbol_solib_trampoline): Change return type.
9939 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9940 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9941 (value_nsstring, find_imps): Update.
9942 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9943 * p-lang.c (pascal_main_name): Update.
9944 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9945 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9946 * proc-service.c (ps_pglobal_lookup): Update.
9947 * ravenscar-thread.c (get_running_thread_msymbol): Change
9949 (has_ravenscar_runtime, get_running_thread_id): Update.
9950 * remote.c (remote_check_symbols): Update.
9951 * sol-thread.c (ps_pglobal_lookup): Update.
9952 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9953 * solib-dsbt.c (lm_base): Update.
9954 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9956 * solib-irix.c (locate_base): Update.
9957 * solib-som.c (som_solib_create_inferior_hook)
9958 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9960 * solib-spu.c (spu_enable_break): Update.
9961 * solib-svr4.c (elf_locate_base, enable_break): Update.
9962 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9963 (flush_ea_cache): Update.
9964 * stabsread.c (define_symbol): Update.
9965 * symfile.c (simple_read_overlay_table): Update.
9966 * symtab.c (find_pc_sect_line): Update.
9967 * tracepoint.c (scope_info): Update.
9968 * tui-disasm.c (tui_get_begin_asm_address): Update.
9969 * value.c (value_static_field): Update.
9971 2014-02-26 Tom Tromey <tromey@redhat.com>
9973 * minsyms.c (prim_record_minimal_symbol_full): Use
9974 SET_MSYMBOL_VALUE_ADDRESS.
9975 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9976 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9977 SET_MSYMBOL_VALUE_ADDRESS.
9978 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9979 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9981 2014-02-26 Tom Tromey <tromey@redhat.com>
9983 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9984 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9985 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9986 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9987 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9988 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9989 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9990 * ada-lang.c (ada_main_name): Update.
9991 (ada_lookup_simple_minsym): Update.
9992 (ada_make_symbol_completion_list): Update.
9993 (ada_add_standard_exceptions): Update.
9994 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9995 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9996 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9997 * arm-tdep.c (skip_prologue_function): Update.
9998 (arm_skip_stack_protector, arm_skip_stub): Update.
9999 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10000 (arm_wince_skip_main_prologue): Update.
10001 * auxv.c (ld_so_xfer_auxv): Update.
10002 * avr-tdep.c (avr_scan_prologue): Update.
10003 * ax-gdb.c (gen_var_ref): Update.
10004 * block.c (call_site_for_pc): Update.
10005 * blockframe.c (get_pc_function_start): Update.
10006 (find_pc_partial_function_gnu_ifunc): Update.
10007 * breakpoint.c (create_overlay_event_breakpoint): Update.
10008 (create_longjmp_master_breakpoint): Update.
10009 (create_std_terminate_master_breakpoint): Update.
10010 (create_exception_master_breakpoint): Update.
10011 (resolve_sal_pc): Update.
10012 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10013 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10015 * c-valprint.c (c_val_print): Update.
10016 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10017 * coffread.c (coff_symfile_read): Update.
10018 * common/agent.c (agent_look_up_symbols): Update.
10019 * dbxread.c (find_stab_function_addr): Update.
10020 (end_psymtab): Update.
10021 * dwarf2loc.c (call_site_to_target_addr): Update.
10022 (func_verify_no_selftailcall): Update.
10023 (tailcall_dump): Update.
10024 (call_site_find_chain_1): Update.
10025 (dwarf_expr_reg_to_entry_parameter): Update.
10026 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10027 (elf_gnu_ifunc_resolve_by_got): Update.
10028 * f-valprint.c (info_common_command): Update.
10029 * findvar.c (read_var_value): Update.
10030 * frame.c (get_prev_frame_1): Update.
10031 (inside_main_func): Update.
10032 * frv-tdep.c (frv_skip_main_prologue): Update.
10033 (frv_frame_this_id): Update.
10034 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10035 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10036 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10037 (gnuv3_skip_trampoline): Update.
10038 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10039 (hppa64_hpux_in_solib_call_trampoline): Update.
10040 (hppa_hpux_skip_trampoline_code): Update.
10041 (hppa64_hpux_search_dummy_call_sequence): Update.
10042 (hppa_hpux_find_import_stub_for_addr): Update.
10043 (hppa_hpux_find_dummy_bpaddr): Update.
10044 * hppa-tdep.c (hppa_symbol_address)
10045 (hppa_lookup_stub_minimal_symbol): Update.
10046 * i386-tdep.c (i386_skip_main_prologue): Update.
10047 (i386_pe_skip_trampoline_code): Update.
10048 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10049 * infcall.c (get_function_name): Update.
10050 * infcmd.c (until_next_command): Update.
10051 * jit.c (jit_breakpoint_re_set_internal): Update.
10052 (jit_inferior_init): Update.
10053 * linespec.c (minsym_found): Update.
10054 (add_minsym): Update.
10055 * linux-fork.c (info_checkpoints_command): Update.
10056 * linux-nat.c (get_signo): Update.
10057 * linux-thread-db.c (inferior_has_bug): Update.
10058 * m32c-tdep.c (m32c_return_value): Update.
10059 (m32c_m16c_address_to_pointer): Update.
10060 (m32c_m16c_pointer_to_address): Update.
10061 * m32r-tdep.c (m32r_frame_this_id): Update.
10062 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10063 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10064 * maint.c (maintenance_translate_address): Update.
10065 * minsyms.c (add_minsym_to_hash_table): Update.
10066 (add_minsym_to_demangled_hash_table): Update.
10067 (msymbol_objfile): Update.
10068 (lookup_minimal_symbol): Update.
10069 (iterate_over_minimal_symbols): Update.
10070 (lookup_minimal_symbol_text): Update.
10071 (lookup_minimal_symbol_by_pc_name): Update.
10072 (lookup_minimal_symbol_solib_trampoline): Update.
10073 (lookup_minimal_symbol_by_pc_section_1): Update.
10074 (lookup_minimal_symbol_and_objfile): Update.
10075 (prim_record_minimal_symbol_full): Update.
10076 (compare_minimal_symbols): Update.
10077 (compact_minimal_symbols): Update.
10078 (build_minimal_symbol_hash_tables): Update.
10079 (install_minimal_symbols): Update.
10080 (terminate_minimal_symbol_table): Update.
10081 (find_solib_trampoline_target): Update.
10082 (minimal_symbol_upper_bound): Update.
10083 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10084 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10085 (mips_skip_pic_trampoline_code): Update.
10086 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10087 * objc-lang.c (selectors_info): Update.
10088 (classes_info): Update.
10089 (find_methods): Update.
10090 (find_imps): Update.
10091 (find_objc_msgsend): Update.
10092 * objfiles.c (objfile_relocate1): Update.
10093 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10094 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10095 * p-valprint.c (pascal_val_print): Update.
10096 * parse.c (write_exp_msymbol): Update.
10097 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10098 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10099 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10100 * printcmd.c (build_address_symbolic): Update.
10101 (sym_info): Update.
10102 (address_info): Update.
10103 * proc-service.c (ps_pglobal_lookup): Update.
10104 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10105 (find_pc_sect_psymtab): Update.
10106 * python/py-framefilter.c (py_print_frame): Update.
10107 * ravenscar-thread.c (get_running_thread_id): Update.
10108 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10110 * remote.c (remote_check_symbols): Update.
10111 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10112 (rs6000_skip_trampoline_code): Update.
10113 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10114 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10115 * solib-dsbt.c (lm_base): Update.
10116 * solib-frv.c (lm_base): Update.
10117 (main_got): Update.
10118 * solib-irix.c (locate_base): Update.
10119 * solib-som.c (som_solib_create_inferior_hook): Update.
10120 (som_solib_desire_dynamic_linker_symbols): Update.
10121 (link_map_start): Update.
10122 * solib-spu.c (spu_enable_break): Update.
10123 (ocl_enable_break): Update.
10124 * solib-svr4.c (elf_locate_base): Update.
10125 (enable_break): Update.
10126 * spu-tdep.c (spu_get_overlay_table): Update.
10127 (spu_catch_start): Update.
10128 (flush_ea_cache): Update.
10129 * stabsread.c (define_symbol): Update.
10130 (scan_file_globals): Update.
10131 * stack.c (find_frame_funname): Update.
10132 (frame_info): Update.
10133 * symfile.c (simple_read_overlay_table): Update.
10134 (simple_overlay_update): Update.
10135 * symmisc.c (dump_msymbols): Update.
10136 * symtab.c (fixup_section): Update.
10137 (find_pc_sect_line): Update.
10138 (skip_prologue_sal): Update.
10139 (search_symbols): Update.
10140 (print_msymbol_info): Update.
10141 (rbreak_command): Update.
10142 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10143 (completion_list_objc_symbol): Update.
10144 (default_make_symbol_completion_list_break_on): Update.
10145 * tracepoint.c (scope_info): Update.
10146 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10147 (tui_get_begin_asm_address): Update.
10148 * valops.c (find_function_in_inferior): Update.
10149 * value.c (value_static_field): Update.
10150 (value_fn_field): Update.
10152 2014-02-26 Tom Tromey <tromey@redhat.com>
10154 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10155 bound minimal symbols. Move code that knows about minsym
10157 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10159 * minsyms.h (minimal_symbol_upper_bound): Declare.
10160 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10161 minimal_symbol_upper_bound.
10163 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10165 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10166 Use the type's name if its basic type does not have a tag.
10168 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10170 * dwarf2read.c (read_subrange_type): Add comment.
10172 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10174 * dwarf2read.c (update_enumeration_type_from_children): New
10175 function, mostly extracted from process_structure_scope.
10176 (read_enumeration_type): Call update_enumeration_type_from_children.
10177 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10178 and flag_flag_enum fields.
10180 2014-02-26 Pedro Alves <palves@redhat.com>
10182 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10183 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10184 to_xfer_partial method.
10186 2014-02-26 Pedro Alves <palves@redhat.com>
10188 * target.c (complete_target_initialization): Don't install
10189 default_xfer_partial as to_xfer_partial hook.
10190 (nomemory): Delete.
10191 (update_current_target): Don't INHERIT nor de_fault
10192 deprecated_xfer_memory. Delete de_fault macro.
10193 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10194 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10195 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10198 2014-02-26 Pedro Alves <palves@redhat.com>
10200 * go32-nat.c (my_write_child): New function.
10201 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10202 (go32_xfer_partial): New function.
10203 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10204 Instead install a to_xfer_partial hook.
10206 2014-02-26 Pedro Alves <palves@redhat.com>
10208 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10209 to_xfer_partial helper. Rewrite.
10210 (procfs_xfer_partial): New function.
10211 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10212 Install a to_xfer_partial hook.
10214 2014-02-26 Pedro Alves <palves@redhat.com>
10216 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10217 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10218 (m32r_xfer_partial): New function.
10219 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10220 Install a to_xfer_partial hook.
10222 2014-02-26 Pedro Alves <palves@redhat.com>
10224 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10226 (mips_xfer_partial): New function.
10227 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10228 hook. Install a to_xfer_partial hook.
10230 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10232 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10233 * gdbtypes.c (create_array_type_with_stride): New function,
10234 renaming create_array_type, but with an added parameter
10235 called "bit_stride".
10236 (create_array_type): Re-implement using
10237 create_array_type_with_stride.
10238 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10239 and DW_AT_bit_stride attributes.
10241 2014-02-26 Pedro Alves <palves@redhat.com>
10243 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10244 task-specific breakpoints.
10246 2014-02-25 Pedro Alves <palves@redhat.com>
10248 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10249 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10251 2014-02-25 Stan Shebs <stan@codesourcery.com>
10253 * defs.h: Annotate comments for Doxygen.
10255 2014-02-25 Tom Tromey <tromey@redhat.com>
10257 * target.h (target_ignore): Don't declare.
10258 * target.c (target_ignore): Remove.
10260 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10263 * auto-load.c (auto_load_objfile_script_1): Change filename to
10266 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10268 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10269 documentation. Adjust prototype to match the target_ops
10270 to_xfer_partial method. Adjust implementation accordingly.
10272 2014-02-25 Hui Zhu <hui@codesourcery.com>
10274 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10275 to_traceframe_info.
10277 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10279 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10280 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10281 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10282 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10283 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10284 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10285 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10286 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10288 (rl78_register_type): Use a data pointer type for SP and
10289 new pseudo registers mentioned above. Use a 16 bit integer
10290 type for all other register pairs.
10291 (rl78_register_name, rl78_g10_register_name): Update for
10292 new pseudo registers.
10293 (rl78_pseudo_register_read): Likewise.
10294 (rl78_pseudo_register_write): Likewise.
10295 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10296 to the newly added pseudo registers.
10298 2014-02-24 Doug Evans <dje@google.com>
10300 * value.c (record_latest_value): Fix comment.
10301 * printcmd.c (print_command_1): Remove code to handle -1 return from
10302 record_latest_value.
10304 2014-02-24 Pedro Alves <palves@redhat.com>
10306 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10307 deprecated_xfer_memory hook.
10308 (procfs_xfer_partial): Call procfs_xfer_memory instead
10309 of the deprecated_xfer_memory target hook.
10310 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10313 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10315 * windows-nat.c (windows_xfer_shared_libraries): Return
10316 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10317 requested object is TARGET_OBJECT_LIBRARIES.
10319 2014-02-24 Yao Qi <yao@codesourcery.com>
10321 * target.h (enum target_xfer_status)
10322 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10323 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10325 * corefile.c (memory_error_message): User updated.
10326 * exec.c (section_table_read_available_memory): Likewise.
10327 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10328 * target.c (target_xfer_status_to_string): Likewise.
10329 (raw_memory_xfer_partial): Likewise.
10330 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10331 * valops.c (read_value_memory): Likewise.
10332 * exec.h: Update comments.
10334 2014-02-24 Yao Qi <yao@codesourcery.com>
10336 * target.c (target_xfer_status_to_string): Rename argument err
10338 * target.h (target_xfer_status_to_string): Update declaration.
10339 Replace target_xfer_error_to_string with
10340 target_xfer_status_to_string in comment.
10342 2014-02-24 Yao Qi <yao@codesourcery.com>
10344 * mips-linux-nat.c (super_close): Update its type.
10345 (mips_linux_close): Pass 'self' to super_close.
10347 2014-02-24 Yao Qi <yao@codesourcery.com>
10349 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10350 * corefile.c (read_memory): Adjusted.
10351 * target.c (target_write_with_progress): Adjusted.
10353 2014-02-23 Yao Qi <yao@codesourcery.com>
10355 Revert two patches:
10357 2013-10-25 Yao Qi <yao@codesourcery.com>
10359 * remote.c (remote_traceframe_info): Return early if
10360 traceframe is not selected.
10362 2013-07-19 Yao Qi <yao@codesourcery.com>
10364 * target.c (update_current_target): Change the default action
10365 of 'to_traceframe_info' from tcomplain to return_zero.
10366 * target.h (struct target_ops) <to_traceframe_info>: Add more
10369 2014-02-23 Yao Qi <yao@codesourcery.com>
10371 * valops.c (read_value_memory): Rewrite it. Call
10372 target_xfer_partial in a loop.
10373 * exec.h (section_table_available_memory): Remove declaration.
10374 Move comments to ...
10375 * exec.c (section_table_available_memory): ... here. Make it
10378 2014-02-23 Yao Qi <yao@codesourcery.com>
10380 * exec.c (section_table_read_available_memory): New function.
10381 * exec.h (section_table_read_available_memory): Declare.
10382 * ctf.c (ctf_xfer_partial): Call
10383 section_table_read_available_memory.
10384 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10386 2014-02-23 Yao Qi <yao@codesourcery.com>
10388 * ctf.c (ctf_xfer_partial): Move code to ...
10389 * exec.c (exec_read_partial_read_only): ... it. New function.
10390 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10391 * tracefile.c: Include "exec.h".
10392 * exec.h (exec_read_partial_read_only): Declare.
10394 2014-02-23 Yao Qi <yao@codesourcery.com>
10396 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10397 (tfile_has_memory): Remove.
10398 (init_tfile_ops): Don't set fields to_has_all_memory and
10399 to_has_memory of tfile_ops.
10400 * tracefile.c (tracefile_has_all_memory): New function.
10401 (tracefile_has_memory): New function.
10402 (init_tracefile_ops): Initialize fields to_has_all_memory and
10403 to_has_memory of 'ops'.
10405 2014-02-23 Yao Qi <yao@codesourcery.com>
10407 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10408 (ctf_thread_alive, ctf_get_trace_status): Remove.
10409 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10410 init_tracefile_ops.
10411 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10412 (tfile_has_stack, tfile_has_registers): Remove.
10413 (tfile_thread_alive): Remove.
10414 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10415 init_tracefile_ops.
10416 * tracefile.c (tracefile_has_stack): New function.
10417 (tracefile_has_registers): New function.
10418 (tracefile_thread_alive): New function.
10419 (tracefile_get_trace_status): New function.
10420 (init_tracefile_ops): New function.
10421 * tracefile.h (init_tracefile_ops): Declare.
10423 2014-02-23 Yao Qi <yao@codesourcery.com>
10425 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10426 (O_LARGEFILE): Likewise.
10427 (tfile_ops): Likewise.
10428 (TRACE_HEADER_SIZE): Likewise.
10429 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10430 (cur_data_size): Likewise.
10431 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10432 (tfile_close, tfile_files_info): Likewise.
10433 (tfile_get_trace_status): Likewise.
10434 (tfile_get_tracepoint_status): Likewise.
10435 (tfile_get_traceframe_address): Likewise.
10436 (tfile_trace_find, match_blocktype): Likewise.
10437 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10438 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10439 (tfile_get_trace_state_variable_value): Likewise.
10440 (tfile_has_all_memory, tfile_has_memory): Likewise.
10441 (tfile_has_stack, tfile_has_registers): Likewise.
10442 (tfile_thread_alive, build_traceframe_info): Likewise.
10443 (tfile_traceframe_info, init_tfile_ops): Likewise.
10444 (_initialize_tracepoint): Don't call init_tfile_ops
10445 and add_target_with_completer.
10446 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10447 exec.h, completer.h and filenames.h.
10448 (_initialize_tracefile_tfile): New function.
10450 2014-02-23 Yao Qi <yao@codesourcery.com>
10452 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10454 (HFILES_NO_SRCDIR): Add tracefile.h.
10455 * ctf.c: Include "tracefile.h".
10456 * tracefile.h: New file.
10457 * tracefile.c: New file
10458 * tracefile-tfile.c: New file.
10459 * tracepoint.c: Include "tracefile.h".
10460 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10461 (stop_reason_names): Add const.
10462 (trace_file_writer_xfree): Move it to tracefile.c.
10463 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10464 (trace_save_ctf): Likewise.
10465 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10466 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10467 (tfile_write_header, tfile_write_regblock_type): Likewise.
10468 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10469 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10470 (tfile_write_raw_data, tfile_end): Likewise.
10471 (tfile_trace_file_writer_new): Likewise.
10472 (free_uploaded_tp): Make it extern.
10473 (free_uploaded_tsv): Make it extern.
10474 (_initialize_tracepoint): Move code to register command 'tsave'
10476 * tracepoint.h (stop_reason_names): Declare.
10477 (struct trace_frame_write_ops): Move it to tracefile.h.
10478 (struct trace_file_write_ops): Likewise.
10479 (struct trace_file_writer): Likewise.
10480 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10482 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10485 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10487 (get_cores_used_by_process): New parameter num_cores, use it.
10488 (linux_xfer_osdata_processes): Pass num_cores to it.
10489 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10492 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10494 * target.c (memory_xfer_partial): Fix length arg in call to
10495 breakpoint_xfer_memory.
10497 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10500 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10501 number comes after the + or - signs. Adjust length of register
10502 name to be extracted.
10504 2014-02-20 Tom Tromey <tromey@redhat.com>
10506 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10507 (ada_varobj_ops): Mark "extern".
10509 2014-02-20 Tom Tromey <tromey@redhat.com>
10511 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10513 2014-02-20 Doug Evans <xdje42@gmail.com>
10515 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10516 All callers updated.
10517 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10518 All callers updated.
10519 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10520 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10522 2014-02-20 lin zuojian <manjian2006@gmail.com>
10523 Joel Brobecker <brobecker@adacore.com>
10524 Doug Evans <xdje42@gmail.com>
10527 * dwarf2read.c (struct die_info): New member in_process.
10528 (reset_die_in_process): New function.
10529 (process_die): Set it at the start, reset when returning.
10530 (inherit_abstract_dies): Only call process_die if origin_child_die
10531 not already being processed.
10533 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10535 * windows-nat.c (handle_unload_dll): Add function documentation.
10536 (do_initial_windows_stuff): Add comment explaining why we wait
10537 until after inferior initialization has finished before
10538 processing all DLLs.
10540 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10542 * windows-nat.c (get_module_name): Delete.
10543 (windows_get_exec_module_filename): New function, mostly
10544 inspired from get_module_name.
10545 (windows_pid_to_exec_file): Replace call to get_module_name
10546 by call to windows_get_exec_module_filename.
10548 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10550 * windows-nat.c (handle_load_dll): Rewrite this function's
10551 introductory comment. Remove code using get_module_name
10552 to get the DLL's name.
10554 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10556 * windows-nat.c (get_windows_debug_event): Ignore
10557 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10558 if windows_initialization_done == 0.
10559 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10560 Adjust implementation to always load all DLLs.
10561 (do_initial_windows_stuff): Replace call to
10562 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10564 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10566 * windows-nat.c (_initialize_windows_nat): Deprecate the
10567 "dll-symbols" command. Turn the "add-shared-symbol-files"
10568 and "assf" aliases into commands, and deprecate them as well.
10569 * NEWS: Add entry explaining that "dll-symbols" and its two
10570 aliases are now deprecated.
10572 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10574 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10575 new-line in debug string. Remove trailing spaces.
10577 2014-02-19 Stan Shebs <stan@codesourcery.com>
10579 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10581 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10583 * NEWS: Add entry for the new feature
10584 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10587 2014-02-19 Stan Shebs <stan@codesourcery.com>
10589 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10591 2014-02-19 Pedro Alves <palves@redhat.com>
10593 * common/ptid.h (struct ptid): Mention that process_stratum
10594 targets should prefer ptid.lwp.
10596 2014-02-19 Pedro Alves <palves@redhat.com>
10598 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10599 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10600 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10601 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10602 store remote thread ids rather than ptid.tid.
10603 (_initialize_remote): Adjust.
10605 2014-02-19 Tom Tromey <tromey@redhat.com>
10607 * target.c (target_get_unwinder): Rewrite.
10608 (target_get_tailcall_unwinder): Rewrite.
10609 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10610 (record_btrace_to_get_tailcall_unwinder): New function.
10611 (init_record_btrace_ops): Update.
10612 * target.h (struct target_ops) <to_get_unwinder,
10613 to_get_tailcall_unwinder>: Now function pointers. Use
10614 TARGET_DEFAULT_RETURN.
10616 2014-02-19 Tom Tromey <tromey@redhat.com>
10618 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10620 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10622 2014-02-19 Tom Tromey <tromey@redhat.com>
10624 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10626 * target-delegates.c: Rebuild.
10627 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10628 TARGET_DEFAULT_FUNC.
10629 * target.c (default_target_decr_pc_after_break): Rename from
10630 forward_target_decr_pc_after_break. Simplify.
10631 (target_decr_pc_after_break): Rely on delegation.
10633 2014-02-19 Tom Tromey <tromey@redhat.com>
10635 * target.c (update_current_target): Do not INHERIT to_doc or
10636 to_magic. Do not de_fault to_open or to_close.
10638 2014-02-19 Tom Tromey <tromey@redhat.com>
10640 * gcore.h (objfile_find_memory_regions): Declare.
10641 * gcore.c (objfile_find_memory_regions): No longer static. Add
10643 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10644 * exec.c: Include gcore.h.
10645 (exec_set_find_memory_regions): Remove.
10646 (exec_find_memory_regions): Remove.
10647 (exec_do_find_memory_regions): Remove.
10648 (init_exec_ops): Update.
10649 * defs.h (exec_set_find_memory_regions): Remove.
10651 2014-02-19 Tom Tromey <tromey@redhat.com>
10653 * target-delegates.c: Rebuild.
10654 * target.h (struct target_ops) <to_extra_thread_info,
10655 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10656 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10657 not 0, in TARGET_DEFAULT_RETURN.
10659 2014-02-19 Tom Tromey <tromey@redhat.com>
10661 * target.c (complete_target_initialization): Remove casts. Use
10662 return_zero_has_execution.
10663 (return_zero): Add "ignore" argument.
10664 (return_zero_has_execution): New function.
10665 (init_dummy_target): Remove casts. Use
10666 return_zero_has_execution.
10668 2014-02-19 Tom Tromey <tromey@redhat.com>
10670 * target.c (update_current_target): Update comments. Do not
10671 INHERIT to_stratum.
10673 2014-02-19 Tom Tromey <tromey@redhat.com>
10675 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10677 * corelow.c (core_read_description): Delegate when needed.
10678 * remote.c (remote_read_description): Delegate when needed.
10679 * target-delegates.c: Rebuild.
10680 * target.c (target_read_description): Rewrite.
10681 * target.h (struct target_ops) <to_read_description>: Update
10682 comment. Use TARGET_DEFAULT_RETURN.
10684 2014-02-19 Tom Tromey <tromey@redhat.com>
10686 * target-delegates.c: Rebuild.
10687 * target.c (update_current_target): Don't inherit or default
10689 (find_default_run_target): Check against delegate_can_run.
10690 * target.h (struct target_ops) <to_can_run>: Use
10691 TARGET_DEFAULT_RETURN.
10693 2014-02-19 Tom Tromey <tromey@redhat.com>
10695 * target-delegates.c: Rebuild.
10696 * target.c (target_disconnect): Unconditionally delegate.
10697 * target.h (struct target_ops) <to_disconnect>: Use
10698 TARGET_DEFAULT_NORETURN.
10700 2014-02-19 Tom Tromey <tromey@redhat.com>
10702 * record.c (record_stop): Unconditionally delegate.
10703 * target-delegates.c: Rebuild.
10704 * target.c (target_stop_recording): Unconditionally delegate.
10705 * target.h (struct target_ops) <to_stop_recording>: Use
10706 TARGET_DEFAULT_IGNORE.
10708 2014-02-19 Tom Tromey <tromey@redhat.com>
10710 * target-delegates.c: Rebuild.
10711 * target.c (target_enable_btrace): Unconditionally delegate.
10712 * target.h (struct target_ops) <to_enable_btrace>: Use
10713 TARGET_DEFAULT_NORETURN.
10715 2014-02-19 Tom Tromey <tromey@redhat.com>
10717 * target-delegates.c: Rebuild.
10718 * target.c (target_read_btrace): Unconditionally delegate.
10719 * target.h (struct target_ops) <to_read_btrace>: Use
10720 TARGET_DEFAULT_NORETURN.
10722 2014-02-19 Tom Tromey <tromey@redhat.com>
10724 * target-delegates.c: Rebuild.
10725 * target.c (target_teardown_btrace): Unconditionally delegate.
10726 * target.h (struct target_ops) <to_teardown_btrace>: Use
10727 TARGET_DEFAULT_NORETURN.
10729 2014-02-19 Tom Tromey <tromey@redhat.com>
10731 * target-delegates.c: Rebuild.
10732 * target.c (target_disable_btrace): Unconditionally delegate.
10733 * target.h (struct target_ops) <to_disable_btrace>: Use
10734 TARGET_DEFAULT_NORETURN.
10736 2014-02-19 Tom Tromey <tromey@redhat.com>
10738 * target-delegates.c: Rebuild.
10739 * target.c (default_search_memory): New function.
10740 (simple_search_memory): Update comment.
10741 (target_search_memory): Unconditionally delegate.
10742 * target.h (struct target_ops) <to_search_memory>: Use
10743 TARGET_DEFAULT_FUNC.
10745 2014-02-19 Tom Tromey <tromey@redhat.com>
10747 * auxv.c (default_auxv_parse): No longer static.
10748 (target_auxv_parse): Unconditionally delegate.
10749 * auxv.h (default_auxv_parse): Declare.
10750 * target-delegates.c: Rebuild.
10751 * target.c: Include auxv.h.
10752 * target.h (struct target_ops) <to_auxv_parse>: Use
10753 TARGET_DEFAULT_FUNC.
10755 2014-02-19 Tom Tromey <tromey@redhat.com>
10757 * target-delegates.c: Rebuild.
10758 * target.c (target_memory_map): Unconditionally delegate.
10759 * target.h (struct target_ops) <to_memory_map>: Use
10760 TARGET_DEFAULT_RETURN.
10762 2014-02-19 Tom Tromey <tromey@redhat.com>
10764 * target-delegates.c: Rebuild.
10765 * target.c (target_thread_alive): Unconditionally delegate.
10766 * target.h (struct target_ops) <to_thread_alive>: Use
10767 TARGET_DEFAULT_RETURN.
10769 2014-02-19 Tom Tromey <tromey@redhat.com>
10771 * target-delegates.c: Rebuild.
10772 * target.c (target_save_record): Unconditionally delegate.
10773 * target.h (struct target_ops) <to_save_record>: Use
10774 TARGET_DEFAULT_NORETURN.
10776 2014-02-19 Tom Tromey <tromey@redhat.com>
10778 * target-delegates.c: Rebuild.
10779 * target.c (target_delete_record): Unconditionally delegate.
10780 * target.h (struct target_ops) <to_delete_record>: Use
10781 TARGET_DEFAULT_NORETURN.
10783 2014-02-19 Tom Tromey <tromey@redhat.com>
10785 * target-delegates.c: Rebuild.
10786 * target.c (target_record_is_replaying): Unconditionally
10788 * target.h (struct target_ops) <to_record_is_replaying>: Use
10789 TARGET_DEFAULT_RETURN.
10791 2014-02-19 Tom Tromey <tromey@redhat.com>
10793 * target-delegates.c: Rebuild.
10794 * target.c (target_goto_record_begin): Unconditionally delegate.
10795 * target.h (struct target_ops) <to_goto_record_begin>: Use
10796 TARGET_DEFAULT_NORETURN.
10798 2014-02-19 Tom Tromey <tromey@redhat.com>
10800 * target-delegates.c: Rebuild.
10801 * target.c (target_goto_record_end): Unconditionally delegate.
10802 * target.h (struct target_ops) <to_goto_record_end>: Use
10803 TARGET_DEFAULT_NORETURN.
10805 2014-02-19 Tom Tromey <tromey@redhat.com>
10807 * target-delegates.c: Rebuild.
10808 * target.c (target_goto_record): Unconditionally delegate.
10809 * target.h (struct target_ops) <to_goto_record>: Use
10810 TARGET_DEFAULT_NORETURN.
10812 2014-02-19 Tom Tromey <tromey@redhat.com>
10814 * target-delegates.c: Rebuild.
10815 * target.c (target_insn_history): Unconditionally delegate.
10816 * target.h (struct target_ops) <to_insn_history>: Use
10817 TARGET_DEFAULT_NORETURN.
10819 2014-02-19 Tom Tromey <tromey@redhat.com>
10821 * target-delegates.c: Rebuild.
10822 * target.c (target_insn_history_from): Unconditionally delegate.
10823 * target.h (struct target_ops) <to_insn_history_from>: Use
10824 TARGET_DEFAULT_NORETURN.
10826 2014-02-19 Tom Tromey <tromey@redhat.com>
10828 * target-delegates.c: Rebuild.
10829 * target.c (target_insn_history_range): Unconditionally delegate.
10830 * target.h (struct target_ops) <to_insn_history_range>: Use
10831 TARGET_DEFAULT_NORETURN.
10833 2014-02-19 Tom Tromey <tromey@redhat.com>
10835 * target-delegates.c: Rebuild.
10836 * target.c (target_call_history): Unconditionally delegate.
10837 * target.h (struct target_ops) <to_call_history>: Use
10838 TARGET_DEFAULT_NORETURN.
10840 2014-02-19 Tom Tromey <tromey@redhat.com>
10842 * target-delegates.c: Rebuild.
10843 * target.c (target_call_history_from): Unconditionally delegate.
10844 * target.h (struct target_ops) <to_call_history_from>: Use
10845 TARGET_DEFAULT_NORETURN.
10847 2014-02-19 Tom Tromey <tromey@redhat.com>
10849 * target-delegates.c: Rebuild.
10850 * target.c (target_call_history_range): Unconditionally delegate.
10851 * target.h (struct target_ops) <to_call_history_range>: Use
10852 TARGET_DEFAULT_NORETURN.
10854 2014-02-19 Tom Tromey <tromey@redhat.com>
10856 * target-delegates.c: Rebuild.
10857 * target.c (target_verify_memory): Unconditionally delegate.
10858 * target.h (struct target_ops) <to_verify_memory>: Use
10859 TARGET_DEFAULT_NORETURN.
10861 2014-02-19 Tom Tromey <tromey@redhat.com>
10863 * target-delegates.c: Rebuild.
10864 * target.c (target_core_of_thread): Unconditionally delegate.
10865 * target.h (struct target_ops) <to_core_of_thread>: Use
10866 TARGET_DEFAULT_RETURN.
10868 2014-02-19 Tom Tromey <tromey@redhat.com>
10870 * target-delegates.c: Rebuild.
10871 * target.c (target_flash_done): Unconditionally delegate.
10872 * target.h (struct target_ops) <to_flash_done>: Use
10873 TARGET_DEFAULT_NORETURN.
10875 2014-02-19 Tom Tromey <tromey@redhat.com>
10877 * target-delegates.c: Rebuild.
10878 * target.c (target_flash_erase): Unconditionally delegate.
10879 * target.h (struct target_ops) <to_flash_erase>: Use
10880 TARGET_DEFAULT_NORETURN.
10882 2014-02-19 Tom Tromey <tromey@redhat.com>
10884 * target-delegates.c: Rebuild.
10885 * target.c (target_get_section_table): Unconditionally delegate.
10886 * target.h (struct target_ops) <to_get_section_table>: Use
10887 TARGET_DEFAULT_RETURN.
10889 2014-02-19 Tom Tromey <tromey@redhat.com>
10891 * target-delegates.c: Rebuild.
10892 * target.c (target_pid_to_str): Unconditionally delegate.
10893 (init_dummy_target): Don't initialize to_pid_to_str.
10894 (default_pid_to_str): Rename from dummy_pid_to_str.
10895 * target.h (struct target_ops) <to_pid_to_str>: Use
10896 TARGET_DEFAULT_FUNC.
10898 2014-02-19 Tom Tromey <tromey@redhat.com>
10900 * target-delegates.c: Rebuild.
10901 * target.c (target_find_new_threads): Unconditionally delegate.
10902 * target.h (struct target_ops) <to_find_new_threads>: Use
10903 TARGET_DEFAULT_RETURN.
10905 2014-02-19 Tom Tromey <tromey@redhat.com>
10907 * target-delegates.c: Rebuild.
10908 * target.c (target_program_signals): Unconditionally delegate.
10909 * target.h (struct target_ops) <to_program_signals>: Use
10910 TARGET_DEFAULT_IGNORE.
10912 2014-02-19 Tom Tromey <tromey@redhat.com>
10914 * target-delegates.c: Rebuild.
10915 * target.c (target_pass_signals): Unconditionally delegate.
10916 * target.h (struct target_ops) <to_pass_signals>: Use
10917 TARGET_DEFAULT_IGNORE.
10919 2014-02-19 Tom Tromey <tromey@redhat.com>
10921 * target-delegates.c: Rebuild.
10922 * target.c (default_mourn_inferior): New function.
10923 (target_mourn_inferior): Unconditionally delegate.
10924 * target.h (struct target_ops) <to_mourn_inferior>: Use
10925 TARGET_DEFAULT_FUNC.
10927 2014-02-19 Tom Tromey <tromey@redhat.com>
10929 * target-delegates.c: Rebuild.
10930 * target.c (default_follow_fork): New function.
10931 (target_follow_fork): Unconditionally delegate.
10932 * target.h (struct target_ops) <to_follow_fork>: Use
10933 TARGET_DEFAULT_FUNC.
10935 2014-02-19 Tom Tromey <tromey@redhat.com>
10937 * target-delegates.c: Rebuild.
10938 * target.c (target_kill): Unconditionally delegate.
10939 * target.h (struct target_ops) <to_kill>: Use
10940 TARGET_DEFAULT_NORETURN.
10942 2014-02-19 Tom Tromey <tromey@redhat.com>
10944 * target-delegates.c: Rebuild.
10945 * target.c (target_masked_watch_num_registers): Unconditionally
10947 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10948 Use TARGET_DEFAULT_RETURN.
10950 2014-02-19 Tom Tromey <tromey@redhat.com>
10952 * target-delegates.c: Rebuild.
10953 * target.c (target_remove_mask_watchpoint): Unconditionally
10955 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10956 TARGET_DEFAULT_RETURN.
10958 2014-02-19 Tom Tromey <tromey@redhat.com>
10960 * target-delegates.c: Rebuild.
10961 * target.c (target_insert_mask_watchpoint): Unconditionally
10963 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10964 TARGET_DEFAULT_RETURN.
10966 2014-02-19 Tom Tromey <tromey@redhat.com>
10968 * target-delegates.c: Rebuild.
10969 * target.c (target_ranged_break_num_registers): Unconditionally
10971 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10972 Use TARGET_DEFAULT_RETURN.
10974 2014-02-19 Tom Tromey <tromey@redhat.com>
10976 * target-delegates.c: Rebuild.
10977 * target.c (target_fetch_registers): Unconditionally delegate.
10978 * target.h (struct target_ops) <to_fetch_registers>: Use
10979 TARGET_DEFAULT_NORETURN.
10981 2014-02-19 Tom Tromey <tromey@redhat.com>
10983 * target-delegates.c: Rebuild.
10984 * target.c (update_current_target): Don't inherit or default
10986 * target.h (struct target_ops) <to_stop>: Use
10987 TARGET_DEFAULT_IGNORE.
10989 2014-02-19 Tom Tromey <tromey@redhat.com>
10991 * target-delegates.c: Rebuild.
10992 * target.c (update_current_target): Don't inherit or default
10993 to_can_run_breakpoint_commands.
10994 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10995 Use TARGET_DEFAULT_RETURN.
10997 2014-02-19 Tom Tromey <tromey@redhat.com>
10999 * target-delegates.c: Rebuild.
11000 * target.c (update_current_target): Don't inherit or default
11001 to_supports_evaluation_of_breakpoint_conditions.
11002 * target.h (struct target_ops)
11003 <to_supports_evaluation_of_breakpoint_conditions>: Use
11004 TARGET_DEFAULT_RETURN.
11006 2014-02-19 Tom Tromey <tromey@redhat.com>
11008 * target-delegates.c: Rebuild.
11009 * target.c (update_current_target): Don't inherit or default
11010 to_augmented_libraries_svr4_read.
11011 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11012 Use TARGET_DEFAULT_RETURN.
11014 2014-02-19 Tom Tromey <tromey@redhat.com>
11016 * target-delegates.c: Rebuild.
11017 * target.c (update_current_target): Don't inherit or default
11019 * target.h (struct target_ops) <to_can_use_agent>: Use
11020 TARGET_DEFAULT_RETURN.
11022 2014-02-19 Tom Tromey <tromey@redhat.com>
11024 * target-delegates.c: Rebuild.
11025 * target.c (update_current_target): Don't inherit or default
11027 * target.h (struct target_ops) <to_use_agent>: Use
11028 TARGET_DEFAULT_NORETURN.
11030 2014-02-19 Tom Tromey <tromey@redhat.com>
11032 * target-delegates.c: Rebuild.
11033 * target.c (update_current_target): Don't inherit or default
11034 to_traceframe_info.
11035 (return_null): Remove.
11036 * target.h (struct target_ops) <to_traceframe_info>: Use
11037 TARGET_DEFAULT_RETURN.
11039 2014-02-19 Tom Tromey <tromey@redhat.com>
11041 * target-delegates.c: Rebuild.
11042 * target.c (update_current_target): Don't inherit or default
11043 to_static_tracepoint_markers_by_strid.
11044 * target.h (struct target_ops)
11045 <to_static_tracepoint_markers_by_strid>: Use
11046 TARGET_DEFAULT_NORETURN.
11048 2014-02-19 Tom Tromey <tromey@redhat.com>
11050 * target-delegates.c: Rebuild.
11051 * target.c (update_current_target): Don't inherit or default
11052 to_static_tracepoint_marker_at.
11053 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11054 Use TARGET_DEFAULT_RETURN.
11056 2014-02-19 Tom Tromey <tromey@redhat.com>
11058 * target-delegates.c: Rebuild.
11059 * target.c (update_current_target): Don't inherit or default
11060 to_set_permissions.
11061 * target.h (struct target_ops) <to_set_permissions>: Use
11062 TARGET_DEFAULT_IGNORE.
11064 2014-02-19 Tom Tromey <tromey@redhat.com>
11066 * target-delegates.c: Rebuild.
11067 * target.c (update_current_target): Don't inherit or default
11068 to_get_tib_address.
11069 * target.h (struct target_ops) <to_get_tib_address>: Use
11070 TARGET_DEFAULT_NORETURN.
11072 2014-02-19 Tom Tromey <tromey@redhat.com>
11074 * target-delegates.c: Rebuild.
11075 * target.c (update_current_target): Don't inherit or default
11076 to_set_trace_notes.
11077 * target.h (struct target_ops) <to_set_trace_notes>: Use
11078 TARGET_DEFAULT_RETURN.
11080 2014-02-19 Tom Tromey <tromey@redhat.com>
11082 * target-delegates.c: Rebuild.
11083 * target.c (update_current_target): Don't initialize
11084 to_set_trace_buffer_size.
11085 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11086 TARGET_DEFAULT_IGNORE.
11088 2014-02-19 Tom Tromey <tromey@redhat.com>
11090 * target-delegates.c: Rebuild.
11091 * target.c (update_current_target): Don't inherit or default
11092 to_set_circular_trace_buffer.
11093 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11094 TARGET_DEFAULT_IGNORE.
11096 2014-02-19 Tom Tromey <tromey@redhat.com>
11098 * target-delegates.c: Rebuild.
11099 * target.c (update_current_target): Don't inherit or default
11100 to_set_disconnected_tracing.
11101 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11102 TARGET_DEFAULT_IGNORE.
11104 2014-02-19 Tom Tromey <tromey@redhat.com>
11106 * target-delegates.c: Rebuild.
11107 * target.c (update_current_target): Don't inherit or default
11108 to_get_min_fast_tracepoint_insn_len.
11109 (return_minus_one): Remove.
11110 * target.h (struct target_ops)
11111 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11113 2014-02-19 Tom Tromey <tromey@redhat.com>
11115 * target-delegates.c: Rebuild.
11116 * target.c (update_current_target): Don't inherit or default
11117 to_get_raw_trace_data.
11118 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11119 TARGET_DEFAULT_NORETURN.
11121 2014-02-19 Tom Tromey <tromey@redhat.com>
11123 * target-delegates.c: Rebuild.
11124 * target.c (update_current_target): Don't inherit or default
11125 to_upload_trace_state_variables.
11126 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11127 Use TARGET_DEFAULT_RETURN.
11129 2014-02-19 Tom Tromey <tromey@redhat.com>
11131 * target-delegates.c: Rebuild.
11132 * target.c (update_current_target): Don't inherit or default
11133 to_upload_tracepoints.
11134 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11135 TARGET_DEFAULT_RETURN.
11137 2014-02-19 Tom Tromey <tromey@redhat.com>
11139 * target-delegates.c: Rebuild.
11140 * target.c (update_current_target): Don't inherit or default
11141 to_save_trace_data.
11142 * target.h (struct target_ops) <to_save_trace_data>: Use
11143 TARGET_DEFAULT_NORETURN.
11145 2014-02-19 Tom Tromey <tromey@redhat.com>
11147 * target-delegates.c: Rebuild.
11148 * target.c (update_current_target): Don't inherit or default
11149 to_get_trace_state_variable_value.
11150 * target.h (struct target_ops)
11151 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11153 2014-02-19 Tom Tromey <tromey@redhat.com>
11155 * target-delegates.c: Rebuild.
11156 * target.c (update_current_target): Don't inherit or default
11158 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11160 2014-02-19 Tom Tromey <tromey@redhat.com>
11162 * target-delegates.c: Rebuild.
11163 * target.c (update_current_target): Don't inherit or default
11165 * target.h (struct target_ops) <to_trace_stop>: Use
11166 TARGET_DEFAULT_NORETURN.
11168 2014-02-19 Tom Tromey <tromey@redhat.com>
11170 * target-delegates.c: Rebuild.
11171 * target.c (update_current_target): Don't inherit or default
11172 to_get_tracepoint_status.
11173 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11174 TARGET_DEFAULT_NORETURN.
11176 2014-02-19 Tom Tromey <tromey@redhat.com>
11178 * target-delegates.c: Rebuild.
11179 * target.c (update_current_target): Don't inherit or default
11180 to_get_trace_status.
11181 * target.h (struct target_ops) <to_get_trace_status>: Use
11182 TARGET_DEFAULT_RETURN.
11184 2014-02-19 Tom Tromey <tromey@redhat.com>
11186 * target-delegates.c: Rebuild.
11187 * target.c (update_current_target): Don't inherit or default
11189 * target.h (struct target_ops) <to_trace_start>: Use
11190 TARGET_DEFAULT_NORETURN.
11192 2014-02-19 Tom Tromey <tromey@redhat.com>
11194 * target-delegates.c: Rebuild.
11195 * target.c (update_current_target): Don't inherit or default
11196 to_trace_set_readonly_regions.
11197 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11198 Use TARGET_DEFAULT_NORETURN.
11200 2014-02-19 Tom Tromey <tromey@redhat.com>
11202 * target-delegates.c: Rebuild.
11203 * target.c (update_current_target): Don't inherit or default
11204 to_disable_tracepoint.
11205 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11206 TARGET_DEFAULT_NORETURN.
11208 2014-02-19 Tom Tromey <tromey@redhat.com>
11210 * target-delegates.c: Rebuild.
11211 * target.c (update_current_target): Don't inherit or default
11212 to_enable_tracepoint.
11213 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11214 TARGET_DEFAULT_NORETURN.
11216 2014-02-19 Tom Tromey <tromey@redhat.com>
11218 * target-delegates.c: Rebuild.
11219 * target.c (update_current_target): Don't inherit or default
11220 to_download_trace_state_variable.
11221 * target.h (struct target_ops) <to_download_trace_state_variable>:
11222 Use TARGET_DEFAULT_NORETURN.
11224 2014-02-19 Tom Tromey <tromey@redhat.com>
11226 * target-delegates.c: Rebuild.
11227 * target.c (update_current_target): Don't inherit or default
11228 to_can_download_tracepoint.
11229 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11230 TARGET_DEFAULT_RETURN.
11232 2014-02-19 Tom Tromey <tromey@redhat.com>
11234 * target-delegates.c: Rebuild.
11235 * target.c (update_current_target): Don't inherit or default
11236 to_download_tracepoint.
11237 * target.h (struct target_ops) <to_download_tracepoint>: Use
11238 TARGET_DEFAULT_NORETURN.
11240 2014-02-19 Tom Tromey <tromey@redhat.com>
11242 * target-delegates.c: Rebuild.
11243 * target.c (update_current_target): Don't inherit or default
11245 * target.h (struct target_ops) <to_trace_init>: Use
11246 TARGET_DEFAULT_RETURN.
11248 2014-02-19 Tom Tromey <tromey@redhat.com>
11250 * target-delegates.c: Rebuild.
11251 * target.c (update_current_target): Don't inherit or default
11252 to_supports_string_tracing.
11253 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11254 TARGET_DEFAULT_RETURN.
11256 2014-02-19 Tom Tromey <tromey@redhat.com>
11258 * target-delegates.c: Rebuild.
11259 * target.c (update_current_target): Don't inherit or default
11260 to_supports_enable_disable_tracepoint.
11261 * target.h (struct target_ops)
11262 <to_supports_enable_disable_tracepoint>: Use
11263 TARGET_DEFAULT_RETURN.
11265 2014-02-19 Tom Tromey <tromey@redhat.com>
11267 * target-delegates.c: Rebuild.
11268 * target.c (update_current_target): Don't inherit or default
11269 to_supports_multi_process.
11270 * target.h (struct target_ops) <to_supports_multi_process>: Use
11271 TARGET_DEFAULT_RETURN.
11273 2014-02-19 Tom Tromey <tromey@redhat.com>
11275 * target-delegates.c: Rebuild.
11276 * target.c (update_current_target): Don't inherit or default
11277 to_get_ada_task_ptid.
11278 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11279 TARGET_DEFAULT_FUNC.
11281 2014-02-19 Tom Tromey <tromey@redhat.com>
11283 * target-delegates.c: Rebuild.
11284 * target.c (update_current_target): Don't inherit or default
11285 to_thread_architecture.
11286 * target.h (struct target_ops) <to_thread_architecture>: Use
11287 TARGET_DEFAULT_FUNC.
11289 2014-02-19 Tom Tromey <tromey@redhat.com>
11291 * target-delegates.c: Rebuild.
11292 * target.c (update_current_target): Don't inherit or default
11293 to_execution_direction.
11294 * target.h (struct target_ops) <to_execution_direction>: Use
11295 TARGET_DEFAULT_FUNC.
11297 2014-02-19 Tom Tromey <tromey@redhat.com>
11299 * target-delegates.c: Rebuild.
11300 * target.c (update_current_target): Don't inherit or default
11301 to_can_execute_reverse.
11302 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11303 TARGET_DEFAULT_RETURN.
11304 (target_can_execute_reverse): Unconditionally delegate.
11306 2014-02-19 Tom Tromey <tromey@redhat.com>
11308 * target-delegates.c: Rebuild.
11309 * target.c (update_current_target): Don't inherit or default
11311 (dummy_goto_bookmark): Remove.
11312 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11313 * target.h (struct target_ops) <to_goto_bookmark>: Use
11314 TARGET_DEFAULT_NORETURN.
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_get_bookmark): Remove.
11322 (init_dummy_target): Don't inherit or default to_get_bookmark.
11323 * target.h (struct target_ops) <to_get_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
11330 to_make_corefile_notes.
11331 (init_dummy_target): Don't initialize to_make_corefile_notes.
11332 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11333 TARGET_DEFAULT_FUNC.
11335 2014-02-19 Tom Tromey <tromey@redhat.com>
11337 * target-delegates.c: Rebuild.
11338 * target.c (update_current_target): Don't inherit or default
11339 to_find_memory_regions.
11340 (init_dummy_target): Don't initialize to_find_memory_regions.
11341 * target.h (struct target_ops) <to_find_memory_regions>: Use
11342 TARGET_DEFAULT_FUNC.
11344 2014-02-19 Tom Tromey <tromey@redhat.com>
11346 * target-delegates.c: Rebuild.
11347 * target.c (update_current_target): Don't inherit or default
11349 * target.h (struct target_ops) <to_log_command>: Use
11350 TARGET_DEFAULT_IGNORE.
11351 (target_log_command): Unconditionally delegate.
11353 2014-02-19 Tom Tromey <tromey@redhat.com>
11355 * target-delegates.c: Rebuild.
11356 * target.c (update_current_target): Don't inherit or default
11357 to_pid_to_exec_file.
11358 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11359 TARGET_DEFAULT_RETURN.
11361 2014-02-19 Tom Tromey <tromey@redhat.com>
11363 * target-delegates.c: Rebuild.
11364 * target.c (update_current_target): Don't inherit or default
11366 (target_thread_name): Unconditionally delegate.
11367 * target.h (struct target_ops) <to_thread_name>: Use
11368 TARGET_DEFAULT_RETURN.
11370 2014-02-19 Tom Tromey <tromey@redhat.com>
11372 * target-delegates.c: Rebuild.
11373 * target.c (update_current_target): Don't inherit or default
11374 to_extra_thread_info.
11375 * target.h (struct target_ops) <to_extra_thread_info>: Use
11376 TARGET_DEFAULT_RETURN.
11378 2014-02-19 Tom Tromey <tromey@redhat.com>
11380 * target-delegates.c: Rebuild.
11381 * target.c (update_current_target): Don't inherit or default
11383 * target.h (struct target_ops) <to_has_exited>: Use
11384 TARGET_DEFAULT_RETURN..
11386 2014-02-19 Tom Tromey <tromey@redhat.com>
11388 * target-delegates.c: Rebuild.
11389 * target.c (update_current_target): Don't inherit or default
11390 to_set_syscall_catchpoint.
11391 (return_one): Remove.
11392 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11393 TARGET_DEFAULT_RETURN.
11395 2014-02-19 Tom Tromey <tromey@redhat.com>
11397 * target-delegates.c: Rebuild.
11398 * target.c (update_current_target): Don't inherit or default
11399 to_insert_exec_catchpoint.
11400 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11401 TARGET_DEFAULT_RETURN.
11403 2014-01-08 Tom Tromey <tromey@redhat.com>
11405 * target-delegates.c: Rebuild.
11406 * target.c (update_current_target): Don't inherit or default
11407 to_insert_exec_catchpoint.
11408 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11409 TARGET_DEFAULT_RETURN.
11411 2014-02-19 Tom Tromey <tromey@redhat.com>
11413 * target-delegates.c: Rebuild.
11414 * target.c (update_current_target): Don't inherit or default
11415 to_remove_vfork_catchpoint.
11416 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11417 TARGET_DEFAULT_RETURN.
11419 2014-02-19 Tom Tromey <tromey@redhat.com>
11421 * target-delegates.c: Rebuild.
11422 * target.c (update_current_target): Don't inherit or default
11423 to_insert_vfork_catchpoint.
11424 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11425 TARGET_DEFAULT_RETURN.
11427 2014-02-19 Tom Tromey <tromey@redhat.com>
11429 * target-delegates.c: Rebuild.
11430 * target.c (update_current_target): Don't inherit or default
11431 to_remove_fork_catchpoint.
11432 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11433 TARGET_DEFAULT_RETURN.
11435 2014-02-19 Tom Tromey <tromey@redhat.com>
11437 * target-delegates.c: Rebuild.
11438 * target.c (update_current_target): Don't inherit or default
11439 to_insert_fork_catchpoint.
11440 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11441 TARGET_DEFAULT_RETURN.
11443 2014-02-19 Tom Tromey <tromey@redhat.com>
11445 * target-delegates.c: Rebuild.
11446 * target.c (update_current_target): Don't inherit or default
11447 to_post_startup_inferior.
11448 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11449 TARGET_DEFAULT_IGNORE.
11451 2014-02-19 Tom Tromey <tromey@redhat.com>
11453 * target-delegates.c: Rebuild.
11454 * target.c (update_current_target): Don't inherit or default
11456 * target.h (struct target_ops) <to_load>: Use
11457 TARGET_DEFAULT_NORETURN.
11459 2014-02-19 Tom Tromey <tromey@redhat.com>
11461 * target-delegates.c: Rebuild.
11462 * target.c (update_current_target): Don't inherit or default
11464 * target.h (struct target_ops) <to_terminal_info>: Use
11465 TARGET_DEFAULT_FUNC.
11467 2014-02-19 Tom Tromey <tromey@redhat.com>
11469 * target-delegates.c: Rebuild.
11470 * target.c (update_current_target): Don't inherit or default
11471 to_terminal_save_ours.
11472 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11473 TARGET_DEFAULT_IGNORE.
11475 2014-02-19 Tom Tromey <tromey@redhat.com>
11477 * target-delegates.c: Rebuild.
11478 * target.c (update_current_target): Don't inherit or default
11480 * target.h (struct target_ops) <to_terminal_ours>: Use
11481 TARGET_DEFAULT_IGNORE.
11483 2014-02-19 Tom Tromey <tromey@redhat.com>
11485 * target-delegates.c: Rebuild.
11486 * target.c (update_current_target): Don't inherit or default
11487 to_terminal_ours_for_output.
11488 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11489 TARGET_DEFAULT_IGNORE.
11491 2014-02-19 Tom Tromey <tromey@redhat.com>
11493 * target-delegates.c: Rebuild.
11494 * target.c (update_current_target): Don't inherit or default
11495 to_terminal_inferior.
11496 * target.h (struct target_ops) <to_terminal_inferior>: Use
11497 TARGET_DEFAULT_IGNORE.
11499 2014-02-19 Tom Tromey <tromey@redhat.com>
11501 * target-delegates.c: Rebuild.
11502 * target.c (update_current_target): Don't inherit or default
11504 * target.h (struct target_ops) <to_terminal_init>: Use
11505 TARGET_DEFAULT_IGNORE.
11507 2014-02-19 Tom Tromey <tromey@redhat.com>
11509 * target-delegates.c: Rebuild.
11510 * target.c (update_current_target): Don't inherit or default
11511 to_can_accel_watchpoint_condition.
11512 * target.h (struct target_ops)
11513 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11515 2014-02-19 Tom Tromey <tromey@redhat.com>
11517 * target-delegates.c: Rebuild.
11518 * target.c (update_current_target): Don't inherit or default
11519 to_region_ok_for_hw_watchpoint.
11520 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11521 Use TARGET_DEFAULT_FUNC.
11523 2014-02-19 Tom Tromey <tromey@redhat.com>
11525 * target-delegates.c: Rebuild.
11526 * target.c (update_current_target): Don't inherit or default
11527 to_watchpoint_addr_within_range.
11528 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11529 Use TARGET_DEFAULT_FUNC.
11531 2014-02-19 Tom Tromey <tromey@redhat.com>
11533 * target-delegates.c: Rebuild.
11534 * target.c (update_current_target): Don't inherit or default
11535 to_remove_watchpoint.
11536 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11537 TARGET_DEFAULT_NORETURN.
11539 2014-02-19 Tom Tromey <tromey@redhat.com>
11541 * target-delegates.c: Rebuild.
11542 * target.c (update_current_target): Don't inherit or default
11543 to_insert_watchpoint.
11544 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11545 TARGET_DEFAULT_RETURN.
11547 2014-02-19 Tom Tromey <tromey@redhat.com>
11549 * target-delegates.c: Rebuild.
11550 * target.c (update_current_target): Don't inherit or default
11551 to_remove_hw_breakpoint.
11552 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11553 TARGET_DEFAULT_RETURN.
11555 2014-02-19 Tom Tromey <tromey@redhat.com>
11557 * target-delegates.c: Rebuild.
11558 * target.c (update_current_target): Don't inherit or default
11559 to_insert_hw_breakpoint.
11560 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11561 TARGET_DEFAULT_RETURN.
11563 2014-02-19 Tom Tromey <tromey@redhat.com>
11565 * target-delegates.c: Rebuild.
11566 * target.c (update_current_target): Don't inherit or default
11567 to_can_use_hw_breakpoint.
11568 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11569 TARGET_DEFAULT_RETURN.
11571 2014-02-19 Tom Tromey <tromey@redhat.com>
11573 * target-delegates.c: Rebuild.
11574 * target.c (update_current_target): Don't inherit or default
11576 * target.h (struct target_ops) <to_files_info>: Use
11577 TARGET_DEFAULT_IGNORE.
11579 2014-02-19 Tom Tromey <tromey@redhat.com>
11581 * target-delegates.c: Rebuild.
11582 * target.c (update_current_target): Don't inherit or default
11584 * target.h (struct target_ops) <to_store>: Use
11585 TARGET_DEFAULT_NORETURN.
11587 2014-02-19 Tom Tromey <tromey@redhat.com>
11589 * target-delegates.c: Rebuild.
11590 * target.c (update_current_target): Don't inherit or default
11592 * target.h (struct target_ops) <to_post_attach>: Use
11593 TARGET_DEFAULT_IGNORE.
11595 2014-02-19 Tom Tromey <tromey@redhat.com>
11597 * target-delegates.c: Rebuild.
11598 * target.c (update_current_target): Don't inherit or default
11600 (default_rcmd): New function.
11601 (do_monitor_command): Unconditionally delegate.
11602 * target.h (struct target_ops) <to_rmcd>: Use
11603 TARGET_DEFAULT_FUNC.
11605 2014-02-19 Tom Tromey <tromey@redhat.com>
11607 * target-delegates.c: Rebuild.
11608 * target.c (init_dummy_target): Don't initialize to_attach.
11609 (target_attach): Unconditionally delegate.
11610 * target.h (struct target_ops) <to_attach>: Use
11611 TARGET_DEFAULT_FUNC.
11613 2014-02-19 Tom Tromey <tromey@redhat.com>
11615 * target-delegates.c: Rebuild.
11616 * target.c (target_detach): Unconditionally delegate.
11617 (init_dummy_target): Don't initialize to_detach.
11618 * target.h (struct target_ops) <to_detach>: Use
11619 TARGET_DEFAULT_IGNORE.
11621 2014-02-19 Tom Tromey <tromey@redhat.com>
11623 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11625 (target_augmented_libraries_svr4_read): Add argument.
11626 * target.c (update_current_target): Update.
11627 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11630 2014-02-19 Tom Tromey <tromey@redhat.com>
11632 * target.h (struct target_ops) <to_call_history_range>: Add
11634 * target.c (target_call_history_range): Add argument.
11635 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11637 (record_btrace_call_history_from): Update.
11639 2014-02-19 Tom Tromey <tromey@redhat.com>
11641 * target.h (struct target_ops) <to_call_history_from>: Add
11643 * target.c (target_call_history_from): Add argument.
11644 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11647 2014-02-19 Tom Tromey <tromey@redhat.com>
11649 * target.h (struct target_ops) <to_call_history>: Add argument.
11650 * target.c (target_call_history): Add argument.
11651 * record-btrace.c (record_btrace_call_history): Add 'self'
11654 2014-02-19 Tom Tromey <tromey@redhat.com>
11656 * target.h (struct target_ops) <to_insn_history_range>: Add
11658 * target.c (target_insn_history_range): Add argument.
11659 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11661 (record_btrace_insn_history_from): Update.
11663 2014-02-19 Tom Tromey <tromey@redhat.com>
11665 * target.h (struct target_ops) <to_insn_history_from>: Add
11667 * target.c (target_insn_history_from): Add argument.
11668 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11671 2014-02-19 Tom Tromey <tromey@redhat.com>
11673 * target.h (struct target_ops) <to_insn_history>: Add argument.
11674 * target.c (target_insn_history): Add argument.
11675 * record-btrace.c (record_btrace_insn_history): Add 'self'
11678 2014-02-19 Tom Tromey <tromey@redhat.com>
11680 * target.h (struct target_ops) <to_goto_record>: Add argument.
11681 * target.c (target_goto_record): Add argument.
11682 * record-full.c (record_full_goto): Add 'self' argument.
11683 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11685 2014-02-19 Tom Tromey <tromey@redhat.com>
11687 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11688 * target.c (target_goto_record_end): Add argument.
11689 * record-full.c (record_full_goto_end): Add 'self' argument.
11690 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11692 2014-02-19 Tom Tromey <tromey@redhat.com>
11694 * target.h (struct target_ops) <to_goto_record_begin>: Add
11696 * target.c (target_goto_record_begin): Add argument.
11697 * record-full.c (record_full_goto_begin): Add 'self' argument.
11698 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11701 2014-02-19 Tom Tromey <tromey@redhat.com>
11703 * target.h (struct target_ops) <to_record_is_replaying>: Add
11705 * target.c (target_record_is_replaying): Add argument.
11706 * record-full.c (record_full_is_replaying): Add 'self' argument.
11707 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11709 (record_btrace_xfer_partial, record_btrace_store_registers)
11710 (record_btrace_prepare_to_store, record_btrace_resume)
11711 (record_btrace_wait, record_btrace_decr_pc_after_break)
11712 (record_btrace_find_new_threads, record_btrace_thread_alive):
11715 2014-02-19 Tom Tromey <tromey@redhat.com>
11717 * target.h (struct target_ops) <to_delete_record>: Add argument.
11718 * target.c (target_delete_record): Add argument.
11719 * record-full.c (record_full_delete): Add 'self' argument.
11721 2014-02-19 Tom Tromey <tromey@redhat.com>
11723 * target.h (struct target_ops) <to_save_record>: Add argument.
11724 * target.c (target_save_record): Add argument.
11725 * record-full.c (record_full_save): Add 'self' argument.
11726 (record_full_save): Add 'self' argument.
11728 2014-02-19 Tom Tromey <tromey@redhat.com>
11730 * target.h (struct target_ops) <to_info_record>: Add argument.
11731 * target.c (target_info_record): Add argument.
11732 * record.c (info_record_command): Add argument.
11733 * record-full.c (record_full_info): Add 'self' argument.
11734 * record-btrace.c (record_btrace_info): Add 'self' argument.
11736 2014-02-19 Tom Tromey <tromey@redhat.com>
11738 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11739 * target.c (target_stop_recording): Add argument.
11740 * record.c (record_stop): Add argument.
11741 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11744 2014-02-19 Tom Tromey <tromey@redhat.com>
11746 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11747 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11748 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11750 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11751 (_initialize_amd64_linux_nat): Use it.
11752 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11753 (_initialize_i386_linux_nat): Use it.
11755 2014-02-19 Tom Tromey <tromey@redhat.com>
11757 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11758 * target.c (target_teardown_btrace): Add argument.
11759 * remote.c (remote_teardown_btrace): Add 'self' argument.
11760 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11762 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11765 2014-02-19 Tom Tromey <tromey@redhat.com>
11767 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11768 * target.c (target_disable_btrace): Add argument.
11769 * remote.c (remote_disable_btrace): Add 'self' argument.
11770 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11772 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11775 2014-02-19 Tom Tromey <tromey@redhat.com>
11777 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11778 * target.c (target_enable_btrace): Add argument.
11779 * remote.c (remote_enable_btrace): Add 'self' argument.
11780 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11782 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11785 2014-02-19 Tom Tromey <tromey@redhat.com>
11787 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11788 (target_can_use_agent): Add argument.
11789 * target.c (update_current_target): Update.
11790 * remote.c (remote_can_use_agent): Add 'self' argument.
11791 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11793 2014-02-19 Tom Tromey <tromey@redhat.com>
11795 * target.h (struct target_ops) <to_use_agent>: Add argument.
11796 (target_use_agent): Add argument.
11797 * target.c (update_current_target): Update.
11798 * remote.c (remote_use_agent): Add 'self' argument.
11799 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11801 2014-02-19 Tom Tromey <tromey@redhat.com>
11803 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11804 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11805 (target_traceframe_info): Add argument.
11806 * target.c (update_current_target): Update.
11807 * remote.c (remote_traceframe_info): Add 'self' argument.
11808 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11810 2014-02-19 Tom Tromey <tromey@redhat.com>
11812 * target.h (target_static_tracepoint_markers_by_strid): Add
11814 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11816 * target.c (update_current_target): Update.
11817 * remote.c (struct target_ops)
11818 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11819 * linux-nat.c (struct target_ops)
11820 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11822 2014-02-19 Tom Tromey <tromey@redhat.com>
11824 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11826 (target_static_tracepoint_marker_at): Add argument.
11827 * target.c (update_current_target): Update.
11828 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11831 2014-02-19 Tom Tromey <tromey@redhat.com>
11833 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11834 (target_set_permissions): Add argument.
11835 * target.c (update_current_target): Update.
11836 * remote.c (remote_set_permissions): Add 'self' argument.
11837 (remote_start_remote): Update.
11839 2014-02-19 Tom Tromey <tromey@redhat.com>
11841 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11842 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11843 (target_get_tib_address): Add argument.
11844 * target.c (update_current_target): Update.
11845 * remote.c (remote_get_tib_address): Add 'self' argument.
11847 2014-02-19 Tom Tromey <tromey@redhat.com>
11849 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11850 (target_set_trace_notes): Add argument.
11851 * target.c (update_current_target): Update.
11852 * remote.c (remote_set_trace_notes): Add 'self' argument.
11854 2014-02-19 Tom Tromey <tromey@redhat.com>
11856 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11858 (target_set_trace_buffer_size): Add argument.
11859 * target.c (update_current_target): Update.
11860 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11862 2014-02-19 Tom Tromey <tromey@redhat.com>
11864 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11866 (target_set_circular_trace_buffer): Add argument.
11867 * target.c (update_current_target): Update.
11868 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11871 2014-02-19 Tom Tromey <tromey@redhat.com>
11873 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11875 (target_set_disconnected_tracing): Add argument.
11876 * target.c (update_current_target): Update.
11877 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11879 2014-02-19 Tom Tromey <tromey@redhat.com>
11881 * target.h (struct target_ops)
11882 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11883 (target_get_min_fast_tracepoint_insn_len): Add argument.
11884 * target.c (update_current_target): Update.
11885 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11888 2014-02-19 Tom Tromey <tromey@redhat.com>
11890 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11892 (target_get_raw_trace_data): Add argument.
11893 * target.c (update_current_target): Update.
11894 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11896 2014-02-19 Tom Tromey <tromey@redhat.com>
11898 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11900 (target_upload_trace_state_variables): Add argument.
11901 * target.c (update_current_target): Update.
11902 * remote.c (remote_upload_trace_state_variables): Add 'self'
11904 (remote_start_remote): Update.
11906 2014-02-19 Tom Tromey <tromey@redhat.com>
11908 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11910 (target_upload_tracepoints): Add argument.
11911 * target.c (update_current_target): Update.
11912 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11913 (remote_start_remote): Update.
11915 2014-02-19 Tom Tromey <tromey@redhat.com>
11917 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11918 (target_save_trace_data): Add argument.
11919 * target.c (update_current_target): Update.
11920 * remote.c (remote_save_trace_data): Add 'self' argument.
11922 2014-02-19 Tom Tromey <tromey@redhat.com>
11924 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11926 * target.h (struct target_ops)
11927 <to_get_trace_state_variable_value>: Add argument.
11928 (target_get_trace_state_variable_value): Add argument.
11929 * target.c (update_current_target): Update.
11930 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11932 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11934 2014-02-19 Tom Tromey <tromey@redhat.com>
11936 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11937 * target.h (struct target_ops) <to_trace_find>: Add argument.
11938 (target_trace_find): Add argument.
11939 * target.c (update_current_target): Update.
11940 * remote.c (remote_trace_find): Add 'self' argument.
11941 * ctf.c (ctf_trace_find): Add 'self' argument.
11943 2014-02-19 Tom Tromey <tromey@redhat.com>
11945 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11946 (target_trace_stop): Add argument.
11947 * target.c (update_current_target): Update.
11948 * remote.c (remote_trace_stop): Add 'self' argument.
11950 2014-02-19 Tom Tromey <tromey@redhat.com>
11952 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11953 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11955 (target_get_tracepoint_status): Add argument.
11956 * target.c (update_current_target): Update.
11957 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11959 2014-02-19 Tom Tromey <tromey@redhat.com>
11961 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11962 * target.h (struct target_ops) <to_get_trace_status>: Add
11964 (target_get_trace_status): Add argument.
11965 * target.c (update_current_target): Update.
11966 * remote.c (remote_get_trace_status): Add 'self' argument.
11967 (remote_start_remote, remote_can_download_tracepoint): Update.
11968 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11970 2014-02-19 Tom Tromey <tromey@redhat.com>
11972 * target.h (struct target_ops) <to_trace_start>: Add argument.
11973 (target_trace_start): Add argument.
11974 * target.c (update_current_target): Update.
11975 * remote.c (remote_trace_start): Add 'self' argument.
11977 2014-02-19 Tom Tromey <tromey@redhat.com>
11979 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11981 (target_trace_set_readonly_regions): Add argument.
11982 * target.c (update_current_target): Update.
11983 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11986 2014-02-19 Tom Tromey <tromey@redhat.com>
11988 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11990 (target_disable_tracepoint): Add argument.
11991 * target.c (update_current_target): Update.
11992 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11994 2014-02-19 Tom Tromey <tromey@redhat.com>
11996 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11998 (target_enable_tracepoint): Add argument.
11999 * target.c (update_current_target): Update.
12000 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12002 2014-02-19 Tom Tromey <tromey@redhat.com>
12004 * target.h (struct target_ops) <to_download_trace_state_variable>:
12006 (target_download_trace_state_variable): Add argument.
12007 * target.c (update_current_target): Update.
12008 * remote.c (remote_download_trace_state_variable): Add 'self'
12011 2014-02-19 Tom Tromey <tromey@redhat.com>
12013 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12015 (target_can_download_tracepoint): Add argument.
12016 * target.c (update_current_target): Update.
12017 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12019 2014-02-19 Tom Tromey <tromey@redhat.com>
12021 * target.h (struct target_ops) <to_download_tracepoint>: Add
12023 (target_download_tracepoint): Add argument.
12024 * target.c (update_current_target): Update.
12025 * remote.c (remote_download_tracepoint): Add 'self' argument.
12027 2014-02-19 Tom Tromey <tromey@redhat.com>
12029 * target.h (struct target_ops) <to_trace_init>: Add argument.
12030 (target_trace_init): Add argument.
12031 * target.c (update_current_target): Update.
12032 * remote.c (remote_trace_init): Add 'self' argument.
12034 2014-02-19 Tom Tromey <tromey@redhat.com>
12036 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12037 * target.c (target_fileio_readlink): Add argument.
12038 * remote.c (remote_hostio_readlink): Add 'self' argument.
12039 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12041 2014-02-19 Tom Tromey <tromey@redhat.com>
12043 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12044 * target.c (target_fileio_unlink): Add argument.
12045 * remote.c (remote_hostio_unlink): Add 'self' argument.
12046 (remote_file_delete): Update.
12047 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12049 2014-02-19 Tom Tromey <tromey@redhat.com>
12051 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12052 * target.c (target_fileio_close): Add argument.
12053 * remote.c (remote_hostio_close): Add 'self' argument.
12054 (remote_hostio_close_cleanup): Update.
12055 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12057 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12059 2014-02-19 Tom Tromey <tromey@redhat.com>
12061 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12062 * target.c (target_fileio_pread): Add argument.
12063 * remote.c (remote_hostio_pread): Add 'self' argument.
12064 (remote_bfd_iovec_pread, remote_file_get): Update.
12065 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12067 2014-02-19 Tom Tromey <tromey@redhat.com>
12069 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12070 * target.c (target_fileio_pwrite): Add argument.
12071 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12072 (remote_file_put): Update.
12073 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12075 2014-02-19 Tom Tromey <tromey@redhat.com>
12077 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12078 * target.c (target_fileio_open): Add argument.
12079 * remote.c (remote_hostio_open): Add 'self' argument.
12080 (remote_bfd_iovec_open): Add 'self' argument.
12081 (remote_file_put): Add 'self' argument.
12082 (remote_file_get): Add 'self' argument.
12083 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12085 2014-02-19 Tom Tromey <tromey@redhat.com>
12087 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12089 (target_can_run_breakpoint_commands): Add argument.
12090 * target.c (update_current_target): Update.
12091 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12093 (remote_insert_breakpoint): Add 'self' argument.
12094 (remote_insert_hw_breakpoint): Add 'self' argument.
12095 (remote_can_run_breakpoint_commands): Add 'self' argument.
12097 2014-02-19 Tom Tromey <tromey@redhat.com>
12099 * target.h (struct target_ops)
12100 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12101 (target_supports_evaluation_of_breakpoint_conditions): Add
12103 * target.c (update_current_target): Update.
12104 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12106 (remote_insert_breakpoint): Add 'self' argument.
12107 (remote_insert_hw_breakpoint): Add 'self' argument.
12108 (remote_supports_cond_breakpoints): Add 'self' argument.
12110 2014-02-19 Tom Tromey <tromey@redhat.com>
12112 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12114 (target_supports_string_tracing): Add argument.
12115 * target.c (update_current_target): Update.
12116 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12118 2014-02-19 Tom Tromey <tromey@redhat.com>
12120 * target.h (struct target_ops)
12121 <to_supports_disable_randomization>: Add argument.
12122 * target.c (find_default_supports_disable_randomization): Add
12124 (target_supports_disable_randomization): Add argument.
12125 (find_default_supports_disable_randomization): Add 'self'
12127 * remote.c (extended_remote_supports_disable_randomization): Add
12129 (remote_supports_disable_randomization): Add 'self' argument.
12130 (extended_remote_create_inferior): Update.
12131 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12134 2014-02-19 Tom Tromey <tromey@redhat.com>
12136 * target.h (struct target_ops)
12137 <to_supports_enable_disable_tracepoint>: Add argument.
12138 (target_supports_enable_disable_tracepoint): Add argument.
12139 * target.c (update_current_target): Update.
12140 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12143 2014-02-19 Tom Tromey <tromey@redhat.com>
12145 * target.h (struct target_ops) <to_supports_multi_process>: Add
12147 (target_supports_multi_process): Add argument.
12148 * target.c (update_current_target): Update.
12149 * remote.c (remote_supports_multi_process): Add 'self' argument.
12150 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12152 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12155 2014-02-19 Tom Tromey <tromey@redhat.com>
12157 * target.h (struct target_ops) <to_execution_direction>: Add
12159 (target_execution_direction): Add argument.
12160 * target.c (default_execution_direction): Add 'self' argument.
12161 * record-full.c (record_full_execution_direction): Add 'self'
12164 2014-02-19 Tom Tromey <tromey@redhat.com>
12166 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12168 (target_can_execute_reverse): Add argument.
12169 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12170 * record-full.c (record_full_can_execute_reverse): Add 'self'
12172 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12175 2014-02-19 Tom Tromey <tromey@redhat.com>
12177 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12178 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12180 (target_get_ada_task_ptid): Add argument.
12181 * target.c (update_current_target): Update.
12182 (default_get_ada_task_ptid): Add 'self' argument.
12183 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12184 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12185 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12187 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12189 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12191 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12193 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12194 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12197 2014-02-19 Tom Tromey <tromey@redhat.com>
12199 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12200 (target_goto_bookmark): Add argument.
12201 * target.c (dummy_goto_bookmark): Add 'self' argument.
12202 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12204 2014-02-19 Tom Tromey <tromey@redhat.com>
12206 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12207 (target_get_bookmark): Add argument.
12208 * target.c (dummy_get_bookmark): Add 'self' argument.
12209 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12211 2014-02-19 Tom Tromey <tromey@redhat.com>
12213 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12215 (target_make_corefile_notes): Add argument.
12216 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12217 * procfs.c (procfs_make_note_section): Add 'self' argument.
12218 (procfs_make_note_section): Add 'self' argument.
12219 (procfs_make_note_section): Add 'self' argument.
12220 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12222 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12223 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12224 * exec.c (exec_make_note_section): Add 'self' argument.
12225 (exec_make_note_section): Add 'self' argument.
12227 2014-02-19 Tom Tromey <tromey@redhat.com>
12229 * target.h (struct target_ops) <to_find_memory_regions>: Add
12231 (target_find_memory_regions): Add argument.
12232 * target.c (dummy_find_memory_regions): Add 'self' argument.
12233 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12234 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12235 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12236 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12237 * exec. (exec_do_find_memory_regions): New global.
12238 (exec_set_find_memory_regions): Rewrite.
12239 (exec_find_memory_regions): New function.
12240 (init_exec_ops): Use exec_find_memory_regions.
12242 2014-02-19 Tom Tromey <tromey@redhat.com>
12244 * target.h (struct target_ops) <to_supports_non_stop>: Add
12246 * target.c (find_default_supports_non_stop): Add argument.
12247 (target_supports_non_stop): Add argument.
12248 (find_default_supports_non_stop): Add 'self' argument.
12249 * remote.c (remote_supports_non_stop): Add 'self' argument.
12250 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12252 2014-02-19 Tom Tromey <tromey@redhat.com>
12254 * target.h (struct target_ops) <to_log_command>: Add argument.
12255 (target_log_command): Add argument.
12256 * serial.h (serial_log_command): Add 'self' argument.
12257 * serial.c (serial_log_command): Add 'self' argument.
12259 2014-02-19 Tom Tromey <tromey@redhat.com>
12261 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12262 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12264 (target_pid_to_exec_file): Add argument.
12265 * target.c (debug_to_pid_to_exec_file): Add argument.
12266 (update_current_target): Update.
12267 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12268 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12269 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12270 (linux_handle_extended_wait): Update.
12271 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12272 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12273 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12274 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12276 2014-02-19 Tom Tromey <tromey@redhat.com>
12278 * target.h (struct target_ops) <to_rcmd>: Add argument.
12279 (target_rcmd): Add argument.
12280 * target.c (debug_to_rcmd): Add argument.
12281 (update_current_target, do_monitor_command): Update.
12282 * remote.c (remote_rcmd): Add 'self' argument.
12283 * monitor.c (monitor_rcmd): Add 'self' argument.
12285 2014-02-19 Tom Tromey <tromey@redhat.com>
12287 * windows-nat.c (windows_stop): Add 'self' argument.
12288 * target.h (struct target_ops) <to_stop>: Add argument.
12289 * target.c (target_stop): Add argument.
12290 (debug_to_stop): Add argument.
12291 (update_current_target): Update.
12292 * remote.c (remote_stop): Add 'self' argument.
12293 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12294 (gdbsim_cntrl_c): Update.
12295 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12296 * procfs.c (procfs_stop): Add 'self' argument.
12297 * nto-procfs.c (procfs_stop): Add 'self' argument.
12298 * monitor.c (monitor_stop): Add 'self' argument.
12299 (monitor_open): Update.
12300 * linux-nat.c (linux_nat_stop): Add argument.
12301 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12302 * gnu-nat.c (gnu_stop): Add 'self' argument.
12303 * darwin-nat.c (darwin_stop): Add 'self' argument.
12305 2014-02-19 Tom Tromey <tromey@redhat.com>
12307 * target.h (struct target_ops) <to_thread_name>: Add argument.
12308 * target.c (target_thread_name): Add argument.
12309 (update_current_target): Update.
12310 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12312 2014-02-19 Tom Tromey <tromey@redhat.com>
12314 * target.h (struct target_ops) <to_extra_thread_info>: Add
12316 (target_extra_thread_info): Add argument.
12317 * target.c (update_current_target): Update.
12318 * remote.c (remote_threads_extra_info): Add 'self' argument.
12319 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12321 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12322 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12323 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12325 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12327 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12329 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12332 2014-02-19 Tom Tromey <tromey@redhat.com>
12334 * target.h (struct target_ops) <to_program_signals>: Add argument.
12335 * target.c (target_program_signals): Add argument.
12336 * remote.c (remote_program_signals): Add 'self' argument.
12338 2014-02-19 Tom Tromey <tromey@redhat.com>
12340 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12341 * target.c (target_pass_signals): Add argument.
12342 * remote.c (remote_pass_signals): Add 'self' argument.
12343 (remote_start_remote): Update.
12344 * procfs.c (procfs_pass_signals): Add 'self' argument.
12345 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12346 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12347 (linux_nat_create_inferior, linux_nat_attach): Update.
12349 2014-02-19 Tom Tromey <tromey@redhat.com>
12351 * windows-nat.c (windows_can_run): Add 'self' argument.
12352 * target.h (struct target_ops) <to_can_run>: Add argument.
12353 (target_can_run): Add argument.
12354 * target.c (debug_to_can_run): Add argument.
12355 (update_current_target): Update.
12356 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12357 * inf-child.c (inf_child_can_run): Add 'self' argument.
12358 * go32-nat.c (go32_can_run): Add 'self' argument.
12360 2014-02-19 Tom Tromey <tromey@redhat.com>
12362 * target.h (struct target_ops) <to_has_exited>: Add argument.
12363 (target_has_exited): Add argument.
12364 * target.c (debug_to_has_exited): Add argument.
12365 (update_current_target): Update.
12367 2014-02-19 Tom Tromey <tromey@redhat.com>
12369 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12371 (target_set_syscall_catchpoint): Add argument.
12372 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12374 * target.c (update_current_target): Update.
12376 2014-02-19 Tom Tromey <tromey@redhat.com>
12378 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12380 (target_remove_exec_catchpoint): Add argument.
12381 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12382 (update_current_target): Update.
12383 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12386 2014-02-19 Tom Tromey <tromey@redhat.com>
12388 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12390 (target_insert_exec_catchpoint): Add argument.
12391 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12392 (update_current_target): Update.
12393 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12396 2014-02-19 Tom Tromey <tromey@redhat.com>
12398 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12400 (target_remove_vfork_catchpoint): Add argument.
12401 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12402 (update_current_target): Update.
12403 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12406 2014-02-19 Tom Tromey <tromey@redhat.com>
12408 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12410 (target_insert_vfork_catchpoint): Add argument.
12411 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12412 (update_current_target): Update.
12413 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12416 2014-02-19 Tom Tromey <tromey@redhat.com>
12418 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12420 (target_remove_fork_catchpoint): Add argument.
12421 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12422 (update_current_target): Update.
12423 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12426 2014-02-19 Tom Tromey <tromey@redhat.com>
12428 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12430 (target_insert_fork_catchpoint): Add argument.
12431 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12432 (update_current_target): Update.
12433 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12436 2014-02-19 Tom Tromey <tromey@redhat.com>
12438 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12440 (target_post_startup_inferior): Add argument.
12441 * target.c (debug_to_post_startup_inferior): Add argument.
12442 (update_current_target): Update.
12443 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12445 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12447 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12449 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12451 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12453 (super_post_startup_inferior): Likewise.
12454 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12456 (super_post_startup_inferior): Likewise.
12457 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12458 Add 'self' argument.
12459 (super_post_startup_inferior): Likewise.
12461 2014-02-19 Tom Tromey <tromey@redhat.com>
12463 * target.h (struct target_ops) <to_load>: Add argument.
12464 * target.c (target_load): Add argument.
12465 (debug_to_load): Add argument.
12466 (update_current_target): Update.
12467 * remote.c (remote_load): Add 'self' argument.
12468 * remote-sim.c (gdbsim_load): Add 'self' argument.
12469 * remote-mips.c (mips_load): Add 'self' argument.
12470 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12471 * monitor.c (monitor_load): Add 'self' argument.
12472 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12474 2014-02-19 Tom Tromey <tromey@redhat.com>
12476 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12477 (target_terminal_info): Add argument.
12478 * target.c (debug_to_terminal_info): Add argument.
12479 (default_terminal_info): Likewise.
12480 * inflow.c (child_terminal_info): Add 'self' argument.
12481 * inferior.h (child_terminal_info): Add 'self' argument.
12482 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12484 2014-02-19 Tom Tromey <tromey@redhat.com>
12486 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12488 (target_terminal_save_ours): Add argument.
12489 * target.c (debug_to_terminal_save_ours): Add argument.
12490 (update_current_target): Update.
12491 * inflow.c (terminal_save_ours): Add 'self' argument.
12492 * inferior.h (terminal_save_ours): Add 'self' argument.
12494 2014-02-19 Tom Tromey <tromey@redhat.com>
12496 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12497 (target_terminal_ours): Add argument.
12498 * target.c (debug_to_terminal_ours): Add argument.
12499 (update_current_target): Update.
12500 * remote.c (remote_terminal_ours): Add 'self' argument.
12501 (remote_close): Update.
12502 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12503 * inflow.c (terminal_ours): Add 'self' argument.
12504 * inferior.h (terminal_ours): Add 'self' argument.
12505 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12507 2014-02-19 Pedro Alves <palves@redhat.com>
12508 Tom Tromey <tromey@redhat.com>
12510 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12512 (target_terminal_ours_for_output): Add argument.
12513 * target.c (debug_to_terminal_ours_for_output): Add argument.
12514 (update_current_target): Update.
12515 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12516 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12517 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12519 2014-02-19 Tom Tromey <tromey@redhat.com>
12521 * target.h (struct target_ops) <to_terminal_inferior>: Add
12523 * target.c (target_terminal_inferior): Add argument.
12524 (update_current_target): Update.
12525 * remote.c (remote_terminal_inferior): Add 'self' argument.
12526 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12527 * inflow.c (terminal_inferior): Add 'self' argument.
12528 * inferior.h (terminal_inferior): Add 'self' argument.
12529 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12530 (go32_terminal_inferior): Add 'self' argument.
12532 2014-02-19 Tom Tromey <tromey@redhat.com>
12534 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12535 (target_terminal_init): Add argument.
12536 * target.c (debug_to_terminal_init): Add argument.
12537 (update_current_target): Update.
12538 * inflow.c (terminal_init_inferior): Add 'self' argument.
12539 * inferior.h (terminal_init_inferior): Add 'self' argument.
12540 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12541 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12543 2014-02-19 Tom Tromey <tromey@redhat.com>
12545 * target.h (struct target_ops)
12546 <to_can_accel_watchpoint_condition>: Add argument.
12547 (target_can_accel_watchpoint_condition): Add argument.
12548 * target.c (debug_to_can_accel_watchpoint_condition): Add
12550 (update_current_target): Update.
12551 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12554 2014-02-19 Tom Tromey <tromey@redhat.com>
12556 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12558 (target_region_ok_for_hw_watchpoint): Add argument.
12559 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12560 (default_region_ok_for_hw_watchpoint): Add argument.
12561 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12562 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12564 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12566 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12568 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12570 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12572 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12574 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12575 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12577 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12578 Add 'self' argument.
12580 2014-02-19 Tom Tromey <tromey@redhat.com>
12582 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12584 (target_insert_watchpoint): Add argument.
12585 * target.c (debug_to_insert_watchpoint): Add argument.
12586 (update_current_target): Update.
12587 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12588 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12589 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12590 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12591 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12592 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12594 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12595 (procfs_insert_hw_watchpoint): Add 'self' argument.
12596 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12598 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12600 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12602 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12603 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12605 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12608 2014-02-19 Tom Tromey <tromey@redhat.com>
12610 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12612 (target_remove_watchpoint): Add argument.
12613 * target.c (debug_to_remove_watchpoint): Add argument.
12614 (update_current_target): Update.
12615 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12616 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12617 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12618 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12619 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12620 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12622 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12623 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12625 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12627 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12629 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12630 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12632 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12635 2014-02-19 Tom Tromey <tromey@redhat.com>
12637 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12639 (target_remove_hw_breakpoint): Add argument.
12640 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12641 (update_current_target): Update.
12642 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12643 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12645 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12646 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12648 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12651 2014-02-19 Tom Tromey <tromey@redhat.com>
12653 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12655 (target_insert_hw_breakpoint): Add argument.
12656 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12657 (update_current_target): Update.
12658 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12659 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12661 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12662 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12663 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12665 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12668 2014-02-19 Tom Tromey <tromey@redhat.com>
12670 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12672 (target_can_use_hardware_watchpoint): Add argument.
12673 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12674 (update_current_target): Update.
12675 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12677 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12679 * remote.c (remote_check_watch_resources): Add 'self' argument.
12680 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12681 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12683 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12684 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12686 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12688 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12690 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12692 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12694 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12696 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12697 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12699 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12702 2014-02-19 Tom Tromey <tromey@redhat.com>
12704 * target.h (struct target_ops) <to_post_attach>: Add argument.
12705 (target_post_attach): Add argument.
12706 * target.c (debug_to_post_attach): Add argument.
12707 (update_current_target): Update.
12708 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12709 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12710 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12711 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12712 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12714 2014-02-19 Tom Tromey <tromey@redhat.com>
12716 * windows-nat.c (windows_close): Add 'self' argument.
12717 * tracepoint.c (tfile_close): Add 'self' argument.
12718 * target.h (struct target_ops) <to_close>: Add argument.
12719 * target.c (target_close): Add argument.
12720 (update_current_target): Update.
12721 * remote.c (remote_close): Add 'self' argument.
12722 * remote-sim.c (gdbsim_close): Add 'self' argument.
12723 * remote-mips.c (mips_close): Add 'self' argument.
12724 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12725 * record-full.c (record_full_close): Add 'self' argument.
12726 * record-btrace.c (record_btrace_close): Add 'self' argument.
12727 * monitor.h (monitor_close): Add 'self' argument.
12728 * monitor.c (monitor_close): Add 'self' argument.
12729 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12730 * linux-nat.c (linux_nat_close): Add argument.
12731 * go32-nat.c (go32_close): Add 'self' argument.
12732 * exec.c (exec_close_1): Add 'self' argument.
12733 * ctf.c (ctf_close): Add 'self' argument.
12734 * corelow.c (core_close): Add 'self' argument.
12735 (core_close_cleanup): Update.
12736 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12737 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12739 2014-02-19 Tom Tromey <tromey@redhat.com>
12741 * remote.c (remote_load): New function.
12742 (init_remote_ops): Use it.
12744 2014-02-19 Tom Tromey <tromey@redhat.com>
12746 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12748 * common/linux-btrace.h (linux_supports_btrace): Update.
12749 * remote.c (remote_supports_btrace): Add "self" argument.
12750 * target-delegates.c: Rebuild.
12751 * target.c (target_supports_btrace): Remove.
12752 * target.h (struct target_ops) <to_supports_btrace>: Add
12753 target_ops argument.
12754 (target_supports_btrace): New define.
12756 2014-02-19 Tom Tromey <tromey@redhat.com>
12758 * record-full.c (record_full_beneath_to_resume_ops)
12759 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12760 (record_full_beneath_to_wait)
12761 (record_full_beneath_to_store_registers_ops)
12762 (record_full_beneath_to_store_registers)
12763 (record_full_beneath_to_xfer_partial_ops)
12764 (record_full_beneath_to_xfer_partial)
12765 (record_full_beneath_to_insert_breakpoint_ops)
12766 (record_full_beneath_to_insert_breakpoint)
12767 (record_full_beneath_to_remove_breakpoint_ops)
12768 (record_full_beneath_to_remove_breakpoint)
12769 (record_full_beneath_to_stopped_by_watchpoint)
12770 (record_full_beneath_to_stopped_data_address)
12771 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12772 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12773 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12774 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12775 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12776 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12777 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12778 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12779 (record_full_resume, record_full_wait_1)
12780 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12781 (record_full_store_registers, record_full_xfer_partial)
12782 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12783 (record_full_async, record_full_core_xfer_partial): Use target
12785 * target-delegates.c: Rebuild.
12786 * target.c (current_xfer_partial): Remove.
12787 (update_current_target): Do not INHERIT or de_fault
12788 to_insert_breakpoint, to_remove_breakpoint,
12789 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12790 to_is_async_p, to_async. Do not set to_xfer_partial field.
12791 (default_xfer_partial): Simplify.
12792 (current_xfer_partial): Remove.
12793 (target_wait, target_resume): Simplify.
12794 (find_default_can_async_p, find_default_is_async_p): Update.
12795 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12796 to_xfer_partial, to_stopped_by_watchpoint,
12797 to_stopped_data_address.
12798 (target_store_registers): Simplify.
12799 (forward_target_remove_breakpoint)
12800 (forward_target_insert_breakpoint): Remove.
12801 (target_remove_breakpoint, target_insert_breakpoint)
12802 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12803 * target.h (struct target_ops) <to_resume, to_wait,
12804 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12805 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12806 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12808 (forward_target_remove_breakpoint)
12809 (forward_target_insert_breakpoint): Remove.
12810 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12812 (record_btrace_insert_breakpoint): Delegate directly.
12814 2014-02-19 Tom Tromey <tromey@redhat.com>
12817 * target-delegates.c: New file.
12818 * target.c: Include target-delegates.c.
12819 (init_dummy_target): Call install_dummy_methods.
12820 (complete_target_initialization): Call install_delegators.
12821 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12822 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12823 * make-target-delegates: New file.
12825 2014-02-19 Tom Tromey <tromey@redhat.com>
12827 * record.c (find_record_target): Use find_target_at.
12828 * target.c (find_target_at): New function.
12829 * target.h (find_target_at): Declare.
12831 2014-02-19 Tom Tromey <tromey@redhat.com>
12833 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12834 Add 'ops' argument.
12835 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12837 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12838 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12840 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12842 * linux-nat.c (save_sigtrap): Update.
12843 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12844 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12845 (linux_nat_close): Update.
12846 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12848 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12850 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12851 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12852 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12853 (tmp_to_async): Add 'ops' argument.
12854 (record_full_stopped_by_watchpoint, record_full_async)
12855 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12857 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12858 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12859 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12860 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12861 (remote_is_async_p, remote_async): Add 'ops' argument.
12862 (remote_stopped_data_address): Update.
12863 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12864 * target.c (update_current_target)
12865 (find_default_can_async_p, find_default_is_async_p): Update.
12866 (init_dummy_target): Update.
12867 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12868 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12869 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12870 (target_can_async_p, target_is_async_p, target_async)
12871 (target_stopped_by_watchpoint): Update.
12873 2014-02-19 Yao Qi <yao@codesourcery.com>
12876 * gdbarch.sh: Remove startup_gdbarch.
12877 * gdbarch.c: Regenerated.
12878 * gdbarch.h: Likewise.
12880 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12882 * rl78-tdep.c (rl78_g10_register_name): New function.
12883 (rl78_return_value): Add g10 support.
12884 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12887 2014-02-17 Doug Evans <xdje42@gmail.com>
12889 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12890 (SUBDIR_GUILE_SRCS): Ditto.
12891 (scm-gsmob.o): Ditto.
12893 2014-02-17 Yao Qi <yao@codesourcery.com>
12895 * gnu-nat.c (ILL_RPC): Declare defined function.
12897 2014-02-17 Yao Qi <yao@codesourcery.com>
12899 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12900 mach_msg_type_number_t.
12901 (gnu_write_inferior): Likewise.
12903 2014-02-17 Yao Qi <yao@codesourcery.com>
12905 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12907 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12908 (inf_validate_procs, inf_signal): Likewise.
12909 (S_exception_raise_request): Likewise.
12910 (do_mach_notify_dead_name): Likewise.
12911 (steal_exc_port): Likewise.
12912 (gnu_read_inferior): Change 'copy_count''s type to
12913 mach_msg_type_number_t.
12914 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12917 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12919 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12920 flag. Adjust all users; in particular...
12921 (gnu_wait): ..., don't decrement its value in here...
12922 (gnu_create_inferior): ..., and instead set the flag in here,
12923 around the startup_inferior call, and call that one with
12924 START_INFERIOR_TRAPS_EXPECTED.
12926 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12927 (ILL_RPC): ... new macro.
12928 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12929 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12930 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12931 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12932 functions with ILL_RPC macro.
12933 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12934 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12935 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12936 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12937 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12938 (S_proc_getlogin_reply, S_proc_getsid_reply)
12939 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12940 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12941 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12942 (S_proc_getnports_reply, S_proc_is_important_reply)
12943 (S_proc_get_code_reply): New stub functions, generated with
12946 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12947 collected the type check structures.
12949 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12951 2014-02-14 Doug Evans <dje@google.com>
12953 * target.c (target_write_partial): Fix result type.
12955 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12957 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12958 the proper offsets to access fpregset_t.
12960 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12962 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12963 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12964 * h8300-tdep.c (setmachinelist): Remove global.
12965 * hppa-tdep.c (hppa_sigtramp): Remove global.
12966 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12967 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12968 * ravenscar-thread.c (update_target_observer): Remove global.
12969 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12971 2014-02-12 Tom Tromey <tromey@redhat.com>
12973 * common/rsp-low.c: Update comments.
12974 * common/rsp-low.h: Update comments.
12976 2014-02-12 Tom Tromey <tromey@redhat.com>
12978 * common/rsp-low.c (convert_ascii_to_int): Remove.
12979 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12981 2014-02-12 Tom Tromey <tromey@redhat.com>
12983 * common/rsp-low.h (unhexify): Don't declare.
12984 * common/rsp-low.c (unhexify): Remove.
12986 2014-02-12 Tom Tromey <tromey@redhat.com>
12988 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12989 * common/rsp-low.c (convert_int_to_ascii): Remove.
12991 2014-02-12 Tom Tromey <tromey@redhat.com>
12993 * common/rsp-low.h (hexify): Don't declare.
12994 * common/rsp-low.c (hexify): Remove.
12996 2014-02-12 Tom Tromey <tromey@redhat.com>
12998 * common/rsp-low.c (hexify): Never take strlen of argument.
13000 2014-02-12 Tom Tromey <tromey@redhat.com>
13002 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13003 * remote.c (extended_remote_run, remote_rcmd)
13004 (remote_download_trace_state_variable, remote_save_trace_data)
13005 (remote_set_trace_notes): Update.
13006 * tracepoint.c (encode_source_string, tfile_write_status)
13007 (tfile_write_uploaded_tsv): Update.
13009 2014-02-12 Tom Tromey <tromey@redhat.com>
13011 * tracepoint.c: Include rsp-low.h.
13012 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13013 * remote.c: Include rsp-low.h.
13014 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13015 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13016 (remote_unescape_input): Move to common/rsp-low.c.
13017 * common/rsp-low.h: New file.
13018 * common/rsp-low.c: New file.
13019 * Makefile.in (SFILES): Add common/rsp-low.c.
13020 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13021 (COMMON_OBS): Add rsp-low.o.
13022 (rsp-low.o): New target.
13024 2014-02-12 Tom Tromey <tromey@redhat.com>
13026 * utils.h: Include print-utils.h.
13027 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13028 (int_string, core_addr_to_string, core_addr_to_string_nz)
13029 (hex_string, hex_string_custom): Don't declare.
13030 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13031 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13032 (hex_string_custom, int_string, core_addr_to_string)
13033 (core_addr_to_string_nz, host_address_to_string): Move to
13034 common/print-utils.c.
13035 * common/print-utils.h: New file.
13036 * common/print-utils.c: New file
13037 * Makefile.in (SFILES): Add common/print-utils.c.
13038 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13039 (COMMON_OBS): Add print-utils.o.
13040 (print-utils.o): New target.
13042 2014-02-12 Tom Tromey <tromey@redhat.com>
13044 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13046 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13048 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13050 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13052 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13053 if a PT_IO ptrace request returns sucessfully but indicates that 0
13054 bytes were transferred.
13056 2014-02-12 Pedro Alves <palves@redhat.com>
13057 Kevin Buettner <kevinb@redhat.com>
13059 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13060 TYPE_INSTANCE_FLAG_CODE_SPACE.
13062 2014-02-12 Pedro Alves <palves@redhat.com>
13064 * h8300-tdep.c (pseudo_from_raw_register)
13065 (raw_from_pseudo_register): New functions.
13066 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13069 2014-02-12 Pedro Alves <palves@redhat.com>
13071 * h8300-tdep.c (h8300_register_sim_regno): New function.
13072 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13073 gdbarch_register_sim_regno hook.
13075 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13077 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13079 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13081 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13083 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13085 * obsd-tdep.h (obsd_init_abi): New prototype.
13086 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13087 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13088 (obsd_init_abi): New functions.
13089 * i386obsd-tdep.c: Include "obsd-tdep.h".
13090 (i386obsd_init_abi): Call obsd_init_abi.
13091 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13092 (amd64obsd_init_abi): Call obsd_init_abi.
13093 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13094 obsd-tdep.c to gdb_target_obs.
13096 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13098 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13099 double float arguments to 16-byte in the argument slots.
13101 2014-02-11 Doug Evans <xdje42@gmail.com>
13103 * configure.ac: Don't crash if pkg-config is not found and guile
13104 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13106 * configure: Regenerate.
13108 2014-02-11 Yao Qi <yao@codesourcery.com>
13110 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13111 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13112 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13113 * gnu-nat.c (gnu_xfer_memory): Likewise.
13114 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13115 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13116 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13117 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13119 2014-02-11 Yao Qi <yao@codesourcery.com>
13121 * target.h (enum target_xfer_error): Rename to ...
13122 (enum target_xfer_status): ... it. New. All users updated.
13123 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13125 (TARGET_XFER_STATUS_ERROR_P): New macro.
13126 (target_xfer_error_to_string): Remove declaration.
13127 (target_xfer_status_to_string): Declare.
13128 (target_xfer_partial_ftype): Adjust it.
13129 (struct target_ops) <to_xfer_partial>: Return
13130 target_xfer_status. Add argument xfered_len. Update
13132 * target.c (target_xfer_error_to_string): Rename to ...
13133 (target_xfer_status_to_string): ... it. New. All callers
13135 (target_read_live_memory): Likewise. Call target_xfer_partial
13136 instead of target_read.
13137 (memory_xfer_live_readonly_partial): Return
13138 target_xfer_status. Add argument xfered_len.
13139 (raw_memory_xfer_partial): Likewise.
13140 (memory_xfer_partial_1): Likewise.
13141 (memory_xfer_partial): Likewise.
13142 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13143 properly. Update debug message.
13144 (default_xfer_partial, current_xfer_partial): Likewise.
13145 (target_write_partial): Likewise.
13146 (target_read_partial): Likewise. All callers updated.
13147 (read_whatever_is_readable): Likewise.
13148 (target_write_with_progress): Likewise.
13149 (target_read_alloc_1): Likewise.
13151 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13152 * auxv.c (procfs_xfer_auxv): Likewise.
13153 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13154 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13155 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13156 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13157 * corefile.c (read_memory): Adjust.
13158 * corelow.c (core_xfer_partial): Likewise.
13159 * ctf.c (ctf_xfer_partial): Likewise.
13160 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13162 (darwin_xfer_partial): Likewise.
13163 * exec.c (section_table_xfer_memory_partial): Likewise. All
13165 (exec_xfer_partial): Likewise.
13166 * exec.h (section_table_xfer_memory_partial): Update
13168 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13170 (gnu_xfer_partial): Likewise.
13171 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13172 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13173 (ia64_hpux_xfer_solib_got): Likewise.
13174 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13175 type of 'partial_len' to ULONGEST.
13176 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13177 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13178 (linux_nat_xfer_partial): Likewise.
13179 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13180 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13181 * monitor.c (monitor_xfer_memory): Likewise.
13182 (monitor_xfer_partial): Likewise.
13183 * procfs.c (procfs_xfer_partial): Likewise.
13184 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13185 * record-full.c (record_full_xfer_partial): Likewise.
13186 (record_full_core_xfer_partial): Likewise.
13187 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13188 (gdbsim_xfer_partial): Likewise.
13189 * remote.c (remote_write_bytes_aux): Likewise. All callers
13191 (remote_write_bytes, remote_read_bytes): Likewise. All
13193 (remote_flash_erase): Likewise. All callers updated.
13194 (remote_write_qxfer): Likewise. All callers updated.
13195 (remote_read_qxfer): Likewise. All callers updated.
13196 (remote_xfer_partial): Likewise.
13197 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13198 (rs6000_xfer_shared_libraries): Likewise.
13199 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13200 (sol_thread_xfer_partial): Likewise.
13201 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13202 (sparc_xfer_partial): Likewise.
13203 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13205 (spu_xfer_partial): Likewise.
13206 * spu-multiarch.c (spu_xfer_partial): Likewise.
13207 * tracepoint.c (tfile_xfer_partial): Likewise.
13208 * windows-nat.c (windows_xfer_memory): Likewise.
13209 (windows_xfer_shared_libraries): Likewise.
13210 (windows_xfer_partial): Likewise.
13211 * valprint.c: Replace 'target_xfer_error' with
13212 'target_xfer_status' in comments.
13214 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13216 Checked in by Joel Brobecker <brobecker@adacore.com>.
13217 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13219 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13221 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13222 function parameters.
13224 2014-02-10 Will Newton <will.newton@linaro.org>
13226 * elfread.c (elf_rel_plt_read): Look for a .got section if
13227 looking up .got.plt fails.
13228 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13229 on address passed to elf_gnu_ifunc_record_cache.
13230 (elf_gnu_ifunc_resolve_addr): Likewise.
13231 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13233 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13235 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13236 (X_RETTURN): New macro.
13237 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13239 * sparc64-tdep.c (sparc64_init_abi): Hook
13240 sparc_in_function_epilogue_p.
13242 2014-02-10 Gary Benson <gbenson@redhat.com>
13244 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13245 Rename name_matcher to symbol_matcher.
13247 2014-02-10 Gary Benson <gbenson@redhat.com>
13249 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13250 Use expand_symtabs_file_matcher_ftype and
13251 expand_symtabs_symbol_matcher_ftype.
13253 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13255 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13256 (struct ada_symbol_cache): New.
13257 (ada_free_symbol_cache): Forward declare.
13258 (struct ada_pspace_data): New.
13259 (ada_pspace_data_handle): New static global.
13260 (get_ada_pspace_data, ada_pspace_data_cleanup)
13261 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13262 (cache_space, cache): Delete, now folded inside struct
13264 (ada_get_symbol_cache): New function.
13265 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13267 (_initialize_ada_language): Remove initialization of cache_space.
13268 Move call to observer_attach_inferior_exit up, grouping it
13269 with the other observer registrations inside this function.
13270 Rename command to be more general. Add call to
13271 register_program_space_data_with_cleanup.
13273 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13275 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13276 ada_new_objfile_observer.
13277 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13278 (_initialize_tasks): Update uses of ada_new_objfile_observer
13279 and ada_tasks_normal_stop_observer.
13281 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13283 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13284 returned by the 'Length attribute to integer.
13286 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13288 * ada-lang.c (_initialize_ada_language): Initialize
13289 cache_space obstack.
13291 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13293 * ada-lang.c (HASH_SIZE): New macro.
13294 (struct cache_entry): New type.
13295 (cache_space, cache): New static globals.
13296 (ada_clear_symbol_cache, find_entry): New functions.
13297 (lookup_cached_symbol, cache_symbol): Implement.
13298 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13299 (_initialize_ada_language): Attach ada_new_objfile_observer
13300 and ada_free_objfile_observer.
13302 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13304 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13305 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13306 struct block * parameter.
13307 (ada_lookup_symbol_list_worker): Constify local variable "block".
13308 Remove cast which is no longer necessary.
13310 2014-02-10 Doug Evans <xdje42@gmail.com>
13312 Add Guile as an extension language.
13313 * NEWS: Mention Guile scripting.
13314 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13315 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13316 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13317 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13318 (CLIBS): Add GUILE_LIBS.
13319 (install-guile): New rule.
13320 (guile.o): New rule.
13321 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13322 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13323 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13324 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13325 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13326 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13327 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13328 * configure.ac: New option --with-guile.
13329 * configure: Regenerate.
13330 * config.in: Regenerate.
13331 * auto-load.c: Remove #include "python/python.h". Add #include
13332 "gdb/section-scripts.h".
13333 (source_section_scripts): Handle Guile scripts.
13334 (_initialize_auto_load): Add name of Guile objfile script to
13335 scripts-directory help text.
13336 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13337 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13338 (struct breakpoint): New member scm_bp_object.
13339 * defs.h (enum command_control_type): New value guile_control.
13340 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13342 (show_user): Update comment.
13343 (_initialize_cli_cmds): Update help text for "show user". Update help
13344 text for max-user-call-depth.
13345 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13347 (multi_line_command_p): Add guile_control.
13348 (print_command_lines): Handle guile_control.
13349 (execute_control_command, recurse_read_control_structure): Ditto.
13350 (process_next_line): Recognize "guile" commands.
13351 * disasm.c (gdb_disassemble_info): Make non-static.
13352 * disasm.h: #include "dis-asm.h".
13353 (struct gdbarch): Add forward decl.
13354 (gdb_disassemble_info): Declare.
13355 * extension.c: #include "guile/guile.h".
13356 (extension_languages): Add guile.
13357 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13358 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13359 * gdbtypes.c (get_unsigned_type_max): New function.
13360 (get_signed_type_minmax): New function.
13361 * gdbtypes.h (get_unsigned_type_max): Declare.
13362 (get_signed_type_minmax): Declare.
13363 * guile/README: New file.
13364 * guile/guile-internal.h: New file.
13365 * guile/guile.c: New file.
13366 * guile/guile.h: New file.
13367 * guile/scm-arch.c: New file.
13368 * guile/scm-auto-load.c: New file.
13369 * guile/scm-block.c: New file.
13370 * guile/scm-breakpoint.c: New file.
13371 * guile/scm-disasm.c: New file.
13372 * guile/scm-exception.c: New file.
13373 * guile/scm-frame.c: New file.
13374 * guile/scm-gsmob.c: New file.
13375 * guile/scm-iterator.c: New file.
13376 * guile/scm-lazy-string.c: New file.
13377 * guile/scm-math.c: New file.
13378 * guile/scm-objfile.c: New file.
13379 * guile/scm-ports.c: New file.
13380 * guile/scm-pretty-print.c: New file.
13381 * guile/scm-safe-call.c: New file.
13382 * guile/scm-string.c: New file.
13383 * guile/scm-symbol.c: New file.
13384 * guile/scm-symtab.c: New file.
13385 * guile/scm-type.c: New file.
13386 * guile/scm-utils.c: New file.
13387 * guile/scm-value.c: New file.
13388 * guile/lib/gdb.scm: New file.
13389 * guile/lib/gdb/boot.scm: New file.
13390 * guile/lib/gdb/experimental.scm: New file.
13391 * guile/lib/gdb/init.scm: New file.
13392 * guile/lib/gdb/iterator.scm: New file.
13393 * guile/lib/gdb/printing.scm: New file.
13394 * guile/lib/gdb/types.scm: New file.
13395 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13396 (VPATH): Add $(GUILE_SRCDIR).
13397 (GUILE_DIR): New variable.
13398 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13399 (all): Add stamp-guile dependency.
13400 (stamp-guile): New rule.
13401 (clean-guile, install-guile, uninstall-guile): New rules.
13402 (install-only): Add install-guile dependency.
13403 (uninstall): Add uninstall-guile dependency.
13404 (clean): Add clean-guile dependency.
13406 2014-02-09 Doug Evans <xdje42@gmail.com>
13408 Revert this patch (which I approved, mea culpa).
13410 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13412 * Makefile.in (all-lib): Remove.
13413 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13415 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13417 Fix Python stack corruption.
13418 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13421 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13423 * Makefile.in (all-lib): Remove.
13424 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13426 2014-02-07 Doug Evans <dje@google.com>
13428 * extension-priv.h (extension_language_script_ops): Add comment.
13429 (extension_language_ops): Add comment.
13430 (active_ext_lang_state): Fix typo in comment.
13432 2014-02-07 Pedro Alves <palves@redhat.com>
13434 PR breakpoints/16292
13435 * infrun.c (handle_signal_stop) <signal arrives while stepping
13436 over a breakpoint>: Switch back to the stepping thread.
13438 2014-02-07 Yao Qi <yao@codesourcery.com>
13440 * target.c (target_xfer_partial): Return zero if LEN is zero.
13442 2014-02-07 Yao Qi <yao@codesourcery.com>
13444 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13445 (ld_so_xfer_auxv): Likewise.
13446 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13447 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13448 * corelow.c (core_xfer_partial): Likewise.
13449 * ctf.c (ctf_xfer_partial): Likewise.
13450 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13451 (darwin_xfer_partial): Likewise.
13452 * exec.c (exec_xfer_partial): Likewise.
13453 * gnu-nat.c (gnu_xfer_partial): Likewise.
13454 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13455 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13456 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13457 * linux-nat.c (linux_xfer_siginfo): Likewise.
13458 (linux_proc_xfer_spu): Likewise.
13459 * procfs.c (procfs_xfer_partial): Likewise.
13460 * record-full.c (record_full_xfer_partial): Likewise.
13461 (record_full_core_xfer_partial): Likewise.
13462 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13463 * remote.c (remote_write_qxfer): Likewise.
13464 (remote_write_qxfer, remote_read_qxfer): Likewise.
13465 (remote_xfer_partial): Likewise.
13466 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13467 (rs6000_xfer_shared_libraries): Likewise.
13468 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13469 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13470 (spu_xfer_partial): Likewise.
13471 * target.c (memory_xfer_partial_1): Likewise.
13472 * tracepoint.c (tfile_xfer_partial): Likewise.
13473 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13474 (windows_xfer_partial): Likewise.
13476 2014-02-07 Yao Qi <yao@codesourcery.com>
13478 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13480 (core_xfer_shared_libraries_aix): Likewise.
13481 * gdbarch.c, gdbarch.h: Regenerated.
13482 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13483 ULONGEST. Change 'len_avail' type to ULONGEST.
13484 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13485 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13487 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13489 2014-02-07 Yao Qi <yao@codesourcery.com>
13491 * corefile.c (memory_error): Get 'exception' from ERR and pass
13492 'exception' to throw_error.
13494 2014-02-06 Doug Evans <xdje42@gmail.com>
13496 * configure.ac (libpython checking): Remove all but python.o from
13497 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13498 * configure: Regenerate.
13500 * Makefile.in (SFILES): Add extension.c.
13501 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13502 (COMMON_OBS): Add extension.o.
13503 * extension.h: New file.
13504 * extension-priv.h: New file.
13505 * extension.c: New file.
13507 * python/python-internal.h: #include "extension.h".
13508 (gdbpy_auto_load_enabled): Declare.
13509 (gdbpy_apply_val_pretty_printer): Declare.
13510 (gdbpy_apply_frame_filter): Declare.
13511 (gdbpy_preserve_values): Declare.
13512 (gdbpy_breakpoint_cond_says_stop): Declare.
13513 (gdbpy_breakpoint_has_cond): Declare.
13514 (void source_python_script_for_objfile): Delete.
13515 * python/python.c: #include "extension-priv.h".
13516 Delete inclusion of "observer.h".
13517 (extension_language_python): Moved here and renamed from
13518 script_language_python in py-auto-load.c.
13519 Redefined to be of type extension_language_defn.
13520 (python_extension_script_ops): New global.
13521 (python_extension_ops): New global.
13522 (struct python_env): New member previous_active.
13523 (restore_python_env): Call restore_active_ext_lang.
13524 (ensure_python_env): Call set_active_ext_lang.
13525 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13527 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13529 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13531 (gdbpy_eval_from_control_command): Renamed from
13532 eval_python_from_control_command, made static. New arg extlang.
13533 (gdbpy_source_script) Renamed from source_python_script, made static.
13535 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13536 result to int. New arg extlang.
13537 (gdbpy_source_objfile_script): Renamed from
13538 source_python_script_for_objfile, made static. New arg extlang.
13539 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13540 static. New args extlang, extlang_printers. Change result type to
13542 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13543 static. New arg extlang. Rename arg printers to extlang_printers
13544 and change type to ext_lang_type_printers *.
13545 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13546 static. Replace argument arg with extlang, extlang_printers.
13547 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13548 (!HAVE_PYTHON, source_python_script): Delete.
13549 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13550 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13551 (!HAVE_PYTHON, start_type_printers): Delete.
13552 (!HAVE_PYTHON, apply_type_printers): Delete.
13553 (!HAVE_PYTHON, free_type_printers): Delete.
13554 (_initialize_python): Delete call to observer_attach_before_prompt.
13555 (finalize_python): Set/restore active extension language.
13556 (gdbpy_finish_initialization) Renamed from
13557 finish_python_initialization, made static. New arg extlang.
13558 (gdbpy_initialized): New function.
13559 * python/python.h: #include "extension.h". Delete #include
13560 "value.h", "mi/mi-cmds.h".
13561 (extension_language_python): Declare.
13562 (GDBPY_AUTO_FILE_NAME): Delete.
13563 (enum py_bt_status): Moved to extension.h and renamed to
13564 ext_lang_bt_status.
13565 (enum frame_filter_flags): Moved to extension.h.
13566 (enum py_frame_args): Moved to extension.h and renamed to
13567 ext_lang_frame_args.
13568 (finish_python_initialization): Delete.
13569 (eval_python_from_control_command): Delete.
13570 (source_python_script): Delete.
13571 (apply_val_pretty_printer): Delete.
13572 (apply_frame_filter): Delete.
13573 (preserve_python_values): Delete.
13574 (gdbpy_script_language_defn): Delete.
13575 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13576 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13578 * auto-load.c: #include "extension.h".
13579 (GDB_AUTO_FILE_NAME): Delete.
13580 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13581 (script_language_gdb): Delete, moved to extension.c and renamed to
13582 extension_language_gdb.
13583 (source_gdb_script_for_objfile): Delete.
13584 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13585 (loaded_script): Change type of language member to
13586 struct extension_language_defn *.
13587 (init_loaded_scripts_info): Initialize
13588 unsupported_script_warning_printed.
13589 (maybe_add_script): Make static. Change type of language arg to
13590 struct extension_language_defn *.
13591 (clear_section_scripts): Reset unsupported_script_warning_printed.
13592 (auto_load_objfile_script_1): Rewrite to use extension language API.
13593 (auto_load_objfile_script): Make public. Remove support-compiled-in
13594 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13595 (source_section_scripts): Rewrite to use extension language API.
13596 (load_auto_scripts_for_objfile): Rewrite to use
13597 auto_load_scripts_for_objfile.
13598 (collect_matching_scripts_data): Change type of language member to
13599 struct extension_language_defn *.
13600 (auto_load_info_scripts): Change type of language arg to
13601 struct extension_language_defn *.
13602 (unsupported_script_warning_print): New function.
13603 (script_not_found_warning_print): Make static.
13604 (_initialize_auto_load): Rewrite construction of scripts-directory
13606 * auto-load.h (struct objfile): Add forward decl.
13607 (struct script_language): Delete.
13608 (struct auto_load_pspace_info): Add forward decl.
13609 (struct extension_language_defn): Add forward decl.
13610 (maybe_add_script): Delete.
13611 (auto_load_objfile_script): Declare.
13612 (script_not_found_warning_print): Delete.
13613 (auto_load_info_scripts): Update prototype.
13614 (auto_load_gdb_scripts_enabled): Declare.
13615 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13616 auto_load_python_scripts_enabled and made public.
13617 (script_language_python): Delete, moved to python.c.
13618 (gdbpy_script_language_defn): Delete.
13619 (info_auto_load_python_scripts): Update to use
13620 extension_language_python.
13622 * breakpoint.c (condition_command): Replace call to
13623 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13624 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13625 with call to breakpoint_ext_lang_cond_says_stop.
13626 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13627 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13628 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13629 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13631 (local_setattro): Print name of extension language with existing
13634 * valprint.c (val_print, value_print): Update to call
13635 apply_ext_lang_val_pretty_printer.
13636 * cp-valprint.c (cp_print_value): Update call to
13637 apply_ext_lang_val_pretty_printer.
13638 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13639 (gdbpy_apply_val_pretty_printer): Renamed from
13640 apply_val_pretty_printer. New arg extlang.
13641 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13643 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13644 extension language API.
13645 * cli/cli-script.c (execute_control_command): Update to call
13646 eval_ext_lang_from_control_command.
13648 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13649 enum ext_lang_bt_status values. Update call to
13650 apply_ext_lang_frame_filter.
13651 (mi_cmd_stack_list_locals): Ditto.
13652 (mi_cmd_stack_list_args): Ditto.
13653 (mi_cmd_stack_list_variables): Ditto.
13654 * mi/mi-main.c: Delete #include "python/python-internal.h".
13655 Add #include "extension.h".
13656 (mi_cmd_list_features): Replace reference to python internal variable
13657 gdb_python_initialized with call to ext_lang_initialized_p.
13659 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13660 Update to use enum ext_lang_frame_args. Update to call
13661 apply_ext_lang_frame_filter.
13662 * python/py-framefilter.c (extract_sym): Update to use enum
13663 ext_lang_bt_status.
13664 (extract_value, py_print_type, py_print_value): Ditto.
13665 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13666 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13667 (py_print_frame): Ditto.
13668 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13669 New arg extlang. Update to use enum ext_lang_bt_status.
13671 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13672 finish_python_initialization. Replace with call to
13673 finish_ext_lang_initialization.
13675 * typeprint.c (do_free_global_table): Update to call
13676 free_ext_lang_type_printers.
13677 (create_global_typedef_table): Update to call
13678 start_ext_lang_type_printers.
13679 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13680 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13681 (type_print_options): Change type of global_printers from "void *"
13682 to "struct ext_lang_type_printers *".
13684 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13685 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13686 (gdbpy_preserve_values): Renamed from preserve_python_values.
13688 (!HAVE_PYTHON, preserve_python_values): Delete.
13690 * utils.c (quit_flag): Delete, moved to extension.c.
13691 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13694 * eval.c: Delete #include "python/python.h".
13695 * main.c: Delete #include "python/python.h".
13697 * defs.h: Update comment.
13699 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13703 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13705 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13708 2014-02-05 Yao Qi <yao@codesourcery.com>
13710 * remote.c (remote_pass_signals): Remove local 'buf' and use
13712 (remote_program_signals): Likewise.
13714 2014-02-05 Yao Qi <yao@codesourcery.com>
13716 * ctf.c: Include "inferior.h" and "gdbthread.h".
13717 (CTF_PID): A new macro.
13718 (ctf_open): Call inferior_appeared and add_thread_silent.
13719 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13720 (ctf_thread_alive): New function.
13721 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13723 2014-02-05 Yao Qi <yao@codesourcery.com>
13727 2013-05-24 Yao Qi <yao@codesourcery.com>
13729 * tracepoint.c (TFILE_PID): Remove.
13730 (tfile_open): Don't add thread and inferior.
13731 (tfile_close): Don't set 'inferior_ptid'. Don't call
13732 exit_inferior_silent.
13733 (tfile_thread_alive): Remove.
13734 (init_tfile_ops): Don't set field 'to_thread_alive' of
13737 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13739 * remote.c (remote_start_remote): Call remote_check_symbols even
13740 if only symbol-file (not file) has been given.
13742 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13744 * gdbarch.sh (skip_entrypoint): New callback.
13745 * gdbarch.c, gdbarch.h: Regenerate.
13746 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13747 * infrun.c (fill_in_stop_func): Likewise.
13748 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13749 (ppc_elfv2_elf_make_msymbol_special): New function.
13750 (ppc_elfv2_skip_entrypoint): Likewise.
13751 (ppc_linux_init_abi): Install them for ELFv2.
13753 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13755 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13756 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13757 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13758 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13759 structures returned in GPRs.
13761 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13763 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13764 offset to the stack parameter list for the ELFv2 ABI.
13766 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13768 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13769 set_gdbarch_convert_from_func_ptr_addr and
13770 set_gdbarch_elf_make_msymbol_special for ELFv1.
13771 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13772 function descriptors on ELFv1.
13773 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13774 set up r12 at function entry.
13776 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13778 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13779 (struct gdbarch_tdep): New member elf_abi.
13781 * rs6000-tdep.c: Include "elf/ppc64.h".
13782 (rs6000_gdbarch_init): Detect ELF ABI version.
13784 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13786 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13787 within a register pair holding a DFP 128-bit value on little-endian.
13788 (ppc64_sysv_abi_return_value_base): Likewise.
13789 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13790 (dfp_pseudo_register_write): Likewise.
13792 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13794 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13795 offset on little-endian when passing _Decimal32.
13796 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13798 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13800 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13801 of the overlapped FP register within the VSX register on little-
13803 (efpr_pseudo_register_write): Likewise.
13805 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13807 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13808 offset on little-endian when passing small structures.
13810 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13812 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13813 (struct ppc64_sysv_argpos): New data structure.
13814 (ppc64_sysv_abi_push_float): Remove.
13815 (ppc64_sysv_abi_push_val): New function.
13816 (ppc64_sysv_abi_push_integer): Likewise.
13817 (ppc64_sysv_abi_push_freg): Likewise.
13818 (ppc64_sysv_abi_push_vreg): Likewise.
13819 (ppc64_sysv_abi_push_param): Likewise.
13820 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13821 (ppc64_sysv_abi_return_value_base): New function.
13822 (ppc64_sysv_abi_return_value): Refactor to use it.
13824 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13826 * NEWS: Document new target powerpc64le-*-linux*.
13828 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13830 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13831 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13833 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13834 register set used in ELF core dumps. Add floating-point register set.
13836 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13838 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13839 dwarf2_to_gdb[] table using symbolic constants. Adjust
13840 penultimate entry from number representing the PC register
13841 to symbolic constant representing the MDR register. Add
13842 constant for the PC register to the end of the table.
13844 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13846 * bsd-kvm.c: Include <sys/param.h>
13848 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13850 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13852 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13854 * ada-lang.h (clear_ada_sym_cache): Delete.
13856 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13858 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13860 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13862 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13863 the sigreturn register save area only if the syscall is
13866 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13868 * valops.c (value_slice): Minor reformatting.
13870 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13872 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13874 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13876 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13877 New static globals.
13878 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13879 (ada_ignore_descriptive_types_p): New static global.
13880 (find_parallel_type_by_descriptive_type): Return immediately
13881 if ada_ignore_descriptive_types_p is set.
13882 (_initialize_ada_language): Register new commands "maintenance
13883 set ada", "maintenance show ada", "maintenance set ada
13884 ignore-descriptive-types" and "maintenance show ada
13885 ignore-descriptive-types".
13886 * NEWS: Add entry for new "maint ada set/show
13887 ignore-descriptive-types" commands.
13889 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13891 * record-btrace.c (record_btrace_close): Call btrace_teardown
13894 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13896 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13899 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13901 * ada-typeprint (type_is_full_subrange_of_target_type):
13903 (print_range): Add parameter bounds_prefered_p. If not set,
13904 try printing range types using the name of their base type.
13905 (print_range_type): Add parameter bounds_prefered_p.
13906 Use it in call to print_range.
13907 (print_array_type, ada_print_type): Update calls to print_range
13908 and print_range_type.
13910 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13912 * ada-typeprint.c (print_array_type, print_choices, print_range)
13913 (print_range_bound, print_dynamic_range_bound, print_range_type):
13914 Remove declaration.
13916 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13918 * ada-typeprint.c (print_range): Add missing empty line
13919 after local declaration.
13921 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13923 * ada-valprint.c (print_optional_low_bound): Get index_type's
13924 target type for as long as it is a TYPE_CODE_RANGE.
13926 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13928 * procfs.c (procfs_make_note_section): Remove assertion and
13929 associated comment.
13931 2014-01-24 Yao Qi <yao@codesourcery.com>
13933 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13934 * corelow.c (get_core_siginfo): Likewise.
13936 2014-01-24 Yao Qi <yao@codesourcery.com>
13938 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13939 ULONGEST. Don't check 'len' is negative.
13940 (remote_write_bytes): Change type of 'len' to ULONGEST.
13942 2014-01-23 Tom Tromey <tromey@redhat.com>
13945 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13946 Handle exception from frame.block.
13947 (FrameVars.fetch_frame_locals): Likewise.
13949 2014-01-23 Tom Tromey <tromey@redhat.com>
13952 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13953 on a NULL pointer. Move "goto error" to correct place.
13955 2014-01-23 Tom Tromey <tromey@redhat.com>
13958 * python/py-framefilter.c (apply_frame_filter): Call
13959 ensure_python_env after computing gdbarch.
13961 2014-01-23 Yao Qi <yao@codesourcery.com>
13963 * target.c (raw_memory_xfer_partial): Change argument type
13964 from void * to gdb_byte *.
13965 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13967 2014-01-22 Doug Evans <dje@google.com>
13969 New gdbserver option --debug-format=timestamp.
13970 * NEWS: Mention it.
13972 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13974 * syscalls/s390x-linux.xml: New file.
13975 * syscalls/s390-linux.xml: New file.
13976 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13977 (XML_SYSCALL_FILENAME_S390X): Likewise.
13978 (op_svc): New enum value for SVC opcode.
13979 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13980 (s390_linux_get_syscall_number): New function.
13981 (s390_gdbarch_init): Register '*get_syscall_number' and the
13982 syscall xml file name.
13983 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13984 "s390-linux.xml" and "s390x-linux.xml".
13985 * NEWS: Announce new feature.
13987 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13989 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13991 2014-01-22 Pedro Alves <palves@redhat.com>
13993 * xtensa-config.c: Include defs.h.
13995 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13997 * common/common-utils.h: Add "ARI:" comment beside __func__
14000 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14002 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14003 documentation a bit.
14005 2014-01-21 Roland McGrath <mcgrathr@google.com>
14007 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14008 * configure: Regenerate.
14009 * aclocal.m4: Regenerate.
14010 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14011 New substituted variables.
14012 (install-strip): New target.
14013 (INSTALL_SCRIPT): New substituted variable.
14014 (FLAGS_TO_PASS): Add it.
14015 (install-only): Use $(INSTALL_SCRIPT) rather than
14016 $(INSTALL_PROGRAM) for gcore.
14018 2014-01-20 Tom Tromey <tromey@redhat.com>
14020 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14023 2014-01-20 Tom Tromey <tromey@redhat.com>
14025 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14026 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14027 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14028 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14029 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14030 (struct cmd_list_element) <flags>: Remove.
14031 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14032 doc_allocated>: New fields.
14033 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14035 * maint.c (maintenance_do_deprecate): Update.
14036 * top.c (execute_command): Update.
14038 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14040 * xtensa-linux-nat.c: Include asm/ptrace.h.
14042 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14044 * Makefile.in (SFILES): Add d-support.c.
14045 (COMMON_OBS): Add d-support.o.
14046 * d-lang.h (d_parse_symbol): Add comment, now defined in
14048 * d-lang.c (parse_call_convention)
14049 (parse_attributes, parse_function_types)
14050 (parse_function_args, parse_type, parse_identifier)
14051 (call_convention_p, d_parse_symbol): Move functions to ...
14052 * d-support.c: ... New file.
14054 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14056 * d-lang.h (d_parse_symbol): Add declaration.
14057 * d-lang.c (extract_identifiers)
14058 (extract_type_info): Remove functions.
14059 (parse_call_convention, parse_attributes)
14060 (parse_function_types, parse_function_args)
14061 (parse_type, parse_identifier, call_convention_p)
14062 (d_parse_symbol): New functions.
14063 (d_demangle): Use d_parse_symbol to demangle D symbols.
14065 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14067 * d-lang.h (struct builtin_d_type): New data type.
14068 (builtin_d_type): Add declaration.
14069 * d-lang.c (d_language_arch_info, build_d_types)
14070 (builtin_d_type): New functions.
14071 (enum d_primitive_types): New data type.
14072 (d_language_defn): Change c_language_arch_info to
14073 d_language_arch_info.
14074 (d_type_data): New static variable.
14075 (_initialize_d_language): Initialize d_type_data.
14077 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14079 * d-lang.h (d_main_name): Add declaration.
14080 * d-lang.c (d_main_name): New function.
14081 * symtab.c (find_main_name): Add call to d_main_name.
14083 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14085 * d-lang.c (d_language_defn): Change macro_expansion_c to
14086 macro_expansion_no.
14088 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14090 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14092 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14094 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14095 gdb_exception" declaration.
14096 * remote.c (getpkt_or_notif_sane): Likewise.
14098 2014-01-17 Doug Evans <dje@google.com>
14100 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14101 function, contents of dirnames_to_char_ptr_vec_append moved here.
14102 (delim_string_to_char_ptr_vec): New function.
14103 (dirnames_to_char_ptr_vec_append): Rewrite.
14104 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14106 2014-01-17 Doug Evans <dje@google.com>
14108 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14110 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14111 #include "common-utils.h".
14112 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14113 * common/vec.h (VEC_ASSERT_PASS): Update.
14114 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14115 (MACH_CHECK_ERROR): Update.
14117 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14119 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14121 * gdbarch.h: Regenerate.
14123 2014-01-16 Tom Tromey <tromey@redhat.com>
14125 * value.c (struct value) <regnum>: Move earlier.
14127 2014-01-16 Tom Tromey <tromey@redhat.com>
14129 * remote.c (extended_remote_create_inferior): Rename from
14130 extended_remote_create_inferior_1. Add "ops" argument. Remove
14131 old implementation.
14133 2014-01-16 Pedro Alves <palves@redhat.com>
14135 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14136 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14139 2014-01-16 Doug Evans <dje@google.com>
14141 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14143 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14145 * btrace.h (btrace_thread_flag): New.
14146 (struct btrace_thread_info) <flags>: New.
14147 * record-btrace.c (record_btrace_resume_thread)
14148 (record_btrace_find_thread_to_move, btrace_step_no_history)
14149 (btrace_step_stopped, record_btrace_start_replaying)
14150 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14151 (record_btrace_find_resume_thread): New.
14152 (record_btrace_resume, record_btrace_wait): Extend.
14153 (record_btrace_can_execute_reverse): New.
14154 (record_btrace_open): Fail in non-stop mode.
14155 (record_btrace_set_replay): Split into this, ...
14156 (record_btrace_stop_replaying): ... this, ...
14157 (record_btrace_clear_histories): ... and this.
14158 (init_record_btrace_ops): Init to_can_execute_reverse.
14159 * NEWS: Announce it.
14161 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14163 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14164 (forward_target_decr_pc_after_break)
14165 (target_decr_pc_after_break): New.
14166 * target.c (forward_target_decr_pc_after_break)
14167 (target_decr_pc_after_break): New.
14168 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14169 instead of gdbarch_decr_pc_after_break.
14170 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14171 instead of gdbarch_decr_pc_after_break.
14172 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14173 instead of gdbarch_decr_pc_after_break.
14174 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14175 instead of gdbarch_decr_pc_after_break.
14176 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14177 instead of gdbarch_decr_pc_after_break.
14178 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14179 instead of gdbarch_decr_pc_after_break.
14181 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14183 * btrace.c: Include regcache.h.
14184 (btrace_add_pc): New.
14185 (btrace_enable): Call btrace_add_pc.
14186 (btrace_is_empty): New.
14187 * btrace.h (btrace_is_empty): New.
14188 * record-btrace.c (require_btrace, record_btrace_info): Call
14191 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14193 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14194 Support delta reads.
14195 (linux_disable_btrace): Change return type.
14196 * common/linux-btrace.h (linux_read_btrace): Change parameters
14197 and return type to allow error reporting. Update users.
14198 (linux_disable_btrace): Change return type. Update users.
14199 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14201 (btrace_error): New.
14202 (btrace_block) <begin>: Comment on BEGIN == 0.
14203 * btrace.c (btrace_compute_ftrace): Start from the end of
14205 (btrace_stitch_trace, btrace_clear_history): New.
14206 (btrace_fetch): Read delta trace, return if replaying.
14207 (btrace_clear): Move clear history code to btrace_clear_history.
14208 (parse_xml_btrace): Throw an error if parsing failed.
14209 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14210 and return type to allow error reporting.
14211 (target_read_btrace): Change parameters and return type to allow
14213 * target.c (target_read_btrace): Update.
14214 * remote.c (remote_read_btrace): Support delta reads. Pass
14216 * NEWS: Announce it.
14218 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14220 * record.h (record_btrace_frame_unwind)
14221 (record_btrace_tailcall_frame_unwind): New declarations.
14222 * dwarf2-frame: Include record.h
14223 (dwarf2_frame_cfa): Throw an error for btrace frames.
14224 * record-btrace.c: Include hashtab.h.
14225 (btrace_get_bfun_name): New.
14226 (btrace_call_history): Call btrace_get_bfun_name.
14227 (struct btrace_frame_cache): New.
14229 (bfcache_hash, bfcache_eq, bfcache_new): New.
14230 (btrace_get_frame_function): New.
14231 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14232 (record_btrace_frame_this_id): Compute own id.
14233 (record_btrace_frame_prev_register): Provide PC, throw_error
14234 for all other registers.
14235 (record_btrace_frame_sniffer): Detect btrace frames.
14236 (record_btrace_tailcall_frame_sniffer): New.
14237 (record_btrace_frame_dealloc_cache): New.
14238 (record_btrace_frame_unwind): Add new functions.
14239 (record_btrace_tailcall_frame_unwind): New.
14240 (_initialize_record_btrace): Allocate cache.
14241 * btrace.c (btrace_clear): Call reinit_frame_cache.
14242 * NEWS: Announce it.
14244 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14246 * record-btrace.c (record_btrace_set_replay)
14247 (record_btrace_goto_begin, record_btrace_goto_end)
14248 (record_btrace_goto): New.
14249 (init_record_btrace_ops): Initialize them.
14250 * NEWS: Announce it.
14252 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14254 * record-btrace.c (record_btrace_find_new_threads)
14255 (record_btrace_thread_alive): New.
14256 (init_record_btrace_ops): Initialize to_find_new_threads and
14259 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14261 * record-btrace.c (record_btrace_resume): New.
14262 (record_btrace_wait): New.
14263 (init_record_btrace_ops): Initialize to_wait and to_resume.
14265 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14267 * record-btrace.c (record_btrace_xfer_partial)
14268 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14269 (record_btrace_allow_memory_access): New.
14270 (init_record_btrace_ops): Initialize new methods.
14271 * target.c (raw_memory_xfer_partial): Bail out if target reports
14272 that this memory is not available.
14274 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14276 * target.h (target_ops) <to_insert_breakpoint>
14277 <to_remove_breakpoint>: Add target_ops parameter.
14278 (forward_target_insert_breakpoint): New.
14279 (forward_target_remove_breakpoint): New.
14280 (memory_remove_breakpoint, memory_insert_breakpoint):
14281 Add target_ops parameter.
14282 * target.c (target_insert_breakpoint): Split into this and ...
14283 (forward_target_insert_breakpoint): ... this.
14284 (target_remove_breakpoint): Split into this and ...
14285 (forward_target_remove_breakpoint): ... this.
14286 (debug_to_insert_breakpoint): Add target_ops parameter.
14287 Call forward_target_insert_breakpoint.
14288 (debug_to_remove_breakpoint): Add target_ops parameter.
14289 Call forward_target_remove_breakpoint.
14290 (update_current_target): Do not inherit or default to_insert_breakpoint
14291 and to_remove_breakpoint.
14292 * corelow.c (ignore): Add target_ops parameter.
14293 * exec.c (ignore): Add target_ops parameter.
14294 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14295 Add target_ops parameter.
14296 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14297 Add target_ops parameter.
14298 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14299 Add target_ops parameter.
14300 * record-full.c (record_full_beneath_to_insert_breakpoint)
14301 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14302 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14303 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14304 (record_full_core_remove_breakpoint): Add target_ops parameter.
14306 (record_full_beneath_to_insert_breakpoint_ops)
14307 (record_full_beneath_to_remove_breakpoint_ops)
14308 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14309 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14310 tmp_to_remove_breakpoint_ops,
14311 record_full_beneath_to_insert_breakpoint_ops, and
14312 record_full_beneath_to_remove_breakpoint_ops.
14313 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14314 (m32r_remove_breakpoint): Add target_ops parameter.
14315 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14316 Add target_ops parameter.
14317 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14318 Add target_ops parameter.
14320 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14321 Markus Metzger <markus.t.metzger@intel.com>
14323 * record-btrace.c: Include frame-unwind.h.
14324 (record_btrace_frame_unwind_stop_reason)
14325 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14326 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14328 (init_record_btrace_ops): Install it.
14330 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14332 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14335 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14337 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14340 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14342 * frame-unwind.c: Include target.h.
14343 (frame_unwind_try_unwinder): New function with code from ...
14344 (frame_unwind_find_by_frame): ... here. New variable
14345 unwinder_from_target, call also target_get_unwinder)
14346 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14347 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14348 * target.h (struct target_ops): New fields to_get_unwinder and
14349 to_get_tailcall_unwinder.
14350 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14352 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14354 * record-btrace.c (record_btrace_fetch_registers)
14355 (record_btrace_store_registers)
14356 (record_btrace_to_prepare_to_store): New.
14357 (init_record_btrace_ops): Add the above.
14359 2014-01-16 Tom Tromey <tromey@redhat.com>
14361 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14362 * target.h (struct target_ops) <to_prepare_to_store>: Add
14364 (target_prepare_to_store): Add argument.
14365 * target.c (debug_to_prepare_to_store): Add argument.
14366 (update_current_target): Update.
14367 * remote.c (remote_prepare_to_store): Add 'self' argument.
14368 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14369 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14370 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14371 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14373 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14374 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14375 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14376 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14377 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14379 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14381 * btrace.h (replay) <replay>: New.
14382 (btrace_is_replaying): New.
14383 * btrace.c (btrace_clear): Free replay iterator.
14384 (btrace_is_replaying): New.
14385 * record-btrace.c (record_btrace_is_replaying): New.
14386 (record_btrace_info): Print insn number if replaying.
14387 (record_btrace_insn_history): Start at replay position.
14388 (record_btrace_call_history): Start at replay position.
14389 (init_record_btrace_ops): Init to_record_is_replaying.
14391 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14393 * record-btrace.c (record_btrace_insn_history_range): Include
14395 (record_btrace_insn_history_from): Adjust range.
14396 (record_btrace_call_history_range): Include
14398 (record_btrace_call_history_from): Adjust range.
14399 * NEWS: Announce changes.
14401 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14403 * record.h (enum record_print_flag)
14404 <record_print_indent_calls>: New.
14405 * record.c (get_call_history_modifiers): Recognize /c modifier.
14406 (_initialize_record): Document /c modifier.
14407 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14408 Reorder fields. Optionally indent the function name. Update
14410 * NEWS: Announce changes.
14412 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14414 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14416 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14418 * btrace.c (ftrace_new_function): Start counting at one.
14419 * record-btrace.c (record_btrace_info): Adjust number of calls
14421 * NEWS: Announce it.
14423 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14425 * record-btrace.c (btrace_call_history_insn_range): Print
14426 insn range as [begin, end].
14428 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14430 * btrace.h (struct btrace_func_link): New.
14431 (enum btrace_function_flag): New.
14432 (struct btrace_inst): Rename to ...
14433 (struct btrace_insn): ...this. Update all users.
14434 (struct btrace_func) <ibegin, iend>: Remove.
14435 (struct btrace_func_link): New.
14436 (struct btrace_func): Rename to ...
14437 (struct btrace_function): ...this. Update all users.
14438 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14439 (number, level, flags>: New.
14440 (struct btrace_insn_iterator): Rename to ...
14441 (struct btrace_insn_history): ...this.
14443 (struct btrace_insn_iterator, btrace_call_iterator): New.
14444 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14445 (struct btrace_target_info) <begin, end, level>
14446 <insn_history, call_history>: New.
14447 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14448 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14449 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14450 (btrace_call_number, btrace_call_begin, btrace_call_end)
14451 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14452 (btrace_find_function_by_number, btrace_set_insn_history)
14453 (btrace_set_call_history): New.
14454 * btrace.c (btrace_init_insn_iterator)
14455 (btrace_init_func_iterator, compute_itrace): Remove.
14456 (ftrace_print_function_name, ftrace_print_filename)
14457 (ftrace_skip_file): Change
14458 parameter to const.
14459 (ftrace_init_func): Remove.
14460 (ftrace_debug): Use new btrace_function fields.
14461 (ftrace_function_switched): Also consider gaining and
14462 losing symbol information).
14463 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14464 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14465 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14467 (ftrace_new_function): Move. Remove debug print.
14468 (ftrace_update_lines, ftrace_update_insns): New.
14469 (ftrace_update_function): Check for call, ret, and jump.
14470 (compute_ftrace): Renamed to ...
14471 (btrace_compute_ftrace): ...this. Rewritten to compute call
14473 (btrace_fetch, btrace_clear): Updated.
14474 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14475 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14476 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14477 (btrace_call_number, btrace_call_begin, btrace_call_end)
14478 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14479 (btrace_find_function_by_number, btrace_set_insn_history)
14480 (btrace_set_call_history): New.
14481 * record-btrace.c (require_btrace): Use new btrace thread
14483 (record_btrace_info, btrace_insn_history)
14484 (record_btrace_insn_history, record_btrace_insn_history_range):
14485 Use new btrace thread info fields and new iterator.
14486 (btrace_func_history_src_line): Rename to ...
14487 (btrace_call_history_src_line): ...this. Use new btrace
14488 thread info fields.
14489 (btrace_func_history): Rename to ...
14490 (btrace_call_history): ...this. Use new btrace thread info
14491 fields and new iterator.
14492 (record_btrace_call_history, record_btrace_call_history_range):
14493 Use new btrace thread info fields and new iterator.
14495 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14497 * frame.h (frame_id_build_unavailable_stack_special): New.
14498 * frame.c (frame_id_build_unavailable_stack_special): New.
14500 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14502 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14503 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14504 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14506 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14507 (i386_insn_is_jump, i386_jmp_p): New.
14508 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14509 insn_is_jump to gdbarch.
14510 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14511 * gdbarch.h: Regenerated.
14512 * gdbarch.c: Regenerated.
14513 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14514 (default_insn_is_jump): New.
14515 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14516 (default_insn_is_jump): New.
14518 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14520 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14522 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14523 (btrace_read_type) <btrace_read_new>: Change to ...
14524 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14526 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14528 * common/linux-btrace.c (linux_read_btrace): Free trace from
14529 previous iteration.
14531 2014-01-15 Doug Evans <dje@google.com>
14533 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14536 2014-01-15 Tom Tromey <tromey@redhat.com>
14538 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14539 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14540 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14541 (set_objfile_main_name): New function.
14542 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14543 language_of_main>: New fields.
14544 (set_objfile_main_name): Declare.
14545 * symtab.c (find_main_name): Loop over objfiles to find the main
14547 (set_main_name): Now static.
14548 (get_main_info): Add comment.
14549 * symtab.h (set_main_name): Don't declare.
14551 2014-01-15 Tom Tromey <tromey@redhat.com>
14553 * symtab.c (main_progspace_key): New global.
14554 (struct main_info): New.
14555 (name_of_main, language_of_main): Remove.
14556 (get_main_info, main_info_cleanup): New function.
14557 (set_main_name, main_name, main_language): Use get_main_info.
14558 (_initialize_symtab): Initialize main_progspace_key.
14560 2014-01-15 Tom Tromey <tromey@redhat.com>
14562 * dbxread.c (process_one_symbol): Update.
14563 * dwarf2read.c (read_partial_die): Update.
14564 * symfile.c (set_initial_language): Call main_language.
14565 * symtab.c (language_of_main): Now static.
14566 (set_main_name): Add 'lang' parameter.
14567 (find_main_name): Update.
14568 (main_language): New function.
14569 (symtab_observer_executable_changed): Update.
14570 * symtab.h (set_main_name): Update.
14571 (language_of_main): Remove.
14572 (main_language): Declare.
14574 2014-01-15 Tom Tromey <tromey@redhat.com>
14576 * symfile.c (init_entry_point_info): Use new "initialized" field.
14578 * objfiles.h (struct entry_point) <initialized>: New field.
14579 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14580 (struct objfile) <ei>: ...here. Remove.
14581 * objfiles.c (entry_point_address_query): Update.
14583 2014-01-15 Tom Tromey <tromey@redhat.com>
14585 * objfiles.c (entry_point_address_query): Relocate entry point
14587 (objfile_relocate1): Do not relocate entry point address.
14588 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14589 <the_bfd_section_index>: New field.
14590 * symfile.c (init_entry_point_info): Find the entry point's
14593 2014-01-15 Tom Tromey <tromey@redhat.com>
14595 * solib-frv.c (enable_break): Use entry_point_address_query.
14597 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14599 * NEWS: Add note on improved process record-replay on
14600 arm*-linux* targets.
14602 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14604 * arm-tdep.c (enum arm_record_result): New enum.
14605 (arm_record_unsupported_insn): New function.
14606 (arm_record_coproc_data_proc): Removed.
14607 (thumb2_record_ld_st_multiple): New function.
14608 (thumb2_record_ld_st_dual_ex_tbb): New function.
14609 (thumb2_record_data_proc_sreg_mimm): New function.
14610 (thumb2_record_ps_dest_generic): New function.
14611 (thumb2_record_branch_misc_cntrl): New function.
14612 (thumb2_record_str_single_data): New function.
14613 (thumb2_record_ld_mem_hints): New function.
14614 (thumb2_record_ld_word): New function.
14615 (thumb2_record_lmul_lmla_div): New function.
14616 (thumb2_record_decode_insn_handler): New function.
14617 (decode_insn): Add thumb32 instruction handlers.
14619 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14621 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14622 (struct arm_linux_record_tdep): Declare.
14623 (arm_canonicalize_syscall): New function.
14624 (arm_all_but_pc_registers_record): New function.
14625 (arm_linux_syscall_record): New function.
14626 (arm_linux_init_abi): Add syscall recording constructs.
14627 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14628 decoding. (arm_record_coproc_data_proc): Update arm syscall
14630 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14631 <arm_syscall_record>: New field.
14632 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14635 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14637 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14638 register for push instruction recording.
14640 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14642 * arm-tdep.c (thumb_record_misc): Update to correct logical
14643 error while recording ldm, ldmia and pop instructions.
14645 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14647 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14649 2014-01-15 Pedro Alves <palves@redhat.com>
14651 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14652 (go32_resume, go32_fetch_registers, store_register)
14653 (go32_store_registers, go32_prepare_to_store)
14654 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14655 (go32_create_inferior, go32_can_run, go32_terminal_init)
14656 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14659 2014-01-15 Tom Tromey <tromey@redhat.com>
14661 * target.h (async_callback_ftype): New typedef.
14662 (struct target_ops) <to_async>: Use it.
14664 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14666 * python/py-value.c (get_field_type): Remove unnecessary curly
14667 braces for single-statement if block.
14669 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14671 * python/py-type.c (convert_field): Add missing empty line
14672 after declarations.
14674 2014-01-14 Doug Evans <dje@google.com>
14676 * symfile.h (expand_symtabs_matching): Renamed from
14677 expand_partial_symbol_names. Update prototype.
14678 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14679 * symfile.c (expand_symtabs_matching): Renamed from
14680 expand_partial_symbol_names. New args file_matcher, kind.
14681 Rename arg fun to symbol_matcher.
14682 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14683 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14684 ada_expand_partial_symbol_name.
14685 (ada_make_symbol_completion_list): Update to call
14686 expand_symtabs_matching.
14687 (ada_add_global_exceptions): Call expand_symtabs_matching.
14688 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14689 call map_symbol_filenames.
14690 * symtab.c (sources_info): Update to call map_symbol_filenames.
14691 (search_symbols): Call expand_symtabs_matching.
14692 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14693 (default_make_symbol_completion_list_break_on): Update to call
14694 expand_symtabs_matching.
14695 (make_source_files_completion_list): Update to call
14696 map_symbol_filenames.
14698 2014-01-14 Doug Evans <dje@google.com>
14700 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14701 (expand_symtabs_symbol_matcher_ftype): New typedef.
14702 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14703 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14704 * symfile.c (expand_partial_symbol_names): Update to use
14705 expand_symtabs_symbol_matcher_ftype.
14706 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14707 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14708 Arg name_matcher renamed to symbol_matcher.
14709 * psymtab.c (recursively_search_psymtabs): Update to use
14710 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14712 (expand_symtabs_matching_via_partial): Update to use
14713 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14714 Arg name_matcher renamed to symbol_matcher.
14716 2014-01-14 Doug Evans <dje@google.com>
14718 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14719 (map_partial_symbol_filenames): Ditto.
14720 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14721 (map_partial_symbol_filenames): Ditto.
14722 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14723 (map_partial_symbol_filenames): Ditto.
14724 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14725 (map_partial_symbol_filenames): Ditto.
14726 * symtab.c: Delete #include "psymtab.h".
14728 2014-01-14 Pedro Alves <palves@redhat.com>
14729 Tom Tromey <tromey@redhat.com>
14731 * infrun.c (use_displaced_stepping): Use find_record_target
14732 instead of RECORD_IS_USED.
14733 (adjust_pc_after_break): Use record_full_is_used instead of
14735 * record-btrace.c (record_btrace_open): Call record_preopen
14736 instead of checking RECORD_IS_USED.
14737 * record-full.c (record_full_shortname)
14738 (record_full_core_shortname): New globals.
14739 (record_full_is_used): New function.
14740 (find_full_open): Call record_preopen instead of checking
14742 (init_record_full_ops): Set the target's shortname to
14743 record_full_shortname.
14744 (init_record_full_core_ops): Set the target's shortname to
14745 record_full_core_shortname.
14746 * record-full.h (record_full_is_used): Declare.
14747 * record.c (find_record_target): Make extern.
14748 (record_preopen): New function.
14749 * record.h (RECORD_IS_USED): Delete macro.
14750 (find_record_target, record_preopen): Declare functions.
14752 2014-01-14 Yao Qi <yao@codesourcery.com>
14754 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14755 'len''s type to ULONGEST.
14756 (core_xfer_shared_libraries_aix): Likewise.
14757 * gdbarch.c, gdbarch.h: Regenerated.
14758 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14759 Change type of 'len' to ULONGEST.
14760 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14761 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14763 2014-01-14 Yao Qi <yao@codesourcery.com>
14765 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14766 type of 'len' to ULONGEST.
14767 (linux_xfer_osdata_processgroups): Likewise.
14768 (linux_xfer_osdata_threads): Likewise.
14769 (linux_xfer_osdata_fds): Likewise.
14770 (linux_xfer_osdata_isockets): Likewise.
14771 (linux_xfer_osdata_shm): Likewise.
14772 (linux_xfer_osdata_sem): Likewise.
14773 (linux_xfer_osdata_msg): Likewise.
14774 (linux_common_xfer_osdata): Likewise.
14775 (struct osdata_type) <getter>: Likewise.
14776 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14779 2014-01-14 Yao Qi <yao@codesourcery.com>
14781 * target.h (target_xfer_partial_ftype): Update.
14782 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14784 * aix-thread.c (aix_thread_xfer_partial): Change type of
14785 argument 'len' to ULONGEST.
14786 * auxv.c (procfs_xfer_auxv): Likewise.
14787 (ld_so_xfer_auxv): Likewise.
14788 (memory_xfer_auxv): Likewise.
14789 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14790 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14791 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14792 * corelow.c (core_xfer_partial): Likewise.
14793 * ctf.c (ctf_xfer_partial): Likewise.
14794 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14796 (darwin_read_dyld_info): Likewise.
14797 (darwin_xfer_partial): Likewise.
14798 * exec.c (section_table_xfer_memory_partial): Likewise.
14799 (exec_xfer_partial): Likewise.
14800 * exec.h (section_table_xfer_memory_partial): Update
14802 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14803 instead of plongest.
14804 (gnu_xfer_partial): Likewise.
14805 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14806 (ia64_hpux_xfer_solib_got): Likewise.
14807 (ia64_hpux_xfer_partial): Likewise.
14808 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14809 * inf-ptrace.c (inf_ptrace_xfer_partial):
14810 * inf-ttrace.c (inf_ttrace_xfer_partial):
14811 * linux-nat.c (linux_xfer_siginfo): Likewise.
14812 (linux_nat_xfer_partial): Likewise.
14813 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14814 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14815 * monitor.c (monitor_xfer_memory): Likewise.
14816 (monitor_xfer_partial): Likewise.
14817 * procfs.c (procfs_xfer_partial): Likewise.
14818 * record-full.c (record_full_xfer_partial): Likewise.
14819 (record_full_core_xfer_partial): Likewise.
14820 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14821 instead of plongest.
14822 (gdbsim_xfer_partial): Likewise.
14823 * remote.c (remote_xfer_partial): Likewise.
14824 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14825 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14827 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14828 (rs6000_xfer_shared_libraries): Likewise.
14829 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14830 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14831 (sparc_xfer_partial): Likewise.
14832 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14833 (spu_xfer_partial): Likewise.
14834 * spu-multiarch.c (spu_xfer_partial): Likewise.
14835 * target.c (target_read_live_memory): Likewise.
14836 (memory_xfer_live_readonly_partial): Likewise.
14837 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14838 (target_xfer_partial, default_xfer_partial): Likewise.
14839 (current_xfer_partial): Likewise.
14840 * tracepoint.c (tfile_xfer_partial): Likewise.
14841 * windows-nat.c (windows_xfer_memory): Likewise. Call
14842 pulongest instead of plongest.
14843 (windows_xfer_partial): Likewise.
14844 (windows_xfer_shared_libraries): Likewise.
14846 2014-01-14 Yao Qi <yao@codesourcery.com>
14848 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14849 target_xfer_partial_ftype.
14851 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14855 * valops.c (value_struct_elt_bitpos): New function
14856 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14857 object to 'None' if the field name is an empty string ("").
14858 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14859 attribute to look for a field when 'name' is 'None'.
14860 (get_field_type): New function
14862 2014-01-13 Doug Evans <dje@google.com>
14865 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14866 (try_open_dwop_file): Ditto.
14867 * gdb_bfd.c: #include "vec.h".
14868 (bfdp): New typedef.
14869 (struct gdb_bfd_data): New member included_bfds.
14870 (gdb_bfd_unref): Unref all included bfds.
14871 (gdb_bfd_record_inclusion): New function.
14872 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14874 2014-01-13 Tom Tromey <tromey@redhat.com>
14876 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14878 2014-01-13 Tom Tromey <tromey@redhat.com>
14880 * defs.h (use_windows): Remove.
14881 * gdb.c (main): Update.
14882 * main.c (captured_main, gdb_main): Update.
14883 * main.h (struct captured_main_args) <use_windows>: Remove.
14884 * top.c (use_windows): Remove.
14886 2014-01-13 Tom Tromey <tromey@redhat.com>
14888 * defs.h (deprecated_flush_hook): Remove.
14890 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14893 * linux-thread-db.c (try_thread_db_load): Add parameter
14894 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14895 (try_thread_db_load_from_pdir_1): Move it there from here.
14896 (try_thread_db_load_from_sdir): Update caller.
14897 (try_thread_db_load_from_dir): Move it there from here.
14899 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14901 * regformats/regdat.sh: Always rewrite the register file.
14903 2014-01-13 Pedro Alves <palves@redhat.com>
14905 * Makefile.in (CHECK_HEADERS): New variable.
14906 (check-headers:): New rule.
14908 2014-01-13 Tom Tromey <tromey@redhat.com>
14910 * cli/cli-setshow.c (do_set_command): Update.
14911 * defs.h (deprecated_set_hook): Remove.
14912 * top.c (deprecated_set_hook): Remove.
14914 2014-01-13 Pedro Alves <palves@redhat.com>
14916 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14917 the tracepoint if the PC is a pseudo-register.
14919 2014-01-13 Tom Tromey <tromey@redhat.com>
14921 * defs.h (XCALLOC): Remove.
14922 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14923 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14924 * dwarf2loc.c (allocate_piece_closure): Likewise.
14925 * elfread.c (elf_symfile_segments): Likewise.
14926 (elf_symfile_segments): Likewise.
14927 * gdbtypes.c (copy_type_recursive): Likewise.
14928 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14929 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14930 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14932 * mt-tdep.c (mt_gdbarch_init): Likewise.
14933 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14935 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14936 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14937 * registry.c (registry_alloc_data): Likewise.
14938 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14939 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14940 * serial.c (serial_fdopen_ops): Likewise.
14941 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14943 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14944 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14947 2014-01-13 Tom Tromey <tromey@redhat.com>
14949 * defs.h (XMALLOC): Remove.
14950 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14951 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14952 * cli-out.c (struct ui_out *): Likewise.
14953 * cli/cli-dump.c (add_dump_command): Likewise.
14954 (add_dump_command): Likewise.
14955 * complaints.c (get_complaints): Likewise.
14956 (find_complaint): Likewise.
14957 * dwarf2-frame.c (execute_cfa_program): Likewise.
14958 * dwarf2read.c (abbrev_table_read_table): Likewise.
14959 * gdbarch.sh: Likewise.
14960 * gdbarch.c: Rebuild.
14961 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14962 * interps.c (interp_new): Likewise.
14963 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14964 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14965 * mi/mi-console.c (mi_console_file_new): Likewise.
14966 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14967 * mi/mi-out.c (mi_out_new): Likewise.
14968 * mi/mi-parse.c (mi_parse): Likewise.
14969 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14970 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14971 * observer.c (xalloc_observer_list_node): Likewise.
14972 * regcache.c (regcache_xmalloc_1): Likewise.
14973 * reggroups.c (reggroup_new): Likewise.
14974 (_initialize_reggroup): Likewise.
14975 * registry.c (register_data_with_cleanup): Likewise.
14976 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14977 * ser-base.c (serial_ttystate): Likewise.
14978 * ser-mingw.c (make_pipe_state): Likewise.
14979 * ser-pipe.c (pipe_open): Likewise.
14980 * serial.c (serial_open): Likewise.
14981 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14982 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14983 (tui_alloc_win_info): Likewise.
14984 (tui_add_content_elements): Likewise.
14985 * tui/tui-file.c (tui_file_new): Likewise.
14986 * tui/tui-out.c (tui_out_new): Likewise.
14987 * ui-file.c (mem_file_new): Likewise.
14988 * ui-out.c (push_level): Likewise.
14989 (make_cleanup_ui_out_end): Likewise.
14990 (append_header_to_list): Likewise.
14991 (ui_out_new): Likewise.
14992 * user-regs.c (user_reg_add_builtin): Likewise.
14994 2014-01-13 Tom Tromey <tromey@redhat.com>
14996 * defs.h (XZALLOC): Remove.
14997 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14998 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14999 (get_ada_tasks_inferior_data): Likewise.
15000 * auto-load.c (get_auto_load_pspace_data): Likewise.
15001 * auxv.c (get_auxv_inferior_data): Likewise.
15002 * bfd-target.c (target_bfd_reopen): Likewise.
15003 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15004 (deprecated_insert_raw_breakpoint): Likewise.
15005 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15006 * corelow.c (core_open): Likewise.
15007 * darwin-nat.c (darwin_check_new_threads): Likewise.
15008 (darwin_attach_pid): Likewise.
15009 * dummy-frame.c (dummy_frame_push): Likewise.
15010 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15011 * dwarf2loc.c (allocate_piece_closure): Likewise.
15012 * elfread.c (elf_symfile_segments): Likewise.
15013 * eval.c (ptrmath_type_p): Likewise.
15014 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15015 * gdbtypes.c (alloc_type_arch): Likewise.
15016 (alloc_type_instance): Likewise.
15017 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15018 * inf-child.c (inf_child_can_use_agent): Likewise.
15019 * inflow.c (get_inflow_inferior_data): Likewise.
15020 * infrun.c (save_infcall_suspend_state): Likewise.
15021 * jit.c (jit_reader_load): Likewise.
15022 (get_jit_objfile_data): Likewise.
15023 (get_jit_program_space_data): Likewise.
15024 (jit_object_open_impl): Likewise.
15025 (jit_symtab_open_impl): Likewise.
15026 (jit_block_open_impl): Likewise.
15027 (jit_frame_sniffer): Likewise.
15028 * linux-fork.c (add_fork): Likewise.
15029 * maint.c (make_command_stats_cleanup): Likewise.
15030 * objfiles.c (get_objfile_pspace_data): Likewise.
15031 * opencl-lang.c (struct lval_closure): Likewise.
15032 * osdata.c (osdata_start_osdata): Likewise.
15033 * progspace.c (new_address_space): Likewise.
15034 (add_program_space): Likewise.
15035 * remote-sim.c (get_sim_inferior_data): Likewise.
15036 * sh-tdep.c (sh_gdbarch_init): Likewise.
15037 * skip.c (Ignore): Likewise.
15038 (skip_delete_command): Likewise.
15039 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15040 (library_list_start_library): Likewise.
15041 (solib_aix_current_sos): Likewise.
15042 * solib-darwin.c (get_darwin_info): Likewise.
15043 (darwin_current_sos): Likewise.
15044 * solib-dsbt.c (get_dsbt_info): Likewise.
15045 * solib-ia64-hpux.c (new_so_list): Likewise.
15046 (ia64_hpux_get_solib_linkage_addr): Likewise.
15047 * solib-spu.c (append_ocl_sos): Likewise.
15048 (spu_current_sos): Likewise.
15049 * solib-svr4.c (get_svr4_info): Likewise.
15050 (svr4_keep_data_in_core): Likewise.
15051 (library_list_start_library): Likewise.
15052 (svr4_default_sos): Likewise.
15053 (svr4_read_so_list): Likewise.
15054 * solib-target.c (library_list_start_library): Likewise.
15055 (solib_target_current_sos): Likewise.
15056 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15057 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15058 * symfile.c (default_symfile_segments): Likewise.
15059 * target-descriptions.c (tdesc_data_init): Likewise.
15060 (tdesc_create_reg): Likewise.
15061 (struct tdesc_type *): Likewise.
15062 (tdesc_create_vector): Likewise.
15063 (tdesc_set_struct_size): Likewise.
15064 (struct tdesc_type *): Likewise.
15065 (tdesc_free_feature): Likewise.
15066 (tdesc_create_feature): Likewise.
15067 * windows-nat.c (windows_add_thread): Likewise.
15068 (windows_make_so): Likewise.
15069 * xml-support.c (gdb_xml_body_text): Likewise.
15070 (gdb_xml_create_parser_and_cleanup): Likewise.
15071 (xml_process_xincludes): Likewise.
15072 * xml-syscall.c (allocate_syscalls_info): Likewise.
15073 (syscall_create_syscall_desc): Likewise.
15075 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15077 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15078 function, with code from i386_stap_parse_special_token.
15079 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15080 (i386_stap_parse_special_token): Move code to the two functions
15081 above; simplify it.
15083 2014-01-09 Pedro Alves <palves@redhat.com>
15084 Hui Zhu <hui@codesourcery.com>
15087 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15088 bp_err_string. Don't mark the location shlib_disabled if the
15089 error thrown wasn't a generic or memory error. Catch errors
15090 thrown while inserting breakpoints in overlayed code. Output
15091 error message of software breakpoints.
15092 * remote.c (remote_insert_breakpoint): If this breakpoint has
15093 target-side commands but this stub doesn't support Z0 packets,
15094 throw NOT_SUPPORTED_ERROR error.
15095 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15096 * target.h (target_insert_breakpoint): Extend comment.
15097 (target_insert_hw_breakpoint): Add comment.
15099 2014-01-08 Pedro Alves <palves@redhat.com>
15101 * remote.c (remote_add_thread): Add threads silently if starting
15103 (remote_notice_new_inferior): If in all-stop, and starting up,
15104 don't call notice_new_inferior.
15105 (get_current_thread): New function, factored out from ...
15106 (add_current_inferior_and_thread): ... this. Adjust.
15107 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15108 found any thread, then select the remote's current thread as GDB's
15109 current thread too.
15111 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15113 * NEWS: Create a new section for the next release branch.
15114 Rename the section of the current branch, now that it has
15117 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15119 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15120 * version.in: Bump version to 7.7.50.DATE-cvs.
15122 2014-01-08 Yao Qi <yao@codesourcery.com>
15124 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15125 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15126 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15128 2014-01-08 Yao Qi <yao@codesourcery.com>
15130 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15131 return value of bfd_get_filename to symbol_file_add_from_bfd.
15133 2014-01-08 Pierre Muller <muller@sourceware.org>
15136 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15137 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15138 to prim_record_mininal_symbol_and_info.
15139 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15140 in call to prim_record_minimal_symbol_and_info.
15141 (read_pe_exported_syms): Set index field of section_data.
15143 2014-01-07 Andrew Pinski <apinski@cavium.com>
15145 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15146 * features/aarch64.c: Regenerate.
15148 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15150 * target.c (return_null): Define.
15151 (update_current_target): Use it instead of return_zero for
15152 functions that return a pointer.
15154 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15156 * source.c (add_path): Fix check for duplicated paths in the previously
15159 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15161 * ada-lang.c: Remove duplicated include statements.
15162 * alphabsd-nat.c: Ditto.
15163 * amd64-darwin-tdep.c: Ditto.
15164 * amd64fbsd-nat.c: Ditto.
15165 * auto-load.c: Ditto.
15167 * breakpoint.c: Ditto.
15168 * dbxread.c: Ditto.
15169 * fork-child.c: Ditto.
15170 * gdb_usleep.c: Ditto.
15171 * i386-darwin-tdep.c: Ditto.
15172 * i386fbsd-nat.c: Ditto.
15174 * inferior.c: Ditto.
15175 * jv-lang.c: Ditto.
15176 * linux-nat.c: Ditto.
15177 * linux-tdep.c: Ditto.
15178 * m68kbsd-nat.c: Ditto.
15179 * m68klinux-nat.c: Ditto.
15180 * microblaze-tdep.c: Ditto.
15181 * mips-linux-tdep.c: Ditto.
15182 * mn10300-tdep.c: Ditto.
15183 * nto-tdep.c: Ditto.
15184 * opencl-lang.c: Ditto.
15186 * printcmd.c: Ditto.
15187 * regcache.c: Ditto.
15188 * remote-m32r-sdi.c: Ditto.
15190 * symfile.c: Ditto.
15192 * tilegx-linux-nat.c: Ditto.
15193 * tilegx-tdep.c: Ditto.
15194 * tracepoint.c: Ditto.
15196 * vaxbsd-nat.c: Ditto.
15197 * windows-nat.c: Ditto.
15198 * xtensa-tdep.c: Ditto.
15200 2014-01-07 Yao Qi <yao@codesourcery.com>
15202 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15204 2014-01-07 Yao Qi <yao@codesourcery.com>
15205 Joel Brobecker <brobecker@adacore.com>
15207 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15208 (pdc_write_regs): Likewise.
15209 (fetch_regs_kernel_thread): Likewise.
15210 (store_regs_kernel_thread): Likewise.
15212 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15214 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15215 tagged type objects to their actual type.
15217 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15219 * ada-valprint.c (print_field_values): Add "language" parameter.
15220 Update calls to print_field_values and print_variant_part.
15221 Pass new parameter "language" in call to val_print instead
15222 of "current_language". Replace call to ada_val_print by call
15224 (print_variant_part): Add "language" parameter.
15225 (ada_val_print_struct_union): Update call to print_field_values.
15227 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15229 * ada-valprint.c (ui_memcpy): Delete.
15230 (ada_print_floating): Update documentation. Add empty line
15231 between between function documentation and implementation.
15232 Delete variable "buffer". Use ui_file_xstrdup in place of
15233 ui_file_put. Minor adjustments following this change.
15235 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15237 * ada-valprint.c (ada_val_print_string): New function,
15238 extracted from ada_val_print_array.
15239 (ada_val_print_array): Replace extracted code by call
15240 to ada_val_print_string followed by a return. Move
15241 "else" branch to the function's top block.
15243 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15245 * ada-valprint.c (ada_val_print_array): Move implementation
15246 down. Rename parameter "offset" and "val" into "offset_aligned"
15247 and "original_value" respectively. Add parameter "offset".
15249 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15251 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15252 re-organizing the code. Change the "???" message printed
15253 when target type is a TYPE_CODE_UNDEF into
15254 "<ref to undefined type>".
15256 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15258 * ada-valprint.c (print_record): Delete, implementation inlined...
15259 (ada_val_print_struct_union): ... here. Remove call to
15260 ada_check_typedef in inlined implementation.
15262 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15264 * ada-valprint.c (ada_val_print_gnat_array): New function,
15265 extracted from ada_val_print_1;
15266 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15267 (ada_val_print_flt, ada_val_print_struct_union)
15268 (ada_val_print_ref): Likewise.
15269 (ada_val_print_1): Delete variables i and elttype.
15270 Replace extracted-out code by call to corresponding
15273 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15275 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15277 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15279 * ada-valprint.c (ada_val_print_1): Replace calls to
15280 ada_val_print_1 by calls to val_print.
15282 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15284 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15285 Update calls to self accordingly. Replace calls to c_val_print
15286 by calls to val_print.
15288 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15290 * ada-valprint.c (print_record): Delete declaration.
15291 (adjust_type_signedness, ada_val_print_1): Likewise.
15292 (ada_val_print): Move function implementation down.
15293 (print_variant_part, print_field_values, print_record):
15294 Move function implementation up.
15296 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15298 * python/py-type.c (typy_get_name): New function.
15299 (type_object_getset): Add entry for attribute "name".
15300 * NEWS: Add entry mentioning this new attribute.
15302 2014-01-07 Yao Qi <yao@codesourcery.com>
15304 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15307 2014-01-07 Yao Qi <yao@codesourcery.com>
15309 * gnu-nat.c (info_port_rights): Add qualifier const to
15312 2014-01-07 Yao Qi <yao@codesourcery.com>
15314 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15316 2014-01-07 Yao Qi <yao@codesourcery.com>
15318 * gnu-nat.c (make_inf) Update declaration.
15319 (make_inf): Make it static.
15320 (inf_set_traced): Likewise.
15321 (inf_port_to_thread, inf_task_died_status): Likewise.
15323 2014-01-07 Yao Qi <yao@codesourcery.com>
15325 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15327 2014-01-07 Yao Qi <yao@codesourcery.com>
15329 * gnu-nat.c (_initialize_gnu_nat): Declare.
15331 2014-01-07 Yao Qi <yao@codesourcery.com>
15333 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15335 (struct gdbarch_info) <byte_order>: Change type to
15337 <byte_order_for_code>: Likewise.
15338 * gdbarch.c, gdbarch.h: Regenerated.
15340 2014-01-06 Sasha Smundak <asmundak@google.com>
15342 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15344 2014-01-06 Tom Tromey <tromey@redhat.com>
15346 * doublest.c (convert_doublest_to_floatformat): Use const, not
15348 * somread.c (som_symtab_read): Likewise.
15350 2014-01-07 Hui Zhu <hui@codesourcery.com>
15352 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15353 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15354 (gdb_bfd_fopen): Ditto.
15355 (gdb_bfd_openr): Ditto.
15356 (gdb_bfd_openw): Ditto.
15357 (gdb_bfd_openr_iovec): Ditto.
15358 (gdb_bfd_fdopenr): Ditto.
15359 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15360 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15362 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15364 * symfile-mem.c (symbol_file_add_from_memory): Removed
15365 gdb_bfd_stash_filename.
15367 2014-01-03 Doug Evans <dje@google.com>
15369 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15372 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15374 Update year range in copyright notice of all files.
15376 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15378 * top.c (print_gdb_version): Set copyright year to 2014.
15380 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15382 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15384 For older changes see ChangeLog-2013.
15390 version-control: never