1 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
3 * event-top.h (call_stdin_event_handler_again_p): Declare.
4 * event-top.c (call_stdin_event_handler_again_p): Define.
5 (stdin_event_handler): Use it.
6 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
7 handler again if there is pending input following a
10 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
12 Pushed by Joel Brobecker <brobecker@adacore.com>
13 * linux-fork.c (checkpoint_command): Print index of new
14 checkpoint in response message.
16 2014-11-23 Yao Qi <yao@codesourcery.com>
18 * valprint.c (read_string): Move local variables 'found_nul',
19 'chunksize' and 'limit' to inner scope. Update comments.
21 2014-11-22 Doug Evans <xdje42@gmail.com>
23 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
25 (search_symbols): Fix comments and whitespace.
27 2014-11-22 Doug Evans <xdje42@gmail.com>
29 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
31 2014-11-21 Doug Evans <dje@google.com>
33 * psymtab.c (psymtab_search_name): Fix whitespace.
35 2014-11-21 Yao Qi <yao@codesourcery.com>
37 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
39 * gnulib/import/Makefile.am: Re-generated.
40 * gnulib/import/Makefile.in: Likewise.
41 * gnulib/import/m4/gnulib-cache.m4: Likewise.
43 2014-11-21 Yao Qi <yao@codesourcery.com>
45 * gdb_wchar.h: Include wchar.h and wctype.h.
46 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
47 include wchar.h and wctype.h.
48 Don't check HAVE_WCHAR_H.
50 2014-11-21 Yao Qi <yao@codesourcery.com>
52 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
54 * gnulib/import/Makefile.am: Re-generated.
55 * gnulib/import/Makefile.in: Likewise.
56 * gnulib/import/m4/gnulib-cache.m4: Likewise.
58 2014-11-21 Yao Qi <yao@codesourcery.com>
60 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
62 * gnulib/import/Makefile.am: Re-generated.
63 * gnulib/import/Makefile.in: Likewise.
64 * gnulib/import/m4/gnulib-cache.m4: Likewise.
66 2014-11-21 Yao Qi <yao@codesourcery.com>
68 * common/common-defs.h: Include alloca.h
69 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
70 * configure: Re-generated.
71 * defs.h: Remove code handling alloca.
72 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
75 2014-11-21 Yao Qi <yao@codesourcery.com>
77 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
79 * gnulib/import/Makefile.am: Re-generated.
80 * gnulib/import/Makefile.in: Likewise..
81 * gnulib/import/m4/gnulib-cache.m4: Likewise.
83 2014-11-21 Yao Qi <yao@codesourcery.com>
85 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
88 2014-11-21 Joel Brobecker <brobecker@adacore.com>
90 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
91 flag_unsigned if HIGH_BOUND is constant and negative.
93 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
96 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
97 modifier from "struct gdbarch" when compiling without Expat (XML)
99 (get_syscall_by_number): Likewise.
100 (get_syscall_by_name): Likewise.
101 (get_syscall_names): Likewise.
103 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
106 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
107 set_xml_syscall_file_name to provide gdbarch.
108 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
109 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
110 * breakpoint.c (print_it_catch_syscall): Adjust call to
111 get_syscall_by_number to provide gdbarch.
112 (print_one_catch_syscall): Likewise.
113 (print_mention_catch_syscall): Likewise.
114 (print_recreate_catch_syscall): Likewise.
115 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
116 and get_syscall_by_name to provide gdbarch.
117 (catch_syscall_completer): Adjust call to get_syscall_names to
119 * gdbarch.c: Regenerate.
120 * gdbarch.h: Likewise.
121 * gdbarch.sh: Forward declare "struct syscalls_info".
122 (xml_syscall_file): New variable.
123 (syscalls_info): Likewise.
124 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
125 set_xml_syscall_file_name to provide gdbarch.
126 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
127 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
128 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
129 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
130 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
131 * xml-syscall.c: Include gdbarch.h.
132 (set_xml_syscall_file_name): Accept gdbarch parameter.
133 (get_syscall_by_number): Likewise.
134 (get_syscall_by_name): Likewise.
135 (get_syscall_names): Likewise.
136 (my_gdb_datadir): Delete global variable.
137 (struct syscalls_info) <my_gdb_datadir>: New variable.
138 (struct syscalls_info) <sysinfo>: Rename variable to
140 (sysinfo): Delete global variable.
141 (have_initialized_sysinfo): Likewise.
142 (xml_syscall_file): Likewise.
143 (sysinfo_free_syscalls_desc): Rename to...
144 (syscalls_info_free_syscalls_desc): ... this.
145 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
146 code to the new layout of "struct syscalls_info".
147 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
149 (syscall_create_syscall_desc): Likewise.
150 (syscall_start_syscall): Likewise.
151 (syscall_parse_xml): Likewise.
152 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
153 (init_sysinfo): Rename to...
154 (init_syscalls_info): ...this. Add gdbarch as a parameter.
155 Adjust function to deal with gdbarch.
156 (xml_get_syscall_number): Delete parameter sysinfo. Accept
157 gdbarch as a parameter. Adjust code.
158 (xml_get_syscall_name): Likewise.
159 (xml_list_of_syscalls): Likewise.
160 (set_xml_syscall_file_name): Accept gdbarch as parameter.
161 (get_syscall_by_number): Likewise.
162 (get_syscall_by_name): Likewise.
163 (get_syscall_names): Likewise.
164 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
165 (get_syscall_by_number): Likewise.
166 (get_syscall_by_name): Likewise.
167 (get_syscall_names): Likewise.
169 2014-11-20 Doug Evans <xdje42@gmail.com>
171 Split struct symtab into two: struct symtab and compunit_symtab.
172 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
173 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
174 to "struct compunit_symtab *". All callers updated.
175 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
176 "struct symtab *" argument to "struct compunit_symtab *".
178 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
179 result to "struct compunit_symtab *". All callers updated.
180 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
181 Change result to "struct compunit_symtab *". All callers updated.
182 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
183 hange type to "struct compunit_symtab *". All uses updated.
184 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
185 Change type to "struct compunit_symtab *". All uses updated.
186 * buildsym.c (struct buildsym_compunit): New struct.
187 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
188 (buildsym_compunit): New static global.
189 (finish_block_internal): Update to fetch objfile from
191 (make_blockvector): Delete objfile argument.
192 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
193 debugformat, producer.
194 (start_buildsym_compunit): New function.
195 (free_buildsym_compunit): Renamed from free_subfiles_list.
197 (patch_subfile_names): Rewrite to use buildsym_compunit.
198 (get_compunit_symtab): New function.
199 (get_macro_table): Delete argument comp_dir. All callers updated.
200 (start_symtab): Change result to "struct compunit_symtab *".
201 All callers updated. Create the subfile of the main source file.
202 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
203 (reset_symtab_globals): Update.
204 (end_symtab_get_static_block): Update to use buildsym_compunit.
205 (end_symtab_without_blockvector): Rewrite.
206 (end_symtab_with_blockvector): Change result to
207 "struct compunit_symtab *". All callers updated.
208 Update to use buildsym_compunit. Don't set symtab->dirname,
209 instead set it in the compunit.
210 Explicitly make sure main symtab is first in its list.
211 Set debugformat, producer, blockvector, block_line_section, and
212 macrotable in the compunit.
213 (end_symtab_from_static_block): Change result to
214 "struct compunit_symtab *". All callers updated.
215 (end_symtab, end_expandable_symtab): Ditto.
216 (set_missing_symtab): Change symtab argument to
217 "struct compunit_symtab *". All callers updated.
218 (augment_type_symtab): Ditto.
219 (record_debugformat): Update to use buildsym_compunit.
220 (record_producer): Update to use buildsym_compunit.
221 * buildsym.h (struct subfile) <dirname>: Delete.
222 <producer, debugformat>: Delete.
223 <buildsym_compunit>: New member.
224 (get_compunit_symtab): Declare.
225 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
226 from primary_symtab. Change type to "struct compunit_symtab *".
228 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
230 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
231 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
232 symtab. Change type to "struct compunit_symtab *". All uses updated.
233 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
235 (dw2_find_last_source_symtab): Ditto.
236 (dw2_lookup_symbol): Ditto.
237 (recursively_find_pc_sect_compunit_symtab): Renamed from
238 recursively_find_pc_sect_symtab. Change result to
239 "struct compunit_symtab *". All callers updated.
240 (dw2_find_pc_sect_compunit_symtab): Renamed from
241 dw2_find_pc_sect_symtab. Change result to
242 "struct compunit_symtab *". All callers updated.
243 (get_compunit_symtab): Renamed from get_symtab. Change result to
244 "struct compunit_symtab *". All callers updated.
245 (recursively_compute_inclusions): Change type of immediate_parent
246 argument to "struct compunit_symtab *". All callers updated.
247 (compute_compunit_symtab_includes): Renamed from
248 compute_symtab_includes. All callers updated. Rewrite to compute
249 includes of compunit_symtabs and not symtabs.
250 (process_full_comp_unit): Update to work with struct compunit_symtab.
251 (process_full_type_unit): Ditto.
252 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
253 (dwarf_decode_lines): Remove special case handling of main subfile.
254 (macro_start_file): Delete argument comp_dir. All callers updated.
255 (dwarf_decode_macro_bytes): Ditto.
256 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
257 use struct compunit_symtab.
258 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
259 * jit.c (finalize_symtab): Build compunit_symtab.
260 * jv-lang.c (get_java_class_symtab): Change result to
261 "struct compunit_symtab *". All callers updated.
262 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
263 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
264 comp_dir. Change type to "struct compunit_symtab *".
266 (new_macro_table): Change comp_dir argument to cust,
267 "struct compunit_symtab *". All callers updated.
268 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
269 nr_primary_symtabs. All uses updated.
270 (count_symtabs_and_blocks): Update to handle compunits.
271 (report_command_stats): Update output, "primary symtabs" renamed to
273 * mdebugread.c (new_symtab): Change result to
274 "struct compunit_symtab *". All callers updated.
275 (parse_procedure): Change type of search_symtab argument to
276 "struct compunit_symtab *". All callers updated.
277 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
279 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
280 symtabs. Change type to "struct compunit_symtab *". All uses updated.
281 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
283 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
285 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
286 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
287 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
288 symtab. Change type to "struct compunit_symtab *". All uses updated.
289 * psymtab.c (psymtab_to_symtab): Change result type to
290 "struct compunit_symtab *". All callers updated.
291 (find_pc_sect_compunit_symtab_from_partial): Renamed from
292 find_pc_sect_symtab_from_partial. Change result type to
293 "struct compunit_symtab *". All callers updated.
294 (lookup_symbol_aux_psymtabs): Change result type to
295 "struct compunit_symtab *". All callers updated.
296 (find_last_source_symtab_from_partial): Ditto.
297 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
298 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
299 and macro_table from compunit.
300 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
301 type to "struct compunit_symtab *". All callers updated.
302 (debug_qf_lookup_symbol): Ditto.
303 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
304 debug_qf_find_pc_sect_symtab, change result type to
305 "struct compunit_symtab *". All callers updated.
306 * symfile.c (allocate_symtab): Delete objfile argument.
308 (allocate_compunit_symtab): New function.
309 (add_compunit_symtab_to_objfile): New function.
310 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
311 Change result type to "struct compunit_symtab *". All uses updated.
312 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
313 Change result type to "struct compunit_symtab *". All uses updated.
314 * symmisc.c (print_objfile_statistics): Compute blockvector count in
316 (dump_symtab_1): Update test for primary source symtab.
317 (maintenance_info_symtabs): Update to handle compunit symtabs.
318 (maintenance_check_symtabs): Ditto.
319 * symtab.c (set_primary_symtab): Delete.
320 (compunit_primary_filetab): New function.
321 (compunit_language): New function.
322 (iterate_over_some_symtabs): Change type of arguments "first",
323 "after_last" to "struct compunit_symtab *". All callers updated.
324 Update to loop over symtabs in each compunit.
325 (error_in_psymtab_expansion): Rename symtab argument to cust,
326 and change type to "struct compunit_symtab *". All callers updated.
327 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
328 Change result type to "struct compunit_symtab *". All callers updated.
329 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
330 Change result type to "struct compunit_symtab *". All callers updated.
331 (find_pc_sect_line): Only loop over symtabs within selected compunit
332 instead of all symtabs in the objfile.
333 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
334 <compunit_symtab> New member.
335 <block_line_section>: Moved to compunit_symtab.
336 <locations_valid>: Ditto.
337 <epilogue_unwind_valid>: Ditto.
338 <macro_table>: Ditto.
340 <debugformat>: Ditto.
343 <call_site_htab>: Ditto.
347 (SYMTAB_COMPUNIT): New macro.
348 (SYMTAB_BLOCKVECTOR): Update definition.
349 (SYMTAB_OBJFILE): Update definition.
350 (SYMTAB_DIRNAME): Update definition.
351 (struct compunit_symtab): New type. Common members among all source
352 symtabs within a compilation unit moved here. All uses updated.
353 (COMPUNIT_OBJFILE): New macro.
354 (COMPUNIT_FILETABS): New macro.
355 (COMPUNIT_DEBUGFORMAT): New macro.
356 (COMPUNIT_PRODUCER): New macro.
357 (COMPUNIT_DIRNAME): New macro.
358 (COMPUNIT_BLOCKVECTOR): New macro.
359 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
360 (COMPUNIT_LOCATIONS_VALID): New macro.
361 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
362 (COMPUNIT_CALL_SITE_HTAB): New macro.
363 (COMPUNIT_MACRO_TABLE): New macro.
364 (ALL_COMPUNIT_FILETABS): New macro.
365 (compunit_symtab_ptr): New typedef.
366 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
368 2014-11-20 Joel Brobecker <brobecker@adacore.com>
370 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
371 if the TYPE_CODE of range_type's base type does not match
372 the TYPE_CODE of encoding_type's base type.
374 2014-11-19 Joel Brobecker <brobecker@adacore.com>
376 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
379 2014-11-19 Joel Brobecker <brobecker@adacore.com>
381 * ada-lang.c (ada_is_redundant_range_encoding): New function.
382 (ada_is_redundant_index_type_desc): New function.
383 (to_fixed_array_type): Ignore parallel XA type if redundant.
385 2014-11-19 Joel Brobecker <brobecker@adacore.com>
387 * ada-lang.c (constrained_packed_array_type): Set the length
388 of the return array as if both bounds where zero if that
389 returned array's index type is dynamic.
391 2014-11-19 Yao Qi <yao@codesourcery.com>
393 * config/i386/go32.mh (CC): Remove.
395 2014-11-18 Doug Evans <xdje42@gmail.com>
397 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
400 2014-11-18 Doug Evans <xdje42@gmail.com>
402 * buildsym.c (buildsym_objfile): New static global.
403 (buildsym_comp_dir): New static global.
404 (finish_block_internal): Delete arg objfile. All callers updated.
405 (finish_block): Delete arg objfile. All callers updated.
406 (start_subfile): Delete arg dirname. All callers updated.
407 (patch_subfile_names): Update buildsym_comp_dir.
408 (get_macro_table): Delete arg objfile. All callers updated.
409 (start_symtab): New arg objfile. All callers updated.
410 Rename arg dirname to comp_dir.
411 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
412 (end_symtab_get_static_block): Delete arg objfile. All callers
414 (end_symtab_without_blockvector): Ditto.
415 (end_symtab_with_blockvector): Ditto.
416 (end_symtab_from_static_block): Ditto.
418 (end_expandable_symtab): Ditto.
419 (augment_type_symtab): Ditto.
420 * coffread.c (coff_start_symtab): New arg objfile. All callers
423 2014-11-18 Doug Evans <xdje42@gmail.com>
425 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
428 2014-11-18 Doug Evans <xdje42@gmail.com>
430 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
431 symtab.dirname updated to use it.
433 2014-11-18 Doug Evans <xdje42@gmail.com>
435 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
436 symtab.objfile updated to use it.
438 2014-11-18 Doug Evans <xdje42@gmail.com>
440 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
442 2014-11-18 Doug Evans <xdje42@gmail.com>
444 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
446 * findvar.c (default_read_var_value): Ditto.
447 * jv-lang.c (add_class_symtab_symbol): Ditto.
448 * parse.c (operator_check_standard): Ditto.
449 * printcmd.c (address_info): Ditto.
450 * symtab.c (fixup_symbol_section): Ditto.
451 (skip_prologue_sal): Ditto.
452 * tracepoint.c (scope_info): Ditto.
453 * valops.c (find_function_in_inferior): Ditto.
454 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
455 * python/py-symbol.c (set_symbol): Ditto.
457 2014-11-18 Doug Evans <xdje42@gmail.com>
459 * buildsym.c (main_subfile): New static global.
460 (free_subfiles_list): New function.
461 (start_symtab): Set main_subfile.
462 (restart_symtab): Replace init of subfiles, current_subfile with
463 call to free_subfiles_list.
464 (watch_main_source_file_lossage): Use main_subfile.
465 (reset_symtab_globals): Replace init of current_subfile with call
466 to free_subfiles_list.
467 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
468 functions, split out from ...
469 (end_symtab_from_static_block): ... here. Rewrite to call them.
471 2014-11-18 Doug Evans <xdje42@gmail.com>
473 The result of symtab expansion is always a primary symtab.
474 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
475 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
476 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
477 (psymtab_to_symtab): Add comment and assert.
478 (map_matching_symbols_psymtab): Remove unnecessary test for
481 2014-11-15 Doug Evans <xdje42@gmail.com>
484 * symtab.c (find_pc_line_symtab): New function.
485 * symtab.h (find_pc_line_symtab): Declare.
486 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
488 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
489 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
490 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
491 * tui/tui-win.c (make_visible_with_new_height): Ditto.
492 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
493 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
495 2014-11-15 Doug Evans <xdje42@gmail.com>
497 * symtab.c (expand_symtab_containing_pc): Renamed from
498 find_pc_sect_symtab_via_partial. All callers updated.
500 2014-11-15 Yao Qi <yao@codesourcery.com>
502 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
504 2014-11-14 Joel Brobecker <brobecker@adacore.com>
506 * common/common-defs.h: Move <stdarg.h> #include ahead of
509 2014-11-14 Pedro Alves <palves@redhat.com>
511 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
512 [!PHONY_ICONV] (gdb_iconv): New function.
513 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
515 2014-11-13 Doug Evans <dje@google.com>
518 * dwarf2read.c (find_slot_in_mapped_hash): Handle
519 "(anonymous namespace)".
521 2014-11-13 Doug Evans <dje@google.com>
523 * dwarf2read.c (update_enumeration_type_from_children): Avoid
526 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
528 * NEWS (maint set target-async): Fix typo.
530 2014-11-12 Pedro Alves <palves@redhat.com>
532 * infrun.c (enum infwait_states, infwait_state): Delete.
534 2014-11-12 Pedro Alves <palves@redhat.com>
536 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
537 Rewrite stepping over a permanent breakpoint.
538 (thread_still_needs_step_over, proceed): Don't set
539 stepping_over_breakpoint for permanent breakpoints.
540 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
541 single-step breakpoints out of the target on hardware step
543 (process_event_stop_test): If stepping a permanent breakpoint
544 doesn't hit the step-resume breakpoint, delete the step-resume
546 (switch_back_to_stepped_thread): Also check if the stepped thread
547 has advanced already on hardware step targets.
548 (currently_stepping): Return true if the thread stepped a
551 2014-11-12 Pedro Alves <palves@redhat.com>
553 Mark locations as permanent, not the whole breakpoint.
554 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
555 (mark_breakpoints_out): Don't mark permanent breakpoints as
557 (breakpoint_init_inferior): Use mark_breakpoints_out.
558 (breakpoint_here_p): Adjust.
559 (bpstat_stop_status, describe_other_breakpoints): Remove handling
560 of permanent breakpoints.
561 (make_breakpoint_permanent): Mark each location as permanent,
562 instead of marking the breakpoint.
563 (add_location_to_breakpoint): If the location is permanent, mark
564 it as such, and as inserted.
565 (init_breakpoint_sal): Don't make the breakpoint permanent here.
566 (bp_location_compare, update_global_location_list): Adjust.
567 (update_breakpoint_locations): Don't make the breakpoint permanent
569 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
571 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
572 (struct bp_location) <permanent>: New field.
573 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
574 reference to bp_permanent.
576 2014-11-12 Pedro Alves <palves@redhat.com>
578 * arch-utils.c (default_skip_permanent_breakpoint): New function.
579 * arch-utils.h (default_skip_permanent_breakpoint): New
581 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
582 Install default_skip_permanent_breakpoint as default method.
583 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
584 (i386_gdbarch_init): Don't install it.
585 * infrun.c (resume): Assume there's always a
586 gdbarch_skip_permanent_breakpoint implementation.
587 * gdbarch.h, gdbarch.c: Regenerate.
589 2014-11-11 Daniel Colascione <dancol@dancol.org>
591 Warn about cross-PID-namespace debugging.
592 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
593 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
594 * linux-thread-db.c (check_pid_namespace_match): New function.
595 (thread_db_inferior_created): Call it.
597 2014-11-10 Doug Evans <xdje42@gmail.com>
599 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
600 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
602 2014-11-10 Doug Evans <xdje42@gmail.com>
604 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
606 2014-11-10 Doug Evans <xdje42@gmail.com>
609 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
610 (lookup_static_symbol): Move definition to new location and rewrite.
611 (lookup_symbol_in_objfile): New function.
612 (lookup_symbol_global_iterator_cb): Call it.
614 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
616 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
618 2014-11-07 Pedro Alves <palves@redhat.com>
620 * infrun.c (process_event_stop_test) <subroutine check>: Don't
621 check if we did a "nexti" inside a prologue.
622 * symtab.c (in_prologue): Delete function.
623 * symtab.h (in_prologue): Delete declaration.
625 2014-11-06 Doug Evans <xdje42@gmail.com>
627 * symtab.h (lookup_global_symbol): Improve function comment.
629 2014-11-06 Doug Evans <xdje42@gmail.com>
631 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
633 * symtab.h (lookup_global_symbol): Update decl.
634 (lookup_static_symbol): Move decl to better location.
636 2014-11-06 Doug Evans <xdje42@gmail.com>
638 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
640 2014-11-06 Doug Evans <xdje42@gmail.com>
642 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
644 (lookup_symbol_in_all_objfiles): Renamed from
645 lookup_symbol_aux_symtabs. All callers updated.
646 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
648 (lookup_symbol_in_objfile_symtabs): Renamed from
649 lookup_symbol_aux_objfile. All callers updated.
651 2014-11-06 Doug Evans <xdje42@gmail.com>
653 * symtab.c (lookup_symbol_in_block): Renamed from
654 lookup_symbol_aux_block. All callers updated.
656 2014-11-06 Doug Evans <xdje42@gmail.com>
658 * symtab.c (lookup_static_symbol): Renamed from
659 lookup_static_symbol_aux. All callers updated.
660 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
663 2014-11-06 Doug Evans <xdje42@gmail.com>
665 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
666 * block.c (block_lookup_symbol): Use it.
667 * cp-support.c (make_symbol_overload_list_block): Use it.
668 * symtab.c (iterate_over_symbols): Use it.
670 2014-11-06 Doug Evans <xdje42@gmail.com>
672 * symtab.c (lookup_block_symbol): Moved to ...
673 * block.c (block_lookup_symbol): ... here and renamed.
675 * block.h (block_lookup_symbol): Declare.
676 * symtab.h (lookup_block_symbol): Delete.
678 2014-11-06 Doug Evans <xdje42@gmail.com>
680 * ada-lang.c (ada_make_symbol_completion_list): Use
681 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
682 * symtab.c (lookup_objfile_from_block): Ditto.
684 2014-11-06 Doug Evans <xdje42@gmail.com>
686 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
689 2014-11-06 Doug Evans <xdje42@gmail.com>
691 * objfiles.c (get_objfile_arch): Constify.
692 * objfiles.h (get_objfile_arch): Update prototype.
693 * solib.c (solib_global_lookup): Fetch arch from objfile,
696 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
698 * nios2-tdep.c (wild_insn): Delete.
699 (profiler_insn, irqentry_insn): Delete.
700 (nios2_match_sequence): Delete.
701 (nios2_analyze_prologue): Update comments. Remove matching
702 of obsolete profiler_insn and irqentry_insn sequences.
704 2014-11-05 Alan Modra <amodra@gmail.com>
706 * charset.c (convert_between_encodings): Shrink obstack using
708 * minsyms.c (install_minimal_symbols): Likewise.
709 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
710 to char* before doing pointer arithmetic.
712 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
714 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
716 2014-11-04 Pedro Alves <palves@redhat.com>
718 * breakpoint.c (breakpoint_thread_match): Delete function.
719 * breakpoint.h (breakpoint_thread_match): Delete declaration.
721 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
724 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
725 the method args also under EVAL_SKIP when evaluating method
726 calls under EVAL_SKIP.
728 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
730 * dwarf2loc.c (read_pieced_value): Do big endian
731 processing only if gdb_regnum is not -1.
732 (write_pieced_value): Ditto.
734 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
736 * arm-linux-tdep.c (arm_linux_init_abi): Use
737 info.byte_order_for_code to choose endianity of breakpoint
738 instructions snippets.
740 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
742 * arm-tdep.c (extract_arm_insn): Use
743 gdbarch_byte_order_for_code to read arm instruction.
745 2014-11-02 Doug Evans <xdje42@gmail.com>
747 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
749 2014-11-02 Doug Evans <xdje42@gmail.com>
751 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
752 main_subfile before returning.
754 2014-10-31 Doug Evans <xdje42@gmail.com>
756 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
757 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
759 2014-10-31 Doug Evans <xdje42@gmail.com>
761 * valops.c (value_cast_pointers): Fix whitespace.
762 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
765 2014-10-30 Doug Evans <dje@google.com>
767 * NEWS: Mention ability add attributes to gdb.Objfile and
768 gdb.Progspace objects.
769 * python/py-objfile.c (objfile_object): New member dict.
770 (objfpy_dealloc): Py_XDECREF dict.
771 (objfpy_initialize): Initialize dict.
772 (objfile_getset): Add __dict__.
773 (objfile_object_type): Set tp_dictoffset member.
774 * python/py-progspace.c (progspace_object): New member dict.
775 (pspy_dealloc): Py_XDECREF dict.
776 (pspy_initialize): Initialize dict.
777 (pspace_getset): Add __dict__.
778 (pspace_object_type): Set tp_dictoffset member.
780 2014-10-30 Yao Qi <yao@codesourcery.com>
782 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
783 replace '\\' with '\\\\'.
785 2014-10-29 Joel Brobecker <brobecker@adacore.com>
789 2014-10-29 Pedro Alves <palves@redhat.com>
792 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
793 instead of assuming a thread with a stepping range is always
796 2014-10-29 Pedro Alves <palves@redhat.com>
799 * event-top.c (change_line_handler): Call
800 gdb_rl_callback_handler_remove instead of
801 rl_callback_handler_remove.
802 (callback_handler_installed): New global.
803 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
804 (gdb_rl_callback_handler_reinstall): New functions.
805 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
806 gdb_rl_callback_handler_install instead of
807 rl_callback_handler_remove and rl_callback_handler_install.
808 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
809 instead of rl_callback_handler_remove.
810 * event-top.h (gdb_rl_callback_handler_remove)
811 (gdb_rl_callback_handler_install)
812 (gdb_rl_callback_handler_reinstall): New declarations.
813 * infrun.c (reinstall_readline_callback_handler_cleanup): New
815 (fetch_inferior_event): Install it.
816 * top.c (gdb_readline_wrapper_line) Call
817 gdb_rl_callback_handler_remove instead of
818 rl_callback_handler_remove.
819 (gdb_readline_wrapper_cleanup): Don't call
820 rl_callback_handler_install.
822 2014-10-29 Pedro Alves <palves@redhat.com>
824 * event-top.c (command_line_handler): Clear the first byte of
825 linebuffer, when it is first allocated.
827 2014-10-29 Pedro Alves <palves@redhat.com>
829 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
832 2014-10-29 Pedro Alves <palves@redhat.com>
836 * tui/tui-interp.c (tui_is_toplevel): Delete global.
837 (tui_allowed_p): Delete function.
838 * tui/tui.c: Include "interps.h".
839 (tui_enable): Don't use tui_allowed_p. Error out here with
840 detailed error messages if the TUI is the top level interpreter,
841 or if output is not a terminal. Use newterm instead of initscr,
842 and error out if initializing the terminal fails. Also error out if
843 the terminal doesn't support cursor addressing.
844 * tui/tui.h (tui_allowed_p): Delete declaration.
846 2014-10-29 Joel Brobecker <brobecker@adacore.com>
848 * arm-tdep.c (arm_skip_stack_protector): Return early if
849 address loaded by first "ldr" instruction does not have
850 a corresponding minimal symbol. Update comment.
852 2014-10-29 Yao Qi <yao@codesourcery.com>
854 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
855 loaded address correctly of ldr instruction.
857 2014-10-28 Pedro Alves <palves@redhat.com>
860 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
862 * infrun.c (resume) <stepping breakpoint instruction>: Set the
863 thread's stepped_breakpoint field. Skip if reverse debugging.
865 (init_thread_stepping_state, handle_signal_stop): Clear the
866 thread's stepped_breakpoint field.
868 2014-10-27 Pedro Alves <palves@redhat.com>
870 * remote.c (remote_thread_alive): New, factored out from ...
871 (remote_thread_alive): ... this.
872 (remote_update_thread_list): Bail out before deleting threads if
873 the target returned an empty list, and, the current thread has a
876 2014-10-27 Pedro Alves <palves@redhat.com>
878 * infrun.c (handle_signal_stop): Also skip handlers when a random
879 signal arrives while handling a "stepi" or a "nexti". Set the
880 thread's 'step_after_step_resume_breakpoint' flag.
882 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
884 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
885 (arm_record_ld_st_imm_offset): Reimplement to cover all
886 load/store cases for ARM opcode 010.
887 (arm_record_ld_st_multiple): Reimplement to cover all
888 load/store cases for ARM opcode 100.
890 2014-10-26 Doug Evans <xdje42@gmail.com>
892 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
894 2014-10-26 Doug Evans <xdje42@gmail.com>
896 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
897 parameter "kind" to "block_index".
898 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
900 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
902 2014-10-26 Doug Evans <xdje42@gmail.com>
904 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
906 2014-10-26 Doug Evans <xdje42@gmail.com>
908 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
911 2014-10-26 Doug Evans <xdje42@gmail.com>
913 * parser-defs.h (block_found): Move decl from here ...
914 * symtab.h (block_found): ... to here.
916 2014-10-26 Doug Evans <xdje42@gmail.com>
918 * symtab.h (struct field_of_this_result): Fix typo in comment.
919 (lookup_symbol_in_language): Move function comment here.
920 (lookup_symbol): Improve function comment.
921 (basic_lookup_symbol_nonlocal): Ditto.
922 (lookup_symbol_static, lookup_symbol_global): Ditto.
923 (lookup_symbol_aux_block): Ditto.
924 (lookup_language_this): Add function comment.
925 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
927 (lookup_block_symbol): Improve function comment.
928 (lookup_struct): Fix capitalization in function comment.
929 (lookup_transparent_type): Add function comment.
930 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
931 Improve function comment.
932 (lookup_objfile_from_block): Add function comment.
933 * symtab.c (lookup_symbol_in_language): Update function comment.
934 (lookup_symbol, lookup_language_this): Ditto.
935 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
936 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
937 (basic_lookup_symbol_nonlocal): Ditto.
938 (lookup_symbol_static, lookup_symbol_global): Ditto.
939 (lookup_transparent_type, lookup_block_symbol): Ditto.
941 2014-10-25 Doug Evans <xdje42@gmail.com>
943 * symtab.c (types_info): Delete forward decl.
944 (functions_info, variables_info, sources_info): Ditto.
945 (_initialize_symtab): Rewrite forward decl to use
946 initialize_file_ftype.
948 2014-10-25 Doug Evans <xdje42@gmail.com>
950 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
952 2014-10-25 Doug Evans <xdje42@gmail.com>
954 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
955 of local var child_die.
957 2014-10-24 Don Breazeal <donb@codesourcery.com>
959 * infrun.c (follow_fork_inferior): Update fork message printing
960 to use target_terminal_ours_for_output instead of
961 target_terminal_ours, to use _() for all format strings, to print
962 "vfork" instead of "fork" for vforks, and to add a detach message.
963 (handle_vfork_child_exec_or_exit): Update message printing to use
964 target_terminal_ours_for_output instead of target_terminal_ours, to
965 use _() for all format strings, and to fix some formatting.
967 2014-10-24 Pedro Alves <palves@redhat.com>
969 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
970 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
971 * config/vax/vax.mh: Delete.
972 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
973 obsolete configurations section.
974 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
975 * vax-nat.c: Delete file.
977 2014-10-24 Pedro Alves <palves@redhat.com>
979 * NEWS (Removed targets): Add OS/arch column.
981 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
983 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
984 on the arg type of a constructor only if it is of reference type.
986 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
988 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
989 accessors and constants from nios2 opcodes update.
990 (nios2_get_next_pc): Likewise.
992 2014-10-19 Doug Evans <xdje42@gmail.com>
994 * gdbthread.h (set_running): Fix comment.
995 (set_executing, finish_thread_state): Fix comment.
997 2014-10-18 Doug Evans <xdje42@gmail.com>
999 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1001 2014-10-17 Doug Evans <dje@google.com>
1003 * NEWS: Mention new event gdb.clear_objfiles.
1004 * python/py-event.h (emit_clear_objfiles_event): Clear
1005 * python/py-events.h (events_object): New member clear_objfiles.
1006 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1008 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1009 emit clear_objfiles event.
1010 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1012 (emit_clear_objfiles_event): New function.
1013 (clear_objfiles): New event.
1014 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1016 * python/python.c (_initialize_python): Call
1017 gdbpy_initialize_clear_objfiles_event.
1019 2014-10-17 Doug Evans <dje@google.com>
1021 * NEWS: Mention new gdb.Objfile.progspace attribute.
1022 * python/py-objfile.c (objfpy_get_progspace): New function.
1023 (objfile_getset): New entry for "progspace".
1025 2014-10-17 Pedro Alves <palves@redhat.com>
1028 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1029 returns a copy of the input.
1030 (run_command_1, continue_command, step_1, jump_command)
1031 (signal_command, until_command, advance_command, finish_command)
1032 (attach_command): Adjust and install a cleanup to free the
1035 2014-10-17 Pedro Alves <palves@redhat.com>
1038 * infcmd.c (continue_1): If continuing all threads in the
1039 foreground, make sure the inferior's terminal settings are put in
1042 2014-10-17 Pedro Alves <palves@redhat.com>
1045 * annotate.c (annotate_breakpoints_invalid): Use
1046 target_terminal_our_for_output instead of target_terminal_ours.
1047 Give back the terminal to the target.
1048 (annotate_frames_invalid): Likewise.
1050 2014-10-17 Pedro Alves <palves@redhat.com>
1052 * target.c (enum terminal_state): New enum.
1053 (terminal_state): New global.
1054 (target_terminal_init): New function.
1055 (target_terminal_inferior): Skip if inferior already owns the
1057 (target_terminal_ours, target_terminal_ours_for_output): New
1059 * target.h (target_terminal_init): Convert to function prototype.
1060 (target_terminal_ours_for_output): Convert to function prototype
1062 (target_terminal_ours): Convert to function prototype and tweak
1064 * windows-nat.c (do_initial_windows_stuff): Call
1065 target_terminal_init instead of child_terminal_init_with_pgrp.
1067 2014-10-17 Pedro Alves <palves@redhat.com>
1069 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1070 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1071 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1073 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1074 * ada-lang.h [__alpha__ && __osf__]
1075 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1076 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1077 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1079 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1081 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1082 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1083 * configure: Regenerate.
1084 * configure.ac: Remove references to osf.
1085 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1086 section. Remove all other references to osf.
1087 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1088 Remove all other references to osf.
1089 * dec-thread.c: Delete file.
1090 * defs.h (GDB_OSABI_OSF1): Delete.
1091 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1093 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1094 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1096 (unconditionally_kill_inferior)
1097 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1098 * solib-osf.c: Delete file.
1100 2014-10-17 Pedro Alves <palves@redhat.com>
1102 * remote.c (clear_threads_listing_context): Move higher up, out of
1103 the HAVE_LIBEXPAT guard.
1105 2014-10-16 Tristan Gingold <gingold@adacore.com>
1107 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1108 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1111 2014-10-15 Pedro Alves <palves@redhat.com>
1113 * dec-thread.c (dec_thread_count_gdb_threads)
1114 (dec_thread_add_gdb_thread): Delete.
1115 (dec_thread_update_thread_list): Delete.
1116 (dec_thread_find_new_threads): Rename to ...
1117 (dec_thread_update_thread_list): ... this. Delete GDB-size
1118 threads that are no longer found in dec_thread_list.
1119 (resync_thread_list): Delete.
1120 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1123 2014-10-15 Pedro Alves <palves@redhat.com>
1125 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1126 * remote.c (remote_update_thread_list): Skip calling prune_threads
1127 if any thread listing method is supported, and instead walk over
1128 the set of remote threads listed, deleting those that are not
1129 found in GDB's thread list.
1131 2014-10-15 Pedro Alves <palves@redhat.com>
1133 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1134 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1135 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1136 (bsd_uthread_target): Adjust.
1137 * corelow.c (core_open): Adjust.
1138 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1139 (dec_thread_update_thread_list): New function.
1140 (init_dec_thread_ops): Adjust.
1141 * gdbthread.h (prune_threads): New declaration.
1142 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1143 (thread_db_update_thread_list): ... this. Call prune_threads.
1144 (init_thread_db_ops): Adjust.
1145 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1146 (procfs_update_thread_list): ... this. Call prune_threads.
1147 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1149 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1150 (obsd_update_thread_list): ... this. Call prune_threads.
1151 (obsd_add_target): Adjust.
1152 * procfs.c (procfs_target): Adjust.
1153 (procfs_notice_thread): Update comment.
1154 (procfs_find_new_threads): Rename to ...
1155 (procfs_update_thread_list): ... this. Call prune_threads.
1156 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1158 (ravenscar_wait): Adjust.
1159 (ravenscar_find_new_threads): Rename to ...
1160 (ravenscar_update_thread_list): ... this. Call prune_threads.
1161 (init_ravenscar_thread_ops): Adjust.
1162 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1163 (record_btrace_update_thread_list): ... this. Adjust comment.
1164 (init_record_btrace_ops): Adjust.
1165 * remote.c (remote_threads_info): Rename to ...
1166 (remote_update_thread_list): ... this. Call prune_threads.
1167 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1169 * sol-thread.c (check_for_thread_db): Adjust.
1170 (sol_find_new_threads_callback): Rename to ...
1171 (sol_update_thread_list_callback): ... this.
1172 (sol_find_new_threads): Rename to ...
1173 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1174 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1175 * target-delegates.c: Regenerate.
1176 * target.c (target_find_new_threads): Rename to ...
1177 (target_update_thread_list): ... this.
1178 * target.h (struct target_ops): Rename to_find_new_threads field
1179 to to_update_thread_list.
1180 (target_find_new_threads): Rename to ...
1181 (target_update_thread_list): ... this.
1182 * thread.c (prune_threads): Make extern.
1183 (update_thread_list): Adjust.
1185 2014-10-15 Pedro Alves <palves@redhat.com>
1187 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1188 Add describing comment. Return -1 if the qL packet is not
1190 (struct thread_item, thread_item_t): Move higher up in
1191 the file. Add comments.
1192 (struct threads_parsing_context): Move higher up in
1193 the file, add comments, and remote to ...
1194 (struct threads_listing_context): ... this.
1195 (remote_newthread_step): Don't add the thread to GDB's thread
1196 database here. Instead push it to the thread_listing_context
1198 (remote_find_new_threads): Rename to ...
1199 (remote_get_threads_with_ql): ... this. Add target_ops and
1200 targets_listing_context parameters. Pass down context.
1201 (start_thread): Adjust.
1202 (clear_threads_parsing_context): Rename to ...
1203 (clear_threads_listing_context): ... this.
1204 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1205 remote_threads_info.
1206 (remote_get_threads_with_qthreadinfo): Ditto.
1207 (remote_threads_info): Reimplement.
1209 2014-10-15 Pedro Alves <palves@redhat.com>
1211 * infrun.c (resume): Don't force displaced-stepping for all
1212 single-steps on software single-stepping archs.
1214 2014-10-15 Pedro Alves <palves@redhat.com>
1216 * breakpoint.c (single_step_breakpoints): Delete global.
1217 (insert_single_step_breakpoint): Adjust to store the breakpoint
1218 pointer in the current thread.
1219 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1220 (cancel_single_step_breakpoints): Delete functions.
1221 (breakpoint_has_location_inserted_here): Make extern.
1222 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1224 * breakpoint.h (breakpoint_has_location_inserted_here): New
1226 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1227 (cancel_single_step_breakpoints): Remove declarations.
1228 * gdbthread.h (struct thread_control_state)
1229 <single_step_breakpoints>: New field.
1230 (delete_single_step_breakpoints)
1231 (thread_has_single_step_breakpoints_set)
1232 (thread_has_single_step_breakpoint_here): New declarations.
1233 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1234 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1235 (singlestep_pc): Delete globals.
1236 (infrun_thread_ptid_changed): Remove references to removed
1238 (resume_cleanups): Delete the current thread's single-step
1240 (maybe_software_singlestep): Remove references to removed globals.
1241 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1242 delete_single_step_breakpoints.
1243 (init_wait_for_inferior): Remove references to removed globals.
1244 (delete_thread_infrun_breakpoints): Delete the thread's
1245 single-step breakpoints too.
1246 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1247 single-step breakpoints here.
1248 (delete_stopped_threads_single_step_breakpoints): New function.
1249 (adjust_pc_after_break): Adjust to use
1250 thread_has_single_step_breakpoints_set.
1251 (handle_inferior_event): Remove references to removed globals.
1252 Use delete_stopped_threads_single_step_breakpoints.
1253 (handle_signal_stop): Adjust to per-thread single-step
1254 breakpoints. Swap test order to do cheaper tests first.
1255 (switch_back_to_stepped_thread): Extend debug output. Remove
1256 references to removed globals.
1257 * record-full.c (record_full_wait_1): Adjust to per-thread
1258 single-step breakpoints.
1259 * thread.c (delete_single_step_breakpoints)
1260 (thread_has_single_step_breakpoints_set)
1261 (thread_has_single_step_breakpoint_here): New functions.
1262 (clear_thread_inferior_resources): Also delete the thread's
1263 single-step breakpoints.
1265 2014-10-15 Pedro Alves <palves@redhat.com>
1267 * thread.c (delete_thread_breakpoint): New function.
1268 (delete_step_resume_breakpoint)
1269 (delete_exception_resume_breakpoint): Use it.
1270 (delete_at_next_stop): New function.
1271 (clear_thread_inferior_resources): Use delete_at_next_stop.
1273 2014-10-15 Pedro Alves <palves@redhat.com>
1275 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1276 (breakpoint_inserted_here_p): ... here. Remove special case for
1277 software single-step breakpoints.
1278 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1279 (software_breakpoint_inserted_here_p): ... here. Remove special
1280 case for software single-step breakpoints.
1281 (bp_target_info_copy_insertion_state)
1282 (deprecated_insert_raw_breakpoint)
1283 (deprecated_remove_raw_breakpoint): Delete functions.
1284 * breakpoint.h (deprecated_insert_raw_breakpoint)
1285 (deprecated_remove_raw_breakpoint): Remove declarations.
1287 2014-10-15 Pedro Alves <palves@redhat.com>
1290 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1291 Delete array globals.
1292 (single_step_breakpoints): New global.
1293 (breakpoint_xfer_memory): Remove special handling for single-step
1295 (update_breakpoints_after_exec): Delete bp_single_step
1297 (detach_breakpoints): Remove special handling for single-step
1299 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1300 (bpstat_stop_status): Add comment.
1301 (bpstat_what, bptype_string, print_one_breakpoint_location)
1302 (adjust_breakpoint_address, init_bp_location): Handle
1304 (new_single_step_breakpoint): New function.
1305 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1306 handling for single-step breakpoints.
1307 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1308 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1310 (detach_single_step_breakpoints, find_single_step_breakpoint):
1312 (breakpoint_has_location_inserted_here): New function.
1313 (single_step_breakpoint_inserted_here_p): Rewrite.
1314 * breakpoint.h: Remove FIXME.
1315 (enum bptype) <bp_single_step>: New enum value.
1316 (insert_single_step_breakpoint): Update comment.
1317 * infrun.c (resume_cleanups)
1318 (delete_step_thread_step_resume_breakpoint): Remove single-step
1320 (fetch_inferior_event): Install a cleanup that removes infrun
1322 (switch_back_to_stepped_thread) <expect thread advanced also>:
1323 Clear step-over info.
1325 2014-10-15 Pedro Alves <palves@redhat.com>
1327 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1328 (delete_thread_infrun_breakpoints): New function, with parts
1329 salvaged from delete_step_resume_breakpoint_callback.
1330 (delete_step_thread_step_resume_breakpoint): Delete.
1331 (for_each_just_stopped_thread_callback_func): New typedef.
1332 (for_each_just_stopped_thread): New function.
1333 (delete_just_stopped_threads_infrun_breakpoints): New function.
1334 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1335 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1337 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1339 2014-10-15 Pedro Alves <palves@redhat.com>
1341 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1342 trying to step past a non-steppable watchpoint.
1343 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1345 * infrun.c (struct step_over_info): Add new field
1346 'nonsteppable_watchpoint_p' and adjust comments.
1347 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1349 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1350 (stepping_past_nonsteppable_watchpoint): New function.
1351 (step_over_info_valid_p): Also return true if stepping past a
1352 nonsteppable watchpoint.
1353 (proceed): Adjust call to set_step_over_info. Remove reference to
1355 (init_wait_for_inferior): Remove reference to init_infwait_state.
1356 (waiton_ptid): Delete global.
1357 (struct execution_control_state)
1358 <stepped_after_stopped_by_watchpoint>: Delete field.
1359 (wait_for_inferior, fetch_inferior_event): Always pass
1360 minus_one_ptid to target_wait.
1361 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1363 (init_infwait_state): Delete function.
1364 (handle_inferior_event): Remove infwait_state handling.
1365 (handle_signal_stop) <watchpoints handling>: Adjust after
1366 stepped_after_stopped_by_watchpoint removal. Don't remove
1367 breakpoints here nor set infwait_state. Set the thread's
1368 stepping_over_watchpoint flag, and call keep_going instead.
1369 (keep_going): Handle stepping_over_watchpoint. Adjust
1370 set_step_over_info calls.
1371 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1374 2014-10-15 Pedro Alves <palves@redhat.com>
1376 * infrun.c (step_over_info_valid_p): New function.
1377 (resume): Use step_over_info_valid_p instead of checking the
1378 threads's trap_expected flag.
1380 2014-10-15 Doug Evans <dje@google.com>
1381 Walfred Tedeschi <walfred.tedeschi@intel.com>
1384 * python/lib/gdb/__init__.py (packages): Add "printer".
1385 * python/lib/gdb/command/bound_registers.py: Moved to ...
1386 * python/lib/gdb/printer/bound_registers.py: ... here.
1387 Add printer to global set of builtin printers. Rename printer from
1388 "bound" to "mpx_bound128".
1389 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1390 registered as global "builtin" printer.
1391 (add_builtin_pretty_printer): New function.
1392 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1393 gdb/printer/__init__.py.
1395 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1397 * Makefile.in (SFILES): Remove d-support.c.
1398 (COMMON_OBS): Remove d-support.o.
1399 * d-lang.h (d_parse_symbol): Remove declaration.
1400 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1401 * d-support.c: Remove file.
1403 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1405 * gdb/infrun.c (process_event_stop_test): Apply
1406 gdbarch_addr_bits_remove to longjmp resume address.
1408 2014-10-15 Pedro Alves <palves@redhat.com>
1410 * regformats/microblaze.dat: Delete file.
1412 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1414 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1415 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1417 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1419 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1422 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1426 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1427 with qualified args.
1429 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1431 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1432 of the case where the second operand is a pointer.
1433 <BINOP_SUB>: Likewise.
1435 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1437 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1438 only if it is not NULL.
1439 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1440 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1441 (struct probe_ops) <clear_semaphore>: Likewise.
1442 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1444 (stop_tracing): Likewise, for clear_semaphore.
1446 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1448 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1449 using language_c, instead of current_language.
1451 2014-10-13 Doug Evans <dje@google.com>
1453 * python/py-objfile.c (objfpy_initialize): New function.
1454 (objfpy_new, objfile_to_objfile_object): Call it.
1455 * python/py-progspace.c (pspy_initialize): New function.
1456 (pspy_new, pspace_to_pspace_object): Call it.
1458 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1459 Jan Kratochvil <jan.kratochvil@redhat.com>
1461 Fix "save breakpoints" for "catch" command.
1462 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1465 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1467 Fix "save breakpoints" for "disable $bpnum" command.
1468 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1470 2014-10-10 Pedro Alves <palves@redhat.com>
1472 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1473 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1474 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1475 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1477 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1478 * configure.ac: Remove references to IRIX.
1479 * configure.host: Add *-*-irix* to the obsolete hosts section.
1480 Remove all other references to irix.
1481 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1484 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1486 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1487 isn't valid, release the tdesc arch data and return NULL.
1489 2014-10-10 Pedro Alves <palves@redhat.com>
1491 * linux-tdep.c: Include observer.h.
1492 (linux_inferior_data): New global.
1493 (struct linux_info): New structure.
1494 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1495 (get_linux_inferior_data): New functions.
1496 (linux_vsyscall_range): Rename to ...
1497 (linux_vsyscall_range_raw): ... this.
1498 (linux_vsyscall_range): New function; handles caching.
1499 (_initialize_linux_tdep): Register linux_inferior_data. Install
1500 inferior_exit and inferior_appeared observers.
1502 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1503 Pedro Alves <palves@redhat.com>
1506 * solib-svr4.c (svr4_read_so_list): Rename to ...
1507 (svr4_current_sos_1): ... this and change the function comment.
1508 (svr4_current_sos): New function.
1510 2014-10-10 Pedro Alves <palves@redhat.com>
1512 * arch-utils.c (default_vsyscall_range): New function.
1513 * arch-utils.h (default_vsyscall_range): New declaration.
1514 * gdbarch.sh (vsyscall_range): New hook.
1515 * gdbarch.h, gdbarch.c: Regenerate.
1516 * linux-tdep.c (linux_vsyscall_range): New function.
1517 (linux_init_abi): Install linux_vsyscall_range as
1518 vsyscall_range gdbarch hook.
1519 * memrange.c (address_in_mem_range): New function.
1520 * memrange.h (address_in_mem_range): New declaration.
1521 * symfile-mem.c (find_vdso_size): Delete function.
1522 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1524 2014-10-10 Pedro Alves <palves@redhat.com>
1526 * infrun.c (normal_stop): Fix typo in comment.
1528 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1531 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1532 typo when using logical AND to determine instruction type.
1534 2014-10-09 Yao Qi <yao@codesourcery.com>
1536 * infrun.c (handle_signal_stop): Remove local variable
1539 2014-10-08 Stan Shebs <stan@codesourcery.com>
1541 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1543 2014-10-08 Gary Benson <gbenson@redhat.com>
1545 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1547 2014-10-08 Gary Benson <gbenson@redhat.com>
1549 * common/common-defs.h: Include common-exceptions.h.
1550 * exceptions.h: Do not include common-exceptions.h.
1552 2014-10-08 Gary Benson <gbenson@redhat.com>
1554 * common/common-defs.h: Include cleanups.h.
1555 * common/common-exceptions.c: Do not include cleanups.h.
1556 * utils.h: Likewise.
1558 2014-10-08 Gary Benson <gbenson@redhat.com>
1560 * ada-lang.c: Do not include exceptions.h.
1561 * ada-valprint.c: Likewise.
1562 * amd64-tdep.c: Likewise.
1563 * auto-load.c: Likewise.
1564 * block.c: Likewise.
1565 * break-catch-throw.c: Likewise.
1566 * breakpoint.c: Likewise.
1567 * btrace.c: Likewise.
1568 * c-lang.c: Likewise.
1569 * cli/cli-cmds.c: Likewise.
1570 * cli/cli-interp.c: Likewise.
1571 * cli/cli-script.c: Likewise.
1572 * completer.c: Likewise.
1573 * corefile.c: Likewise.
1574 * corelow.c: Likewise.
1575 * cp-abi.c: Likewise.
1576 * cp-support.c: Likewise.
1577 * cp-valprint.c: Likewise.
1578 * darwin-nat.c: Likewise.
1579 * dwarf2-frame-tailcall.c: Likewise.
1580 * dwarf2-frame.c: Likewise.
1581 * dwarf2loc.c: Likewise.
1582 * dwarf2read.c: Likewise.
1584 * event-loop.c: Likewise.
1585 * event-top.c: Likewise.
1586 * f-valprint.c: Likewise.
1587 * frame-unwind.c: Likewise.
1588 * frame.c: Likewise.
1589 * gdbtypes.c: Likewise.
1590 * gnu-v2-abi.c: Likewise.
1591 * gnu-v3-abi.c: Likewise.
1592 * guile/scm-auto-load.c: Likewise.
1593 * guile/scm-breakpoint.c: Likewise.
1594 * guile/scm-cmd.c: Likewise.
1595 * guile/scm-frame.c: Likewise.
1596 * guile/scm-lazy-string.c: Likewise.
1597 * guile/scm-param.c: Likewise.
1598 * guile/scm-symbol.c: Likewise.
1599 * guile/scm-type.c: Likewise.
1600 * hppa-hpux-tdep.c: Likewise.
1601 * i386-tdep.c: Likewise.
1602 * inf-loop.c: Likewise.
1603 * infcall.c: Likewise.
1604 * infcmd.c: Likewise.
1605 * infrun.c: Likewise.
1606 * interps.c: Likewise.
1607 * interps.h: Likewise.
1609 * linespec.c: Likewise.
1610 * linux-nat.c: Likewise.
1611 * linux-thread-db.c: Likewise.
1612 * m32r-rom.c: Likewise.
1614 * memory-map.c: Likewise.
1615 * mi/mi-cmd-break.c: Likewise.
1616 * mi/mi-cmd-stack.c: Likewise.
1617 * mi/mi-interp.c: Likewise.
1618 * mi/mi-main.c: Likewise.
1619 * monitor.c: Likewise.
1620 * nto-procfs.c: Likewise.
1621 * objc-lang.c: Likewise.
1622 * p-valprint.c: Likewise.
1623 * parse.c: Likewise.
1624 * ppc-linux-tdep.c: Likewise.
1625 * printcmd.c: Likewise.
1626 * probe.c: Likewise.
1627 * python/py-auto-load.c: Likewise.
1628 * python/py-breakpoint.c: Likewise.
1629 * python/py-cmd.c: Likewise.
1630 * python/py-finishbreakpoint.c: Likewise.
1631 * python/py-frame.c: Likewise.
1632 * python/py-framefilter.c: Likewise.
1633 * python/py-function.c: Likewise.
1634 * python/py-gdb-readline.c: Likewise.
1635 * python/py-inferior.c: Likewise.
1636 * python/py-infthread.c: Likewise.
1637 * python/py-lazy-string.c: Likewise.
1638 * python/py-linetable.c: Likewise.
1639 * python/py-param.c: Likewise.
1640 * python/py-prettyprint.c: Likewise.
1641 * python/py-symbol.c: Likewise.
1642 * python/py-type.c: Likewise.
1643 * python/py-value.c: Likewise.
1644 * python/python-internal.h: Likewise.
1645 * python/python.c: Likewise.
1646 * record-btrace.c: Likewise.
1647 * record-full.c: Likewise.
1648 * regcache.c: Likewise.
1649 * remote-fileio.c: Likewise.
1650 * remote-mips.c: Likewise.
1651 * remote.c: Likewise.
1652 * rs6000-aix-tdep.c: Likewise.
1653 * rs6000-nat.c: Likewise.
1655 * solib-darwin.c: Likewise.
1656 * solib-dsbt.c: Likewise.
1657 * solib-frv.c: Likewise.
1658 * solib-ia64-hpux.c: Likewise.
1659 * solib-spu.c: Likewise.
1660 * solib-svr4.c: Likewise.
1661 * solib.c: Likewise.
1662 * spu-tdep.c: Likewise.
1663 * stack.c: Likewise.
1664 * stap-probe.c: Likewise.
1665 * symfile-mem.c: Likewise.
1666 * symmisc.c: Likewise.
1667 * target.c: Likewise.
1668 * thread.c: Likewise.
1670 * tracepoint.c: Likewise.
1671 * tui/tui-interp.c: Likewise.
1672 * typeprint.c: Likewise.
1673 * utils.c: Likewise.
1674 * valarith.c: Likewise.
1675 * valops.c: Likewise.
1676 * valprint.c: Likewise.
1677 * value.c: Likewise.
1678 * varobj.c: Likewise.
1679 * windows-nat.c: Likewise.
1680 * xml-support.c: Likewise.
1682 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1684 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1686 (extended_mips16_next_pc): Update accordingly.
1688 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1690 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1692 (micromips_instruction_is_compact_branch): Likewise.
1693 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1694 or a compact jump, reaching a jump delay slot, or seeing a
1695 second non-prologue instruction.
1696 (micromips_scan_prologue): Also terminate scanning upon seeing a
1697 compact branch or jump, or reaching a branch or jump delay slot.
1698 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1699 or jump delay slot, or seeing a second non-prologue instruction.
1700 (mips32_instruction_has_delay_slot): Retain instruction
1701 examination code only, update arguments accordingly and move
1702 instruction fetch pieces to...
1703 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1704 (micromips_instruction_has_delay_slot): Likewise and to...
1705 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1706 (mips16_instruction_has_delay_slot): Likewise and to...
1707 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1708 (mips_single_step_through_delay): Update accordingly.
1709 (mips_adjust_breakpoint_address): Likewise.
1711 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1713 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1714 !mustbe32 also return 1 for 32-bit instructions.
1715 (mips16_instruction_has_delay_slot): Likewise. Add an
1716 explanatory comment.
1718 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1720 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1723 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1725 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1727 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1728 for the breakpoint's address. Don't preinitialize `placed_size'.
1729 (insert_bp_location): Set `reqstd_address' rather than
1731 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1732 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1734 (bkpt_remove_location): Likewise.
1735 (deprecated_insert_raw_breakpoint): Likewise.
1736 (deprecated_remove_raw_breakpoint): Likewise.
1737 (find_single_step_breakpoint): Likewise.
1738 * mem-break.c (default_memory_insert_breakpoint): Use
1739 `reqstd_address' for the breakpoint's address. Don't set
1740 `placed_address' or `placed_size' if breakpoint contents couldn't
1741 have been determined.
1742 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1743 the breakpoint's address.
1744 (remote_insert_hw_breakpoint): Likewise. Don't set
1745 `placed_address' or `placed_size' if breakpoint couldn't have been
1747 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1748 `reqstd_address' for the breakpoint's address.
1749 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1750 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1751 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1752 * microblaze-linux-tdep.c
1753 (microblaze_linux_memory_remove_breakpoint): Likewise.
1754 * monitor.c (monitor_insert_breakpoint): Likewise.
1755 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1756 (procfs_insert_hw_breakpoint): Likewise.
1757 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1758 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1759 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1760 * remote-mips.c (mips_insert_breakpoint): Likewise.
1761 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1763 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1765 * valops.c (value_assign): Check for bit field assignments
1766 before calling architecture-specific register value
1767 conversion functions.
1769 2014-10-03 Pierre Muller <muller@sourceware.org>
1771 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1773 2014-10-02 Pedro Alves <palves@redhat.com>
1775 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1776 threads_are_executing.
1777 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1779 * gdbthread.h (threads_are_executing): Declare.
1780 (handle_signal_stop) <random signals>: Don't print about the
1781 signal here if stopping.
1782 (end_stepping_range): Don't notify observers here.
1783 (normal_stop): Update the thread list. If stopped by a random
1784 signal or a stepping range ended, notify observers.
1785 * thread.c (threads_executing): New global.
1786 (init_thread_list): Clear 'threads_executing'.
1787 (set_executing): Set or clear 'threads_executing'.
1788 (threads_are_executing): New function.
1789 (update_threads_executing): New function.
1790 (update_thread_list): Use it.
1792 2014-10-02 Pedro Alves <palves@redhat.com>
1794 PR breakpoints/17431
1795 * breakpoint.c (update_breakpoints_after_exec): Don't create
1796 overlay, longjmp, std terminate nor exception breakpoints here.
1798 2014-10-02 Pedro Alves <palves@redhat.com>
1800 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1802 * inferior.c (find_inferior_for_program_space): Give preference to
1803 the current inferior.
1804 * inferior.h (find_inferior_for_program_space): Update comment.
1805 * progspace.c (switch_to_program_space_and_thread): Prefer the
1806 current inferior if it's bound to the program space requested. If
1807 the inferior found doesn't have a PID yet, don't bother looking up
1809 * progspace.h (switch_to_program_space_and_thread): Adjust
1811 * thread.c (any_thread_of_process, any_live_thread_of_process):
1812 Give preference to the current thread.
1814 2014-10-01 Pedro Alves <palves@redhat.com>
1816 * breakpoint.c (insert_bp_location): Error out if inserting a
1817 software breakpoint at a read-only address.
1818 * target.c (memory_xfer_check_region): New function, factored out
1820 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1822 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1823 against the memory region attributes.
1825 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1827 * NEWS: Announce new exit-code field in -list-thread-groups
1829 * inferior.c (exit_inferior_1): Don't clear exit code.
1830 (inferior_appeared): Clear exit code.
1831 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1834 2014-10-01 Pedro Alves <palves@redhat.com>
1836 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1837 GENERATED" along with emacs/vi read-only markers.
1838 * regformats/aarch64.dat: Regenerate.
1839 * regformats/arm-with-iwmmxt.dat: Regenerate.
1840 * regformats/arm-with-neon.dat: Regenerate.
1841 * regformats/arm-with-vfpv2.dat: Regenerate.
1842 * regformats/arm-with-vfpv3.dat: Regenerate.
1843 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1844 * regformats/i386/amd64-avx.dat: Regenerate.
1845 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1846 * regformats/i386/amd64-avx512.dat: Regenerate.
1847 * regformats/i386/amd64-linux.dat: Regenerate.
1848 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1849 * regformats/i386/amd64-mpx.dat: Regenerate.
1850 * regformats/i386/amd64.dat: Regenerate.
1851 * regformats/i386/i386-avx-linux.dat: Regenerate.
1852 * regformats/i386/i386-avx.dat: Regenerate.
1853 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1854 * regformats/i386/i386-avx512.dat: Regenerate.
1855 * regformats/i386/i386-linux.dat: Regenerate.
1856 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1857 * regformats/i386/i386-mmx.dat: Regenerate.
1858 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1859 * regformats/i386/i386-mpx.dat: Regenerate.
1860 * regformats/i386/i386.dat: Regenerate.
1861 * regformats/i386/x32-avx-linux.dat: Regenerate.
1862 * regformats/i386/x32-avx.dat: Regenerate.
1863 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1864 * regformats/i386/x32-avx512.dat: Regenerate.
1865 * regformats/i386/x32-linux.dat: Regenerate.
1866 * regformats/i386/x32.dat: Regenerate.
1867 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1868 * regformats/mips-dsp-linux.dat: Regenerate.
1869 * regformats/mips-linux.dat: Regenerate.
1870 * regformats/mips64-dsp-linux.dat: Regenerate.
1871 * regformats/mips64-linux.dat: Regenerate.
1872 * regformats/nios2-linux.dat: Regenerate.
1873 * regformats/rs6000/powerpc-32.dat: Regenerate.
1874 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1875 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1876 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1877 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1878 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1879 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1880 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1881 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1882 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1883 * regformats/s390-linux32.dat: Regenerate.
1884 * regformats/s390-linux32v1.dat: Regenerate.
1885 * regformats/s390-linux32v2.dat: Regenerate.
1886 * regformats/s390-linux64.dat: Regenerate.
1887 * regformats/s390-linux64v1.dat: Regenerate.
1888 * regformats/s390-linux64v2.dat: Regenerate.
1889 * regformats/s390-te-linux64.dat: Regenerate.
1890 * regformats/s390x-linux64.dat: Regenerate.
1891 * regformats/s390x-linux64v1.dat: Regenerate.
1892 * regformats/s390x-linux64v2.dat: Regenerate.
1893 * regformats/s390x-te-linux64.dat: Regenerate.
1894 * regformats/tic6x-c62x-linux.dat: Regenerate.
1895 * regformats/tic6x-c62x.dat: Regenerate.
1896 * regformats/tic6x-c64x-linux.dat: Regenerate.
1897 * regformats/tic6x-c64x.dat: Regenerate.
1898 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1899 * regformats/tic6x-c64xp.dat: Regenerate.
1901 2014-10-01 Pedro Alves <palves@redhat.com>
1903 * features/Makefile: Update comments.
1904 (XMLTOC): List all xml files we build C files from.
1905 (clean-cfiles): New rule.
1907 2014-10-01 Pedro Alves <palves@redhat.com>
1909 * features/i386/amd64-avx512-linux.c: Regenerate.
1910 * features/i386/amd64-avx512.c: Regenerate.
1911 * features/i386/x32-avx512-linux.c: Regenerate.
1912 * features/i386/x32-avx512.c: Regenerate.
1914 2014-10-01 Pedro Alves <palves@redhat.com>
1916 * features/Makefile (WHICH): Remove arm-with-m,
1917 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1919 2014-10-01 Pedro Alves <palves@redhat.com>
1921 * features/Makefile (clean): New rule.
1923 2014-10-01 Pedro Alves <palves@redhat.com>
1925 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1926 (zmm14h): Add missing end quotes.
1928 2014-10-01 Pedro Alves <palves@redhat.com>
1930 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1931 * features/aarch64.c: Regenerate.
1933 2014-09-30 Don Breazeal <donb@codesourcery.com>
1935 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1936 code so as to work with follow_fork_inferior.
1937 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1938 (inf_ttrace_create_inferior): Remove reference to
1939 inf_ttrace_vfork_ppid.
1940 (inf_ttrace_attach): Ditto.
1941 (inf_ttrace_detach): Ditto.
1942 (inf_ttrace_kill): Use current_inferior instead of
1943 inf_ttrace_vfork_ppid.
1944 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1945 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1946 inferior away from the parent.
1947 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1949 (follow_fork_inferior): New function.
1950 (follow_inferior_reset_breakpoints): Make function static.
1951 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1952 * linux-nat.c (linux_child_follow_fork): Move target-independent
1953 code to infrun.c:follow_fork_inferior.
1955 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1957 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1958 * gdbarch.c: Regenerate.
1959 * gdbarch.h: Likewise.
1960 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1961 gdbarch method 'regset_from_core_section'.
1962 (get_core_register_section): Remove handling for the case that
1963 regset == NULL and regset_from_core_section is defined.
1964 (get_core_registers): Drop check for deleted method.
1965 * procfs.c (procfs_do_thread_registers): Adjust comment.
1967 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1969 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1970 (linux_nat_make_corefile_notes): Remove.
1971 (linux_target_install_ops): Do not set target method
1972 'make_corefile_notes'.
1973 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1975 (linux_corefile_thread_callback): Instead of args->collect, call
1976 linux_collect_thread_registers.
1977 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1978 NULL unless there is a regset iterator.
1979 (linux_make_corefile_notes_1): Remove.
1980 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1981 by linux_make_corefile_notes.
1982 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1984 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1986 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1987 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1989 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1991 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1993 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1994 (xtensa_iterate_over_regset_sections): New.
1995 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1997 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1999 * vax-tdep.c (vax_regset_from_core_section): Remove.
2000 (vax_iterate_over_regset_sections): New.
2001 (vax_gdbarch_init): Adjust gdbarch initialization.
2003 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2005 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2006 (tilegx_regset_from_core_section): Remove.
2007 (tilegx_iterate_over_regset_sections): New.
2008 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2010 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2012 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2013 (sparc_iterate_over_regset_sections): New.
2014 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2015 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2017 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2018 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2019 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2020 target method 'make_corefile_notes'.
2022 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2024 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2025 'sizeof_gregset' and 'sizeof_fpregset'.
2026 * sh-tdep.c (sh_regset_from_core_section): Remove.
2027 (sh_iterate_over_regset_sections): New.
2028 (sh_gdbarch_init): Adjust gdbarch initialization.
2029 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2031 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2034 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2036 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2037 (score7_linux_iterate_over_regset_sections): New.
2038 (score_gdbarch_init): Adjust gdbarch initialization.
2040 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2042 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2044 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2045 method 'make_corefile_notes'.
2046 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2047 (ppcfbsd_regset_from_core_section): Remove.
2048 (ppcfbsd_iterate_over_regset_sections): New.
2049 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2051 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2052 (ppcnbsd_iterate_over_regset_sections): New.
2053 (ppcnbsd_init_abi): Adjust.
2054 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2055 (ppcobsd_iterate_over_regset_sections): New.
2056 (ppcobsd_init_abi): Adjust.
2057 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2058 (rs6000_aix_iterate_over_regset_sections): New.
2059 (rs6000_aix_init_osabi): Adjust.
2061 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2063 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2064 (nios2_regset_from_core_section): Remove.
2065 (nios2_iterate_over_regset_sections): New.
2066 (nios2_linux_init_abi): Adjust gdbarch initialization.
2068 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2070 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2071 (am33_iterate_over_regset_sections): New.
2072 (am33_linux_init_osabi): Adjust gdbarch initialization.
2074 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2076 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2077 (mips_linux_iterate_over_regset_sections): New.
2078 (mips_linux_init_abi): Adjust gdbarch initialization.
2079 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2080 (mips64obsd_iterate_over_regset_sections): New.
2081 (mips64obsd_init_abi): Adjust.
2082 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2083 (mipsnbsd_iterate_over_regset_sections): New.
2084 (mipsnbsd_init_abi): Adjust.
2086 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2088 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2089 (m88k_iterate_over_regset_sections): New.
2090 (m88k_gdbarch_init): Adjust gdbarch initialization.
2092 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2094 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2095 (ia64_linux_iterate_over_regset_sections): New.
2096 (ia64_linux_init_abi): Adjust gdbarch initialization.
2098 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2100 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2101 (m68kbsd_iterate_over_regset_sections): New.
2102 (m68kbsd_init_abi): Adjust gdbarch initialization.
2103 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2104 (m68k_linux_iterate_over_regset_sections): New.
2105 (m68k_linux_init_abi): Adjust gdbarch initialization.
2107 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2109 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2110 (m32r_linux_regset_from_core_section): Remove.
2111 (m32r_linux_iterate_over_regset_sections): New.
2112 (m32r_linux_init_abi): Adjust gdbarch initialization.
2114 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2116 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2117 (amd64obsd_iterate_over_regset_sections): New.
2118 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2119 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2121 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2122 regset_from_core_section initialization.
2123 * i386-tdep.c (i386_regset_from_core_section): Remove.
2124 (i386_iterate_over_regset_sections): New.
2125 (i386_gdbarch_init): Adjust gdbarch initialization.
2126 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2127 (i386_iterate_over_regset_sections): New prototype.
2128 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2130 (i386obsd_aout_iterate_over_regset_sections): New.
2131 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2132 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2134 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2135 (amd64fbsd_init_abi): Call fbsd_init_abi.
2136 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2137 (i386fbsd4_init_abi): Call fbsd_init_abi.
2138 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2139 target method 'make_corefile_notes'.
2140 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2142 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2144 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2145 (hppa_hpux_iterate_over_regset_sections): New.
2146 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2147 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2148 (hppa_linux_iterate_over_regset_sections): New.
2149 (hppa_linux_init_abi): Adjust.
2150 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2151 (hppanbsd_iterate_over_regset_sections): New.
2152 (hppanbsd_init_abi): Adjust.
2153 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2154 (hppaobsd_iterate_over_regset_sections): New.
2155 (hppaobsd_init_abi): Adjust.
2157 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2159 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2160 (frv_linux_iterate_over_regset_sections): New.
2161 (frv_linux_init_abi): Adjust gdbarch initialization.
2163 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2165 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2166 (armbsd_iterate_over_regset_sections): New prototype.
2167 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2168 (armbsd_iterate_over_regset_sections): New.
2169 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2172 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2174 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2175 (alpha_linux_iterate_over_regset_sections): New.
2176 (alpha_linux_init_abi): Adjust gdbarch initialization.
2177 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2179 (alphanbsd_iterate_over_regset_sections): New prototype.
2181 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2183 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2185 (aarch64_linux_iterate_over_regset_sections): New.
2186 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2188 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2190 * fbsd-tdep.c: New file.
2191 * fbsd-tdep.h: New file.
2192 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2193 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2194 (ALLDEPFILES): Add fbsd-tdep.c.
2196 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2198 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2200 * gdbarch.h: Regenerate.
2201 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2203 (get_core_register_section): Add parameter 'regset' and use it, if
2204 set. Add parameter 'min_size' and verify the bfd section size
2206 (get_core_registers_cb): Add parameter 'regset' and pass it to
2207 get_core_register section. For the "standard" register sections
2208 ".reg" and ".reg2", set an appropriate default for human_name.
2209 (get_core_registers): Don't abort when the gdbarch has an iterator
2210 but no regset_from_core_section. Add NULL/0 for parameters
2211 'regset'/'min_size' in calls to get_core_register_section.
2212 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2213 'regset' and use it instead of calling the
2214 regset_from_core_section gdbarch method.
2215 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2216 * i386-tdep.c (i386_supply_xstateregset)
2217 (i386_collect_xstateregset, i386_xstateregset): Moved to
2219 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2221 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2222 core file support only if the regset iterator hasn't been set.
2223 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2224 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2225 Moved from i386-tdep.c and renamed to *_linux*.
2226 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2227 each callback invocation. Allow any .reg-xstate size when reading
2229 * amd64-tdep.c (amd64_supply_xstateregset)
2230 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2232 (amd64_regset_from_core_section): Remove.
2233 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2234 install an amd64-specific regset_from_core_section gdbarch method.
2235 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2236 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2237 Moved from amd64-tdep.c and renamed to *_linux*.
2238 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2239 to each callback invocation. Allow any .reg-xstate size when
2240 reading from a core file.
2241 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2242 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2243 each callback invocation.
2244 (arm_linux_init_abi): No longer set the regset_from_core_section
2246 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2247 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2248 each callback invocation.
2249 (ppc_linux_init_abi): No longer set the regset_from_core_section
2251 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2252 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2253 (s390_regset_from_core_section): Remove.
2254 (s390_iterate_over_regset_sections): Add regset parameter to each
2255 callback invocation.
2256 (s390_gdbarch_init): No longer set the regset_from_core_section
2257 gdbarch method. Drop initialization of deleted tdep fields.
2259 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2261 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2262 (amd64_linux_iterate_over_regset_sections): New.
2263 (amd64_linux_init_abi_common): Don't install the regset section
2264 list, but the new iterator in gdbarch.
2265 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2266 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2267 (arm_linux_iterate_over_regset_sections): ...here. New function.
2268 (arm_linux_init_abi): Set iterator instead of section list.
2269 * corelow.c (get_core_registers_cb): New function, logic moved
2271 (get_core_registers): ...loop body here. Use new iterator method
2272 instead of walking through the regset section list.
2273 * gdbarch.sh: Remove 'core_regset_sections'. New method
2274 'iterate_over_regset_sections'. New typedef
2275 'iterate_over_regset_sections_cb'.
2276 * gdbarch.c: Regenerate.
2277 * gdbarch.h: Likewise.
2278 * i386-linux-tdep.c (i386_linux_regset_sections)
2279 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2281 (i386_linux_iterate_over_regset_sections): New.
2282 (i386_linux_init_abi): Don't choose a regset section list, but
2283 install new iterator in gdbarch.
2284 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2285 (linux_collect_regset_section_cb): New function, logic moved
2287 (linux_collect_thread_registers): ...loop body here. Use iterator
2288 method instead of walking through list.
2289 (linux_make_corefile_notes_1): Check for presence of iterator
2290 method instead of regset section list.
2291 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2292 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2293 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2294 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2295 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2296 (ppc_linux_init_abi): Don't choose from above regset section
2297 lists, but install new iterator in gdbarch.
2298 * regset.h (struct core_regset_section): Remove.
2299 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2300 have_linux_v1, have_linux_v2, and have_tdb.
2301 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2302 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2303 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2304 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2305 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2306 (s390_iterate_over_regset_sections): ...here. New function. Use
2308 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2309 regset section lists, but install new iterator.
2311 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2313 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2315 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2317 * progspace.c (print_program_space): Don't prune program spaces
2318 before printing them.
2320 2014-09-25 Pedro Alves <palves@redhat.com>
2322 * infrun.c (user_visible_resume_ptid): Don't check
2323 singlestep_breakpoints_inserted_p.
2325 2014-09-25 Pedro Alves <palves@redhat.com>
2327 * breakpoint.c (should_be_inserted): Add debug output.
2329 2014-09-25 Pedro Alves <palves@redhat.com>
2331 * infrun.c (stepping_past_instruction_at)
2332 (clear_exit_convenience_vars): Point at infrun.h instead of
2334 (handle_signal_stop): Fix typo.
2336 2014-09-24 Yao Qi <yao@codesourcery.com>
2338 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2341 2014-09-22 Gary Benson <gbenson@redhat.com>
2343 * target.c (target_stop): Updated comment.
2345 2014-09-22 Gary Benson <gbenson@redhat.com>
2347 * target/target.h (target_stop_ptid): Renamed as...
2348 (target_stop_and_wait): New function. Updated comment.
2350 (target_continue_ptid): Renamed as...
2351 (target_continue_no_signal): New function. Updated comment.
2354 2014-09-22 Pedro Alves <palves@redhat.com>
2356 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2358 * breakpoint.c (enum ugll_insert_mode): New enum.
2359 (always_inserted_mode): Now a plain boolean.
2360 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2361 (breakpoints_always_inserted_mode): Delete.
2362 (breakpoints_should_be_inserted_now): New function.
2363 (insert_breakpoints): Pass UGLL_INSERT to
2364 update_global_location_list instead of calling
2365 insert_breakpoint_locations manually.
2366 (create_solib_event_breakpoint_1): New, factored out from ...
2367 (create_solib_event_breakpoint): ... this.
2368 (create_and_insert_solib_event_breakpoint): Use
2369 create_solib_event_breakpoint_1 instead of calling
2370 insert_breakpoint_locations manually.
2371 (update_global_location_list): Change parameter type from boolean
2372 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2373 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2374 (update_global_location_list_nothrow): Change parameter type from
2375 boolean to enum ugll_insert_mode.
2376 (_initialize_breakpoint): "breakpoint always-inserted" option is
2377 now a boolean command. Update help text.
2378 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2379 (breakpoints_should_be_inserted_now): New declaration.
2380 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2381 Remove breakpoints_always_inserted_mode check.
2382 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2383 * remote.c (remote_start_remote): Likewise.
2385 2014-09-22 Pedro Alves <palves@redhat.com>
2387 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2388 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2389 Instead, pass UGLL_INSERT to update_global_location_list.
2390 (update_global_location_list): Change parameter type from boolean
2391 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2392 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2393 (create_solib_event_breakpoint_1): New, factored out from ...
2394 (create_solib_event_breakpoint): ... this.
2395 (create_and_insert_solib_event_breakpoint): Use
2396 create_solib_event_breakpoint_1 instead of calling
2397 insert_breakpoint_locations manually.
2398 (update_global_location_list): Handle UGLL_INSERT.
2400 2014-09-22 Pedro Alves <palves@redhat.com>
2402 * breakpoint.c (enum ugll_insert_mode): New enum.
2403 (update_global_location_list)
2404 (update_global_location_list_nothrow): Change parameter type from
2405 boolean to enum ugll_insert_mode. All callers adjusted.
2407 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2409 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2410 SystemTap support in GDB.
2412 2014-09-19 Don Breazeal <donb@codesourcery.com>
2414 * linux-nat.c (linux_handle_extended_wait): Call
2415 linux_ptrace_get_extended_event.
2416 (wait_lwp): Call linux_is_extended_waitstatus.
2417 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2418 and linux_is_extended_waitstatus.
2419 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2420 linux_ptrace_get_extended_event.
2421 (linux_ptrace_get_extended_event): New function.
2422 (linux_is_extended_waitstatus): New function.
2423 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2424 (linux_is_extended_waitstatus): New declarations.
2426 2014-09-19 Yao Qi <yao@codesourcery.com>
2428 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2429 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2430 comments. Callers update.
2431 (dwarf_decode_lines): Likewise.
2432 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2433 comments. Skip the line table if 'lowpc' is greater than
2434 'address'. Don't check
2435 dwarf2_per_objfile->has_section_at_zero.
2437 2014-09-18 Doug Evans <dje@google.com>
2439 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2440 * python/py-symtab.c (stpy_get_producer): New function.
2441 (symtab_object_getset): Add "producer" attribute.
2443 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
2446 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2447 (do_captured_read_memory_integer): Remove.
2448 (safe_read_memory_integer): Use target_read_memory directly instead
2449 of catching errors in do_captured_read_memory_integer.
2451 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2453 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2456 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2458 * objc-lang.c (find_implementation_from_class): Remove dead code.
2460 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2463 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2464 "fprintf_unfiltered (gdb_stdlog...)".
2466 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2468 PR breakpoints/12526
2469 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2471 * breakpoint.c (watch_command_1): Use these fields to retain
2472 bitfield information.
2473 (extract_bitfield_from_watchpoint_value): New function.
2474 (watchpoint_check): Use it.
2475 (update_watchpoint): Use it. Optimize the address and length of a
2476 HW watchpoint pointing to a bitfield.
2477 * value.h (unpack_value_bitfield): New prototype.
2478 * value.c (unpack_value_bitfield): Make extern.
2480 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2482 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2484 * gnu-nat.c (inf_threads): New function.
2485 * gnu-nat.h (inf_threads_ftype): New typedef.
2486 (inf_threads): New declaration.
2487 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2488 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2489 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2490 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2491 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2492 (i386_gnu_dr_get_control): New functions.
2493 (reg_addr): New structure.
2494 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2495 i386 debugging register hooks.
2496 * NEWS: Mention this.
2498 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2500 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2501 vector data transfer instructions.
2502 (arm_record_coproc_data_proc): Updated.
2504 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2506 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2507 arm_record_exreg_ld_st_insn.
2508 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2511 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2513 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2514 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2515 processing instructions.
2517 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2519 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2520 for advance SIMD struct ld/st insn.
2521 (thumb2_record_decode_insn_handler): Replace stub handler with
2522 thumb2_record_asimd_struct_ld_st.
2524 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2526 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2527 for asimd, vfp and coprocessor insns.
2528 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2529 and coprocessor insns.
2530 (thumb2_record_coproc_insn): New function.
2531 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2533 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2536 2014-09-13 Doug Evans <xdje42@gmail.com>
2538 * NEWS: Mention new "queue-signal" command.
2539 * infcmd.c (queue_signal_command): New function.
2540 (_initialize_infcmd): Add new queue-signal command.
2542 2014-09-13 Doug Evans <xdje42@gmail.com>
2544 * linux-nat.c (wait_lwp): Add debugging printf.
2545 (linux_nat_wait_1): Ditto.
2547 2014-09-12 Pedro Alves <palves@redhat.com>
2549 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2550 (create_and_insert_solib_event_breakpoint): New functions.
2551 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2552 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2553 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2554 (remove_dbx_link_breakpoint): Delete function.
2555 (insert_dbx_link_bpt_in_file): Use
2556 create_and_insert_solib_event_breakpoint instead of
2557 deprecated_insert_raw_breakpoint.
2558 (procfs_wait): Don't check whether we hit __dbx_link here.
2559 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2561 * solib-irix.c (base_breakpoint): Delete global.
2562 (disable_break): Delete function.
2563 (enable_break): Use create_solib_event_breakpoint
2564 instead of deprecated_insert_raw_breakpoint.
2565 (irix_solib_handle_event): New function.
2566 (irix_solib_create_inferior_hook): Don't run the target or disable
2567 the mapping-complete breakpoint here.
2568 (_initialize_irix_solib): Install irix_solib_handle_event as
2569 so_ops->handle_event hook.
2571 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2572 Ulrich Weigand <uweigand@de.ibm.com>
2575 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2576 instead of read_memory_unsigned_integer.
2578 2014-09-12 Gary Benson <gbenson@redhat.com>
2580 * nat/linux-waitpid.c: Include common-defs.h.
2581 [GDBSERVER]: Add FIXME comment.
2582 [!GDBSERVER]: Don't include defs.h or signal.h.
2583 (linux_debug) [!GDBSERVER]: Remove empty block.
2585 2014-09-12 Gary Benson <gbenson@redhat.com>
2587 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2588 Don't include defs.h or server.h.
2590 2014-09-12 Gary Benson <gbenson@redhat.com>
2592 * nat/linux-btrace.c: Include common-defs.h.
2593 Don't include defs.h, server.h or gdbthread.h.
2594 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2596 2014-09-12 Gary Benson <gbenson@redhat.com>
2598 * common/agent.c: Include common-defs.h.
2599 Don't include defs.h or server.h.
2600 * common/buffer.c: Likewise.
2601 * common/common-debug.c: Likewise.
2602 * common/common-utils.c: Likewise.
2603 * common/errors.c: Likewise.
2604 * common/filestuff.c: Likewise.
2605 * common/format.c: Likewise.
2606 * common/gdb_vecs.c: Likewise.
2607 * common/print-utils.c: Likewise.
2608 * common/ptid.c: Likewise.
2609 * common/rsp-low.c: Likewise.
2610 * common/signals.c: Likewise.
2611 * common/vec.c: Likewise.
2612 * common/xml-utils.c: Likewise.
2613 * nat/linux-osdata.c: Likewise.
2614 * nat/linux-procfs.c: Likewise.
2615 * nat/linux-ptrace.c: Likewise.
2616 * nat/mips-linux-watch.c: Likewise.
2617 * target/waitstatus.c: Likewise.
2619 2014-09-12 Tom Tromey <tromey@redhat.com>
2620 Gary Benson <gbenson@redhat.com>
2622 * common/common-regcache.h: New file.
2623 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2624 * regcache.h: Include common-regcache.h.
2625 (regcache_read_pc): Don't declare.
2626 * regcache.c (get_thread_regcache_for_ptid): New function.
2627 * nat/linux-btrace.c: Don't include regcache.h.
2628 Include common-regcache.h.
2629 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2631 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2633 * regcache.h (struct regset): Declare.
2635 2014-09-11 Pedro Alves <palves@redhat.com>
2638 * main.c: Include "infrun.h".
2639 (catch_command_errors, catch_command_errors_const): Wait for the
2640 foreground command to complete.
2641 * top.c (maybe_wait_sync_command_done): New function, factored out
2643 (maybe_wait_sync_command_done): ... here.
2644 * top.h (maybe_wait_sync_command_done): New declaration.
2646 2014-09-11 Tom Tromey <tromey@redhat.com>
2647 Gary Benson <gbenson@redhat.com>
2649 * common/symbol.h: New file.
2650 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2651 * minsyms.c (find_minimal_symbol_address): New function.
2652 * common/agent.c: Include common/symbol.h.
2653 [!GDBSERVER]: Don't include objfiles.h.
2654 (agent_look_up_symbols): Use find_minimal_symbol_address.
2656 2014-09-11 Gary Benson <gbenson@redhat.com>
2658 * target/target.h (target_stop_ptid, target_continue_ptid):
2660 * target.c (target_stop_ptid, target_continue_ptid): New
2662 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2663 (agent_run_command): Always use target_stop_ptid and
2664 target_continue_ptid.
2666 2014-09-11 Tom Tromey <tromey@redhat.com>
2667 Gary Benson <gbenson@redhat.com>
2669 * target/target.h: New file.
2670 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2671 * target.h: Include target/target.h.
2672 (target_read_memory, target_write_memory): Don't declare.
2673 * target.c (target_read_uint32): New function.
2674 * common/agent.c: Include target/target.h.
2675 [!GDBSERVER]: Don't include target.h.
2676 (helper_thread_id): Type changed to uint32_t.
2677 (agent_get_helper_thread_id): Use target_read_uint32.
2678 (agent_run_command): Always use target_read_memory and
2679 target_write_memory.
2680 (agent_capability): Type changed to uint32_t.
2681 (agent_capability_check): Use target_read_uint32.
2683 2014-09-11 Gary Benson <gbenson@redhat.com>
2685 * common/common-debug.h (show_debug_regs): Declare.
2686 * common/common-debug.c (show_debug_regs): Define.
2687 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2688 all uses with show_debug_regs. Replace all uses that considered
2689 debug_hw_points as a multi-value integer with straight boolean
2691 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2692 with show_debug_regs.
2693 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2694 all uses with show_debug_regs.
2695 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2696 uses with show_debug_regs.
2698 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2700 * findvar.c (address_from_register): Handle targets requiring
2701 a special conversion routine even for plain pointer types.
2703 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2705 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2706 (store_register): Do not call exec_one_dummy_insn.
2708 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2710 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2711 dereference it first. Use value_enclosing_type instead of
2713 (ada_array_length): Likewise.
2715 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2717 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2718 Adjust function implementation and documentation accordingly.
2719 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2720 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2721 Update call to ada_value_ptr_subscript.
2723 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2725 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2726 instead of VAL's type.
2728 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2730 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2732 2014-09-09 Doug Evans <xdje42@gmail.com>
2735 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2736 last parameter to pkg-config, not first.
2737 * configure.ac: Pass --with-guile provided pkg-config path to
2738 GDB_GUILE_PROGRAM_NAMES.
2739 * configure: Regenerate.
2741 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2743 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2746 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2748 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2749 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2750 the list of sections determining GDB_OSABI_IRIX.
2752 2014-09-09 James Hogan <james.hogan@imgtec.com>
2754 * MAINTAINERS (Write After Approval): Add "James Hogan".
2756 2014-09-09 James Hogan <james.hogan@imgtec.com>
2758 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2760 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2762 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2764 2014-09-08 Doug Evans <xdje42@gmail.com>
2767 * guile.c: #include <signal.h>.
2768 (_initialize_guile): Block SIGCHLD while initializing Guile.
2770 Replaces the following, which is reverted.
2772 2014-07-26 Doug Evans <xdje42@gmail.com>
2775 * configure.ac: Add check for header gc/gc.h.
2776 Add check for function setenv.
2777 * configure: Regenerate.
2778 * config.in: Regenerate.
2779 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2781 2014-09-08 Doug Evans <xdje42@gmail.com>
2783 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2784 with named constant. Fix style of pointer comparison.
2785 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2787 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2790 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2791 decide whether we display the command on "show user".
2792 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2793 printing command name.
2794 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2795 * cli/cli-decode.c (cli_user_command_p): Create helper function
2796 to verify whether cmd_list_element is a user-defined command.
2798 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2801 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2802 Fix goto out of TRY_CATCH.
2804 2014-09-06 Doug Evans <xdje42@gmail.com>
2805 Tom Tromey <tromey@redhat.com>
2808 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2809 $_any_caller_matches.
2810 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2811 * python/lib/gdb/function/caller_is.py: New file.
2813 2014-09-06 Doug Evans <xdje42@gmail.com>
2815 * infcmd.c (program_info): Fix typo.
2817 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2820 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2821 'number'. New variable 'has_digit'. Rewrite code to deal with
2822 subexpressions on SDT probes.
2824 2014-09-04 Pedro Alves <palves@redhat.com>
2826 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2827 the input is only one character long.
2829 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2832 * f-valprint.c (f_val_print): Specify the correct print option to
2833 use when printing integer values.
2835 2014-09-04 Gary Benson <gbenson@redhat.com>
2837 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2838 Remove code to cope with LWPs wrapped as PIDs.
2839 Add assertions to ensure no wrapped LWPs are passed.
2841 2014-09-04 Pedro Alves <palves@redhat.com>
2843 * value.c (value_ranges_copy_adjusted): New function, factored out
2845 (value_contents_copy_raw): ... here.
2846 (unpack_value_bits_as_long_1): Rename back to ...
2847 (unpack_bits_as_long): ... this. Remove 'original_value' and
2848 'result' parameters. Change return type to LONGEST.
2849 (unpack_value_bits_as_long): Delete.
2850 (unpack_value_field_as_long_1): Delete.
2851 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2852 (unpack_value_bitfield): New function.
2853 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2854 (value_fetch_lazy): Use unpack_value_bitfield.
2855 * value.h (unpack_value_bits_as_long): Delete declaration.
2857 2014-09-03 Sasha Smundak <asmundak@google.com>
2859 * python/py-frame.c (frapy_read_register): New function.
2861 2014-09-03 James Hogan <james.hogan@imgtec.com>
2863 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2864 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2866 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2869 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2871 (add_cmd): Set "completer_handle_brkchars" to NULL.
2872 * cli/cli-decode.h (struct cmd_list_element)
2873 <completer_handle_brkchars>: New field.
2874 * command.h (completer_ftype_void): New typedef.
2875 (set_cmd_completer_handle_brkchars): New prototype.
2876 * completer.c (set_gdb_completion_word_break_characters): New
2878 (complete_line_internal): Call "completer_handle_brkchars"
2879 callback from command.
2880 * completer.h: Include "command.h".
2881 (set_gdb_completion_word_break_characters): New prototype.
2882 * python/py-cmd.c (cmdpy_completer_helper): New function.
2883 (cmdpy_completer_handle_brkchars): New function.
2884 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2885 (cmdpy_init): Set completer_handle_brkchars to
2886 cmdpy_completer_handle_brkchars.
2888 2014-09-03 Gary Benson <gbenson@redhat.com>
2890 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2891 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2892 Loop conditions changed to equivalent form.
2893 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2894 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2895 ALL_DEBUG_ADDRESS_REGISTERS.
2897 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2899 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2902 2014-09-02 Doug Evans <dje@google.com>
2904 * typeprint.c (find_global_typedef): Fix comment.
2906 2014-09-02 Gary Benson <gbenson@redhat.com>
2908 * i386-nat.h: Renamed as...
2909 * x86-nat.h: New file. All type, function and variable name
2910 prefixes changed from "i386_" to "x86_". All references updated.
2911 * i386-nat.c: Renamed as...
2912 * x86-nat.c: New file. All type, function and variable name
2913 prefixes changed from "i386_" to "x86_". All references updated.
2914 * common/i386-xstate.h: Renamed as...
2915 * common/x86-xstate.h: New file. All type, function and variable
2916 name prefixes changed from "i386_" to "x86_". All references
2918 * nat/i386-cpuid.h: Renamed as...
2919 * nat/x86-cpuid.h: New file. All type, function and variable name
2920 prefixes changed from "i386_" to "x86_". All references updated.
2921 * nat/i386-gcc-cpuid.h: Renamed as...
2922 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2923 name prefixes changed from "i386_" to "x86_". All references
2925 * nat/i386-dregs.h: Renamed as...
2926 * nat/x86-dregs.h: New file. All type, function and variable name
2927 prefixes changed from "i386_" to "x86_". All references updated.
2928 * nat/i386-dregs.c: Renamed as...
2929 * nat/x86-dregs.c: New file. All type, function and variable name
2930 prefixes changed from "i386_" to "x86_". All references updated.
2932 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2934 * varobj.c (_initialize_varobj): Move to the end of file.
2936 2014-08-29 Gary Benson <gbenson@redhat.com>
2938 * common/common-exceptions.h: New file.
2939 * common/common-exceptions.c: Likewise.
2940 * Makefile.in (SFILES): Add common/common-exceptions.c.
2941 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2942 (COMMON_OBS): Add common-exceptions.o.
2943 (common-exceptions.o): New rule.
2944 * exceptions.h (common-exceptions.h): Include.
2945 (gdb_setjmp.h): Do not include.
2946 (return_reason): Moved to common-exceptions.h.
2947 (enum return_reason): Likewise.
2948 (RETURN_MASK): Likewise.
2949 (typedef return_mask): Likewise.
2950 (enum errors): Likewise.
2951 (struct gdb_exception): Likewise.
2952 (exceptions_state_mc_init): Likewise.
2953 (exceptions_state_mc_action_iter): Likewise.
2954 (exceptions_state_mc_action_iter_1): Likewise.
2955 (TRY_CATCH): Likewise.
2956 (throw_exception): Likewise.
2957 (throw_verror): Likewise.
2958 (throw_vquit): Likewise.
2959 (throw_error): Likewise.
2960 (throw_quit): Likewise.
2961 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2962 (enum catcher_action): Likewise.
2963 (struct catcher): Likewise.
2964 (current_catcher): Likewise.
2965 (catcher_list_size): Likewise.
2966 (exceptions_state_mc_init): Likewise.
2967 (catcher_pop): Likewise.
2968 (exceptions_state_mc): Likewise.
2969 (exceptions_state_mc_action_iter): Likewise.
2970 (exceptions_state_mc_action_iter_1): Likewise.
2971 (throw_exception): Likewise.
2972 (exception_messages): Likewise.
2973 (exception_messages_size): Likewise.
2974 (throw_it): Likewise.
2975 (throw_verror): Likewise.
2976 (throw_vquit): Likewise.
2977 (throw_error): Likewise.
2978 (throw_quit): Likewise.
2979 (prepare_to_throw_exception): New function.
2981 2014-08-29 Gary Benson <gbenson@redhat.com>
2983 * common/gdb_setjmp.h: New file.
2984 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2985 * configure.ac: Move sigsetjmp check...
2986 * common/common.m4: ...here.
2987 * configure: Regenerate.
2988 * cp-support.c (SIGJMP_BUF): Delete.
2989 (SIGSETJMP): Likewise.
2990 (SIGLONGJMP): Likewise.
2991 * exceptions.h (gdb_setjmp.h): Include.
2992 (setjmp.h): Do not include.
2993 (EXCEPTIONS_SIGJMP_BUF): Delete.
2994 (EXCEPTIONS_SIGSETJMP): Likewise.
2995 (EXCEPTIONS_SIGLONGJMP): Likewise.
2996 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2998 * exceptions.c: Likewise.
3000 2014-08-29 Gary Benson <gbenson@redhat.com>
3002 * cleanups.h: Moved to...
3003 * common/cleanups.h: New file.
3004 * cleanups.c: Moved to...
3005 * common/cleanups.c: New file. Include common-defs.h and
3006 cleanups.h. Do not include defs.h.
3007 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3008 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3009 (cleanups.o): New rule.
3011 2014-08-29 Gary Benson <gbenson@redhat.com>
3013 * common/errors.h (internal_warning): New declaration.
3014 (internal_vwarning): Likewise.
3015 * common/errors.c (internal_warning): New function.
3016 * utils.h (internal_warning): Don't declare.
3017 (internal_vwarning): Likewise.
3018 * utils.c (internal_warning): Removed.
3020 2014-08-29 Gary Benson <gbenson@redhat.com>
3022 * main.c (captured_main): Use warning during startup.
3023 Prefix startup warning messages with command name.
3025 2014-08-29 Gary Benson <gbenson@redhat.com>
3027 * main.c (captured_main): Handle usage errors with error.
3029 2014-08-29 Gary Benson <gbenson@redhat.com>
3031 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3032 exit pair with a call to error. Wrap the message with _().
3034 2014-08-29 Gary Benson <gbenson@redhat.com>
3036 * main.c (captured_main): Replace a fprintf/exit
3037 pair with a call to error. Wrap the message with _().
3039 2014-08-29 Gary Benson <gbenson@redhat.com>
3041 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3042 pairs with calls to error. Wrap the message with _().
3044 2014-08-29 Gary Benson <gbenson@redhat.com>
3046 * utils.c (vwarning): Protect calls to target_terminal_ours
3049 2014-08-29 Gary Benson <gbenson@redhat.com>
3051 * exceptions.c (print_flush): Protect calls to
3052 target_terminal_ours and wrap_here.
3054 2014-08-29 Gary Benson <gbenson@redhat.com>
3056 * utils.h (filtered_printing_initialized): New declaration.
3057 * utils.c (abort_with_message): New function.
3058 (internal_vproblem): Use abort_with_message for first level
3059 recursive internal problems, and if gdb_stderr is not set up.
3060 Protect calls to target_terminal_ours, begin_line and query.
3062 2014-08-28 Doug Evans <dje@google.com>
3064 * symtab.c (in_prologue): Move definition to better spot.
3065 (skip_prologue_using_sal): Ditto.
3067 2014-08-28 Doug Evans <dje@google.com>
3069 * symtab.c (find_function_start_sal): Move definition to better spot.
3071 2014-08-28 Yao Qi <yao@codesourcery.com>
3073 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3074 found_stack_adjust in forward scan. Remove condition check
3075 on found_stack_adjust which is always true. Indent the code.
3077 2014-08-28 Yao Qi <yao@codesourcery.com>
3079 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3080 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3081 (dwarf_decode_lines): Remove argument
3082 want_line_info. Remove condition check on want_line_info.
3085 2014-08-27 Doug Evans <dje@google.com>
3087 * dwarf2read.c (dwarf_record_line): Fix typo.
3089 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3091 * target.h (struct target_ops::to_terminal_save_ours): Remove
3093 (target_terminal_save_ours): Remove macro.
3094 * target-delegates.c: Regenerate.
3095 * inf-child.c (inf_child_target): Don't set the nonexistent
3096 field to_terminal_save_ours.
3097 * inferior.h (child_terminal_save_ours): Remove declaration.
3098 * terminal.h (gdb_save_tty_state): New declaration.
3099 * inflow.c (child_terminal_save_ours): Rename to ...
3100 (gdb_save_tty_state): ... this.
3101 * tui/tui.c: Include terminal.h.
3102 (tui_enable): Use gdb_save_tty_state instead of
3103 target_terminal_save_ours.
3104 (tui_disable): Likewise.
3106 2014-08-25 Doug Evans <dje@google.com>
3108 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3109 Pass NULL instead of 0 for context pointer.
3111 2014-08-25 Yao Qi <yao@codesourcery.com>
3113 * dwarf2read.c: Fix grammatical error.
3115 2014-08-24 Yao Qi <yao@codesourcery.com>
3117 * dwarf2read.c (scan_partial_symbols): Update comments.
3118 Rename argument 'need_pc' with 'set_addrmap'.
3119 (add_partial_namespace): Rename argument 'need_pc' with
3121 (add_partial_module): Likewise.
3122 (add_partial_subprogram): Likewise. Update comments.
3123 (dwarf2_name): Fix typo.
3125 2014-08-22 Doug Evans <dje@google.com>
3128 * dwarf2read.c (dwarf_record_line_p): New function.
3129 (dwarf_decode_lines_1): Ignore subsequent line number entries
3130 for the same line if any entry had a non-zero discriminator.
3132 2014-08-22 Doug Evans <dje@google.com>
3134 * buildsym.h (record_line_ftype): New typedef.
3135 (record_line): Use it.
3136 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3137 (dwarf_decode_lines_1): Call them.
3139 2014-08-22 Yao Qi <yao@codesourcery.com>
3141 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3142 (ctf_end): Remove code.
3144 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3146 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3147 (linux_make_corefile_notes): call update_thread_list, protected against
3150 2014-08-21 Pedro Alves <palves@redhat.com>
3152 * infcmd.c (attach_command): Remove comment.
3154 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3156 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3157 unsigned LONGEST to ULONGEST.
3159 2014-08-20 Pedro Alves <palves@redhat.com>
3161 * Makefile.in (check-read1): New rule.
3163 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3165 * value.c (value_from_contents_and_address): Strip resolved_type's
3166 typedef layers before checking its TYPE_DATA_LOCATION.
3168 2014-08-20 Pedro Alves <palves@redhat.com>
3170 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3172 2014-08-20 Yao Qi <yao@codesourcery.com>
3174 * amd64-tdep.c (amd64_classify): Add a blank line after the
3175 example. Move "*/" to a new line.
3176 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3177 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3178 * dwarf2read.c (psymtab_include_file_name): Likewise.
3180 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3181 Pedro Alves <palves@redhat.com>
3185 * ada-lang.c (coerce_unspec_val_to_type): Use
3186 value_contents_copy_raw.
3187 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3188 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3189 * cp-valprint.c (cp_print_value_fields): Let the common printing
3190 code handle optimized out values.
3191 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3192 * d-valprint.c (dynamic_array_type): Use
3193 value_bits_any_optimized_out.
3194 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3195 check_any_valid fields.
3196 (check_pieced_value_bits): Delete and inline ...
3197 (check_pieced_synthetic_pointer): ... here.
3198 (check_pieced_value_validity): Delete.
3199 (check_pieced_value_invalid): Delete.
3200 (pieced_value_funcs): Remove check_validity and check_any_valid
3202 (read_pieced_value): Use mark_value_bits_optimized_out.
3203 (write_pieced_value): Switch to use
3204 mark_value_bytes_optimized_out.
3205 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3206 of assuming the whole value is optimized out.
3207 * findvar.c (read_frame_register_value): Remove special handling
3208 of optimized out registers.
3209 (value_from_register): Use mark_value_bytes_optimized_out.
3210 * frame-unwind.c (frame_unwind_got_optimized): Use
3211 mark_value_bytes_optimized_out.
3212 * jv-valprint.c (java_value_print): Adjust.
3213 (java_print_value_fields): Let the common printing code handle
3214 optimized out values.
3215 * mips-tdep.c (mips_print_register): Remove special handling of
3216 optimized out registers.
3217 * opencl-lang.c (lval_func_check_validity): Delete.
3218 (lval_func_check_any_valid): Delete.
3219 (opencl_value_funcs): Remove check_validity and check_any_valid
3221 * p-valprint.c (pascal_object_print_value_fields): Let the common
3222 printing code handle optimized out values.
3223 * stack.c (read_frame_arg): Remove special handling of optimized
3224 out values. Fetch both VAL and ENTRYVAL before comparing
3225 contents. Adjust to value_available_contents_eq rename.
3226 * valprint.c (valprint_check_validity)
3227 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3228 (val_print_array_elements): Adjust.
3229 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3230 (value_bits_any_optimized_out): New function.
3231 (value_entirely_covered_by_range_vector): New function, factored
3232 out from value_entirely_unavailable.
3233 (value_entirely_unavailable): Reimplement.
3234 (value_entirely_optimized_out): New function.
3235 (insert_into_bit_range_vector): New function, factored out from
3236 mark_value_bits_unavailable.
3237 (mark_value_bits_unavailable): Reimplement.
3238 (struct ranges_and_idx): New struct.
3239 (find_first_range_overlap_and_match): New function, factored out
3240 from value_available_contents_bits_eq.
3241 (value_available_contents_bits_eq): Rename to ...
3242 (value_contents_bits_eq): ... this. Check both unavailable
3243 contents and optimized out contents.
3244 (value_available_contents_eq): Rename to ...
3245 (value_contents_eq): ... this.
3246 (allocate_value_lazy): Remove reference to the old optimized_out
3248 (allocate_optimized_out_value): Use
3249 mark_value_bytes_optimized_out.
3250 (require_not_optimized_out): Adjust to check whether the
3251 optimized_out vec is empty.
3252 (ranges_copy_adjusted): New function, factored out from
3253 value_contents_copy_raw.
3254 (value_contents_copy_raw): Also copy the optimized out ranges.
3255 Assert the destination ranges aren't optimized out.
3256 (value_contents_copy): Update comment, remove call to
3257 require_not_optimized_out.
3258 (value_contents_equal): Adjust to check whether the optimized_out
3260 (set_value_optimized_out, value_optimized_out_const): Delete.
3261 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3263 (value_entirely_optimized_out, value_bits_valid): Delete.
3264 (value_copy): Take a VEC copy of the 'optimized_out' field.
3265 (value_primitive_field): Remove special handling of optimized out.
3266 (value_fetch_lazy): Assert that lazy values have no unavailable
3267 regions. Use value_bits_any_optimized_out. Remove some special
3268 handling for optimized out values.
3269 * value.h: Add intro comment about <optimized out> and
3271 (struct lval_funcs): Remove check_validity and check_any_valid
3273 (set_value_optimized_out, value_optimized_out_const): Remove.
3274 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3276 (value_bits_any_optimized_out): New declaration.
3277 (value_bits_valid): Delete declaration.
3278 (value_available_contents_eq): Rename to ...
3279 (value_contents_eq): ... this, and extend comments.
3281 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3283 Fix -fsanitize=address on unreadable inferior strings.
3284 * valprint.c (val_print_string): Fix access before BUFFER.
3286 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3288 * target.c (target_struct_size): Remove.
3289 (target_struct_allocsize): Remove.
3290 (DEFAULT_ALLOCSIZE): Remove.
3291 (target_ops_p): New typedef.
3292 (DEF_VEC_P (target_ops_p)): New vector type.
3293 (target_structs): Change type to VEC (target_ops_p).
3294 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3295 (find_default_run_target): Rewrite for loop following changes to
3298 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3300 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3301 Adjust code accordingly. Adjust function description comment.
3303 2014-08-19 Yao Qi <yao@codesourcery.com>
3305 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3308 2014-08-19 Alan Modra <amodra@gmail.com>
3310 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3311 * config.in: Regenerate.
3312 * configure: Regenerate.
3314 2014-08-19 Tom Tromey <tromey@redhat.com>
3315 Gary Benson <gbenson@redhat.com>
3317 * common/common-debug.h: New file.
3318 * common/common-debug.c: Likewise.
3319 * debug.c: Likewise.
3320 * Makefile.in (SFILES): Add common/common-debug.c.
3321 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3322 (COMMON_OBS): Add common-debug.o and debug.o.
3323 (common-debug.o): New rule.
3324 * common/common-defs.h: Include common-debug.h.
3325 * common/agent.c (debug_agent_printf): New function.
3326 (DEBUG_AGENT): Redefine.
3327 * nat/i386-dregs.c (debug_printf): Undefine.
3329 2014-08-19 Gary Benson <gbenson@redhat.com>
3331 * common/common-defs.h: Include print-utils.h.
3332 * utils.h: Do not include print-utils.h.
3334 2014-08-19 Tom Tromey <tromey@redhat.com>
3335 Gary Benson <gbenson@redhat.com>
3337 * common/common-types.h: New file.
3338 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3339 * common/common-defs.h: Include common-types.h.
3340 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3343 2014-08-19 Tom Tromey <tromey@redhat.com>
3344 Gary Benson <gbenson@redhat.com>
3346 * common/errors.h: New file.
3347 * common/errors.c: Likewise.
3348 * Makefile.in (SFILES): Add common/errors.c.
3349 (HFILES_NO_SRCDIR): Add common/errors.h.
3350 (COMMON_OBS): Add errors.o.
3351 (errors.o): New rule.
3352 * common/common-defs.h: Include errors.h.
3353 * utils.h (perror_with_name, error, verror, warning, vwarning):
3355 * common/common-utils.h: (malloc_failure, internal_error):
3358 2014-08-19 Gary Benson <gbenson@redhat.com>
3360 * utils.c (internal_vproblem): Always print the message.
3362 2014-08-18 Doug Evans <dje@google.com>
3364 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3366 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3368 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3369 Return 0 if TYPE is dynamic.
3370 (print_range): Add handling of dynamic ranges.
3372 2014-08-18 Keven Boell <keven.boell@intel.com>
3373 Joel Brobecker <brobecker@adacore.com>
3375 * gdbtypes.h (struct main_type): Add field "data_location".
3376 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3377 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3378 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3379 a dynamic data location.
3380 (resolve_dynamic_type): Add DW_AT_data_location handling.
3381 (copy_recursive, copy_type): Copy the data_location information
3383 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3384 * value.c (value_from_contents_and_address): Add
3385 DW_AT_data_location handling.
3387 2014-08-18 Keven Boell <keven.boell@intel.com>
3388 Joel Brobecker <brobecker@adacore.com>
3390 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3391 field "get_object_address".
3392 * dwarf2expr.c (execute_stack_op): Add handling for
3393 DW_OP_push_object_address.
3394 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3395 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3396 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3397 (dwarf_expr_get_obj_addr): New function.
3398 (dwarf_expr_ctx_funcs): Add get_object_address field.
3399 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3400 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3401 (dwarf2_evaluate_property): Add parameter "address". Use it.
3402 (needs_get_obj_addr): New function.
3403 (needs_frame_ctx_funcs): Add get_object_address field.
3404 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3405 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3406 (resolve_dynamic_array): Likewise.
3408 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3410 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3411 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3412 fixed value for records and unions for which some GNAT encodings
3415 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3417 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3418 rewrite to avoid "else if" and "else" constructs. Should be
3419 a no-op in practice.
3421 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3423 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3426 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3429 * eval.c: Update all calls to find_overload_match.
3430 * valarith.c: Likewise.
3431 (value_user_defined_cpp_op, value_user_defined_op): New
3432 argument NOSIDE. Update all callers.
3433 * valops.c (find_overload_match): New argument NOSIDE.
3434 * value.h (find_overload_match): Update signature.
3436 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3438 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3439 'items' methods instead of 'iteritems' method on dictionaries.
3441 2014-08-15 Doug Evans <dje@google.com>
3443 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3446 2014-08-15 Doug Evans <dje@google.com>
3448 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3450 2014-08-15 Doug Evans <dje@google.com>
3452 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3454 2014-08-15 Doug Evans <dje@google.com>
3456 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3459 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3461 * dcache.h: Include target.h, to avoid compile time warnings.
3463 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3465 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3466 frame_info" partial declaration.
3467 * gdbarch.h: Regenerate.
3469 2014-08-15 Yao Qi <yao@codesourcery.com>
3471 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3472 Add parameter 'decode_for_pst_p'. Callers update.
3474 2014-08-13 Yao Qi <yao@codesourcery.com>
3477 * configure.ac: Use local variable 'pos'.
3478 * configure: Regenerated.
3480 2014-08-11 Doug Evans <dje@google.com>
3482 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3483 message, it is redundant with "Reading symbols from ..." message.
3485 2014-08-10 Doug Evans <xdje42@gmail.com>
3487 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3489 2014-08-09 Yao Qi <yao@codesourcery.com>
3492 * remote.c (remote_xfer_partial): Remove dead code.
3494 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3496 * ia64-linux-tdep.c: Include "regset.h".
3497 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3498 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3499 (ia64_linux_supply_fpregset): New function.
3500 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3501 (ia64_linux_regset_from_core_section): New function.
3502 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3505 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3507 * m68klinux-tdep.c: Include "regset.h".
3508 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3509 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3510 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3511 (m68k_linux_regset_from_core_section): New function.
3512 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3515 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3517 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3518 function. Move logic to...
3519 (tilegx_linux_regmap): ... this new register map.
3520 (tilegx_linux_regset): Refer to register map, replace supply
3521 method by regcache_supply_regset, and add collect method.
3522 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3523 TILEGX_FIRST_EASY_REGNUM.
3525 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3527 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3528 that calls regcache_supply_regset and handles the EPC register
3529 separately. Move main logic to...
3530 (score7_linux_gregmap): ... this new register map.
3531 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3532 (score7_linux_gregset): Refer to register map. Add collect method.
3533 (score7_linux_regset_from_core_section): Replace
3534 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3535 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3536 (struct regset): Delete unused forward declaraction.
3537 (struct pt_regs): Delete structure definition.
3538 (elf_gregset_t): Delete typedef.
3540 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3542 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3543 (nios2_core_regset): Add collect method.
3545 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3547 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3548 platform-independent and don't write to read-only input buffer.
3549 (m32r_linux_collect_gregset): New function.
3550 (m32r_linux_gregset): Add collect method.
3552 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3554 * hppa-linux-tdep.c (greg_map): Rename to...
3555 (hppa_linux_gregmap): ... this. Also convert to
3556 regcache_map_entry format.
3557 (hppa_linux_supply_regset): Delete function.
3558 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3559 (hppa_linux_fpregmap): ... this new register map.
3560 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3561 register map, replace supply method by regcache_supply_regset, and
3562 add collect method regcache_collect_regset.
3564 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3566 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3567 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3568 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3569 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3570 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3571 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3572 (frv_linux_supply_gregset): Replace main logic by call to
3573 regcache_supply_regset, but keep clearing gr32-gr63.
3574 (frv_linux_supply_fpregset): Delete function.
3575 (frv_linux_gregset): Refer to appropriate register map and add
3576 regcache_collect_regset as the collect method.
3577 (frv_linux_fpregset): Likewise. Also exchange the supply method
3578 by regcache_supply_regset.
3580 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3582 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3583 by call to alpha_supply_int_regs.
3584 (alpha_linux_collect_gregset): New function.
3585 (alpha_linux_supply_fpregset): Replace logic by call to
3586 alpha_supply_fp_regs.
3587 (alpha_linux_collect_fpregset): New function.
3588 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3590 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3592 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3593 by call to regcache_collect_regset.
3594 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3595 instead of aarch64_linux_supply_gregset/_fpregset.
3596 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3597 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3598 header file instead.
3599 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3600 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3601 functions. Move logic to ...
3602 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3604 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3605 refer to new register maps, replace *_regset_from_core by
3606 regcache_supply_regset, and also use regcache_collect_regset.
3607 * aarch64-linux-tdep.h: Include "regset.h".
3608 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3610 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3611 macros, moved from C source file.
3612 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3613 variable declarations.
3615 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3617 * s390-linux-nat.c: Include "regset.h".
3618 (regmap_gregset): Delete macro.
3619 (s390_64_regmap_gregset): New register map for
3620 regcache_supply/_collect_regset.
3621 (s390_64_gregset): New regset.
3622 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3623 (regmap_fpregset): Delete macro.
3624 (s390_native_supply, s390_native_collect): Delete functions.
3625 (supply_gregset, fill_gregset): Replace s390-specific regmap
3626 handling by a call to regcache_supply/_collect_regset.
3627 (supply_fpregset, fill_fpregset): Call regcache_supply/
3628 _collect_regset instead of s390_native_supply/_collect.
3629 (fetch_regset, store_regset): Likewise. Also change the last
3630 parameter to a regset instead of a regmap.
3631 (s390_linux_fetch_inferior_registers)
3632 (390_linux_store_inferior_registers): Adjust last parameter in
3633 calls to fetch_regset and store_regset.
3634 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3635 (s390_gregmap): ... this. Also make static const and convert to
3636 regcache_map_entry format.
3637 (s390x_regmap_gregset): Delete.
3638 (s390_regmap_fpregset): Rename to...
3639 (s390_fpregmap): ... this. Make static const and convert to
3640 regcache_map_entry format.
3641 (s390_regmap_upper, s390_regmap_last_break)
3642 (s390x_regmap_last_break, s390_regmap_system_call)
3643 (s390_regmap_tdb): Likewise.
3644 (s390_supply_regset, s390_collect_regset): Remove functions.
3645 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3647 (s390_gregset, s390_fpregset, s390_upper_regset)
3648 (s390_last_break_regset, s390x_last_break_regset)
3649 (s390_system_call_regset, s390_tdb_regset): Make global and
3650 replace s390_supply/_collect_regset by regcache_supply/
3652 (s390x_gregset): Delete.
3653 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3654 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3655 (s390_regmap_fpregset, s390_regmap_last_break)
3656 (s390x_regmap_last_break, s390_regmap_system_call)
3657 (s390_regmap_tdb): Delete global variable declarations.
3658 (s390_gregset, s390_fpregset, s390_last_break_regset)
3659 (s390x_last_break_regset, s390_system_call_regset)
3660 (s390_tdb_regset): New global variable declarations.
3662 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3664 * regcache.c: Include "regset.h".
3665 (regcache_transfer_regset): New local function.
3666 (regcache_supply_regset, regcache_collect_regset): New functions.
3667 * regcache.h (struct regcache_map_entry): New structure.
3668 (REGCACHE_MAP_SKIP): New enum value.
3669 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3671 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3673 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3674 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3675 (ppc_linux_collect_gregset ): Likewise.
3676 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3677 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3678 (ppc_collect_vrregset): Likewise.
3679 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3682 2014-08-07 Yao Qi <yao@codesourcery.com>
3684 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3685 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3686 * remote.c (remote_read_bytes): Likewise.
3688 2014-08-07 Yao Qi <yao@codesourcery.com>
3690 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3692 2014-08-07 Yao Qi <yao@codesourcery.com>
3695 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3696 TARGET_XFER_OK instead of 0.
3698 2014-08-07 Gary Benson <gbenson@redhat.com>
3700 * common/common-defs.h: Include errno.h.
3701 * defs.h: Do not include errno.h.
3702 * ada-typeprint.c: Likewise.
3703 * c-typeprint.c: Likewise.
3704 * core-regset.c: Likewise.
3705 * corefile.c: Likewise.
3706 * corelow.c: Likewise.
3707 * event-loop.c: Likewise.
3708 * f-typeprint.c: Likewise.
3709 * gnu-nat.c: Likewise.
3710 * go32-nat.c: Likewise.
3711 * i386gnu-nat.c: Likewise.
3712 * m2-typeprint.c: Likewise.
3713 * nat/linux-btrace.c: Likewise.
3714 * p-typeprint.c: Likewise.
3715 * procfs.c: Likewise.
3716 * remote-sim.c: Likewise.
3717 * rs6000-nat.c: Likewise.
3718 * target.c: Likewise.
3719 * typeprint.c: Likewise.
3720 * ui-file.c: Likewise.
3721 * valops.c: Likewise.
3722 * valprint.c: Likewise.
3724 2014-08-07 Gary Benson <gbenson@redhat.com>
3726 * common/common-defs.h: Include string.h.
3727 * aarch64-tdep.c: Do not include string.h.
3728 * ada-exp.y: Likewise.
3729 * ada-lang.c: Likewise.
3730 * ada-lex.l: Likewise.
3731 * ada-typeprint.c: Likewise.
3732 * ada-valprint.c: Likewise.
3733 * aix-thread.c: Likewise.
3734 * alpha-linux-tdep.c: Likewise.
3735 * alpha-mdebug-tdep.c: Likewise.
3736 * alpha-nat.c: Likewise.
3737 * alpha-osf1-tdep.c: Likewise.
3738 * alpha-tdep.c: Likewise.
3739 * alphanbsd-tdep.c: Likewise.
3740 * amd64-dicos-tdep.c: Likewise.
3741 * amd64-linux-tdep.c: Likewise.
3742 * amd64-nat.c: Likewise.
3743 * amd64-sol2-tdep.c: Likewise.
3744 * amd64fbsd-tdep.c: Likewise.
3745 * amd64obsd-tdep.c: Likewise.
3746 * arch-utils.c: Likewise.
3747 * arm-linux-nat.c: Likewise.
3748 * arm-linux-tdep.c: Likewise.
3749 * arm-tdep.c: Likewise.
3750 * arm-wince-tdep.c: Likewise.
3751 * armbsd-tdep.c: Likewise.
3752 * armnbsd-nat.c: Likewise.
3753 * armnbsd-tdep.c: Likewise.
3754 * armobsd-tdep.c: Likewise.
3755 * avr-tdep.c: Likewise.
3756 * ax-gdb.c: Likewise.
3757 * ax-general.c: Likewise.
3758 * bcache.c: Likewise.
3759 * bfin-tdep.c: Likewise.
3760 * breakpoint.c: Likewise.
3761 * build-id.c: Likewise.
3762 * buildsym.c: Likewise.
3763 * c-exp.y: Likewise.
3764 * c-lang.c: Likewise.
3765 * c-typeprint.c: Likewise.
3766 * c-valprint.c: Likewise.
3767 * charset.c: Likewise.
3768 * cli-out.c: Likewise.
3769 * cli/cli-cmds.c: Likewise.
3770 * cli/cli-decode.c: Likewise.
3771 * cli/cli-dump.c: Likewise.
3772 * cli/cli-interp.c: Likewise.
3773 * cli/cli-logging.c: Likewise.
3774 * cli/cli-script.c: Likewise.
3775 * cli/cli-setshow.c: Likewise.
3776 * cli/cli-utils.c: Likewise.
3777 * coffread.c: Likewise.
3778 * common/agent.c: Likewise.
3779 * common/buffer.c: Likewise.
3780 * common/buffer.h: Likewise.
3781 * common/common-utils.c: Likewise.
3782 * common/filestuff.c: Likewise.
3783 * common/filestuff.c: Likewise.
3784 * common/format.c: Likewise.
3785 * common/print-utils.c: Likewise.
3786 * common/rsp-low.c: Likewise.
3787 * common/signals.c: Likewise.
3788 * common/vec.h: Likewise.
3789 * common/xml-utils.c: Likewise.
3790 * core-regset.c: Likewise.
3791 * corefile.c: Likewise.
3792 * corelow.c: Likewise.
3793 * cp-abi.c: Likewise.
3794 * cp-name-parser.y: Likewise.
3795 * cp-support.c: Likewise.
3796 * cp-valprint.c: Likewise.
3797 * cris-tdep.c: Likewise.
3798 * d-exp.y: Likewise.
3799 * darwin-nat.c: Likewise.
3800 * dbxread.c: Likewise.
3801 * dcache.c: Likewise.
3802 * demangle.c: Likewise.
3803 * dicos-tdep.c: Likewise.
3804 * disasm.c: Likewise.
3805 * doublest.c: Likewise.
3806 * dsrec.c: Likewise.
3807 * dummy-frame.c: Likewise.
3808 * dwarf2-frame.c: Likewise.
3809 * dwarf2loc.c: Likewise.
3810 * dwarf2read.c: Likewise.
3811 * elfread.c: Likewise.
3812 * environ.c: Likewise.
3814 * event-loop.c: Likewise.
3815 * exceptions.c: Likewise.
3817 * expprint.c: Likewise.
3818 * f-exp.y: Likewise.
3819 * f-lang.c: Likewise.
3820 * f-typeprint.c: Likewise.
3821 * f-valprint.c: Likewise.
3822 * fbsd-nat.c: Likewise.
3823 * findcmd.c: Likewise.
3824 * findvar.c: Likewise.
3825 * fork-child.c: Likewise.
3826 * frame.c: Likewise.
3827 * frv-linux-tdep.c: Likewise.
3828 * frv-tdep.c: Likewise.
3830 * gdb_bfd.c: Likewise.
3831 * gdbarch.c: Likewise.
3832 * gdbarch.sh: Likewise.
3833 * gdbtypes.c: Likewise.
3834 * gnu-nat.c: Likewise.
3835 * gnu-v2-abi.c: Likewise.
3836 * gnu-v3-abi.c: Likewise.
3837 * go-exp.y: Likewise.
3838 * go-lang.c: Likewise.
3839 * go32-nat.c: Likewise.
3840 * guile/guile.c: Likewise.
3841 * guile/scm-auto-load.c: Likewise.
3842 * hppa-hpux-tdep.c: Likewise.
3843 * hppa-linux-nat.c: Likewise.
3844 * hppanbsd-tdep.c: Likewise.
3845 * hppaobsd-tdep.c: Likewise.
3846 * i386-cygwin-tdep.c: Likewise.
3847 * i386-dicos-tdep.c: Likewise.
3848 * i386-linux-tdep.c: Likewise.
3849 * i386-nto-tdep.c: Likewise.
3850 * i386-sol2-tdep.c: Likewise.
3851 * i386-tdep.c: Likewise.
3852 * i386bsd-tdep.c: Likewise.
3853 * i386gnu-nat.c: Likewise.
3854 * i386nbsd-tdep.c: Likewise.
3855 * i386obsd-tdep.c: Likewise.
3856 * i387-tdep.c: Likewise.
3857 * ia64-libunwind-tdep.c: Likewise.
3858 * ia64-linux-nat.c: Likewise.
3859 * inf-child.c: Likewise.
3860 * inf-ptrace.c: Likewise.
3861 * inf-ttrace.c: Likewise.
3862 * infcall.c: Likewise.
3863 * infcmd.c: Likewise.
3864 * inflow.c: Likewise.
3865 * infrun.c: Likewise.
3866 * interps.c: Likewise.
3867 * iq2000-tdep.c: Likewise.
3868 * irix5-nat.c: Likewise.
3869 * jv-exp.y: Likewise.
3870 * jv-lang.c: Likewise.
3871 * jv-typeprint.c: Likewise.
3872 * jv-valprint.c: Likewise.
3873 * language.c: Likewise.
3874 * linux-fork.c: Likewise.
3875 * linux-nat.c: Likewise.
3876 * lm32-tdep.c: Likewise.
3877 * m2-exp.y: Likewise.
3878 * m2-typeprint.c: Likewise.
3879 * m32c-tdep.c: Likewise.
3880 * m32r-linux-nat.c: Likewise.
3881 * m32r-linux-tdep.c: Likewise.
3882 * m32r-rom.c: Likewise.
3883 * m32r-tdep.c: Likewise.
3884 * m68hc11-tdep.c: Likewise.
3885 * m68k-tdep.c: Likewise.
3886 * m68kbsd-tdep.c: Likewise.
3887 * m68klinux-nat.c: Likewise.
3888 * m68klinux-tdep.c: Likewise.
3889 * m88k-tdep.c: Likewise.
3890 * machoread.c: Likewise.
3891 * macrocmd.c: Likewise.
3893 * mdebugread.c: Likewise.
3894 * mem-break.c: Likewise.
3895 * memattr.c: Likewise.
3896 * memory-map.c: Likewise.
3897 * mep-tdep.c: Likewise.
3898 * mi/mi-cmd-break.c: Likewise.
3899 * mi/mi-cmd-disas.c: Likewise.
3900 * mi/mi-cmd-env.c: Likewise.
3901 * mi/mi-cmd-stack.c: Likewise.
3902 * mi/mi-cmd-var.c: Likewise.
3903 * mi/mi-cmds.c: Likewise.
3904 * mi/mi-console.c: Likewise.
3905 * mi/mi-getopt.c: Likewise.
3906 * mi/mi-interp.c: Likewise.
3907 * mi/mi-main.c: Likewise.
3908 * mi/mi-parse.c: Likewise.
3909 * microblaze-rom.c: Likewise.
3910 * microblaze-tdep.c: Likewise.
3911 * mingw-hdep.c: Likewise.
3912 * minidebug.c: Likewise.
3913 * minsyms.c: Likewise.
3914 * mips-irix-tdep.c: Likewise.
3915 * mips-linux-tdep.c: Likewise.
3916 * mips-tdep.c: Likewise.
3917 * mips64obsd-tdep.c: Likewise.
3918 * mipsnbsd-tdep.c: Likewise.
3919 * mipsread.c: Likewise.
3920 * mn10300-linux-tdep.c: Likewise.
3921 * mn10300-tdep.c: Likewise.
3922 * monitor.c: Likewise.
3923 * moxie-tdep.c: Likewise.
3924 * mt-tdep.c: Likewise.
3925 * nat/linux-btrace.c: Likewise.
3926 * nat/linux-osdata.c: Likewise.
3927 * nat/linux-procfs.c: Likewise.
3928 * nat/linux-ptrace.c: Likewise.
3929 * nat/linux-waitpid.c: Likewise.
3930 * nbsd-tdep.c: Likewise.
3931 * nios2-linux-tdep.c: Likewise.
3932 * nto-procfs.c: Likewise.
3933 * nto-tdep.c: Likewise.
3934 * objc-lang.c: Likewise.
3935 * objfiles.c: Likewise.
3936 * opencl-lang.c: Likewise.
3937 * osabi.c: Likewise.
3938 * osdata.c: Likewise.
3939 * p-exp.y: Likewise.
3940 * p-lang.c: Likewise.
3941 * p-typeprint.c: Likewise.
3942 * parse.c: Likewise.
3943 * posix-hdep.c: Likewise.
3944 * ppc-linux-nat.c: Likewise.
3945 * ppc-sysv-tdep.c: Likewise.
3946 * ppcfbsd-tdep.c: Likewise.
3947 * ppcnbsd-tdep.c: Likewise.
3948 * ppcobsd-tdep.c: Likewise.
3949 * printcmd.c: Likewise.
3950 * procfs.c: Likewise.
3951 * prologue-value.c: Likewise.
3952 * python/py-auto-load.c: Likewise.
3953 * python/py-gdb-readline.c: Likewise.
3954 * ravenscar-thread.c: Likewise.
3955 * regcache.c: Likewise.
3956 * registry.c: Likewise.
3957 * remote-fileio.c: Likewise.
3958 * remote-m32r-sdi.c: Likewise.
3959 * remote-mips.c: Likewise.
3960 * remote-notif.c: Likewise.
3961 * remote-sim.c: Likewise.
3962 * remote.c: Likewise.
3963 * reverse.c: Likewise.
3964 * rs6000-aix-tdep.c: Likewise.
3965 * ser-base.c: Likewise.
3966 * ser-go32.c: Likewise.
3967 * ser-mingw.c: Likewise.
3968 * ser-pipe.c: Likewise.
3969 * ser-tcp.c: Likewise.
3970 * ser-unix.c: Likewise.
3971 * serial.c: Likewise.
3972 * sh-tdep.c: Likewise.
3973 * sh64-tdep.c: Likewise.
3974 * shnbsd-tdep.c: Likewise.
3976 * sol-thread.c: Likewise.
3977 * solib-dsbt.c: Likewise.
3978 * solib-frv.c: Likewise.
3979 * solib-osf.c: Likewise.
3980 * solib-som.c: Likewise.
3981 * solib-spu.c: Likewise.
3982 * solib-target.c: Likewise.
3983 * solib.c: Likewise.
3984 * somread.c: Likewise.
3985 * source.c: Likewise.
3986 * sparc-nat.c: Likewise.
3987 * sparc-sol2-tdep.c: Likewise.
3988 * sparc-tdep.c: Likewise.
3989 * sparc64-tdep.c: Likewise.
3990 * sparc64fbsd-tdep.c: Likewise.
3991 * sparc64nbsd-tdep.c: Likewise.
3992 * sparcnbsd-tdep.c: Likewise.
3993 * spu-linux-nat.c: Likewise.
3994 * spu-multiarch.c: Likewise.
3995 * spu-tdep.c: Likewise.
3996 * stabsread.c: Likewise.
3997 * stack.c: Likewise.
3998 * std-regs.c: Likewise.
3999 * symfile.c: Likewise.
4000 * symmisc.c: Likewise.
4001 * symtab.c: Likewise.
4002 * target.c: Likewise.
4003 * thread.c: Likewise.
4004 * tilegx-linux-nat.c: Likewise.
4005 * tilegx-tdep.c: Likewise.
4007 * tracepoint.c: Likewise.
4008 * tui/tui-command.c: Likewise.
4009 * tui/tui-data.c: Likewise.
4010 * tui/tui-disasm.c: Likewise.
4011 * tui/tui-file.c: Likewise.
4012 * tui/tui-layout.c: Likewise.
4013 * tui/tui-out.c: Likewise.
4014 * tui/tui-regs.c: Likewise.
4015 * tui/tui-source.c: Likewise.
4016 * tui/tui-stack.c: Likewise.
4017 * tui/tui-win.c: Likewise.
4018 * tui/tui-windata.c: Likewise.
4019 * tui/tui-winsource.c: Likewise.
4020 * typeprint.c: Likewise.
4021 * ui-file.c: Likewise.
4022 * ui-out.c: Likewise.
4023 * user-regs.c: Likewise.
4024 * utils.c: Likewise.
4025 * v850-tdep.c: Likewise.
4026 * valarith.c: Likewise.
4027 * valops.c: Likewise.
4028 * valprint.c: Likewise.
4029 * value.c: Likewise.
4030 * varobj.c: Likewise.
4031 * vax-tdep.c: Likewise.
4032 * vaxnbsd-tdep.c: Likewise.
4033 * vaxobsd-tdep.c: Likewise.
4034 * windows-nat.c: Likewise.
4035 * xcoffread.c: Likewise.
4036 * xml-support.c: Likewise.
4037 * xstormy16-tdep.c: Likewise.
4038 * xtensa-linux-nat.c: Likewise.
4040 2014-08-07 Gary Benson <gbenson@redhat.com>
4042 * common/common-defs.h: Include gdb_assert.h.
4043 * aarch64-tdep.c: Do not include gdb_assert.h.
4044 * addrmap.c: Likewise.
4045 * aix-thread.c: Likewise.
4046 * alpha-linux-tdep.c: Likewise.
4047 * alpha-mdebug-tdep.c: Likewise.
4048 * alphanbsd-tdep.c: Likewise.
4049 * amd64-nat.c: Likewise.
4050 * amd64-tdep.c: Likewise.
4051 * amd64bsd-nat.c: Likewise.
4052 * amd64fbsd-nat.c: Likewise.
4053 * amd64fbsd-tdep.c: Likewise.
4054 * amd64nbsd-nat.c: Likewise.
4055 * amd64nbsd-tdep.c: Likewise.
4056 * amd64obsd-nat.c: Likewise.
4057 * amd64obsd-tdep.c: Likewise.
4058 * arch-utils.c: Likewise.
4059 * arm-tdep.c: Likewise.
4060 * armbsd-tdep.c: Likewise.
4062 * bcache.c: Likewise.
4063 * bfin-tdep.c: Likewise.
4064 * blockframe.c: Likewise.
4065 * breakpoint.c: Likewise.
4066 * bsd-kvm.c: Likewise.
4067 * bsd-uthread.c: Likewise.
4068 * buildsym.c: Likewise.
4069 * c-exp.y: Likewise.
4070 * c-lang.c: Likewise.
4071 * charset.c: Likewise.
4072 * cleanups.c: Likewise.
4073 * cli-out.c: Likewise.
4074 * cli/cli-decode.c: Likewise.
4075 * cli/cli-dump.c: Likewise.
4076 * cli/cli-logging.c: Likewise.
4077 * cli/cli-script.c: Likewise.
4078 * cli/cli-utils.c: Likewise.
4079 * coffread.c: Likewise.
4080 * common/common-utils.c: Likewise.
4081 * common/queue.h: Likewise.
4082 * common/signals.c: Likewise.
4083 * common/vec.h: Likewise.
4084 * complaints.c: Likewise.
4085 * completer.c: Likewise.
4086 * corelow.c: Likewise.
4087 * cp-abi.c: Likewise.
4088 * cp-name-parser.y: Likewise.
4089 * cp-namespace.c: Likewise.
4090 * cp-support.c: Likewise.
4091 * cris-tdep.c: Likewise.
4092 * dbxread.c: Likewise.
4093 * dictionary.c: Likewise.
4094 * doublest.c: Likewise.
4095 * dsrec.c: Likewise.
4096 * dummy-frame.c: Likewise.
4097 * dwarf2-frame-tailcall.c: Likewise.
4098 * dwarf2-frame.c: Likewise.
4099 * dwarf2expr.c: Likewise.
4100 * dwarf2loc.c: Likewise.
4101 * dwarf2read.c: Likewise.
4103 * event-loop.c: Likewise.
4104 * exceptions.c: Likewise.
4105 * expprint.c: Likewise.
4106 * f-valprint.c: Likewise.
4107 * fbsd-nat.c: Likewise.
4108 * findvar.c: Likewise.
4109 * frame-unwind.c: Likewise.
4110 * frame.c: Likewise.
4111 * frv-tdep.c: Likewise.
4112 * gcore.c: Likewise.
4113 * gdb-dlfcn.c: Likewise.
4114 * gdb_bfd.c: Likewise.
4115 * gdbarch.c: Likewise.
4116 * gdbarch.sh: Likewise.
4117 * gdbtypes.c: Likewise.
4118 * gnu-nat.c: Likewise.
4119 * gnu-v3-abi.c: Likewise.
4120 * go-lang.c: Likewise.
4121 * guile/scm-exception.c: Likewise.
4122 * guile/scm-gsmob.c: Likewise.
4123 * guile/scm-lazy-string.c: Likewise.
4124 * guile/scm-math.c: Likewise.
4125 * guile/scm-pretty-print.c: Likewise.
4126 * guile/scm-safe-call.c: Likewise.
4127 * guile/scm-utils.c: Likewise.
4128 * guile/scm-value.c: Likewise.
4129 * h8300-tdep.c: Likewise.
4130 * hppa-hpux-nat.c: Likewise.
4131 * hppa-tdep.c: Likewise.
4132 * hppanbsd-tdep.c: Likewise.
4133 * hppaobsd-tdep.c: Likewise.
4134 * i386-darwin-nat.c: Likewise.
4135 * i386-darwin-tdep.c: Likewise.
4136 * i386-nto-tdep.c: Likewise.
4137 * i386-tdep.c: Likewise.
4138 * i386bsd-nat.c: Likewise.
4139 * i386fbsd-tdep.c: Likewise.
4140 * i386gnu-nat.c: Likewise.
4141 * i386nbsd-tdep.c: Likewise.
4142 * i386obsd-tdep.c: Likewise.
4143 * i387-tdep.c: Likewise.
4144 * ia64-libunwind-tdep.c: Likewise.
4145 * ia64-tdep.c: Likewise.
4146 * inf-ptrace.c: Likewise.
4147 * inf-ttrace.c: Likewise.
4148 * infcall.c: Likewise.
4149 * infcmd.c: Likewise.
4150 * infrun.c: Likewise.
4151 * inline-frame.c: Likewise.
4152 * interps.c: Likewise.
4153 * jv-lang.c: Likewise.
4154 * jv-typeprint.c: Likewise.
4155 * linux-fork.c: Likewise.
4156 * linux-nat.c: Likewise.
4157 * linux-thread-db.c: Likewise.
4158 * m32c-tdep.c: Likewise.
4159 * m32r-linux-nat.c: Likewise.
4160 * m32r-tdep.c: Likewise.
4161 * m68k-tdep.c: Likewise.
4162 * m68kbsd-nat.c: Likewise.
4163 * m68kbsd-tdep.c: Likewise.
4164 * m88k-tdep.c: Likewise.
4165 * machoread.c: Likewise.
4166 * macroexp.c: Likewise.
4167 * macrotab.c: Likewise.
4168 * maint.c: Likewise.
4169 * mdebugread.c: Likewise.
4170 * memory-map.c: Likewise.
4171 * mep-tdep.c: Likewise.
4172 * mi/mi-common.c: Likewise.
4173 * microblaze-tdep.c: Likewise.
4174 * mingw-hdep.c: Likewise.
4175 * mips-linux-nat.c: Likewise.
4176 * mips-linux-tdep.c: Likewise.
4177 * mips-tdep.c: Likewise.
4178 * mips64obsd-tdep.c: Likewise.
4179 * mipsnbsd-tdep.c: Likewise.
4180 * mn10300-linux-tdep.c: Likewise.
4181 * mn10300-tdep.c: Likewise.
4182 * moxie-tdep.c: Likewise.
4183 * mt-tdep.c: Likewise.
4184 * nat/linux-btrace.c: Likewise.
4185 * nat/linux-osdata.c: Likewise.
4186 * nat/linux-ptrace.c: Likewise.
4187 * nat/mips-linux-watch.c: Likewise.
4188 * nios2-linux-tdep.c: Likewise.
4189 * nios2-tdep.c: Likewise.
4190 * objc-lang.c: Likewise.
4191 * objfiles.c: Likewise.
4192 * obsd-nat.c: Likewise.
4193 * opencl-lang.c: Likewise.
4194 * osabi.c: Likewise.
4195 * parse.c: Likewise.
4196 * ppc-linux-nat.c: Likewise.
4197 * ppc-sysv-tdep.c: Likewise.
4198 * ppcfbsd-nat.c: Likewise.
4199 * ppcfbsd-tdep.c: Likewise.
4200 * ppcnbsd-nat.c: Likewise.
4201 * ppcnbsd-tdep.c: Likewise.
4202 * ppcobsd-nat.c: Likewise.
4203 * ppcobsd-tdep.c: Likewise.
4204 * printcmd.c: Likewise.
4205 * procfs.c: Likewise.
4206 * prologue-value.c: Likewise.
4207 * psymtab.c: Likewise.
4208 * python/py-lazy-string.c: Likewise.
4209 * python/py-value.c: Likewise.
4210 * regcache.c: Likewise.
4211 * reggroups.c: Likewise.
4212 * registry.c: Likewise.
4213 * remote-sim.c: Likewise.
4214 * remote.c: Likewise.
4215 * rs6000-aix-tdep.c: Likewise.
4216 * rs6000-tdep.c: Likewise.
4217 * s390-linux-tdep.c: Likewise.
4218 * score-tdep.c: Likewise.
4219 * ser-base.c: Likewise.
4220 * ser-mingw.c: Likewise.
4221 * sh-tdep.c: Likewise.
4222 * sh64-tdep.c: Likewise.
4223 * solib-darwin.c: Likewise.
4224 * solib-spu.c: Likewise.
4225 * solib-svr4.c: Likewise.
4226 * source.c: Likewise.
4227 * sparc-nat.c: Likewise.
4228 * sparc-sol2-tdep.c: Likewise.
4229 * sparc-tdep.c: Likewise.
4230 * sparc64-sol2-tdep.c: Likewise.
4231 * sparc64-tdep.c: Likewise.
4232 * sparc64fbsd-tdep.c: Likewise.
4233 * sparc64nbsd-tdep.c: Likewise.
4234 * sparc64obsd-tdep.c: Likewise.
4235 * sparcnbsd-tdep.c: Likewise.
4236 * sparcobsd-tdep.c: Likewise.
4237 * spu-multiarch.c: Likewise.
4238 * spu-tdep.c: Likewise.
4239 * stabsread.c: Likewise.
4240 * stack.c: Likewise.
4241 * symfile.c: Likewise.
4242 * symtab.c: Likewise.
4243 * target-descriptions.c: Likewise.
4244 * target-memory.c: Likewise.
4245 * target.c: Likewise.
4246 * tic6x-linux-tdep.c: Likewise.
4247 * tic6x-tdep.c: Likewise.
4248 * tilegx-linux-nat.c: Likewise.
4249 * tilegx-tdep.c: Likewise.
4251 * tramp-frame.c: Likewise.
4252 * tui/tui-out.c: Likewise.
4253 * tui/tui-winsource.c: Likewise.
4254 * ui-out.c: Likewise.
4255 * user-regs.c: Likewise.
4256 * utils.c: Likewise.
4257 * v850-tdep.c: Likewise.
4258 * valops.c: Likewise.
4259 * value.c: Likewise.
4260 * varobj.c: Likewise.
4261 * vax-nat.c: Likewise.
4262 * xml-syscall.c: Likewise.
4263 * xml-tdesc.c: Likewise.
4264 * xstormy16-tdep.c: Likewise.
4265 * xtensa-linux-nat.c: Likewise.
4266 * xtensa-tdep.c: Likewise.
4268 2014-08-07 Gary Benson <gbenson@redhat.com>
4270 * common/common-defs.h: Include common-utils.h.
4271 * defs.h: Do not include common-utils.h.
4272 * common/gdb_assert.h: Likewise.
4273 * darwin-nat.h: Likewise.
4274 * nat/linux-btrace.c: Likewise.
4275 * target/waitstatus.h: Likewise.
4277 2014-08-07 Gary Benson <gbenson@redhat.com>
4279 * common/common-defs.h: Include ptid.h.
4280 * defs.h: Do not include ptid.h.
4281 * inferior.h: Likewise.
4282 * infrun.h: Likewise.
4283 * nat/linux-btrace.h: Likewise.
4284 * nat/linux-osdata.h: Likewise.
4285 * target/waitstatus.h: Likewise.
4287 2014-08-07 Gary Benson <gbenson@redhat.com>
4289 * common/common-defs.h: Include gdb_locale.h.
4290 * defs.h: Do not include gdb_locale.h.
4292 2014-08-07 Gary Benson <gbenson@redhat.com>
4294 * common/common-defs.h: Include gdb/signals.h.
4295 * defs.h: Do not include gdb/signals.h.
4297 2014-08-07 Gary Benson <gbenson@redhat.com>
4299 * common/common-defs.h: Include pathmax.h.
4300 * defs.h: Do not include pathmax.h.
4302 2014-08-07 Gary Benson <gbenson@redhat.com>
4304 * common/common-defs.h: Include libiberty.h.
4305 * defs.h: Do not include libiberty.h.
4306 * common/queue.h: Likewise.
4307 * cp-name-parser.y: Likewise.
4308 * mi/mi-cmd-catch.c: Likewise.
4309 * python/python.c: Likewise.
4311 2014-08-07 Gary Benson <gbenson@redhat.com>
4313 * common/common-defs.h: Include ansidecl.h.
4314 * defs.h: Do not include ansidecl.h.
4315 * common/buffer.h: Likewise.
4316 * common/common-utils.h: Likewise.
4318 2014-08-07 Gary Benson <gbenson@redhat.com>
4320 * common/common-defs.h: Include stddef.h.
4321 * defs.h: Do not include stddef.h.
4322 * common/common-utils.h: Likewise.
4323 * amd64fbsd-nat.c: Likewise.
4324 * bcache.c: Likewise.
4325 * charset.c: Likewise.
4326 * common/buffer.h: Likewise.
4327 * common/vec.h: Likewise.
4328 * i386bsd-nat.c: Likewise.
4329 * nat/linux-btrace.h: Likewise.
4330 * ppcfbsd-nat.c: Likewise.
4331 * ppcnbsd-tdep.h: Likewise.
4332 * ppcobsd-nat.c: Likewise.
4333 * ppcobsd-tdep.h: Likewise.
4334 * python/py-gdb-readline.c: Likewise.
4336 2014-08-07 Gary Benson <gbenson@redhat.com>
4338 * common/common-defs.h: Include stdarg.h.
4339 * defs.h: Do not include stdarg.h.
4340 * ada-lang.c: Likewise.
4341 * common/common-utils.h: Likewise.
4342 * guile/scm-string.c: Likewise.
4343 * guile/scm-utils.c: Likewise.
4344 * m32c-tdep.c: Likewise.
4346 2014-08-07 Gary Benson <gbenson@redhat.com>
4348 * common/common-defs.h: Include stdlib.h.
4349 * defs.h: Do not include stdlib.h.
4350 * addrmap.c: Likewise.
4351 * bcache.c: Likewise.
4352 * common/buffer.c: Likewise.
4353 * common/common-utils.c: Likewise.
4354 * cp-name-parser.y: Likewise.
4355 * go32-nat.c: Likewise.
4356 * mn10300-linux-tdep.c: Likewise.
4357 * nat/linux-osdata.c: Likewise.
4358 * tui/tui.c: Likewise.
4359 * windows-nat.c: Likewise.
4361 2014-08-07 Gary Benson <gbenson@redhat.com>
4363 * common/common-defs.h: Include stdio.h.
4364 * defs.h: Do not include stdio.h.
4365 * ada-lang.c: Likewise.
4366 * common/buffer.c: Likewise.
4367 * common/common-utils.c: Likewise.
4368 * cp-name-parser.y: Likewise.
4369 * gnu-nat.c: Likewise.
4370 * go32-nat.c: Likewise.
4371 * i386gnu-nat.c: Likewise.
4372 * proc-api.c: Likewise.
4373 * proc-events.c: Likewise.
4374 * proc-flags.c: Likewise.
4375 * proc-why.c: Likewise.
4376 * python/python-internal.h: Likewise.
4377 * target-memory.c: Likewise.
4378 * tui/tui-io.c: Likewise.
4379 * tui/tui.c: Likewise.
4381 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4383 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4384 (scan_dyntag_auxv): Same.
4386 2014-08-06 Yao Qi <yao@codesourcery.com>
4388 * amd64-linux-nat.c: Remove duplicated include
4390 * i386-linux-nat.c: Likewise.
4392 2014-08-06 Yao Qi <yao@codesourcery.com>
4394 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4395 operand" with "Special opcode" in comments.
4397 2014-08-05 Gary Benson <gbenson@redhat.com>
4399 * interps.c (initialize_interps): Remove prototype.
4400 (interpreter_initialized): Remove static global.
4401 (interp_add): Do not call initialize_interps.
4402 (initialize_interps): Remove function.
4404 2014-08-05 Gary Benson <gbenson@redhat.com>
4406 * utils.c (vwarning): Remove spurious va_end.
4408 2014-08-05 Alan Modra <amodra@gmail.com>
4410 * charset.c (convert_between_encodings): Cast result of obstack_base.
4411 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4412 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4413 (read_unwind_info): Use size_t for some locals.
4414 * jit.c (finalize_symtab): Likewise.
4415 * utils.c (hashtab_obstack_allocate): Likewise.
4416 * symmisc.c (print_objfile_statistics): Update format strings.
4418 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4420 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4421 (Changes in GDB 7.8): ... here.
4423 2014-08-04 Tom Tromey <tromey@redhat.com>
4425 * target.c (set_targetdebug): New function.
4426 (initialize_targets): Pass set_targetdebug when creating "set
4429 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4431 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4432 if detecting a variable-sized field that is not the last field.
4433 Fix struct type length computation.
4435 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4437 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4440 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4442 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4443 Remove "+ 8" offset in computation of CHAIN_VMA.
4445 2014-07-31 Doug Evans <dje@google.com>
4447 * inflow.c (child_terminal_inferior): Add comment.
4448 (child_terminal_ours_for_output): Add comment.
4449 (child_terminal_ours): Add comment.
4450 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4451 (linux_nat_terminal_ours): Add comment.
4453 2014-07-31 Gary Benson <gbenson@redhat.com>
4455 * common/btrace-common.h: Do not include defs.h or server.h.
4456 * nat/mips-linux-watch.h: Likewise.
4457 * gdb-dlfcn.h: Do not include defs.h.
4458 * tracefile.h: Likewise.
4460 2014-07-30 Roland McGrath <mcgrathr@google.com>
4462 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4464 2014-07-30 Tom Tromey <tromey@redhat.com>
4466 * bsd-kvm.c (bsd_kvm_open): Constify.
4467 * corelow.c (core_open): Constify.
4468 * ctf.c (ctf_open): Constify.
4469 * dbug-rom.c (dbug_open): Constify.
4470 * exec.c (exec_open): Constify.
4471 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4472 * microblaze-rom.c (picobug_open): Constify.
4473 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4475 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4476 * record-btrace.c (record_btrace_open): Constify.
4477 * record-full.c (record_full_core_open_1, record_full_open_1)
4478 (record_full_open): Constify.
4479 * remote-m32r-sdi.c (m32r_open): Constify.
4480 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4481 (rockhopper_open, lsi_open): Constify.
4482 * remote-sim.c (gdbsim_open): Constify.
4483 * remote.c (remote_open, extended_remote_open, remote_open_1):
4485 * target.h (struct target_ops) <to_open>: Make "arg" const.
4486 * tracefile-tfile.c (tfile_open): Constify.
4488 2014-07-30 Tom Tromey <tromey@redhat.com>
4490 * breakpoint.c (map_breakpoint_numbers): Update.
4491 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4492 (get_number_const): New function.
4493 (get_number): Rewrite using get_number_const.
4494 (init_number_or_range): Make "string" const.
4495 (number_is_in_list): Make "list" const.
4496 * cli/cli-utils.h (get_number_const): Declare.
4497 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4498 (init_number_or_range, number_is_in_list): Update.
4499 * printcmd.c (map_display_numbers): Update.
4500 * value.c (value_from_history_ref): Constify.
4501 * value.h (value_from_history_ref): Update.
4503 2014-07-30 Tom Tromey <tromey@redhat.com>
4505 * corefile.c (hook_type, call_extra_exec_file_hooks)
4506 (specify_exec_file_hook): Constify.
4507 * exec.c (exec_file_attach): Make "filename" const.
4508 * gdbcore.h (deprecated_exec_file_display_hook)
4509 (specify_exec_file_hook, exec_file_attach): Constify.
4510 * main.c (captured_main): Use catch_command_errors_const.
4512 2014-07-30 Tom Tromey <tromey@redhat.com>
4514 * target.c (open_target): New function.
4515 (add_target_with_completer, add_deprecated_target_alias): Use
4516 set_cmd_sfunc, set_cmd_context.
4517 (debug_to_open): Remove.
4518 (setup_target_debug): Update.
4520 2014-07-30 Yao Qi <yao@codesourcery.com>
4522 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4524 * parse.c (exp_iterate): Update comments.
4526 2014-07-30 Gary Benson <gbenson@redhat.com>
4528 * common/common-defs.h: New file.
4529 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4530 * defs.h: Include common-defs.h.
4531 Do not include config.h or build-gnulib/config.h.
4533 2014-07-30 Gary Benson <gbenson@redhat.com>
4535 * common/common-utils.h: Do not include config.h.
4536 * nat/linux-btrace.h: Likewise.
4538 2014-07-30 Gary Benson <gbenson@redhat.com>
4540 * btrace.c: Include defs.h.
4541 * common/ptid.c: Include defs.h or server.h as appropriate.
4542 * nat/mips-linux-watch.c: Likewise.
4544 2014-07-29 Tom Tromey <tromey@redhat.com>
4546 * target.c (target_is_pushed): Simplify.
4548 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4552 2014-07-29 Yao Qi <yao@codesourcery.com>
4555 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4557 2014-07-28 Doug Evans <xdje42@gmail.com>
4560 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4561 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4564 2014-07-28 Will Newton <will.newton@linaro.org>
4566 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4567 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4568 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4569 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4570 (THUMB2_EABI_SYSCALL): Likewise.
4571 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4573 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4574 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4576 2014-07-27 Doug Evans <xdje42@gmail.com>
4578 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4580 2014-07-27 Doug Evans <xdje42@gmail.com>
4582 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4584 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4585 Doug Evans <xdje42@gmail.com>
4588 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4589 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4590 * configure.ac: Try to use guild to compile an scm file, if it fails
4591 then disable guile support.
4592 * configure: Regenerate.
4593 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4595 (GUILE_COMPILED_FILES): New variable.
4596 (GUILE_FILES) Update.
4597 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4598 (stamp-guile): Compile scm files.
4599 * guile/guile.c (boot_guile_support): New function.
4600 (standard_throw_args_p): New function.
4601 (print_standard_throw_error, print_throw_error): New functions.
4602 (handle_boot_error): New function.
4603 (initialize_scheme_side): Rewrite to call boot_guile_support.
4604 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4605 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4607 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4608 Doug Evans <xdje42@gmail.com>
4611 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4612 * guile/lib/gdb/support.scm: New file.
4613 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4614 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4616 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4618 (%assert-type): Ditto, and renamed to assert-type.
4619 (%exception-print-style): Delete.
4621 2014-07-26 Doug Evans <xdje42@gmail.com>
4624 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4625 * configure: Regenerate.
4626 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4628 (PYTHON_FILES): New variable.
4629 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4630 (GUILE_FILES): New variable.
4631 (stamp-python, install-python, uninstall-python): Handle empty
4633 (stamp-guile, install-guile, uninstall-guile): Ditto.
4635 2014-07-26 Doug Evans <xdje42@gmail.com>
4638 * guile/lib/gdb.scm (pretty-printers): Export.
4639 (set-pretty-printers!): Export.
4640 * guile/lib/gdb/printing.scm (gdb module): Update.
4641 (prepend-pretty-printer!, append-pretty-printer!): Update.
4642 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4643 (pretty_printer_list_var): Delete.
4644 (pretty_printer_list): New static global.
4645 (gdbscm_pretty_printers): New function.
4646 (gdbscm_set_pretty_printers_x): New function.
4647 (ppscm_find_pretty_printer_from_gdb): Update.
4648 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4649 (gdbscm_initialize_pretty_printers): Update.
4651 2014-07-26 Doug Evans <xdje42@gmail.com>
4654 * configure.ac: Add check for header gc/gc.h.
4655 Add check for function setenv.
4656 * configure: Regenerate.
4657 * config.in: Regenerate.
4658 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4660 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4662 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4663 variation in gdbarch matching.
4665 2014-07-25 Tom Tromey <tromey@redhat.com>
4667 * exec.c (using_exec_ops): Remove.
4668 (exec_close_1): Update. Remove extraneous block, reindent.
4669 (add_target_sections): Use target_is_pushed.
4671 2014-07-25 Pedro Alves <palves@redhat.com>
4673 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4674 * monitor.c (monitor_create_inferior): Likewise.
4675 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4676 * remote-sim.c (gdbsim_create_inferior): Likewise.
4677 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4678 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4679 * windows-nat.c (do_initial_windows_stuff): Likewise.
4681 2014-07-25 Pedro Alves <palves@redhat.com>
4683 * NEWS: Mention signal passing and "signal" command changes.
4684 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4686 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4688 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4689 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4690 (jump_command): Adjust clear_proceed_status call.
4691 (signal_command): Warn if other thread that are resumed have
4692 signals that will be delivered. Adjust clear_proceed_status call.
4693 (until_next_command, finish_command)
4694 (proceed_after_attach_callback, attach_command_post_wait)
4695 (attach_command): Adjust clear_proceed_status call.
4696 * infrun.c (proceed_after_vfork_done): Likewise.
4697 (proceed_after_attach_callback): Adjust comment.
4698 (clear_proceed_status_thread): Clear stop_signal if not in pass
4700 (clear_proceed_status_callback): Delete.
4701 (clear_proceed_status): New 'step' parameter. Only clear the
4702 proceed status of threads the command being prepared is about to
4704 (proceed): If passed in an explicit signal, override stop_signal
4705 with it. Don't pass the last stop signal to the thread we're
4707 (init_wait_for_inferior): Adjust clear_proceed_status call.
4708 (switch_back_to_stepped_thread): Clear the signal if it should not
4710 * infrun.h (clear_proceed_status): New 'step' parameter.
4711 (user_visible_resume_ptid): Add comment.
4712 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4713 signal is in pass state.
4714 * remote.c (append_pending_thread_resumptions): Likewise.
4715 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4717 2014-07-25 Tom Tromey <tromey@redhat.com>
4719 * target.h (target_stopped_data_address)
4720 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4723 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4725 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4727 (avr_pointer_to_address): Likewise.
4729 2014-07-24 Tom Tromey <tromey@redhat.com>
4731 * monitor.c (compile_pattern): Update.
4732 * target.h (struct target_ops) <to_shortname, to_longname,
4735 2014-07-24 Tom Tromey <tromey@redhat.com>
4737 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4738 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4739 (add_info_alias, add_com): Make "doc" const.
4740 (print_doc_line): Make "str" const.
4741 (delete_cmd): Update.
4742 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4743 (print_doc_line): Update.
4744 * cli/cli-script.c (document_command): Update.
4745 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4746 (add_com, add_info, add_info_alias): Update.
4747 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4748 * python/py-cmd.c (cmdpy_destroyer): Update.
4750 2014-07-24 Tom Tromey <tromey@redhat.com>
4752 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4753 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4754 (help_cmd_list): Constify.
4755 (lookup_cmd): Update.
4756 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4758 (help_cmd_list, apropos_cmd): Update.
4759 * cli/cli-script.c (show_user): Update.
4760 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4761 * cli/cli-setshow.h (cmd_show_list): Update.
4762 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4763 (cmd_show_list): Update.
4764 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4765 * python/py-cmd.c (cmdpy_destroyer): Update.
4767 2014-07-24 Tom Tromey <tromey@redhat.com>
4769 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4770 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4772 * command.h (deprecate_cmd): Update.
4773 * maint.c (maintenance_do_deprecate): Add casts.
4775 2014-07-24 Tom Tromey <tromey@redhat.com>
4777 * cli/cli-decode.c (help_cmd): Make parameter "const".
4778 * cli/cli-decode.h (help_cmd): Update.
4780 2014-07-24 Tom Tromey <tromey@redhat.com>
4782 * stack.c (up_silently_base, down_silently_base): Make argument
4785 2014-07-24 Tom Tromey <tromey@redhat.com>
4787 * solib.c (solib_add): Make "pattern" const.
4788 * solib.h (solib_add): Update.
4790 2014-07-24 Tom Tromey <tromey@redhat.com>
4792 * remote.c (remote_serial_open, print_packet, putpkt)
4793 (putpkt_binary): Constify.
4794 * remote.h (putpkt): Update.
4796 2014-07-24 Tom Tromey <tromey@redhat.com>
4798 * monitor.c (monitor_open): Make "args" const.
4799 * monitor.h (monitor_open): Update.
4801 2014-07-24 Tom Tromey <tromey@redhat.com>
4803 * maint.c (match_bfd_flags): Make "string" const.
4804 (print_bfd_section_info): Remove casts.
4805 (print_objfile_section_info): Make "string" const.
4807 2014-07-24 Tom Tromey <tromey@redhat.com>
4809 * inf-child.c (inf_child_open_target): Make "arg" const.
4810 * inf-child.h (inf_child_open_target): Update.
4812 2014-07-24 Tom Tromey <tromey@redhat.com>
4814 * environ.c (unset_in_environ): Make "var" const.
4815 * environ.h (unset_in_environ): Update.
4817 2014-07-24 Tom Tromey <tromey@redhat.com>
4819 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4821 (scan_filename_with_cleanup): Likewise.
4822 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4823 Make arguments const.
4824 (restore_command): Update.
4826 2014-07-24 Pedro Alves <palves@redhat.com>
4828 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4830 2014-07-24 Tom Tromey <tromey@redhat.com>
4831 Gary Benson <gbenson@redhat.com>
4833 * nat/linux-ptrace.c (additional_flags): New global.
4834 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4835 additional_flags; don't check GDBSERVER.
4836 (linux_ptrace_set_additional_flags): New function.
4837 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4839 * linux-nat.c (_initialize_linux_nat): Call
4840 linux_ptrace_set_additional_flags.
4842 2014-07-24 Tom Tromey <tromey@redhat.com>
4844 * make-target-delegates (munge_type, write_debugmethod): New
4846 (debug_names): New global.
4847 ($TARGET_DEBUG_PRINTER): New global.
4848 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4850 Write debug methods. Generate init_debug_target.
4851 * target-debug.h: New file.
4852 * target-delegates.c: Rebuild.
4853 * target.c: Include target-debug.h.
4854 (debug_target): Hoist definition.
4855 (target_kill, target_get_section_table, target_memory_map)
4856 (target_flash_erase, target_flash_done, target_detach)
4857 (target_disconnect, target_wait, target_resume)
4858 (target_pass_signals, target_program_signals, target_follow_fork)
4859 (target_mourn_inferior, target_search_memory)
4860 (target_thread_address_space, target_close)
4861 (target_find_new_threads, target_core_of_thread)
4862 (target_verify_memory, target_insert_mask_watchpoint)
4863 (target_remove_mask_watchpoint): Remove targetdebug code.
4864 (debug_to_post_attach, debug_to_prepare_to_store)
4865 (debug_to_files_info, debug_to_insert_breakpoint)
4866 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4867 (debug_to_region_ok_for_hw_watchpoint)
4868 (debug_to_can_accel_watchpoint_condition)
4869 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4870 (debug_to_watchpoint_addr_within_range)
4871 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4872 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4873 (debug_to_terminal_init, debug_to_terminal_inferior)
4874 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4875 (debug_to_terminal_save_ours, debug_to_terminal_info)
4876 (debug_to_load, debug_to_post_startup_inferior)
4877 (debug_to_insert_fork_catchpoint)
4878 (debug_to_remove_fork_catchpoint)
4879 (debug_to_insert_vfork_catchpoint)
4880 (debug_to_remove_vfork_catchpoint)
4881 (debug_to_insert_exec_catchpoint)
4882 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4883 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4884 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4885 (setup_target_debug): Call init_debug_target.
4886 * target.h (TARGET_DEBUG_PRINTER): New macro.
4887 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4888 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4890 2014-07-24 Gary Benson <gbenson@redhat.com>
4892 * exceptions.h (throw_vfatal): Renamed to...
4893 (throw_vquit): New declaration.
4894 (throw_quit): Likewise.
4895 * exceptions.c (throw_vfatal): Renamed to...
4896 (throw_vquit): New function.
4897 (throw_quit): Likewise.
4898 (throw_error): Call throw_verror rather than throw_it.
4899 * utils.h (vfatal): Removed.
4901 * utils.c (vfatal): Removed.
4903 (internal_verror): Replaced call to fatal with call to throw_quit.
4904 (quit): Replaced calls to fatal with calls to throw_quit.
4906 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4908 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4911 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4913 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4914 less than zero in conditional expression.
4916 2014-07-23 Tom Tromey <tromey@redhat.com>
4918 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4919 ($INTRO_PART): Don't match whitespace.
4920 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4922 ($METHOD): Add $METHOD_TRAILER.
4924 (scan_target_h): New sub.
4925 Change main loop not to collect state.
4926 * target-delegates.c: Rebuild.
4928 2014-07-23 Gary Benson <gbenson@redhat.com>
4930 * cp-support.c (gdb_demangle): Fix build on systems without
4933 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4935 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4936 for reference entry value target data value.
4938 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4940 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4941 value_available_contents_eq.
4943 2014-07-22 Pedro Alves <palves@redhat.com>
4945 * value.c (allocate_optimized_out_value): Don't mark value as
4948 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4950 * MAINTAINERS (Write After Approval): Update my email address.
4952 2014-07-20 Doug Evans <dje@google.com>
4955 * remote.c (putpkt_binary): Add text to error message.
4957 2014-07-20 Yao Qi <yao@codesourcery.com>
4959 * eval.c: Remove "Chill" from comments.
4960 * gdbtypes.h: Likewise.
4961 * symtab.h: Likewise.
4963 2014-07-20 Yao Qi <yao@codesourcery.com>
4965 * std-operator.def: Update comments to TERNOP_SLICE.
4967 2014-07-20 Yao Qi <yao@codesourcery.com>
4969 * std-operator.def: Remove BINOP_RANGE.
4970 * breakpoint.c (watchpoint_exp_is_const): Update.
4971 * expprint.c (dump_subexp_body_standard): Likewise.
4972 * eval.c (init_array_element): Remove dead code.
4973 (evaluate_subexp_standard): Likewise.
4975 2014-07-20 Yao Qi <yao@codesourcery.com>
4977 * std-operator.def: Remove BINOP_IN.
4978 * breakpoint.c (watchpoint_exp_is_const): Update.
4979 * eval.c (evaluate_subexp_standard): Likewise.
4980 * expprint.c (dump_subexp_body_standard): Likewise.
4982 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4984 * microblaze-tdep.c (microblaze_register_names): Add
4985 the rshr and rslr register names.
4986 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4987 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4988 Use of tdesc_numbered_register. Use of
4989 microblaze_register_g_packet_guesses. Use of
4990 tdesc_use_registers. Use of set_gdbarch_register_type.
4991 (microblaze_register_g_packet_guesses): New.
4992 * microblaze-tdep.h (microblaze_reg_num): Add
4993 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4994 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4995 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4996 * features/microblaze-core.xml: New file.
4997 * features/microblaze-stack-protect.xml: New file.
4998 * features/microblaze-with-stack-protect.c: New file.
4999 * features/microblaze-with-stack-protect.xml: New file.
5000 * features/microblaze.xml: New file.
5001 * features/microblaze.c: New file.
5002 * features/Makefile (microblaze-with-stack-protect): Add
5003 microblaze-with-stack-protect microblaze and microblaze-expedite.
5004 * regformats/microblaze-with-stack-protect.dat: New file.
5005 * regformats/microblaze.dat: New file.
5006 * doc/gdb.texinfo (MicroBlaze Features): Added.
5008 2014-07-18 Tom Tromey <tromey@redhat.com>
5010 * exec.c (exec_ops): Now static.
5011 * exec.h (exec_ops): Don't declare.
5013 2014-07-18 Tom Tromey <tromey@redhat.com>
5015 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5016 to find_target_beneath.
5017 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5018 find_target_beneath.
5019 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5021 2014-07-18 Tom Tromey <tromey@redhat.com>
5024 * utils.c (quit): Use target_supports_terminal_ours.
5025 * target.h (target_supports_terminal_ours): Declare.
5026 * target.c (target_supports_delete_record): Don't check
5027 to_delete_record against NULL.
5028 (target_supports_terminal_ours): New function.
5030 2014-07-18 Tom Tromey <tromey@redhat.com>
5033 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5034 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5035 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5036 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5037 * windows-nat.c (windows_xfer_partial): Always delegate.
5038 * record-btrace.c (record_btrace_xfer_partial): Simplify
5040 (record_btrace_fetch_registers, record_btrace_store_registers)
5041 (record_btrace_prepare_to_store, record_btrace_resume)
5042 (record_btrace_wait, record_btrace_find_new_threads)
5043 (record_btrace_thread_alive): Likewise.
5044 * procfs.c (procfs_xfer_partial): Always delegate.
5045 * corelow.c (core_xfer_partial): Always delegate.
5046 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5048 2014-07-18 Tom Tromey <tromey@redhat.com>
5050 * exec.c (exec_make_note_section): Move earlier.
5052 2014-07-17 Doug Evans <dje@google.com>
5055 * maint.c (count_symtabs_and_blocks): Handle NULL
5056 current_program_space.
5057 (report_command_stats): Check global enabled flag in addition to
5058 recorded enabled flag.
5059 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5061 2014-07-16 Pedro Alves <palves@redhat.com>
5063 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5065 2014-07-16 Tom Tromey <tromey@redhat.com>
5067 * target.h (struct target_ops) <to_delete_record>: Reformat
5070 2014-07-16 Tom Tromey <tromey@redhat.com>
5072 * target-delegates.c: Rebuild.
5074 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5076 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5077 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5078 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5079 (avr_pointer_to_address): Likewise.
5080 (avr_address_class_type_flags): New function.
5081 (avr_address_class_type_flags_to_name): Likewise.
5082 (avr_address_class_name_to_type_flags): Likewise.
5083 (avr_gdbarch_init): Set address_class_type_flags,
5084 address_class_type_flags_to_name and
5085 address_class_name_to_type_flags.
5087 2014-07-15 Pedro Alves <palves@redhat.com>
5089 * linux-nat.c (kill_callback): Save errno and work with saved
5092 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5094 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5096 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5098 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5099 breakpoint support correctly.
5101 2014-07-14 Pedro Alves <palves@redhat.com>
5103 * utils.c (prompt_for_continue): Call target_terminal_ours.
5105 2014-07-14 Pedro Alves <palves@redhat.com>
5107 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5108 catch_errors. Don't re-enable stdin or notify observers where,
5110 (fetch_inferior_event_wrapper): Delete.
5112 2014-07-14 Pedro Alves <palves@redhat.com>
5115 * top.c: Include "inf-loop.h".
5116 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5118 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5120 (gdb_readline_wrapper): Store whether the target is async, and
5123 2014-07-14 Pedro Alves <palves@redhat.com>
5126 * top.c (gdb_readline_wrapper_line): Tweak comment.
5127 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5128 the input handler callback.
5130 2014-07-14 Pedro Alves <palves@redhat.com>
5133 * main.c: Include event-top.h.
5134 (handle_command_errors): New function.
5135 (catch_command_errors, catch_command_errors_const): Use it.
5137 2014-07-14 Pedro Alves <palves@redhat.com>
5139 * exceptions.c (catch_command_errors, catch_command_errors_const):
5141 * exceptions.h (catch_command_errors_ftype)
5142 (catch_command_errors_const_ftype): Moved to main.c.
5143 (catch_command_errors, catch_command_errors_const): Delete
5145 * main.c (catch_command_errors_ftype)
5146 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5147 (catch_command_errors, catch_command_errors_const)): Moved here
5148 from exceptions.c and make static.
5150 2014-07-14 Pedro Alves <palves@redhat.com>
5152 * exceptions.c (print_any_exception): Delete.
5153 (catch_exceptions_with_msg): Use exception_print instead of
5154 print_any_exception.
5155 (catch_errors): Use exception_fprintf instead of
5156 print_any_exception.
5157 (catch_command_errors, catch_command_errors_const): Use
5158 exception_print instead of print_any_exception.
5160 2014-07-14 Pedro Alves <palves@redhat.com>
5162 * infcall.c (run_inferior_call): Set 'sync_execution' while
5163 running the inferior call.
5165 2014-07-14 Pedro Alves <palves@redhat.com>
5167 * value.c (value_contents_equal): Delete function.
5168 * value.h (value_contents_equal): Delete declaration.
5170 2014-07-14 Tom Tromey <tromey@redhat.com>
5173 * gdbtypes.c (is_dynamic_type_internal): New function, from
5175 (is_dynamic_type): Rewrite.
5176 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5177 (resolve_dynamic_struct): Likewise.
5178 (resolve_dynamic_type_internal): New function, from
5179 resolve_dynamic_type.
5180 (resolve_dynamic_type): Rewrite.
5182 2014-07-14 Tom Tromey <tromey@redhat.com>
5184 * target.c (target_require_runnable): Also check record_stratum.
5187 2014-07-11 Yao Qi <yao@codesourcery.com>
5189 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5190 thumb_instruction_restores_sp return true.
5192 2014-07-11 Yao Qi <yao@codesourcery.com>
5194 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5195 (thumb_in_function_epilogue_p): Call
5196 thumb_instruction_restores_sp.
5198 2014-07-11 Yao Qi <yao@codesourcery.com>
5200 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5202 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5204 2014-07-11 Gary Benson <gbenson@redhat.com>
5206 * amd64-linux-nat.c (gdbcore.h): Remove include.
5207 (regset.h): Likewise.
5208 (nat/linux-btrace.h): Likewise.
5209 (btrace.h): Likewise.
5210 (gdb_assert.h): Likewise.
5211 (string.h): Likewise.
5212 (sys/uio.h): Likewise.
5213 (sys/debugreg.h): Likewise.
5214 (sys/syscall.h): Likewise.
5215 (sys/procfs.h): Likewise.
5216 (sys/user.h): Likewise.
5217 (asm/ptrace.h): Likewise.
5218 (i386-nat.h): Likewise.
5219 * i386-linux-nat.c (i386-nat.h): Likewise.
5220 (regset.h): Likewise.
5221 (target.h): Likewise.
5222 (linux-nat.h): Likewise.
5223 (nat/linux-btrace.h): Likewise.
5224 (btrace.h): Likewise.
5225 (gdb_assert.h): Likewise.
5226 (string.h): Likewise.
5227 (sys/uio.h): Likewise.
5228 (sys/user.h): Likewise.
5229 (sys/procfs.h): Likewise.
5230 (sys/reg.h): Likewise.
5231 (sys/debugreg.h): Likewise.
5232 (ORIG_EAX): Remove definition.
5234 2014-07-11 Gary Benson <gbenson@redhat.com>
5236 * i386-linux-nat.h: New file.
5237 * x86-linux-nat.h: Likewise.
5238 * x86-linux-nat.c: Likewise.
5239 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5240 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5241 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5242 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5243 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5244 (PTRACE_SETREGSET): Likewise.
5245 (arch_lwp_info): Now in x86-linux-nat.c.
5246 (have_ptrace_getregset): Now in x86-linux-nat.h.
5247 (x86_linux_dr_get): Now in x86-linux-nat.c.
5248 (x86_linux_dr_set): Likewise.
5249 (x86_linux_dr_get_addr): Likewise.
5250 (x86_linux_dr_get_control): Likewise.
5251 (x86_linux_dr_get_status): Likewise.
5252 (update_debug_registers_callback): Likewise.
5253 (x86_linux_dr_set_control): Likewise.
5254 (x86_linux_dr_set_addr): Likewise.
5255 (x86_linux_prepare_to_resume): Likewise.
5256 (x86_linux_new_thread): Likewise.
5257 (x86_linux_new_fork): Likewise.
5258 (x86_linux_get_thread_area): Likewise.
5259 (super_post_startup_inferior): Likewise.
5260 (x86_linux_child_post_startup_inferior): Likewise.
5261 (AMD64_LINUX_USER64_CS): Likewise.
5262 (AMD64_LINUX_X32_DS): Likewise.
5263 (x86_linux_read_description): Likewise.
5264 (x86_linux_enable_btrace): Likewise.
5265 (x86_linux_disable_btrace): Likewise.
5266 (x86_linux_teardown_btrace): Likewise.
5267 (x86_linux_read_btrace): Likewise.
5268 (x86_linux_create_target): Likewise.
5269 (x86_linux_add_target): Likewise.
5270 * i386-linux-nat.c (x86-linux-nat.h): New include.
5271 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5272 (PTRACE_SETREGSET): Likewise.
5273 (arch_lwp_info): Now in x86-linux-nat.c.
5274 (have_ptrace_getregset): Now in x86-linux-nat.h.
5275 (x86_linux_dr_get): Now in x86-linux-nat.c.
5276 (x86_linux_dr_set): Likewise.
5277 (x86_linux_dr_get_addr): Likewise.
5278 (x86_linux_dr_get_control): Likewise.
5279 (x86_linux_dr_get_status): Likewise.
5280 (update_debug_registers_callback): Likewise.
5281 (x86_linux_dr_set_control): Likewise.
5282 (x86_linux_dr_set_addr): Likewise.
5283 (x86_linux_prepare_to_resume): Likewise.
5284 (x86_linux_new_thread): Likewise.
5285 (x86_linux_new_fork): Likewise.
5286 (x86_linux_get_thread_area): Likewise.
5287 (super_post_startup_inferior): Likewise.
5288 (x86_linux_child_post_startup_inferior): Likewise.
5289 (AMD64_LINUX_USER64_CS): Likewise.
5290 (AMD64_LINUX_X32_DS): Likewise.
5291 (x86_linux_read_description): Likewise.
5292 (x86_linux_enable_btrace): Likewise.
5293 (x86_linux_disable_btrace): Likewise.
5294 (x86_linux_teardown_btrace): Likewise.
5295 (x86_linux_read_btrace): Likewise.
5296 (x86_linux_create_target): Likewise.
5297 (x86_linux_add_target): Likewise.
5299 2014-07-11 Gary Benson <gbenson@redhat.com>
5301 * amd64-linux-nat.c: Comment and whitespace changes.
5302 * i386-linux-nat.c: Comment and whitespace changes.
5304 2014-07-11 Gary Benson <gbenson@redhat.com>
5306 * amd64-linux-nat.c (x86_linux_create_target): New function.
5307 (x86_linux_add_target): Likewise.
5308 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5309 * i386-linux-nat.c (x86_linux_create_target): New function.
5310 (x86_linux_add_target): Likewise.
5311 (_initialize_i386_linux_nat): Delegate to the above new functions.
5313 2014-07-11 Gary Benson <gbenson@redhat.com>
5315 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5316 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5317 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5318 (ps_get_thread_area): Delegate to the above.
5320 2014-07-11 Gary Benson <gbenson@redhat.com>
5322 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5323 x86_linux_read_description. All uses updated. amd64-specific
5324 code conditionalized. Conditionalized i386-specific code added.
5325 Redundant cast removed.
5326 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5327 x86_linux_read_description. All uses updated. i386-specific
5328 code conditionalized. Conditionalized amd64-specific code added.
5329 One sizeof replaced with the actual type it is describing.
5331 2014-07-11 Gary Benson <gbenson@redhat.com>
5333 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5334 x86_linux_dr_get. All uses updated.
5335 (amd64_linux_dr_set): Renamed to
5336 x86_linux_dr_set. All uses updated.
5337 (amd64_linux_dr_get_addr): Renamed to
5338 x86_linux_dr_get_addr. All uses updated.
5339 (amd64_linux_dr_get_control): Renamed to
5340 x86_linux_dr_get_control. All uses updated.
5341 (amd64_linux_dr_get_status): Renamed to
5342 x86_linux_dr_get_status. All uses updated.
5343 (amd64_linux_dr_set_control): Renamed to
5344 x86_linux_dr_set_control. All uses updated.
5345 (amd64_linux_dr_set_addr): Renamed to
5346 x86_linux_dr_set_addr. All uses updated.
5347 (amd64_linux_prepare_to_resume): Renamed to
5348 x86_linux_prepare_to_resume. All uses updated.
5349 (amd64_linux_new_thread): Renamed to
5350 x86_linux_new_thread. All uses updated.
5351 (amd64_linux_new_fork): Renamed to
5352 x86_linux_new_fork. All uses updated.
5353 (amd64_linux_child_post_startup_inferior): Renamed to
5354 x86_linux_child_post_startup_inferior. All uses updated.
5355 (amd64_linux_enable_btrace): Renamed to
5356 x86_linux_enable_btrace. All uses updated.
5357 (amd64_linux_disable_btrace): Renamed to
5358 x86_linux_disable_btrace. All uses updated.
5359 (amd64_linux_teardown_btrace): Renamed to
5360 x86_linux_teardown_btrace. All uses updated.
5361 (amd64_linux_read_btrace): Renamed to
5362 x86_linux_read_btrace. All uses updated.
5363 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5364 x86_linux_dr_get. All uses updated.
5365 (i386_linux_dr_set): Renamed to
5366 x86_linux_dr_set. All uses updated.
5367 (i386_linux_dr_get_addr): Renamed to
5368 x86_linux_dr_get_addr. All uses updated.
5369 (i386_linux_dr_get_control): Renamed to
5370 x86_linux_dr_get_control. All uses updated.
5371 (i386_linux_dr_get_status): Renamed to
5372 x86_linux_dr_get_status. All uses updated.
5373 (i386_linux_dr_set_control): Renamed to
5374 x86_linux_dr_set_control. All uses updated.
5375 (i386_linux_dr_set_addr): Renamed to
5376 x86_linux_dr_set_addr. All uses updated.
5377 (i386_linux_prepare_to_resume): Renamed to
5378 x86_linux_prepare_to_resume. All uses updated.
5379 (i386_linux_new_thread): Renamed to
5380 x86_linux_new_thread. All uses updated.
5381 (i386_linux_new_fork): Renamed to
5382 x86_linux_new_fork. All uses updated.
5383 (i386_linux_child_post_startup_inferior): Renamed to
5384 x86_linux_child_post_startup_inferior. All uses updated.
5385 (i386_linux_enable_btrace): Renamed to
5386 x86_linux_enable_btrace. All uses updated.
5387 (i386_linux_disable_btrace): Renamed to
5388 x86_linux_disable_btrace. All uses updated.
5389 (i386_linux_teardown_btrace): Renamed to
5390 x86_linux_teardown_btrace. All uses updated.
5391 (i386_linux_read_btrace): Renamed to
5392 x86_linux_read_btrace. All uses updated.
5394 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5396 * remote.c (extended_remote_post_attach): New function.
5397 (init_extended_remote_ops): Install it as to_post_attach method.
5399 2014-07-09 Pedro Alves <palves@redhat.com>
5401 * infcmd.c (attach_command_post_wait): Don't call
5402 target_terminal_inferior here.
5403 (attach_command): Call it here instead.
5405 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5407 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5409 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5410 from varobj.c, with additional checks.
5411 (c_varobj_ops): Fill in is_path_expr_parent field.
5412 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5413 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5415 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5417 (varobj_default_is_path_expr_parent): New function.
5418 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5419 (varobj_default_is_path_expr_parent): Declare new function.
5421 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5423 * infcmd.c (finish_backward): Turn internal error into normal error.
5425 2014-07-07 Pedro Alves <palves@redhat.com>
5428 * remote.c (async_handle_remote_sigint)
5429 (async_handle_remote_sigint_twice): Call
5430 gdb_call_async_signal_handler instead of
5431 mark_async_signal_handler.
5433 2014-07-07 Tom Tromey <tromey@redhat.com>
5435 * target-delegates.c: Rebuild.
5436 * target.c (target_info_record): Remove.
5437 * record.c (info_record_command): Unconditionally call
5439 * target.h (struct target_ops) <to_info_record>: Use
5440 TARGET_DEFAULT_IGNORE.
5441 (target_info_record): Remove.
5443 2014-07-07 Tom Tromey <tromey@redhat.com>
5445 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5446 TARGET_DEFAULT_NORETURN.
5447 * target.c (generic_tls_error): New function.
5448 (target_translate_tls_address): Don't search target stack.
5449 * target-delegates.c: Rebuild.
5450 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5452 * linux-thread-db.c (thread_db_get_thread_local_address):
5453 Unconditionally call beneath target.
5455 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5457 * cli/cli-logging.c (pop_output_files): Assign targerr to
5460 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5462 * MAINTAINERS (Write After Approval): Update my email address.
5464 2014-07-02 Gary Benson <gbenson@redhat.com>
5466 * proc-service.c (ps_xfer_memory): Update comment.
5467 (ps_pstop): Remove unused function.
5468 (ps_pcontinue): Likewise.
5469 (ps_lstop): Likewise.
5470 (ps_lcontinue): Likewise.
5471 (ps_lgetxregsize): Likewise.
5472 (ps_lgetxregs): Likewise.
5473 (ps_lsetxregs): Likewise.
5474 (ps_plog): Likewise.
5475 (ps_ptread): Likewise.
5476 (ps_ptwrite): Likewise.
5478 2014-07-01 Mark Wielaard <mjw@redhat.com>
5480 * dwarf2read.c (add_array_cv_type): New function.
5481 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5482 (read_tag_volatile_type): Likewise.
5484 2014-07-01 Tom Tromey <tromey@redhat.com>
5486 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5487 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5488 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5489 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5490 * command.h (cmd_cfunc_ftype): Move earlier.
5491 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5492 (add_com, add_info): Use cmd_cfunc_ftype.
5494 2014-06-30 Tom Tromey <tromey@redhat.com>
5496 * symtab.c (operator_chars): Make parameters and return type
5498 (file_matches): Make "files" const.
5499 (struct search_symbols_data) <files>: Now const.
5500 (search_symbols): Make "regexp" and "files" parameters const.
5502 (symtab_symbol_info): Remove cast.
5503 (rbreak_command): Update.
5504 * symtab.h (search_symbols): Update.
5506 2014-06-27 Yao Qi <yao@codesourcery.com>
5508 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5509 Change parameter type to 'struct thread_info *'. Caller
5511 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5513 * dummy-frame.c (struct dummy_frame_id): New.
5514 (dummy_frame_id_eq): New function.
5515 (struct dummy_frame) <id>: Change its type to 'struct
5517 (dummy_frame_push): Add parameter ptid and save it in
5519 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5521 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5523 (lookup_dummy_frame): Change parameter type to 'struct
5524 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5525 instead of frame_id_eq.
5526 (dummy_frame_pop): Add parameter ptid. Callers updated.
5527 Update comments. Compose dummy_frame_id and pass it to
5529 (dummy_frame_discard): Add parameter ptid.
5530 (dummy_frame_sniffer): Compose dummy_frame_id and call
5531 dummy_frame_id_eq instead of frame_id_eq.
5532 (fprint_dummy_frames): Print ptid.
5533 * dummy-frame.h: Remove comments.
5534 (dummy_frame_push): Add ptid in declaration.
5535 (dummy_frame_pop, dummy_frame_discard): Likewise.
5537 2014-06-26 Tom Tromey <tromey@redhat.com>
5539 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5540 * command.h (error_no_arg): Update.
5542 2014-06-26 Tom Tromey <tromey@redhat.com>
5544 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5545 (do_show_command): Make "arg" const.
5546 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5548 2014-06-26 Tom Tromey <tromey@redhat.com>
5550 * record-full.c (record_full_get_bookmark): Make "args" const.
5551 (record_full_goto_bookmark): Make "raw_bookmark" const.
5552 * record.c (record_goto): New function.
5553 (cmd_record_goto): Use it. Now static.
5554 * record.h (record_goto): Declare.
5555 (cmd_record_goto): Remove declaration.
5556 * target-delegates.c: Rebuild.
5557 * target.h (struct target_ops) <to_get_bookmark,
5558 to_goto_bookmark>: Make parameter const.
5560 2014-06-26 Tom Tromey <tromey@redhat.com>
5562 * defs.h (generic_load): Update.
5563 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5564 * monitor.c (monitor_load): Make "args" const.
5565 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5566 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5568 (mips_load): Make "file" const.
5569 * remote-sim.c (gdbsim_load): Make "args" const.
5570 * remote.c (remote_load): Make "name" const.
5571 * symfile.c (generic_load): Make "args" const.
5572 * target-delegates.c: Rebuild.
5573 * target.c (target_load): Make "arg" const.
5574 (debug_to_load): Make "args" const.
5575 * target.h (struct target_ops) <to_load>: Make parameter const.
5576 (target_load): Update.
5578 2014-06-26 Tom Tromey <tromey@redhat.com>
5581 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5582 (dwarf2_physname, read_partial_die)
5583 (guess_partial_die_structure_name, fixup_partial_die)
5584 (guess_full_die_structure_name, anonymous_struct_prefix)
5585 (dwarf2_name): Use per-BFD obstack.
5587 2014-06-26 Yao Qi <yao@codesourcery.com>
5589 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5590 dummyframe and this_id into inner block below.
5592 2014-06-26 Yao Qi <yao@codesourcery.com>
5594 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5595 with "signal_pass[0]" in the initialization of signal_pass.
5597 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5599 * record-btrace.c (record_btrace_generating_corefile)
5600 (record_btrace_prepare_to_generate_core)
5601 (record_btrace_done_generating_core): New.
5602 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5603 (record_btrace_store_registers, record_btrace_prepare_to_store):
5604 Forward request when generating a core file.
5605 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5606 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5607 to_done_generating_core.
5609 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5611 * target.h (target_ops) <to_prepare_to_generate_core>
5612 <to_done_generating_core>: New.
5613 (target_prepare_to_generate_core, target_done_generating_core): New.
5614 * target.c (target_prepare_to_generate_core)
5615 (target_done_generating_core): New.
5616 * target-delegates.c: Regenerate.
5617 * gcore.c: (write_gcore_file): Rename to ...
5618 (write_gcore_file_1): ...this.
5619 (write_gcore_file): Call target_prepare_to_generate_core
5620 and target_done_generating_core.
5622 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5624 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5625 * gcore.c (write_gcore_file): Free memory returned from
5626 make_corefile_notes.
5627 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5628 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5630 2014-06-24 Yao Qi <yao@codesourcery.com>
5632 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5633 (arm_linux_init_abi): Set skip_trampoline_code with
5634 gdbarch_skip_trampoline_code instead of
5635 find_solib_trampoline_target.
5637 2014-06-24 Yao Qi <yao@codesourcery.com>
5639 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5640 arm_skip_bx_reg returns non-zero.
5642 2014-06-24 Yao Qi <yao@codesourcery.com>
5644 * arm-tdep.c (arm_skip_bx_reg): New function.
5645 (arm_skip_stub): Call arm_skip_bx_reg.
5647 2014-06-23 Don Breazeal <donb@codesourcery.com>
5649 * MAINTAINERS: Add myself as write-after-approval maintainer.
5651 2014-06-23 Pedro Alves <palves@redhat.com>
5653 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5654 DR_CONTROL before setting DR0..DR3.
5655 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5656 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5657 bits of DR_CONTROL related to the debug register slot being
5658 disabled. If all slots are vacant, clear local slowdown as well,
5659 and assert DR_CONTROL is 0.
5661 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5663 * python/lib/gdb/command/xmethods.py
5664 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5665 current progspace only if the string "progspace" matches LOCUS_RE.
5667 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5669 Fix --with-system-readline with readline-6.3 patch 5.
5670 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5671 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5674 2014-06-20 Tom Tromey <tromey@redhat.com>
5676 * dwarf2read.c (dw2_get_real_path): Use correct type in
5678 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5680 2014-06-20 Gary Benson <gbenson@redhat.com>
5682 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5683 * common/glibc_thread_db.h: Likewise.
5684 * common/i386-cpuid.h: Likewise.
5685 * common/i386-gcc-cpuid.h: Likewise.
5686 * common/linux-btrace.h: Likewise.
5687 * common/linux-osdata.h: Likewise.
5688 * common/linux-procfs.h: Likewise.
5689 * common/linux-ptrace.h: Likewise.
5690 * common/mips-linux-watch.h: Likewise.
5691 * common/linux-btrace.c: Moved to nat.
5692 * common/linux-osdata.c: Likewise.
5693 * common/linux-procfs.c: Likewise.
5694 * common/linux-ptrace.c: Likewise.
5695 * common/mips-linux-watch.c: Likewise.
5696 * nat/gdb_thread_db.h: Moved from common.
5697 * nat/glibc_thread_db.h: Likewise.
5698 * nat/i386-cpuid.h: Likewise.
5699 * nat/i386-gcc-cpuid.h: Likewise.
5700 * nat/linux-btrace.c: Likewise.
5701 * nat/linux-btrace.h: Likewise.
5702 * nat/linux-osdata.c: Likewise.
5703 * nat/linux-osdata.h: Likewise.
5704 * nat/linux-procfs.c: Likewise.
5705 * nat/linux-procfs.h: Likewise.
5706 * nat/linux-ptrace.c: Likewise.
5707 * nat/linux-ptrace.h: Likewise.
5708 * nat/mips-linux-watch.c: Likewise.
5709 * nat/mips-linux-watch.h: Likewise.
5710 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5711 (object file files): Reordered.
5712 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5713 of glibc_thread_db.h.
5715 2014-06-20 Gary Benson <gbenson@redhat.com>
5717 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5718 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5719 (i386_dr_low): Likewise.
5720 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5721 (i386_dr_low_set_addr): Likewise.
5722 (i386_dr_low_get_addr): Likewise.
5723 (i386_dr_low_can_set_control): Likewise.
5724 (i386_dr_low_set_control): Likewise.
5725 (i386_dr_low_get_control): Likewise.
5726 (i386_dr_low_get_status): Likewise.
5727 (i386_get_debug_register_length): Likewise.
5728 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5729 (i386_dr_low): Likewise.
5730 * nat/i386-dregs.c (i386-low.h): Remove include.
5731 (i386-nat.h): Likewise.
5732 (nat/i386-dregs.h): New include.
5733 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5734 (i386_dr_low_set_addr): Likewise.
5735 (i386_dr_low_get_addr): Likewise.
5736 (i386_dr_low_can_set_control): Likewise.
5737 (i386_dr_low_set_control): Likewise.
5738 (i386_dr_low_get_control): Likewise.
5739 (i386_dr_low_get_status): Likewise.
5740 (i386_get_debug_register_length): Likewise.
5741 (debug_hw_points): Likewise.
5743 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5745 * Makefile.in (SFILES): Add d-exp.y.
5746 (YYFILES): Add d-exp.c.
5747 (YYOBJ): Add d-exp.o.
5748 (local-maintainer-clean): Delete d-exp.c.
5749 * d-exp.y: New file.
5750 * d-lang.h (d_parse): New declaration.
5751 (d_error): New declaration.
5752 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5753 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5754 PREC_ORDER operators.
5755 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5757 2014-06-19 Yao Qi <yao@codesourcery.com>
5759 * gdbthread.h (any_running): Remove the declaration.
5760 * thread.c (any_running): Remove.
5762 2014-06-19 Yao Qi <yao@codesourcery.com>
5764 * gdbthread.h (struct thread_info) <state>: Change its type to
5765 'enum thread_state'. Update comments.
5767 2014-06-19 Pedro Alves <palves@redhat.com>
5769 * gdbthread.h (ALL_THREADS): Delete.
5770 (ALL_NON_EXITED_THREADS): New macro.
5771 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5772 instead of ALL_THREADS.
5773 * infrun.c (find_thread_needs_step_over)
5774 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5775 instead of ALL_THREADS.
5776 * record-btrace.c (record_btrace_open)
5777 (record_btrace_stop_recording, record_btrace_close)
5778 (record_btrace_is_replaying, record_btrace_resume)
5779 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5780 * remote.c (append_pending_thread_resumptions): Likewise.
5781 * thread.c (thread_apply_all_command): Likewise.
5783 2014-06-19 Gary Benson <gbenson@redhat.com>
5785 * i386-nat.c (i386_stopped_by_watchpoint):
5786 Use i386_dr_stopped_by_watchpoint.
5787 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5788 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5790 2014-06-19 Gary Benson <gbenson@redhat.com>
5792 * nat/i386-dregs.c: New file.
5793 * Makefile.in (i386-dregs.o): New rule.
5794 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5795 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5796 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5797 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5798 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5799 * config/i386/go32.mh (NATDEPFILES): Likewise.
5800 * config/i386/linux.mh (NATDEPFILES): Likewise.
5801 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5802 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5803 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5804 * i386-nat.h (debug_hw_points): New declaration.
5805 * i386-nat.c (breakpoint.h): Remove include.
5806 (command.h): Likewise.
5807 (target.h): Likewise.
5808 (gdb_assert.h): Likewise.
5809 (debug_hw_points): Made nonstatic.
5810 (debug_printf): Now in i386-dregs.c.
5811 (TARGET_HAS_DR_LEN_8): Likewise.
5812 (DR_CONTROL_SHIFT): Likewise.
5813 (DR_CONTROL_SIZE): Likewise.
5814 (DR_RW_EXECUTE): Likewise.
5815 (DR_RW_WRITE): Likewise.
5816 (DR_RW_READ): Likewise.
5817 (DR_RW_IORW): Likewise.
5818 (DR_LEN_1): Likewise.
5819 (DR_LEN_2): Likewise.
5820 (DR_LEN_4): Likewise.
5821 (DR_LEN_8): Likewise.
5822 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5823 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5824 (DR_ENABLE_SIZE): Likewise.
5825 (DR_LOCAL_SLOWDOWN): Likewise.
5826 (DR_GLOBAL_SLOWDOWN): Likewise.
5827 (DR_CONTROL_RESERVED): Likewise.
5828 (I386_DR_CONTROL_MASK): Likewise.
5829 (I386_DR_VACANT): Likewise.
5830 (I386_DR_LOCAL_ENABLE): Likewise.
5831 (I386_DR_GLOBAL_ENABLE): Likewise.
5832 (I386_DR_DISABLE): Likewise.
5833 (I386_DR_SET_RW_LEN): Likewise.
5834 (I386_DR_GET_RW_LEN): Likewise.
5835 (I386_DR_WATCH_HIT): Likewise.
5836 (i386_wp_op_t): Likewise.
5837 (i386_show_dr): Likewise.
5838 (i386_length_and_rw_bits): Likewise.
5839 (i386_insert_aligned_watchpoint): Likewise.
5840 (i386_remove_aligned_watchpoint): Likewise.
5841 (i386_handle_nonaligned_watchpoint): Likewise.
5842 (i386_update_inferior_debug_regs): Likewise.
5843 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5844 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5845 (i386_region_ok_for_watchpoint):
5846 Use i386_dr_region_ok_for_watchpoint.
5847 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5849 2014-06-19 Gary Benson <gbenson@redhat.com>
5851 * i386-nat.c (i386_insert_hw_breakpoint): Use
5852 i386_insert_watchpoint.
5853 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5855 2014-06-19 Gary Benson <gbenson@redhat.com>
5857 * i386-nat.c (i386_dr_show): Renamed to
5858 i386_show_dr and made static. All uses updated.
5859 (i386_dr_length_and_rw_bits): Renamed to
5860 i386_length_and_rw_bits and made static.
5862 (i386_dr_insert_aligned_watchpoint): Renamed to
5863 i386_insert_aligned_watchpoint and made static.
5865 (i386_dr_remove_aligned_watchpoint): Renamed to
5866 i386_remove_aligned_watchpoint and made static.
5868 (i386_dr_update_inferior_debug_regs): Renamed to
5869 i386_update_inferior_debug_regs and made static.
5871 * nat/i386-dregs.h (i386_dr_show): Removed.
5872 (i386_dr_length_and_rw_bits): Likewise.
5873 (i386_dr_insert_aligned_watchpoint): Likewise.
5874 (i386_dr_remove_aligned_watchpoint): Likewise.
5875 (i386_dr_update_inferior_debug_regs): Likewise.
5877 2014-06-19 Gary Benson <gbenson@redhat.com>
5879 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5880 * configure: Regenerate.
5881 * config.in: Likewise.
5882 * main.c (signal.h): New include.
5883 (setup_alternate_signal_stack): New function.
5884 (captured_main): Call the above.
5885 * cp-support.c (signal.h): New include.
5886 (catch_demangler_crashes): New flag.
5887 (SIGJMP_BUF): New define.
5888 (SIGSETJMP): Likewise.
5889 (SIGLONGJMP): Likewise.
5890 (gdb_demangle_jmp_buf): New static global.
5891 (gdb_demangle_attempt_core_dump): Likewise.
5892 (gdb_demangle_signal_handler): New function.
5893 (gdb_demangle): If catch_demangler_crashes is set, install the
5894 above signal handler before calling bfd_demangle, and restore
5895 the original signal handler afterwards. Display the offending
5896 symbol and call demangler_warning the first time a segmentation
5898 (_initialize_cp_support): New maint set/show command.
5900 2014-06-19 Gary Benson <gbenson@redhat.com>
5902 * utils.h (resource_limit_kind): New enum.
5903 (can_dump_core): New declaration.
5904 (warn_cant_dump_core): Likewise.
5905 (dump_core): Likewise.
5906 * utils.c (dump_core): Made nonstatic. Added new
5907 parameter "limit_kind".
5908 (can_dump_core): Made nonstatic. Moved printing code to...
5909 (warn_cant_dump_core): New function.
5910 (can_dump_core_warn): Likewise.
5911 (internal_vproblem): Replace calls to can_dump_core with
5912 calls to can_dump_core_warn. Supply new argument to each.
5914 2014-06-19 Gary Benson <gbenson@redhat.com>
5916 * utils.h (demangler_vwarning): New declaration.
5917 (demangler_warning): Likewise.
5918 * utils.c (struct internal_problem)
5919 <user_settable_should_quit>: New field.
5920 <user_settable_should_dump_core>: Likewise
5921 (internal_error_problem): Add values for above new fields.
5922 (internal_warning_problem): Likewise.
5923 (demangler_warning_problem): New static global.
5924 (demangler_vwarning): New function.
5925 (demangler_warning): Likewise.
5926 (add_internal_problem_command): Selectively add commands.
5927 (_initialize_utils): New internal problem command.
5928 * maint.c (maintenance_demangler_warning): New function.
5929 (_initialize_maint_cmds): New command.
5931 2014-06-18 Tom Tromey <tromey@redhat.com>
5933 * f-valprint.c (info_common_command_for_block): Update.
5934 * symtab.h (struct general_symbol_info) <common_block>: Now
5937 2014-06-18 Tom Tromey <tromey@redhat.com>
5939 * symtab.h (struct symtab) <blockvector>: Now const.
5940 * ada-lang.c (ada_add_global_exceptions): Update.
5941 * buildsym.c (augment_type_symtab): Update.
5942 * dwarf2read.c (dw2_lookup_symbol): Update.
5943 * jit.c (finalize_symtab): Update.
5944 * jv-lang.c (add_class_symtab_symbol): Update.
5945 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5947 * objfiles.c (objfile_relocate1): Update.
5948 * psymtab.c (lookup_symbol_aux_psymtabs)
5949 (maintenance_check_psymtabs): Update.
5950 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5952 * spu-tdep.c (spu_catch_start): Update.
5953 * symmisc.c (dump_symtab_1): Update.
5954 * symtab.c (lookup_global_symbol_from_objfile)
5955 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5956 (basic_lookup_transparent_type_quick)
5957 (basic_lookup_transparent_type, find_pc_sect_symtab)
5958 (find_pc_sect_line, search_symbols): Update.
5959 * block.c (find_block_in_blockvector): Make "bl" const.
5960 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5962 (blockvector_contains_pc): Make "bv" const.
5963 (block_for_pc_sect): Update.
5964 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5965 (blockvector_contains_pc): Update.
5966 * breakpoint.c (resolve_sal_pc): Update.
5967 * inline-frame.c (block_starting_point_at): Update.
5969 2014-06-18 Tom Tromey <tromey@redhat.com>
5971 * completer.c (complete_line): Make "line_buffer" const.
5972 * completer.h (complete_line): Update.
5974 2014-06-18 Tom Tromey <tromey@redhat.com>
5976 * symtab.c (add_macro_name): Remove unneeded cast.
5978 2014-06-18 Tom Tromey <tromey@redhat.com>
5980 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5981 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5983 2014-06-18 Tom Tromey <tromey@redhat.com>
5985 * probe.c (info_probes_for_ops): Make "arg" const.
5986 * probe.h (info_probes_for_ops): Update.
5988 2014-06-18 Tom Tromey <tromey@redhat.com>
5990 * varobj.c (varobj_create): Update.
5991 * valops.c (value_of_this): Update.
5992 * tracepoint.c (add_local_symbols, scope_info): Update.
5993 * symtab.h (struct general_symbol_info) <block>: Now const.
5994 * symtab.c (skip_prologue_sal)
5995 (default_make_symbol_completion_list_break_on)
5996 (skip_prologue_using_sal): Update.
5997 * stack.h (iterate_over_block_locals)
5998 (iterate_over_block_local_vars): Update.
5999 * stack.c (print_frame_args): Update.
6000 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6002 (get_selected_block): Make return type const.
6003 * python/py-frame.c (frapy_block): Update.
6004 * python/py-block.c (gdbpy_block_for_pc): Update.
6005 * p-exp.y (%union) <bval>: Now const.
6006 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6007 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6008 * m2-exp.y (%union) <bval>: Now const.
6009 * linespec.c (get_current_search_block): Make return type const.
6010 (create_sals_line_offset, find_label_symbols): Update.
6011 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6013 (block_starting_point_at): Make "block" const.
6014 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6015 (check_exception_resume): Update.
6016 * guile/scm-frame.c (gdbscm_frame_block): Update.
6017 * guile/scm-block.c (gdbscm_lookup_block): Update.
6018 * frame.h (get_frame_block): Update.
6019 (get_selected_block): Make return type const.
6020 * frame.c (frame_id_inner): Update.
6021 * f-valprint.c (info_common_command_for_block)
6022 (info_common_command): Update.
6023 * dwarf2loc.c (dwarf2_find_location_expression)
6024 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6025 (locexpr_describe_location_piece): Update.
6026 * c-exp.y (%union) <bval>: Now const.
6027 * breakpoint.c (resolve_sal_pc): Update.
6028 * blockframe.c (get_frame_block):Make return type const.
6029 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6030 (block_innermost_frame): Update.
6031 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6032 (block_for_pc, block_for_pc_sect): Update.
6033 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6035 (block_for_pc_sect, block_for_pc): Make return type const.
6036 * ax-gdb.c (gen_expr): Update.
6037 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6038 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6039 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6040 (ada_read_var_value): Update.
6041 * ada-exp.y (struct name_info) <block>: Now const.
6043 (block_lookup): Constify.
6045 2014-06-18 Gary Benson <gbenson@redhat.com>
6047 * nat/i386-dregs.h: New file.
6048 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6049 * i386-nat.h (i386-dregs.h): New include.
6050 (DR_FIRSTADDR): Now in i386-dregs.h.
6051 (DR_LASTADDR): Likewise.
6052 (DR_NADDR): Likewise.
6053 (DR_STATUS): Likewise.
6054 (DR_CONTROL): Likewise.
6055 (i386_debug_reg_state): Likewise.
6056 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6058 2014-06-18 Don Breazeal <donb@codesourcery.com>
6060 * breakpoint.c (set_longjmp_breakpoint): Call
6061 momentary_breakpoint_from_master with additional argument.
6062 (set_longjmp_breakpoint_for_call_dummy): Call
6063 momentary_breakpoint_from_master with additional argument.
6064 (set_std_terminate_breakpoint): Call
6065 momentary_breakpoint_from_master with additional argument.
6066 (momentary_breakpoint_from_master): Add argument to function
6067 definition and use it to initialize structure member flag.
6068 (clone_momentary_breakpoint): Call
6069 momentary_breakpoint_from_master with additional argument.
6070 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6071 member flags set in momentary_breakpoint_from_master.
6073 2014-06-18 Gary Benson <gbenson@redhat.com>
6075 * i386-nat.c (i386_show_dr): Renamed to
6076 i386_dr_show and made nonstatic. All uses updated.
6077 (i386_length_and_rw_bits): Renamed to
6078 i386_dr_length_and_rw_bits and made nonstatic.
6080 (i386_insert_aligned_watchpoint): Renamed to
6081 i386_dr_insert_aligned_watchpoint and made nonstatic.
6083 (i386_remove_aligned_watchpoint): Renamed to
6084 i386_dr_remove_aligned_watchpoint and made nonstatic.
6086 (i386_update_inferior_debug_regs): Renamed to
6087 i386_dr_update_inferior_debug_regs and made nonstatic.
6090 2014-06-18 Gary Benson <gbenson@redhat.com>
6092 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6093 (i386_dr_low_can_set_control): Likewise.
6094 (i386_dr_low_set_addr): Likewise.
6095 (i386_dr_low_set_control): Likewise.
6096 (i386_dr_low_get_addr): Likewise.
6097 (i386_dr_low_get_status): Likewise.
6098 (i386_dr_low_get_control): Likewise.
6099 (i386_insert_aligned_watchpoint): Use new macros.
6100 (i386_update_inferior_debug_regs): Likewise.
6101 (i386_stopped_data_address): Likewise.
6103 2014-06-18 Gary Benson <gbenson@redhat.com>
6105 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6106 New parameter. All uses updated.
6108 2014-06-18 Gary Benson <gbenson@redhat.com>
6110 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6113 2014-06-18 Gary Benson <gbenson@redhat.com>
6115 * i386-nat.c (debug_printf): New macro.
6116 (i386_get_debug_register_length): Likewise.
6117 (TARGET_HAS_DR_LEN_8): Use above macro.
6118 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6119 and printf_unfiltered. Use phex to format values.
6121 2014-06-18 Gary Benson <gbenson@redhat.com>
6123 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6126 2014-06-18 Gary Benson <gbenson@redhat.com>
6128 * i386-nat.c: Comment changes.
6130 2014-06-18 Gary Benson <gbenson@redhat.com>
6132 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6134 2014-06-18 Gary Benson <gbenson@redhat.com>
6136 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6137 (i386_insert_aligned_watchpoint): Likewise.
6138 (i386_remove_aligned_watchpoint): Likewise.
6139 (i386_handle_nonaligned_watchpoint): Likewise.
6141 2014-06-18 Gary Benson <gbenson@redhat.com>
6143 * i386-nat.c: Whitespace changes.
6145 2014-06-17 Samuel Bronson <naesten@gmail.com>
6147 * MAINTAINERS: Update Roland McGrath's email address.
6148 Thanks to Sergio Durigan Junior for pointing out that he left
6149 Red Hat a while ago, and giving me a current address.
6151 2014-06-17 Tom Tromey <tromey@redhat.com>
6153 * utils.h (savestring): Remove declaration.
6155 2014-06-17 Tom Tromey <tromey@redhat.com>
6157 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6159 2014-06-16 Keith Seitz <keiths@redhat.com>
6162 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6163 to update the varobj if inferior_ptid is null_ptid.
6165 2014-06-16 Tom Tromey <tromey@redhat.com>
6167 * target.h (struct target_ops) <to_info_proc>: Make parameter
6169 (target_info_proc): Update.
6170 * target.c (target_info_proc): Make "args" const.
6171 * procfs.c (procfs_info_proc): Update.
6172 * linux-tdep.c (linux_info_proc): Update.
6173 (linux_core_info_proc_mappings): Make "args" const.
6174 (linux_core_info_proc): Update.
6175 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6176 * gdbarch.c: Rebuild.
6177 * gdbarch.h: Rebuild.
6178 * corelow.c (core_info_proc): Update.
6180 2014-06-16 Tom Tromey <tromey@redhat.com>
6182 * target.h (struct target_ops) <to_disconnect>: Make parameter
6184 (target_disconnect): Update.
6185 * target.c (target_disconnect): Make "args" const.
6186 * target-delegates.c: Rebuild.
6187 * remote.c (remote_disconnect): Update.
6188 * record.h (record_disconnect): Update.
6189 * record.c (record_disconnect): Update.
6190 * inf-child.c (inf_child_disconnect): Update.
6192 2014-06-16 Tom Tromey <tromey@redhat.com>
6194 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6195 * target.c (debug_to_rcmd, default_rcmd): Update.
6196 * target-delegates.c: Rebuild.
6197 * remote.c (remote_rcmd): Update.
6198 * monitor.c (monitor_rcmd): Update.
6200 2014-06-16 Pedro Alves <palves@redhat.com>
6202 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6203 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6204 have OBJF_SHARED set.
6205 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6206 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6207 instead of OBJF_USERLOADED.
6208 * objfiles.h (OBJF_SHARED): Update comment.
6209 (userloaded_objfile_contains_address_p): Rename to ...
6210 (shared_objfile_contains_address_p): ... this, and update
6212 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6214 (remove_symbol_file_command): Skip objfiles that don't have
6217 2014-06-16 Tom Tromey <tromey@redhat.com>
6219 * minsyms.h (prim_record_minimal_symbol)
6220 (prim_record_minimal_symbol_and_info): Update comments.
6222 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6224 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6225 or --without-guile, according to how GDB was built.
6227 2014-06-13 Tom Tromey <tromey@redhat.com>
6229 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6231 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6233 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6235 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6236 help_list.Pass all_commands, not -1, to help_list.
6237 * cli/cli-dump.c (dump_command, append_command)
6238 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6239 (binary_dump_command, binary_append_command): Pass all_commands,
6240 not -1, to help_list.
6241 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6243 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6245 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6247 * top.c (set_history): Pass all_commands, not -1, to help_list.
6248 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6249 all_commands, not -1, to help_list.
6250 * symfile.c (overlay_command): Pass all_commands, not -1, to
6252 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6254 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6256 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6258 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6259 not -1, to help_list.
6260 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6261 not -1, to help_list.
6262 * maint.c (maintenance_command, maintenance_info_command)
6263 (maintenance_print_command, maintenance_set_cmd): Pass
6264 all_commands, not -1, to help_list.
6265 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6267 * language.c (set_check): Pass all_commands, not -1, to help_list.
6268 * infcmd.c (unset_command): Pass all_commands, not -1, to
6270 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6272 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6274 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6276 * breakpoint.c (save_command): Pass all_commands, not -1, to
6278 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6279 all_commands, not -1, to help_list.
6281 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6283 * regcache.c (struct register_to_invalidate): New structure.
6284 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6286 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6288 2014-06-12 Yao Qi <yao@codesourcery.com>
6290 * varobj.c (varobj_get_num_children): Call
6291 varobj_is_dynamic_p.
6292 (varobj_list_children): Likewise.
6293 (varobj_update): Likewise. Update comments.
6295 2014-06-12 Yao Qi <yao@codesourcery.com>
6297 * varobj.c (varobj_pretty_printed_p): Rename to ...
6298 (varobj_is_dynamic_p): ... this. New function.
6299 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6300 (varobj_is_dynamic_p): Declare.
6301 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6302 (mi_print_value_p, varobj_update_one): Likewise.
6304 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6305 Yao Qi <yao@codesourcery.com>
6307 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6308 (varobj_get_iterator): Wrap up code for pretty-printer by
6309 "#if HAVE_PYTHON" and "#endif".
6310 (update_dynamic_varobj_children): Likewise.
6312 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6313 Yao Qi <yao@codesourcery.com>
6315 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6316 gdb_python_initialized is false. Move some code from varobj.c.
6317 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6318 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6319 (struct varobj_item): Moved to varobj-iter.h".
6320 (varobj_clear_saved_item): New function.
6321 (update_dynamic_varobj_children): Move python-related code to
6323 (free_variable): Call varobj_clear_saved_item and
6326 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6327 Yao Qi <yao@codesourcery.com>
6329 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6330 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6331 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6332 (py-varobj.o): New rule.
6333 * python/py-varobj.c: New file.
6334 * python/python-internal.h (py_varobj_get_iterator): Declare.
6335 * varobj-iter.h: New file.
6336 * varobj.c: Include "varobj-iter.h"
6337 (struct varobj) <child_iter>: Change its type from "PyObject *"
6338 to "struct varobj_iter *".
6339 <saved_item>: Likewise.
6340 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6341 [HAVE_PYTHON] (varobj_get_iterator): New function.
6342 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6343 python-specific code to python/py-varobj.c.
6344 (install_visualizer): Call varobj_iter_delete instead of
6346 * varobj.h (varobj_ensure_python_env): Declare.
6348 2014-06-12 Yao Qi <yao@codesourcery.com>
6350 * varobj.c (struct varobj_item): New structure.
6351 (create_child_with_value): Update declaration.
6352 (varobj_add_child): Replace arguments 'name' and 'value' with
6353 'item'. All callers updated.
6354 (install_dynamic_child): Likewise.
6355 (update_dynamic_varobj_children): Likewise.
6356 (varobj_add_child): Likewise.
6357 (create_child_with_value): Likewise.
6359 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6361 * NEWS: Create a new section for the next release branch.
6362 Rename the section of the current branch, now that it has
6365 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6367 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6368 * version.in: Bump version to 7.8.50.DATE-cvs.
6370 2014-06-11 Pedro Alves <palves@redhat.com>
6373 * ser-mingw.c (net_windows_socket_check_pending): New function.
6374 (net_windows_select_thread): Ignore spurious wakeups. Use
6375 net_windows_socket_check_pending.
6376 (net_windows_wait_handle): Check for pending events with
6377 ioctlsocket, through net_windows_socket_check_pending, instead of
6378 checking the socket's event.
6380 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6382 * python/python-internal.h (gdb_PyObject_GetAttrString)
6383 (gdb_PyObject_HasAttrString): New inline function definitions.
6384 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6385 char * of the second argument to PyObject_GetAttrString.
6387 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6389 * serial.c (serial_write): Fix index of character to be printed
6390 in call to serial_logchar when serial debug traces are enabled.
6392 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6394 * gdbtypes (resolve_dynamic_range): Add function description.
6396 2014-06-09 Pedro Alves <palves@redhat.com>
6398 * linux-nat.c (linux_child_follow_fork): Initialize status with
6399 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6400 inner block. Only pass the signal to PTRACE_DETACH if in pass
6403 2014-06-09 Gary Benson <gbenson@redhat.com>
6405 * common/signals.c (gdb_signal_from_host): Reorder to separate
6406 the always-available ANSI-standard signals from the signals that
6408 (do_gdb_signal_to_host): Likewise.
6409 * proc-events.c (signal_table): Likewise.
6411 2014-06-08 Hui Zhu <hui@codesourcery.com>
6413 * common/linux-ptrace.c (linux_disable_event_reporting): New
6415 * common/linux-ptrace.h (linux_disable_event_reporting): New
6417 * linux-nat.c (linux_child_follow_fork): Do a single step before
6420 2014-06-07 Keith Seitz <keiths@redhat.com>
6424 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6425 from symbol_matches_domain in symtab.c. All local callers
6426 of symbol_matches_domain updated.
6427 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6428 search STRUCT_DOMAIN.
6429 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6430 independently. standard_lookup will do that automatically.
6431 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6432 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6433 (cp_lookup_symbol_in_namespace): Likewise.
6434 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6435 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6436 may return a STRUCT_DOMAIN match.
6437 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6438 * cp-support.c: Include language.h.
6439 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6441 * psymtab.c (match_partial_symbol): Compare the requested
6442 domain with the symbol's domain directly.
6443 (lookup_partial_symbol): Likewise.
6444 * symtab.c (lookup_symbol_in_language): Explain when/why
6445 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6446 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6447 appropriate languages.
6448 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6449 and moved to ada-lang.c
6450 (lookup_block_symbol): Explain that this function only returns
6451 symbol matching the requested DOMAIN.
6452 Compare the requested domain with the symbol's domain directly.
6453 (iterate_over_symbols): Compare the requested domain with the
6454 symbol's domain directly.
6455 * symtab.h (symbol_matches_domain): Remove.
6457 2014-06-06 Doug Evans <xdje42@gmail.com>
6459 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6460 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6461 (gdbscm_guile_version_is_at_least): Declare.
6462 (gdbscm_scm_string_to_int): Declare.
6463 * guile/guile.c (gdbscm_guile_major_version): New global.
6464 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6465 (guile_datadir): New static global.
6466 (gdbscm_guile_data_directory): New function.
6467 (initialize_scheme_side): Update.
6468 (misc_guile_functions): Add guile-data-directory.
6469 (initialize_gdb_module): Fetch guile version number.
6470 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6471 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6472 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6473 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6475 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6476 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6477 * guile/scm-value.c (gdbscm_value_to_string): Only call
6478 scm_port_conversion_strategy if Guile version >= 2.0.6.
6480 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6482 * main.c (print_gdb_help): Add -q and --silent.
6484 2014-06-06 Gary Benson <gbenson@redhat.com>
6486 * common/signals.c: Remove preprocessor conditionals for
6487 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6488 SIGSEGV and SIGTERM.
6489 * proc-events.c: Likewise.
6491 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6493 * symfile.c (symfile_free_objfile): Remove restriction to
6495 * symfile-mem.c (symbol_file_add_from_memory): Call
6496 add_target_sections_of_objfile.
6498 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6500 * guile/scm-value.c (gdbscm_history_append_x): Use
6501 'vlscm_get_value_smob_arg_unsafe' instead of
6502 'vlscm_scm_to_value'.
6504 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6507 * utils.c (printchar): Don't escape at all if quoter is NUL.
6508 Update function documentation to clarify effect of parameter
6510 * remote.c (escape_buffer): Pass '\\' as the quoter to
6511 fputstrn_unfiltered.
6512 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6513 generate the output.
6514 (mi_solib_unloaded): Same.
6516 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6518 * development.sh: Delete.
6519 * Makefile.in (config.status): Adjust dependency on development.sh.
6520 * configure.ac: Adjust development.sh source call.
6521 * configure: Regenerate.
6523 2014-06-04 Doug Evans <xdje42@gmail.com>
6525 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6526 is_scheme_bkpt, spec.
6527 (bpscm_make_breakpoint_smob): Initialize new members.
6528 (gdbscm_create_breakpoint_x): Split into two ...
6529 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6530 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6531 (scheme_function breakpoint_functions): Update.
6532 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6533 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6534 register-breakpoint!.
6536 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6539 * mem-break.c (z_type_supported): Return zero if
6540 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6542 2014-06-04 Tom Tromey <tromey@redhat.com>
6544 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6545 value_from_contents_and_address_unresolved.
6546 (ada_template_to_fixed_record_type_1): Likewise.
6547 (ada_which_variant_applies): Likewise.
6548 * value.h (value_from_contents_and_address_unresolved): Declare.
6549 * value.c (value_from_contents_and_address_unresolved): New
6551 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6552 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6553 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6555 2014-06-04 Tom Tromey <tromey@redhat.com>
6557 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6559 2014-06-04 Tom Tromey <tromey@redhat.com>
6561 * procfs.c (procfs_attach): Make "args" const.
6562 * windows-nat.c (windows_attach): Make "args" const.
6563 * nto-procfs.c (procfs_attach): Make "args" const.
6564 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6565 * go32-nat.c (go32_attach): Make "args" const.
6566 * gnu-nat.c (gnu_attach): Make "args" const.
6567 * darwin-nat.c (darwin_attach): Make "args" const.
6568 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6569 * linux-nat.c (linux_nat_attach): Make "args" const.
6570 * remote.c (extended_remote_attach_1, extended_remote_attach):
6572 * target.h (struct target_ops) <to_attach>: Make "args" const.
6573 (find_default_attach): Likewise.
6574 * utils.c (parse_pid_to_attach): Make "args" const.
6575 * utils.h (parse_pid_to_attach): Update.
6577 2014-06-04 Tom Tromey <tromey@redhat.com>
6579 * target-delegates.c: Rebuild.
6580 * target.c (default_thread_address_space): New function.
6581 (target_thread_address_space): Simplify.
6582 * target.h (struct target_ops) <to_thread_address_space>: Add
6583 TARGET_DEFAULT_FUNC.
6585 2014-06-04 Doug Evans <xdje42@gmail.com>
6587 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6589 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6591 * record-btrace.c: Include event-loop.h and inf-loop.h.
6592 (record_btrace_resume_exec_dir)
6593 (record_btrace_async_inferior_event_handler)
6594 (record_btrace_handle_async_inferior_event): New.
6595 (record_btrace_open): Create async event handler.
6596 (record_btrace_close): Delete async event handler.
6597 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6598 Mark async event handler.
6599 (record_btrace_execution_direction): New.
6600 (init_record_btrace_ops): Initialize to_execution_direction.
6602 2014-06-03 Doug Evans <xdje42@gmail.com>
6604 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6605 (gdbscm_make_parameter): Ditto.
6607 2014-06-03 Doug Evans <dje@google.com>
6609 * exec.c (exec_close_1): Call clear_section_table instead of
6610 resize_section_table.
6611 (clear_section_table): New function.
6612 (resize_section_table): Make static. Rename arg num_added to
6614 * exec.h (clear_section_table): Declare.
6615 (resize_section_table): Delete.
6616 * progspace.c (release_program_space): Call clear_section_table
6617 instead of resize_section_table.
6619 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6621 * NEWS (Python Scripting): Add entry about the new xmethods
6624 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6626 * python/py-xmethods.c: New file.
6627 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6628 (objfpy_dealloc): XDECREF on the new xmethods field.
6629 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6631 (objfpy_get_xmethods): New function.
6632 (objfile_getset): New entry 'xmethods'.
6633 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6634 (pspy_dealloc): XDECREF on the new xmethods field.
6635 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6637 (pspy_get_xmethods): New function.
6638 (pspace_getset): New entry 'xmethods'.
6639 * python/python-internal.h: Add declarations for new functions.
6640 * python/python.c (_initialize_python): Invoke
6641 gdbpy_initialize_xmethods.
6642 * python/lib/gdb/__init__.py (xmethods): New
6644 * python/lib/gdb/xmethod.py: New file.
6645 * python/lib/gdb/command/xmethods.py: New file.
6647 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6649 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6650 best match method returned by find_overload_match is an xmethod.
6651 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6652 the best matching operator returned by find_overload_match is an
6654 * valops.c: #include "extension.h".
6655 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6656 Return void. The list of matching source methods is returned in
6657 "fn_list" and a vector of matching debug method workers is
6658 returned in "xm_worker_vec". Update all callers.
6659 (value_find_oload_method_list): Likewise.
6660 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6661 non-NULL, then the index of the best matching method in this
6662 vector is returned. Update all callers.
6663 (find_overload_match): Include xmethods while performing overload
6666 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6668 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6669 * extension-priv.h (struct extension_language_ops): Add the
6671 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6672 get_matching_xmethod_workers, get_xmethod_argtypes,
6673 invoke_xmethod, free_xmethod_worker,
6674 free_xmethod_worker_vec): New functions.
6675 * extension.h: #include "common/vec.h".
6676 New function declarations.
6677 (struct xmethod_worker): New struct.
6678 (VEC (xmethod_worker_ptr)): New vector type.
6679 (xmethod_worker_ptr): New typedef.
6680 (xmethod_worker_vec): Likewise.
6681 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6683 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6684 (struct builtin_type): New field "xmethod".
6685 * valarith.c (value_ptradd): Assert that the value argument is not
6687 * valops.c (value_must_coerce_to_target): Return 0 for
6688 lval_xcallable values.
6689 * value.c (struct value): New field XM_WORKER in the field
6691 (value_address, value_raw_address): Return 0 for lval_xcallable
6693 (set_value_address): Assert that the value is not an
6695 (value_free): Free the associated xmethod worker when freeing
6696 lval_xcallable values.
6697 (set_value_component_location): Assert that the WHOLE value is not
6699 (value_of_xmethod, call_xmethod): New functions.
6700 * value.h: Declare "struct xmethod_worker".
6701 Declare new functions value_of_xmethod, call_xmethod.
6703 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6704 Pedro Alves <palves@redhat.com>
6706 PR breakpoints/17000
6707 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6708 New function, extracted from software_breakpoint_inserted_here_p.
6709 (software_breakpoint_inserted_here_p): Replace factored out code
6710 by call to find_non_raw_software_breakpoint_inserted_here.
6711 (bp_target_info_copy_insertion_state): New function.
6712 (bkpt_insert_location): Handle the case of a single-step
6713 breakpoint already inserted at the same address.
6714 (bkpt_remove_location): Handle the case of a single-step
6715 breakpoint still inserted at the same address.
6716 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6717 breakpoint already inserted at the same address.
6718 (deprecated_remove_raw_breakpoint): Handle the case of a
6719 non-raw breakpoint still inserted at the same address.
6720 (find_single_step_breakpoint): New function, extracted from
6721 single_step_breakpoint_inserted_here_p.
6722 (find_single_step_breakpoint): New function,
6723 factored out from single_step_breakpoint_inserted_here_p.
6724 (single_step_breakpoint_inserted_here_p): Reimplement.
6726 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6728 Pushed by Joel Brobecker <brobecker@adacore.com>
6729 * source.c (show_substitute_path_command): Fix display of matching
6732 2014-06-03 Gary Benson <gbenson@redhat.com>
6734 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6736 2014-06-02 Doug Evans <xdje42@gmail.com>
6738 Add parameter support for Guile.
6739 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6740 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6741 (scm-param.o): New rule.
6742 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6743 (gdbscm_misc_error): Declare.
6744 (gdbscm_canonicalize_command_name): Declare.
6745 (gdbscm_scm_to_host_string): Declare.
6746 (gdbscm_scm_from_host_string): Declare.
6747 (gdbscm_initialize_parameters): Declare.
6748 * guile/guile.c (initialize_gdb_module): Call
6749 gdbscm_initialize_parameters.
6750 * guile/lib/gdb.scm: Export parameter symbols.
6751 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6752 cmdscm_canonicalize_name and made public. All callers updated.
6753 * guile/scm-exception.c (gdbscm_misc_error): New function.
6754 * guile/scm-param.c: New file.
6755 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6756 (gdbscm_scm_to_host_string): New function.
6757 (gdbscm_scm_from_host_string): New function.
6758 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6760 2014-06-02 Doug Evans <xdje42@gmail.com>
6762 Add command support for Guile.
6763 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6764 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6765 (scm-cmd.o): New rule.
6766 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6767 (gdbscm_user_error_p): Declare.
6768 (gdbscm_parse_command_name): Declare.
6769 (gdbscm_valid_command_class_p): Declare.
6770 (gdbscm_initialize_commands): Declare.
6771 * guile/guile.c (initialize_gdb_module): Call
6772 gdbscm_initialize_commands.
6773 * guile/lib/gdb.scm: Export command symbols.
6774 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6775 (throw-user-error): New function.
6776 * guile/scm-cmd.c: New file.
6777 * guile/scm-exception.c (user_error_symbol): New static global.
6778 (gdbscm_user_error_p): New function.
6779 (gdbscm_initialize_exceptions): Set user_error_symbol.
6780 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6782 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6784 * top.c (command_loop): Handle comments here...
6785 (command_line_input): ... not here.
6787 2014-06-02 Doug Evans <xdje42@gmail.com>
6789 Add progspace support for Guile.
6790 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6791 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6792 (scm-progspace.o): New rule.
6793 * guile/guile-internal.h (pspace_smob): New typedef.
6794 (psscm_pspace_smob_pretty_printers): Declare.
6795 (psscm_pspace_smob_from_pspace): Declare.
6796 (psscm_scm_from_pspace): Declare.
6797 * guile/guile.c (initialize_gdb_module): Call
6798 gdbscm_initialize_pspaces.
6799 * guile/lib/gdb.scm: Export progspace symbols.
6800 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6802 (append-pretty-printer!): Ditto.
6803 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6805 * guile/scm-progspace.c: New file.
6807 2014-06-03 Alan Modra <amodra@gmail.com>
6809 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6810 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6812 2014-06-02 Doug Evans <dje@google.com>
6814 Add support for skeletonless type units.
6815 * dwarf2read.c (struct dwarf2_per_objfile): New member
6816 n_allocated_type_units.
6817 (struct dwarf2_per_objfile) <tu_stats>: New member
6818 nr_all_type_units_reallocs.
6819 (create_signatured_type_table_from_index): Initialize
6820 n_allocated_type_units
6821 (create_all_type_units): Ditto.
6822 (add_type_unit): Move up in file. New arg slot.
6823 All callers updated. Increase space for all_type_units more
6825 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6826 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6827 (lookup_dwp_signatured_type): Ditto.
6828 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6829 All callers updated.
6830 (build_type_psymtabs_1): Leave type_unit_groups as
6831 NULL if no TUs present.
6832 (print_tu_stats): New function.
6833 (process_skeletonless_type_unit): New function.
6834 (process_dwo_file_for_skeletonless_type_units): New
6836 (process_skeletonless_type_units): New function.
6837 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6838 Call print tu_stats if debugging enabled.
6840 2014-06-02 Pedro Alves <palves@redhat.com>
6842 * breakpoint.c (build_target_command_list): Don't build a command
6843 list if we have any duplicate location that isn't a dprintf.
6845 2014-06-02 Pedro Alves <palves@redhat.com>
6847 * breakpoint.c (dprintf_breakpoint_hit): New function.
6848 (initialize_breakpoint_ops): Install it as dprintf's
6849 breakpoint_hit method.
6851 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6853 * source.c (substitute_path_rule_matches): Simplify using
6854 filename_ncmp instead of FILENAME_CMP.
6856 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6858 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6860 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6862 * configure.ac: When Guile is available, check for the
6863 availability of 'scm_new_smob'.
6864 * configure, config.h.in: Regenerate.
6865 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6868 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6870 * frame.c (struct frame_info): Add stop_string field.
6871 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6872 (get_prev_frame_always): Old content moved into
6873 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6874 TRY_CATCH, handle MEMORY_ERROR exceptions.
6875 (frame_stop_reason_string): New function definition.
6876 * frame.h (unwind_stop_reason_to_string): Extend comment to
6877 mention frame_stop_reason_string.
6878 (frame_stop_reason_string): New function declaration.
6879 * stack.c (frame_info): Switch to frame_stop_reason_string.
6880 (backtrace_command_1): Switch to frame_stop_reason_string.
6881 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6882 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6883 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6885 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6887 * frame.c (frame_stop_reason_string): Rename to ...
6888 (unwind_stop_reason_to_string): this.
6889 * frame.h (frame_stop_reason_string): Rename to ...
6890 (unwind_stop_reason_to_string): this.
6891 * stack.c (frame_info): Update call to frame_stop_reason_string.
6892 (backtrace_command_1): Likewise.
6893 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6894 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6896 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6898 * frame.c (remove_prev_frame): New function.
6899 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6902 2014-05-29 Pedro Alves <palves@redhat.com>
6904 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6905 and make it const. When a single-step decays to a continue,
6906 clear 'step', not 'hw_step'. Pass whether the caller wanted
6907 to step to user_visible_resume_ptid, not what we ask the
6910 2014-05-29 Pedro Alves <palves@redhat.com>
6912 * infrun.c (process_event_stop_test, handle_step_into_function)
6913 (handle_step_into_function_backward): Adjust.
6914 Don't set the even thread's stop_step and call stop_waiting before
6915 calling end_stepping_range. Instead do that ...
6916 (end_stepping_range): ... here. Take an ecs pointer parameter.
6918 2014-05-29 Pedro Alves <palves@redhat.com>
6920 * infrun.c (stop_stepping): Rename to ...
6921 (stop_waiting): ... this.
6922 (proceed): Update comment.
6923 (process_event_stop_test, handle_inferior_event)
6924 (handle_signal_stop, handle_step_into_function)
6925 (handle_step_into_function_backward): Update.
6927 2014-05-29 Pedro Alves <palves@redhat.com>
6929 * infcall.c (run_inferior_call): Don't check whether the current
6930 thread is running after the proceed call.
6932 2014-05-29 Pedro Alves <palves@redhat.com>
6933 Tom Tromey <tromey@redhat.com>
6935 * NEWS: Mention "maint set target-async", "set mi-async", and that
6936 background execution commands are now always available.
6937 * target.h (target_async_permitted): Update comment.
6938 * target.c (target_async_permitted, target_async_permitted_1):
6940 (set_target_async_command): Rename to ...
6941 (maint_set_target_async_command): ... this.
6942 (show_target_async_command): Rename to ...
6943 (maint_show_target_async_command): ... this.
6944 (_initialize_target): Adjust.
6945 * infcmd.c (prepare_execution_command): Make extern.
6946 * inferior.h (prepare_execution_command): Declare.
6947 * infrun.c (set_observer_mode): Leave target async alone.
6948 * mi/mi-interp.c (mi_interpreter_init): Install
6949 mi_on_sync_execution_done as sync_execution_done observer.
6950 (mi_on_sync_execution_done): New function.
6951 (mi_execute_command_input_handler): Don't print the prompt if we
6952 just started a synchronous command with an async target.
6953 (mi_on_resume): Check sync_execution before printing prompt.
6954 * mi/mi-main.h (mi_async_p): Declare.
6955 * mi/mi-main.c: Include gdbcmd.h.
6956 (mi_async_p): New function.
6957 (mi_async, mi_async_1): New globals.
6958 (set_mi_async_command, show_mi_async_command, mi_async): New
6960 (exec_continue): Call prepare_execution_command.
6961 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6962 (mi_execute_async_cli_command): Use mi_async_p.
6963 (_initialize_mi_main): Install "set mi-async". Make
6964 "target-async" a deprecated alias.
6966 2014-05-29 Pedro Alves <palves@redhat.com>
6968 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6969 (_initialize_cli_interp): Adjust.
6970 * event-loop.c: Include "observer.h".
6971 (start_event_loop): Notify 'command_error' observers instead of
6972 calling display_gdb_prompt. Remove FIXME comment.
6973 * event-top.c (display_gdb_prompt): Remove call into the
6975 * inf-loop.c: Include "observer.h".
6976 (inferior_event_handler): Notify 'command_error' observers instead
6977 of calling display_gdb_prompt.
6978 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6979 observers instead of calling display_gdb_prompt.
6980 * interps.c (interp_set): Don't call display_gdb_prompt.
6981 (current_interp_display_prompt_p): Delete.
6982 * interps.h (interp_prompt_p): Delete declaration.
6983 (interp_prompt_p_ftype): Delete.
6984 (struct interp_procs) <prompt_proc_p>: Delete field.
6985 (current_interp_display_prompt_p): Delete declaration.
6986 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6987 (_initialize_mi_interp): Adjust.
6988 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6989 'command_error' observers.
6990 (tui_on_sync_execution_done, tui_on_command_error): New
6992 (tui_display_prompt_p): Delete.
6993 (_initialize_tui_interp): Adjust.
6995 2014-05-29 Pedro Alves <palves@redhat.com>
6998 * cli/cli-interp.c: Include infrun.h and observer.h.
6999 (cli_uiout, cli_interp): New globals.
7000 (cli_on_signal_received, cli_on_end_stepping_range)
7001 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7003 (cli_interpreter_init): Install them as 'end_stepping_range',
7004 'signal_received' 'signal_exited', 'exited' and 'no_history'
7006 (_initialize_cli_interp): Remove cli_interp local.
7007 * infrun.c (handle_inferior_event): Call the several stop reason
7008 observers instead of printing the stop reason directly.
7009 (end_stepping_range): New function.
7010 (print_end_stepping_range_reason, print_signal_exited_reason)
7011 (print_exited_reason, print_signal_received_reason)
7012 (print_no_history_reason): Make static, and add an uiout
7013 parameter. Print to that instead of to CURRENT_UIOUT.
7014 * infrun.h (print_end_stepping_range_reason)
7015 (print_signal_exited_reason, print_exited_reason)
7016 (print_signal_received_reason print_no_history_reason): New
7018 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7020 <cli_uiout>: New field.
7021 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7022 uiout for CLI output. Install 'signal_received',
7023 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7025 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7026 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7027 (mi_on_no_history): New functions.
7028 (ui_out_free_cleanup): Delete function.
7029 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7030 instead use the one already stored in the MI interpreter data.
7031 (mi_ui_out): Adjust.
7032 * tui/tui-interp.c: Include infrun.h and observer.h.
7033 (tui_interp): New global.
7034 (tui_on_signal_received, tui_on_end_stepping_range)
7035 (tui_on_signal_exited, tui_on_exited)
7036 (tui_on_no_history): New functions.
7037 (tui_init): Install them as 'end_stepping_range',
7038 'signal_received' 'signal_exited', 'exited' and 'no_history'
7040 (_initialize_tui_interp): Delete tui_interp local.
7042 2014-05-29 Pedro Alves <palves@redhat.com>
7045 * linux-nat.c (linux_nat_resume_callback): Rename the second
7046 parameter to 'except'. Skip LP if it points to EXCEPT.
7047 (linux_nat_resume): Don't mark the event lwp as not stopped
7048 before resuming sibling lwps. Instead ask
7049 linux_nat_resume_callback to skip the event lwp. Mark it as not
7050 stopped after actually resuming it.
7051 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7053 (wait_lwp): Mark the lwp as stopped here.
7054 (stop_wait_callback): Mark the lwp as not stopped right after
7055 resuming it. Don't mark lwps as stopped here.
7056 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7057 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7059 2014-05-29 Pedro Alves <palves@redhat.com>
7062 * infrun.c (resume): Determine how much to resume depending on
7063 whether the caller wanted a step, not whether we can hardware step
7064 the target. Mark all threads that we intend to run as running,
7065 unless we're calling an inferior function.
7066 (normal_stop): If the thread is running an infcall, don't finish
7068 * target.c (target_resume): Don't mark threads as running here.
7070 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7072 * serial.c (_initialize_serial): Remove support for
7073 the "set remotebaud" and "show remotebaud" commands.
7074 * NEWS: Add entry documenting the removal of that command.
7076 2014-05-28 Yao Qi <yao@codesourcery.com>
7078 * charset.c: Fix typo in comments.
7080 2014-05-27 Gary Benson <gbenson@redhat.com>
7082 * utils.c (internal_vproblem): Prompt for a bug report.
7084 2014-05-26 Andy Wingo <wingo@igalia.com>
7086 * guile/scm-arch.c (arscm_mark_arch_smob):
7087 * guile/scm-block.c (bkscm_mark_block_smob)
7088 (bkscm_mark_block_syms_progress_smob):
7089 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7090 * guile/scm-exception.c (exscm_mark_exception_smob):
7091 * guile/scm-frame.c (frscm_mark_frame_smob):
7092 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7093 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7094 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7095 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7096 (ppscm_mark_pretty_printer_worker_smob):
7097 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7098 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7099 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7100 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7102 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7105 2014-05-26 Andy Wingo <wingo@igalia.com>
7106 Doug Evans <xdje42@gmail.com>
7108 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7109 empty_base_class. All uses updated.
7110 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7111 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7113 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7114 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7115 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7116 (gdbscm_gsmob_has_property_p, add_property_name)
7117 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7118 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7119 (gdb-object-has-property?, gdb-object-properties): Remove.
7120 (gdb-object-kind): Renamed from gsmob-kind.
7122 2014-05-26 Andy Wingo <wingo@igalia.com>
7124 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7125 * configure: Regenerate.
7127 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7129 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7131 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7133 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7134 (replay_memory_access_read_only, replay_memory_access_read_write)
7135 (replay_memory_access_types, replay_memory_access)
7136 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7137 (cmd_set_record_btrace, cmd_show_record_btrace)
7138 (cmd_show_replay_memory_access): New.
7139 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7140 (record_btrace_remove_breakpoint): Replace
7141 record_btrace_allow_memory_access with replay_memory_access.
7142 (_initialize_record_btrace): Add commands.
7143 * NEWS: Announce it.
7145 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7147 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7149 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7151 * MAINTAINERS (Write After Approval): Move self back from
7154 2014-05-22 Pedro Alves <palves@redhat.com>
7156 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7157 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7158 (disable_randomization, enum exec_direction_kind)
7159 (execution_direction, stop_registers, start_remote)
7160 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7161 (wait_for_inferior, normal_stop, get_last_target_status)
7162 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7163 (insert_step_resume_breakpoint_at_sal)
7164 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7165 (set_step_info, print_stop_event, signal_stop_state)
7166 (signal_print_state, signal_pass_state, signal_stop_update)
7167 (signal_print_update, signal_pass_update)
7168 (update_signals_program_target, clear_exit_convenience_vars)
7169 (displaced_step_dump_bytes, update_observer_mode)
7170 (signal_catch_update, gdb_signal_from_command): Move
7172 * infrun.h: ... to this new file.
7173 * amd64-tdep.c: Include infrun.h.
7174 * annotate.c: Include infrun.h.
7175 * arch-utils.c: Include infrun.h.
7176 * arm-linux-tdep.c: Include infrun.h.
7177 * arm-tdep.c: Include infrun.h.
7178 * break-catch-sig.c: Include infrun.h.
7179 * breakpoint.c: Include infrun.h.
7180 * common/agent.c: Include infrun.h instead of inferior.h.
7181 * corelow.c: Include infrun.h.
7182 * event-top.c: Include infrun.h.
7183 * go32-nat.c: Include infrun.h.
7184 * i386-tdep.c: Include infrun.h.
7185 * inf-loop.c: Include infrun.h.
7186 * infcall.c: Include infrun.h.
7187 * infcmd.c: Include infrun.h.
7188 * infrun.c: Include infrun.h.
7189 * linux-fork.c: Include infrun.h.
7190 * linux-nat.c: Include infrun.h.
7191 * linux-thread-db.c: Include infrun.h.
7192 * monitor.c: Include infrun.h.
7193 * nto-tdep.c: Include infrun.h.
7194 * procfs.c: Include infrun.h.
7195 * record-btrace.c: Include infrun.h.
7196 * record-full.c: Include infrun.h.
7197 * remote-m32r-sdi.c: Include infrun.h.
7198 * remote-mips.c: Include infrun.h.
7199 * remote-notif.c: Include infrun.h.
7200 * remote-sim.c: Include infrun.h.
7201 * remote.c: Include infrun.h.
7202 * reverse.c: Include infrun.h.
7203 * rs6000-tdep.c: Include infrun.h.
7204 * s390-linux-tdep.c: Include infrun.h.
7205 * solib-irix.c: Include infrun.h.
7206 * solib-osf.c: Include infrun.h.
7207 * solib-svr4.c: Include infrun.h.
7208 * target.c: Include infrun.h.
7209 * top.c: Include infrun.h.
7210 * windows-nat.c: Include infrun.h.
7211 * mi/mi-interp.c: Include infrun.h.
7212 * mi/mi-main.c: Include infrun.h.
7213 * python/py-threadevent.c: Include infrun.h.
7215 2014-05-22 Pedro Alves <palves@redhat.com>
7217 * infrun.c (handle_inferior_event): Store the exit code for
7218 --return-child-result here, instead of ...
7219 (print_exited_reason): ... here.
7221 2014-05-21 Pedro Alves <palves@redhat.com>
7224 * gdbthread.h (struct thread_control_state): New field
7226 * infrun.c (follow_fork): Copy the new thread control field to the
7228 (clear_proceed_status_thread): Clear the new thread control field.
7229 (proceed): Set the new thread control field.
7230 * interps.h (command_interp): Declare.
7231 * interps.c (command_interpreter): New global.
7232 (command_interp): New function.
7233 (interp_exec): Set `command_interpreter' while here.
7234 * cli-out.c (cli_uiout_dtor): New function.
7235 (cli_ui_out_impl): Install it.
7236 * mi/mi-interp.c: Include cli-out.h.
7237 (mi_cmd_interpreter_exec): Add comment.
7238 (restore_current_uiout_cleanup): New function.
7239 (ui_out_free_cleanup): New function.
7240 (mi_on_normal_stop): If finishing an execution command started by
7241 a CLI command, or any kind of breakpoint-like event triggered,
7242 print the stop event to the output (CLI) stream.
7243 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7245 2014-05-21 Pedro Alves <palves@redhat.com>
7247 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7248 current source line having changed.
7249 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7250 * infrun.c (normal_stop): Adjust call to
7251 set_current_sal_from_frame.
7252 * source.c (clear_lines_listed_range): New function.
7253 (set_current_source_symtab_and_line, identify_source_line): Clear
7254 the lines listed range.
7255 (line_info): Handle the first "info line" after the current source
7256 line having changed.
7257 * stack.c (print_stack_frame): Remove center handling.
7258 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7261 2014-05-21 Pedro Alves <palves@redhat.com>
7263 * inf-child.c (inf_child_mourn_inferior): New function.
7264 * inf-child.h (inf_child_mourn_inferior): New declaration.
7265 * darwin-nat.c (darwin_mourn_inferior): Use
7266 inf_child_mourn_inferior.
7267 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7268 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7269 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7270 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7271 * windows-nat.c (windows_mourn_inferior): Likewise.
7273 2014-05-21 Doug Evans <xdje42@gmail.com>
7275 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7277 2014-05-21 Doug Evans <xdje42@gmail.com>
7279 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7280 (gdbscm_out_of_range_error): Ditto.
7281 (gdbscm_memory_error): Ditto.
7282 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7283 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7284 (gdbscm_out_of_range_error): Update.
7285 (gdbscm_memory_error): Update.
7286 (gdbscm_scm_to_target_string_unsafe): Delete.
7288 2014-05-21 Pedro Alves <palves@redhat.com>
7290 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7292 (inf_child_open_target): New function.
7293 (inf_child_open): Use inf_child_open_target to push the target
7294 instead of erroring out.
7295 (inf_child_disconnect, inf_child_close)
7296 (inf_child_maybe_unpush_target): New functions.
7297 (inf_child_target): Install inf_child_disconnect and
7298 inf_child_close. Store a pointer to the returned object.
7299 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7301 * target.c (auto_connect_native_target): New global.
7302 (show_default_run_target): New function.
7303 (find_default_run_target): Return NULL if automatically connecting
7304 to the native target is disabled.
7305 (_initialize_target): Install set/show auto-connect-native-target.
7306 * NEWS: Mention "set auto-connect-native-target", and "target
7308 * linux-nat.c (super_close): New global.
7309 (linux_nat_close): Call super_close.
7310 (linux_nat_add_target): Store a pointer to the base class's
7312 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7313 inf_child_maybe_unpush.
7314 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7316 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7317 the inferior. Use inf_child_maybe_unpush_target.
7318 (inf_ttrace_attach): Don't push the target if it is already
7320 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7321 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7322 after mourning the inferior. Use inf_child_maybe_unpush_target.
7323 (darwin_attach_pid): Don't push the target if it is already
7325 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7326 mourning the inferior. Use inf_child_maybe_unpush_target.
7327 (gnu_detach): Use inf_child_maybe_unpush_target.
7328 * go32-nat.c (go32_create_inferior): Don't push the target if it
7330 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7331 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7332 (procfs_open): Rename to ...
7333 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7334 comments. Can target_preopen before changing node. Call
7335 inf_child_open_target to push the target explicitly.
7336 (procfs_attach): Don't push the target if it is already pushed.
7337 (procfs_detach): Use inf_child_maybe_unpush_target.
7338 (procfs_create_inferior): Don't push the target if it is already
7340 (nto_native_ops): New global.
7341 (procfs_open): Reimplement.
7342 (procfs_native_open): New function.
7343 (init_procfs_targets): Install procfs_native_open as to_open of
7344 "target native". Store a pointer to the "native" target in
7346 * procfs.c (procfs_attach): Don't push the target if it is already
7348 (procfs_detach): Use inf_child_maybe_unpush_target.
7349 (procfs_mourn_inferior): Only unpush the target after mourning the
7350 inferior. Use inf_child_maybe_unpush_target.
7351 (procfs_init_inferior): Don't push the target if it is already
7353 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7354 if it is already pushed.
7356 2014-05-21 Pedro Alves <palves@redhat.com>
7358 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7359 and "procfs" targets are now called "native" instead.
7361 2014-05-21 Pedro Alves <palves@redhat.com>
7363 * go32-nat.c (go32_open): Delete.
7364 (go32_target): Don't override the to_open method.
7366 2014-05-21 Pedro Alves <palves@redhat.com>
7368 * nto-procfs.c (procfs_can_run): New function.
7369 (nto_procfs_ops): New global.
7370 (init_procfs_targets): New, based on procfs_target. Install
7371 "target native" in addition to "target procfs".
7372 (_initialize_procfs): Call init_procfs_targets instead of adding
7375 2014-05-21 Pedro Alves <palves@redhat.com>
7377 * windows-nat.c (windows_target): Don't override to_shortname,
7378 to_longname or to_doc.
7380 2014-05-21 Pedro Alves <palves@redhat.com>
7382 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7385 2014-05-21 Pedro Alves <palves@redhat.com>
7387 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7388 to_shortname, to_longname or to_doc.
7390 2014-05-21 Pedro Alves <palves@redhat.com>
7392 * go32-nat.c (go32_target): Don't override to_shortname,
7393 to_longname or to_doc.
7395 2014-05-21 Pedro Alves <palves@redhat.com>
7397 * inf-child.c (inf_child_open): Remove mention of "child".
7398 (inf_child_target): Rename target to "native" instead of "child".
7400 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7402 * Makefile.in (SFILES): Delete "regset.c".
7403 (COMMON_OBS): Delete "regset.o".
7405 * regset.h (regset_alloc): Delete prototype.
7407 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7409 * sparc-linux-tdep.c (sparc32_linux_gregset)
7410 (sparc32_linux_fpregset): New static regset structures.
7411 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7412 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7414 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7415 (sparc64_linux_fpregset): New static regset structures.
7416 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7417 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7418 New static regset structures.
7419 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7420 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7421 New static regset structures.
7422 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7423 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7424 New static regset structures.
7425 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7426 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7427 New static regset structures.
7428 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7430 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7432 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7433 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7434 register maps ("regmaps") from "*regset" to "*regmap". Do this
7435 for all regmap types and variables.
7436 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7437 (sparc32_linux_supply_core_gregset)
7438 (sparc32_linux_collect_core_gregset)
7439 (sparc32_linux_supply_core_fpregset)
7440 (sparc32_linux_collect_core_fpregset): Likewise.
7441 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7442 (sparc_gregmap, sparc_fpregmap): ... these.
7443 (sparc_supply_gregset, sparc_collect_gregset)
7444 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7445 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7446 (_initialize_sparc_nat): Rename regmaps.
7447 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7448 (sparc_gregmap, sparc_fpregmap): ... these.
7449 (sparc_supply_gregset, sparc_collect_gregset)
7450 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7451 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7453 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7454 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7456 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7458 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7459 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7460 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7462 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7463 (sparc32_bsd_fpregset): Rename to...
7464 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7465 (sparc32_bsd_fpregmap): ... these.
7466 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7467 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7468 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7469 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7470 (struct sparc_gregmap, struct sparc_fpregmap)
7471 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7472 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7473 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7474 (sparc32_supply_regset, sparc32_collect_gregset)
7475 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7477 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7478 (sparc64_linux_ptrace_gregmap): ... this.
7479 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7480 (_initialize_sparc64_linux_nat): Rename regmaps.
7481 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7482 (sparc64_linux_core_gregmap): ... this.
7483 (sparc64_linux_supply_core_gregset)
7484 (sparc64_linux_collect_core_gregset)
7485 (sparc64_linux_supply_core_fpregset)
7486 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7487 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7488 (sparc64_sol2_fpregset): Rename to...
7489 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7490 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7491 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7493 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7494 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7495 (sparc64_bsd_fpregset): Rename to...
7496 (struct sparc_gregmap, sparc64_sol2_gregmap)
7497 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7498 (sparc64_bsd_fpregmap): ... these.
7499 (sparc64_supply_gregset, sparc64_collect_gregset)
7500 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7502 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7503 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7504 (sparc64fbsd_gregmap): ... this.
7505 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7506 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7508 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7509 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7510 (sparc64nbsd_collect_fpregset): Likewise.
7511 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7512 (sparc64nbsd_gregmap): ... this.
7513 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7515 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7516 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7517 (sparc64obsd_gregmap): ... this.
7518 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7520 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7521 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7522 (sparc32nbsd_gregmap): ... this.
7523 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7526 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7528 * score-tdep.c (score7_linux_gregset): New static regset
7530 (score7_linux_regset_from_core_section): Remove dynamic regset
7532 (score_gdbarch_init): Drop allocation of tdep structure.
7533 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7535 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7537 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7539 (am33_regset_from_core_section): Remove dynamic regset
7542 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7544 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7545 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7547 (mips_linux_regset_from_core_section): Remove dynamic regset
7549 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7550 'gregset64', 'fpregset', and 'fpregset64'.
7551 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7552 deleted tdep fields.
7554 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7556 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7558 (amd64_regset_from_core_section): Remove dynamic regset
7560 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7562 (amd64obsd_regset_from_core_section): Remove dynamic regset
7564 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7566 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7567 x86-common regset supply function.
7568 * i386-tdep.c (i386_collect_gregset): Make static.
7569 (i386_gregset): New global regset structure.
7570 (i386_fpregset, i386_xstateregset): New static regset structures.
7571 (i386_regset_from_core_section): Remove dynamic regset
7573 (i386_gdbarch_init): Remove initialization of tdep fields
7574 'gregset', 'fpregset', and 'xstateregset'.
7575 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7576 'fpregset', and 'xstateregset'.
7577 (i386_collect_gregset): Remove prototype.
7578 (i386_gregset): New declaration.
7579 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7581 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7584 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7586 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7587 (arm_linux_vfpregset): New static regset structures.
7588 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7590 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7591 and 'vfpregset' fields.
7593 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7595 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7596 (aarch64_linux_fpregset): New static regset structures.
7597 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7598 of regset structures.
7599 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7602 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7604 * regset.h (struct regset): Remove gdbarch field.
7605 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7606 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7607 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7609 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7610 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7611 (ppc32_linux_vsxregset): Likewise.
7612 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7613 via the regcache instead of the regset.
7614 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7615 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7616 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7617 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7620 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7622 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7623 Constify structures.
7624 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7625 (alphanbsd_aout_gregset): Likewise.
7626 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7627 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7629 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7630 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7632 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7633 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7634 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7635 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7636 * m88k-tdep.c (m88k_gregset): Likewise.
7637 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7638 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7639 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7640 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7641 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7642 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7643 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7644 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7645 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7647 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7648 * sh-tdep.h (sh_corefile_gregset): Likewise.
7649 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7650 * vax-tdep.c (vax_gregset): Likewise.
7652 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7654 Fix TLS access for -static -pthread.
7655 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7656 (try_thread_db_load_1): Initialize it.
7657 (thread_db_get_thread_local_address): Call it if LM is zero.
7658 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7659 * target.h (struct target_ops) (to_get_thread_local_address): Add
7660 load_module_addr comment.
7662 2014-05-21 Pedro Alves <palves@redhat.com>
7664 * dcache.c (dcache_read_memory_partial): If reading the cache line
7665 fails, fallback to reading just the memory the caller wanted.
7667 2014-05-20 Doug Evans <dje@google.com>
7669 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7670 instead of get_current_arch.
7672 2014-05-20 Pedro Alves <palves@redhat.com>
7674 * NEWS: Mention that compare-sections now works with all targets.
7676 * remote.c (PACKET_qCRC): New enum value.
7677 (remote_verify_memory): Don't send qCRC if the target has no
7678 execution. Use packet_support/packet_ok. If the target doesn't
7679 support the qCRC packet, fallback to a deep memory copy.
7680 (compare_sections_command): Say "target image" instead of "remote
7682 (_initialize_remote): Add PACKET_qCRC to the list of config
7683 packets that have no associated command. Extend comment.
7684 * target.c (simple_verify_memory, default_verify_memory): New
7686 * target.h (struct target_ops) <to_verify_memory>: Default to
7687 default_verify_memory.
7688 (simple_verify_memory): New declaration.
7689 * target-delegates.c: Regenerate.
7691 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7693 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7695 2014-05-20 Hui Zhu <hui@codesourcery.com>
7696 Yao Qi <yao@codesourcery.com>
7699 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7700 and change address of sp and pc.
7702 2014-05-19 Tom Tromey <tromey@redhat.com>
7704 * gdbtypes.c (rank_function): Use XNEWVEC.
7705 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7707 2014-05-19 Doug Evans <dje@google.com>
7709 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7710 build_type_unit_groups and moved closer to only caller. Remove
7711 arguments. All references updated. Remove outdated .gdb_index
7713 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7714 build_type_psymtabs_1.
7716 2014-05-19 Doug Evans <dje@google.com>
7718 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7719 n_type_unit_groups, all_type_unit_groups. All uses removed.
7720 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7721 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7722 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7723 (add_type_unit_group_to_table): Delete.
7725 2014-05-19 Doug Evans <dje@google.com>
7727 * eval.c (evaluate_subexp_standard): Add some comments.
7729 2014-05-17 Doug Evans <xdje42@gmail.com>
7731 * progspace.c (remove_program_space): Delete, unused.
7732 * progspace.h (remove_program_space): Ditto.
7734 2014-05-17 Doug Evans <xdje42@gmail.com>
7736 * inferior.c (prune_inferiors): Fix comment.
7737 (remove_inferior_command): Call prune_program_spaces.
7739 2014-05-16 Doug Evans <dje@google.com>
7741 New command line option -D.
7743 * main.c (set_gdb_data_directory): New function.
7744 (captured_main): Recognize -D. Flag error for --data-directory "".
7745 Call set_gdb_data_directory.
7746 (print_gdb_help): Print --data-directory, -D.
7747 * main.h (set_gdb_data_directory): Declare.
7748 * top.c (staged_gdb_datadir): New static global.
7749 (set_gdb_datadir): Call set_gdb_data_directory
7750 (show_gdb_datadir): New function.
7751 (init_main): Update init of data-directory parameter.
7753 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7755 Import the "dirfd" gnulib module.
7756 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7757 * gnulib/aclocal.m4: Update.
7758 * gnulib/config.in: Update.
7759 * gnulib/configure: Update.
7760 * gnulib/import/Makefile.am: Update.
7761 * gnulib/import/Makefile.in: Update.
7762 * gnulib/import/dirfd.c: New.
7763 * gnulib/import/m4/dirfd.m4: New.
7764 * gnulib/import/m4/gnulib-cache.m4: Update.
7765 * gnulib/import/m4/gnulib-comp.m4: Update.
7767 2014-05-16 Pierre Muller <muller@sourceware.org>
7768 Yao Qi <yao@codesourcery.com>
7770 * valprint.c (print_wchar): Move the code on checking whether
7771 W is a printable wide char to the default branch of switch
7772 statement below. Call wchar_printable instead of gdb_iswprint.
7774 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7776 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7777 ldr.w and ldrd instructions.
7779 2014-05-15 Doug Evans <dje@google.com>
7781 * dwarf2read.c (read_structure_type): Delete outdated comments.
7783 2014-05-14 Tom Tromey <tromey@redhat.com>
7785 * macrocmd.c (print_macro_definition): Reindent.
7787 2014-05-13 Doug Evans <xdje42@gmail.com>
7789 * python/py-cmd.c (cmdpy_completer): Add comment.
7790 (completers): Make const.
7792 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7794 * infrun.c (resume): Remove should_resume (unused). Move up
7795 declaration of resume_ptid.
7797 2014-05-13 Tom Tromey <tromey@redhat.com>
7799 * language.h (unop_type_check): Remove.
7800 (binop_type_check): Don't declare.
7802 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7804 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7805 call to regcache_raw_collect.
7807 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7809 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7810 mi_console->quote as the quoting character.
7812 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7814 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7816 2014-04-29 Tom Tromey <tromey@redhat.com>
7818 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7819 "show debug varobj".
7821 2014-05-07 Kyle McMartin <kyle@redhat.com>
7823 Pushed by Joel Brobecker <brobecker@adacore.com>.
7824 * aarch64-tdep.c (aarch64_software_single_step): New function.
7825 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7826 with aarch64_software_single_step.
7828 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7832 2014-05-05 Keith Seitz <keiths@redhat.com>
7834 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7835 variable or history value is successfully parsed.
7837 2014-05-05 Yao Qi <yao@codesourcery.com>
7838 Pedro Alves <palves@redhat.com>
7840 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7841 address of blocks that intersects the requested range. Trim
7842 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7844 * ctf.c (ctf_xfer_partial): Likewise.
7846 2014-05-05 Yao Qi <yao@codesourcery.com>
7848 * printcmd.c (display_command): Remove the check to
7849 target_has_execution.
7851 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7853 * ppcobsd-nat.c: Include "obsd-nat.h".
7854 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7856 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7858 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7860 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7861 and 16-bit signed and unsigned arguments. Update comment.
7862 (stap_parse_probe_arguments): Extend code to handle such
7863 arguments. Use warning instead of complaint to notify about
7864 unrecognized bitness.
7866 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7868 PR breakpoints/16889
7869 * stap-probe.c (stap_parse_probe_arguments): Simplify
7870 check for non-prefixed probes (i.e., probes whose
7871 arguments do not start with "N@"). Always set the
7872 argument type to a sane value.
7874 2014-05-01 David Taylor <dtaylor@emc.com>
7876 * remote.c (compare_sections_command): Add -r option to compare
7877 all loadable read-only sections.
7879 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7881 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7882 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7884 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7885 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7886 Remove unused CORE_ADDR argument. Update all callers.
7888 2014-04-29 Pedro Alves <palves@redhat.com>
7890 * remote.c (struct packet_config) <detect>: Extend comment.
7891 (add_packet_config_cmd): Don't set the config's detect or support
7893 (init_all_packet_configs): Also initialize the config's 'detect'
7895 (reset_all_packet_configs_support): New function.
7896 (remote_open_1): Call reset_all_packet_configs_support instead of
7897 init_all_packet_configs.
7898 (_initialize_remote): Initialize all packet configs. Assert that
7899 all packets have an associated command, except a few known
7902 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7904 * dwarf2read.c (read_subrange_type): Handle dynamic
7905 DW_AT_lower_bound attributes.
7907 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7909 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7910 dynamic bounds before computing its upper bound.
7911 (ada_discrete_type_low_bound): Same as above with the lower bound.
7913 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7915 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7916 range types. Adjust the array handling implementation to
7917 take advantage of this change.
7918 (resolve_dynamic_range): New function, mostly extracted from
7919 resolve_dynamic_bounds.
7920 (resolve_dynamic_array): New function, mostly extracted from
7921 resolve_dynamic_bounds.
7922 (resolve_dynamic_bounds): Delete.
7923 (resolve_dynamic_type): Reimplement. Add handling of
7924 TYPE_CODE_RANGE types.
7926 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7928 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7929 handling of parallel ___XA types.
7931 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7933 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7934 unnecessary second call to static_unwrap_type.
7936 2014-04-27 Hui Zhu <hui@codesourcery.com>
7938 * stack.c (print_frame_info): Call do_gdb_disassembly with
7939 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7941 2014-04-26 Doug Evans <xdje42@gmail.com>
7943 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7945 2014-04-25 Pedro Alves <palves@redhat.com>
7948 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7949 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7950 and newline from built string.
7951 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7952 (linux_ptrace_attach_fail_reason): ... this.
7953 * linux-nat.c (linux_nat_attach): Adjust to use
7954 linux_ptrace_attach_fail_reason.
7956 2014-04-25 Pedro Alves <palves@redhat.com>
7958 * remote.c (struct remote_state): Remove multi_process_aware,
7959 non_stop_aware, cond_tracepoints, cond_breakpoints,
7960 breakpoint_commands, fast_tracepoints, static_tracepoints,
7961 install_in_trace, disconnected_tracing,
7962 enable_disable_tracepoints, string_tracing, and
7963 augmented_libraries_svr4_read fields.
7964 (remote_multi_process_p): Move further below in the file.
7965 (struct packet_config): Add comments.
7966 (update_packet_config): Delete function.
7967 (show_packet_config_cmd): Use packet_config_support.
7968 (add_packet_config_cmd): Use NULL as set callback.
7969 (packet_ok): "set remote foo-packet"-style commands no longer
7970 change config->supported -- adjust.
7971 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7972 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7973 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7974 (PACKET_QNonStop, PACKET_multiprocess_feature)
7975 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7976 (PACKET_DisconnectedTracing_feature)
7977 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7978 (set_remote_protocol_packet_cmd): Delete function.
7979 (packet_config_support, packet_support): New functions.
7980 (set_remote_protocol_Z_packet_cmd): Don't call
7981 update_packet_config.
7982 (remote_query_attached, remote_pass_signals)
7983 (remote_program_signals, remote_threads_info)
7984 (remote_threads_extra_info, remote_start_remote): Use
7986 (remote_start_remote): Use packet_config_support and
7988 (init_all_packet_configs): Set all packets to unknown support,
7989 instead of calling update_packet_config.
7990 (remote_check_symbols): Use packet_support.
7991 (remote_supported_packet): Unconditionally set the packet config's
7993 (remote_multi_process_feature, remote_non_stop_feature)
7994 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7995 (remote_breakpoint_commands_feature)
7996 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7997 (remote_install_in_trace_feature)
7998 (remote_disconnected_tracing_feature)
7999 (remote_enable_disable_tracepoint_feature)
8000 (remote_string_tracing_feature)
8001 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8002 (remote_protocol_features): Adjust to use remote_supported_packet
8003 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8004 "ConditionalTracepoints", "ConditionalBreakpoints",
8005 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8006 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8007 "EnableDisableTracepoints", and "tracenz".
8008 (remote_query_supported): Use packet_support.
8009 (remote_open_1): Adjust.
8010 (extended_remote_attach_1): Use packet_support. Switch on the
8011 result of packet_ok instead of checking whether the packet ended
8013 (remote_vcont_resume): Use packet_support.
8014 (remote_resume, remote_stop_ns, fetch_register_using_p)
8015 (remote_prepare_to_store, store_register_using_P)
8016 (check_binary_download, remote_write_bytes): Use packet_support.
8017 (remote_vkill): Use packet_support. Switch on the result of
8018 packet_ok instead of checking whether the packet ended up
8020 (extended_remote_supports_disable_randomization): Use
8022 (extended_remote_run): Switch on the result of packet_ok instead
8023 of checking whether the packet ended up disabled.
8024 (remote_insert_breakpoint, remote_remove_breakpoint)
8025 (remote_insert_watchpoint, remote_remove_watchpoint)
8026 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8028 (remote_search_memory): Use packet_config_support.
8029 (remote_get_thread_local_address, remote_get_tib_address)
8030 (remote_hostio_send_command, remote_can_execute_reverse): Use
8032 (remote_supports_cond_tracepoints)
8033 (remote_supports_cond_breakpoints)
8034 (remote_supports_fast_tracepoints)
8035 (remote_supports_static_tracepoints)
8036 (remote_supports_install_in_trace)
8037 (remote_supports_enable_disable_tracepoint)
8038 (remote_supports_string_tracing)
8039 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8040 the packet config says the feature is enabled or disabled.
8041 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8042 (remote_get_trace_status): Use packet_support.
8043 (remote_set_disconnected_tracing): Adjust to check whether the
8044 feature is enabled with packet_support.
8045 (remote_set_trace_buffer_size, remote_use_agent)
8046 (remote_can_use_agent, remote_supports_btrace): Use
8048 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8049 Use packet_config_support.
8050 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8051 the packet config says the feature is enabled or disabled.
8052 (set_range_stepping): Use packet_support.
8054 2014-04-25 Tom Tromey <tromey@redhat.com>
8056 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8059 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8061 * NEWS: Mention support for C99 variable length arrays.
8063 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8065 * ada-lang.c (standard_exc): Expand introductory comment.
8067 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8068 Walfred Tedeschi <walfred.tedeschi@intel.com>
8070 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8072 (amd64_linux_read_description): Add code to handle AVX512 xstate
8073 mask and return respective tdesc.
8074 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8075 and features/i386/x32-avx512-linux.c.
8076 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8077 (amd64_linux_core_read_description): Add code to handle AVX512
8078 xstate mask and return respective tdesc.
8079 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8080 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8082 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8083 (tdesc_amd64_avx512_linux): New prototype.
8084 (tdesc_x32_avx512_linux): Likewise.
8085 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8086 features/i386/x32-avx512.c.
8087 (amd64_ymm_avx512_names): New register names for pseudo
8089 (amd64_ymmh_avx512_names): New register names for raw registers
8091 (amd64_k_names): New register names for K registers.
8092 (amd64_zmmh_names): New register names for ZMM raw registers.
8093 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8094 (amd64_xmm_avx512_names): New register names for XMM16-31
8096 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8098 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8099 if feature is present.
8100 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8101 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8102 (AMD64_NUM_REGS): Adjust to new number of registers.
8103 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8104 registers supplied via XSTATE by AVX512 registers.
8105 (i386_linux_read_description): Add case for AVX512.
8106 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8107 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8108 (i386_linux_core_read_description): Add case for AVX512.
8109 (i386_linux_init_abi): Install supported register note section
8111 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8113 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8114 registers to be number of zmm7h + 1.
8115 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8116 * i386-tdep.c: Include features/i386/i386-avx512.c.
8117 (i386_zmm_names): Add ZMM pseudo register names array.
8118 (i386_zmmh_names): Add ZMM raw register names array.
8119 (i386_k_names): Add K raw register names array.
8120 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8121 registers. AVX512 has 16 more ZMM registers than there are YMM
8123 (i386_zmmh_regnum_p): Add function to look up register number of
8125 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8126 (i386_k_regnum_p): Likewise for K raw registers.
8127 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8128 registers added by AVX512.
8129 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8130 registers added by AVX512.
8131 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8133 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8134 (i386_pseudo_register_name): Add ZMM pseudo registers.
8135 (i386_zmm_type): Construct and return vector registers type for ZMM
8137 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8138 ZMM0-31 pseudo registers and K registers.
8139 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8140 and YMM16-31 registers from register cache.
8141 (i386_pseudo_register_write): Add code to write K, ZMM and
8143 (i386_register_reggroup_p): Add code to include/exclude AVX512
8144 registers in/from respective register groups.
8145 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8146 registers if feature is present in xcr0.
8147 (i386_gdbarch_init): Add code to initialize AVX512 feature
8148 variables in tdep structure, wire in pseudo registers and call
8149 initialize_tdesc_i386_avx512.
8150 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8152 (i386_regnum): Add AVX512 registers.
8153 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8154 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8155 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8156 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8158 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8159 (i386_ymm_avx512_regnum_p): Likewise.
8160 (i386_k_regnum_p): Likewise.
8161 (i386_zmm_regnum_p): Likewise.
8162 (i386_zmmh_regnum_p): Likewise.
8163 * i387-tdep.c : Update year in copyright notice.
8164 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8166 (XSAVE_YMM_AVX512_ADDR): New macro.
8167 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8169 (XSAVE_XMM_AVX512_ADDR): New macro.
8170 (xsave_avx512_k_offset): New table for K register offsets in
8172 (XSAVE_AVX512_K_ADDR): New macro.
8173 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8175 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8176 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8178 (i387_collect_xsave): Add code to collect AVX512 registers from
8180 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8181 of XMM16-31 registers.
8182 (I387_NUM_K_REGS): New define for number of K registers.
8183 (I387_K0_REGNUM): New define for K0 register number.
8184 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8185 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8186 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8188 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8189 (I387_XMM16_REGNUM): New define for XMM16 register number.
8190 (I387_YMM0_REGNUM): New define for YMM0 register number.
8191 (I387_KEND_REGNUM): New define for last K register number.
8192 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8193 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8195 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8197 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8199 * features/Makefile: Add AVX512 related files.
8200 * features/i386/32bit-avx512.xml: New file.
8201 * features/i386/64bit-avx512.xml: Likewise.
8202 * features/i386/amd64-avx512-linux.c: Likewise.
8203 * features/i386/amd64-avx512-linux.xml: Likewise.
8204 * features/i386/amd64-avx512.c: Likewise.
8205 * features/i386/amd64-avx512.xml: Likewise.
8206 * features/i386/i386-avx512-linux.c: Likewise.
8207 * features/i386/i386-avx512-linux.xml: Likewise.
8208 * features/i386/i386-avx512.c: Likewise.
8209 * features/i386/i386-avx512.xml: Likewise.
8210 * features/i386/x32-avx512-linux.c: Likewise.
8211 * features/i386/x32-avx512-linux.xml: Likewise.
8212 * features/i386/x32-avx512.c: Likewise.
8213 * features/i386/x32-avx512.xml: Likewise.
8214 * regformats/i386/amd64-avx512-linux.dat: New file.
8215 * regformats/i386/amd64-avx512.dat: Likewise.
8216 * regformats/i386/i386-avx512-linux.dat: Likewise.
8217 * regformats/i386/i386-avx512.dat: Likewise.
8218 * regformats/i386/x32-avx512-linux.dat: Likewise.
8219 * regformats/i386/x32-avx512.dat: Likewise.
8220 * NEWS: Add note about new support for AVX512.
8223 2014-04-23 Pedro Alves <palves@redhat.com>
8225 * breakpoint.c (insert_bp_location): Tolerate errors if the
8226 breakpoint is set in a user-loaded objfile.
8227 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8228 location is marked shlib_disabled. If the breakpoint is set in a
8229 user-loaded objfile is a GDB-side memory breakpoint, validate it
8230 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8231 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8233 * mem-break.c (memory_validate_breakpoint): New function.
8234 * objfiles.c (userloaded_objfile_contains_address_p): New
8236 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8237 * target.h (memory_validate_breakpoint): New declaration.
8239 2014-04-23 Pedro Alves <palves@redhat.com>
8241 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8242 the breakpoint is set in a shared library, only suppress
8243 errors for software breakpoints, not hardware breakpoints.
8245 2014-04-22 Pedro Alves <palves@redhat.com>
8247 * infrun.c (schedlock_applies): New function, factored out from
8248 find_thread_needs_step_over.
8249 (find_thread_needs_step_over): Use it.
8250 (switch_back_to_stepped_thread): Always clear trap_expected if the
8251 step over is finished. Return early if scheduler locking applies.
8252 Look for the stepping thread and a potential step-over thread with
8254 (currently_stepping_or_nexting_callback): Delete.
8256 2014-04-22 Nick Clifton <nickc@redhat.com>
8258 * NEWS: Mention that ARM sim now supports tracing.
8260 2014-04-22 Yao Qi <yao@codesourcery.com>
8262 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8264 * tracefile.c (tracefile_fetch_registers): ... it. New
8266 * tracefile.h (tracefile_fetch_registers): Declare.
8267 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8268 tracefile_fetch_registers.
8270 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8273 * windows-nat.c (thread_rec): Don't display a warning when
8274 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8275 fails for any reason, set th->suspended to -1, so that we don't
8276 try to resume such a thread. Also, don't return NULL in these
8277 cases, to avoid completely ruin the session due to "PC register is
8278 not available" error.
8279 (do_windows_fetch_inferior_registers): Check errors in
8280 GetThreadContext call.
8281 (windows_continue): Accept an additional argument KILLED; if not
8282 zero, ignore errors in the SetThreadContext call, since the
8283 inferior was killed and is shutting down.
8284 (windows_resume, get_windows_debug_event)
8285 (windows_create_inferior, windows_mourn_inferior)
8286 (windows_kill_inferior): All callers of windows_continue changed
8287 to adjust to its new calling sequence.
8289 2014-04-19 Yao Qi <yao@codesourcery.com>
8291 * ctf.c (ctf_open): Call post_create_inferior.
8293 2014-04-19 Yao Qi <yao@codesourcery.com>
8295 * ctf.c (handle_id): New static variable.
8296 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8297 value. Get the declaration of event "register" and get length
8298 of field "contents".
8300 2014-04-19 Yao Qi <yao@codesourcery.com>
8302 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8304 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8306 * valops.c (oload_method_static): Remove unnecessary argument
8307 METHOD. Update all callers.
8309 2014-04-18 Pedro alves <palves@redhat.com>
8310 Tom Tromey <tromey@redhat.com>
8313 * frame.c (get_prev_frame_1): Rename to ...
8314 (get_prev_frame_always): ... this, and make extern. Adjust.
8315 (skip_artificial_frames): Use get_prev_frame_always.
8316 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8317 (get_frame_unwind_stop_reason): Adjust to rename.
8318 * frame.h (get_prev_frame_always): Declare.
8319 * inline-frame.c: Include frame.h.
8320 (inline_frame_this_id): Use get_prev_frame_always.
8322 2014-04-18 Tristan Gingold <gingold@adacore.com>
8324 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8325 code by using bfd_mach_o_get_base_address.
8327 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8329 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8330 (spu_ax_pseudo_register_collect): New function.
8331 (spu_ax_pseudo_register_push_stack): Likewise.
8332 (spu_dwarf_reg_to_regnum): Likewise.
8333 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8335 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8337 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8338 Replace FRAME argument with FRAME_ID.
8339 * gdbarch.c, gdbarch.h: Regenerate.
8340 * findvar.c (default_value_from_register): Add GDBARCH argument;
8341 replace FRAME by FRAME_ID. No longer call get_frame_id.
8342 (value_from_register): Update call to gdbarch_value_from_register.
8343 * value.h (default_value_from_register): Update prototype.
8344 * s390-linux-tdep.c (s390_value_from_register): Update interface
8345 and call to default_value_from_register.
8346 * spu-tdep.c (spu_value_from_register): Likewise.
8348 * findvar.c (address_from_register): Remove TYPE argument.
8349 Do not call value_from_register; use gdbarch_value_from_register
8350 with null_frame_id instead.
8351 * value.h (address_from_register): Update prototype.
8352 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8353 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8354 address_from_register interface change.
8356 2014-04-17 Yao Qi <yao@codesourcery.com>
8358 * gdbtypes.h: Update comments to link to types and macros'
8361 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8363 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8365 2014-04-16 Keith Seitz <keiths@redhat.com>
8368 * dwarf2read.c (skip_one_die): Check that all relative-offset
8369 sibling DIEs fall within range of the current reader's buffer.
8370 (read_partial_die): Likewise.
8372 2014-04-16 Keith Seitz <keiths@redhat.com>
8375 * cp-namespace.c (lookup_symbol_file): If the type name of
8376 `this' is NULL, return immediately.
8378 2014-04-14 Keith Seitz <keiths@redhat.com>
8381 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8382 from symbol_matches_domain in symtab.c. All local callers
8383 of symbol_matches_domain updated.
8384 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8385 search STRUCT_DOMAIN.
8386 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8387 independently. standard_lookup will do that automatically.
8388 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8389 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8390 (cp_lookup_symbol_in_namespace): Likewise.
8391 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8392 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8393 may return a STRUCT_DOMAIN match.
8394 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8395 * cp-support.c: Include language.h.
8396 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8398 * psymtab.c (match_partial_symbol): Compare the requested
8399 domain with the symbol's domain directly.
8400 (lookup_partial_symbol): Likewise.
8401 * symtab.c (lookup_symbol_in_language): Explain when/why
8402 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8403 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8404 appropriate languages.
8405 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8406 and moved to ada-lang.c
8407 (lookup_block_symbol): Explain that this function only returns
8408 symbol matching the requested DOMAIN.
8409 Compare the requested domain with the symbol's domain directly.
8410 (iterate_over_symbols): Compare the requested domain with the
8411 symbol's domain directly.
8412 * symtab.h (symbol_matches_domain): Remove.
8414 2014-04-14 Tom Tromey <tromey@redhat.com>
8417 * c-exp.y (type_aggregate_p): New function.
8418 (qualified_name, classify_inner_name): Use it.
8419 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8420 and TYPE_TARGET_TYPE of an enum type.
8421 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8423 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8424 handle TYPE_DECLARED_CLASS.
8425 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8427 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8428 * valops.c (enum_constant_from_type): New function.
8429 (value_aggregate_elt): Use it.
8430 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8433 2014-04-14 Tom Tromey <tromey@redhat.com>
8435 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8436 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8438 * value.h (value_aggregate_elt): Update.
8440 2014-04-14 Tom Tromey <tromey@redhat.com>
8442 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8444 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8446 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8447 (evaluate_subexp_standard): Pass noside argument.
8448 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8449 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8450 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8451 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8452 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8454 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8456 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8457 points to a constant blob.
8459 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8461 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8462 property and store it as the high bound and flag the range accordingly.
8463 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8464 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8465 * gdbtypes.h (enum range_flags): New enum.
8466 (struct range_bounds): Add flags member.
8468 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8470 * c-typeprint.c (c_type_print_varspec_suffix): Added
8471 check for not yet resolved high bound. If unresolved, print
8472 "variable length" string to the console instead of random
8475 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8477 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8479 (ada_template_to_fixed_record_type_1): Likewise.
8480 (ada_to_fixed_type_1): Likewise.
8481 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8482 (cp_print_value): Likewise.
8483 * d-valprint.c (dynamic_array_type): Likewise.
8484 * findvar.c (address_of_variable): Likewise.
8485 * jv-valprint.c (java_value_print): Likewise.
8486 * valops.c (value_ind): Likewise.
8487 * value.c (coerce_ref): Likewise.
8489 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8491 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8492 value and retrieve the dynamic type size.
8494 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8496 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8497 passed to sizeof is dynamic evaluate the argument to compute the length.
8499 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8500 Joel Brobecker <brobecker@adacore.com>
8502 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8503 (dwarf2_evaluate_property): New function.
8504 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8505 * dwarf2read.c (attr_to_dynamic_prop): New function.
8506 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8508 * gdbtypes.c: Include dwarf2loc.h.
8509 (is_dynamic_type): New function.
8510 (resolve_dynamic_type): New function.
8511 (resolve_dynamic_bounds): New function.
8512 (get_type_length): New function.
8513 (check_typedef): Use get_type_length to compute type length.
8514 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8515 (TYPE_LOW_BOUND_KIND): New macro.
8516 (is_dynamic_type): New function prototype.
8517 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8518 to resolve dynamic properties of the type. Update comment.
8519 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8521 2014-04-14 Richard Henderson <rth@redhat.com>
8523 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8525 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8526 Doug Evans <xdje42@gmail.com>
8528 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8529 dereference TYPE_CODE_REF values.
8531 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8533 Revert the following changes due to regressions:
8535 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8536 (dwarf2_evaluate_property): New function.
8537 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8538 * dwarf2read.c (attr_to_dynamic_prop): New function.
8539 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8541 * gdbtypes.c: Include dwarf2loc.h.
8542 (is_dynamic_type): New function.
8543 (resolve_dynamic_type): New function.
8544 (resolve_dynamic_bounds): New function.
8545 (get_type_length): New function.
8546 (check_typedef): Use get_type_length to compute type length.
8547 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8548 (TYPE_LOW_BOUND_KIND): New macro.
8549 (is_dynamic_type): New function prototype.
8550 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8551 to resolve dynamic properties of the type. Update comment.
8552 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8554 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8555 passed to sizeof is dynamic evaluate the argument to compute the length.
8557 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8558 value and retrieve the dynamic type size.
8560 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8561 (ada_template_to_fixed_record_type_1): Likewise.
8562 (ada_to_fixed_type_1): Likewise.
8563 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8564 (cp_print_value): Likewise.
8565 * d-valprint.c (dynamic_array_type): Likewise.
8566 * eval.c (evaluate_subexp_with_coercion): Likewise.
8567 * findvar.c (address_of_variable): Likewise.
8568 * jv-valprint.c (java_value_print): Likewise.
8569 * valops.c (value_ind): Likewise.
8570 * value.c (coerce_ref): Likewise.
8572 * c-typeprint.c (c_type_print_varspec_suffix): Added
8573 check for not yet resolved high bound. If unresolved, print
8574 "variable length" string to the console instead of random
8577 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8578 property and store it as the high bound and flag the range accordingly.
8579 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8580 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8581 * gdbtypes.h (enum range_flags): New enum.
8582 (struct range_bounds): Add flags member.
8584 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8585 points to a constant blob.
8587 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8588 (evaluate_subexp_standard): Pass noside argument.
8589 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8590 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8591 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8592 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8593 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8595 2014-04-11 Keith Seitz <keiths@redhat.com>
8598 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8599 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8602 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8604 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8605 (evaluate_subexp_standard): Pass noside argument.
8606 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8607 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8608 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8609 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8610 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8612 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8614 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8615 points to a constant blob.
8617 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8619 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8620 property and store it as the high bound and flag the range accordingly.
8621 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8622 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8623 * gdbtypes.h (enum range_flags): New enum.
8624 (struct range_bounds): Add flags member.
8626 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8628 * c-typeprint.c (c_type_print_varspec_suffix): Added
8629 check for not yet resolved high bound. If unresolved, print
8630 "variable length" string to the console instead of random
8633 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8635 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8636 (ada_template_to_fixed_record_type_1): Likewise.
8637 (ada_to_fixed_type_1): Likewise.
8638 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8639 (cp_print_value): Likewise.
8640 * d-valprint.c (dynamic_array_type): Likewise.
8641 * eval.c (evaluate_subexp_with_coercion): Likewise.
8642 * findvar.c (address_of_variable): Likewise.
8643 * jv-valprint.c (java_value_print): Likewise.
8644 * valops.c (value_ind): Likewise.
8645 * value.c (coerce_ref): Likewise.
8647 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8649 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8650 value and retrieve the dynamic type size.
8652 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8654 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8655 passed to sizeof is dynamic evaluate the argument to compute the length.
8657 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8659 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8660 (dwarf2_evaluate_property): New function.
8661 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8662 * dwarf2read.c (attr_to_dynamic_prop): New function.
8663 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8665 * gdbtypes.c: Include dwarf2loc.h.
8666 (is_dynamic_type): New function.
8667 (resolve_dynamic_type): New function.
8668 (resolve_dynamic_bounds): New function.
8669 (get_type_length): New function.
8670 (check_typedef): Use get_type_length to compute type length.
8671 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8672 (TYPE_LOW_BOUND_KIND): New macro.
8673 (is_dynamic_type): New function prototype.
8674 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8675 to resolve dynamic properties of the type. Update comment.
8676 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8678 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8680 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8681 declaring high/low bounds and change uses accordingly. Call
8682 create_range_type instead of create_static_range_type.
8683 * gdbtypes.c (create_range_type): New function.
8684 (create_range_type): Convert bounds into struct bound_prop and pass
8685 them to create_range_type.
8686 * gdbtypes.h (struct bound_prop): New struct.
8687 (create_range_type): New function prototype.
8688 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8689 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8690 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8692 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8694 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8696 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8697 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8698 * ada-lang.c: All uses of create_range_type updated.
8699 * coffread.c: All uses of create_range_type updated.
8700 * dwarf2read.c: All uses of create_range_type updated.
8701 * f-exp.y: All uses of create_range_type updated.
8702 * m2-valprint.c: All uses of create_range_type updated.
8703 * mdebugread.c: All uses of create_range_type updated.
8704 * stabsread.c: All uses of create_range_type updated.
8705 * valops.c: All uses of create_range_type updated.
8706 * valprint.c: All uses of create_range_type updated.
8708 2014-04-10 Pedro Alves <palves@redhat.com>
8710 * breakpoint.c (single_step_breakpoints)
8711 (single_step_gdbarch): Move up in the file.
8712 (one_breakpoint_xfer_memory): New function, factored out from ...
8713 (breakpoint_xfer_memory): ... here. Also process single-step
8716 2014-04-09 Tristan Gingold <gingold@adacore.com>
8718 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8720 (darwin_decode_exception_message): Free port only after use.
8722 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8724 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8725 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8726 when setting the size of call_length.
8728 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8730 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8731 dereference TYPE_CODE_REF values.
8733 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8735 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8736 end of warning message.
8738 2014-04-03 Doug Evans <dje@google.com>
8740 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8741 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8743 2014-04-02 Alan Modra <amodra@gmail.com>
8745 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8746 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8747 (struct symbol_file_add_from_memory_args): Add size field.
8748 (find_vdso_size): New function.
8749 (add_vsyscall_page): Attempt to find vdso size.
8751 2014-04-01 Doug Evans <dje@google.com>
8753 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8755 2014-04-01 Tristan Gingold <gingold@adacore.com>
8757 * darwin-nat.c (darwin_encode_reply): Add prototype.
8758 (darwin_decode_exception_message): Reply to unknown inferiors.
8759 (darwin_decode_message): Handle message by id. Ignore message
8760 to unknown inferior.
8761 (darwin_wait): Discard unknown messages, add debug trace.
8763 2014-03-31 Doug Evans <dje@google.com>
8765 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8768 2014-03-31 Doug Evans <dje@google.com>
8770 New option "set print symbol-loading".
8772 * solib.c (solib_read_symbols): Only print symbol loading messages
8774 (solib_add): If symbol loading is in "brief" mode, notify user
8775 symbols are being loaded.
8776 (reload_shared_libraries_1): Ditto.
8777 * symfile.c (print_symbol_loading_off): New static global.
8778 (print_symbol_loading_brief): New static global.
8779 (print_symbol_loading_full): New static global.
8780 (print_symbol_loading_enums): New static global.
8781 (print_symbol_loading): New static global.
8782 (print_symbol_loading_p): New function.
8783 (symbol_file_add_with_addrs): Only print symbol loading messages
8785 (_initialize_symfile): Register "print symbol-loading" set/show
8787 * symfile.h (print_symbol_loading_p): Declare.
8789 2014-03-30 Doug Evans <xdje42@gmail.com>
8791 * infrun.c (set_last_target_status): New function.
8792 (handle_inferior_event): Call it.
8794 2014-03-30 Doug Evans <xdje42@gmail.com>
8796 * inferior.h (enum stop_kind): Improve comment.
8798 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8800 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8801 a reference, strip the reference layer before calling
8802 the lang_ops value_has_mutated callback.
8804 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8806 Remove some globals from our parser.
8807 * language.c (unk_lang_parser): Add "struct parser_state"
8809 * language.h (struct language_defn) <la_parser>: Likewise.
8810 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8811 (initialize_expout): Add "struct parser_state" argument.
8812 Rewrite function to use the parser state.
8813 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8814 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8815 write_exp_elt_longcst, write_exp_elt_dblcst,
8816 write_exp_elt_decfloatcst, write_exp_elt_type,
8817 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8818 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8819 write_dollar_variable): Likewise.
8820 (parse_exp_in_context_1): Use parser state.
8821 (insert_type_address_space): Add "struct parser_state" argument.
8823 (increase_expout_size): New function.
8824 * parser-defs.h: Forward declare "struct language_defn" and
8825 "struct parser_state".
8826 (expout, expout_size, expout_ptr): Remove extern declarations.
8827 (parse_gdbarch, parse_language): Rewrite macro declarations to
8828 accept the parser state.
8829 (struct parser_state): New struct.
8830 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8831 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8832 write_exp_elt_decfloatcst, write_exp_elt_type,
8833 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8834 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8835 write_exp_msymbol, write_dollar_variable,
8836 mark_struct_expression, insert_type_address_space): Add "struct
8837 parser_state" argument.
8838 (increase_expout_size): New function.
8839 * utils.c (do_clear_parser_state): New function.
8840 (make_cleanup_clear_parser_state): Likewise.
8841 * utils.h (make_cleanup_clear_parser_state): New function
8843 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8844 Update calls to write_exp* in order to pass the parser state.
8845 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8846 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8847 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8848 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8849 * stap-probe.c (stap_parse_register_operand): Likewise.
8850 (stap_parse_single_operand): Likewise.
8851 (stap_parse_argument_1): Likewise.
8852 (stap_parse_argument): Use parser state.
8853 * stap-probe.h: Include "parser-defs.h".
8854 (struct stap_parse_info) <pstate>: New field.
8855 * c-exp.y (parse_type): Rewrite to use parser state.
8856 (yyparse): Redefine to c_parse_internal.
8857 (pstate): New global variable.
8858 (parse_number): Add "struct parser_state" argument.
8859 (write_destructor_name): Likewise.
8860 (type_exp): Update calls to write_exp* and similars in order to
8862 (exp1, exp, variable, qualified_name, space_identifier,
8863 typename, typebase): Likewise.
8864 (write_destructor_name, parse_number, lex_one_token,
8865 classify_name, classify_inner_name, c_parse): Add "struct
8866 parser_state" argument. Update function to use parser state.
8867 * c-lang.h: Forward declare "struct parser_state".
8868 (c_parse): Add "struct parser_state" argument.
8869 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8870 (yyparse): Redefine macro to ada_parse_internal.
8871 (pstate): New variable.
8872 (write_int, write_object_renaming, write_var_or_type,
8873 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8874 type_int, type_long, type_long_long, type_float, type_double,
8875 type_long_double, type_char, type_boolean, type_system_address):
8876 Add "struct parser_state" argument.
8877 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8878 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8879 var_or_type, aggregate, aggregate_component_list,
8880 positional_list, others, component_group,
8881 component_associations): Update calls to write_exp* and similar
8882 functions in order to use parser state.
8883 (ada_parse, write_var_from_sym, write_int,
8884 write_exp_op_with_string, write_object_renaming,
8885 find_primitive_type, write_selectors, write_ambiguous_var,
8886 write_var_or_type, write_name_assoc, type_int, type_long,
8887 type_long_long, type_float, type_double, type_long_double,
8888 type_char, type_boolean, type_system_address): Add "struct
8889 parser_state" argument. Adjust function to use parser state.
8890 * ada-lang.c (parse): Likewise.
8891 * ada-lang.h: Forward declare "struct parser_state".
8892 (ada_parse): Add "struct parser_state" argument.
8893 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8894 calls to both functions.
8895 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8897 (yyparse): Redefine macro to f_parse_internal.
8898 (pstate): New variable.
8899 (parse_number): Add "struct parser_state" argument.
8900 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8901 and similars in order to use parser state.
8902 (parse_number): Adjust code to use parser state.
8904 (f_parse): New function.
8905 * f-lang.h: Forward declare "struct parser_state".
8906 (f_parse): Add "struct parser_state" argument.
8907 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8909 (yyparse): Redefine macro for java_parse_internal.
8910 (pstate): New variable.
8911 (push_expression_name, push_expression_name, insert_exp): Add
8912 "struct parser_state" argument.
8913 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8914 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8915 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8916 PostIncrementExpression, PostDecrementExpression,
8917 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8918 UnaryExpressionNotPlusMinus, CastExpression,
8919 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8920 RelationalExpression, EqualityExpression, AndExpression,
8921 ExclusiveOrExpression, InclusiveOrExpression,
8922 ConditionalAndExpression, ConditionalOrExpression,
8923 ConditionalExpression, Assignment, LeftHandSide): Update
8924 calls to write_exp* and similars in order to use parser state.
8925 (parse_number): Ajust code to use parser state.
8927 (java_parse): New function.
8928 (push_variable): Add "struct parser_state" argument. Adjust
8929 code to user parser state.
8930 (push_fieldnames, push_qualified_expression_name,
8931 push_expression_name, insert_exp): Likewise.
8932 * jv-lang.h: Forward declare "struct parser_state".
8933 (java_parse): Add "struct parser_state" argument.
8934 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8936 (yyparse): Redefine macro to m2_parse_internal.
8937 (pstate): New variable.
8938 (type_exp, exp, fblock, variable, type): Update calls to
8939 write_exp* and similars to use parser state.
8941 (m2_parse): New function.
8942 * m2-lang.h: Forward declare "struct parser_state".
8943 (m2_parse): Add "struct parser_state" argument.
8944 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8945 * objc-lang.h: Forward declare "struct parser_state".
8946 (end_msglist): Add "struct parser_state" argument.
8947 * p-exp.y (parse_type): Rewrite macro to use parser state.
8948 (yyparse): Redefine macro to pascal_parse_internal.
8949 (pstate): New variable.
8950 (parse_number): Add "struct parser_state" argument.
8951 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8952 write_exp* and similars in order to use parser state.
8953 (parse_number, yylex): Adjust code to use parser state.
8954 (pascal_parse): New function.
8955 * p-lang.h: Forward declare "struct parser_state".
8956 (pascal_parse): Add "struct parser_state" argument.
8957 * go-exp.y (parse_type): Rewrite macro to use parser state.
8958 (yyparse): Redefine macro to go_parse_internal.
8959 (pstate): New variable.
8960 (parse_number): Add "struct parser_state" argument.
8961 (type_exp, exp1, exp, variable, type): Update calls to
8962 write_exp* and similars in order to use parser state.
8963 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8964 to use parser state.
8965 (go_parse): Likewise.
8966 * go-lang.h: Forward declare "struct parser_state".
8967 (go_parse): Add "struct parser_state" argument.
8969 2014-03-27 Doug Evans <dje@google.com>
8971 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8973 2014-03-27 Doug Evans <dje@google.com>
8975 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8976 Remove argument abbrev_section. All callers updated.
8978 2014-03-27 Doug Evans <dje@google.com>
8980 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8981 addr_base, ranges_base.
8983 2014-03-26 Keith Seitz <keiths@redhat.com>
8985 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8986 types, not VAR_DOMAIN.
8988 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8990 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8992 * features/nios2-linux.c: Regenerated.
8993 * features/nios2.c: Regenerated.
8995 2014-03-25 Pedro Alves <palves@redhat.com>
8997 * cli/cli-script.c (script_from_file): Force the interpreter to
9000 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9002 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9003 small stack allocation.
9005 2014-03-24 Tristan Gingold <gingold@adacore.com>
9007 * darwin-nat.c (exc_server): Remove unused prototype.
9008 (darwin_dump_message): Correctly display data on x86_64.
9009 (darwin_encode_reply): Fix style.
9010 Add comments and fix indentation.
9012 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9014 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9016 2014-03-22 Doug Evans <xdje42@gmail.com>
9018 * infcmd.c: Whitespace fixes.
9019 (interrupt_command): Merge two function comments into one.
9021 2014-03-22 Doug Evans <xdje42@gmail.com>
9023 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9026 2014-03-22 Yao Qi <yao@codesourcery.com>
9028 * remote.c (target_read_live_memory): Remove.
9029 (memory_xfer_live_readonly_partial): Rename it to
9030 remote_xfer_live_readonly_partial. Remove argument 'object'.
9031 All callers updated. Call remote_read_bytes_1
9032 instead of target_read_live_memory.
9033 * tracepoint.c (set_traceframe_number): Remove.
9034 (make_cleanup_restore_traceframe_number): Likewise .
9035 * tracepoint.h (set_traceframe_number): Remove declaration.
9036 (make_cleanup_restore_traceframe_number): Likewise.
9038 2014-03-22 Yao Qi <yao@codesourcery.com>
9040 * remote.c (remote_read_bytes): Move code on reading from the
9042 (remote_read_bytes_1): ... here. New function.
9044 2014-03-22 Yao Qi <yao@codesourcery.com>
9046 * ctf.c (ctf_xfer_partial): Check the return value of
9047 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9048 return TARGET_XFER_UNAVAILABLE.
9049 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9050 * target.c (target_read_live_memory): Move it to remote.c.
9051 (memory_xfer_live_readonly_partial): Likewise.
9052 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9053 * remote.c (target_read_live_memory): Moved from target.c.
9054 (memory_xfer_live_readonly_partial): Likewise.
9055 (remote_read_bytes): Factored out from
9056 memory_xfer_partial_1.
9058 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9060 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9063 2014-03-21 Pedro Alves <palves@redhat.com>
9065 * infrun.c (normal_stop): Extend comment.
9067 2014-03-21 Hui Zhu <hui@codesourcery.com>
9068 Pedro Alves <palves@redhat.com>
9070 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9072 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9073 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9074 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9076 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9078 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9079 `z' formatted output modifier.
9081 2014-03-20 Tom Tromey <tromey@redhat.com>
9082 Sergio Durigan Junior <sergiodj@redhat.com>
9084 * probe.c (parse_probes): Turn assert into an ordinary error.
9085 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9086 exceptions when parsing probes. Rearrange the code for clarity.
9088 2014-03-20 Tom Tromey <tromey@redhat.com>
9091 * top.c (execute_command): Only dispatch events if the command
9094 2014-03-20 Tom Tromey <tromey@redhat.com>
9097 * infcall.c: Include event-top.h.
9098 (run_inferior_call): Call async_disable_stdin if needed.
9100 2014-03-20 Pedro Alves <palves@redhat.com>
9102 * infrun.c (prepare_to_proceed): Delete.
9103 (thread_still_needs_step_over): New function.
9104 (find_thread_needs_step_over): New function.
9105 (proceed): If the current thread needs a step-over, set its
9106 steping_over_breakpoint flag. Adjust to use
9107 find_thread_needs_step_over instead of prepare_to_proceed.
9108 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9109 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9111 (switch_back_to_stepped_thread): Step over breakpoints of all
9112 threads not the stepping thread, before switching back to the
9115 2014-03-20 Pedro Alves <palves@redhat.com>
9117 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9119 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9120 * infrun.c (saved_singlestep_ptid)
9121 (stepping_past_singlestep_breakpoint): Delete.
9122 (resume): Remove stepping_past_singlestep_breakpoint handling.
9123 (proceed): Store the prev_pc of the stepping thread too.
9124 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9126 (enum infwait_states): Delete infwait_thread_hop_state.
9127 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9129 (handle_inferior_event): Adjust.
9130 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9131 handling and the thread-hop code. Before removing single-step
9132 breakpoints, check whether the thread hit a single-step breakpoint
9133 of another thread. If it did, the trap is not a random signal.
9134 (switch_back_to_stepped_thread): If the event thread hit a
9135 single-step breakpoint, unblock it before switching to the
9136 stepping thread. Handle the case of the stepped thread having
9138 (keep_going): Handle the case of the current thread moving past a
9139 single-step breakpoint.
9141 2014-03-20 Pedro Alves <palves@redhat.com>
9144 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9145 are being stepped over.
9146 (breakpoint_address_match): Make extern.
9147 * breakpoint.h (breakpoint_address_match): New declaration.
9148 * inferior.h (stepping_past_instruction_at): New declaration.
9149 * infrun.c (struct step_over_info): New type.
9150 (step_over_info): New global.
9151 (set_step_over_info, clear_step_over_info)
9152 (stepping_past_instruction_at): New functions.
9153 (handle_inferior_event): Clear the step-over info when
9154 trap_expected is cleared.
9155 (resume): Remove now stale comment.
9156 (clear_proceed_status): Clear step-over info.
9157 (proceed): Adjust step-over handling to set or clear the step-over
9158 info instead of removing all breakpoints.
9159 (handle_signal_stop): When setting up a thread-hop, don't remove
9161 (stop_stepping): Clear step-over info.
9162 (keep_going): Adjust step-over handling to set or clear step-over
9163 info and then always inserting breakpoints, instead of removing
9164 all breakpoints when stepping over one.
9166 2014-03-20 Pedro Alves <palves@redhat.com>
9168 * infrun.c (previous_inferior_ptid): Adjust comment.
9169 (deferred_step_ptid): Delete.
9170 (infrun_thread_ptid_changed, prepare_to_proceed)
9171 (init_wait_for_inferior): Adjust.
9172 (handle_signal_stop): Delete deferred_step_ptid handling.
9174 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9177 * defs.h (sync_quit_force_run): New declaration.
9178 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9179 * event-top.c (async_sigterm_handler): New declaration.
9180 (async_sigterm_token): New variable.
9181 (async_init_signals): Create also async_sigterm_token.
9182 (async_sigterm_handler): New function.
9183 (sync_quit_force_run): New variable.
9184 (handle_sigterm): Replace quit_force call by other calls.
9185 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9187 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9189 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9190 offset into SPE pseudo registers.
9192 2014-03-18 Pedro Alves <palves@redhat.com>
9195 * inferior.h (print_stop_event): Declare.
9196 * infrun.c (print_stop_event): New, factored out from ...
9197 (normal_stop): ... this.
9198 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9199 of bpstat_print/print_stack_frame.
9201 2014-03-17 Tom Tromey <tromey@redhat.com>
9203 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9205 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9207 * ada-lang.c (decode_constrained_packed_array): Perform a
9208 minimal coercion for reference with coerce_ref instead of
9211 2014-03-17 Tristan Gingold <gingold@adacore.com>
9213 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9214 (darwin_solib_create_inferior_hook): Emit a warning if version
9217 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9219 * python/py-value.c (get_field_flag): Cast flag_name argument to
9220 PyObject_GetAttrString to support Python 2.4.
9222 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9224 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9225 (Global Maintainers): Remove Jan Kratochvil.
9227 2014-03-14 Pedro Alves <palves@redhat.com>
9229 * inferior.h (terminal_ours_for_output): Rename to ...
9230 (child_terminal_ours_for_output): ... this.
9231 (terminal_save_ours): Rename to ...
9232 (child_terminal_save_ours): ... this.
9233 (terminal_ours): Rename to ...
9234 (child_terminal_ours): ... this.
9235 (terminal_inferior): Rename to ...
9236 (child_terminal_inferior): ... this.
9237 (terminal_init_inferior): Rename to ...
9238 (child_terminal_init_inferior): ... this.
9239 (terminal_init_inferior_with_pgrp): Rename to ...
9240 (child_terminal_init_inferior_with_pgrp): ... this.
9241 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9242 (child_terminal_init_with_pgrp): ... this.
9243 (terminal_save_ours): Rename to ...
9244 (child_terminal_save_ours): ... this.
9245 (terminal_init_inferior): Rename to ...
9246 (child_terminal_init): ... this. Adjust.
9247 (terminal_inferior): Rename to ...
9248 (child_terminal_inferior): ... this.
9249 (terminal_ours_for_output): Rename to ...
9250 (child_terminal_ours_for_output): ... this. Adjust.
9251 (terminal_ours): Rename to ...
9252 (child_terminal_ours): ... this.
9253 (terminal_ours_1): Rename to ...
9254 (child_terminal_ours_1): ... this. Adjust.
9255 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9256 * windows-nat.c (do_initial_windows_stuff): Adjust.
9257 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9258 (gnu_terminal_init): ... this. Adjust.
9259 (gnu_target): Adjust.
9260 * inf-child.c (inf_child_target): Adjust.
9262 2014-03-13 Doug Evans <xdje42@gmail.com>
9265 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9268 2014-03-13 Doug Evans <xdje42@gmail.com>
9270 * value.c (record_latest_value): Call release_value_or_incref
9271 instead of release_value.
9273 2014-03-13 Pedro Alves <palves@redhat.com>
9275 * procfs.c (procfs_target): Don't override to_shortname,
9276 to_longname or to_doc.
9278 2014-03-13 Pedro Alves <palves@redhat.com>
9280 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9281 Unix in user visible strings.
9283 2014-03-12 Stan Shebs <stan@codesourcery.com>
9285 * gdbtypes.h: Annotate comments for Doxygen, add a page
9286 block comment with some general info.
9288 2014-03-12 Pedro Alves <palves@redhat.com>
9290 * infcmd.c (prepare_execution_command): New function, factored out
9291 from several execution commands.
9292 (run_command_1, continue_command, step_1, jump_command)
9293 (signal_command, until_command, advance_command, finish_command)
9294 (attach_command): Use prepare_execution_command.
9296 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9298 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9301 (struct arm_linux_thread_points): Removed.
9302 (struct arm_linux_process_info): New.
9303 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9304 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9305 (arm_linux_find_breakpoints_by_tid): Removed.
9306 (struct arch_lwp_info): New.
9307 (arm_linux_find_process_pid): New functions.
9308 (arm_linux_add_process): New functions.
9309 (arm_linux_process_info_get): New functions.
9310 (arm_linux_forget_process): New function.
9311 (arm_linux_get_debug_reg_state): New function.
9312 (struct update_registers_data): New.
9313 (update_registers_callback): New function.
9314 (arm_linux_insert_hw_breakpoint1): Updated.
9315 (arm_linux_remove_hw_breakpoint1): Updated.
9316 (arm_linux_insert_hw_breakpoint): Updated.
9317 (arm_linux_remove_hw_breakpoint): Updated.
9318 (arm_linux_insert_watchpoint): Updated.
9319 (arm_linux_remove_watchpoint): Updated.
9320 (arm_linux_new_thread): Updated.
9321 (arm_linux_prepare_to_resume): New function.
9322 (arm_linux_new_fork): New function.
9323 (_initialize_arm_linux_nat): Updated.
9325 2014-03-12 Pedro Alves <palves@redhat.com>
9327 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9329 2014-03-12 Tom Tromey <tromey@redhat.com>
9331 * inf-child.c (return_zero): New function.
9332 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9333 * aix-thread.c (aix_thread_inferior_created): New function.
9334 (aix_thread_attach): Remove.
9335 (init_aix_thread_ops): Don't set to_attach.
9336 (_initialize_aix_thread): Register inferior_created observer.
9337 * corelow.c (init_core_ops): Don't set to_attach or
9339 * exec.c (init_exec_ops): Don't set to_attach or
9341 * infcmd.c (run_command_1): Use find_run_target. Make direct
9343 (attach_command): Use find_attach_target. Make direct target
9345 * record-btrace.c (init_record_btrace_ops): Don't set
9347 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9349 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9350 set to_create_inferior.
9351 * target.c (complete_target_initialization): Add assertion.
9352 (target_create_inferior): Remove.
9353 (find_default_attach, find_default_create_inferior): Remove.
9354 (find_attach_target, find_run_target): New functions.
9355 (find_default_is_async_p, find_default_can_async_p)
9356 (target_supports_non_stop, target_attach): Remove.
9357 (init_dummy_target): Don't set to_create_inferior or
9358 to_supports_non_stop.
9359 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9360 TARGET_DEFAULT_FUNC.
9361 <to_create_inferior>: Add comment.
9362 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9363 TARGET_DEFAULT_RETURN.
9364 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9365 (find_attach_target, find_run_target): Declare.
9366 (target_create_inferior): Remove.
9367 (target_has_execution_1): Update comment.
9368 (target_supports_non_stop): Remove.
9369 * target-delegates.c: Rebuild.
9371 2014-03-12 Pedro Alves <palves@redhat.com>
9373 * inf-child.h: Update comment to not mention Unix.
9375 2014-03-12 Pedro Alves <palves@redhat.com>
9377 * inf-child.c: Update top comment to not mention Unix. Add
9378 generic comment describing how this target is meant to be used.
9379 (inf_child_post_attach, inf_child_post_startup_inferior)
9380 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9383 2014-03-12 Pedro Alves <palves@redhat.com>
9385 * nto-procfs.c: Include inf-child.h.
9386 (procfs_ops): Delete global.
9387 (procfs_can_run): Delete method.
9388 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9389 target pointer instead of referencing procfs_ops.
9390 (procfs_prepare_to_store): Delete.
9391 (init_procfs_ops): Delete function.
9392 (procfs_target): New function, based on init_procfs_ops, but
9393 inherit inf_child_target.
9394 (_initialize_procfs): Use procfs_target.
9396 2014-03-12 Pedro Alves <palves@redhat.com>
9398 * windows-nat.c: Include inf-child.h.
9399 (windows_ops): Delete global.
9400 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9402 (init_windows_ops): Delete function.
9403 (windows_target): New function, based on init_windows_ops, but
9404 inherit inf_child_target.
9405 (_initialize_windows_nat): Use windows_target. Install x86
9406 specific target methods here.
9408 2014-03-10 Doug Evans <xdje42@gmail.com>
9410 * guile/guile.c (call_initialize_gdb_module): New function.
9411 (initialize_guile): Replace call to scm_init_guile with call to
9414 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9416 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9417 in call to TYPE_CODE macro.
9419 2014-03-10 Jerome Guitton <guitton@adacore.com>
9421 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9422 Resolve tagged types to full view.
9424 2014-03-10 Hui Zhu <hui@codesourcery.com>
9426 * target.h (target_insert_breakpoint): Remove "hardware" from its
9429 2014-03-07 Doug Evans <dje@google.com>
9431 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9433 2014-03-07 Doug Evans <dje@google.com>
9435 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9436 Remove unused local comp_dir_attr. Assert exactly one of
9437 stub_comp_unit_die, stub_comp_dir is non-NULL.
9439 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9441 * target.h (complete_target_initialization, add_target):
9444 2014-03-07 Pedro Alves <palves@redhat.com>
9446 * go32-nat.c: Include inf-child.h.
9447 (go32_ops): Delete global.
9448 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9450 (go32_create_inferior): Push the passed in target pointer instead
9451 of referencing go32_ops.
9452 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9453 (go32_target): New function, based on init_go32_ops, but inherit
9455 (_initialize_go32_nat): Use go32_target. Move parts of
9458 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9460 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9461 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9462 SYMBOL_VALUE_ADDRESS.
9463 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9465 2014-03-06 Yao Qi <yao@codesourcery.com>
9467 * breakpoint.c (get_tracepoint_by_number): Remove argument
9468 optional_p. All callers updated. Adjust comments. Update
9470 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9472 2014-03-06 Yao Qi <yao@codesourcery.com>
9474 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9475 early if get_number returns zero. Use 'p' instead of 'args'.
9477 2014-03-06 Yao Qi <yao@codesourcery.com>
9479 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9482 2014-03-06 Yao Qi <yao@codesourcery.com>
9484 PR breakpoints/16508
9485 * tracepoint.c (check_trace_running): New function.
9486 (trace_find_command): Move code to check_trace_running and
9487 call check_trace_running.
9488 (trace_find_pc_command): Likewise.
9489 (trace_find_tracepoint_command): Likewise.
9490 (trace_find_line_command): Likewise.
9491 (trace_find_range_command): Likewise.
9492 * tracepoint.h (check_trace_running): Likewise.
9493 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9495 2014-03-06 Yao Qi <yao@codesourcery.com>
9497 * target.h (struct target_ops) <to_traceframe_info>: Use
9498 TARGET_DEFAULT_NORETURN (tcomplain ()).
9499 * target-delegates.c: Regenerated.
9501 2014-03-05 Pedro Alves <palves@redhat.com>
9504 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9505 void. Update comment.
9506 (dcache_xfer_memory): Delete.
9507 (dcache_read_memory_partial): New, based on the read bits of
9509 (dcache_update): Add status parameter. Use ULONGEST for len, and
9510 adjust. Discard cache lines if the reason for the update was
9512 * dcache.h (dcache_xfer_memory): Delete declaration.
9513 (dcache_read_memory_partial): New declaration.
9514 (dcache_update): Update prototype.
9515 * target.c (raw_memory_xfer_partial): Update the dcache here.
9516 (memory_xfer_partial_1): Don't handle dcache writes here.
9518 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9520 * remote-sim.c (gdbsim_load): Add const to prog.
9522 2014-03-03 Tom Tromey <tromey@redhat.com>
9524 * elfread.c (probe_key): Change to bfd_data.
9525 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9526 now per-BFD, not per-objfile.
9527 * stap-probe.c (stap_probe_destroy): Update comment.
9528 (handle_stap_probe): Allocate on the per-BFD obstack.
9530 2014-03-03 Tom Tromey <tromey@redhat.com>
9532 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9533 * breakpoint.c (create_longjmp_master_breakpoint): Use
9535 (add_location_to_breakpoint, bkpt_probe_insert_location)
9536 (bkpt_probe_remove_location): Update.
9537 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9538 * elfread.c (elf_symfile_relocate_probe): Remove.
9539 (elf_probe_fns): Update.
9540 (insert_exception_resume_breakpoint): Change type of "probe"
9541 parameter to bound_probe.
9542 (check_exception_resume): Update.
9543 * objfiles.c (objfile_relocate1): Don't relocate probes.
9544 * probe.c (bound_probe_s): New typedef.
9545 (parse_probes): Use get_probe_address. Set sal's objfile.
9546 (find_probe_by_pc): Return a bound_probe.
9547 (collect_probes): Return a VEC(bound_probe_s).
9548 (compare_probes): Update.
9549 (gen_ui_out_table_header_info): Change type of "probes"
9551 (info_probes_for_ops): Update.
9552 (get_probe_address): New function.
9553 (probe_safe_evaluate_at_pc): Update.
9554 * probe.h (struct probe_ops) <get_probe_address>: New field.
9555 <set_semaphore, clear_semaphore>: Add objfile parameter.
9556 (struct probe) <objfile>: Remove field.
9558 <address>: Update comment.
9559 (struct bound_probe): New.
9560 (find_probe_by_pc): Return a bound_probe.
9561 (get_probe_address): Declare.
9562 * solib-svr4.c (struct probe_and_action) <address>: New field.
9563 (hash_probe_and_action, equal_probe_and_action): Update.
9564 (register_solib_event_probe): Add address parameter.
9565 (solib_event_probe_at): Update.
9566 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9568 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9569 (stap_get_probe_address): New function.
9570 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9571 (compile_probe_arg): Update.
9572 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9574 (handle_stap_probe): Don't relocate the probe.
9575 (stap_relocate): Remove.
9576 (stap_gen_info_probes_table_values): Update.
9577 (stap_probe_ops): Remove stap_relocate.
9578 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9579 (debug_sym_probe_fns): Update.
9580 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9581 * symtab.c (init_sal): Use memset.
9582 * symtab.h (struct symtab_and_line) <objfile>: New field.
9583 * tracepoint.c (start_tracing, stop_tracing): Update.
9585 2014-03-03 Tom Tromey <tromey@redhat.com>
9587 * probe.h (parse_probes, find_probe_by_pc)
9588 (find_probes_in_objfile): Fix comments.
9590 2014-03-02 Doug Evans <xdje42@gmail.com>
9592 * infrun.c (handle_signal_stop): Replace test for
9593 TARGET_WAITKIND_STOPPED with an assert.
9595 2014-03-02 Doug Evans <xdje42@gmail.com>
9597 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9599 2014-03-02 Doug Evans <xdje42@gmail.com>
9601 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9603 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9605 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9607 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9609 * i386obsd-nat.c: Include "obsd-nat.h".
9610 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9612 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9614 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9616 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9618 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9620 * mips64obsd-nat.c: Include "obsd-nath".
9621 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9623 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9625 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9627 * amd64obsd-nat.c: Include "obsd-nat,h.
9628 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9630 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9632 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9634 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9635 (find_overload_match): Update call to find_oload_champ.
9636 (find_oload_champ_namespace_loop): Likewise
9638 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9640 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9642 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9643 * config/sparc/obsd64.mh: New file.
9644 * sparc64obsd-nat.c: New file.
9646 * obsd-nat.h: New file.
9647 * obsd-nat.c: New file.
9648 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9649 (ALLDEPFILES): Add obsd-nat.c.
9651 2014-02-28 Tom Tromey <tromey@redhat.com>
9653 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9654 * cli-out.h (cli_ui_out_impl): Now const.
9655 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9656 * ui-out.c (struct ui_out) <impl>: Now const.
9657 (default_ui_out_impl): Now const.
9658 (ui_out_new): Make 'impl' parameter const.
9659 * ui-out.h (ui_out_new): Update.
9661 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9663 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9665 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9667 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9669 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9671 Additional PR 8882 fix.
9672 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9674 2014-02-27 Pedro Alves <palves@redhat.com>
9676 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9679 2014-02-27 Pedro Alves <palves@redhat.com>
9682 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9683 * nat/linux-waitpid.c: Include string.h.
9684 (status_to_str): Moved here and made extern.
9685 * nat/linux-waitpid.h (status_to_str): New declaration.
9687 2014-02-27 Hui Zhu <hui@codesourcery.com>
9690 * infrun.c (ptid_match): Move ...
9691 * common/ptid.c (ptid_match): ... here.
9692 * inferior.h (ptid_match): Move ...
9693 * common/ptid.h (ptid_match): ... here.
9695 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9697 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9698 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9701 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9703 * obsd-tdep.c (obsd_auxv_parse): New function.
9704 (obsd_init_abi): Set auxv_parse.
9706 * gdbarch.sh (auxv_parse): New.
9707 * gdbarch.h: Regenerated.
9708 * gdbarch.c: Regenerated.
9709 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9711 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9713 * guile/scm-value.c (gdbscm_history_append_x): New function.
9714 (value_functions): Add it.
9716 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9718 * dwarf2read.c (attr_value_as_address): New function.
9719 (dwarf2_find_base_address, read_call_site_scope): Use
9720 attr_value_as_address in place of DW_ADDR.
9721 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9722 the low and high addresses. Slight rework of the handling
9723 of the high pc being a constant form, and limit it to
9724 DWARF verson 4 or higher.
9725 (dwarf2_record_block_ranges): Likewise.
9726 (read_partial_die): Likewise.
9727 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9729 2014-02-26 Tom Tromey <tromey@redhat.com>
9731 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9733 2014-02-26 Tom Tromey <tromey@redhat.com>
9735 * elfread.c (elf_read_minimal_symbols): Return early if
9736 minimal symbols have already been read. Add "ei" parameter.
9737 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9738 * minsyms.c (prim_record_minimal_symbol_full): Update.
9739 * objfiles.h (struct objstats) <n_minsyms>: Move...
9740 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9741 * symmisc.c (print_objfile_statistics): Update.
9743 2014-02-26 Tom Tromey <tromey@redhat.com>
9745 * elfread.c (elf_read_minimal_symbols): New function, from
9747 (elf_symfile_read): Call it.
9749 2014-02-26 Tom Tromey <tromey@redhat.com>
9751 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9752 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9753 (lookup_minimal_symbol_solib_trampoline)
9754 (lookup_minimal_symbol_by_pc_section_1)
9755 (lookup_minimal_symbol_and_objfile): Update.
9756 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9757 Don't allocate a minimal symbol if minsyms have already been read.
9758 (build_minimal_symbol_hash_tables): Update.
9759 (install_minimal_symbols): Do nothing if minsyms already read.
9760 Use the per-BFD obstack.
9761 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9762 * objfiles.c (allocate_objfile): Call
9763 terminate_minimal_symbol_table later.
9764 (have_minimal_symbols): Update.
9765 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9766 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9767 Move from struct objfile.
9768 <minsyms_read>: New field.
9769 (struct objfile) <msymbols, minimal_symbol_count,
9770 msymbol_hash, msymbol_demangled_hash>: Move.
9771 (ALL_OBJFILE_MSYMBOLS): Update.
9772 * symfile.c (read_symbols): Set minsyms_read.
9773 (reread_symbols): Update.
9774 * symmisc.c (dump_objfile, dump_msymbols): Update.
9776 2014-02-26 Tom Tromey <tromey@redhat.com>
9778 * minsyms.c (msymbols_sort): Remove.
9779 * minsyms.h (msymbols_sort): Remove.
9780 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9781 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9782 * elfread.c (elf_symtab_read): Don't add section offsets.
9783 * xcoffread.c (record_minimal_symbol): Don't add section offset
9784 to minimal symbol address.
9785 * somread.c (text_offset, data_offset): Remove.
9786 (som_symtab_read): Don't add section offsets to minimal symbol
9788 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9789 Don't add section offsets to minimal symbols.
9790 * coffread.c (coff_symtab_read): Don't add section offsets
9791 to minimal symbol addresses.
9792 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9793 to minimal symbol addresses.
9794 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9795 section offset to minimal symbol addresses.
9796 * mdebugread.c (parse_partial_symbols): Don't add section
9797 offset to minimal symbol addresses.
9798 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9799 offset to minimal symbol addresses.
9801 2014-02-26 Tom Tromey <tromey@redhat.com>
9803 * ada-lang.c (ada_main_name): Update.
9804 (ada_add_standard_exceptions): Update.
9805 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9806 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9807 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9808 * auxv.c (ld_so_xfer_auxv): Update.
9809 * avr-tdep.c (avr_scan_prologue): Update.
9810 * ax-gdb.c (gen_var_ref): Update.
9811 * blockframe.c (get_pc_function_start)
9812 (find_pc_partial_function_gnu_ifunc): Update.
9813 * breakpoint.c (create_overlay_event_breakpoint)
9814 (create_longjmp_master_breakpoint)
9815 (create_std_terminate_master_breakpoint)
9816 (create_exception_master_breakpoint): Update.
9817 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9818 * c-valprint.c (c_val_print): Update.
9819 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9820 * common/agent.c (agent_look_up_symbols): Update.
9821 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9822 * dwarf2loc.c (call_site_to_target_addr): Update.
9823 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9824 * elfread.c (elf_gnu_ifunc_record_cache)
9825 (elf_gnu_ifunc_resolve_by_got): Update.
9826 * findvar.c (default_read_var_value): Update.
9827 * frame.c (inside_main_func): Update.
9828 * frv-tdep.c (frv_frame_this_id): Update.
9829 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9830 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9832 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9833 (hppa_hpux_find_dummy_bpaddr): Update.
9834 * hppa-tdep.c (hppa_symbol_address): Update.
9835 * infcmd.c (until_next_command): Update.
9836 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9838 * linespec.c (minsym_found, add_minsym): Update.
9839 * linux-nat.c (get_signo): Update.
9840 * linux-thread-db.c (inferior_has_bug): Update.
9841 * m32c-tdep.c (m32c_return_value)
9842 (m32c_m16c_address_to_pointer): Update.
9843 * m32r-tdep.c (m32r_frame_this_id): Update.
9844 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9845 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9846 * maint.c (maintenance_translate_address): Update.
9847 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9848 (frob_address): New function.
9849 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9850 frob_address. Rename parameter to "pc_in".
9851 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9853 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9855 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9856 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9857 * objc-lang.c (find_objc_msgsend): Update.
9858 * objfiles.c (objfile_relocate1): Update.
9859 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9860 * p-valprint.c (pascal_val_print): Update.
9861 * parse.c (write_exp_msymbol): Update.
9862 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9863 (ppc_elfv2_skip_entrypoint): Update.
9864 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9865 * printcmd.c (build_address_symbolic, msym_info)
9866 (address_info): Update.
9867 * proc-service.c (ps_pglobal_lookup): Update.
9868 * psymtab.c (find_pc_sect_psymtab_closer)
9869 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9870 Change msymbol parameter to bound_minimal_symbol.
9871 * ravenscar-thread.c (get_running_thread_id): Update.
9872 * remote.c (remote_check_symbols): Update.
9873 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9875 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9876 * solib-dsbt.c (lm_base): Update.
9877 * solib-frv.c (lm_base, main_got): Update.
9878 * solib-irix.c (locate_base): Update.
9879 * solib-som.c (som_solib_create_inferior_hook)
9880 (link_map_start): Update.
9881 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9882 * solib-svr4.c (elf_locate_base, enable_break): Update.
9883 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9884 (flush_ea_cache): Update.
9885 * stabsread.c (define_symbol, scan_file_globals): Update.
9886 * stack.c (find_frame_funname): Update.
9887 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9888 (debug_qf_find_pc_sect_symtab): Update.
9889 * symfile.c (simple_read_overlay_table)
9890 (simple_overlay_update): Update.
9891 * symfile.h (struct quick_symbol_functions)
9892 <find_pc_sect_symtab>: Change type of msymbol to
9893 bound_minimal_symbol.
9894 * symmisc.c (dump_msymbols): Update.
9895 * symtab.c (find_pc_sect_symtab_via_partial)
9896 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9897 (search_symbols, print_msymbol_info): Update.
9898 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9899 (MSYMBOL_VALUE_ADDRESS): Redefine.
9900 (BMSYMBOL_VALUE_ADDRESS): New macro.
9901 * tracepoint.c (scope_info): Update.
9902 * tui/tui-disasm.c (tui_find_disassembly_address)
9903 (tui_get_begin_asm_address): Update.
9904 * valops.c (find_function_in_inferior): Update.
9905 * value.c (value_static_field, value_fn_field): Update.
9907 2014-02-26 Tom Tromey <tromey@redhat.com>
9909 * ada-lang.c (ada_update_initial_language): Update.
9910 (ada_main_name, ada_has_this_exception_support): Update.
9911 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9912 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9913 * arm-tdep.c (arm_skip_stub): Update.
9914 * auxv.c (ld_so_xfer_auxv): Update.
9915 * avr-tdep.c (avr_scan_prologue): Update.
9916 * ax-gdb.c (gen_var_ref): Update.
9917 * breakpoint.c (struct breakpoint_objfile_data)
9918 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9919 type to bound_minimal_symbol.
9920 (create_overlay_event_breakpoint)
9921 (create_longjmp_master_breakpoint)
9922 (create_std_terminate_master_breakpoint)
9923 (create_exception_master_breakpoint): Update.
9924 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9925 * c-exp.y (classify_name): Update.
9926 * coffread.c (coff_symfile_read): Update.
9927 * common/agent.c (agent_look_up_symbols): Update.
9928 * d-lang.c (d_main_name): Update.
9929 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9930 * dec-thread.c (enable_dec_thread): Update.
9931 * dwarf2loc.c (call_site_to_target_addr): Update.
9932 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9933 * eval.c (evaluate_subexp_standard): Update.
9934 * findvar.c (struct minsym_lookup_data) <result>: Change type
9935 to bound_minimal_symbol.
9937 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9938 * frame.c (inside_main_func): Update.
9939 * frv-tdep.c (frv_frame_this_id): Update.
9940 * gcore.c (call_target_sbrk): Update.
9941 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9942 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9944 * go-lang.c (go_main_name): Update.
9945 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9946 (hppa_hpux_find_import_stub_for_addr): Update.
9947 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9948 Update. Change return type.
9949 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9951 * jit.c (jit_breakpoint_re_set_internal): Update.
9952 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9954 * linux-nat.c (get_signo): Update.
9955 * linux-thread-db.c (inferior_has_bug): Update
9956 * m32c-tdep.c (m32c_return_value)
9957 (m32c_m16c_address_to_pointer): Update.
9958 * m32r-tdep.c (m32r_frame_this_id): Update.
9959 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9960 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9961 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9962 lookup_minimal_symbol. Change return type.
9963 (lookup_minimal_symbol): Remove.
9964 (lookup_bound_minimal_symbol): Update.
9965 (lookup_minimal_symbol_text): Change return type.
9966 (lookup_minimal_symbol_solib_trampoline): Change return type.
9967 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9968 (lookup_minimal_symbol_solib_trampoline): Change return type.
9969 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9970 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9971 (value_nsstring, find_imps): Update.
9972 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9973 * p-lang.c (pascal_main_name): Update.
9974 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9975 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9976 * proc-service.c (ps_pglobal_lookup): Update.
9977 * ravenscar-thread.c (get_running_thread_msymbol): Change
9979 (has_ravenscar_runtime, get_running_thread_id): Update.
9980 * remote.c (remote_check_symbols): Update.
9981 * sol-thread.c (ps_pglobal_lookup): Update.
9982 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9983 * solib-dsbt.c (lm_base): Update.
9984 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9986 * solib-irix.c (locate_base): Update.
9987 * solib-som.c (som_solib_create_inferior_hook)
9988 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9990 * solib-spu.c (spu_enable_break): Update.
9991 * solib-svr4.c (elf_locate_base, enable_break): Update.
9992 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9993 (flush_ea_cache): Update.
9994 * stabsread.c (define_symbol): Update.
9995 * symfile.c (simple_read_overlay_table): Update.
9996 * symtab.c (find_pc_sect_line): Update.
9997 * tracepoint.c (scope_info): Update.
9998 * tui-disasm.c (tui_get_begin_asm_address): Update.
9999 * value.c (value_static_field): Update.
10001 2014-02-26 Tom Tromey <tromey@redhat.com>
10003 * minsyms.c (prim_record_minimal_symbol_full): Use
10004 SET_MSYMBOL_VALUE_ADDRESS.
10005 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10006 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10007 SET_MSYMBOL_VALUE_ADDRESS.
10008 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10009 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10011 2014-02-26 Tom Tromey <tromey@redhat.com>
10013 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10014 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10015 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10016 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10017 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10018 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10019 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10020 * ada-lang.c (ada_main_name): Update.
10021 (ada_lookup_simple_minsym): Update.
10022 (ada_make_symbol_completion_list): Update.
10023 (ada_add_standard_exceptions): Update.
10024 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10025 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10026 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10027 * arm-tdep.c (skip_prologue_function): Update.
10028 (arm_skip_stack_protector, arm_skip_stub): Update.
10029 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10030 (arm_wince_skip_main_prologue): Update.
10031 * auxv.c (ld_so_xfer_auxv): Update.
10032 * avr-tdep.c (avr_scan_prologue): Update.
10033 * ax-gdb.c (gen_var_ref): Update.
10034 * block.c (call_site_for_pc): Update.
10035 * blockframe.c (get_pc_function_start): Update.
10036 (find_pc_partial_function_gnu_ifunc): Update.
10037 * breakpoint.c (create_overlay_event_breakpoint): Update.
10038 (create_longjmp_master_breakpoint): Update.
10039 (create_std_terminate_master_breakpoint): Update.
10040 (create_exception_master_breakpoint): Update.
10041 (resolve_sal_pc): Update.
10042 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10043 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10045 * c-valprint.c (c_val_print): Update.
10046 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10047 * coffread.c (coff_symfile_read): Update.
10048 * common/agent.c (agent_look_up_symbols): Update.
10049 * dbxread.c (find_stab_function_addr): Update.
10050 (end_psymtab): Update.
10051 * dwarf2loc.c (call_site_to_target_addr): Update.
10052 (func_verify_no_selftailcall): Update.
10053 (tailcall_dump): Update.
10054 (call_site_find_chain_1): Update.
10055 (dwarf_expr_reg_to_entry_parameter): Update.
10056 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10057 (elf_gnu_ifunc_resolve_by_got): Update.
10058 * f-valprint.c (info_common_command): Update.
10059 * findvar.c (read_var_value): Update.
10060 * frame.c (get_prev_frame_1): Update.
10061 (inside_main_func): Update.
10062 * frv-tdep.c (frv_skip_main_prologue): Update.
10063 (frv_frame_this_id): Update.
10064 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10065 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10066 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10067 (gnuv3_skip_trampoline): Update.
10068 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10069 (hppa64_hpux_in_solib_call_trampoline): Update.
10070 (hppa_hpux_skip_trampoline_code): Update.
10071 (hppa64_hpux_search_dummy_call_sequence): Update.
10072 (hppa_hpux_find_import_stub_for_addr): Update.
10073 (hppa_hpux_find_dummy_bpaddr): Update.
10074 * hppa-tdep.c (hppa_symbol_address)
10075 (hppa_lookup_stub_minimal_symbol): Update.
10076 * i386-tdep.c (i386_skip_main_prologue): Update.
10077 (i386_pe_skip_trampoline_code): Update.
10078 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10079 * infcall.c (get_function_name): Update.
10080 * infcmd.c (until_next_command): Update.
10081 * jit.c (jit_breakpoint_re_set_internal): Update.
10082 (jit_inferior_init): Update.
10083 * linespec.c (minsym_found): Update.
10084 (add_minsym): Update.
10085 * linux-fork.c (info_checkpoints_command): Update.
10086 * linux-nat.c (get_signo): Update.
10087 * linux-thread-db.c (inferior_has_bug): Update.
10088 * m32c-tdep.c (m32c_return_value): Update.
10089 (m32c_m16c_address_to_pointer): Update.
10090 (m32c_m16c_pointer_to_address): Update.
10091 * m32r-tdep.c (m32r_frame_this_id): Update.
10092 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10093 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10094 * maint.c (maintenance_translate_address): Update.
10095 * minsyms.c (add_minsym_to_hash_table): Update.
10096 (add_minsym_to_demangled_hash_table): Update.
10097 (msymbol_objfile): Update.
10098 (lookup_minimal_symbol): Update.
10099 (iterate_over_minimal_symbols): Update.
10100 (lookup_minimal_symbol_text): Update.
10101 (lookup_minimal_symbol_by_pc_name): Update.
10102 (lookup_minimal_symbol_solib_trampoline): Update.
10103 (lookup_minimal_symbol_by_pc_section_1): Update.
10104 (lookup_minimal_symbol_and_objfile): Update.
10105 (prim_record_minimal_symbol_full): Update.
10106 (compare_minimal_symbols): Update.
10107 (compact_minimal_symbols): Update.
10108 (build_minimal_symbol_hash_tables): Update.
10109 (install_minimal_symbols): Update.
10110 (terminate_minimal_symbol_table): Update.
10111 (find_solib_trampoline_target): Update.
10112 (minimal_symbol_upper_bound): Update.
10113 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10114 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10115 (mips_skip_pic_trampoline_code): Update.
10116 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10117 * objc-lang.c (selectors_info): Update.
10118 (classes_info): Update.
10119 (find_methods): Update.
10120 (find_imps): Update.
10121 (find_objc_msgsend): Update.
10122 * objfiles.c (objfile_relocate1): Update.
10123 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10124 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10125 * p-valprint.c (pascal_val_print): Update.
10126 * parse.c (write_exp_msymbol): Update.
10127 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10128 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10129 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10130 * printcmd.c (build_address_symbolic): Update.
10131 (sym_info): Update.
10132 (address_info): Update.
10133 * proc-service.c (ps_pglobal_lookup): Update.
10134 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10135 (find_pc_sect_psymtab): Update.
10136 * python/py-framefilter.c (py_print_frame): Update.
10137 * ravenscar-thread.c (get_running_thread_id): Update.
10138 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10140 * remote.c (remote_check_symbols): Update.
10141 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10142 (rs6000_skip_trampoline_code): Update.
10143 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10144 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10145 * solib-dsbt.c (lm_base): Update.
10146 * solib-frv.c (lm_base): Update.
10147 (main_got): Update.
10148 * solib-irix.c (locate_base): Update.
10149 * solib-som.c (som_solib_create_inferior_hook): Update.
10150 (som_solib_desire_dynamic_linker_symbols): Update.
10151 (link_map_start): Update.
10152 * solib-spu.c (spu_enable_break): Update.
10153 (ocl_enable_break): Update.
10154 * solib-svr4.c (elf_locate_base): Update.
10155 (enable_break): Update.
10156 * spu-tdep.c (spu_get_overlay_table): Update.
10157 (spu_catch_start): Update.
10158 (flush_ea_cache): Update.
10159 * stabsread.c (define_symbol): Update.
10160 (scan_file_globals): Update.
10161 * stack.c (find_frame_funname): Update.
10162 (frame_info): Update.
10163 * symfile.c (simple_read_overlay_table): Update.
10164 (simple_overlay_update): Update.
10165 * symmisc.c (dump_msymbols): Update.
10166 * symtab.c (fixup_section): Update.
10167 (find_pc_sect_line): Update.
10168 (skip_prologue_sal): Update.
10169 (search_symbols): Update.
10170 (print_msymbol_info): Update.
10171 (rbreak_command): Update.
10172 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10173 (completion_list_objc_symbol): Update.
10174 (default_make_symbol_completion_list_break_on): Update.
10175 * tracepoint.c (scope_info): Update.
10176 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10177 (tui_get_begin_asm_address): Update.
10178 * valops.c (find_function_in_inferior): Update.
10179 * value.c (value_static_field): Update.
10180 (value_fn_field): Update.
10182 2014-02-26 Tom Tromey <tromey@redhat.com>
10184 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10185 bound minimal symbols. Move code that knows about minsym
10187 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10189 * minsyms.h (minimal_symbol_upper_bound): Declare.
10190 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10191 minimal_symbol_upper_bound.
10193 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10195 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10196 Use the type's name if its basic type does not have a tag.
10198 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10200 * dwarf2read.c (read_subrange_type): Add comment.
10202 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10204 * dwarf2read.c (update_enumeration_type_from_children): New
10205 function, mostly extracted from process_structure_scope.
10206 (read_enumeration_type): Call update_enumeration_type_from_children.
10207 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10208 and flag_flag_enum fields.
10210 2014-02-26 Pedro Alves <palves@redhat.com>
10212 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10213 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10214 to_xfer_partial method.
10216 2014-02-26 Pedro Alves <palves@redhat.com>
10218 * target.c (complete_target_initialization): Don't install
10219 default_xfer_partial as to_xfer_partial hook.
10220 (nomemory): Delete.
10221 (update_current_target): Don't INHERIT nor de_fault
10222 deprecated_xfer_memory. Delete de_fault macro.
10223 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10224 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10225 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10228 2014-02-26 Pedro Alves <palves@redhat.com>
10230 * go32-nat.c (my_write_child): New function.
10231 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10232 (go32_xfer_partial): New function.
10233 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10234 Instead install a to_xfer_partial hook.
10236 2014-02-26 Pedro Alves <palves@redhat.com>
10238 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10239 to_xfer_partial helper. Rewrite.
10240 (procfs_xfer_partial): New function.
10241 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10242 Install a to_xfer_partial hook.
10244 2014-02-26 Pedro Alves <palves@redhat.com>
10246 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10247 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10248 (m32r_xfer_partial): New function.
10249 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10250 Install a to_xfer_partial hook.
10252 2014-02-26 Pedro Alves <palves@redhat.com>
10254 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10256 (mips_xfer_partial): New function.
10257 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10258 hook. Install a to_xfer_partial hook.
10260 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10262 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10263 * gdbtypes.c (create_array_type_with_stride): New function,
10264 renaming create_array_type, but with an added parameter
10265 called "bit_stride".
10266 (create_array_type): Re-implement using
10267 create_array_type_with_stride.
10268 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10269 and DW_AT_bit_stride attributes.
10271 2014-02-26 Pedro Alves <palves@redhat.com>
10273 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10274 task-specific breakpoints.
10276 2014-02-25 Pedro Alves <palves@redhat.com>
10278 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10279 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10281 2014-02-25 Stan Shebs <stan@codesourcery.com>
10283 * defs.h: Annotate comments for Doxygen.
10285 2014-02-25 Tom Tromey <tromey@redhat.com>
10287 * target.h (target_ignore): Don't declare.
10288 * target.c (target_ignore): Remove.
10290 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10293 * auto-load.c (auto_load_objfile_script_1): Change filename to
10296 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10298 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10299 documentation. Adjust prototype to match the target_ops
10300 to_xfer_partial method. Adjust implementation accordingly.
10302 2014-02-25 Hui Zhu <hui@codesourcery.com>
10304 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10305 to_traceframe_info.
10307 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10309 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10310 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10311 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10312 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10313 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10314 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10315 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10316 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10318 (rl78_register_type): Use a data pointer type for SP and
10319 new pseudo registers mentioned above. Use a 16 bit integer
10320 type for all other register pairs.
10321 (rl78_register_name, rl78_g10_register_name): Update for
10322 new pseudo registers.
10323 (rl78_pseudo_register_read): Likewise.
10324 (rl78_pseudo_register_write): Likewise.
10325 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10326 to the newly added pseudo registers.
10328 2014-02-24 Doug Evans <dje@google.com>
10330 * value.c (record_latest_value): Fix comment.
10331 * printcmd.c (print_command_1): Remove code to handle -1 return from
10332 record_latest_value.
10334 2014-02-24 Pedro Alves <palves@redhat.com>
10336 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10337 deprecated_xfer_memory hook.
10338 (procfs_xfer_partial): Call procfs_xfer_memory instead
10339 of the deprecated_xfer_memory target hook.
10340 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10343 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10345 * windows-nat.c (windows_xfer_shared_libraries): Return
10346 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10347 requested object is TARGET_OBJECT_LIBRARIES.
10349 2014-02-24 Yao Qi <yao@codesourcery.com>
10351 * target.h (enum target_xfer_status)
10352 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10353 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10355 * corefile.c (memory_error_message): User updated.
10356 * exec.c (section_table_read_available_memory): Likewise.
10357 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10358 * target.c (target_xfer_status_to_string): Likewise.
10359 (raw_memory_xfer_partial): Likewise.
10360 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10361 * valops.c (read_value_memory): Likewise.
10362 * exec.h: Update comments.
10364 2014-02-24 Yao Qi <yao@codesourcery.com>
10366 * target.c (target_xfer_status_to_string): Rename argument err
10368 * target.h (target_xfer_status_to_string): Update declaration.
10369 Replace target_xfer_error_to_string with
10370 target_xfer_status_to_string in comment.
10372 2014-02-24 Yao Qi <yao@codesourcery.com>
10374 * mips-linux-nat.c (super_close): Update its type.
10375 (mips_linux_close): Pass 'self' to super_close.
10377 2014-02-24 Yao Qi <yao@codesourcery.com>
10379 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10380 * corefile.c (read_memory): Adjusted.
10381 * target.c (target_write_with_progress): Adjusted.
10383 2014-02-23 Yao Qi <yao@codesourcery.com>
10385 Revert two patches:
10387 2013-10-25 Yao Qi <yao@codesourcery.com>
10389 * remote.c (remote_traceframe_info): Return early if
10390 traceframe is not selected.
10392 2013-07-19 Yao Qi <yao@codesourcery.com>
10394 * target.c (update_current_target): Change the default action
10395 of 'to_traceframe_info' from tcomplain to return_zero.
10396 * target.h (struct target_ops) <to_traceframe_info>: Add more
10399 2014-02-23 Yao Qi <yao@codesourcery.com>
10401 * valops.c (read_value_memory): Rewrite it. Call
10402 target_xfer_partial in a loop.
10403 * exec.h (section_table_available_memory): Remove declaration.
10404 Move comments to ...
10405 * exec.c (section_table_available_memory): ... here. Make it
10408 2014-02-23 Yao Qi <yao@codesourcery.com>
10410 * exec.c (section_table_read_available_memory): New function.
10411 * exec.h (section_table_read_available_memory): Declare.
10412 * ctf.c (ctf_xfer_partial): Call
10413 section_table_read_available_memory.
10414 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10416 2014-02-23 Yao Qi <yao@codesourcery.com>
10418 * ctf.c (ctf_xfer_partial): Move code to ...
10419 * exec.c (exec_read_partial_read_only): ... it. New function.
10420 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10421 * tracefile.c: Include "exec.h".
10422 * exec.h (exec_read_partial_read_only): Declare.
10424 2014-02-23 Yao Qi <yao@codesourcery.com>
10426 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10427 (tfile_has_memory): Remove.
10428 (init_tfile_ops): Don't set fields to_has_all_memory and
10429 to_has_memory of tfile_ops.
10430 * tracefile.c (tracefile_has_all_memory): New function.
10431 (tracefile_has_memory): New function.
10432 (init_tracefile_ops): Initialize fields to_has_all_memory and
10433 to_has_memory of 'ops'.
10435 2014-02-23 Yao Qi <yao@codesourcery.com>
10437 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10438 (ctf_thread_alive, ctf_get_trace_status): Remove.
10439 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10440 init_tracefile_ops.
10441 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10442 (tfile_has_stack, tfile_has_registers): Remove.
10443 (tfile_thread_alive): Remove.
10444 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10445 init_tracefile_ops.
10446 * tracefile.c (tracefile_has_stack): New function.
10447 (tracefile_has_registers): New function.
10448 (tracefile_thread_alive): New function.
10449 (tracefile_get_trace_status): New function.
10450 (init_tracefile_ops): New function.
10451 * tracefile.h (init_tracefile_ops): Declare.
10453 2014-02-23 Yao Qi <yao@codesourcery.com>
10455 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10456 (O_LARGEFILE): Likewise.
10457 (tfile_ops): Likewise.
10458 (TRACE_HEADER_SIZE): Likewise.
10459 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10460 (cur_data_size): Likewise.
10461 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10462 (tfile_close, tfile_files_info): Likewise.
10463 (tfile_get_trace_status): Likewise.
10464 (tfile_get_tracepoint_status): Likewise.
10465 (tfile_get_traceframe_address): Likewise.
10466 (tfile_trace_find, match_blocktype): Likewise.
10467 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10468 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10469 (tfile_get_trace_state_variable_value): Likewise.
10470 (tfile_has_all_memory, tfile_has_memory): Likewise.
10471 (tfile_has_stack, tfile_has_registers): Likewise.
10472 (tfile_thread_alive, build_traceframe_info): Likewise.
10473 (tfile_traceframe_info, init_tfile_ops): Likewise.
10474 (_initialize_tracepoint): Don't call init_tfile_ops
10475 and add_target_with_completer.
10476 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10477 exec.h, completer.h and filenames.h.
10478 (_initialize_tracefile_tfile): New function.
10480 2014-02-23 Yao Qi <yao@codesourcery.com>
10482 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10484 (HFILES_NO_SRCDIR): Add tracefile.h.
10485 * ctf.c: Include "tracefile.h".
10486 * tracefile.h: New file.
10487 * tracefile.c: New file
10488 * tracefile-tfile.c: New file.
10489 * tracepoint.c: Include "tracefile.h".
10490 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10491 (stop_reason_names): Add const.
10492 (trace_file_writer_xfree): Move it to tracefile.c.
10493 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10494 (trace_save_ctf): Likewise.
10495 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10496 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10497 (tfile_write_header, tfile_write_regblock_type): Likewise.
10498 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10499 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10500 (tfile_write_raw_data, tfile_end): Likewise.
10501 (tfile_trace_file_writer_new): Likewise.
10502 (free_uploaded_tp): Make it extern.
10503 (free_uploaded_tsv): Make it extern.
10504 (_initialize_tracepoint): Move code to register command 'tsave'
10506 * tracepoint.h (stop_reason_names): Declare.
10507 (struct trace_frame_write_ops): Move it to tracefile.h.
10508 (struct trace_file_write_ops): Likewise.
10509 (struct trace_file_writer): Likewise.
10510 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10512 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10515 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10517 (get_cores_used_by_process): New parameter num_cores, use it.
10518 (linux_xfer_osdata_processes): Pass num_cores to it.
10519 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10522 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10524 * target.c (memory_xfer_partial): Fix length arg in call to
10525 breakpoint_xfer_memory.
10527 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10530 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10531 number comes after the + or - signs. Adjust length of register
10532 name to be extracted.
10534 2014-02-20 Tom Tromey <tromey@redhat.com>
10536 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10537 (ada_varobj_ops): Mark "extern".
10539 2014-02-20 Tom Tromey <tromey@redhat.com>
10541 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10543 2014-02-20 Doug Evans <xdje42@gmail.com>
10545 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10546 All callers updated.
10547 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10548 All callers updated.
10549 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10550 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10552 2014-02-20 lin zuojian <manjian2006@gmail.com>
10553 Joel Brobecker <brobecker@adacore.com>
10554 Doug Evans <xdje42@gmail.com>
10557 * dwarf2read.c (struct die_info): New member in_process.
10558 (reset_die_in_process): New function.
10559 (process_die): Set it at the start, reset when returning.
10560 (inherit_abstract_dies): Only call process_die if origin_child_die
10561 not already being processed.
10563 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10565 * windows-nat.c (handle_unload_dll): Add function documentation.
10566 (do_initial_windows_stuff): Add comment explaining why we wait
10567 until after inferior initialization has finished before
10568 processing all DLLs.
10570 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10572 * windows-nat.c (get_module_name): Delete.
10573 (windows_get_exec_module_filename): New function, mostly
10574 inspired from get_module_name.
10575 (windows_pid_to_exec_file): Replace call to get_module_name
10576 by call to windows_get_exec_module_filename.
10578 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10580 * windows-nat.c (handle_load_dll): Rewrite this function's
10581 introductory comment. Remove code using get_module_name
10582 to get the DLL's name.
10584 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10586 * windows-nat.c (get_windows_debug_event): Ignore
10587 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10588 if windows_initialization_done == 0.
10589 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10590 Adjust implementation to always load all DLLs.
10591 (do_initial_windows_stuff): Replace call to
10592 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10594 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10596 * windows-nat.c (_initialize_windows_nat): Deprecate the
10597 "dll-symbols" command. Turn the "add-shared-symbol-files"
10598 and "assf" aliases into commands, and deprecate them as well.
10599 * NEWS: Add entry explaining that "dll-symbols" and its two
10600 aliases are now deprecated.
10602 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10604 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10605 new-line in debug string. Remove trailing spaces.
10607 2014-02-19 Stan Shebs <stan@codesourcery.com>
10609 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10611 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10613 * NEWS: Add entry for the new feature
10614 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10617 2014-02-19 Stan Shebs <stan@codesourcery.com>
10619 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10621 2014-02-19 Pedro Alves <palves@redhat.com>
10623 * common/ptid.h (struct ptid): Mention that process_stratum
10624 targets should prefer ptid.lwp.
10626 2014-02-19 Pedro Alves <palves@redhat.com>
10628 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10629 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10630 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10631 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10632 store remote thread ids rather than ptid.tid.
10633 (_initialize_remote): Adjust.
10635 2014-02-19 Tom Tromey <tromey@redhat.com>
10637 * target.c (target_get_unwinder): Rewrite.
10638 (target_get_tailcall_unwinder): Rewrite.
10639 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10640 (record_btrace_to_get_tailcall_unwinder): New function.
10641 (init_record_btrace_ops): Update.
10642 * target.h (struct target_ops) <to_get_unwinder,
10643 to_get_tailcall_unwinder>: Now function pointers. Use
10644 TARGET_DEFAULT_RETURN.
10646 2014-02-19 Tom Tromey <tromey@redhat.com>
10648 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10650 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10652 2014-02-19 Tom Tromey <tromey@redhat.com>
10654 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10656 * target-delegates.c: Rebuild.
10657 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10658 TARGET_DEFAULT_FUNC.
10659 * target.c (default_target_decr_pc_after_break): Rename from
10660 forward_target_decr_pc_after_break. Simplify.
10661 (target_decr_pc_after_break): Rely on delegation.
10663 2014-02-19 Tom Tromey <tromey@redhat.com>
10665 * target.c (update_current_target): Do not INHERIT to_doc or
10666 to_magic. Do not de_fault to_open or to_close.
10668 2014-02-19 Tom Tromey <tromey@redhat.com>
10670 * gcore.h (objfile_find_memory_regions): Declare.
10671 * gcore.c (objfile_find_memory_regions): No longer static. Add
10673 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10674 * exec.c: Include gcore.h.
10675 (exec_set_find_memory_regions): Remove.
10676 (exec_find_memory_regions): Remove.
10677 (exec_do_find_memory_regions): Remove.
10678 (init_exec_ops): Update.
10679 * defs.h (exec_set_find_memory_regions): Remove.
10681 2014-02-19 Tom Tromey <tromey@redhat.com>
10683 * target-delegates.c: Rebuild.
10684 * target.h (struct target_ops) <to_extra_thread_info,
10685 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10686 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10687 not 0, in TARGET_DEFAULT_RETURN.
10689 2014-02-19 Tom Tromey <tromey@redhat.com>
10691 * target.c (complete_target_initialization): Remove casts. Use
10692 return_zero_has_execution.
10693 (return_zero): Add "ignore" argument.
10694 (return_zero_has_execution): New function.
10695 (init_dummy_target): Remove casts. Use
10696 return_zero_has_execution.
10698 2014-02-19 Tom Tromey <tromey@redhat.com>
10700 * target.c (update_current_target): Update comments. Do not
10701 INHERIT to_stratum.
10703 2014-02-19 Tom Tromey <tromey@redhat.com>
10705 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10707 * corelow.c (core_read_description): Delegate when needed.
10708 * remote.c (remote_read_description): Delegate when needed.
10709 * target-delegates.c: Rebuild.
10710 * target.c (target_read_description): Rewrite.
10711 * target.h (struct target_ops) <to_read_description>: Update
10712 comment. Use TARGET_DEFAULT_RETURN.
10714 2014-02-19 Tom Tromey <tromey@redhat.com>
10716 * target-delegates.c: Rebuild.
10717 * target.c (update_current_target): Don't inherit or default
10719 (find_default_run_target): Check against delegate_can_run.
10720 * target.h (struct target_ops) <to_can_run>: Use
10721 TARGET_DEFAULT_RETURN.
10723 2014-02-19 Tom Tromey <tromey@redhat.com>
10725 * target-delegates.c: Rebuild.
10726 * target.c (target_disconnect): Unconditionally delegate.
10727 * target.h (struct target_ops) <to_disconnect>: Use
10728 TARGET_DEFAULT_NORETURN.
10730 2014-02-19 Tom Tromey <tromey@redhat.com>
10732 * record.c (record_stop): Unconditionally delegate.
10733 * target-delegates.c: Rebuild.
10734 * target.c (target_stop_recording): Unconditionally delegate.
10735 * target.h (struct target_ops) <to_stop_recording>: Use
10736 TARGET_DEFAULT_IGNORE.
10738 2014-02-19 Tom Tromey <tromey@redhat.com>
10740 * target-delegates.c: Rebuild.
10741 * target.c (target_enable_btrace): Unconditionally delegate.
10742 * target.h (struct target_ops) <to_enable_btrace>: Use
10743 TARGET_DEFAULT_NORETURN.
10745 2014-02-19 Tom Tromey <tromey@redhat.com>
10747 * target-delegates.c: Rebuild.
10748 * target.c (target_read_btrace): Unconditionally delegate.
10749 * target.h (struct target_ops) <to_read_btrace>: Use
10750 TARGET_DEFAULT_NORETURN.
10752 2014-02-19 Tom Tromey <tromey@redhat.com>
10754 * target-delegates.c: Rebuild.
10755 * target.c (target_teardown_btrace): Unconditionally delegate.
10756 * target.h (struct target_ops) <to_teardown_btrace>: Use
10757 TARGET_DEFAULT_NORETURN.
10759 2014-02-19 Tom Tromey <tromey@redhat.com>
10761 * target-delegates.c: Rebuild.
10762 * target.c (target_disable_btrace): Unconditionally delegate.
10763 * target.h (struct target_ops) <to_disable_btrace>: Use
10764 TARGET_DEFAULT_NORETURN.
10766 2014-02-19 Tom Tromey <tromey@redhat.com>
10768 * target-delegates.c: Rebuild.
10769 * target.c (default_search_memory): New function.
10770 (simple_search_memory): Update comment.
10771 (target_search_memory): Unconditionally delegate.
10772 * target.h (struct target_ops) <to_search_memory>: Use
10773 TARGET_DEFAULT_FUNC.
10775 2014-02-19 Tom Tromey <tromey@redhat.com>
10777 * auxv.c (default_auxv_parse): No longer static.
10778 (target_auxv_parse): Unconditionally delegate.
10779 * auxv.h (default_auxv_parse): Declare.
10780 * target-delegates.c: Rebuild.
10781 * target.c: Include auxv.h.
10782 * target.h (struct target_ops) <to_auxv_parse>: Use
10783 TARGET_DEFAULT_FUNC.
10785 2014-02-19 Tom Tromey <tromey@redhat.com>
10787 * target-delegates.c: Rebuild.
10788 * target.c (target_memory_map): Unconditionally delegate.
10789 * target.h (struct target_ops) <to_memory_map>: Use
10790 TARGET_DEFAULT_RETURN.
10792 2014-02-19 Tom Tromey <tromey@redhat.com>
10794 * target-delegates.c: Rebuild.
10795 * target.c (target_thread_alive): Unconditionally delegate.
10796 * target.h (struct target_ops) <to_thread_alive>: Use
10797 TARGET_DEFAULT_RETURN.
10799 2014-02-19 Tom Tromey <tromey@redhat.com>
10801 * target-delegates.c: Rebuild.
10802 * target.c (target_save_record): Unconditionally delegate.
10803 * target.h (struct target_ops) <to_save_record>: Use
10804 TARGET_DEFAULT_NORETURN.
10806 2014-02-19 Tom Tromey <tromey@redhat.com>
10808 * target-delegates.c: Rebuild.
10809 * target.c (target_delete_record): Unconditionally delegate.
10810 * target.h (struct target_ops) <to_delete_record>: Use
10811 TARGET_DEFAULT_NORETURN.
10813 2014-02-19 Tom Tromey <tromey@redhat.com>
10815 * target-delegates.c: Rebuild.
10816 * target.c (target_record_is_replaying): Unconditionally
10818 * target.h (struct target_ops) <to_record_is_replaying>: Use
10819 TARGET_DEFAULT_RETURN.
10821 2014-02-19 Tom Tromey <tromey@redhat.com>
10823 * target-delegates.c: Rebuild.
10824 * target.c (target_goto_record_begin): Unconditionally delegate.
10825 * target.h (struct target_ops) <to_goto_record_begin>: Use
10826 TARGET_DEFAULT_NORETURN.
10828 2014-02-19 Tom Tromey <tromey@redhat.com>
10830 * target-delegates.c: Rebuild.
10831 * target.c (target_goto_record_end): Unconditionally delegate.
10832 * target.h (struct target_ops) <to_goto_record_end>: Use
10833 TARGET_DEFAULT_NORETURN.
10835 2014-02-19 Tom Tromey <tromey@redhat.com>
10837 * target-delegates.c: Rebuild.
10838 * target.c (target_goto_record): Unconditionally delegate.
10839 * target.h (struct target_ops) <to_goto_record>: Use
10840 TARGET_DEFAULT_NORETURN.
10842 2014-02-19 Tom Tromey <tromey@redhat.com>
10844 * target-delegates.c: Rebuild.
10845 * target.c (target_insn_history): Unconditionally delegate.
10846 * target.h (struct target_ops) <to_insn_history>: Use
10847 TARGET_DEFAULT_NORETURN.
10849 2014-02-19 Tom Tromey <tromey@redhat.com>
10851 * target-delegates.c: Rebuild.
10852 * target.c (target_insn_history_from): Unconditionally delegate.
10853 * target.h (struct target_ops) <to_insn_history_from>: Use
10854 TARGET_DEFAULT_NORETURN.
10856 2014-02-19 Tom Tromey <tromey@redhat.com>
10858 * target-delegates.c: Rebuild.
10859 * target.c (target_insn_history_range): Unconditionally delegate.
10860 * target.h (struct target_ops) <to_insn_history_range>: Use
10861 TARGET_DEFAULT_NORETURN.
10863 2014-02-19 Tom Tromey <tromey@redhat.com>
10865 * target-delegates.c: Rebuild.
10866 * target.c (target_call_history): Unconditionally delegate.
10867 * target.h (struct target_ops) <to_call_history>: Use
10868 TARGET_DEFAULT_NORETURN.
10870 2014-02-19 Tom Tromey <tromey@redhat.com>
10872 * target-delegates.c: Rebuild.
10873 * target.c (target_call_history_from): Unconditionally delegate.
10874 * target.h (struct target_ops) <to_call_history_from>: Use
10875 TARGET_DEFAULT_NORETURN.
10877 2014-02-19 Tom Tromey <tromey@redhat.com>
10879 * target-delegates.c: Rebuild.
10880 * target.c (target_call_history_range): Unconditionally delegate.
10881 * target.h (struct target_ops) <to_call_history_range>: Use
10882 TARGET_DEFAULT_NORETURN.
10884 2014-02-19 Tom Tromey <tromey@redhat.com>
10886 * target-delegates.c: Rebuild.
10887 * target.c (target_verify_memory): Unconditionally delegate.
10888 * target.h (struct target_ops) <to_verify_memory>: Use
10889 TARGET_DEFAULT_NORETURN.
10891 2014-02-19 Tom Tromey <tromey@redhat.com>
10893 * target-delegates.c: Rebuild.
10894 * target.c (target_core_of_thread): Unconditionally delegate.
10895 * target.h (struct target_ops) <to_core_of_thread>: Use
10896 TARGET_DEFAULT_RETURN.
10898 2014-02-19 Tom Tromey <tromey@redhat.com>
10900 * target-delegates.c: Rebuild.
10901 * target.c (target_flash_done): Unconditionally delegate.
10902 * target.h (struct target_ops) <to_flash_done>: Use
10903 TARGET_DEFAULT_NORETURN.
10905 2014-02-19 Tom Tromey <tromey@redhat.com>
10907 * target-delegates.c: Rebuild.
10908 * target.c (target_flash_erase): Unconditionally delegate.
10909 * target.h (struct target_ops) <to_flash_erase>: Use
10910 TARGET_DEFAULT_NORETURN.
10912 2014-02-19 Tom Tromey <tromey@redhat.com>
10914 * target-delegates.c: Rebuild.
10915 * target.c (target_get_section_table): Unconditionally delegate.
10916 * target.h (struct target_ops) <to_get_section_table>: Use
10917 TARGET_DEFAULT_RETURN.
10919 2014-02-19 Tom Tromey <tromey@redhat.com>
10921 * target-delegates.c: Rebuild.
10922 * target.c (target_pid_to_str): Unconditionally delegate.
10923 (init_dummy_target): Don't initialize to_pid_to_str.
10924 (default_pid_to_str): Rename from dummy_pid_to_str.
10925 * target.h (struct target_ops) <to_pid_to_str>: Use
10926 TARGET_DEFAULT_FUNC.
10928 2014-02-19 Tom Tromey <tromey@redhat.com>
10930 * target-delegates.c: Rebuild.
10931 * target.c (target_find_new_threads): Unconditionally delegate.
10932 * target.h (struct target_ops) <to_find_new_threads>: Use
10933 TARGET_DEFAULT_RETURN.
10935 2014-02-19 Tom Tromey <tromey@redhat.com>
10937 * target-delegates.c: Rebuild.
10938 * target.c (target_program_signals): Unconditionally delegate.
10939 * target.h (struct target_ops) <to_program_signals>: Use
10940 TARGET_DEFAULT_IGNORE.
10942 2014-02-19 Tom Tromey <tromey@redhat.com>
10944 * target-delegates.c: Rebuild.
10945 * target.c (target_pass_signals): Unconditionally delegate.
10946 * target.h (struct target_ops) <to_pass_signals>: Use
10947 TARGET_DEFAULT_IGNORE.
10949 2014-02-19 Tom Tromey <tromey@redhat.com>
10951 * target-delegates.c: Rebuild.
10952 * target.c (default_mourn_inferior): New function.
10953 (target_mourn_inferior): Unconditionally delegate.
10954 * target.h (struct target_ops) <to_mourn_inferior>: Use
10955 TARGET_DEFAULT_FUNC.
10957 2014-02-19 Tom Tromey <tromey@redhat.com>
10959 * target-delegates.c: Rebuild.
10960 * target.c (default_follow_fork): New function.
10961 (target_follow_fork): Unconditionally delegate.
10962 * target.h (struct target_ops) <to_follow_fork>: Use
10963 TARGET_DEFAULT_FUNC.
10965 2014-02-19 Tom Tromey <tromey@redhat.com>
10967 * target-delegates.c: Rebuild.
10968 * target.c (target_kill): Unconditionally delegate.
10969 * target.h (struct target_ops) <to_kill>: Use
10970 TARGET_DEFAULT_NORETURN.
10972 2014-02-19 Tom Tromey <tromey@redhat.com>
10974 * target-delegates.c: Rebuild.
10975 * target.c (target_masked_watch_num_registers): Unconditionally
10977 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10978 Use TARGET_DEFAULT_RETURN.
10980 2014-02-19 Tom Tromey <tromey@redhat.com>
10982 * target-delegates.c: Rebuild.
10983 * target.c (target_remove_mask_watchpoint): Unconditionally
10985 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10986 TARGET_DEFAULT_RETURN.
10988 2014-02-19 Tom Tromey <tromey@redhat.com>
10990 * target-delegates.c: Rebuild.
10991 * target.c (target_insert_mask_watchpoint): Unconditionally
10993 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10994 TARGET_DEFAULT_RETURN.
10996 2014-02-19 Tom Tromey <tromey@redhat.com>
10998 * target-delegates.c: Rebuild.
10999 * target.c (target_ranged_break_num_registers): Unconditionally
11001 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11002 Use TARGET_DEFAULT_RETURN.
11004 2014-02-19 Tom Tromey <tromey@redhat.com>
11006 * target-delegates.c: Rebuild.
11007 * target.c (target_fetch_registers): Unconditionally delegate.
11008 * target.h (struct target_ops) <to_fetch_registers>: Use
11009 TARGET_DEFAULT_NORETURN.
11011 2014-02-19 Tom Tromey <tromey@redhat.com>
11013 * target-delegates.c: Rebuild.
11014 * target.c (update_current_target): Don't inherit or default
11016 * target.h (struct target_ops) <to_stop>: Use
11017 TARGET_DEFAULT_IGNORE.
11019 2014-02-19 Tom Tromey <tromey@redhat.com>
11021 * target-delegates.c: Rebuild.
11022 * target.c (update_current_target): Don't inherit or default
11023 to_can_run_breakpoint_commands.
11024 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11025 Use TARGET_DEFAULT_RETURN.
11027 2014-02-19 Tom Tromey <tromey@redhat.com>
11029 * target-delegates.c: Rebuild.
11030 * target.c (update_current_target): Don't inherit or default
11031 to_supports_evaluation_of_breakpoint_conditions.
11032 * target.h (struct target_ops)
11033 <to_supports_evaluation_of_breakpoint_conditions>: Use
11034 TARGET_DEFAULT_RETURN.
11036 2014-02-19 Tom Tromey <tromey@redhat.com>
11038 * target-delegates.c: Rebuild.
11039 * target.c (update_current_target): Don't inherit or default
11040 to_augmented_libraries_svr4_read.
11041 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11042 Use TARGET_DEFAULT_RETURN.
11044 2014-02-19 Tom Tromey <tromey@redhat.com>
11046 * target-delegates.c: Rebuild.
11047 * target.c (update_current_target): Don't inherit or default
11049 * target.h (struct target_ops) <to_can_use_agent>: Use
11050 TARGET_DEFAULT_RETURN.
11052 2014-02-19 Tom Tromey <tromey@redhat.com>
11054 * target-delegates.c: Rebuild.
11055 * target.c (update_current_target): Don't inherit or default
11057 * target.h (struct target_ops) <to_use_agent>: Use
11058 TARGET_DEFAULT_NORETURN.
11060 2014-02-19 Tom Tromey <tromey@redhat.com>
11062 * target-delegates.c: Rebuild.
11063 * target.c (update_current_target): Don't inherit or default
11064 to_traceframe_info.
11065 (return_null): Remove.
11066 * target.h (struct target_ops) <to_traceframe_info>: Use
11067 TARGET_DEFAULT_RETURN.
11069 2014-02-19 Tom Tromey <tromey@redhat.com>
11071 * target-delegates.c: Rebuild.
11072 * target.c (update_current_target): Don't inherit or default
11073 to_static_tracepoint_markers_by_strid.
11074 * target.h (struct target_ops)
11075 <to_static_tracepoint_markers_by_strid>: Use
11076 TARGET_DEFAULT_NORETURN.
11078 2014-02-19 Tom Tromey <tromey@redhat.com>
11080 * target-delegates.c: Rebuild.
11081 * target.c (update_current_target): Don't inherit or default
11082 to_static_tracepoint_marker_at.
11083 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11084 Use TARGET_DEFAULT_RETURN.
11086 2014-02-19 Tom Tromey <tromey@redhat.com>
11088 * target-delegates.c: Rebuild.
11089 * target.c (update_current_target): Don't inherit or default
11090 to_set_permissions.
11091 * target.h (struct target_ops) <to_set_permissions>: Use
11092 TARGET_DEFAULT_IGNORE.
11094 2014-02-19 Tom Tromey <tromey@redhat.com>
11096 * target-delegates.c: Rebuild.
11097 * target.c (update_current_target): Don't inherit or default
11098 to_get_tib_address.
11099 * target.h (struct target_ops) <to_get_tib_address>: Use
11100 TARGET_DEFAULT_NORETURN.
11102 2014-02-19 Tom Tromey <tromey@redhat.com>
11104 * target-delegates.c: Rebuild.
11105 * target.c (update_current_target): Don't inherit or default
11106 to_set_trace_notes.
11107 * target.h (struct target_ops) <to_set_trace_notes>: Use
11108 TARGET_DEFAULT_RETURN.
11110 2014-02-19 Tom Tromey <tromey@redhat.com>
11112 * target-delegates.c: Rebuild.
11113 * target.c (update_current_target): Don't initialize
11114 to_set_trace_buffer_size.
11115 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11116 TARGET_DEFAULT_IGNORE.
11118 2014-02-19 Tom Tromey <tromey@redhat.com>
11120 * target-delegates.c: Rebuild.
11121 * target.c (update_current_target): Don't inherit or default
11122 to_set_circular_trace_buffer.
11123 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11124 TARGET_DEFAULT_IGNORE.
11126 2014-02-19 Tom Tromey <tromey@redhat.com>
11128 * target-delegates.c: Rebuild.
11129 * target.c (update_current_target): Don't inherit or default
11130 to_set_disconnected_tracing.
11131 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11132 TARGET_DEFAULT_IGNORE.
11134 2014-02-19 Tom Tromey <tromey@redhat.com>
11136 * target-delegates.c: Rebuild.
11137 * target.c (update_current_target): Don't inherit or default
11138 to_get_min_fast_tracepoint_insn_len.
11139 (return_minus_one): Remove.
11140 * target.h (struct target_ops)
11141 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11143 2014-02-19 Tom Tromey <tromey@redhat.com>
11145 * target-delegates.c: Rebuild.
11146 * target.c (update_current_target): Don't inherit or default
11147 to_get_raw_trace_data.
11148 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11149 TARGET_DEFAULT_NORETURN.
11151 2014-02-19 Tom Tromey <tromey@redhat.com>
11153 * target-delegates.c: Rebuild.
11154 * target.c (update_current_target): Don't inherit or default
11155 to_upload_trace_state_variables.
11156 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11157 Use TARGET_DEFAULT_RETURN.
11159 2014-02-19 Tom Tromey <tromey@redhat.com>
11161 * target-delegates.c: Rebuild.
11162 * target.c (update_current_target): Don't inherit or default
11163 to_upload_tracepoints.
11164 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11165 TARGET_DEFAULT_RETURN.
11167 2014-02-19 Tom Tromey <tromey@redhat.com>
11169 * target-delegates.c: Rebuild.
11170 * target.c (update_current_target): Don't inherit or default
11171 to_save_trace_data.
11172 * target.h (struct target_ops) <to_save_trace_data>: Use
11173 TARGET_DEFAULT_NORETURN.
11175 2014-02-19 Tom Tromey <tromey@redhat.com>
11177 * target-delegates.c: Rebuild.
11178 * target.c (update_current_target): Don't inherit or default
11179 to_get_trace_state_variable_value.
11180 * target.h (struct target_ops)
11181 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11183 2014-02-19 Tom Tromey <tromey@redhat.com>
11185 * target-delegates.c: Rebuild.
11186 * target.c (update_current_target): Don't inherit or default
11188 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11190 2014-02-19 Tom Tromey <tromey@redhat.com>
11192 * target-delegates.c: Rebuild.
11193 * target.c (update_current_target): Don't inherit or default
11195 * target.h (struct target_ops) <to_trace_stop>: Use
11196 TARGET_DEFAULT_NORETURN.
11198 2014-02-19 Tom Tromey <tromey@redhat.com>
11200 * target-delegates.c: Rebuild.
11201 * target.c (update_current_target): Don't inherit or default
11202 to_get_tracepoint_status.
11203 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11204 TARGET_DEFAULT_NORETURN.
11206 2014-02-19 Tom Tromey <tromey@redhat.com>
11208 * target-delegates.c: Rebuild.
11209 * target.c (update_current_target): Don't inherit or default
11210 to_get_trace_status.
11211 * target.h (struct target_ops) <to_get_trace_status>: Use
11212 TARGET_DEFAULT_RETURN.
11214 2014-02-19 Tom Tromey <tromey@redhat.com>
11216 * target-delegates.c: Rebuild.
11217 * target.c (update_current_target): Don't inherit or default
11219 * target.h (struct target_ops) <to_trace_start>: Use
11220 TARGET_DEFAULT_NORETURN.
11222 2014-02-19 Tom Tromey <tromey@redhat.com>
11224 * target-delegates.c: Rebuild.
11225 * target.c (update_current_target): Don't inherit or default
11226 to_trace_set_readonly_regions.
11227 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11228 Use TARGET_DEFAULT_NORETURN.
11230 2014-02-19 Tom Tromey <tromey@redhat.com>
11232 * target-delegates.c: Rebuild.
11233 * target.c (update_current_target): Don't inherit or default
11234 to_disable_tracepoint.
11235 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11236 TARGET_DEFAULT_NORETURN.
11238 2014-02-19 Tom Tromey <tromey@redhat.com>
11240 * target-delegates.c: Rebuild.
11241 * target.c (update_current_target): Don't inherit or default
11242 to_enable_tracepoint.
11243 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11244 TARGET_DEFAULT_NORETURN.
11246 2014-02-19 Tom Tromey <tromey@redhat.com>
11248 * target-delegates.c: Rebuild.
11249 * target.c (update_current_target): Don't inherit or default
11250 to_download_trace_state_variable.
11251 * target.h (struct target_ops) <to_download_trace_state_variable>:
11252 Use TARGET_DEFAULT_NORETURN.
11254 2014-02-19 Tom Tromey <tromey@redhat.com>
11256 * target-delegates.c: Rebuild.
11257 * target.c (update_current_target): Don't inherit or default
11258 to_can_download_tracepoint.
11259 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11260 TARGET_DEFAULT_RETURN.
11262 2014-02-19 Tom Tromey <tromey@redhat.com>
11264 * target-delegates.c: Rebuild.
11265 * target.c (update_current_target): Don't inherit or default
11266 to_download_tracepoint.
11267 * target.h (struct target_ops) <to_download_tracepoint>: Use
11268 TARGET_DEFAULT_NORETURN.
11270 2014-02-19 Tom Tromey <tromey@redhat.com>
11272 * target-delegates.c: Rebuild.
11273 * target.c (update_current_target): Don't inherit or default
11275 * target.h (struct target_ops) <to_trace_init>: Use
11276 TARGET_DEFAULT_RETURN.
11278 2014-02-19 Tom Tromey <tromey@redhat.com>
11280 * target-delegates.c: Rebuild.
11281 * target.c (update_current_target): Don't inherit or default
11282 to_supports_string_tracing.
11283 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11284 TARGET_DEFAULT_RETURN.
11286 2014-02-19 Tom Tromey <tromey@redhat.com>
11288 * target-delegates.c: Rebuild.
11289 * target.c (update_current_target): Don't inherit or default
11290 to_supports_enable_disable_tracepoint.
11291 * target.h (struct target_ops)
11292 <to_supports_enable_disable_tracepoint>: Use
11293 TARGET_DEFAULT_RETURN.
11295 2014-02-19 Tom Tromey <tromey@redhat.com>
11297 * target-delegates.c: Rebuild.
11298 * target.c (update_current_target): Don't inherit or default
11299 to_supports_multi_process.
11300 * target.h (struct target_ops) <to_supports_multi_process>: Use
11301 TARGET_DEFAULT_RETURN.
11303 2014-02-19 Tom Tromey <tromey@redhat.com>
11305 * target-delegates.c: Rebuild.
11306 * target.c (update_current_target): Don't inherit or default
11307 to_get_ada_task_ptid.
11308 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11309 TARGET_DEFAULT_FUNC.
11311 2014-02-19 Tom Tromey <tromey@redhat.com>
11313 * target-delegates.c: Rebuild.
11314 * target.c (update_current_target): Don't inherit or default
11315 to_thread_architecture.
11316 * target.h (struct target_ops) <to_thread_architecture>: Use
11317 TARGET_DEFAULT_FUNC.
11319 2014-02-19 Tom Tromey <tromey@redhat.com>
11321 * target-delegates.c: Rebuild.
11322 * target.c (update_current_target): Don't inherit or default
11323 to_execution_direction.
11324 * target.h (struct target_ops) <to_execution_direction>: Use
11325 TARGET_DEFAULT_FUNC.
11327 2014-02-19 Tom Tromey <tromey@redhat.com>
11329 * target-delegates.c: Rebuild.
11330 * target.c (update_current_target): Don't inherit or default
11331 to_can_execute_reverse.
11332 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11333 TARGET_DEFAULT_RETURN.
11334 (target_can_execute_reverse): Unconditionally delegate.
11336 2014-02-19 Tom Tromey <tromey@redhat.com>
11338 * target-delegates.c: Rebuild.
11339 * target.c (update_current_target): Don't inherit or default
11341 (dummy_goto_bookmark): Remove.
11342 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11343 * target.h (struct target_ops) <to_goto_bookmark>: Use
11344 TARGET_DEFAULT_NORETURN.
11346 2014-02-19 Tom Tromey <tromey@redhat.com>
11348 * target-delegates.c: Rebuild.
11349 * target.c (update_current_target): Don't inherit or default
11351 (dummy_get_bookmark): Remove.
11352 (init_dummy_target): Don't inherit or default to_get_bookmark.
11353 * target.h (struct target_ops) <to_get_bookmark>: Use
11354 TARGET_DEFAULT_NORETURN
11356 2014-02-19 Tom Tromey <tromey@redhat.com>
11358 * target-delegates.c: Rebuild.
11359 * target.c (update_current_target): Don't inherit or default
11360 to_make_corefile_notes.
11361 (init_dummy_target): Don't initialize to_make_corefile_notes.
11362 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11363 TARGET_DEFAULT_FUNC.
11365 2014-02-19 Tom Tromey <tromey@redhat.com>
11367 * target-delegates.c: Rebuild.
11368 * target.c (update_current_target): Don't inherit or default
11369 to_find_memory_regions.
11370 (init_dummy_target): Don't initialize to_find_memory_regions.
11371 * target.h (struct target_ops) <to_find_memory_regions>: Use
11372 TARGET_DEFAULT_FUNC.
11374 2014-02-19 Tom Tromey <tromey@redhat.com>
11376 * target-delegates.c: Rebuild.
11377 * target.c (update_current_target): Don't inherit or default
11379 * target.h (struct target_ops) <to_log_command>: Use
11380 TARGET_DEFAULT_IGNORE.
11381 (target_log_command): Unconditionally delegate.
11383 2014-02-19 Tom Tromey <tromey@redhat.com>
11385 * target-delegates.c: Rebuild.
11386 * target.c (update_current_target): Don't inherit or default
11387 to_pid_to_exec_file.
11388 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11389 TARGET_DEFAULT_RETURN.
11391 2014-02-19 Tom Tromey <tromey@redhat.com>
11393 * target-delegates.c: Rebuild.
11394 * target.c (update_current_target): Don't inherit or default
11396 (target_thread_name): Unconditionally delegate.
11397 * target.h (struct target_ops) <to_thread_name>: Use
11398 TARGET_DEFAULT_RETURN.
11400 2014-02-19 Tom Tromey <tromey@redhat.com>
11402 * target-delegates.c: Rebuild.
11403 * target.c (update_current_target): Don't inherit or default
11404 to_extra_thread_info.
11405 * target.h (struct target_ops) <to_extra_thread_info>: Use
11406 TARGET_DEFAULT_RETURN.
11408 2014-02-19 Tom Tromey <tromey@redhat.com>
11410 * target-delegates.c: Rebuild.
11411 * target.c (update_current_target): Don't inherit or default
11413 * target.h (struct target_ops) <to_has_exited>: Use
11414 TARGET_DEFAULT_RETURN..
11416 2014-02-19 Tom Tromey <tromey@redhat.com>
11418 * target-delegates.c: Rebuild.
11419 * target.c (update_current_target): Don't inherit or default
11420 to_set_syscall_catchpoint.
11421 (return_one): Remove.
11422 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11423 TARGET_DEFAULT_RETURN.
11425 2014-02-19 Tom Tromey <tromey@redhat.com>
11427 * target-delegates.c: Rebuild.
11428 * target.c (update_current_target): Don't inherit or default
11429 to_insert_exec_catchpoint.
11430 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11431 TARGET_DEFAULT_RETURN.
11433 2014-01-08 Tom Tromey <tromey@redhat.com>
11435 * target-delegates.c: Rebuild.
11436 * target.c (update_current_target): Don't inherit or default
11437 to_insert_exec_catchpoint.
11438 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11439 TARGET_DEFAULT_RETURN.
11441 2014-02-19 Tom Tromey <tromey@redhat.com>
11443 * target-delegates.c: Rebuild.
11444 * target.c (update_current_target): Don't inherit or default
11445 to_remove_vfork_catchpoint.
11446 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11447 TARGET_DEFAULT_RETURN.
11449 2014-02-19 Tom Tromey <tromey@redhat.com>
11451 * target-delegates.c: Rebuild.
11452 * target.c (update_current_target): Don't inherit or default
11453 to_insert_vfork_catchpoint.
11454 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11455 TARGET_DEFAULT_RETURN.
11457 2014-02-19 Tom Tromey <tromey@redhat.com>
11459 * target-delegates.c: Rebuild.
11460 * target.c (update_current_target): Don't inherit or default
11461 to_remove_fork_catchpoint.
11462 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11463 TARGET_DEFAULT_RETURN.
11465 2014-02-19 Tom Tromey <tromey@redhat.com>
11467 * target-delegates.c: Rebuild.
11468 * target.c (update_current_target): Don't inherit or default
11469 to_insert_fork_catchpoint.
11470 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11471 TARGET_DEFAULT_RETURN.
11473 2014-02-19 Tom Tromey <tromey@redhat.com>
11475 * target-delegates.c: Rebuild.
11476 * target.c (update_current_target): Don't inherit or default
11477 to_post_startup_inferior.
11478 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11479 TARGET_DEFAULT_IGNORE.
11481 2014-02-19 Tom Tromey <tromey@redhat.com>
11483 * target-delegates.c: Rebuild.
11484 * target.c (update_current_target): Don't inherit or default
11486 * target.h (struct target_ops) <to_load>: Use
11487 TARGET_DEFAULT_NORETURN.
11489 2014-02-19 Tom Tromey <tromey@redhat.com>
11491 * target-delegates.c: Rebuild.
11492 * target.c (update_current_target): Don't inherit or default
11494 * target.h (struct target_ops) <to_terminal_info>: Use
11495 TARGET_DEFAULT_FUNC.
11497 2014-02-19 Tom Tromey <tromey@redhat.com>
11499 * target-delegates.c: Rebuild.
11500 * target.c (update_current_target): Don't inherit or default
11501 to_terminal_save_ours.
11502 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11503 TARGET_DEFAULT_IGNORE.
11505 2014-02-19 Tom Tromey <tromey@redhat.com>
11507 * target-delegates.c: Rebuild.
11508 * target.c (update_current_target): Don't inherit or default
11510 * target.h (struct target_ops) <to_terminal_ours>: Use
11511 TARGET_DEFAULT_IGNORE.
11513 2014-02-19 Tom Tromey <tromey@redhat.com>
11515 * target-delegates.c: Rebuild.
11516 * target.c (update_current_target): Don't inherit or default
11517 to_terminal_ours_for_output.
11518 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11519 TARGET_DEFAULT_IGNORE.
11521 2014-02-19 Tom Tromey <tromey@redhat.com>
11523 * target-delegates.c: Rebuild.
11524 * target.c (update_current_target): Don't inherit or default
11525 to_terminal_inferior.
11526 * target.h (struct target_ops) <to_terminal_inferior>: Use
11527 TARGET_DEFAULT_IGNORE.
11529 2014-02-19 Tom Tromey <tromey@redhat.com>
11531 * target-delegates.c: Rebuild.
11532 * target.c (update_current_target): Don't inherit or default
11534 * target.h (struct target_ops) <to_terminal_init>: Use
11535 TARGET_DEFAULT_IGNORE.
11537 2014-02-19 Tom Tromey <tromey@redhat.com>
11539 * target-delegates.c: Rebuild.
11540 * target.c (update_current_target): Don't inherit or default
11541 to_can_accel_watchpoint_condition.
11542 * target.h (struct target_ops)
11543 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11545 2014-02-19 Tom Tromey <tromey@redhat.com>
11547 * target-delegates.c: Rebuild.
11548 * target.c (update_current_target): Don't inherit or default
11549 to_region_ok_for_hw_watchpoint.
11550 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11551 Use TARGET_DEFAULT_FUNC.
11553 2014-02-19 Tom Tromey <tromey@redhat.com>
11555 * target-delegates.c: Rebuild.
11556 * target.c (update_current_target): Don't inherit or default
11557 to_watchpoint_addr_within_range.
11558 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11559 Use TARGET_DEFAULT_FUNC.
11561 2014-02-19 Tom Tromey <tromey@redhat.com>
11563 * target-delegates.c: Rebuild.
11564 * target.c (update_current_target): Don't inherit or default
11565 to_remove_watchpoint.
11566 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11567 TARGET_DEFAULT_NORETURN.
11569 2014-02-19 Tom Tromey <tromey@redhat.com>
11571 * target-delegates.c: Rebuild.
11572 * target.c (update_current_target): Don't inherit or default
11573 to_insert_watchpoint.
11574 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11575 TARGET_DEFAULT_RETURN.
11577 2014-02-19 Tom Tromey <tromey@redhat.com>
11579 * target-delegates.c: Rebuild.
11580 * target.c (update_current_target): Don't inherit or default
11581 to_remove_hw_breakpoint.
11582 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11583 TARGET_DEFAULT_RETURN.
11585 2014-02-19 Tom Tromey <tromey@redhat.com>
11587 * target-delegates.c: Rebuild.
11588 * target.c (update_current_target): Don't inherit or default
11589 to_insert_hw_breakpoint.
11590 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11591 TARGET_DEFAULT_RETURN.
11593 2014-02-19 Tom Tromey <tromey@redhat.com>
11595 * target-delegates.c: Rebuild.
11596 * target.c (update_current_target): Don't inherit or default
11597 to_can_use_hw_breakpoint.
11598 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11599 TARGET_DEFAULT_RETURN.
11601 2014-02-19 Tom Tromey <tromey@redhat.com>
11603 * target-delegates.c: Rebuild.
11604 * target.c (update_current_target): Don't inherit or default
11606 * target.h (struct target_ops) <to_files_info>: Use
11607 TARGET_DEFAULT_IGNORE.
11609 2014-02-19 Tom Tromey <tromey@redhat.com>
11611 * target-delegates.c: Rebuild.
11612 * target.c (update_current_target): Don't inherit or default
11614 * target.h (struct target_ops) <to_store>: Use
11615 TARGET_DEFAULT_NORETURN.
11617 2014-02-19 Tom Tromey <tromey@redhat.com>
11619 * target-delegates.c: Rebuild.
11620 * target.c (update_current_target): Don't inherit or default
11622 * target.h (struct target_ops) <to_post_attach>: Use
11623 TARGET_DEFAULT_IGNORE.
11625 2014-02-19 Tom Tromey <tromey@redhat.com>
11627 * target-delegates.c: Rebuild.
11628 * target.c (update_current_target): Don't inherit or default
11630 (default_rcmd): New function.
11631 (do_monitor_command): Unconditionally delegate.
11632 * target.h (struct target_ops) <to_rmcd>: Use
11633 TARGET_DEFAULT_FUNC.
11635 2014-02-19 Tom Tromey <tromey@redhat.com>
11637 * target-delegates.c: Rebuild.
11638 * target.c (init_dummy_target): Don't initialize to_attach.
11639 (target_attach): Unconditionally delegate.
11640 * target.h (struct target_ops) <to_attach>: Use
11641 TARGET_DEFAULT_FUNC.
11643 2014-02-19 Tom Tromey <tromey@redhat.com>
11645 * target-delegates.c: Rebuild.
11646 * target.c (target_detach): Unconditionally delegate.
11647 (init_dummy_target): Don't initialize to_detach.
11648 * target.h (struct target_ops) <to_detach>: Use
11649 TARGET_DEFAULT_IGNORE.
11651 2014-02-19 Tom Tromey <tromey@redhat.com>
11653 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11655 (target_augmented_libraries_svr4_read): Add argument.
11656 * target.c (update_current_target): Update.
11657 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11660 2014-02-19 Tom Tromey <tromey@redhat.com>
11662 * target.h (struct target_ops) <to_call_history_range>: Add
11664 * target.c (target_call_history_range): Add argument.
11665 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11667 (record_btrace_call_history_from): Update.
11669 2014-02-19 Tom Tromey <tromey@redhat.com>
11671 * target.h (struct target_ops) <to_call_history_from>: Add
11673 * target.c (target_call_history_from): Add argument.
11674 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11677 2014-02-19 Tom Tromey <tromey@redhat.com>
11679 * target.h (struct target_ops) <to_call_history>: Add argument.
11680 * target.c (target_call_history): Add argument.
11681 * record-btrace.c (record_btrace_call_history): Add 'self'
11684 2014-02-19 Tom Tromey <tromey@redhat.com>
11686 * target.h (struct target_ops) <to_insn_history_range>: Add
11688 * target.c (target_insn_history_range): Add argument.
11689 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11691 (record_btrace_insn_history_from): Update.
11693 2014-02-19 Tom Tromey <tromey@redhat.com>
11695 * target.h (struct target_ops) <to_insn_history_from>: Add
11697 * target.c (target_insn_history_from): Add argument.
11698 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11701 2014-02-19 Tom Tromey <tromey@redhat.com>
11703 * target.h (struct target_ops) <to_insn_history>: Add argument.
11704 * target.c (target_insn_history): Add argument.
11705 * record-btrace.c (record_btrace_insn_history): Add 'self'
11708 2014-02-19 Tom Tromey <tromey@redhat.com>
11710 * target.h (struct target_ops) <to_goto_record>: Add argument.
11711 * target.c (target_goto_record): Add argument.
11712 * record-full.c (record_full_goto): Add 'self' argument.
11713 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11715 2014-02-19 Tom Tromey <tromey@redhat.com>
11717 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11718 * target.c (target_goto_record_end): Add argument.
11719 * record-full.c (record_full_goto_end): Add 'self' argument.
11720 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11722 2014-02-19 Tom Tromey <tromey@redhat.com>
11724 * target.h (struct target_ops) <to_goto_record_begin>: Add
11726 * target.c (target_goto_record_begin): Add argument.
11727 * record-full.c (record_full_goto_begin): Add 'self' argument.
11728 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11731 2014-02-19 Tom Tromey <tromey@redhat.com>
11733 * target.h (struct target_ops) <to_record_is_replaying>: Add
11735 * target.c (target_record_is_replaying): Add argument.
11736 * record-full.c (record_full_is_replaying): Add 'self' argument.
11737 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11739 (record_btrace_xfer_partial, record_btrace_store_registers)
11740 (record_btrace_prepare_to_store, record_btrace_resume)
11741 (record_btrace_wait, record_btrace_decr_pc_after_break)
11742 (record_btrace_find_new_threads, record_btrace_thread_alive):
11745 2014-02-19 Tom Tromey <tromey@redhat.com>
11747 * target.h (struct target_ops) <to_delete_record>: Add argument.
11748 * target.c (target_delete_record): Add argument.
11749 * record-full.c (record_full_delete): Add 'self' argument.
11751 2014-02-19 Tom Tromey <tromey@redhat.com>
11753 * target.h (struct target_ops) <to_save_record>: Add argument.
11754 * target.c (target_save_record): Add argument.
11755 * record-full.c (record_full_save): Add 'self' argument.
11756 (record_full_save): Add 'self' argument.
11758 2014-02-19 Tom Tromey <tromey@redhat.com>
11760 * target.h (struct target_ops) <to_info_record>: Add argument.
11761 * target.c (target_info_record): Add argument.
11762 * record.c (info_record_command): Add argument.
11763 * record-full.c (record_full_info): Add 'self' argument.
11764 * record-btrace.c (record_btrace_info): Add 'self' argument.
11766 2014-02-19 Tom Tromey <tromey@redhat.com>
11768 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11769 * target.c (target_stop_recording): Add argument.
11770 * record.c (record_stop): Add argument.
11771 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11774 2014-02-19 Tom Tromey <tromey@redhat.com>
11776 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11777 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11778 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11780 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11781 (_initialize_amd64_linux_nat): Use it.
11782 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11783 (_initialize_i386_linux_nat): Use it.
11785 2014-02-19 Tom Tromey <tromey@redhat.com>
11787 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11788 * target.c (target_teardown_btrace): Add argument.
11789 * remote.c (remote_teardown_btrace): Add 'self' argument.
11790 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11792 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11795 2014-02-19 Tom Tromey <tromey@redhat.com>
11797 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11798 * target.c (target_disable_btrace): Add argument.
11799 * remote.c (remote_disable_btrace): Add 'self' argument.
11800 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11802 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11805 2014-02-19 Tom Tromey <tromey@redhat.com>
11807 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11808 * target.c (target_enable_btrace): Add argument.
11809 * remote.c (remote_enable_btrace): Add 'self' argument.
11810 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11812 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11815 2014-02-19 Tom Tromey <tromey@redhat.com>
11817 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11818 (target_can_use_agent): Add argument.
11819 * target.c (update_current_target): Update.
11820 * remote.c (remote_can_use_agent): Add 'self' argument.
11821 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11823 2014-02-19 Tom Tromey <tromey@redhat.com>
11825 * target.h (struct target_ops) <to_use_agent>: Add argument.
11826 (target_use_agent): Add argument.
11827 * target.c (update_current_target): Update.
11828 * remote.c (remote_use_agent): Add 'self' argument.
11829 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11831 2014-02-19 Tom Tromey <tromey@redhat.com>
11833 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11834 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11835 (target_traceframe_info): Add argument.
11836 * target.c (update_current_target): Update.
11837 * remote.c (remote_traceframe_info): Add 'self' argument.
11838 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11840 2014-02-19 Tom Tromey <tromey@redhat.com>
11842 * target.h (target_static_tracepoint_markers_by_strid): Add
11844 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11846 * target.c (update_current_target): Update.
11847 * remote.c (struct target_ops)
11848 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11849 * linux-nat.c (struct target_ops)
11850 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11852 2014-02-19 Tom Tromey <tromey@redhat.com>
11854 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11856 (target_static_tracepoint_marker_at): Add argument.
11857 * target.c (update_current_target): Update.
11858 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11861 2014-02-19 Tom Tromey <tromey@redhat.com>
11863 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11864 (target_set_permissions): Add argument.
11865 * target.c (update_current_target): Update.
11866 * remote.c (remote_set_permissions): Add 'self' argument.
11867 (remote_start_remote): Update.
11869 2014-02-19 Tom Tromey <tromey@redhat.com>
11871 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11872 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11873 (target_get_tib_address): Add argument.
11874 * target.c (update_current_target): Update.
11875 * remote.c (remote_get_tib_address): Add 'self' argument.
11877 2014-02-19 Tom Tromey <tromey@redhat.com>
11879 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11880 (target_set_trace_notes): Add argument.
11881 * target.c (update_current_target): Update.
11882 * remote.c (remote_set_trace_notes): Add 'self' argument.
11884 2014-02-19 Tom Tromey <tromey@redhat.com>
11886 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11888 (target_set_trace_buffer_size): Add argument.
11889 * target.c (update_current_target): Update.
11890 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11892 2014-02-19 Tom Tromey <tromey@redhat.com>
11894 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11896 (target_set_circular_trace_buffer): Add argument.
11897 * target.c (update_current_target): Update.
11898 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11901 2014-02-19 Tom Tromey <tromey@redhat.com>
11903 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11905 (target_set_disconnected_tracing): Add argument.
11906 * target.c (update_current_target): Update.
11907 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11909 2014-02-19 Tom Tromey <tromey@redhat.com>
11911 * target.h (struct target_ops)
11912 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11913 (target_get_min_fast_tracepoint_insn_len): Add argument.
11914 * target.c (update_current_target): Update.
11915 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11918 2014-02-19 Tom Tromey <tromey@redhat.com>
11920 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11922 (target_get_raw_trace_data): Add argument.
11923 * target.c (update_current_target): Update.
11924 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11926 2014-02-19 Tom Tromey <tromey@redhat.com>
11928 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11930 (target_upload_trace_state_variables): Add argument.
11931 * target.c (update_current_target): Update.
11932 * remote.c (remote_upload_trace_state_variables): Add 'self'
11934 (remote_start_remote): Update.
11936 2014-02-19 Tom Tromey <tromey@redhat.com>
11938 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11940 (target_upload_tracepoints): Add argument.
11941 * target.c (update_current_target): Update.
11942 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11943 (remote_start_remote): Update.
11945 2014-02-19 Tom Tromey <tromey@redhat.com>
11947 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11948 (target_save_trace_data): Add argument.
11949 * target.c (update_current_target): Update.
11950 * remote.c (remote_save_trace_data): Add 'self' argument.
11952 2014-02-19 Tom Tromey <tromey@redhat.com>
11954 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11956 * target.h (struct target_ops)
11957 <to_get_trace_state_variable_value>: Add argument.
11958 (target_get_trace_state_variable_value): Add argument.
11959 * target.c (update_current_target): Update.
11960 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11962 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11964 2014-02-19 Tom Tromey <tromey@redhat.com>
11966 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11967 * target.h (struct target_ops) <to_trace_find>: Add argument.
11968 (target_trace_find): Add argument.
11969 * target.c (update_current_target): Update.
11970 * remote.c (remote_trace_find): Add 'self' argument.
11971 * ctf.c (ctf_trace_find): Add 'self' argument.
11973 2014-02-19 Tom Tromey <tromey@redhat.com>
11975 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11976 (target_trace_stop): Add argument.
11977 * target.c (update_current_target): Update.
11978 * remote.c (remote_trace_stop): Add 'self' argument.
11980 2014-02-19 Tom Tromey <tromey@redhat.com>
11982 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11983 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11985 (target_get_tracepoint_status): Add argument.
11986 * target.c (update_current_target): Update.
11987 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11989 2014-02-19 Tom Tromey <tromey@redhat.com>
11991 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11992 * target.h (struct target_ops) <to_get_trace_status>: Add
11994 (target_get_trace_status): Add argument.
11995 * target.c (update_current_target): Update.
11996 * remote.c (remote_get_trace_status): Add 'self' argument.
11997 (remote_start_remote, remote_can_download_tracepoint): Update.
11998 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12000 2014-02-19 Tom Tromey <tromey@redhat.com>
12002 * target.h (struct target_ops) <to_trace_start>: Add argument.
12003 (target_trace_start): Add argument.
12004 * target.c (update_current_target): Update.
12005 * remote.c (remote_trace_start): Add 'self' argument.
12007 2014-02-19 Tom Tromey <tromey@redhat.com>
12009 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12011 (target_trace_set_readonly_regions): Add argument.
12012 * target.c (update_current_target): Update.
12013 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12016 2014-02-19 Tom Tromey <tromey@redhat.com>
12018 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12020 (target_disable_tracepoint): Add argument.
12021 * target.c (update_current_target): Update.
12022 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12024 2014-02-19 Tom Tromey <tromey@redhat.com>
12026 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12028 (target_enable_tracepoint): Add argument.
12029 * target.c (update_current_target): Update.
12030 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12032 2014-02-19 Tom Tromey <tromey@redhat.com>
12034 * target.h (struct target_ops) <to_download_trace_state_variable>:
12036 (target_download_trace_state_variable): Add argument.
12037 * target.c (update_current_target): Update.
12038 * remote.c (remote_download_trace_state_variable): Add 'self'
12041 2014-02-19 Tom Tromey <tromey@redhat.com>
12043 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12045 (target_can_download_tracepoint): Add argument.
12046 * target.c (update_current_target): Update.
12047 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12049 2014-02-19 Tom Tromey <tromey@redhat.com>
12051 * target.h (struct target_ops) <to_download_tracepoint>: Add
12053 (target_download_tracepoint): Add argument.
12054 * target.c (update_current_target): Update.
12055 * remote.c (remote_download_tracepoint): Add 'self' argument.
12057 2014-02-19 Tom Tromey <tromey@redhat.com>
12059 * target.h (struct target_ops) <to_trace_init>: Add argument.
12060 (target_trace_init): Add argument.
12061 * target.c (update_current_target): Update.
12062 * remote.c (remote_trace_init): Add 'self' argument.
12064 2014-02-19 Tom Tromey <tromey@redhat.com>
12066 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12067 * target.c (target_fileio_readlink): Add argument.
12068 * remote.c (remote_hostio_readlink): Add 'self' argument.
12069 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12071 2014-02-19 Tom Tromey <tromey@redhat.com>
12073 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12074 * target.c (target_fileio_unlink): Add argument.
12075 * remote.c (remote_hostio_unlink): Add 'self' argument.
12076 (remote_file_delete): Update.
12077 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12079 2014-02-19 Tom Tromey <tromey@redhat.com>
12081 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12082 * target.c (target_fileio_close): Add argument.
12083 * remote.c (remote_hostio_close): Add 'self' argument.
12084 (remote_hostio_close_cleanup): Update.
12085 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12087 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12089 2014-02-19 Tom Tromey <tromey@redhat.com>
12091 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12092 * target.c (target_fileio_pread): Add argument.
12093 * remote.c (remote_hostio_pread): Add 'self' argument.
12094 (remote_bfd_iovec_pread, remote_file_get): Update.
12095 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12097 2014-02-19 Tom Tromey <tromey@redhat.com>
12099 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12100 * target.c (target_fileio_pwrite): Add argument.
12101 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12102 (remote_file_put): Update.
12103 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12105 2014-02-19 Tom Tromey <tromey@redhat.com>
12107 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12108 * target.c (target_fileio_open): Add argument.
12109 * remote.c (remote_hostio_open): Add 'self' argument.
12110 (remote_bfd_iovec_open): Add 'self' argument.
12111 (remote_file_put): Add 'self' argument.
12112 (remote_file_get): Add 'self' argument.
12113 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12115 2014-02-19 Tom Tromey <tromey@redhat.com>
12117 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12119 (target_can_run_breakpoint_commands): Add argument.
12120 * target.c (update_current_target): Update.
12121 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12123 (remote_insert_breakpoint): Add 'self' argument.
12124 (remote_insert_hw_breakpoint): Add 'self' argument.
12125 (remote_can_run_breakpoint_commands): Add 'self' argument.
12127 2014-02-19 Tom Tromey <tromey@redhat.com>
12129 * target.h (struct target_ops)
12130 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12131 (target_supports_evaluation_of_breakpoint_conditions): Add
12133 * target.c (update_current_target): Update.
12134 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12136 (remote_insert_breakpoint): Add 'self' argument.
12137 (remote_insert_hw_breakpoint): Add 'self' argument.
12138 (remote_supports_cond_breakpoints): Add 'self' argument.
12140 2014-02-19 Tom Tromey <tromey@redhat.com>
12142 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12144 (target_supports_string_tracing): Add argument.
12145 * target.c (update_current_target): Update.
12146 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12148 2014-02-19 Tom Tromey <tromey@redhat.com>
12150 * target.h (struct target_ops)
12151 <to_supports_disable_randomization>: Add argument.
12152 * target.c (find_default_supports_disable_randomization): Add
12154 (target_supports_disable_randomization): Add argument.
12155 (find_default_supports_disable_randomization): Add 'self'
12157 * remote.c (extended_remote_supports_disable_randomization): Add
12159 (remote_supports_disable_randomization): Add 'self' argument.
12160 (extended_remote_create_inferior): Update.
12161 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12164 2014-02-19 Tom Tromey <tromey@redhat.com>
12166 * target.h (struct target_ops)
12167 <to_supports_enable_disable_tracepoint>: Add argument.
12168 (target_supports_enable_disable_tracepoint): Add argument.
12169 * target.c (update_current_target): Update.
12170 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12173 2014-02-19 Tom Tromey <tromey@redhat.com>
12175 * target.h (struct target_ops) <to_supports_multi_process>: Add
12177 (target_supports_multi_process): Add argument.
12178 * target.c (update_current_target): Update.
12179 * remote.c (remote_supports_multi_process): Add 'self' argument.
12180 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12182 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12185 2014-02-19 Tom Tromey <tromey@redhat.com>
12187 * target.h (struct target_ops) <to_execution_direction>: Add
12189 (target_execution_direction): Add argument.
12190 * target.c (default_execution_direction): Add 'self' argument.
12191 * record-full.c (record_full_execution_direction): Add 'self'
12194 2014-02-19 Tom Tromey <tromey@redhat.com>
12196 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12198 (target_can_execute_reverse): Add argument.
12199 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12200 * record-full.c (record_full_can_execute_reverse): Add 'self'
12202 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12205 2014-02-19 Tom Tromey <tromey@redhat.com>
12207 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12208 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12210 (target_get_ada_task_ptid): Add argument.
12211 * target.c (update_current_target): Update.
12212 (default_get_ada_task_ptid): Add 'self' argument.
12213 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12214 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12215 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12217 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12219 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12221 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12223 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12224 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12227 2014-02-19 Tom Tromey <tromey@redhat.com>
12229 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12230 (target_goto_bookmark): Add argument.
12231 * target.c (dummy_goto_bookmark): Add 'self' argument.
12232 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12234 2014-02-19 Tom Tromey <tromey@redhat.com>
12236 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12237 (target_get_bookmark): Add argument.
12238 * target.c (dummy_get_bookmark): Add 'self' argument.
12239 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12241 2014-02-19 Tom Tromey <tromey@redhat.com>
12243 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12245 (target_make_corefile_notes): Add argument.
12246 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12247 * procfs.c (procfs_make_note_section): Add 'self' argument.
12248 (procfs_make_note_section): Add 'self' argument.
12249 (procfs_make_note_section): Add 'self' argument.
12250 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12252 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12253 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12254 * exec.c (exec_make_note_section): Add 'self' argument.
12255 (exec_make_note_section): Add 'self' argument.
12257 2014-02-19 Tom Tromey <tromey@redhat.com>
12259 * target.h (struct target_ops) <to_find_memory_regions>: Add
12261 (target_find_memory_regions): Add argument.
12262 * target.c (dummy_find_memory_regions): Add 'self' argument.
12263 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12264 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12265 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12266 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12267 * exec. (exec_do_find_memory_regions): New global.
12268 (exec_set_find_memory_regions): Rewrite.
12269 (exec_find_memory_regions): New function.
12270 (init_exec_ops): Use exec_find_memory_regions.
12272 2014-02-19 Tom Tromey <tromey@redhat.com>
12274 * target.h (struct target_ops) <to_supports_non_stop>: Add
12276 * target.c (find_default_supports_non_stop): Add argument.
12277 (target_supports_non_stop): Add argument.
12278 (find_default_supports_non_stop): Add 'self' argument.
12279 * remote.c (remote_supports_non_stop): Add 'self' argument.
12280 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12282 2014-02-19 Tom Tromey <tromey@redhat.com>
12284 * target.h (struct target_ops) <to_log_command>: Add argument.
12285 (target_log_command): Add argument.
12286 * serial.h (serial_log_command): Add 'self' argument.
12287 * serial.c (serial_log_command): Add 'self' argument.
12289 2014-02-19 Tom Tromey <tromey@redhat.com>
12291 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12292 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12294 (target_pid_to_exec_file): Add argument.
12295 * target.c (debug_to_pid_to_exec_file): Add argument.
12296 (update_current_target): Update.
12297 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12298 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12299 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12300 (linux_handle_extended_wait): Update.
12301 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12302 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12303 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12304 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12306 2014-02-19 Tom Tromey <tromey@redhat.com>
12308 * target.h (struct target_ops) <to_rcmd>: Add argument.
12309 (target_rcmd): Add argument.
12310 * target.c (debug_to_rcmd): Add argument.
12311 (update_current_target, do_monitor_command): Update.
12312 * remote.c (remote_rcmd): Add 'self' argument.
12313 * monitor.c (monitor_rcmd): Add 'self' argument.
12315 2014-02-19 Tom Tromey <tromey@redhat.com>
12317 * windows-nat.c (windows_stop): Add 'self' argument.
12318 * target.h (struct target_ops) <to_stop>: Add argument.
12319 * target.c (target_stop): Add argument.
12320 (debug_to_stop): Add argument.
12321 (update_current_target): Update.
12322 * remote.c (remote_stop): Add 'self' argument.
12323 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12324 (gdbsim_cntrl_c): Update.
12325 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12326 * procfs.c (procfs_stop): Add 'self' argument.
12327 * nto-procfs.c (procfs_stop): Add 'self' argument.
12328 * monitor.c (monitor_stop): Add 'self' argument.
12329 (monitor_open): Update.
12330 * linux-nat.c (linux_nat_stop): Add argument.
12331 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12332 * gnu-nat.c (gnu_stop): Add 'self' argument.
12333 * darwin-nat.c (darwin_stop): Add 'self' argument.
12335 2014-02-19 Tom Tromey <tromey@redhat.com>
12337 * target.h (struct target_ops) <to_thread_name>: Add argument.
12338 * target.c (target_thread_name): Add argument.
12339 (update_current_target): Update.
12340 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12342 2014-02-19 Tom Tromey <tromey@redhat.com>
12344 * target.h (struct target_ops) <to_extra_thread_info>: Add
12346 (target_extra_thread_info): Add argument.
12347 * target.c (update_current_target): Update.
12348 * remote.c (remote_threads_extra_info): Add 'self' argument.
12349 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12351 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12352 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12353 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12355 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12357 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12359 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12362 2014-02-19 Tom Tromey <tromey@redhat.com>
12364 * target.h (struct target_ops) <to_program_signals>: Add argument.
12365 * target.c (target_program_signals): Add argument.
12366 * remote.c (remote_program_signals): Add 'self' argument.
12368 2014-02-19 Tom Tromey <tromey@redhat.com>
12370 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12371 * target.c (target_pass_signals): Add argument.
12372 * remote.c (remote_pass_signals): Add 'self' argument.
12373 (remote_start_remote): Update.
12374 * procfs.c (procfs_pass_signals): Add 'self' argument.
12375 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12376 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12377 (linux_nat_create_inferior, linux_nat_attach): Update.
12379 2014-02-19 Tom Tromey <tromey@redhat.com>
12381 * windows-nat.c (windows_can_run): Add 'self' argument.
12382 * target.h (struct target_ops) <to_can_run>: Add argument.
12383 (target_can_run): Add argument.
12384 * target.c (debug_to_can_run): Add argument.
12385 (update_current_target): Update.
12386 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12387 * inf-child.c (inf_child_can_run): Add 'self' argument.
12388 * go32-nat.c (go32_can_run): Add 'self' argument.
12390 2014-02-19 Tom Tromey <tromey@redhat.com>
12392 * target.h (struct target_ops) <to_has_exited>: Add argument.
12393 (target_has_exited): Add argument.
12394 * target.c (debug_to_has_exited): Add argument.
12395 (update_current_target): Update.
12397 2014-02-19 Tom Tromey <tromey@redhat.com>
12399 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12401 (target_set_syscall_catchpoint): Add argument.
12402 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12404 * target.c (update_current_target): Update.
12406 2014-02-19 Tom Tromey <tromey@redhat.com>
12408 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12410 (target_remove_exec_catchpoint): Add argument.
12411 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12412 (update_current_target): Update.
12413 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12416 2014-02-19 Tom Tromey <tromey@redhat.com>
12418 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12420 (target_insert_exec_catchpoint): Add argument.
12421 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12422 (update_current_target): Update.
12423 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12426 2014-02-19 Tom Tromey <tromey@redhat.com>
12428 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12430 (target_remove_vfork_catchpoint): Add argument.
12431 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12432 (update_current_target): Update.
12433 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12436 2014-02-19 Tom Tromey <tromey@redhat.com>
12438 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12440 (target_insert_vfork_catchpoint): Add argument.
12441 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12442 (update_current_target): Update.
12443 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12446 2014-02-19 Tom Tromey <tromey@redhat.com>
12448 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12450 (target_remove_fork_catchpoint): Add argument.
12451 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12452 (update_current_target): Update.
12453 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12456 2014-02-19 Tom Tromey <tromey@redhat.com>
12458 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12460 (target_insert_fork_catchpoint): Add argument.
12461 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12462 (update_current_target): Update.
12463 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12466 2014-02-19 Tom Tromey <tromey@redhat.com>
12468 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12470 (target_post_startup_inferior): Add argument.
12471 * target.c (debug_to_post_startup_inferior): Add argument.
12472 (update_current_target): Update.
12473 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12475 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12477 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12479 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12481 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12483 (super_post_startup_inferior): Likewise.
12484 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12486 (super_post_startup_inferior): Likewise.
12487 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12488 Add 'self' argument.
12489 (super_post_startup_inferior): Likewise.
12491 2014-02-19 Tom Tromey <tromey@redhat.com>
12493 * target.h (struct target_ops) <to_load>: Add argument.
12494 * target.c (target_load): Add argument.
12495 (debug_to_load): Add argument.
12496 (update_current_target): Update.
12497 * remote.c (remote_load): Add 'self' argument.
12498 * remote-sim.c (gdbsim_load): Add 'self' argument.
12499 * remote-mips.c (mips_load): Add 'self' argument.
12500 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12501 * monitor.c (monitor_load): Add 'self' argument.
12502 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12504 2014-02-19 Tom Tromey <tromey@redhat.com>
12506 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12507 (target_terminal_info): Add argument.
12508 * target.c (debug_to_terminal_info): Add argument.
12509 (default_terminal_info): Likewise.
12510 * inflow.c (child_terminal_info): Add 'self' argument.
12511 * inferior.h (child_terminal_info): Add 'self' argument.
12512 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12514 2014-02-19 Tom Tromey <tromey@redhat.com>
12516 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12518 (target_terminal_save_ours): Add argument.
12519 * target.c (debug_to_terminal_save_ours): Add argument.
12520 (update_current_target): Update.
12521 * inflow.c (terminal_save_ours): Add 'self' argument.
12522 * inferior.h (terminal_save_ours): Add 'self' argument.
12524 2014-02-19 Tom Tromey <tromey@redhat.com>
12526 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12527 (target_terminal_ours): Add argument.
12528 * target.c (debug_to_terminal_ours): Add argument.
12529 (update_current_target): Update.
12530 * remote.c (remote_terminal_ours): Add 'self' argument.
12531 (remote_close): Update.
12532 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12533 * inflow.c (terminal_ours): Add 'self' argument.
12534 * inferior.h (terminal_ours): Add 'self' argument.
12535 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12537 2014-02-19 Pedro Alves <palves@redhat.com>
12538 Tom Tromey <tromey@redhat.com>
12540 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12542 (target_terminal_ours_for_output): Add argument.
12543 * target.c (debug_to_terminal_ours_for_output): Add argument.
12544 (update_current_target): Update.
12545 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12546 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12547 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12549 2014-02-19 Tom Tromey <tromey@redhat.com>
12551 * target.h (struct target_ops) <to_terminal_inferior>: Add
12553 * target.c (target_terminal_inferior): Add argument.
12554 (update_current_target): Update.
12555 * remote.c (remote_terminal_inferior): Add 'self' argument.
12556 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12557 * inflow.c (terminal_inferior): Add 'self' argument.
12558 * inferior.h (terminal_inferior): Add 'self' argument.
12559 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12560 (go32_terminal_inferior): Add 'self' argument.
12562 2014-02-19 Tom Tromey <tromey@redhat.com>
12564 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12565 (target_terminal_init): Add argument.
12566 * target.c (debug_to_terminal_init): Add argument.
12567 (update_current_target): Update.
12568 * inflow.c (terminal_init_inferior): Add 'self' argument.
12569 * inferior.h (terminal_init_inferior): Add 'self' argument.
12570 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12571 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12573 2014-02-19 Tom Tromey <tromey@redhat.com>
12575 * target.h (struct target_ops)
12576 <to_can_accel_watchpoint_condition>: Add argument.
12577 (target_can_accel_watchpoint_condition): Add argument.
12578 * target.c (debug_to_can_accel_watchpoint_condition): Add
12580 (update_current_target): Update.
12581 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12584 2014-02-19 Tom Tromey <tromey@redhat.com>
12586 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12588 (target_region_ok_for_hw_watchpoint): Add argument.
12589 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12590 (default_region_ok_for_hw_watchpoint): Add argument.
12591 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12592 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12594 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12596 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12598 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12600 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12602 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12604 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12605 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12607 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12608 Add 'self' argument.
12610 2014-02-19 Tom Tromey <tromey@redhat.com>
12612 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12614 (target_insert_watchpoint): Add argument.
12615 * target.c (debug_to_insert_watchpoint): Add argument.
12616 (update_current_target): Update.
12617 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12618 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12619 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12620 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12621 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12622 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12624 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12625 (procfs_insert_hw_watchpoint): Add 'self' argument.
12626 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12628 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12630 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12632 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12633 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12635 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12638 2014-02-19 Tom Tromey <tromey@redhat.com>
12640 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12642 (target_remove_watchpoint): Add argument.
12643 * target.c (debug_to_remove_watchpoint): Add argument.
12644 (update_current_target): Update.
12645 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12646 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12647 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12648 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12649 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12650 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12652 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12653 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12655 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12657 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12659 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12660 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12662 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12665 2014-02-19 Tom Tromey <tromey@redhat.com>
12667 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12669 (target_remove_hw_breakpoint): Add argument.
12670 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12671 (update_current_target): Update.
12672 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12673 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12675 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12676 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12678 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12681 2014-02-19 Tom Tromey <tromey@redhat.com>
12683 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12685 (target_insert_hw_breakpoint): Add argument.
12686 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12687 (update_current_target): Update.
12688 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12689 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12691 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12692 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12693 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12695 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12698 2014-02-19 Tom Tromey <tromey@redhat.com>
12700 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12702 (target_can_use_hardware_watchpoint): Add argument.
12703 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12704 (update_current_target): Update.
12705 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12707 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12709 * remote.c (remote_check_watch_resources): Add 'self' argument.
12710 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12711 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12713 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12714 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12716 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12718 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12720 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12722 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12724 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12726 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12727 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12729 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12732 2014-02-19 Tom Tromey <tromey@redhat.com>
12734 * target.h (struct target_ops) <to_post_attach>: Add argument.
12735 (target_post_attach): Add argument.
12736 * target.c (debug_to_post_attach): Add argument.
12737 (update_current_target): Update.
12738 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12739 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12740 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12741 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12742 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12744 2014-02-19 Tom Tromey <tromey@redhat.com>
12746 * windows-nat.c (windows_close): Add 'self' argument.
12747 * tracepoint.c (tfile_close): Add 'self' argument.
12748 * target.h (struct target_ops) <to_close>: Add argument.
12749 * target.c (target_close): Add argument.
12750 (update_current_target): Update.
12751 * remote.c (remote_close): Add 'self' argument.
12752 * remote-sim.c (gdbsim_close): Add 'self' argument.
12753 * remote-mips.c (mips_close): Add 'self' argument.
12754 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12755 * record-full.c (record_full_close): Add 'self' argument.
12756 * record-btrace.c (record_btrace_close): Add 'self' argument.
12757 * monitor.h (monitor_close): Add 'self' argument.
12758 * monitor.c (monitor_close): Add 'self' argument.
12759 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12760 * linux-nat.c (linux_nat_close): Add argument.
12761 * go32-nat.c (go32_close): Add 'self' argument.
12762 * exec.c (exec_close_1): Add 'self' argument.
12763 * ctf.c (ctf_close): Add 'self' argument.
12764 * corelow.c (core_close): Add 'self' argument.
12765 (core_close_cleanup): Update.
12766 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12767 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12769 2014-02-19 Tom Tromey <tromey@redhat.com>
12771 * remote.c (remote_load): New function.
12772 (init_remote_ops): Use it.
12774 2014-02-19 Tom Tromey <tromey@redhat.com>
12776 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12778 * common/linux-btrace.h (linux_supports_btrace): Update.
12779 * remote.c (remote_supports_btrace): Add "self" argument.
12780 * target-delegates.c: Rebuild.
12781 * target.c (target_supports_btrace): Remove.
12782 * target.h (struct target_ops) <to_supports_btrace>: Add
12783 target_ops argument.
12784 (target_supports_btrace): New define.
12786 2014-02-19 Tom Tromey <tromey@redhat.com>
12788 * record-full.c (record_full_beneath_to_resume_ops)
12789 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12790 (record_full_beneath_to_wait)
12791 (record_full_beneath_to_store_registers_ops)
12792 (record_full_beneath_to_store_registers)
12793 (record_full_beneath_to_xfer_partial_ops)
12794 (record_full_beneath_to_xfer_partial)
12795 (record_full_beneath_to_insert_breakpoint_ops)
12796 (record_full_beneath_to_insert_breakpoint)
12797 (record_full_beneath_to_remove_breakpoint_ops)
12798 (record_full_beneath_to_remove_breakpoint)
12799 (record_full_beneath_to_stopped_by_watchpoint)
12800 (record_full_beneath_to_stopped_data_address)
12801 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12802 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12803 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12804 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12805 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12806 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12807 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12808 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12809 (record_full_resume, record_full_wait_1)
12810 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12811 (record_full_store_registers, record_full_xfer_partial)
12812 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12813 (record_full_async, record_full_core_xfer_partial): Use target
12815 * target-delegates.c: Rebuild.
12816 * target.c (current_xfer_partial): Remove.
12817 (update_current_target): Do not INHERIT or de_fault
12818 to_insert_breakpoint, to_remove_breakpoint,
12819 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12820 to_is_async_p, to_async. Do not set to_xfer_partial field.
12821 (default_xfer_partial): Simplify.
12822 (current_xfer_partial): Remove.
12823 (target_wait, target_resume): Simplify.
12824 (find_default_can_async_p, find_default_is_async_p): Update.
12825 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12826 to_xfer_partial, to_stopped_by_watchpoint,
12827 to_stopped_data_address.
12828 (target_store_registers): Simplify.
12829 (forward_target_remove_breakpoint)
12830 (forward_target_insert_breakpoint): Remove.
12831 (target_remove_breakpoint, target_insert_breakpoint)
12832 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12833 * target.h (struct target_ops) <to_resume, to_wait,
12834 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12835 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12836 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12838 (forward_target_remove_breakpoint)
12839 (forward_target_insert_breakpoint): Remove.
12840 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12842 (record_btrace_insert_breakpoint): Delegate directly.
12844 2014-02-19 Tom Tromey <tromey@redhat.com>
12847 * target-delegates.c: New file.
12848 * target.c: Include target-delegates.c.
12849 (init_dummy_target): Call install_dummy_methods.
12850 (complete_target_initialization): Call install_delegators.
12851 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12852 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12853 * make-target-delegates: New file.
12855 2014-02-19 Tom Tromey <tromey@redhat.com>
12857 * record.c (find_record_target): Use find_target_at.
12858 * target.c (find_target_at): New function.
12859 * target.h (find_target_at): Declare.
12861 2014-02-19 Tom Tromey <tromey@redhat.com>
12863 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12864 Add 'ops' argument.
12865 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12867 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12868 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12870 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12872 * linux-nat.c (save_sigtrap): Update.
12873 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12874 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12875 (linux_nat_close): Update.
12876 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12878 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12880 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12881 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12882 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12883 (tmp_to_async): Add 'ops' argument.
12884 (record_full_stopped_by_watchpoint, record_full_async)
12885 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12887 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12888 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12889 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12890 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12891 (remote_is_async_p, remote_async): Add 'ops' argument.
12892 (remote_stopped_data_address): Update.
12893 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12894 * target.c (update_current_target)
12895 (find_default_can_async_p, find_default_is_async_p): Update.
12896 (init_dummy_target): Update.
12897 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12898 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12899 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12900 (target_can_async_p, target_is_async_p, target_async)
12901 (target_stopped_by_watchpoint): Update.
12903 2014-02-19 Yao Qi <yao@codesourcery.com>
12906 * gdbarch.sh: Remove startup_gdbarch.
12907 * gdbarch.c: Regenerated.
12908 * gdbarch.h: Likewise.
12910 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12912 * rl78-tdep.c (rl78_g10_register_name): New function.
12913 (rl78_return_value): Add g10 support.
12914 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12917 2014-02-17 Doug Evans <xdje42@gmail.com>
12919 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12920 (SUBDIR_GUILE_SRCS): Ditto.
12921 (scm-gsmob.o): Ditto.
12923 2014-02-17 Yao Qi <yao@codesourcery.com>
12925 * gnu-nat.c (ILL_RPC): Declare defined function.
12927 2014-02-17 Yao Qi <yao@codesourcery.com>
12929 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12930 mach_msg_type_number_t.
12931 (gnu_write_inferior): Likewise.
12933 2014-02-17 Yao Qi <yao@codesourcery.com>
12935 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12937 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12938 (inf_validate_procs, inf_signal): Likewise.
12939 (S_exception_raise_request): Likewise.
12940 (do_mach_notify_dead_name): Likewise.
12941 (steal_exc_port): Likewise.
12942 (gnu_read_inferior): Change 'copy_count''s type to
12943 mach_msg_type_number_t.
12944 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12947 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12949 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12950 flag. Adjust all users; in particular...
12951 (gnu_wait): ..., don't decrement its value in here...
12952 (gnu_create_inferior): ..., and instead set the flag in here,
12953 around the startup_inferior call, and call that one with
12954 START_INFERIOR_TRAPS_EXPECTED.
12956 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12957 (ILL_RPC): ... new macro.
12958 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12959 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12960 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12961 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12962 functions with ILL_RPC macro.
12963 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12964 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12965 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12966 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12967 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12968 (S_proc_getlogin_reply, S_proc_getsid_reply)
12969 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12970 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12971 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12972 (S_proc_getnports_reply, S_proc_is_important_reply)
12973 (S_proc_get_code_reply): New stub functions, generated with
12976 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12977 collected the type check structures.
12979 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12981 2014-02-14 Doug Evans <dje@google.com>
12983 * target.c (target_write_partial): Fix result type.
12985 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12987 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12988 the proper offsets to access fpregset_t.
12990 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12992 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12993 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12994 * h8300-tdep.c (setmachinelist): Remove global.
12995 * hppa-tdep.c (hppa_sigtramp): Remove global.
12996 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12997 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12998 * ravenscar-thread.c (update_target_observer): Remove global.
12999 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13001 2014-02-12 Tom Tromey <tromey@redhat.com>
13003 * common/rsp-low.c: Update comments.
13004 * common/rsp-low.h: Update comments.
13006 2014-02-12 Tom Tromey <tromey@redhat.com>
13008 * common/rsp-low.c (convert_ascii_to_int): Remove.
13009 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13011 2014-02-12 Tom Tromey <tromey@redhat.com>
13013 * common/rsp-low.h (unhexify): Don't declare.
13014 * common/rsp-low.c (unhexify): Remove.
13016 2014-02-12 Tom Tromey <tromey@redhat.com>
13018 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13019 * common/rsp-low.c (convert_int_to_ascii): Remove.
13021 2014-02-12 Tom Tromey <tromey@redhat.com>
13023 * common/rsp-low.h (hexify): Don't declare.
13024 * common/rsp-low.c (hexify): Remove.
13026 2014-02-12 Tom Tromey <tromey@redhat.com>
13028 * common/rsp-low.c (hexify): Never take strlen of argument.
13030 2014-02-12 Tom Tromey <tromey@redhat.com>
13032 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13033 * remote.c (extended_remote_run, remote_rcmd)
13034 (remote_download_trace_state_variable, remote_save_trace_data)
13035 (remote_set_trace_notes): Update.
13036 * tracepoint.c (encode_source_string, tfile_write_status)
13037 (tfile_write_uploaded_tsv): Update.
13039 2014-02-12 Tom Tromey <tromey@redhat.com>
13041 * tracepoint.c: Include rsp-low.h.
13042 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13043 * remote.c: Include rsp-low.h.
13044 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13045 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13046 (remote_unescape_input): Move to common/rsp-low.c.
13047 * common/rsp-low.h: New file.
13048 * common/rsp-low.c: New file.
13049 * Makefile.in (SFILES): Add common/rsp-low.c.
13050 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13051 (COMMON_OBS): Add rsp-low.o.
13052 (rsp-low.o): New target.
13054 2014-02-12 Tom Tromey <tromey@redhat.com>
13056 * utils.h: Include print-utils.h.
13057 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13058 (int_string, core_addr_to_string, core_addr_to_string_nz)
13059 (hex_string, hex_string_custom): Don't declare.
13060 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13061 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13062 (hex_string_custom, int_string, core_addr_to_string)
13063 (core_addr_to_string_nz, host_address_to_string): Move to
13064 common/print-utils.c.
13065 * common/print-utils.h: New file.
13066 * common/print-utils.c: New file
13067 * Makefile.in (SFILES): Add common/print-utils.c.
13068 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13069 (COMMON_OBS): Add print-utils.o.
13070 (print-utils.o): New target.
13072 2014-02-12 Tom Tromey <tromey@redhat.com>
13074 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13076 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13078 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13080 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13082 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13083 if a PT_IO ptrace request returns sucessfully but indicates that 0
13084 bytes were transferred.
13086 2014-02-12 Pedro Alves <palves@redhat.com>
13087 Kevin Buettner <kevinb@redhat.com>
13089 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13090 TYPE_INSTANCE_FLAG_CODE_SPACE.
13092 2014-02-12 Pedro Alves <palves@redhat.com>
13094 * h8300-tdep.c (pseudo_from_raw_register)
13095 (raw_from_pseudo_register): New functions.
13096 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13099 2014-02-12 Pedro Alves <palves@redhat.com>
13101 * h8300-tdep.c (h8300_register_sim_regno): New function.
13102 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13103 gdbarch_register_sim_regno hook.
13105 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13107 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13109 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13111 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13113 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13115 * obsd-tdep.h (obsd_init_abi): New prototype.
13116 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13117 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13118 (obsd_init_abi): New functions.
13119 * i386obsd-tdep.c: Include "obsd-tdep.h".
13120 (i386obsd_init_abi): Call obsd_init_abi.
13121 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13122 (amd64obsd_init_abi): Call obsd_init_abi.
13123 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13124 obsd-tdep.c to gdb_target_obs.
13126 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13128 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13129 double float arguments to 16-byte in the argument slots.
13131 2014-02-11 Doug Evans <xdje42@gmail.com>
13133 * configure.ac: Don't crash if pkg-config is not found and guile
13134 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13136 * configure: Regenerate.
13138 2014-02-11 Yao Qi <yao@codesourcery.com>
13140 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13141 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13142 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13143 * gnu-nat.c (gnu_xfer_memory): Likewise.
13144 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13145 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13146 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13147 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13149 2014-02-11 Yao Qi <yao@codesourcery.com>
13151 * target.h (enum target_xfer_error): Rename to ...
13152 (enum target_xfer_status): ... it. New. All users updated.
13153 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13155 (TARGET_XFER_STATUS_ERROR_P): New macro.
13156 (target_xfer_error_to_string): Remove declaration.
13157 (target_xfer_status_to_string): Declare.
13158 (target_xfer_partial_ftype): Adjust it.
13159 (struct target_ops) <to_xfer_partial>: Return
13160 target_xfer_status. Add argument xfered_len. Update
13162 * target.c (target_xfer_error_to_string): Rename to ...
13163 (target_xfer_status_to_string): ... it. New. All callers
13165 (target_read_live_memory): Likewise. Call target_xfer_partial
13166 instead of target_read.
13167 (memory_xfer_live_readonly_partial): Return
13168 target_xfer_status. Add argument xfered_len.
13169 (raw_memory_xfer_partial): Likewise.
13170 (memory_xfer_partial_1): Likewise.
13171 (memory_xfer_partial): Likewise.
13172 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13173 properly. Update debug message.
13174 (default_xfer_partial, current_xfer_partial): Likewise.
13175 (target_write_partial): Likewise.
13176 (target_read_partial): Likewise. All callers updated.
13177 (read_whatever_is_readable): Likewise.
13178 (target_write_with_progress): Likewise.
13179 (target_read_alloc_1): Likewise.
13181 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13182 * auxv.c (procfs_xfer_auxv): Likewise.
13183 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13184 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13185 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13186 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13187 * corefile.c (read_memory): Adjust.
13188 * corelow.c (core_xfer_partial): Likewise.
13189 * ctf.c (ctf_xfer_partial): Likewise.
13190 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13192 (darwin_xfer_partial): Likewise.
13193 * exec.c (section_table_xfer_memory_partial): Likewise. All
13195 (exec_xfer_partial): Likewise.
13196 * exec.h (section_table_xfer_memory_partial): Update
13198 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13200 (gnu_xfer_partial): Likewise.
13201 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13202 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13203 (ia64_hpux_xfer_solib_got): Likewise.
13204 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13205 type of 'partial_len' to ULONGEST.
13206 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13207 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13208 (linux_nat_xfer_partial): Likewise.
13209 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13210 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13211 * monitor.c (monitor_xfer_memory): Likewise.
13212 (monitor_xfer_partial): Likewise.
13213 * procfs.c (procfs_xfer_partial): Likewise.
13214 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13215 * record-full.c (record_full_xfer_partial): Likewise.
13216 (record_full_core_xfer_partial): Likewise.
13217 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13218 (gdbsim_xfer_partial): Likewise.
13219 * remote.c (remote_write_bytes_aux): Likewise. All callers
13221 (remote_write_bytes, remote_read_bytes): Likewise. All
13223 (remote_flash_erase): Likewise. All callers updated.
13224 (remote_write_qxfer): Likewise. All callers updated.
13225 (remote_read_qxfer): Likewise. All callers updated.
13226 (remote_xfer_partial): Likewise.
13227 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13228 (rs6000_xfer_shared_libraries): Likewise.
13229 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13230 (sol_thread_xfer_partial): Likewise.
13231 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13232 (sparc_xfer_partial): Likewise.
13233 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13235 (spu_xfer_partial): Likewise.
13236 * spu-multiarch.c (spu_xfer_partial): Likewise.
13237 * tracepoint.c (tfile_xfer_partial): Likewise.
13238 * windows-nat.c (windows_xfer_memory): Likewise.
13239 (windows_xfer_shared_libraries): Likewise.
13240 (windows_xfer_partial): Likewise.
13241 * valprint.c: Replace 'target_xfer_error' with
13242 'target_xfer_status' in comments.
13244 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13246 Checked in by Joel Brobecker <brobecker@adacore.com>.
13247 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13249 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13251 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13252 function parameters.
13254 2014-02-10 Will Newton <will.newton@linaro.org>
13256 * elfread.c (elf_rel_plt_read): Look for a .got section if
13257 looking up .got.plt fails.
13258 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13259 on address passed to elf_gnu_ifunc_record_cache.
13260 (elf_gnu_ifunc_resolve_addr): Likewise.
13261 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13263 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13265 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13266 (X_RETTURN): New macro.
13267 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13269 * sparc64-tdep.c (sparc64_init_abi): Hook
13270 sparc_in_function_epilogue_p.
13272 2014-02-10 Gary Benson <gbenson@redhat.com>
13274 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13275 Rename name_matcher to symbol_matcher.
13277 2014-02-10 Gary Benson <gbenson@redhat.com>
13279 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13280 Use expand_symtabs_file_matcher_ftype and
13281 expand_symtabs_symbol_matcher_ftype.
13283 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13285 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13286 (struct ada_symbol_cache): New.
13287 (ada_free_symbol_cache): Forward declare.
13288 (struct ada_pspace_data): New.
13289 (ada_pspace_data_handle): New static global.
13290 (get_ada_pspace_data, ada_pspace_data_cleanup)
13291 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13292 (cache_space, cache): Delete, now folded inside struct
13294 (ada_get_symbol_cache): New function.
13295 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13297 (_initialize_ada_language): Remove initialization of cache_space.
13298 Move call to observer_attach_inferior_exit up, grouping it
13299 with the other observer registrations inside this function.
13300 Rename command to be more general. Add call to
13301 register_program_space_data_with_cleanup.
13303 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13305 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13306 ada_new_objfile_observer.
13307 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13308 (_initialize_tasks): Update uses of ada_new_objfile_observer
13309 and ada_tasks_normal_stop_observer.
13311 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13313 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13314 returned by the 'Length attribute to integer.
13316 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13318 * ada-lang.c (_initialize_ada_language): Initialize
13319 cache_space obstack.
13321 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13323 * ada-lang.c (HASH_SIZE): New macro.
13324 (struct cache_entry): New type.
13325 (cache_space, cache): New static globals.
13326 (ada_clear_symbol_cache, find_entry): New functions.
13327 (lookup_cached_symbol, cache_symbol): Implement.
13328 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13329 (_initialize_ada_language): Attach ada_new_objfile_observer
13330 and ada_free_objfile_observer.
13332 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13334 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13335 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13336 struct block * parameter.
13337 (ada_lookup_symbol_list_worker): Constify local variable "block".
13338 Remove cast which is no longer necessary.
13340 2014-02-10 Doug Evans <xdje42@gmail.com>
13342 Add Guile as an extension language.
13343 * NEWS: Mention Guile scripting.
13344 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13345 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13346 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13347 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13348 (CLIBS): Add GUILE_LIBS.
13349 (install-guile): New rule.
13350 (guile.o): New rule.
13351 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13352 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13353 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13354 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13355 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13356 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13357 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13358 * configure.ac: New option --with-guile.
13359 * configure: Regenerate.
13360 * config.in: Regenerate.
13361 * auto-load.c: Remove #include "python/python.h". Add #include
13362 "gdb/section-scripts.h".
13363 (source_section_scripts): Handle Guile scripts.
13364 (_initialize_auto_load): Add name of Guile objfile script to
13365 scripts-directory help text.
13366 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13367 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13368 (struct breakpoint): New member scm_bp_object.
13369 * defs.h (enum command_control_type): New value guile_control.
13370 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13372 (show_user): Update comment.
13373 (_initialize_cli_cmds): Update help text for "show user". Update help
13374 text for max-user-call-depth.
13375 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13377 (multi_line_command_p): Add guile_control.
13378 (print_command_lines): Handle guile_control.
13379 (execute_control_command, recurse_read_control_structure): Ditto.
13380 (process_next_line): Recognize "guile" commands.
13381 * disasm.c (gdb_disassemble_info): Make non-static.
13382 * disasm.h: #include "dis-asm.h".
13383 (struct gdbarch): Add forward decl.
13384 (gdb_disassemble_info): Declare.
13385 * extension.c: #include "guile/guile.h".
13386 (extension_languages): Add guile.
13387 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13388 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13389 * gdbtypes.c (get_unsigned_type_max): New function.
13390 (get_signed_type_minmax): New function.
13391 * gdbtypes.h (get_unsigned_type_max): Declare.
13392 (get_signed_type_minmax): Declare.
13393 * guile/README: New file.
13394 * guile/guile-internal.h: New file.
13395 * guile/guile.c: New file.
13396 * guile/guile.h: New file.
13397 * guile/scm-arch.c: New file.
13398 * guile/scm-auto-load.c: New file.
13399 * guile/scm-block.c: New file.
13400 * guile/scm-breakpoint.c: New file.
13401 * guile/scm-disasm.c: New file.
13402 * guile/scm-exception.c: New file.
13403 * guile/scm-frame.c: New file.
13404 * guile/scm-gsmob.c: New file.
13405 * guile/scm-iterator.c: New file.
13406 * guile/scm-lazy-string.c: New file.
13407 * guile/scm-math.c: New file.
13408 * guile/scm-objfile.c: New file.
13409 * guile/scm-ports.c: New file.
13410 * guile/scm-pretty-print.c: New file.
13411 * guile/scm-safe-call.c: New file.
13412 * guile/scm-string.c: New file.
13413 * guile/scm-symbol.c: New file.
13414 * guile/scm-symtab.c: New file.
13415 * guile/scm-type.c: New file.
13416 * guile/scm-utils.c: New file.
13417 * guile/scm-value.c: New file.
13418 * guile/lib/gdb.scm: New file.
13419 * guile/lib/gdb/boot.scm: New file.
13420 * guile/lib/gdb/experimental.scm: New file.
13421 * guile/lib/gdb/init.scm: New file.
13422 * guile/lib/gdb/iterator.scm: New file.
13423 * guile/lib/gdb/printing.scm: New file.
13424 * guile/lib/gdb/types.scm: New file.
13425 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13426 (VPATH): Add $(GUILE_SRCDIR).
13427 (GUILE_DIR): New variable.
13428 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13429 (all): Add stamp-guile dependency.
13430 (stamp-guile): New rule.
13431 (clean-guile, install-guile, uninstall-guile): New rules.
13432 (install-only): Add install-guile dependency.
13433 (uninstall): Add uninstall-guile dependency.
13434 (clean): Add clean-guile dependency.
13436 2014-02-09 Doug Evans <xdje42@gmail.com>
13438 Revert this patch (which I approved, mea culpa).
13440 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13442 * Makefile.in (all-lib): Remove.
13443 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13445 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13447 Fix Python stack corruption.
13448 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13451 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13453 * Makefile.in (all-lib): Remove.
13454 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13456 2014-02-07 Doug Evans <dje@google.com>
13458 * extension-priv.h (extension_language_script_ops): Add comment.
13459 (extension_language_ops): Add comment.
13460 (active_ext_lang_state): Fix typo in comment.
13462 2014-02-07 Pedro Alves <palves@redhat.com>
13464 PR breakpoints/16292
13465 * infrun.c (handle_signal_stop) <signal arrives while stepping
13466 over a breakpoint>: Switch back to the stepping thread.
13468 2014-02-07 Yao Qi <yao@codesourcery.com>
13470 * target.c (target_xfer_partial): Return zero if LEN is zero.
13472 2014-02-07 Yao Qi <yao@codesourcery.com>
13474 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13475 (ld_so_xfer_auxv): Likewise.
13476 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13477 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13478 * corelow.c (core_xfer_partial): Likewise.
13479 * ctf.c (ctf_xfer_partial): Likewise.
13480 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13481 (darwin_xfer_partial): Likewise.
13482 * exec.c (exec_xfer_partial): Likewise.
13483 * gnu-nat.c (gnu_xfer_partial): Likewise.
13484 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13485 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13486 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13487 * linux-nat.c (linux_xfer_siginfo): Likewise.
13488 (linux_proc_xfer_spu): Likewise.
13489 * procfs.c (procfs_xfer_partial): Likewise.
13490 * record-full.c (record_full_xfer_partial): Likewise.
13491 (record_full_core_xfer_partial): Likewise.
13492 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13493 * remote.c (remote_write_qxfer): Likewise.
13494 (remote_write_qxfer, remote_read_qxfer): Likewise.
13495 (remote_xfer_partial): Likewise.
13496 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13497 (rs6000_xfer_shared_libraries): Likewise.
13498 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13499 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13500 (spu_xfer_partial): Likewise.
13501 * target.c (memory_xfer_partial_1): Likewise.
13502 * tracepoint.c (tfile_xfer_partial): Likewise.
13503 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13504 (windows_xfer_partial): Likewise.
13506 2014-02-07 Yao Qi <yao@codesourcery.com>
13508 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13510 (core_xfer_shared_libraries_aix): Likewise.
13511 * gdbarch.c, gdbarch.h: Regenerated.
13512 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13513 ULONGEST. Change 'len_avail' type to ULONGEST.
13514 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13515 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13517 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13519 2014-02-07 Yao Qi <yao@codesourcery.com>
13521 * corefile.c (memory_error): Get 'exception' from ERR and pass
13522 'exception' to throw_error.
13524 2014-02-06 Doug Evans <xdje42@gmail.com>
13526 * configure.ac (libpython checking): Remove all but python.o from
13527 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13528 * configure: Regenerate.
13530 * Makefile.in (SFILES): Add extension.c.
13531 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13532 (COMMON_OBS): Add extension.o.
13533 * extension.h: New file.
13534 * extension-priv.h: New file.
13535 * extension.c: New file.
13537 * python/python-internal.h: #include "extension.h".
13538 (gdbpy_auto_load_enabled): Declare.
13539 (gdbpy_apply_val_pretty_printer): Declare.
13540 (gdbpy_apply_frame_filter): Declare.
13541 (gdbpy_preserve_values): Declare.
13542 (gdbpy_breakpoint_cond_says_stop): Declare.
13543 (gdbpy_breakpoint_has_cond): Declare.
13544 (void source_python_script_for_objfile): Delete.
13545 * python/python.c: #include "extension-priv.h".
13546 Delete inclusion of "observer.h".
13547 (extension_language_python): Moved here and renamed from
13548 script_language_python in py-auto-load.c.
13549 Redefined to be of type extension_language_defn.
13550 (python_extension_script_ops): New global.
13551 (python_extension_ops): New global.
13552 (struct python_env): New member previous_active.
13553 (restore_python_env): Call restore_active_ext_lang.
13554 (ensure_python_env): Call set_active_ext_lang.
13555 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13557 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13559 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13561 (gdbpy_eval_from_control_command): Renamed from
13562 eval_python_from_control_command, made static. New arg extlang.
13563 (gdbpy_source_script) Renamed from source_python_script, made static.
13565 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13566 result to int. New arg extlang.
13567 (gdbpy_source_objfile_script): Renamed from
13568 source_python_script_for_objfile, made static. New arg extlang.
13569 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13570 static. New args extlang, extlang_printers. Change result type to
13572 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13573 static. New arg extlang. Rename arg printers to extlang_printers
13574 and change type to ext_lang_type_printers *.
13575 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13576 static. Replace argument arg with extlang, extlang_printers.
13577 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13578 (!HAVE_PYTHON, source_python_script): Delete.
13579 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13580 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13581 (!HAVE_PYTHON, start_type_printers): Delete.
13582 (!HAVE_PYTHON, apply_type_printers): Delete.
13583 (!HAVE_PYTHON, free_type_printers): Delete.
13584 (_initialize_python): Delete call to observer_attach_before_prompt.
13585 (finalize_python): Set/restore active extension language.
13586 (gdbpy_finish_initialization) Renamed from
13587 finish_python_initialization, made static. New arg extlang.
13588 (gdbpy_initialized): New function.
13589 * python/python.h: #include "extension.h". Delete #include
13590 "value.h", "mi/mi-cmds.h".
13591 (extension_language_python): Declare.
13592 (GDBPY_AUTO_FILE_NAME): Delete.
13593 (enum py_bt_status): Moved to extension.h and renamed to
13594 ext_lang_bt_status.
13595 (enum frame_filter_flags): Moved to extension.h.
13596 (enum py_frame_args): Moved to extension.h and renamed to
13597 ext_lang_frame_args.
13598 (finish_python_initialization): Delete.
13599 (eval_python_from_control_command): Delete.
13600 (source_python_script): Delete.
13601 (apply_val_pretty_printer): Delete.
13602 (apply_frame_filter): Delete.
13603 (preserve_python_values): Delete.
13604 (gdbpy_script_language_defn): Delete.
13605 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13606 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13608 * auto-load.c: #include "extension.h".
13609 (GDB_AUTO_FILE_NAME): Delete.
13610 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13611 (script_language_gdb): Delete, moved to extension.c and renamed to
13612 extension_language_gdb.
13613 (source_gdb_script_for_objfile): Delete.
13614 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13615 (loaded_script): Change type of language member to
13616 struct extension_language_defn *.
13617 (init_loaded_scripts_info): Initialize
13618 unsupported_script_warning_printed.
13619 (maybe_add_script): Make static. Change type of language arg to
13620 struct extension_language_defn *.
13621 (clear_section_scripts): Reset unsupported_script_warning_printed.
13622 (auto_load_objfile_script_1): Rewrite to use extension language API.
13623 (auto_load_objfile_script): Make public. Remove support-compiled-in
13624 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13625 (source_section_scripts): Rewrite to use extension language API.
13626 (load_auto_scripts_for_objfile): Rewrite to use
13627 auto_load_scripts_for_objfile.
13628 (collect_matching_scripts_data): Change type of language member to
13629 struct extension_language_defn *.
13630 (auto_load_info_scripts): Change type of language arg to
13631 struct extension_language_defn *.
13632 (unsupported_script_warning_print): New function.
13633 (script_not_found_warning_print): Make static.
13634 (_initialize_auto_load): Rewrite construction of scripts-directory
13636 * auto-load.h (struct objfile): Add forward decl.
13637 (struct script_language): Delete.
13638 (struct auto_load_pspace_info): Add forward decl.
13639 (struct extension_language_defn): Add forward decl.
13640 (maybe_add_script): Delete.
13641 (auto_load_objfile_script): Declare.
13642 (script_not_found_warning_print): Delete.
13643 (auto_load_info_scripts): Update prototype.
13644 (auto_load_gdb_scripts_enabled): Declare.
13645 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13646 auto_load_python_scripts_enabled and made public.
13647 (script_language_python): Delete, moved to python.c.
13648 (gdbpy_script_language_defn): Delete.
13649 (info_auto_load_python_scripts): Update to use
13650 extension_language_python.
13652 * breakpoint.c (condition_command): Replace call to
13653 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13654 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13655 with call to breakpoint_ext_lang_cond_says_stop.
13656 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13657 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13658 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13659 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13661 (local_setattro): Print name of extension language with existing
13664 * valprint.c (val_print, value_print): Update to call
13665 apply_ext_lang_val_pretty_printer.
13666 * cp-valprint.c (cp_print_value): Update call to
13667 apply_ext_lang_val_pretty_printer.
13668 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13669 (gdbpy_apply_val_pretty_printer): Renamed from
13670 apply_val_pretty_printer. New arg extlang.
13671 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13673 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13674 extension language API.
13675 * cli/cli-script.c (execute_control_command): Update to call
13676 eval_ext_lang_from_control_command.
13678 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13679 enum ext_lang_bt_status values. Update call to
13680 apply_ext_lang_frame_filter.
13681 (mi_cmd_stack_list_locals): Ditto.
13682 (mi_cmd_stack_list_args): Ditto.
13683 (mi_cmd_stack_list_variables): Ditto.
13684 * mi/mi-main.c: Delete #include "python/python-internal.h".
13685 Add #include "extension.h".
13686 (mi_cmd_list_features): Replace reference to python internal variable
13687 gdb_python_initialized with call to ext_lang_initialized_p.
13689 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13690 Update to use enum ext_lang_frame_args. Update to call
13691 apply_ext_lang_frame_filter.
13692 * python/py-framefilter.c (extract_sym): Update to use enum
13693 ext_lang_bt_status.
13694 (extract_value, py_print_type, py_print_value): Ditto.
13695 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13696 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13697 (py_print_frame): Ditto.
13698 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13699 New arg extlang. Update to use enum ext_lang_bt_status.
13701 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13702 finish_python_initialization. Replace with call to
13703 finish_ext_lang_initialization.
13705 * typeprint.c (do_free_global_table): Update to call
13706 free_ext_lang_type_printers.
13707 (create_global_typedef_table): Update to call
13708 start_ext_lang_type_printers.
13709 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13710 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13711 (type_print_options): Change type of global_printers from "void *"
13712 to "struct ext_lang_type_printers *".
13714 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13715 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13716 (gdbpy_preserve_values): Renamed from preserve_python_values.
13718 (!HAVE_PYTHON, preserve_python_values): Delete.
13720 * utils.c (quit_flag): Delete, moved to extension.c.
13721 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13724 * eval.c: Delete #include "python/python.h".
13725 * main.c: Delete #include "python/python.h".
13727 * defs.h: Update comment.
13729 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13733 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13735 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13738 2014-02-05 Yao Qi <yao@codesourcery.com>
13740 * remote.c (remote_pass_signals): Remove local 'buf' and use
13742 (remote_program_signals): Likewise.
13744 2014-02-05 Yao Qi <yao@codesourcery.com>
13746 * ctf.c: Include "inferior.h" and "gdbthread.h".
13747 (CTF_PID): A new macro.
13748 (ctf_open): Call inferior_appeared and add_thread_silent.
13749 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13750 (ctf_thread_alive): New function.
13751 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13753 2014-02-05 Yao Qi <yao@codesourcery.com>
13757 2013-05-24 Yao Qi <yao@codesourcery.com>
13759 * tracepoint.c (TFILE_PID): Remove.
13760 (tfile_open): Don't add thread and inferior.
13761 (tfile_close): Don't set 'inferior_ptid'. Don't call
13762 exit_inferior_silent.
13763 (tfile_thread_alive): Remove.
13764 (init_tfile_ops): Don't set field 'to_thread_alive' of
13767 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13769 * remote.c (remote_start_remote): Call remote_check_symbols even
13770 if only symbol-file (not file) has been given.
13772 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13774 * gdbarch.sh (skip_entrypoint): New callback.
13775 * gdbarch.c, gdbarch.h: Regenerate.
13776 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13777 * infrun.c (fill_in_stop_func): Likewise.
13778 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13779 (ppc_elfv2_elf_make_msymbol_special): New function.
13780 (ppc_elfv2_skip_entrypoint): Likewise.
13781 (ppc_linux_init_abi): Install them for ELFv2.
13783 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13785 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13786 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13787 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13788 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13789 structures returned in GPRs.
13791 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13793 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13794 offset to the stack parameter list for the ELFv2 ABI.
13796 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13798 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13799 set_gdbarch_convert_from_func_ptr_addr and
13800 set_gdbarch_elf_make_msymbol_special for ELFv1.
13801 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13802 function descriptors on ELFv1.
13803 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13804 set up r12 at function entry.
13806 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13808 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13809 (struct gdbarch_tdep): New member elf_abi.
13811 * rs6000-tdep.c: Include "elf/ppc64.h".
13812 (rs6000_gdbarch_init): Detect ELF ABI version.
13814 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13816 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13817 within a register pair holding a DFP 128-bit value on little-endian.
13818 (ppc64_sysv_abi_return_value_base): Likewise.
13819 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13820 (dfp_pseudo_register_write): Likewise.
13822 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13824 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13825 offset on little-endian when passing _Decimal32.
13826 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13828 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13830 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13831 of the overlapped FP register within the VSX register on little-
13833 (efpr_pseudo_register_write): Likewise.
13835 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13837 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13838 offset on little-endian when passing small structures.
13840 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13842 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13843 (struct ppc64_sysv_argpos): New data structure.
13844 (ppc64_sysv_abi_push_float): Remove.
13845 (ppc64_sysv_abi_push_val): New function.
13846 (ppc64_sysv_abi_push_integer): Likewise.
13847 (ppc64_sysv_abi_push_freg): Likewise.
13848 (ppc64_sysv_abi_push_vreg): Likewise.
13849 (ppc64_sysv_abi_push_param): Likewise.
13850 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13851 (ppc64_sysv_abi_return_value_base): New function.
13852 (ppc64_sysv_abi_return_value): Refactor to use it.
13854 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13856 * NEWS: Document new target powerpc64le-*-linux*.
13858 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13860 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13861 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13863 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13864 register set used in ELF core dumps. Add floating-point register set.
13866 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13868 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13869 dwarf2_to_gdb[] table using symbolic constants. Adjust
13870 penultimate entry from number representing the PC register
13871 to symbolic constant representing the MDR register. Add
13872 constant for the PC register to the end of the table.
13874 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13876 * bsd-kvm.c: Include <sys/param.h>
13878 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13880 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13882 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13884 * ada-lang.h (clear_ada_sym_cache): Delete.
13886 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13888 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13890 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13892 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13893 the sigreturn register save area only if the syscall is
13896 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13898 * valops.c (value_slice): Minor reformatting.
13900 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13902 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13904 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13906 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13907 New static globals.
13908 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13909 (ada_ignore_descriptive_types_p): New static global.
13910 (find_parallel_type_by_descriptive_type): Return immediately
13911 if ada_ignore_descriptive_types_p is set.
13912 (_initialize_ada_language): Register new commands "maintenance
13913 set ada", "maintenance show ada", "maintenance set ada
13914 ignore-descriptive-types" and "maintenance show ada
13915 ignore-descriptive-types".
13916 * NEWS: Add entry for new "maint ada set/show
13917 ignore-descriptive-types" commands.
13919 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13921 * record-btrace.c (record_btrace_close): Call btrace_teardown
13924 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13926 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13929 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13931 * ada-typeprint (type_is_full_subrange_of_target_type):
13933 (print_range): Add parameter bounds_prefered_p. If not set,
13934 try printing range types using the name of their base type.
13935 (print_range_type): Add parameter bounds_prefered_p.
13936 Use it in call to print_range.
13937 (print_array_type, ada_print_type): Update calls to print_range
13938 and print_range_type.
13940 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13942 * ada-typeprint.c (print_array_type, print_choices, print_range)
13943 (print_range_bound, print_dynamic_range_bound, print_range_type):
13944 Remove declaration.
13946 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13948 * ada-typeprint.c (print_range): Add missing empty line
13949 after local declaration.
13951 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13953 * ada-valprint.c (print_optional_low_bound): Get index_type's
13954 target type for as long as it is a TYPE_CODE_RANGE.
13956 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13958 * procfs.c (procfs_make_note_section): Remove assertion and
13959 associated comment.
13961 2014-01-24 Yao Qi <yao@codesourcery.com>
13963 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13964 * corelow.c (get_core_siginfo): Likewise.
13966 2014-01-24 Yao Qi <yao@codesourcery.com>
13968 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13969 ULONGEST. Don't check 'len' is negative.
13970 (remote_write_bytes): Change type of 'len' to ULONGEST.
13972 2014-01-23 Tom Tromey <tromey@redhat.com>
13975 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13976 Handle exception from frame.block.
13977 (FrameVars.fetch_frame_locals): Likewise.
13979 2014-01-23 Tom Tromey <tromey@redhat.com>
13982 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13983 on a NULL pointer. Move "goto error" to correct place.
13985 2014-01-23 Tom Tromey <tromey@redhat.com>
13988 * python/py-framefilter.c (apply_frame_filter): Call
13989 ensure_python_env after computing gdbarch.
13991 2014-01-23 Yao Qi <yao@codesourcery.com>
13993 * target.c (raw_memory_xfer_partial): Change argument type
13994 from void * to gdb_byte *.
13995 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13997 2014-01-22 Doug Evans <dje@google.com>
13999 New gdbserver option --debug-format=timestamp.
14000 * NEWS: Mention it.
14002 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14004 * syscalls/s390x-linux.xml: New file.
14005 * syscalls/s390-linux.xml: New file.
14006 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14007 (XML_SYSCALL_FILENAME_S390X): Likewise.
14008 (op_svc): New enum value for SVC opcode.
14009 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14010 (s390_linux_get_syscall_number): New function.
14011 (s390_gdbarch_init): Register '*get_syscall_number' and the
14012 syscall xml file name.
14013 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14014 "s390-linux.xml" and "s390x-linux.xml".
14015 * NEWS: Announce new feature.
14017 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14019 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14021 2014-01-22 Pedro Alves <palves@redhat.com>
14023 * xtensa-config.c: Include defs.h.
14025 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14027 * common/common-utils.h: Add "ARI:" comment beside __func__
14030 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14032 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14033 documentation a bit.
14035 2014-01-21 Roland McGrath <mcgrathr@google.com>
14037 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14038 * configure: Regenerate.
14039 * aclocal.m4: Regenerate.
14040 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14041 New substituted variables.
14042 (install-strip): New target.
14043 (INSTALL_SCRIPT): New substituted variable.
14044 (FLAGS_TO_PASS): Add it.
14045 (install-only): Use $(INSTALL_SCRIPT) rather than
14046 $(INSTALL_PROGRAM) for gcore.
14048 2014-01-20 Tom Tromey <tromey@redhat.com>
14050 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14053 2014-01-20 Tom Tromey <tromey@redhat.com>
14055 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14056 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14057 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14058 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14059 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14060 (struct cmd_list_element) <flags>: Remove.
14061 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14062 doc_allocated>: New fields.
14063 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14065 * maint.c (maintenance_do_deprecate): Update.
14066 * top.c (execute_command): Update.
14068 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14070 * xtensa-linux-nat.c: Include asm/ptrace.h.
14072 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14074 * Makefile.in (SFILES): Add d-support.c.
14075 (COMMON_OBS): Add d-support.o.
14076 * d-lang.h (d_parse_symbol): Add comment, now defined in
14078 * d-lang.c (parse_call_convention)
14079 (parse_attributes, parse_function_types)
14080 (parse_function_args, parse_type, parse_identifier)
14081 (call_convention_p, d_parse_symbol): Move functions to ...
14082 * d-support.c: ... New file.
14084 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14086 * d-lang.h (d_parse_symbol): Add declaration.
14087 * d-lang.c (extract_identifiers)
14088 (extract_type_info): Remove functions.
14089 (parse_call_convention, parse_attributes)
14090 (parse_function_types, parse_function_args)
14091 (parse_type, parse_identifier, call_convention_p)
14092 (d_parse_symbol): New functions.
14093 (d_demangle): Use d_parse_symbol to demangle D symbols.
14095 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14097 * d-lang.h (struct builtin_d_type): New data type.
14098 (builtin_d_type): Add declaration.
14099 * d-lang.c (d_language_arch_info, build_d_types)
14100 (builtin_d_type): New functions.
14101 (enum d_primitive_types): New data type.
14102 (d_language_defn): Change c_language_arch_info to
14103 d_language_arch_info.
14104 (d_type_data): New static variable.
14105 (_initialize_d_language): Initialize d_type_data.
14107 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14109 * d-lang.h (d_main_name): Add declaration.
14110 * d-lang.c (d_main_name): New function.
14111 * symtab.c (find_main_name): Add call to d_main_name.
14113 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14115 * d-lang.c (d_language_defn): Change macro_expansion_c to
14116 macro_expansion_no.
14118 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14120 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14122 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14124 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14125 gdb_exception" declaration.
14126 * remote.c (getpkt_or_notif_sane): Likewise.
14128 2014-01-17 Doug Evans <dje@google.com>
14130 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14131 function, contents of dirnames_to_char_ptr_vec_append moved here.
14132 (delim_string_to_char_ptr_vec): New function.
14133 (dirnames_to_char_ptr_vec_append): Rewrite.
14134 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14136 2014-01-17 Doug Evans <dje@google.com>
14138 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14140 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14141 #include "common-utils.h".
14142 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14143 * common/vec.h (VEC_ASSERT_PASS): Update.
14144 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14145 (MACH_CHECK_ERROR): Update.
14147 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14149 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14151 * gdbarch.h: Regenerate.
14153 2014-01-16 Tom Tromey <tromey@redhat.com>
14155 * value.c (struct value) <regnum>: Move earlier.
14157 2014-01-16 Tom Tromey <tromey@redhat.com>
14159 * remote.c (extended_remote_create_inferior): Rename from
14160 extended_remote_create_inferior_1. Add "ops" argument. Remove
14161 old implementation.
14163 2014-01-16 Pedro Alves <palves@redhat.com>
14165 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14166 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14169 2014-01-16 Doug Evans <dje@google.com>
14171 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14173 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14175 * btrace.h (btrace_thread_flag): New.
14176 (struct btrace_thread_info) <flags>: New.
14177 * record-btrace.c (record_btrace_resume_thread)
14178 (record_btrace_find_thread_to_move, btrace_step_no_history)
14179 (btrace_step_stopped, record_btrace_start_replaying)
14180 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14181 (record_btrace_find_resume_thread): New.
14182 (record_btrace_resume, record_btrace_wait): Extend.
14183 (record_btrace_can_execute_reverse): New.
14184 (record_btrace_open): Fail in non-stop mode.
14185 (record_btrace_set_replay): Split into this, ...
14186 (record_btrace_stop_replaying): ... this, ...
14187 (record_btrace_clear_histories): ... and this.
14188 (init_record_btrace_ops): Init to_can_execute_reverse.
14189 * NEWS: Announce it.
14191 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14193 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14194 (forward_target_decr_pc_after_break)
14195 (target_decr_pc_after_break): New.
14196 * target.c (forward_target_decr_pc_after_break)
14197 (target_decr_pc_after_break): New.
14198 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14199 instead of gdbarch_decr_pc_after_break.
14200 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14201 instead of gdbarch_decr_pc_after_break.
14202 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14203 instead of gdbarch_decr_pc_after_break.
14204 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14205 instead of gdbarch_decr_pc_after_break.
14206 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14207 instead of gdbarch_decr_pc_after_break.
14208 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14209 instead of gdbarch_decr_pc_after_break.
14211 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14213 * btrace.c: Include regcache.h.
14214 (btrace_add_pc): New.
14215 (btrace_enable): Call btrace_add_pc.
14216 (btrace_is_empty): New.
14217 * btrace.h (btrace_is_empty): New.
14218 * record-btrace.c (require_btrace, record_btrace_info): Call
14221 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14223 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14224 Support delta reads.
14225 (linux_disable_btrace): Change return type.
14226 * common/linux-btrace.h (linux_read_btrace): Change parameters
14227 and return type to allow error reporting. Update users.
14228 (linux_disable_btrace): Change return type. Update users.
14229 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14231 (btrace_error): New.
14232 (btrace_block) <begin>: Comment on BEGIN == 0.
14233 * btrace.c (btrace_compute_ftrace): Start from the end of
14235 (btrace_stitch_trace, btrace_clear_history): New.
14236 (btrace_fetch): Read delta trace, return if replaying.
14237 (btrace_clear): Move clear history code to btrace_clear_history.
14238 (parse_xml_btrace): Throw an error if parsing failed.
14239 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14240 and return type to allow error reporting.
14241 (target_read_btrace): Change parameters and return type to allow
14243 * target.c (target_read_btrace): Update.
14244 * remote.c (remote_read_btrace): Support delta reads. Pass
14246 * NEWS: Announce it.
14248 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14250 * record.h (record_btrace_frame_unwind)
14251 (record_btrace_tailcall_frame_unwind): New declarations.
14252 * dwarf2-frame: Include record.h
14253 (dwarf2_frame_cfa): Throw an error for btrace frames.
14254 * record-btrace.c: Include hashtab.h.
14255 (btrace_get_bfun_name): New.
14256 (btrace_call_history): Call btrace_get_bfun_name.
14257 (struct btrace_frame_cache): New.
14259 (bfcache_hash, bfcache_eq, bfcache_new): New.
14260 (btrace_get_frame_function): New.
14261 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14262 (record_btrace_frame_this_id): Compute own id.
14263 (record_btrace_frame_prev_register): Provide PC, throw_error
14264 for all other registers.
14265 (record_btrace_frame_sniffer): Detect btrace frames.
14266 (record_btrace_tailcall_frame_sniffer): New.
14267 (record_btrace_frame_dealloc_cache): New.
14268 (record_btrace_frame_unwind): Add new functions.
14269 (record_btrace_tailcall_frame_unwind): New.
14270 (_initialize_record_btrace): Allocate cache.
14271 * btrace.c (btrace_clear): Call reinit_frame_cache.
14272 * NEWS: Announce it.
14274 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14276 * record-btrace.c (record_btrace_set_replay)
14277 (record_btrace_goto_begin, record_btrace_goto_end)
14278 (record_btrace_goto): New.
14279 (init_record_btrace_ops): Initialize them.
14280 * NEWS: Announce it.
14282 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14284 * record-btrace.c (record_btrace_find_new_threads)
14285 (record_btrace_thread_alive): New.
14286 (init_record_btrace_ops): Initialize to_find_new_threads and
14289 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14291 * record-btrace.c (record_btrace_resume): New.
14292 (record_btrace_wait): New.
14293 (init_record_btrace_ops): Initialize to_wait and to_resume.
14295 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14297 * record-btrace.c (record_btrace_xfer_partial)
14298 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14299 (record_btrace_allow_memory_access): New.
14300 (init_record_btrace_ops): Initialize new methods.
14301 * target.c (raw_memory_xfer_partial): Bail out if target reports
14302 that this memory is not available.
14304 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14306 * target.h (target_ops) <to_insert_breakpoint>
14307 <to_remove_breakpoint>: Add target_ops parameter.
14308 (forward_target_insert_breakpoint): New.
14309 (forward_target_remove_breakpoint): New.
14310 (memory_remove_breakpoint, memory_insert_breakpoint):
14311 Add target_ops parameter.
14312 * target.c (target_insert_breakpoint): Split into this and ...
14313 (forward_target_insert_breakpoint): ... this.
14314 (target_remove_breakpoint): Split into this and ...
14315 (forward_target_remove_breakpoint): ... this.
14316 (debug_to_insert_breakpoint): Add target_ops parameter.
14317 Call forward_target_insert_breakpoint.
14318 (debug_to_remove_breakpoint): Add target_ops parameter.
14319 Call forward_target_remove_breakpoint.
14320 (update_current_target): Do not inherit or default to_insert_breakpoint
14321 and to_remove_breakpoint.
14322 * corelow.c (ignore): Add target_ops parameter.
14323 * exec.c (ignore): Add target_ops parameter.
14324 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14325 Add target_ops parameter.
14326 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14327 Add target_ops parameter.
14328 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14329 Add target_ops parameter.
14330 * record-full.c (record_full_beneath_to_insert_breakpoint)
14331 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14332 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14333 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14334 (record_full_core_remove_breakpoint): Add target_ops parameter.
14336 (record_full_beneath_to_insert_breakpoint_ops)
14337 (record_full_beneath_to_remove_breakpoint_ops)
14338 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14339 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14340 tmp_to_remove_breakpoint_ops,
14341 record_full_beneath_to_insert_breakpoint_ops, and
14342 record_full_beneath_to_remove_breakpoint_ops.
14343 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14344 (m32r_remove_breakpoint): Add target_ops parameter.
14345 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14346 Add target_ops parameter.
14347 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14348 Add target_ops parameter.
14350 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14351 Markus Metzger <markus.t.metzger@intel.com>
14353 * record-btrace.c: Include frame-unwind.h.
14354 (record_btrace_frame_unwind_stop_reason)
14355 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14356 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14358 (init_record_btrace_ops): Install it.
14360 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14362 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14365 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14367 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14370 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14372 * frame-unwind.c: Include target.h.
14373 (frame_unwind_try_unwinder): New function with code from ...
14374 (frame_unwind_find_by_frame): ... here. New variable
14375 unwinder_from_target, call also target_get_unwinder)
14376 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14377 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14378 * target.h (struct target_ops): New fields to_get_unwinder and
14379 to_get_tailcall_unwinder.
14380 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14382 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14384 * record-btrace.c (record_btrace_fetch_registers)
14385 (record_btrace_store_registers)
14386 (record_btrace_to_prepare_to_store): New.
14387 (init_record_btrace_ops): Add the above.
14389 2014-01-16 Tom Tromey <tromey@redhat.com>
14391 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14392 * target.h (struct target_ops) <to_prepare_to_store>: Add
14394 (target_prepare_to_store): Add argument.
14395 * target.c (debug_to_prepare_to_store): Add argument.
14396 (update_current_target): Update.
14397 * remote.c (remote_prepare_to_store): Add 'self' argument.
14398 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14399 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14400 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14401 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14403 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14404 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14405 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14406 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14407 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14409 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14411 * btrace.h (replay) <replay>: New.
14412 (btrace_is_replaying): New.
14413 * btrace.c (btrace_clear): Free replay iterator.
14414 (btrace_is_replaying): New.
14415 * record-btrace.c (record_btrace_is_replaying): New.
14416 (record_btrace_info): Print insn number if replaying.
14417 (record_btrace_insn_history): Start at replay position.
14418 (record_btrace_call_history): Start at replay position.
14419 (init_record_btrace_ops): Init to_record_is_replaying.
14421 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14423 * record-btrace.c (record_btrace_insn_history_range): Include
14425 (record_btrace_insn_history_from): Adjust range.
14426 (record_btrace_call_history_range): Include
14428 (record_btrace_call_history_from): Adjust range.
14429 * NEWS: Announce changes.
14431 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14433 * record.h (enum record_print_flag)
14434 <record_print_indent_calls>: New.
14435 * record.c (get_call_history_modifiers): Recognize /c modifier.
14436 (_initialize_record): Document /c modifier.
14437 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14438 Reorder fields. Optionally indent the function name. Update
14440 * NEWS: Announce changes.
14442 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14444 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14446 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14448 * btrace.c (ftrace_new_function): Start counting at one.
14449 * record-btrace.c (record_btrace_info): Adjust number of calls
14451 * NEWS: Announce it.
14453 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14455 * record-btrace.c (btrace_call_history_insn_range): Print
14456 insn range as [begin, end].
14458 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14460 * btrace.h (struct btrace_func_link): New.
14461 (enum btrace_function_flag): New.
14462 (struct btrace_inst): Rename to ...
14463 (struct btrace_insn): ...this. Update all users.
14464 (struct btrace_func) <ibegin, iend>: Remove.
14465 (struct btrace_func_link): New.
14466 (struct btrace_func): Rename to ...
14467 (struct btrace_function): ...this. Update all users.
14468 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14469 (number, level, flags>: New.
14470 (struct btrace_insn_iterator): Rename to ...
14471 (struct btrace_insn_history): ...this.
14473 (struct btrace_insn_iterator, btrace_call_iterator): New.
14474 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14475 (struct btrace_target_info) <begin, end, level>
14476 <insn_history, call_history>: New.
14477 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14478 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14479 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14480 (btrace_call_number, btrace_call_begin, btrace_call_end)
14481 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14482 (btrace_find_function_by_number, btrace_set_insn_history)
14483 (btrace_set_call_history): New.
14484 * btrace.c (btrace_init_insn_iterator)
14485 (btrace_init_func_iterator, compute_itrace): Remove.
14486 (ftrace_print_function_name, ftrace_print_filename)
14487 (ftrace_skip_file): Change
14488 parameter to const.
14489 (ftrace_init_func): Remove.
14490 (ftrace_debug): Use new btrace_function fields.
14491 (ftrace_function_switched): Also consider gaining and
14492 losing symbol information).
14493 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14494 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14495 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14497 (ftrace_new_function): Move. Remove debug print.
14498 (ftrace_update_lines, ftrace_update_insns): New.
14499 (ftrace_update_function): Check for call, ret, and jump.
14500 (compute_ftrace): Renamed to ...
14501 (btrace_compute_ftrace): ...this. Rewritten to compute call
14503 (btrace_fetch, btrace_clear): Updated.
14504 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14505 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14506 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14507 (btrace_call_number, btrace_call_begin, btrace_call_end)
14508 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14509 (btrace_find_function_by_number, btrace_set_insn_history)
14510 (btrace_set_call_history): New.
14511 * record-btrace.c (require_btrace): Use new btrace thread
14513 (record_btrace_info, btrace_insn_history)
14514 (record_btrace_insn_history, record_btrace_insn_history_range):
14515 Use new btrace thread info fields and new iterator.
14516 (btrace_func_history_src_line): Rename to ...
14517 (btrace_call_history_src_line): ...this. Use new btrace
14518 thread info fields.
14519 (btrace_func_history): Rename to ...
14520 (btrace_call_history): ...this. Use new btrace thread info
14521 fields and new iterator.
14522 (record_btrace_call_history, record_btrace_call_history_range):
14523 Use new btrace thread info fields and new iterator.
14525 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14527 * frame.h (frame_id_build_unavailable_stack_special): New.
14528 * frame.c (frame_id_build_unavailable_stack_special): New.
14530 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14532 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14533 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14534 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14536 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14537 (i386_insn_is_jump, i386_jmp_p): New.
14538 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14539 insn_is_jump to gdbarch.
14540 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14541 * gdbarch.h: Regenerated.
14542 * gdbarch.c: Regenerated.
14543 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14544 (default_insn_is_jump): New.
14545 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14546 (default_insn_is_jump): New.
14548 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14550 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14552 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14553 (btrace_read_type) <btrace_read_new>: Change to ...
14554 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14556 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14558 * common/linux-btrace.c (linux_read_btrace): Free trace from
14559 previous iteration.
14561 2014-01-15 Doug Evans <dje@google.com>
14563 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14566 2014-01-15 Tom Tromey <tromey@redhat.com>
14568 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14569 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14570 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14571 (set_objfile_main_name): New function.
14572 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14573 language_of_main>: New fields.
14574 (set_objfile_main_name): Declare.
14575 * symtab.c (find_main_name): Loop over objfiles to find the main
14577 (set_main_name): Now static.
14578 (get_main_info): Add comment.
14579 * symtab.h (set_main_name): Don't declare.
14581 2014-01-15 Tom Tromey <tromey@redhat.com>
14583 * symtab.c (main_progspace_key): New global.
14584 (struct main_info): New.
14585 (name_of_main, language_of_main): Remove.
14586 (get_main_info, main_info_cleanup): New function.
14587 (set_main_name, main_name, main_language): Use get_main_info.
14588 (_initialize_symtab): Initialize main_progspace_key.
14590 2014-01-15 Tom Tromey <tromey@redhat.com>
14592 * dbxread.c (process_one_symbol): Update.
14593 * dwarf2read.c (read_partial_die): Update.
14594 * symfile.c (set_initial_language): Call main_language.
14595 * symtab.c (language_of_main): Now static.
14596 (set_main_name): Add 'lang' parameter.
14597 (find_main_name): Update.
14598 (main_language): New function.
14599 (symtab_observer_executable_changed): Update.
14600 * symtab.h (set_main_name): Update.
14601 (language_of_main): Remove.
14602 (main_language): Declare.
14604 2014-01-15 Tom Tromey <tromey@redhat.com>
14606 * symfile.c (init_entry_point_info): Use new "initialized" field.
14608 * objfiles.h (struct entry_point) <initialized>: New field.
14609 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14610 (struct objfile) <ei>: ...here. Remove.
14611 * objfiles.c (entry_point_address_query): Update.
14613 2014-01-15 Tom Tromey <tromey@redhat.com>
14615 * objfiles.c (entry_point_address_query): Relocate entry point
14617 (objfile_relocate1): Do not relocate entry point address.
14618 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14619 <the_bfd_section_index>: New field.
14620 * symfile.c (init_entry_point_info): Find the entry point's
14623 2014-01-15 Tom Tromey <tromey@redhat.com>
14625 * solib-frv.c (enable_break): Use entry_point_address_query.
14627 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14629 * NEWS: Add note on improved process record-replay on
14630 arm*-linux* targets.
14632 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14634 * arm-tdep.c (enum arm_record_result): New enum.
14635 (arm_record_unsupported_insn): New function.
14636 (arm_record_coproc_data_proc): Removed.
14637 (thumb2_record_ld_st_multiple): New function.
14638 (thumb2_record_ld_st_dual_ex_tbb): New function.
14639 (thumb2_record_data_proc_sreg_mimm): New function.
14640 (thumb2_record_ps_dest_generic): New function.
14641 (thumb2_record_branch_misc_cntrl): New function.
14642 (thumb2_record_str_single_data): New function.
14643 (thumb2_record_ld_mem_hints): New function.
14644 (thumb2_record_ld_word): New function.
14645 (thumb2_record_lmul_lmla_div): New function.
14646 (thumb2_record_decode_insn_handler): New function.
14647 (decode_insn): Add thumb32 instruction handlers.
14649 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14651 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14652 (struct arm_linux_record_tdep): Declare.
14653 (arm_canonicalize_syscall): New function.
14654 (arm_all_but_pc_registers_record): New function.
14655 (arm_linux_syscall_record): New function.
14656 (arm_linux_init_abi): Add syscall recording constructs.
14657 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14658 decoding. (arm_record_coproc_data_proc): Update arm syscall
14660 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14661 <arm_syscall_record>: New field.
14662 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14665 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14667 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14668 register for push instruction recording.
14670 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14672 * arm-tdep.c (thumb_record_misc): Update to correct logical
14673 error while recording ldm, ldmia and pop instructions.
14675 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14677 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14679 2014-01-15 Pedro Alves <palves@redhat.com>
14681 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14682 (go32_resume, go32_fetch_registers, store_register)
14683 (go32_store_registers, go32_prepare_to_store)
14684 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14685 (go32_create_inferior, go32_can_run, go32_terminal_init)
14686 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14689 2014-01-15 Tom Tromey <tromey@redhat.com>
14691 * target.h (async_callback_ftype): New typedef.
14692 (struct target_ops) <to_async>: Use it.
14694 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14696 * python/py-value.c (get_field_type): Remove unnecessary curly
14697 braces for single-statement if block.
14699 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14701 * python/py-type.c (convert_field): Add missing empty line
14702 after declarations.
14704 2014-01-14 Doug Evans <dje@google.com>
14706 * symfile.h (expand_symtabs_matching): Renamed from
14707 expand_partial_symbol_names. Update prototype.
14708 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14709 * symfile.c (expand_symtabs_matching): Renamed from
14710 expand_partial_symbol_names. New args file_matcher, kind.
14711 Rename arg fun to symbol_matcher.
14712 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14713 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14714 ada_expand_partial_symbol_name.
14715 (ada_make_symbol_completion_list): Update to call
14716 expand_symtabs_matching.
14717 (ada_add_global_exceptions): Call expand_symtabs_matching.
14718 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14719 call map_symbol_filenames.
14720 * symtab.c (sources_info): Update to call map_symbol_filenames.
14721 (search_symbols): Call expand_symtabs_matching.
14722 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14723 (default_make_symbol_completion_list_break_on): Update to call
14724 expand_symtabs_matching.
14725 (make_source_files_completion_list): Update to call
14726 map_symbol_filenames.
14728 2014-01-14 Doug Evans <dje@google.com>
14730 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14731 (expand_symtabs_symbol_matcher_ftype): New typedef.
14732 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14733 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14734 * symfile.c (expand_partial_symbol_names): Update to use
14735 expand_symtabs_symbol_matcher_ftype.
14736 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14737 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14738 Arg name_matcher renamed to symbol_matcher.
14739 * psymtab.c (recursively_search_psymtabs): Update to use
14740 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14742 (expand_symtabs_matching_via_partial): Update to use
14743 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14744 Arg name_matcher renamed to symbol_matcher.
14746 2014-01-14 Doug Evans <dje@google.com>
14748 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14749 (map_partial_symbol_filenames): Ditto.
14750 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14751 (map_partial_symbol_filenames): Ditto.
14752 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14753 (map_partial_symbol_filenames): Ditto.
14754 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14755 (map_partial_symbol_filenames): Ditto.
14756 * symtab.c: Delete #include "psymtab.h".
14758 2014-01-14 Pedro Alves <palves@redhat.com>
14759 Tom Tromey <tromey@redhat.com>
14761 * infrun.c (use_displaced_stepping): Use find_record_target
14762 instead of RECORD_IS_USED.
14763 (adjust_pc_after_break): Use record_full_is_used instead of
14765 * record-btrace.c (record_btrace_open): Call record_preopen
14766 instead of checking RECORD_IS_USED.
14767 * record-full.c (record_full_shortname)
14768 (record_full_core_shortname): New globals.
14769 (record_full_is_used): New function.
14770 (find_full_open): Call record_preopen instead of checking
14772 (init_record_full_ops): Set the target's shortname to
14773 record_full_shortname.
14774 (init_record_full_core_ops): Set the target's shortname to
14775 record_full_core_shortname.
14776 * record-full.h (record_full_is_used): Declare.
14777 * record.c (find_record_target): Make extern.
14778 (record_preopen): New function.
14779 * record.h (RECORD_IS_USED): Delete macro.
14780 (find_record_target, record_preopen): Declare functions.
14782 2014-01-14 Yao Qi <yao@codesourcery.com>
14784 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14785 'len''s type to ULONGEST.
14786 (core_xfer_shared_libraries_aix): Likewise.
14787 * gdbarch.c, gdbarch.h: Regenerated.
14788 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14789 Change type of 'len' to ULONGEST.
14790 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14791 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14793 2014-01-14 Yao Qi <yao@codesourcery.com>
14795 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14796 type of 'len' to ULONGEST.
14797 (linux_xfer_osdata_processgroups): Likewise.
14798 (linux_xfer_osdata_threads): Likewise.
14799 (linux_xfer_osdata_fds): Likewise.
14800 (linux_xfer_osdata_isockets): Likewise.
14801 (linux_xfer_osdata_shm): Likewise.
14802 (linux_xfer_osdata_sem): Likewise.
14803 (linux_xfer_osdata_msg): Likewise.
14804 (linux_common_xfer_osdata): Likewise.
14805 (struct osdata_type) <getter>: Likewise.
14806 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14809 2014-01-14 Yao Qi <yao@codesourcery.com>
14811 * target.h (target_xfer_partial_ftype): Update.
14812 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14814 * aix-thread.c (aix_thread_xfer_partial): Change type of
14815 argument 'len' to ULONGEST.
14816 * auxv.c (procfs_xfer_auxv): Likewise.
14817 (ld_so_xfer_auxv): Likewise.
14818 (memory_xfer_auxv): Likewise.
14819 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14820 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14821 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14822 * corelow.c (core_xfer_partial): Likewise.
14823 * ctf.c (ctf_xfer_partial): Likewise.
14824 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14826 (darwin_read_dyld_info): Likewise.
14827 (darwin_xfer_partial): Likewise.
14828 * exec.c (section_table_xfer_memory_partial): Likewise.
14829 (exec_xfer_partial): Likewise.
14830 * exec.h (section_table_xfer_memory_partial): Update
14832 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14833 instead of plongest.
14834 (gnu_xfer_partial): Likewise.
14835 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14836 (ia64_hpux_xfer_solib_got): Likewise.
14837 (ia64_hpux_xfer_partial): Likewise.
14838 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14839 * inf-ptrace.c (inf_ptrace_xfer_partial):
14840 * inf-ttrace.c (inf_ttrace_xfer_partial):
14841 * linux-nat.c (linux_xfer_siginfo): Likewise.
14842 (linux_nat_xfer_partial): Likewise.
14843 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14844 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14845 * monitor.c (monitor_xfer_memory): Likewise.
14846 (monitor_xfer_partial): Likewise.
14847 * procfs.c (procfs_xfer_partial): Likewise.
14848 * record-full.c (record_full_xfer_partial): Likewise.
14849 (record_full_core_xfer_partial): Likewise.
14850 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14851 instead of plongest.
14852 (gdbsim_xfer_partial): Likewise.
14853 * remote.c (remote_xfer_partial): Likewise.
14854 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14855 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14857 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14858 (rs6000_xfer_shared_libraries): Likewise.
14859 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14860 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14861 (sparc_xfer_partial): Likewise.
14862 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14863 (spu_xfer_partial): Likewise.
14864 * spu-multiarch.c (spu_xfer_partial): Likewise.
14865 * target.c (target_read_live_memory): Likewise.
14866 (memory_xfer_live_readonly_partial): Likewise.
14867 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14868 (target_xfer_partial, default_xfer_partial): Likewise.
14869 (current_xfer_partial): Likewise.
14870 * tracepoint.c (tfile_xfer_partial): Likewise.
14871 * windows-nat.c (windows_xfer_memory): Likewise. Call
14872 pulongest instead of plongest.
14873 (windows_xfer_partial): Likewise.
14874 (windows_xfer_shared_libraries): Likewise.
14876 2014-01-14 Yao Qi <yao@codesourcery.com>
14878 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14879 target_xfer_partial_ftype.
14881 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14885 * valops.c (value_struct_elt_bitpos): New function
14886 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14887 object to 'None' if the field name is an empty string ("").
14888 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14889 attribute to look for a field when 'name' is 'None'.
14890 (get_field_type): New function
14892 2014-01-13 Doug Evans <dje@google.com>
14895 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14896 (try_open_dwop_file): Ditto.
14897 * gdb_bfd.c: #include "vec.h".
14898 (bfdp): New typedef.
14899 (struct gdb_bfd_data): New member included_bfds.
14900 (gdb_bfd_unref): Unref all included bfds.
14901 (gdb_bfd_record_inclusion): New function.
14902 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14904 2014-01-13 Tom Tromey <tromey@redhat.com>
14906 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14908 2014-01-13 Tom Tromey <tromey@redhat.com>
14910 * defs.h (use_windows): Remove.
14911 * gdb.c (main): Update.
14912 * main.c (captured_main, gdb_main): Update.
14913 * main.h (struct captured_main_args) <use_windows>: Remove.
14914 * top.c (use_windows): Remove.
14916 2014-01-13 Tom Tromey <tromey@redhat.com>
14918 * defs.h (deprecated_flush_hook): Remove.
14920 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14923 * linux-thread-db.c (try_thread_db_load): Add parameter
14924 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14925 (try_thread_db_load_from_pdir_1): Move it there from here.
14926 (try_thread_db_load_from_sdir): Update caller.
14927 (try_thread_db_load_from_dir): Move it there from here.
14929 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14931 * regformats/regdat.sh: Always rewrite the register file.
14933 2014-01-13 Pedro Alves <palves@redhat.com>
14935 * Makefile.in (CHECK_HEADERS): New variable.
14936 (check-headers:): New rule.
14938 2014-01-13 Tom Tromey <tromey@redhat.com>
14940 * cli/cli-setshow.c (do_set_command): Update.
14941 * defs.h (deprecated_set_hook): Remove.
14942 * top.c (deprecated_set_hook): Remove.
14944 2014-01-13 Pedro Alves <palves@redhat.com>
14946 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14947 the tracepoint if the PC is a pseudo-register.
14949 2014-01-13 Tom Tromey <tromey@redhat.com>
14951 * defs.h (XCALLOC): Remove.
14952 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14953 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14954 * dwarf2loc.c (allocate_piece_closure): Likewise.
14955 * elfread.c (elf_symfile_segments): Likewise.
14956 (elf_symfile_segments): Likewise.
14957 * gdbtypes.c (copy_type_recursive): Likewise.
14958 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14959 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14960 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14962 * mt-tdep.c (mt_gdbarch_init): Likewise.
14963 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14965 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14966 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14967 * registry.c (registry_alloc_data): Likewise.
14968 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14969 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14970 * serial.c (serial_fdopen_ops): Likewise.
14971 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14973 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14974 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14977 2014-01-13 Tom Tromey <tromey@redhat.com>
14979 * defs.h (XMALLOC): Remove.
14980 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14981 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14982 * cli-out.c (struct ui_out *): Likewise.
14983 * cli/cli-dump.c (add_dump_command): Likewise.
14984 (add_dump_command): Likewise.
14985 * complaints.c (get_complaints): Likewise.
14986 (find_complaint): Likewise.
14987 * dwarf2-frame.c (execute_cfa_program): Likewise.
14988 * dwarf2read.c (abbrev_table_read_table): Likewise.
14989 * gdbarch.sh: Likewise.
14990 * gdbarch.c: Rebuild.
14991 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14992 * interps.c (interp_new): Likewise.
14993 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14994 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14995 * mi/mi-console.c (mi_console_file_new): Likewise.
14996 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14997 * mi/mi-out.c (mi_out_new): Likewise.
14998 * mi/mi-parse.c (mi_parse): Likewise.
14999 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15000 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15001 * observer.c (xalloc_observer_list_node): Likewise.
15002 * regcache.c (regcache_xmalloc_1): Likewise.
15003 * reggroups.c (reggroup_new): Likewise.
15004 (_initialize_reggroup): Likewise.
15005 * registry.c (register_data_with_cleanup): Likewise.
15006 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15007 * ser-base.c (serial_ttystate): Likewise.
15008 * ser-mingw.c (make_pipe_state): Likewise.
15009 * ser-pipe.c (pipe_open): Likewise.
15010 * serial.c (serial_open): Likewise.
15011 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15012 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15013 (tui_alloc_win_info): Likewise.
15014 (tui_add_content_elements): Likewise.
15015 * tui/tui-file.c (tui_file_new): Likewise.
15016 * tui/tui-out.c (tui_out_new): Likewise.
15017 * ui-file.c (mem_file_new): Likewise.
15018 * ui-out.c (push_level): Likewise.
15019 (make_cleanup_ui_out_end): Likewise.
15020 (append_header_to_list): Likewise.
15021 (ui_out_new): Likewise.
15022 * user-regs.c (user_reg_add_builtin): Likewise.
15024 2014-01-13 Tom Tromey <tromey@redhat.com>
15026 * defs.h (XZALLOC): Remove.
15027 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15028 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15029 (get_ada_tasks_inferior_data): Likewise.
15030 * auto-load.c (get_auto_load_pspace_data): Likewise.
15031 * auxv.c (get_auxv_inferior_data): Likewise.
15032 * bfd-target.c (target_bfd_reopen): Likewise.
15033 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15034 (deprecated_insert_raw_breakpoint): Likewise.
15035 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15036 * corelow.c (core_open): Likewise.
15037 * darwin-nat.c (darwin_check_new_threads): Likewise.
15038 (darwin_attach_pid): Likewise.
15039 * dummy-frame.c (dummy_frame_push): Likewise.
15040 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15041 * dwarf2loc.c (allocate_piece_closure): Likewise.
15042 * elfread.c (elf_symfile_segments): Likewise.
15043 * eval.c (ptrmath_type_p): Likewise.
15044 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15045 * gdbtypes.c (alloc_type_arch): Likewise.
15046 (alloc_type_instance): Likewise.
15047 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15048 * inf-child.c (inf_child_can_use_agent): Likewise.
15049 * inflow.c (get_inflow_inferior_data): Likewise.
15050 * infrun.c (save_infcall_suspend_state): Likewise.
15051 * jit.c (jit_reader_load): Likewise.
15052 (get_jit_objfile_data): Likewise.
15053 (get_jit_program_space_data): Likewise.
15054 (jit_object_open_impl): Likewise.
15055 (jit_symtab_open_impl): Likewise.
15056 (jit_block_open_impl): Likewise.
15057 (jit_frame_sniffer): Likewise.
15058 * linux-fork.c (add_fork): Likewise.
15059 * maint.c (make_command_stats_cleanup): Likewise.
15060 * objfiles.c (get_objfile_pspace_data): Likewise.
15061 * opencl-lang.c (struct lval_closure): Likewise.
15062 * osdata.c (osdata_start_osdata): Likewise.
15063 * progspace.c (new_address_space): Likewise.
15064 (add_program_space): Likewise.
15065 * remote-sim.c (get_sim_inferior_data): Likewise.
15066 * sh-tdep.c (sh_gdbarch_init): Likewise.
15067 * skip.c (Ignore): Likewise.
15068 (skip_delete_command): Likewise.
15069 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15070 (library_list_start_library): Likewise.
15071 (solib_aix_current_sos): Likewise.
15072 * solib-darwin.c (get_darwin_info): Likewise.
15073 (darwin_current_sos): Likewise.
15074 * solib-dsbt.c (get_dsbt_info): Likewise.
15075 * solib-ia64-hpux.c (new_so_list): Likewise.
15076 (ia64_hpux_get_solib_linkage_addr): Likewise.
15077 * solib-spu.c (append_ocl_sos): Likewise.
15078 (spu_current_sos): Likewise.
15079 * solib-svr4.c (get_svr4_info): Likewise.
15080 (svr4_keep_data_in_core): Likewise.
15081 (library_list_start_library): Likewise.
15082 (svr4_default_sos): Likewise.
15083 (svr4_read_so_list): Likewise.
15084 * solib-target.c (library_list_start_library): Likewise.
15085 (solib_target_current_sos): Likewise.
15086 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15087 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15088 * symfile.c (default_symfile_segments): Likewise.
15089 * target-descriptions.c (tdesc_data_init): Likewise.
15090 (tdesc_create_reg): Likewise.
15091 (struct tdesc_type *): Likewise.
15092 (tdesc_create_vector): Likewise.
15093 (tdesc_set_struct_size): Likewise.
15094 (struct tdesc_type *): Likewise.
15095 (tdesc_free_feature): Likewise.
15096 (tdesc_create_feature): Likewise.
15097 * windows-nat.c (windows_add_thread): Likewise.
15098 (windows_make_so): Likewise.
15099 * xml-support.c (gdb_xml_body_text): Likewise.
15100 (gdb_xml_create_parser_and_cleanup): Likewise.
15101 (xml_process_xincludes): Likewise.
15102 * xml-syscall.c (allocate_syscalls_info): Likewise.
15103 (syscall_create_syscall_desc): Likewise.
15105 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15107 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15108 function, with code from i386_stap_parse_special_token.
15109 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15110 (i386_stap_parse_special_token): Move code to the two functions
15111 above; simplify it.
15113 2014-01-09 Pedro Alves <palves@redhat.com>
15114 Hui Zhu <hui@codesourcery.com>
15117 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15118 bp_err_string. Don't mark the location shlib_disabled if the
15119 error thrown wasn't a generic or memory error. Catch errors
15120 thrown while inserting breakpoints in overlayed code. Output
15121 error message of software breakpoints.
15122 * remote.c (remote_insert_breakpoint): If this breakpoint has
15123 target-side commands but this stub doesn't support Z0 packets,
15124 throw NOT_SUPPORTED_ERROR error.
15125 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15126 * target.h (target_insert_breakpoint): Extend comment.
15127 (target_insert_hw_breakpoint): Add comment.
15129 2014-01-08 Pedro Alves <palves@redhat.com>
15131 * remote.c (remote_add_thread): Add threads silently if starting
15133 (remote_notice_new_inferior): If in all-stop, and starting up,
15134 don't call notice_new_inferior.
15135 (get_current_thread): New function, factored out from ...
15136 (add_current_inferior_and_thread): ... this. Adjust.
15137 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15138 found any thread, then select the remote's current thread as GDB's
15139 current thread too.
15141 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15143 * NEWS: Create a new section for the next release branch.
15144 Rename the section of the current branch, now that it has
15147 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15149 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15150 * version.in: Bump version to 7.7.50.DATE-cvs.
15152 2014-01-08 Yao Qi <yao@codesourcery.com>
15154 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15155 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15156 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15158 2014-01-08 Yao Qi <yao@codesourcery.com>
15160 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15161 return value of bfd_get_filename to symbol_file_add_from_bfd.
15163 2014-01-08 Pierre Muller <muller@sourceware.org>
15166 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15167 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15168 to prim_record_mininal_symbol_and_info.
15169 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15170 in call to prim_record_minimal_symbol_and_info.
15171 (read_pe_exported_syms): Set index field of section_data.
15173 2014-01-07 Andrew Pinski <apinski@cavium.com>
15175 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15176 * features/aarch64.c: Regenerate.
15178 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15180 * target.c (return_null): Define.
15181 (update_current_target): Use it instead of return_zero for
15182 functions that return a pointer.
15184 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15186 * source.c (add_path): Fix check for duplicated paths in the previously
15189 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15191 * ada-lang.c: Remove duplicated include statements.
15192 * alphabsd-nat.c: Ditto.
15193 * amd64-darwin-tdep.c: Ditto.
15194 * amd64fbsd-nat.c: Ditto.
15195 * auto-load.c: Ditto.
15197 * breakpoint.c: Ditto.
15198 * dbxread.c: Ditto.
15199 * fork-child.c: Ditto.
15200 * gdb_usleep.c: Ditto.
15201 * i386-darwin-tdep.c: Ditto.
15202 * i386fbsd-nat.c: Ditto.
15204 * inferior.c: Ditto.
15205 * jv-lang.c: Ditto.
15206 * linux-nat.c: Ditto.
15207 * linux-tdep.c: Ditto.
15208 * m68kbsd-nat.c: Ditto.
15209 * m68klinux-nat.c: Ditto.
15210 * microblaze-tdep.c: Ditto.
15211 * mips-linux-tdep.c: Ditto.
15212 * mn10300-tdep.c: Ditto.
15213 * nto-tdep.c: Ditto.
15214 * opencl-lang.c: Ditto.
15216 * printcmd.c: Ditto.
15217 * regcache.c: Ditto.
15218 * remote-m32r-sdi.c: Ditto.
15220 * symfile.c: Ditto.
15222 * tilegx-linux-nat.c: Ditto.
15223 * tilegx-tdep.c: Ditto.
15224 * tracepoint.c: Ditto.
15226 * vaxbsd-nat.c: Ditto.
15227 * windows-nat.c: Ditto.
15228 * xtensa-tdep.c: Ditto.
15230 2014-01-07 Yao Qi <yao@codesourcery.com>
15232 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15234 2014-01-07 Yao Qi <yao@codesourcery.com>
15235 Joel Brobecker <brobecker@adacore.com>
15237 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15238 (pdc_write_regs): Likewise.
15239 (fetch_regs_kernel_thread): Likewise.
15240 (store_regs_kernel_thread): Likewise.
15242 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15244 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15245 tagged type objects to their actual type.
15247 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15249 * ada-valprint.c (print_field_values): Add "language" parameter.
15250 Update calls to print_field_values and print_variant_part.
15251 Pass new parameter "language" in call to val_print instead
15252 of "current_language". Replace call to ada_val_print by call
15254 (print_variant_part): Add "language" parameter.
15255 (ada_val_print_struct_union): Update call to print_field_values.
15257 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15259 * ada-valprint.c (ui_memcpy): Delete.
15260 (ada_print_floating): Update documentation. Add empty line
15261 between between function documentation and implementation.
15262 Delete variable "buffer". Use ui_file_xstrdup in place of
15263 ui_file_put. Minor adjustments following this change.
15265 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15267 * ada-valprint.c (ada_val_print_string): New function,
15268 extracted from ada_val_print_array.
15269 (ada_val_print_array): Replace extracted code by call
15270 to ada_val_print_string followed by a return. Move
15271 "else" branch to the function's top block.
15273 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15275 * ada-valprint.c (ada_val_print_array): Move implementation
15276 down. Rename parameter "offset" and "val" into "offset_aligned"
15277 and "original_value" respectively. Add parameter "offset".
15279 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15281 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15282 re-organizing the code. Change the "???" message printed
15283 when target type is a TYPE_CODE_UNDEF into
15284 "<ref to undefined type>".
15286 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15288 * ada-valprint.c (print_record): Delete, implementation inlined...
15289 (ada_val_print_struct_union): ... here. Remove call to
15290 ada_check_typedef in inlined implementation.
15292 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15294 * ada-valprint.c (ada_val_print_gnat_array): New function,
15295 extracted from ada_val_print_1;
15296 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15297 (ada_val_print_flt, ada_val_print_struct_union)
15298 (ada_val_print_ref): Likewise.
15299 (ada_val_print_1): Delete variables i and elttype.
15300 Replace extracted-out code by call to corresponding
15303 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15305 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15307 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15309 * ada-valprint.c (ada_val_print_1): Replace calls to
15310 ada_val_print_1 by calls to val_print.
15312 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15314 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15315 Update calls to self accordingly. Replace calls to c_val_print
15316 by calls to val_print.
15318 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15320 * ada-valprint.c (print_record): Delete declaration.
15321 (adjust_type_signedness, ada_val_print_1): Likewise.
15322 (ada_val_print): Move function implementation down.
15323 (print_variant_part, print_field_values, print_record):
15324 Move function implementation up.
15326 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15328 * python/py-type.c (typy_get_name): New function.
15329 (type_object_getset): Add entry for attribute "name".
15330 * NEWS: Add entry mentioning this new attribute.
15332 2014-01-07 Yao Qi <yao@codesourcery.com>
15334 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15337 2014-01-07 Yao Qi <yao@codesourcery.com>
15339 * gnu-nat.c (info_port_rights): Add qualifier const to
15342 2014-01-07 Yao Qi <yao@codesourcery.com>
15344 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15346 2014-01-07 Yao Qi <yao@codesourcery.com>
15348 * gnu-nat.c (make_inf) Update declaration.
15349 (make_inf): Make it static.
15350 (inf_set_traced): Likewise.
15351 (inf_port_to_thread, inf_task_died_status): Likewise.
15353 2014-01-07 Yao Qi <yao@codesourcery.com>
15355 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15357 2014-01-07 Yao Qi <yao@codesourcery.com>
15359 * gnu-nat.c (_initialize_gnu_nat): Declare.
15361 2014-01-07 Yao Qi <yao@codesourcery.com>
15363 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15365 (struct gdbarch_info) <byte_order>: Change type to
15367 <byte_order_for_code>: Likewise.
15368 * gdbarch.c, gdbarch.h: Regenerated.
15370 2014-01-06 Sasha Smundak <asmundak@google.com>
15372 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15374 2014-01-06 Tom Tromey <tromey@redhat.com>
15376 * doublest.c (convert_doublest_to_floatformat): Use const, not
15378 * somread.c (som_symtab_read): Likewise.
15380 2014-01-07 Hui Zhu <hui@codesourcery.com>
15382 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15383 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15384 (gdb_bfd_fopen): Ditto.
15385 (gdb_bfd_openr): Ditto.
15386 (gdb_bfd_openw): Ditto.
15387 (gdb_bfd_openr_iovec): Ditto.
15388 (gdb_bfd_fdopenr): Ditto.
15389 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15390 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15392 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15394 * symfile-mem.c (symbol_file_add_from_memory): Removed
15395 gdb_bfd_stash_filename.
15397 2014-01-03 Doug Evans <dje@google.com>
15399 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15402 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15404 Update year range in copyright notice of all files.
15406 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15408 * top.c (print_gdb_version): Set copyright year to 2014.
15410 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15412 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15414 For older changes see ChangeLog-2013.
15420 version-control: never