1 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
3 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
4 the instruction as well as reading it from memory.
5 (nios2_match_add): New.
6 (nios2_match_sub): New.
7 (nios2_match_addi): New.
8 (nios2_match_orhi): New.
9 (nios2_match_stw): New.
10 (nios2_match_ldw): New.
11 (nios2_match_rdctl): New.
12 (enum branch_condition): New.
13 (nios2_match_branch): New.
14 (nios2_match_jmpi): New.
15 (nios2_match_calli): New.
16 (nios2_match_jmpr): New.
17 (nios2_match_callr): New.
18 (nios2_match_break): New.
19 (nios2_match_trap): New.
20 (nios2_in_epilogue_p): Rewrite to use new functions.
21 (nios2_analyze_prologue): Likewise.
22 (nios2_skip_prologue): Delete unused local limit_pc.
23 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
24 (nios2_get_next_pc): Rewrite to use new functions.
26 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
28 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
30 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
32 Pushed by Joel Brobecker <brobecker@adacore.com>
33 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
34 elements pi_len by the size of the elements before calling
36 (inf_validate_task_sc): Likewise, and properly deallocate the
39 2014-11-23 Doug Evans <xdje42@gmail.com>
41 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
42 number and name if present. All callers updated.
43 (dump_fn_fieldlists): Fix indentation of args.
45 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
47 * MAINTAINERS (Write After Approval): Add myself.
49 2014-11-23 Joel Brobecker <brobecker@adacore.com>
51 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
52 to a bp_call_dummy breakpoint type.
54 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
56 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
57 registering the signal handler.
59 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
61 * event-top.h (call_stdin_event_handler_again_p): Declare.
62 * event-top.c (call_stdin_event_handler_again_p): Define.
63 (stdin_event_handler): Use it.
64 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
65 handler again if there is pending input following a
68 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
70 Pushed by Joel Brobecker <brobecker@adacore.com>
71 * linux-fork.c (checkpoint_command): Print index of new
72 checkpoint in response message.
74 2014-11-23 Yao Qi <yao@codesourcery.com>
76 * valprint.c (read_string): Move local variables 'found_nul',
77 'chunksize' and 'limit' to inner scope. Update comments.
79 2014-11-22 Doug Evans <xdje42@gmail.com>
81 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
83 (search_symbols): Fix comments and whitespace.
85 2014-11-22 Doug Evans <xdje42@gmail.com>
87 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
89 2014-11-21 Doug Evans <dje@google.com>
91 * psymtab.c (psymtab_search_name): Fix whitespace.
93 2014-11-21 Yao Qi <yao@codesourcery.com>
95 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
97 * gnulib/import/Makefile.am: Re-generated.
98 * gnulib/import/Makefile.in: Likewise.
99 * gnulib/import/m4/gnulib-cache.m4: Likewise.
101 2014-11-21 Yao Qi <yao@codesourcery.com>
103 * gdb_wchar.h: Include wchar.h and wctype.h.
104 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
105 include wchar.h and wctype.h.
106 Don't check HAVE_WCHAR_H.
108 2014-11-21 Yao Qi <yao@codesourcery.com>
110 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
112 * gnulib/import/Makefile.am: Re-generated.
113 * gnulib/import/Makefile.in: Likewise.
114 * gnulib/import/m4/gnulib-cache.m4: Likewise.
116 2014-11-21 Yao Qi <yao@codesourcery.com>
118 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
120 * gnulib/import/Makefile.am: Re-generated.
121 * gnulib/import/Makefile.in: Likewise.
122 * gnulib/import/m4/gnulib-cache.m4: Likewise.
124 2014-11-21 Yao Qi <yao@codesourcery.com>
126 * common/common-defs.h: Include alloca.h
127 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
128 * configure: Re-generated.
129 * defs.h: Remove code handling alloca.
130 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
133 2014-11-21 Yao Qi <yao@codesourcery.com>
135 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
137 * gnulib/import/Makefile.am: Re-generated.
138 * gnulib/import/Makefile.in: Likewise..
139 * gnulib/import/m4/gnulib-cache.m4: Likewise.
141 2014-11-21 Yao Qi <yao@codesourcery.com>
143 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
146 2014-11-21 Joel Brobecker <brobecker@adacore.com>
148 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
149 flag_unsigned if HIGH_BOUND is constant and negative.
151 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
154 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
155 modifier from "struct gdbarch" when compiling without Expat (XML)
157 (get_syscall_by_number): Likewise.
158 (get_syscall_by_name): Likewise.
159 (get_syscall_names): Likewise.
161 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
164 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
165 set_xml_syscall_file_name to provide gdbarch.
166 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
167 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
168 * breakpoint.c (print_it_catch_syscall): Adjust call to
169 get_syscall_by_number to provide gdbarch.
170 (print_one_catch_syscall): Likewise.
171 (print_mention_catch_syscall): Likewise.
172 (print_recreate_catch_syscall): Likewise.
173 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
174 and get_syscall_by_name to provide gdbarch.
175 (catch_syscall_completer): Adjust call to get_syscall_names to
177 * gdbarch.c: Regenerate.
178 * gdbarch.h: Likewise.
179 * gdbarch.sh: Forward declare "struct syscalls_info".
180 (xml_syscall_file): New variable.
181 (syscalls_info): Likewise.
182 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
183 set_xml_syscall_file_name to provide gdbarch.
184 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
185 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
186 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
187 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
188 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
189 * xml-syscall.c: Include gdbarch.h.
190 (set_xml_syscall_file_name): Accept gdbarch parameter.
191 (get_syscall_by_number): Likewise.
192 (get_syscall_by_name): Likewise.
193 (get_syscall_names): Likewise.
194 (my_gdb_datadir): Delete global variable.
195 (struct syscalls_info) <my_gdb_datadir>: New variable.
196 (struct syscalls_info) <sysinfo>: Rename variable to
198 (sysinfo): Delete global variable.
199 (have_initialized_sysinfo): Likewise.
200 (xml_syscall_file): Likewise.
201 (sysinfo_free_syscalls_desc): Rename to...
202 (syscalls_info_free_syscalls_desc): ... this.
203 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
204 code to the new layout of "struct syscalls_info".
205 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
207 (syscall_create_syscall_desc): Likewise.
208 (syscall_start_syscall): Likewise.
209 (syscall_parse_xml): Likewise.
210 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
211 (init_sysinfo): Rename to...
212 (init_syscalls_info): ...this. Add gdbarch as a parameter.
213 Adjust function to deal with gdbarch.
214 (xml_get_syscall_number): Delete parameter sysinfo. Accept
215 gdbarch as a parameter. Adjust code.
216 (xml_get_syscall_name): Likewise.
217 (xml_list_of_syscalls): Likewise.
218 (set_xml_syscall_file_name): Accept gdbarch as parameter.
219 (get_syscall_by_number): Likewise.
220 (get_syscall_by_name): Likewise.
221 (get_syscall_names): Likewise.
222 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
223 (get_syscall_by_number): Likewise.
224 (get_syscall_by_name): Likewise.
225 (get_syscall_names): Likewise.
227 2014-11-20 Doug Evans <xdje42@gmail.com>
229 Split struct symtab into two: struct symtab and compunit_symtab.
230 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
231 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
232 to "struct compunit_symtab *". All callers updated.
233 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
234 "struct symtab *" argument to "struct compunit_symtab *".
236 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
237 result to "struct compunit_symtab *". All callers updated.
238 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
239 Change result to "struct compunit_symtab *". All callers updated.
240 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
241 hange type to "struct compunit_symtab *". All uses updated.
242 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
243 Change type to "struct compunit_symtab *". All uses updated.
244 * buildsym.c (struct buildsym_compunit): New struct.
245 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
246 (buildsym_compunit): New static global.
247 (finish_block_internal): Update to fetch objfile from
249 (make_blockvector): Delete objfile argument.
250 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
251 debugformat, producer.
252 (start_buildsym_compunit): New function.
253 (free_buildsym_compunit): Renamed from free_subfiles_list.
255 (patch_subfile_names): Rewrite to use buildsym_compunit.
256 (get_compunit_symtab): New function.
257 (get_macro_table): Delete argument comp_dir. All callers updated.
258 (start_symtab): Change result to "struct compunit_symtab *".
259 All callers updated. Create the subfile of the main source file.
260 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
261 (reset_symtab_globals): Update.
262 (end_symtab_get_static_block): Update to use buildsym_compunit.
263 (end_symtab_without_blockvector): Rewrite.
264 (end_symtab_with_blockvector): Change result to
265 "struct compunit_symtab *". All callers updated.
266 Update to use buildsym_compunit. Don't set symtab->dirname,
267 instead set it in the compunit.
268 Explicitly make sure main symtab is first in its list.
269 Set debugformat, producer, blockvector, block_line_section, and
270 macrotable in the compunit.
271 (end_symtab_from_static_block): Change result to
272 "struct compunit_symtab *". All callers updated.
273 (end_symtab, end_expandable_symtab): Ditto.
274 (set_missing_symtab): Change symtab argument to
275 "struct compunit_symtab *". All callers updated.
276 (augment_type_symtab): Ditto.
277 (record_debugformat): Update to use buildsym_compunit.
278 (record_producer): Update to use buildsym_compunit.
279 * buildsym.h (struct subfile) <dirname>: Delete.
280 <producer, debugformat>: Delete.
281 <buildsym_compunit>: New member.
282 (get_compunit_symtab): Declare.
283 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
284 from primary_symtab. Change type to "struct compunit_symtab *".
286 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
288 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
289 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
290 symtab. Change type to "struct compunit_symtab *". All uses updated.
291 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
293 (dw2_find_last_source_symtab): Ditto.
294 (dw2_lookup_symbol): Ditto.
295 (recursively_find_pc_sect_compunit_symtab): Renamed from
296 recursively_find_pc_sect_symtab. Change result to
297 "struct compunit_symtab *". All callers updated.
298 (dw2_find_pc_sect_compunit_symtab): Renamed from
299 dw2_find_pc_sect_symtab. Change result to
300 "struct compunit_symtab *". All callers updated.
301 (get_compunit_symtab): Renamed from get_symtab. Change result to
302 "struct compunit_symtab *". All callers updated.
303 (recursively_compute_inclusions): Change type of immediate_parent
304 argument to "struct compunit_symtab *". All callers updated.
305 (compute_compunit_symtab_includes): Renamed from
306 compute_symtab_includes. All callers updated. Rewrite to compute
307 includes of compunit_symtabs and not symtabs.
308 (process_full_comp_unit): Update to work with struct compunit_symtab.
309 (process_full_type_unit): Ditto.
310 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
311 (dwarf_decode_lines): Remove special case handling of main subfile.
312 (macro_start_file): Delete argument comp_dir. All callers updated.
313 (dwarf_decode_macro_bytes): Ditto.
314 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
315 use struct compunit_symtab.
316 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
317 * jit.c (finalize_symtab): Build compunit_symtab.
318 * jv-lang.c (get_java_class_symtab): Change result to
319 "struct compunit_symtab *". All callers updated.
320 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
321 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
322 comp_dir. Change type to "struct compunit_symtab *".
324 (new_macro_table): Change comp_dir argument to cust,
325 "struct compunit_symtab *". All callers updated.
326 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
327 nr_primary_symtabs. All uses updated.
328 (count_symtabs_and_blocks): Update to handle compunits.
329 (report_command_stats): Update output, "primary symtabs" renamed to
331 * mdebugread.c (new_symtab): Change result to
332 "struct compunit_symtab *". All callers updated.
333 (parse_procedure): Change type of search_symtab argument to
334 "struct compunit_symtab *". All callers updated.
335 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
337 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
338 symtabs. Change type to "struct compunit_symtab *". All uses updated.
339 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
341 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
343 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
344 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
345 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
346 symtab. Change type to "struct compunit_symtab *". All uses updated.
347 * psymtab.c (psymtab_to_symtab): Change result type to
348 "struct compunit_symtab *". All callers updated.
349 (find_pc_sect_compunit_symtab_from_partial): Renamed from
350 find_pc_sect_symtab_from_partial. Change result type to
351 "struct compunit_symtab *". All callers updated.
352 (lookup_symbol_aux_psymtabs): Change result type to
353 "struct compunit_symtab *". All callers updated.
354 (find_last_source_symtab_from_partial): Ditto.
355 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
356 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
357 and macro_table from compunit.
358 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
359 type to "struct compunit_symtab *". All callers updated.
360 (debug_qf_lookup_symbol): Ditto.
361 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
362 debug_qf_find_pc_sect_symtab, change result type to
363 "struct compunit_symtab *". All callers updated.
364 * symfile.c (allocate_symtab): Delete objfile argument.
366 (allocate_compunit_symtab): New function.
367 (add_compunit_symtab_to_objfile): New function.
368 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
369 Change result type to "struct compunit_symtab *". All uses updated.
370 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
371 Change result type to "struct compunit_symtab *". All uses updated.
372 * symmisc.c (print_objfile_statistics): Compute blockvector count in
374 (dump_symtab_1): Update test for primary source symtab.
375 (maintenance_info_symtabs): Update to handle compunit symtabs.
376 (maintenance_check_symtabs): Ditto.
377 * symtab.c (set_primary_symtab): Delete.
378 (compunit_primary_filetab): New function.
379 (compunit_language): New function.
380 (iterate_over_some_symtabs): Change type of arguments "first",
381 "after_last" to "struct compunit_symtab *". All callers updated.
382 Update to loop over symtabs in each compunit.
383 (error_in_psymtab_expansion): Rename symtab argument to cust,
384 and change type to "struct compunit_symtab *". All callers updated.
385 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
386 Change result type to "struct compunit_symtab *". All callers updated.
387 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
388 Change result type to "struct compunit_symtab *". All callers updated.
389 (find_pc_sect_line): Only loop over symtabs within selected compunit
390 instead of all symtabs in the objfile.
391 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
392 <compunit_symtab> New member.
393 <block_line_section>: Moved to compunit_symtab.
394 <locations_valid>: Ditto.
395 <epilogue_unwind_valid>: Ditto.
396 <macro_table>: Ditto.
398 <debugformat>: Ditto.
401 <call_site_htab>: Ditto.
405 (SYMTAB_COMPUNIT): New macro.
406 (SYMTAB_BLOCKVECTOR): Update definition.
407 (SYMTAB_OBJFILE): Update definition.
408 (SYMTAB_DIRNAME): Update definition.
409 (struct compunit_symtab): New type. Common members among all source
410 symtabs within a compilation unit moved here. All uses updated.
411 (COMPUNIT_OBJFILE): New macro.
412 (COMPUNIT_FILETABS): New macro.
413 (COMPUNIT_DEBUGFORMAT): New macro.
414 (COMPUNIT_PRODUCER): New macro.
415 (COMPUNIT_DIRNAME): New macro.
416 (COMPUNIT_BLOCKVECTOR): New macro.
417 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
418 (COMPUNIT_LOCATIONS_VALID): New macro.
419 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
420 (COMPUNIT_CALL_SITE_HTAB): New macro.
421 (COMPUNIT_MACRO_TABLE): New macro.
422 (ALL_COMPUNIT_FILETABS): New macro.
423 (compunit_symtab_ptr): New typedef.
424 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
426 2014-11-20 Joel Brobecker <brobecker@adacore.com>
428 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
429 if the TYPE_CODE of range_type's base type does not match
430 the TYPE_CODE of encoding_type's base type.
432 2014-11-19 Joel Brobecker <brobecker@adacore.com>
434 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
437 2014-11-19 Joel Brobecker <brobecker@adacore.com>
439 * ada-lang.c (ada_is_redundant_range_encoding): New function.
440 (ada_is_redundant_index_type_desc): New function.
441 (to_fixed_array_type): Ignore parallel XA type if redundant.
443 2014-11-19 Joel Brobecker <brobecker@adacore.com>
445 * ada-lang.c (constrained_packed_array_type): Set the length
446 of the return array as if both bounds where zero if that
447 returned array's index type is dynamic.
449 2014-11-19 Yao Qi <yao@codesourcery.com>
451 * config/i386/go32.mh (CC): Remove.
453 2014-11-18 Doug Evans <xdje42@gmail.com>
455 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
458 2014-11-18 Doug Evans <xdje42@gmail.com>
460 * buildsym.c (buildsym_objfile): New static global.
461 (buildsym_comp_dir): New static global.
462 (finish_block_internal): Delete arg objfile. All callers updated.
463 (finish_block): Delete arg objfile. All callers updated.
464 (start_subfile): Delete arg dirname. All callers updated.
465 (patch_subfile_names): Update buildsym_comp_dir.
466 (get_macro_table): Delete arg objfile. All callers updated.
467 (start_symtab): New arg objfile. All callers updated.
468 Rename arg dirname to comp_dir.
469 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
470 (end_symtab_get_static_block): Delete arg objfile. All callers
472 (end_symtab_without_blockvector): Ditto.
473 (end_symtab_with_blockvector): Ditto.
474 (end_symtab_from_static_block): Ditto.
476 (end_expandable_symtab): Ditto.
477 (augment_type_symtab): Ditto.
478 * coffread.c (coff_start_symtab): New arg objfile. All callers
481 2014-11-18 Doug Evans <xdje42@gmail.com>
483 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
486 2014-11-18 Doug Evans <xdje42@gmail.com>
488 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
489 symtab.dirname updated to use it.
491 2014-11-18 Doug Evans <xdje42@gmail.com>
493 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
494 symtab.objfile updated to use it.
496 2014-11-18 Doug Evans <xdje42@gmail.com>
498 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
500 2014-11-18 Doug Evans <xdje42@gmail.com>
502 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
504 * findvar.c (default_read_var_value): Ditto.
505 * jv-lang.c (add_class_symtab_symbol): Ditto.
506 * parse.c (operator_check_standard): Ditto.
507 * printcmd.c (address_info): Ditto.
508 * symtab.c (fixup_symbol_section): Ditto.
509 (skip_prologue_sal): Ditto.
510 * tracepoint.c (scope_info): Ditto.
511 * valops.c (find_function_in_inferior): Ditto.
512 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
513 * python/py-symbol.c (set_symbol): Ditto.
515 2014-11-18 Doug Evans <xdje42@gmail.com>
517 * buildsym.c (main_subfile): New static global.
518 (free_subfiles_list): New function.
519 (start_symtab): Set main_subfile.
520 (restart_symtab): Replace init of subfiles, current_subfile with
521 call to free_subfiles_list.
522 (watch_main_source_file_lossage): Use main_subfile.
523 (reset_symtab_globals): Replace init of current_subfile with call
524 to free_subfiles_list.
525 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
526 functions, split out from ...
527 (end_symtab_from_static_block): ... here. Rewrite to call them.
529 2014-11-18 Doug Evans <xdje42@gmail.com>
531 The result of symtab expansion is always a primary symtab.
532 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
533 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
534 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
535 (psymtab_to_symtab): Add comment and assert.
536 (map_matching_symbols_psymtab): Remove unnecessary test for
539 2014-11-15 Doug Evans <xdje42@gmail.com>
542 * symtab.c (find_pc_line_symtab): New function.
543 * symtab.h (find_pc_line_symtab): Declare.
544 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
546 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
547 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
548 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
549 * tui/tui-win.c (make_visible_with_new_height): Ditto.
550 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
551 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
553 2014-11-15 Doug Evans <xdje42@gmail.com>
555 * symtab.c (expand_symtab_containing_pc): Renamed from
556 find_pc_sect_symtab_via_partial. All callers updated.
558 2014-11-15 Yao Qi <yao@codesourcery.com>
560 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
562 2014-11-14 Joel Brobecker <brobecker@adacore.com>
564 * common/common-defs.h: Move <stdarg.h> #include ahead of
567 2014-11-14 Pedro Alves <palves@redhat.com>
569 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
570 [!PHONY_ICONV] (gdb_iconv): New function.
571 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
573 2014-11-13 Doug Evans <dje@google.com>
576 * dwarf2read.c (find_slot_in_mapped_hash): Handle
577 "(anonymous namespace)".
579 2014-11-13 Doug Evans <dje@google.com>
581 * dwarf2read.c (update_enumeration_type_from_children): Avoid
584 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
586 * NEWS (maint set target-async): Fix typo.
588 2014-11-12 Pedro Alves <palves@redhat.com>
590 * infrun.c (enum infwait_states, infwait_state): Delete.
592 2014-11-12 Pedro Alves <palves@redhat.com>
594 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
595 Rewrite stepping over a permanent breakpoint.
596 (thread_still_needs_step_over, proceed): Don't set
597 stepping_over_breakpoint for permanent breakpoints.
598 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
599 single-step breakpoints out of the target on hardware step
601 (process_event_stop_test): If stepping a permanent breakpoint
602 doesn't hit the step-resume breakpoint, delete the step-resume
604 (switch_back_to_stepped_thread): Also check if the stepped thread
605 has advanced already on hardware step targets.
606 (currently_stepping): Return true if the thread stepped a
609 2014-11-12 Pedro Alves <palves@redhat.com>
611 Mark locations as permanent, not the whole breakpoint.
612 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
613 (mark_breakpoints_out): Don't mark permanent breakpoints as
615 (breakpoint_init_inferior): Use mark_breakpoints_out.
616 (breakpoint_here_p): Adjust.
617 (bpstat_stop_status, describe_other_breakpoints): Remove handling
618 of permanent breakpoints.
619 (make_breakpoint_permanent): Mark each location as permanent,
620 instead of marking the breakpoint.
621 (add_location_to_breakpoint): If the location is permanent, mark
622 it as such, and as inserted.
623 (init_breakpoint_sal): Don't make the breakpoint permanent here.
624 (bp_location_compare, update_global_location_list): Adjust.
625 (update_breakpoint_locations): Don't make the breakpoint permanent
627 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
629 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
630 (struct bp_location) <permanent>: New field.
631 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
632 reference to bp_permanent.
634 2014-11-12 Pedro Alves <palves@redhat.com>
636 * arch-utils.c (default_skip_permanent_breakpoint): New function.
637 * arch-utils.h (default_skip_permanent_breakpoint): New
639 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
640 Install default_skip_permanent_breakpoint as default method.
641 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
642 (i386_gdbarch_init): Don't install it.
643 * infrun.c (resume): Assume there's always a
644 gdbarch_skip_permanent_breakpoint implementation.
645 * gdbarch.h, gdbarch.c: Regenerate.
647 2014-11-11 Daniel Colascione <dancol@dancol.org>
649 Warn about cross-PID-namespace debugging.
650 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
651 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
652 * linux-thread-db.c (check_pid_namespace_match): New function.
653 (thread_db_inferior_created): Call it.
655 2014-11-10 Doug Evans <xdje42@gmail.com>
657 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
658 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
660 2014-11-10 Doug Evans <xdje42@gmail.com>
662 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
664 2014-11-10 Doug Evans <xdje42@gmail.com>
667 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
668 (lookup_static_symbol): Move definition to new location and rewrite.
669 (lookup_symbol_in_objfile): New function.
670 (lookup_symbol_global_iterator_cb): Call it.
672 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
674 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
676 2014-11-07 Pedro Alves <palves@redhat.com>
678 * infrun.c (process_event_stop_test) <subroutine check>: Don't
679 check if we did a "nexti" inside a prologue.
680 * symtab.c (in_prologue): Delete function.
681 * symtab.h (in_prologue): Delete declaration.
683 2014-11-06 Doug Evans <xdje42@gmail.com>
685 * symtab.h (lookup_global_symbol): Improve function comment.
687 2014-11-06 Doug Evans <xdje42@gmail.com>
689 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
691 * symtab.h (lookup_global_symbol): Update decl.
692 (lookup_static_symbol): Move decl to better location.
694 2014-11-06 Doug Evans <xdje42@gmail.com>
696 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
698 2014-11-06 Doug Evans <xdje42@gmail.com>
700 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
702 (lookup_symbol_in_all_objfiles): Renamed from
703 lookup_symbol_aux_symtabs. All callers updated.
704 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
706 (lookup_symbol_in_objfile_symtabs): Renamed from
707 lookup_symbol_aux_objfile. All callers updated.
709 2014-11-06 Doug Evans <xdje42@gmail.com>
711 * symtab.c (lookup_symbol_in_block): Renamed from
712 lookup_symbol_aux_block. All callers updated.
714 2014-11-06 Doug Evans <xdje42@gmail.com>
716 * symtab.c (lookup_static_symbol): Renamed from
717 lookup_static_symbol_aux. All callers updated.
718 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
721 2014-11-06 Doug Evans <xdje42@gmail.com>
723 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
724 * block.c (block_lookup_symbol): Use it.
725 * cp-support.c (make_symbol_overload_list_block): Use it.
726 * symtab.c (iterate_over_symbols): Use it.
728 2014-11-06 Doug Evans <xdje42@gmail.com>
730 * symtab.c (lookup_block_symbol): Moved to ...
731 * block.c (block_lookup_symbol): ... here and renamed.
733 * block.h (block_lookup_symbol): Declare.
734 * symtab.h (lookup_block_symbol): Delete.
736 2014-11-06 Doug Evans <xdje42@gmail.com>
738 * ada-lang.c (ada_make_symbol_completion_list): Use
739 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
740 * symtab.c (lookup_objfile_from_block): Ditto.
742 2014-11-06 Doug Evans <xdje42@gmail.com>
744 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
747 2014-11-06 Doug Evans <xdje42@gmail.com>
749 * objfiles.c (get_objfile_arch): Constify.
750 * objfiles.h (get_objfile_arch): Update prototype.
751 * solib.c (solib_global_lookup): Fetch arch from objfile,
754 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
756 * nios2-tdep.c (wild_insn): Delete.
757 (profiler_insn, irqentry_insn): Delete.
758 (nios2_match_sequence): Delete.
759 (nios2_analyze_prologue): Update comments. Remove matching
760 of obsolete profiler_insn and irqentry_insn sequences.
762 2014-11-05 Alan Modra <amodra@gmail.com>
764 * charset.c (convert_between_encodings): Shrink obstack using
766 * minsyms.c (install_minimal_symbols): Likewise.
767 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
768 to char* before doing pointer arithmetic.
770 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
772 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
774 2014-11-04 Pedro Alves <palves@redhat.com>
776 * breakpoint.c (breakpoint_thread_match): Delete function.
777 * breakpoint.h (breakpoint_thread_match): Delete declaration.
779 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
782 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
783 the method args also under EVAL_SKIP when evaluating method
784 calls under EVAL_SKIP.
786 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
788 * dwarf2loc.c (read_pieced_value): Do big endian
789 processing only if gdb_regnum is not -1.
790 (write_pieced_value): Ditto.
792 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
794 * arm-linux-tdep.c (arm_linux_init_abi): Use
795 info.byte_order_for_code to choose endianity of breakpoint
796 instructions snippets.
798 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
800 * arm-tdep.c (extract_arm_insn): Use
801 gdbarch_byte_order_for_code to read arm instruction.
803 2014-11-02 Doug Evans <xdje42@gmail.com>
805 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
807 2014-11-02 Doug Evans <xdje42@gmail.com>
809 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
810 main_subfile before returning.
812 2014-10-31 Doug Evans <xdje42@gmail.com>
814 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
815 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
817 2014-10-31 Doug Evans <xdje42@gmail.com>
819 * valops.c (value_cast_pointers): Fix whitespace.
820 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
823 2014-10-30 Doug Evans <dje@google.com>
825 * NEWS: Mention ability add attributes to gdb.Objfile and
826 gdb.Progspace objects.
827 * python/py-objfile.c (objfile_object): New member dict.
828 (objfpy_dealloc): Py_XDECREF dict.
829 (objfpy_initialize): Initialize dict.
830 (objfile_getset): Add __dict__.
831 (objfile_object_type): Set tp_dictoffset member.
832 * python/py-progspace.c (progspace_object): New member dict.
833 (pspy_dealloc): Py_XDECREF dict.
834 (pspy_initialize): Initialize dict.
835 (pspace_getset): Add __dict__.
836 (pspace_object_type): Set tp_dictoffset member.
838 2014-10-30 Yao Qi <yao@codesourcery.com>
840 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
841 replace '\\' with '\\\\'.
843 2014-10-29 Joel Brobecker <brobecker@adacore.com>
847 2014-10-29 Pedro Alves <palves@redhat.com>
850 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
851 instead of assuming a thread with a stepping range is always
854 2014-10-29 Pedro Alves <palves@redhat.com>
857 * event-top.c (change_line_handler): Call
858 gdb_rl_callback_handler_remove instead of
859 rl_callback_handler_remove.
860 (callback_handler_installed): New global.
861 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
862 (gdb_rl_callback_handler_reinstall): New functions.
863 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
864 gdb_rl_callback_handler_install instead of
865 rl_callback_handler_remove and rl_callback_handler_install.
866 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
867 instead of rl_callback_handler_remove.
868 * event-top.h (gdb_rl_callback_handler_remove)
869 (gdb_rl_callback_handler_install)
870 (gdb_rl_callback_handler_reinstall): New declarations.
871 * infrun.c (reinstall_readline_callback_handler_cleanup): New
873 (fetch_inferior_event): Install it.
874 * top.c (gdb_readline_wrapper_line) Call
875 gdb_rl_callback_handler_remove instead of
876 rl_callback_handler_remove.
877 (gdb_readline_wrapper_cleanup): Don't call
878 rl_callback_handler_install.
880 2014-10-29 Pedro Alves <palves@redhat.com>
882 * event-top.c (command_line_handler): Clear the first byte of
883 linebuffer, when it is first allocated.
885 2014-10-29 Pedro Alves <palves@redhat.com>
887 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
890 2014-10-29 Pedro Alves <palves@redhat.com>
894 * tui/tui-interp.c (tui_is_toplevel): Delete global.
895 (tui_allowed_p): Delete function.
896 * tui/tui.c: Include "interps.h".
897 (tui_enable): Don't use tui_allowed_p. Error out here with
898 detailed error messages if the TUI is the top level interpreter,
899 or if output is not a terminal. Use newterm instead of initscr,
900 and error out if initializing the terminal fails. Also error out if
901 the terminal doesn't support cursor addressing.
902 * tui/tui.h (tui_allowed_p): Delete declaration.
904 2014-10-29 Joel Brobecker <brobecker@adacore.com>
906 * arm-tdep.c (arm_skip_stack_protector): Return early if
907 address loaded by first "ldr" instruction does not have
908 a corresponding minimal symbol. Update comment.
910 2014-10-29 Yao Qi <yao@codesourcery.com>
912 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
913 loaded address correctly of ldr instruction.
915 2014-10-28 Pedro Alves <palves@redhat.com>
918 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
920 * infrun.c (resume) <stepping breakpoint instruction>: Set the
921 thread's stepped_breakpoint field. Skip if reverse debugging.
923 (init_thread_stepping_state, handle_signal_stop): Clear the
924 thread's stepped_breakpoint field.
926 2014-10-27 Pedro Alves <palves@redhat.com>
928 * remote.c (remote_thread_alive): New, factored out from ...
929 (remote_thread_alive): ... this.
930 (remote_update_thread_list): Bail out before deleting threads if
931 the target returned an empty list, and, the current thread has a
934 2014-10-27 Pedro Alves <palves@redhat.com>
936 * infrun.c (handle_signal_stop): Also skip handlers when a random
937 signal arrives while handling a "stepi" or a "nexti". Set the
938 thread's 'step_after_step_resume_breakpoint' flag.
940 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
942 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
943 (arm_record_ld_st_imm_offset): Reimplement to cover all
944 load/store cases for ARM opcode 010.
945 (arm_record_ld_st_multiple): Reimplement to cover all
946 load/store cases for ARM opcode 100.
948 2014-10-26 Doug Evans <xdje42@gmail.com>
950 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
952 2014-10-26 Doug Evans <xdje42@gmail.com>
954 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
955 parameter "kind" to "block_index".
956 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
958 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
960 2014-10-26 Doug Evans <xdje42@gmail.com>
962 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
964 2014-10-26 Doug Evans <xdje42@gmail.com>
966 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
969 2014-10-26 Doug Evans <xdje42@gmail.com>
971 * parser-defs.h (block_found): Move decl from here ...
972 * symtab.h (block_found): ... to here.
974 2014-10-26 Doug Evans <xdje42@gmail.com>
976 * symtab.h (struct field_of_this_result): Fix typo in comment.
977 (lookup_symbol_in_language): Move function comment here.
978 (lookup_symbol): Improve function comment.
979 (basic_lookup_symbol_nonlocal): Ditto.
980 (lookup_symbol_static, lookup_symbol_global): Ditto.
981 (lookup_symbol_aux_block): Ditto.
982 (lookup_language_this): Add function comment.
983 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
985 (lookup_block_symbol): Improve function comment.
986 (lookup_struct): Fix capitalization in function comment.
987 (lookup_transparent_type): Add function comment.
988 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
989 Improve function comment.
990 (lookup_objfile_from_block): Add function comment.
991 * symtab.c (lookup_symbol_in_language): Update function comment.
992 (lookup_symbol, lookup_language_this): Ditto.
993 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
994 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
995 (basic_lookup_symbol_nonlocal): Ditto.
996 (lookup_symbol_static, lookup_symbol_global): Ditto.
997 (lookup_transparent_type, lookup_block_symbol): Ditto.
999 2014-10-25 Doug Evans <xdje42@gmail.com>
1001 * symtab.c (types_info): Delete forward decl.
1002 (functions_info, variables_info, sources_info): Ditto.
1003 (_initialize_symtab): Rewrite forward decl to use
1004 initialize_file_ftype.
1006 2014-10-25 Doug Evans <xdje42@gmail.com>
1008 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1010 2014-10-25 Doug Evans <xdje42@gmail.com>
1012 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1013 of local var child_die.
1015 2014-10-24 Don Breazeal <donb@codesourcery.com>
1017 * infrun.c (follow_fork_inferior): Update fork message printing
1018 to use target_terminal_ours_for_output instead of
1019 target_terminal_ours, to use _() for all format strings, to print
1020 "vfork" instead of "fork" for vforks, and to add a detach message.
1021 (handle_vfork_child_exec_or_exit): Update message printing to use
1022 target_terminal_ours_for_output instead of target_terminal_ours, to
1023 use _() for all format strings, and to fix some formatting.
1025 2014-10-24 Pedro Alves <palves@redhat.com>
1027 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1028 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1029 * config/vax/vax.mh: Delete.
1030 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1031 obsolete configurations section.
1032 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1033 * vax-nat.c: Delete file.
1035 2014-10-24 Pedro Alves <palves@redhat.com>
1037 * NEWS (Removed targets): Add OS/arch column.
1039 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1041 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1042 on the arg type of a constructor only if it is of reference type.
1044 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1046 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1047 accessors and constants from nios2 opcodes update.
1048 (nios2_get_next_pc): Likewise.
1050 2014-10-19 Doug Evans <xdje42@gmail.com>
1052 * gdbthread.h (set_running): Fix comment.
1053 (set_executing, finish_thread_state): Fix comment.
1055 2014-10-18 Doug Evans <xdje42@gmail.com>
1057 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1059 2014-10-17 Doug Evans <dje@google.com>
1061 * NEWS: Mention new event gdb.clear_objfiles.
1062 * python/py-event.h (emit_clear_objfiles_event): Clear
1063 * python/py-events.h (events_object): New member clear_objfiles.
1064 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1066 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1067 emit clear_objfiles event.
1068 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1070 (emit_clear_objfiles_event): New function.
1071 (clear_objfiles): New event.
1072 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1074 * python/python.c (_initialize_python): Call
1075 gdbpy_initialize_clear_objfiles_event.
1077 2014-10-17 Doug Evans <dje@google.com>
1079 * NEWS: Mention new gdb.Objfile.progspace attribute.
1080 * python/py-objfile.c (objfpy_get_progspace): New function.
1081 (objfile_getset): New entry for "progspace".
1083 2014-10-17 Pedro Alves <palves@redhat.com>
1086 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1087 returns a copy of the input.
1088 (run_command_1, continue_command, step_1, jump_command)
1089 (signal_command, until_command, advance_command, finish_command)
1090 (attach_command): Adjust and install a cleanup to free the
1093 2014-10-17 Pedro Alves <palves@redhat.com>
1096 * infcmd.c (continue_1): If continuing all threads in the
1097 foreground, make sure the inferior's terminal settings are put in
1100 2014-10-17 Pedro Alves <palves@redhat.com>
1103 * annotate.c (annotate_breakpoints_invalid): Use
1104 target_terminal_our_for_output instead of target_terminal_ours.
1105 Give back the terminal to the target.
1106 (annotate_frames_invalid): Likewise.
1108 2014-10-17 Pedro Alves <palves@redhat.com>
1110 * target.c (enum terminal_state): New enum.
1111 (terminal_state): New global.
1112 (target_terminal_init): New function.
1113 (target_terminal_inferior): Skip if inferior already owns the
1115 (target_terminal_ours, target_terminal_ours_for_output): New
1117 * target.h (target_terminal_init): Convert to function prototype.
1118 (target_terminal_ours_for_output): Convert to function prototype
1120 (target_terminal_ours): Convert to function prototype and tweak
1122 * windows-nat.c (do_initial_windows_stuff): Call
1123 target_terminal_init instead of child_terminal_init_with_pgrp.
1125 2014-10-17 Pedro Alves <palves@redhat.com>
1127 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1128 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1129 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1131 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1132 * ada-lang.h [__alpha__ && __osf__]
1133 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1134 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1135 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1137 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1139 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1140 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1141 * configure: Regenerate.
1142 * configure.ac: Remove references to osf.
1143 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1144 section. Remove all other references to osf.
1145 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1146 Remove all other references to osf.
1147 * dec-thread.c: Delete file.
1148 * defs.h (GDB_OSABI_OSF1): Delete.
1149 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1151 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1152 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1154 (unconditionally_kill_inferior)
1155 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1156 * solib-osf.c: Delete file.
1158 2014-10-17 Pedro Alves <palves@redhat.com>
1160 * remote.c (clear_threads_listing_context): Move higher up, out of
1161 the HAVE_LIBEXPAT guard.
1163 2014-10-16 Tristan Gingold <gingold@adacore.com>
1165 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1166 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1169 2014-10-15 Pedro Alves <palves@redhat.com>
1171 * dec-thread.c (dec_thread_count_gdb_threads)
1172 (dec_thread_add_gdb_thread): Delete.
1173 (dec_thread_update_thread_list): Delete.
1174 (dec_thread_find_new_threads): Rename to ...
1175 (dec_thread_update_thread_list): ... this. Delete GDB-size
1176 threads that are no longer found in dec_thread_list.
1177 (resync_thread_list): Delete.
1178 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1181 2014-10-15 Pedro Alves <palves@redhat.com>
1183 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1184 * remote.c (remote_update_thread_list): Skip calling prune_threads
1185 if any thread listing method is supported, and instead walk over
1186 the set of remote threads listed, deleting those that are not
1187 found in GDB's thread list.
1189 2014-10-15 Pedro Alves <palves@redhat.com>
1191 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1192 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1193 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1194 (bsd_uthread_target): Adjust.
1195 * corelow.c (core_open): Adjust.
1196 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1197 (dec_thread_update_thread_list): New function.
1198 (init_dec_thread_ops): Adjust.
1199 * gdbthread.h (prune_threads): New declaration.
1200 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1201 (thread_db_update_thread_list): ... this. Call prune_threads.
1202 (init_thread_db_ops): Adjust.
1203 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1204 (procfs_update_thread_list): ... this. Call prune_threads.
1205 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1207 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1208 (obsd_update_thread_list): ... this. Call prune_threads.
1209 (obsd_add_target): Adjust.
1210 * procfs.c (procfs_target): Adjust.
1211 (procfs_notice_thread): Update comment.
1212 (procfs_find_new_threads): Rename to ...
1213 (procfs_update_thread_list): ... this. Call prune_threads.
1214 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1216 (ravenscar_wait): Adjust.
1217 (ravenscar_find_new_threads): Rename to ...
1218 (ravenscar_update_thread_list): ... this. Call prune_threads.
1219 (init_ravenscar_thread_ops): Adjust.
1220 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1221 (record_btrace_update_thread_list): ... this. Adjust comment.
1222 (init_record_btrace_ops): Adjust.
1223 * remote.c (remote_threads_info): Rename to ...
1224 (remote_update_thread_list): ... this. Call prune_threads.
1225 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1227 * sol-thread.c (check_for_thread_db): Adjust.
1228 (sol_find_new_threads_callback): Rename to ...
1229 (sol_update_thread_list_callback): ... this.
1230 (sol_find_new_threads): Rename to ...
1231 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1232 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1233 * target-delegates.c: Regenerate.
1234 * target.c (target_find_new_threads): Rename to ...
1235 (target_update_thread_list): ... this.
1236 * target.h (struct target_ops): Rename to_find_new_threads field
1237 to to_update_thread_list.
1238 (target_find_new_threads): Rename to ...
1239 (target_update_thread_list): ... this.
1240 * thread.c (prune_threads): Make extern.
1241 (update_thread_list): Adjust.
1243 2014-10-15 Pedro Alves <palves@redhat.com>
1245 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1246 Add describing comment. Return -1 if the qL packet is not
1248 (struct thread_item, thread_item_t): Move higher up in
1249 the file. Add comments.
1250 (struct threads_parsing_context): Move higher up in
1251 the file, add comments, and remote to ...
1252 (struct threads_listing_context): ... this.
1253 (remote_newthread_step): Don't add the thread to GDB's thread
1254 database here. Instead push it to the thread_listing_context
1256 (remote_find_new_threads): Rename to ...
1257 (remote_get_threads_with_ql): ... this. Add target_ops and
1258 targets_listing_context parameters. Pass down context.
1259 (start_thread): Adjust.
1260 (clear_threads_parsing_context): Rename to ...
1261 (clear_threads_listing_context): ... this.
1262 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1263 remote_threads_info.
1264 (remote_get_threads_with_qthreadinfo): Ditto.
1265 (remote_threads_info): Reimplement.
1267 2014-10-15 Pedro Alves <palves@redhat.com>
1269 * infrun.c (resume): Don't force displaced-stepping for all
1270 single-steps on software single-stepping archs.
1272 2014-10-15 Pedro Alves <palves@redhat.com>
1274 * breakpoint.c (single_step_breakpoints): Delete global.
1275 (insert_single_step_breakpoint): Adjust to store the breakpoint
1276 pointer in the current thread.
1277 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1278 (cancel_single_step_breakpoints): Delete functions.
1279 (breakpoint_has_location_inserted_here): Make extern.
1280 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1282 * breakpoint.h (breakpoint_has_location_inserted_here): New
1284 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1285 (cancel_single_step_breakpoints): Remove declarations.
1286 * gdbthread.h (struct thread_control_state)
1287 <single_step_breakpoints>: New field.
1288 (delete_single_step_breakpoints)
1289 (thread_has_single_step_breakpoints_set)
1290 (thread_has_single_step_breakpoint_here): New declarations.
1291 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1292 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1293 (singlestep_pc): Delete globals.
1294 (infrun_thread_ptid_changed): Remove references to removed
1296 (resume_cleanups): Delete the current thread's single-step
1298 (maybe_software_singlestep): Remove references to removed globals.
1299 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1300 delete_single_step_breakpoints.
1301 (init_wait_for_inferior): Remove references to removed globals.
1302 (delete_thread_infrun_breakpoints): Delete the thread's
1303 single-step breakpoints too.
1304 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1305 single-step breakpoints here.
1306 (delete_stopped_threads_single_step_breakpoints): New function.
1307 (adjust_pc_after_break): Adjust to use
1308 thread_has_single_step_breakpoints_set.
1309 (handle_inferior_event): Remove references to removed globals.
1310 Use delete_stopped_threads_single_step_breakpoints.
1311 (handle_signal_stop): Adjust to per-thread single-step
1312 breakpoints. Swap test order to do cheaper tests first.
1313 (switch_back_to_stepped_thread): Extend debug output. Remove
1314 references to removed globals.
1315 * record-full.c (record_full_wait_1): Adjust to per-thread
1316 single-step breakpoints.
1317 * thread.c (delete_single_step_breakpoints)
1318 (thread_has_single_step_breakpoints_set)
1319 (thread_has_single_step_breakpoint_here): New functions.
1320 (clear_thread_inferior_resources): Also delete the thread's
1321 single-step breakpoints.
1323 2014-10-15 Pedro Alves <palves@redhat.com>
1325 * thread.c (delete_thread_breakpoint): New function.
1326 (delete_step_resume_breakpoint)
1327 (delete_exception_resume_breakpoint): Use it.
1328 (delete_at_next_stop): New function.
1329 (clear_thread_inferior_resources): Use delete_at_next_stop.
1331 2014-10-15 Pedro Alves <palves@redhat.com>
1333 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1334 (breakpoint_inserted_here_p): ... here. Remove special case for
1335 software single-step breakpoints.
1336 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1337 (software_breakpoint_inserted_here_p): ... here. Remove special
1338 case for software single-step breakpoints.
1339 (bp_target_info_copy_insertion_state)
1340 (deprecated_insert_raw_breakpoint)
1341 (deprecated_remove_raw_breakpoint): Delete functions.
1342 * breakpoint.h (deprecated_insert_raw_breakpoint)
1343 (deprecated_remove_raw_breakpoint): Remove declarations.
1345 2014-10-15 Pedro Alves <palves@redhat.com>
1348 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1349 Delete array globals.
1350 (single_step_breakpoints): New global.
1351 (breakpoint_xfer_memory): Remove special handling for single-step
1353 (update_breakpoints_after_exec): Delete bp_single_step
1355 (detach_breakpoints): Remove special handling for single-step
1357 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1358 (bpstat_stop_status): Add comment.
1359 (bpstat_what, bptype_string, print_one_breakpoint_location)
1360 (adjust_breakpoint_address, init_bp_location): Handle
1362 (new_single_step_breakpoint): New function.
1363 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1364 handling for single-step breakpoints.
1365 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1366 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1368 (detach_single_step_breakpoints, find_single_step_breakpoint):
1370 (breakpoint_has_location_inserted_here): New function.
1371 (single_step_breakpoint_inserted_here_p): Rewrite.
1372 * breakpoint.h: Remove FIXME.
1373 (enum bptype) <bp_single_step>: New enum value.
1374 (insert_single_step_breakpoint): Update comment.
1375 * infrun.c (resume_cleanups)
1376 (delete_step_thread_step_resume_breakpoint): Remove single-step
1378 (fetch_inferior_event): Install a cleanup that removes infrun
1380 (switch_back_to_stepped_thread) <expect thread advanced also>:
1381 Clear step-over info.
1383 2014-10-15 Pedro Alves <palves@redhat.com>
1385 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1386 (delete_thread_infrun_breakpoints): New function, with parts
1387 salvaged from delete_step_resume_breakpoint_callback.
1388 (delete_step_thread_step_resume_breakpoint): Delete.
1389 (for_each_just_stopped_thread_callback_func): New typedef.
1390 (for_each_just_stopped_thread): New function.
1391 (delete_just_stopped_threads_infrun_breakpoints): New function.
1392 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1393 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1395 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1397 2014-10-15 Pedro Alves <palves@redhat.com>
1399 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1400 trying to step past a non-steppable watchpoint.
1401 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1403 * infrun.c (struct step_over_info): Add new field
1404 'nonsteppable_watchpoint_p' and adjust comments.
1405 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1407 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1408 (stepping_past_nonsteppable_watchpoint): New function.
1409 (step_over_info_valid_p): Also return true if stepping past a
1410 nonsteppable watchpoint.
1411 (proceed): Adjust call to set_step_over_info. Remove reference to
1413 (init_wait_for_inferior): Remove reference to init_infwait_state.
1414 (waiton_ptid): Delete global.
1415 (struct execution_control_state)
1416 <stepped_after_stopped_by_watchpoint>: Delete field.
1417 (wait_for_inferior, fetch_inferior_event): Always pass
1418 minus_one_ptid to target_wait.
1419 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1421 (init_infwait_state): Delete function.
1422 (handle_inferior_event): Remove infwait_state handling.
1423 (handle_signal_stop) <watchpoints handling>: Adjust after
1424 stepped_after_stopped_by_watchpoint removal. Don't remove
1425 breakpoints here nor set infwait_state. Set the thread's
1426 stepping_over_watchpoint flag, and call keep_going instead.
1427 (keep_going): Handle stepping_over_watchpoint. Adjust
1428 set_step_over_info calls.
1429 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1432 2014-10-15 Pedro Alves <palves@redhat.com>
1434 * infrun.c (step_over_info_valid_p): New function.
1435 (resume): Use step_over_info_valid_p instead of checking the
1436 threads's trap_expected flag.
1438 2014-10-15 Doug Evans <dje@google.com>
1439 Walfred Tedeschi <walfred.tedeschi@intel.com>
1442 * python/lib/gdb/__init__.py (packages): Add "printer".
1443 * python/lib/gdb/command/bound_registers.py: Moved to ...
1444 * python/lib/gdb/printer/bound_registers.py: ... here.
1445 Add printer to global set of builtin printers. Rename printer from
1446 "bound" to "mpx_bound128".
1447 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1448 registered as global "builtin" printer.
1449 (add_builtin_pretty_printer): New function.
1450 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1451 gdb/printer/__init__.py.
1453 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1455 * Makefile.in (SFILES): Remove d-support.c.
1456 (COMMON_OBS): Remove d-support.o.
1457 * d-lang.h (d_parse_symbol): Remove declaration.
1458 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1459 * d-support.c: Remove file.
1461 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1463 * gdb/infrun.c (process_event_stop_test): Apply
1464 gdbarch_addr_bits_remove to longjmp resume address.
1466 2014-10-15 Pedro Alves <palves@redhat.com>
1468 * regformats/microblaze.dat: Delete file.
1470 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1472 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1473 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1475 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1477 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1480 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1484 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1485 with qualified args.
1487 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1489 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1490 of the case where the second operand is a pointer.
1491 <BINOP_SUB>: Likewise.
1493 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1495 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1496 only if it is not NULL.
1497 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1498 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1499 (struct probe_ops) <clear_semaphore>: Likewise.
1500 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1502 (stop_tracing): Likewise, for clear_semaphore.
1504 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1506 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1507 using language_c, instead of current_language.
1509 2014-10-13 Doug Evans <dje@google.com>
1511 * python/py-objfile.c (objfpy_initialize): New function.
1512 (objfpy_new, objfile_to_objfile_object): Call it.
1513 * python/py-progspace.c (pspy_initialize): New function.
1514 (pspy_new, pspace_to_pspace_object): Call it.
1516 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1517 Jan Kratochvil <jan.kratochvil@redhat.com>
1519 Fix "save breakpoints" for "catch" command.
1520 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1523 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1525 Fix "save breakpoints" for "disable $bpnum" command.
1526 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1528 2014-10-10 Pedro Alves <palves@redhat.com>
1530 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1531 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1532 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1533 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1535 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1536 * configure.ac: Remove references to IRIX.
1537 * configure.host: Add *-*-irix* to the obsolete hosts section.
1538 Remove all other references to irix.
1539 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1542 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1544 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1545 isn't valid, release the tdesc arch data and return NULL.
1547 2014-10-10 Pedro Alves <palves@redhat.com>
1549 * linux-tdep.c: Include observer.h.
1550 (linux_inferior_data): New global.
1551 (struct linux_info): New structure.
1552 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1553 (get_linux_inferior_data): New functions.
1554 (linux_vsyscall_range): Rename to ...
1555 (linux_vsyscall_range_raw): ... this.
1556 (linux_vsyscall_range): New function; handles caching.
1557 (_initialize_linux_tdep): Register linux_inferior_data. Install
1558 inferior_exit and inferior_appeared observers.
1560 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1561 Pedro Alves <palves@redhat.com>
1564 * solib-svr4.c (svr4_read_so_list): Rename to ...
1565 (svr4_current_sos_1): ... this and change the function comment.
1566 (svr4_current_sos): New function.
1568 2014-10-10 Pedro Alves <palves@redhat.com>
1570 * arch-utils.c (default_vsyscall_range): New function.
1571 * arch-utils.h (default_vsyscall_range): New declaration.
1572 * gdbarch.sh (vsyscall_range): New hook.
1573 * gdbarch.h, gdbarch.c: Regenerate.
1574 * linux-tdep.c (linux_vsyscall_range): New function.
1575 (linux_init_abi): Install linux_vsyscall_range as
1576 vsyscall_range gdbarch hook.
1577 * memrange.c (address_in_mem_range): New function.
1578 * memrange.h (address_in_mem_range): New declaration.
1579 * symfile-mem.c (find_vdso_size): Delete function.
1580 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1582 2014-10-10 Pedro Alves <palves@redhat.com>
1584 * infrun.c (normal_stop): Fix typo in comment.
1586 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1589 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1590 typo when using logical AND to determine instruction type.
1592 2014-10-09 Yao Qi <yao@codesourcery.com>
1594 * infrun.c (handle_signal_stop): Remove local variable
1597 2014-10-08 Stan Shebs <stan@codesourcery.com>
1599 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1601 2014-10-08 Gary Benson <gbenson@redhat.com>
1603 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1605 2014-10-08 Gary Benson <gbenson@redhat.com>
1607 * common/common-defs.h: Include common-exceptions.h.
1608 * exceptions.h: Do not include common-exceptions.h.
1610 2014-10-08 Gary Benson <gbenson@redhat.com>
1612 * common/common-defs.h: Include cleanups.h.
1613 * common/common-exceptions.c: Do not include cleanups.h.
1614 * utils.h: Likewise.
1616 2014-10-08 Gary Benson <gbenson@redhat.com>
1618 * ada-lang.c: Do not include exceptions.h.
1619 * ada-valprint.c: Likewise.
1620 * amd64-tdep.c: Likewise.
1621 * auto-load.c: Likewise.
1622 * block.c: Likewise.
1623 * break-catch-throw.c: Likewise.
1624 * breakpoint.c: Likewise.
1625 * btrace.c: Likewise.
1626 * c-lang.c: Likewise.
1627 * cli/cli-cmds.c: Likewise.
1628 * cli/cli-interp.c: Likewise.
1629 * cli/cli-script.c: Likewise.
1630 * completer.c: Likewise.
1631 * corefile.c: Likewise.
1632 * corelow.c: Likewise.
1633 * cp-abi.c: Likewise.
1634 * cp-support.c: Likewise.
1635 * cp-valprint.c: Likewise.
1636 * darwin-nat.c: Likewise.
1637 * dwarf2-frame-tailcall.c: Likewise.
1638 * dwarf2-frame.c: Likewise.
1639 * dwarf2loc.c: Likewise.
1640 * dwarf2read.c: Likewise.
1642 * event-loop.c: Likewise.
1643 * event-top.c: Likewise.
1644 * f-valprint.c: Likewise.
1645 * frame-unwind.c: Likewise.
1646 * frame.c: Likewise.
1647 * gdbtypes.c: Likewise.
1648 * gnu-v2-abi.c: Likewise.
1649 * gnu-v3-abi.c: Likewise.
1650 * guile/scm-auto-load.c: Likewise.
1651 * guile/scm-breakpoint.c: Likewise.
1652 * guile/scm-cmd.c: Likewise.
1653 * guile/scm-frame.c: Likewise.
1654 * guile/scm-lazy-string.c: Likewise.
1655 * guile/scm-param.c: Likewise.
1656 * guile/scm-symbol.c: Likewise.
1657 * guile/scm-type.c: Likewise.
1658 * hppa-hpux-tdep.c: Likewise.
1659 * i386-tdep.c: Likewise.
1660 * inf-loop.c: Likewise.
1661 * infcall.c: Likewise.
1662 * infcmd.c: Likewise.
1663 * infrun.c: Likewise.
1664 * interps.c: Likewise.
1665 * interps.h: Likewise.
1667 * linespec.c: Likewise.
1668 * linux-nat.c: Likewise.
1669 * linux-thread-db.c: Likewise.
1670 * m32r-rom.c: Likewise.
1672 * memory-map.c: Likewise.
1673 * mi/mi-cmd-break.c: Likewise.
1674 * mi/mi-cmd-stack.c: Likewise.
1675 * mi/mi-interp.c: Likewise.
1676 * mi/mi-main.c: Likewise.
1677 * monitor.c: Likewise.
1678 * nto-procfs.c: Likewise.
1679 * objc-lang.c: Likewise.
1680 * p-valprint.c: Likewise.
1681 * parse.c: Likewise.
1682 * ppc-linux-tdep.c: Likewise.
1683 * printcmd.c: Likewise.
1684 * probe.c: Likewise.
1685 * python/py-auto-load.c: Likewise.
1686 * python/py-breakpoint.c: Likewise.
1687 * python/py-cmd.c: Likewise.
1688 * python/py-finishbreakpoint.c: Likewise.
1689 * python/py-frame.c: Likewise.
1690 * python/py-framefilter.c: Likewise.
1691 * python/py-function.c: Likewise.
1692 * python/py-gdb-readline.c: Likewise.
1693 * python/py-inferior.c: Likewise.
1694 * python/py-infthread.c: Likewise.
1695 * python/py-lazy-string.c: Likewise.
1696 * python/py-linetable.c: Likewise.
1697 * python/py-param.c: Likewise.
1698 * python/py-prettyprint.c: Likewise.
1699 * python/py-symbol.c: Likewise.
1700 * python/py-type.c: Likewise.
1701 * python/py-value.c: Likewise.
1702 * python/python-internal.h: Likewise.
1703 * python/python.c: Likewise.
1704 * record-btrace.c: Likewise.
1705 * record-full.c: Likewise.
1706 * regcache.c: Likewise.
1707 * remote-fileio.c: Likewise.
1708 * remote-mips.c: Likewise.
1709 * remote.c: Likewise.
1710 * rs6000-aix-tdep.c: Likewise.
1711 * rs6000-nat.c: Likewise.
1713 * solib-darwin.c: Likewise.
1714 * solib-dsbt.c: Likewise.
1715 * solib-frv.c: Likewise.
1716 * solib-ia64-hpux.c: Likewise.
1717 * solib-spu.c: Likewise.
1718 * solib-svr4.c: Likewise.
1719 * solib.c: Likewise.
1720 * spu-tdep.c: Likewise.
1721 * stack.c: Likewise.
1722 * stap-probe.c: Likewise.
1723 * symfile-mem.c: Likewise.
1724 * symmisc.c: Likewise.
1725 * target.c: Likewise.
1726 * thread.c: Likewise.
1728 * tracepoint.c: Likewise.
1729 * tui/tui-interp.c: Likewise.
1730 * typeprint.c: Likewise.
1731 * utils.c: Likewise.
1732 * valarith.c: Likewise.
1733 * valops.c: Likewise.
1734 * valprint.c: Likewise.
1735 * value.c: Likewise.
1736 * varobj.c: Likewise.
1737 * windows-nat.c: Likewise.
1738 * xml-support.c: Likewise.
1740 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1742 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1744 (extended_mips16_next_pc): Update accordingly.
1746 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1748 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1750 (micromips_instruction_is_compact_branch): Likewise.
1751 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1752 or a compact jump, reaching a jump delay slot, or seeing a
1753 second non-prologue instruction.
1754 (micromips_scan_prologue): Also terminate scanning upon seeing a
1755 compact branch or jump, or reaching a branch or jump delay slot.
1756 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1757 or jump delay slot, or seeing a second non-prologue instruction.
1758 (mips32_instruction_has_delay_slot): Retain instruction
1759 examination code only, update arguments accordingly and move
1760 instruction fetch pieces to...
1761 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1762 (micromips_instruction_has_delay_slot): Likewise and to...
1763 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1764 (mips16_instruction_has_delay_slot): Likewise and to...
1765 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1766 (mips_single_step_through_delay): Update accordingly.
1767 (mips_adjust_breakpoint_address): Likewise.
1769 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1771 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1772 !mustbe32 also return 1 for 32-bit instructions.
1773 (mips16_instruction_has_delay_slot): Likewise. Add an
1774 explanatory comment.
1776 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1778 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1781 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1783 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1785 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1786 for the breakpoint's address. Don't preinitialize `placed_size'.
1787 (insert_bp_location): Set `reqstd_address' rather than
1789 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1790 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1792 (bkpt_remove_location): Likewise.
1793 (deprecated_insert_raw_breakpoint): Likewise.
1794 (deprecated_remove_raw_breakpoint): Likewise.
1795 (find_single_step_breakpoint): Likewise.
1796 * mem-break.c (default_memory_insert_breakpoint): Use
1797 `reqstd_address' for the breakpoint's address. Don't set
1798 `placed_address' or `placed_size' if breakpoint contents couldn't
1799 have been determined.
1800 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1801 the breakpoint's address.
1802 (remote_insert_hw_breakpoint): Likewise. Don't set
1803 `placed_address' or `placed_size' if breakpoint couldn't have been
1805 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1806 `reqstd_address' for the breakpoint's address.
1807 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1808 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1809 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1810 * microblaze-linux-tdep.c
1811 (microblaze_linux_memory_remove_breakpoint): Likewise.
1812 * monitor.c (monitor_insert_breakpoint): Likewise.
1813 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1814 (procfs_insert_hw_breakpoint): Likewise.
1815 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1816 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1817 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1818 * remote-mips.c (mips_insert_breakpoint): Likewise.
1819 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1821 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1823 * valops.c (value_assign): Check for bit field assignments
1824 before calling architecture-specific register value
1825 conversion functions.
1827 2014-10-03 Pierre Muller <muller@sourceware.org>
1829 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1831 2014-10-02 Pedro Alves <palves@redhat.com>
1833 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1834 threads_are_executing.
1835 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1837 * gdbthread.h (threads_are_executing): Declare.
1838 (handle_signal_stop) <random signals>: Don't print about the
1839 signal here if stopping.
1840 (end_stepping_range): Don't notify observers here.
1841 (normal_stop): Update the thread list. If stopped by a random
1842 signal or a stepping range ended, notify observers.
1843 * thread.c (threads_executing): New global.
1844 (init_thread_list): Clear 'threads_executing'.
1845 (set_executing): Set or clear 'threads_executing'.
1846 (threads_are_executing): New function.
1847 (update_threads_executing): New function.
1848 (update_thread_list): Use it.
1850 2014-10-02 Pedro Alves <palves@redhat.com>
1852 PR breakpoints/17431
1853 * breakpoint.c (update_breakpoints_after_exec): Don't create
1854 overlay, longjmp, std terminate nor exception breakpoints here.
1856 2014-10-02 Pedro Alves <palves@redhat.com>
1858 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1860 * inferior.c (find_inferior_for_program_space): Give preference to
1861 the current inferior.
1862 * inferior.h (find_inferior_for_program_space): Update comment.
1863 * progspace.c (switch_to_program_space_and_thread): Prefer the
1864 current inferior if it's bound to the program space requested. If
1865 the inferior found doesn't have a PID yet, don't bother looking up
1867 * progspace.h (switch_to_program_space_and_thread): Adjust
1869 * thread.c (any_thread_of_process, any_live_thread_of_process):
1870 Give preference to the current thread.
1872 2014-10-01 Pedro Alves <palves@redhat.com>
1874 * breakpoint.c (insert_bp_location): Error out if inserting a
1875 software breakpoint at a read-only address.
1876 * target.c (memory_xfer_check_region): New function, factored out
1878 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1880 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1881 against the memory region attributes.
1883 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1885 * NEWS: Announce new exit-code field in -list-thread-groups
1887 * inferior.c (exit_inferior_1): Don't clear exit code.
1888 (inferior_appeared): Clear exit code.
1889 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1892 2014-10-01 Pedro Alves <palves@redhat.com>
1894 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1895 GENERATED" along with emacs/vi read-only markers.
1896 * regformats/aarch64.dat: Regenerate.
1897 * regformats/arm-with-iwmmxt.dat: Regenerate.
1898 * regformats/arm-with-neon.dat: Regenerate.
1899 * regformats/arm-with-vfpv2.dat: Regenerate.
1900 * regformats/arm-with-vfpv3.dat: Regenerate.
1901 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1902 * regformats/i386/amd64-avx.dat: Regenerate.
1903 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1904 * regformats/i386/amd64-avx512.dat: Regenerate.
1905 * regformats/i386/amd64-linux.dat: Regenerate.
1906 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1907 * regformats/i386/amd64-mpx.dat: Regenerate.
1908 * regformats/i386/amd64.dat: Regenerate.
1909 * regformats/i386/i386-avx-linux.dat: Regenerate.
1910 * regformats/i386/i386-avx.dat: Regenerate.
1911 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1912 * regformats/i386/i386-avx512.dat: Regenerate.
1913 * regformats/i386/i386-linux.dat: Regenerate.
1914 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1915 * regformats/i386/i386-mmx.dat: Regenerate.
1916 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1917 * regformats/i386/i386-mpx.dat: Regenerate.
1918 * regformats/i386/i386.dat: Regenerate.
1919 * regformats/i386/x32-avx-linux.dat: Regenerate.
1920 * regformats/i386/x32-avx.dat: Regenerate.
1921 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1922 * regformats/i386/x32-avx512.dat: Regenerate.
1923 * regformats/i386/x32-linux.dat: Regenerate.
1924 * regformats/i386/x32.dat: Regenerate.
1925 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1926 * regformats/mips-dsp-linux.dat: Regenerate.
1927 * regformats/mips-linux.dat: Regenerate.
1928 * regformats/mips64-dsp-linux.dat: Regenerate.
1929 * regformats/mips64-linux.dat: Regenerate.
1930 * regformats/nios2-linux.dat: Regenerate.
1931 * regformats/rs6000/powerpc-32.dat: Regenerate.
1932 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1933 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1934 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1935 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1936 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1937 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1938 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1939 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1940 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1941 * regformats/s390-linux32.dat: Regenerate.
1942 * regformats/s390-linux32v1.dat: Regenerate.
1943 * regformats/s390-linux32v2.dat: Regenerate.
1944 * regformats/s390-linux64.dat: Regenerate.
1945 * regformats/s390-linux64v1.dat: Regenerate.
1946 * regformats/s390-linux64v2.dat: Regenerate.
1947 * regformats/s390-te-linux64.dat: Regenerate.
1948 * regformats/s390x-linux64.dat: Regenerate.
1949 * regformats/s390x-linux64v1.dat: Regenerate.
1950 * regformats/s390x-linux64v2.dat: Regenerate.
1951 * regformats/s390x-te-linux64.dat: Regenerate.
1952 * regformats/tic6x-c62x-linux.dat: Regenerate.
1953 * regformats/tic6x-c62x.dat: Regenerate.
1954 * regformats/tic6x-c64x-linux.dat: Regenerate.
1955 * regformats/tic6x-c64x.dat: Regenerate.
1956 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1957 * regformats/tic6x-c64xp.dat: Regenerate.
1959 2014-10-01 Pedro Alves <palves@redhat.com>
1961 * features/Makefile: Update comments.
1962 (XMLTOC): List all xml files we build C files from.
1963 (clean-cfiles): New rule.
1965 2014-10-01 Pedro Alves <palves@redhat.com>
1967 * features/i386/amd64-avx512-linux.c: Regenerate.
1968 * features/i386/amd64-avx512.c: Regenerate.
1969 * features/i386/x32-avx512-linux.c: Regenerate.
1970 * features/i386/x32-avx512.c: Regenerate.
1972 2014-10-01 Pedro Alves <palves@redhat.com>
1974 * features/Makefile (WHICH): Remove arm-with-m,
1975 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1977 2014-10-01 Pedro Alves <palves@redhat.com>
1979 * features/Makefile (clean): New rule.
1981 2014-10-01 Pedro Alves <palves@redhat.com>
1983 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1984 (zmm14h): Add missing end quotes.
1986 2014-10-01 Pedro Alves <palves@redhat.com>
1988 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1989 * features/aarch64.c: Regenerate.
1991 2014-09-30 Don Breazeal <donb@codesourcery.com>
1993 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1994 code so as to work with follow_fork_inferior.
1995 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1996 (inf_ttrace_create_inferior): Remove reference to
1997 inf_ttrace_vfork_ppid.
1998 (inf_ttrace_attach): Ditto.
1999 (inf_ttrace_detach): Ditto.
2000 (inf_ttrace_kill): Use current_inferior instead of
2001 inf_ttrace_vfork_ppid.
2002 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2003 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2004 inferior away from the parent.
2005 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2007 (follow_fork_inferior): New function.
2008 (follow_inferior_reset_breakpoints): Make function static.
2009 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2010 * linux-nat.c (linux_child_follow_fork): Move target-independent
2011 code to infrun.c:follow_fork_inferior.
2013 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2015 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2016 * gdbarch.c: Regenerate.
2017 * gdbarch.h: Likewise.
2018 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2019 gdbarch method 'regset_from_core_section'.
2020 (get_core_register_section): Remove handling for the case that
2021 regset == NULL and regset_from_core_section is defined.
2022 (get_core_registers): Drop check for deleted method.
2023 * procfs.c (procfs_do_thread_registers): Adjust comment.
2025 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2027 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2028 (linux_nat_make_corefile_notes): Remove.
2029 (linux_target_install_ops): Do not set target method
2030 'make_corefile_notes'.
2031 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2033 (linux_corefile_thread_callback): Instead of args->collect, call
2034 linux_collect_thread_registers.
2035 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2036 NULL unless there is a regset iterator.
2037 (linux_make_corefile_notes_1): Remove.
2038 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2039 by linux_make_corefile_notes.
2040 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2042 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2044 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2045 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2047 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2049 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2051 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2052 (xtensa_iterate_over_regset_sections): New.
2053 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2055 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2057 * vax-tdep.c (vax_regset_from_core_section): Remove.
2058 (vax_iterate_over_regset_sections): New.
2059 (vax_gdbarch_init): Adjust gdbarch initialization.
2061 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2063 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2064 (tilegx_regset_from_core_section): Remove.
2065 (tilegx_iterate_over_regset_sections): New.
2066 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2068 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2070 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2071 (sparc_iterate_over_regset_sections): New.
2072 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2073 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2075 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2076 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2077 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2078 target method 'make_corefile_notes'.
2080 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2082 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2083 'sizeof_gregset' and 'sizeof_fpregset'.
2084 * sh-tdep.c (sh_regset_from_core_section): Remove.
2085 (sh_iterate_over_regset_sections): New.
2086 (sh_gdbarch_init): Adjust gdbarch initialization.
2087 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2089 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2092 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2094 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2095 (score7_linux_iterate_over_regset_sections): New.
2096 (score_gdbarch_init): Adjust gdbarch initialization.
2098 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2100 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2102 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2103 method 'make_corefile_notes'.
2104 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2105 (ppcfbsd_regset_from_core_section): Remove.
2106 (ppcfbsd_iterate_over_regset_sections): New.
2107 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2109 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2110 (ppcnbsd_iterate_over_regset_sections): New.
2111 (ppcnbsd_init_abi): Adjust.
2112 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2113 (ppcobsd_iterate_over_regset_sections): New.
2114 (ppcobsd_init_abi): Adjust.
2115 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2116 (rs6000_aix_iterate_over_regset_sections): New.
2117 (rs6000_aix_init_osabi): Adjust.
2119 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2121 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2122 (nios2_regset_from_core_section): Remove.
2123 (nios2_iterate_over_regset_sections): New.
2124 (nios2_linux_init_abi): Adjust gdbarch initialization.
2126 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2128 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2129 (am33_iterate_over_regset_sections): New.
2130 (am33_linux_init_osabi): Adjust gdbarch initialization.
2132 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2134 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2135 (mips_linux_iterate_over_regset_sections): New.
2136 (mips_linux_init_abi): Adjust gdbarch initialization.
2137 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2138 (mips64obsd_iterate_over_regset_sections): New.
2139 (mips64obsd_init_abi): Adjust.
2140 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2141 (mipsnbsd_iterate_over_regset_sections): New.
2142 (mipsnbsd_init_abi): Adjust.
2144 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2146 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2147 (m88k_iterate_over_regset_sections): New.
2148 (m88k_gdbarch_init): Adjust gdbarch initialization.
2150 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2152 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2153 (ia64_linux_iterate_over_regset_sections): New.
2154 (ia64_linux_init_abi): Adjust gdbarch initialization.
2156 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2158 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2159 (m68kbsd_iterate_over_regset_sections): New.
2160 (m68kbsd_init_abi): Adjust gdbarch initialization.
2161 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2162 (m68k_linux_iterate_over_regset_sections): New.
2163 (m68k_linux_init_abi): Adjust gdbarch initialization.
2165 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2167 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2168 (m32r_linux_regset_from_core_section): Remove.
2169 (m32r_linux_iterate_over_regset_sections): New.
2170 (m32r_linux_init_abi): Adjust gdbarch initialization.
2172 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2174 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2175 (amd64obsd_iterate_over_regset_sections): New.
2176 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2177 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2179 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2180 regset_from_core_section initialization.
2181 * i386-tdep.c (i386_regset_from_core_section): Remove.
2182 (i386_iterate_over_regset_sections): New.
2183 (i386_gdbarch_init): Adjust gdbarch initialization.
2184 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2185 (i386_iterate_over_regset_sections): New prototype.
2186 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2188 (i386obsd_aout_iterate_over_regset_sections): New.
2189 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2190 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2192 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2193 (amd64fbsd_init_abi): Call fbsd_init_abi.
2194 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2195 (i386fbsd4_init_abi): Call fbsd_init_abi.
2196 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2197 target method 'make_corefile_notes'.
2198 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2200 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2202 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2203 (hppa_hpux_iterate_over_regset_sections): New.
2204 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2205 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2206 (hppa_linux_iterate_over_regset_sections): New.
2207 (hppa_linux_init_abi): Adjust.
2208 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2209 (hppanbsd_iterate_over_regset_sections): New.
2210 (hppanbsd_init_abi): Adjust.
2211 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2212 (hppaobsd_iterate_over_regset_sections): New.
2213 (hppaobsd_init_abi): Adjust.
2215 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2217 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2218 (frv_linux_iterate_over_regset_sections): New.
2219 (frv_linux_init_abi): Adjust gdbarch initialization.
2221 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2223 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2224 (armbsd_iterate_over_regset_sections): New prototype.
2225 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2226 (armbsd_iterate_over_regset_sections): New.
2227 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2230 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2232 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2233 (alpha_linux_iterate_over_regset_sections): New.
2234 (alpha_linux_init_abi): Adjust gdbarch initialization.
2235 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2237 (alphanbsd_iterate_over_regset_sections): New prototype.
2239 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2241 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2243 (aarch64_linux_iterate_over_regset_sections): New.
2244 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2246 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2248 * fbsd-tdep.c: New file.
2249 * fbsd-tdep.h: New file.
2250 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2251 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2252 (ALLDEPFILES): Add fbsd-tdep.c.
2254 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2256 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2258 * gdbarch.h: Regenerate.
2259 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2261 (get_core_register_section): Add parameter 'regset' and use it, if
2262 set. Add parameter 'min_size' and verify the bfd section size
2264 (get_core_registers_cb): Add parameter 'regset' and pass it to
2265 get_core_register section. For the "standard" register sections
2266 ".reg" and ".reg2", set an appropriate default for human_name.
2267 (get_core_registers): Don't abort when the gdbarch has an iterator
2268 but no regset_from_core_section. Add NULL/0 for parameters
2269 'regset'/'min_size' in calls to get_core_register_section.
2270 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2271 'regset' and use it instead of calling the
2272 regset_from_core_section gdbarch method.
2273 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2274 * i386-tdep.c (i386_supply_xstateregset)
2275 (i386_collect_xstateregset, i386_xstateregset): Moved to
2277 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2279 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2280 core file support only if the regset iterator hasn't been set.
2281 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2282 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2283 Moved from i386-tdep.c and renamed to *_linux*.
2284 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2285 each callback invocation. Allow any .reg-xstate size when reading
2287 * amd64-tdep.c (amd64_supply_xstateregset)
2288 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2290 (amd64_regset_from_core_section): Remove.
2291 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2292 install an amd64-specific regset_from_core_section gdbarch method.
2293 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2294 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2295 Moved from amd64-tdep.c and renamed to *_linux*.
2296 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2297 to each callback invocation. Allow any .reg-xstate size when
2298 reading from a core file.
2299 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2300 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2301 each callback invocation.
2302 (arm_linux_init_abi): No longer set the regset_from_core_section
2304 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2305 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2306 each callback invocation.
2307 (ppc_linux_init_abi): No longer set the regset_from_core_section
2309 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2310 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2311 (s390_regset_from_core_section): Remove.
2312 (s390_iterate_over_regset_sections): Add regset parameter to each
2313 callback invocation.
2314 (s390_gdbarch_init): No longer set the regset_from_core_section
2315 gdbarch method. Drop initialization of deleted tdep fields.
2317 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2319 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2320 (amd64_linux_iterate_over_regset_sections): New.
2321 (amd64_linux_init_abi_common): Don't install the regset section
2322 list, but the new iterator in gdbarch.
2323 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2324 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2325 (arm_linux_iterate_over_regset_sections): ...here. New function.
2326 (arm_linux_init_abi): Set iterator instead of section list.
2327 * corelow.c (get_core_registers_cb): New function, logic moved
2329 (get_core_registers): ...loop body here. Use new iterator method
2330 instead of walking through the regset section list.
2331 * gdbarch.sh: Remove 'core_regset_sections'. New method
2332 'iterate_over_regset_sections'. New typedef
2333 'iterate_over_regset_sections_cb'.
2334 * gdbarch.c: Regenerate.
2335 * gdbarch.h: Likewise.
2336 * i386-linux-tdep.c (i386_linux_regset_sections)
2337 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2339 (i386_linux_iterate_over_regset_sections): New.
2340 (i386_linux_init_abi): Don't choose a regset section list, but
2341 install new iterator in gdbarch.
2342 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2343 (linux_collect_regset_section_cb): New function, logic moved
2345 (linux_collect_thread_registers): ...loop body here. Use iterator
2346 method instead of walking through list.
2347 (linux_make_corefile_notes_1): Check for presence of iterator
2348 method instead of regset section list.
2349 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2350 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2351 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2352 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2353 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2354 (ppc_linux_init_abi): Don't choose from above regset section
2355 lists, but install new iterator in gdbarch.
2356 * regset.h (struct core_regset_section): Remove.
2357 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2358 have_linux_v1, have_linux_v2, and have_tdb.
2359 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2360 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2361 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2362 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2363 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2364 (s390_iterate_over_regset_sections): ...here. New function. Use
2366 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2367 regset section lists, but install new iterator.
2369 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2371 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2373 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2375 * progspace.c (print_program_space): Don't prune program spaces
2376 before printing them.
2378 2014-09-25 Pedro Alves <palves@redhat.com>
2380 * infrun.c (user_visible_resume_ptid): Don't check
2381 singlestep_breakpoints_inserted_p.
2383 2014-09-25 Pedro Alves <palves@redhat.com>
2385 * breakpoint.c (should_be_inserted): Add debug output.
2387 2014-09-25 Pedro Alves <palves@redhat.com>
2389 * infrun.c (stepping_past_instruction_at)
2390 (clear_exit_convenience_vars): Point at infrun.h instead of
2392 (handle_signal_stop): Fix typo.
2394 2014-09-24 Yao Qi <yao@codesourcery.com>
2396 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2399 2014-09-22 Gary Benson <gbenson@redhat.com>
2401 * target.c (target_stop): Updated comment.
2403 2014-09-22 Gary Benson <gbenson@redhat.com>
2405 * target/target.h (target_stop_ptid): Renamed as...
2406 (target_stop_and_wait): New function. Updated comment.
2408 (target_continue_ptid): Renamed as...
2409 (target_continue_no_signal): New function. Updated comment.
2412 2014-09-22 Pedro Alves <palves@redhat.com>
2414 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2416 * breakpoint.c (enum ugll_insert_mode): New enum.
2417 (always_inserted_mode): Now a plain boolean.
2418 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2419 (breakpoints_always_inserted_mode): Delete.
2420 (breakpoints_should_be_inserted_now): New function.
2421 (insert_breakpoints): Pass UGLL_INSERT to
2422 update_global_location_list instead of calling
2423 insert_breakpoint_locations manually.
2424 (create_solib_event_breakpoint_1): New, factored out from ...
2425 (create_solib_event_breakpoint): ... this.
2426 (create_and_insert_solib_event_breakpoint): Use
2427 create_solib_event_breakpoint_1 instead of calling
2428 insert_breakpoint_locations manually.
2429 (update_global_location_list): Change parameter type from boolean
2430 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2431 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2432 (update_global_location_list_nothrow): Change parameter type from
2433 boolean to enum ugll_insert_mode.
2434 (_initialize_breakpoint): "breakpoint always-inserted" option is
2435 now a boolean command. Update help text.
2436 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2437 (breakpoints_should_be_inserted_now): New declaration.
2438 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2439 Remove breakpoints_always_inserted_mode check.
2440 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2441 * remote.c (remote_start_remote): Likewise.
2443 2014-09-22 Pedro Alves <palves@redhat.com>
2445 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2446 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2447 Instead, pass UGLL_INSERT to update_global_location_list.
2448 (update_global_location_list): Change parameter type from boolean
2449 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2450 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2451 (create_solib_event_breakpoint_1): New, factored out from ...
2452 (create_solib_event_breakpoint): ... this.
2453 (create_and_insert_solib_event_breakpoint): Use
2454 create_solib_event_breakpoint_1 instead of calling
2455 insert_breakpoint_locations manually.
2456 (update_global_location_list): Handle UGLL_INSERT.
2458 2014-09-22 Pedro Alves <palves@redhat.com>
2460 * breakpoint.c (enum ugll_insert_mode): New enum.
2461 (update_global_location_list)
2462 (update_global_location_list_nothrow): Change parameter type from
2463 boolean to enum ugll_insert_mode. All callers adjusted.
2465 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2467 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2468 SystemTap support in GDB.
2470 2014-09-19 Don Breazeal <donb@codesourcery.com>
2472 * linux-nat.c (linux_handle_extended_wait): Call
2473 linux_ptrace_get_extended_event.
2474 (wait_lwp): Call linux_is_extended_waitstatus.
2475 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2476 and linux_is_extended_waitstatus.
2477 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2478 linux_ptrace_get_extended_event.
2479 (linux_ptrace_get_extended_event): New function.
2480 (linux_is_extended_waitstatus): New function.
2481 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2482 (linux_is_extended_waitstatus): New declarations.
2484 2014-09-19 Yao Qi <yao@codesourcery.com>
2486 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2487 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2488 comments. Callers update.
2489 (dwarf_decode_lines): Likewise.
2490 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2491 comments. Skip the line table if 'lowpc' is greater than
2492 'address'. Don't check
2493 dwarf2_per_objfile->has_section_at_zero.
2495 2014-09-18 Doug Evans <dje@google.com>
2497 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2498 * python/py-symtab.c (stpy_get_producer): New function.
2499 (symtab_object_getset): Add "producer" attribute.
2501 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
2504 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2505 (do_captured_read_memory_integer): Remove.
2506 (safe_read_memory_integer): Use target_read_memory directly instead
2507 of catching errors in do_captured_read_memory_integer.
2509 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2511 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2514 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2516 * objc-lang.c (find_implementation_from_class): Remove dead code.
2518 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2521 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2522 "fprintf_unfiltered (gdb_stdlog...)".
2524 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2526 PR breakpoints/12526
2527 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2529 * breakpoint.c (watch_command_1): Use these fields to retain
2530 bitfield information.
2531 (extract_bitfield_from_watchpoint_value): New function.
2532 (watchpoint_check): Use it.
2533 (update_watchpoint): Use it. Optimize the address and length of a
2534 HW watchpoint pointing to a bitfield.
2535 * value.h (unpack_value_bitfield): New prototype.
2536 * value.c (unpack_value_bitfield): Make extern.
2538 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2540 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2542 * gnu-nat.c (inf_threads): New function.
2543 * gnu-nat.h (inf_threads_ftype): New typedef.
2544 (inf_threads): New declaration.
2545 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2546 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2547 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2548 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2549 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2550 (i386_gnu_dr_get_control): New functions.
2551 (reg_addr): New structure.
2552 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2553 i386 debugging register hooks.
2554 * NEWS: Mention this.
2556 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2558 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2559 vector data transfer instructions.
2560 (arm_record_coproc_data_proc): Updated.
2562 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2564 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2565 arm_record_exreg_ld_st_insn.
2566 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2569 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2571 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2572 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2573 processing instructions.
2575 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2577 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2578 for advance SIMD struct ld/st insn.
2579 (thumb2_record_decode_insn_handler): Replace stub handler with
2580 thumb2_record_asimd_struct_ld_st.
2582 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2584 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2585 for asimd, vfp and coprocessor insns.
2586 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2587 and coprocessor insns.
2588 (thumb2_record_coproc_insn): New function.
2589 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2591 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2594 2014-09-13 Doug Evans <xdje42@gmail.com>
2596 * NEWS: Mention new "queue-signal" command.
2597 * infcmd.c (queue_signal_command): New function.
2598 (_initialize_infcmd): Add new queue-signal command.
2600 2014-09-13 Doug Evans <xdje42@gmail.com>
2602 * linux-nat.c (wait_lwp): Add debugging printf.
2603 (linux_nat_wait_1): Ditto.
2605 2014-09-12 Pedro Alves <palves@redhat.com>
2607 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2608 (create_and_insert_solib_event_breakpoint): New functions.
2609 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2610 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2611 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2612 (remove_dbx_link_breakpoint): Delete function.
2613 (insert_dbx_link_bpt_in_file): Use
2614 create_and_insert_solib_event_breakpoint instead of
2615 deprecated_insert_raw_breakpoint.
2616 (procfs_wait): Don't check whether we hit __dbx_link here.
2617 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2619 * solib-irix.c (base_breakpoint): Delete global.
2620 (disable_break): Delete function.
2621 (enable_break): Use create_solib_event_breakpoint
2622 instead of deprecated_insert_raw_breakpoint.
2623 (irix_solib_handle_event): New function.
2624 (irix_solib_create_inferior_hook): Don't run the target or disable
2625 the mapping-complete breakpoint here.
2626 (_initialize_irix_solib): Install irix_solib_handle_event as
2627 so_ops->handle_event hook.
2629 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2630 Ulrich Weigand <uweigand@de.ibm.com>
2633 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2634 instead of read_memory_unsigned_integer.
2636 2014-09-12 Gary Benson <gbenson@redhat.com>
2638 * nat/linux-waitpid.c: Include common-defs.h.
2639 [GDBSERVER]: Add FIXME comment.
2640 [!GDBSERVER]: Don't include defs.h or signal.h.
2641 (linux_debug) [!GDBSERVER]: Remove empty block.
2643 2014-09-12 Gary Benson <gbenson@redhat.com>
2645 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2646 Don't include defs.h or server.h.
2648 2014-09-12 Gary Benson <gbenson@redhat.com>
2650 * nat/linux-btrace.c: Include common-defs.h.
2651 Don't include defs.h, server.h or gdbthread.h.
2652 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2654 2014-09-12 Gary Benson <gbenson@redhat.com>
2656 * common/agent.c: Include common-defs.h.
2657 Don't include defs.h or server.h.
2658 * common/buffer.c: Likewise.
2659 * common/common-debug.c: Likewise.
2660 * common/common-utils.c: Likewise.
2661 * common/errors.c: Likewise.
2662 * common/filestuff.c: Likewise.
2663 * common/format.c: Likewise.
2664 * common/gdb_vecs.c: Likewise.
2665 * common/print-utils.c: Likewise.
2666 * common/ptid.c: Likewise.
2667 * common/rsp-low.c: Likewise.
2668 * common/signals.c: Likewise.
2669 * common/vec.c: Likewise.
2670 * common/xml-utils.c: Likewise.
2671 * nat/linux-osdata.c: Likewise.
2672 * nat/linux-procfs.c: Likewise.
2673 * nat/linux-ptrace.c: Likewise.
2674 * nat/mips-linux-watch.c: Likewise.
2675 * target/waitstatus.c: Likewise.
2677 2014-09-12 Tom Tromey <tromey@redhat.com>
2678 Gary Benson <gbenson@redhat.com>
2680 * common/common-regcache.h: New file.
2681 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2682 * regcache.h: Include common-regcache.h.
2683 (regcache_read_pc): Don't declare.
2684 * regcache.c (get_thread_regcache_for_ptid): New function.
2685 * nat/linux-btrace.c: Don't include regcache.h.
2686 Include common-regcache.h.
2687 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2689 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2691 * regcache.h (struct regset): Declare.
2693 2014-09-11 Pedro Alves <palves@redhat.com>
2696 * main.c: Include "infrun.h".
2697 (catch_command_errors, catch_command_errors_const): Wait for the
2698 foreground command to complete.
2699 * top.c (maybe_wait_sync_command_done): New function, factored out
2701 (maybe_wait_sync_command_done): ... here.
2702 * top.h (maybe_wait_sync_command_done): New declaration.
2704 2014-09-11 Tom Tromey <tromey@redhat.com>
2705 Gary Benson <gbenson@redhat.com>
2707 * common/symbol.h: New file.
2708 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2709 * minsyms.c (find_minimal_symbol_address): New function.
2710 * common/agent.c: Include common/symbol.h.
2711 [!GDBSERVER]: Don't include objfiles.h.
2712 (agent_look_up_symbols): Use find_minimal_symbol_address.
2714 2014-09-11 Gary Benson <gbenson@redhat.com>
2716 * target/target.h (target_stop_ptid, target_continue_ptid):
2718 * target.c (target_stop_ptid, target_continue_ptid): New
2720 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2721 (agent_run_command): Always use target_stop_ptid and
2722 target_continue_ptid.
2724 2014-09-11 Tom Tromey <tromey@redhat.com>
2725 Gary Benson <gbenson@redhat.com>
2727 * target/target.h: New file.
2728 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2729 * target.h: Include target/target.h.
2730 (target_read_memory, target_write_memory): Don't declare.
2731 * target.c (target_read_uint32): New function.
2732 * common/agent.c: Include target/target.h.
2733 [!GDBSERVER]: Don't include target.h.
2734 (helper_thread_id): Type changed to uint32_t.
2735 (agent_get_helper_thread_id): Use target_read_uint32.
2736 (agent_run_command): Always use target_read_memory and
2737 target_write_memory.
2738 (agent_capability): Type changed to uint32_t.
2739 (agent_capability_check): Use target_read_uint32.
2741 2014-09-11 Gary Benson <gbenson@redhat.com>
2743 * common/common-debug.h (show_debug_regs): Declare.
2744 * common/common-debug.c (show_debug_regs): Define.
2745 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2746 all uses with show_debug_regs. Replace all uses that considered
2747 debug_hw_points as a multi-value integer with straight boolean
2749 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2750 with show_debug_regs.
2751 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2752 all uses with show_debug_regs.
2753 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2754 uses with show_debug_regs.
2756 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2758 * findvar.c (address_from_register): Handle targets requiring
2759 a special conversion routine even for plain pointer types.
2761 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2763 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2764 (store_register): Do not call exec_one_dummy_insn.
2766 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2768 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2769 dereference it first. Use value_enclosing_type instead of
2771 (ada_array_length): Likewise.
2773 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2775 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2776 Adjust function implementation and documentation accordingly.
2777 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2778 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2779 Update call to ada_value_ptr_subscript.
2781 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2783 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2784 instead of VAL's type.
2786 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2788 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2790 2014-09-09 Doug Evans <xdje42@gmail.com>
2793 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2794 last parameter to pkg-config, not first.
2795 * configure.ac: Pass --with-guile provided pkg-config path to
2796 GDB_GUILE_PROGRAM_NAMES.
2797 * configure: Regenerate.
2799 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2801 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2804 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2806 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2807 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2808 the list of sections determining GDB_OSABI_IRIX.
2810 2014-09-09 James Hogan <james.hogan@imgtec.com>
2812 * MAINTAINERS (Write After Approval): Add "James Hogan".
2814 2014-09-09 James Hogan <james.hogan@imgtec.com>
2816 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2818 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2820 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2822 2014-09-08 Doug Evans <xdje42@gmail.com>
2825 * guile.c: #include <signal.h>.
2826 (_initialize_guile): Block SIGCHLD while initializing Guile.
2828 Replaces the following, which is reverted.
2830 2014-07-26 Doug Evans <xdje42@gmail.com>
2833 * configure.ac: Add check for header gc/gc.h.
2834 Add check for function setenv.
2835 * configure: Regenerate.
2836 * config.in: Regenerate.
2837 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2839 2014-09-08 Doug Evans <xdje42@gmail.com>
2841 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2842 with named constant. Fix style of pointer comparison.
2843 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2845 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2848 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2849 decide whether we display the command on "show user".
2850 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2851 printing command name.
2852 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2853 * cli/cli-decode.c (cli_user_command_p): Create helper function
2854 to verify whether cmd_list_element is a user-defined command.
2856 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2859 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2860 Fix goto out of TRY_CATCH.
2862 2014-09-06 Doug Evans <xdje42@gmail.com>
2863 Tom Tromey <tromey@redhat.com>
2866 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2867 $_any_caller_matches.
2868 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2869 * python/lib/gdb/function/caller_is.py: New file.
2871 2014-09-06 Doug Evans <xdje42@gmail.com>
2873 * infcmd.c (program_info): Fix typo.
2875 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2878 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2879 'number'. New variable 'has_digit'. Rewrite code to deal with
2880 subexpressions on SDT probes.
2882 2014-09-04 Pedro Alves <palves@redhat.com>
2884 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2885 the input is only one character long.
2887 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2890 * f-valprint.c (f_val_print): Specify the correct print option to
2891 use when printing integer values.
2893 2014-09-04 Gary Benson <gbenson@redhat.com>
2895 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2896 Remove code to cope with LWPs wrapped as PIDs.
2897 Add assertions to ensure no wrapped LWPs are passed.
2899 2014-09-04 Pedro Alves <palves@redhat.com>
2901 * value.c (value_ranges_copy_adjusted): New function, factored out
2903 (value_contents_copy_raw): ... here.
2904 (unpack_value_bits_as_long_1): Rename back to ...
2905 (unpack_bits_as_long): ... this. Remove 'original_value' and
2906 'result' parameters. Change return type to LONGEST.
2907 (unpack_value_bits_as_long): Delete.
2908 (unpack_value_field_as_long_1): Delete.
2909 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2910 (unpack_value_bitfield): New function.
2911 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2912 (value_fetch_lazy): Use unpack_value_bitfield.
2913 * value.h (unpack_value_bits_as_long): Delete declaration.
2915 2014-09-03 Sasha Smundak <asmundak@google.com>
2917 * python/py-frame.c (frapy_read_register): New function.
2919 2014-09-03 James Hogan <james.hogan@imgtec.com>
2921 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2922 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2924 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2927 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2929 (add_cmd): Set "completer_handle_brkchars" to NULL.
2930 * cli/cli-decode.h (struct cmd_list_element)
2931 <completer_handle_brkchars>: New field.
2932 * command.h (completer_ftype_void): New typedef.
2933 (set_cmd_completer_handle_brkchars): New prototype.
2934 * completer.c (set_gdb_completion_word_break_characters): New
2936 (complete_line_internal): Call "completer_handle_brkchars"
2937 callback from command.
2938 * completer.h: Include "command.h".
2939 (set_gdb_completion_word_break_characters): New prototype.
2940 * python/py-cmd.c (cmdpy_completer_helper): New function.
2941 (cmdpy_completer_handle_brkchars): New function.
2942 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2943 (cmdpy_init): Set completer_handle_brkchars to
2944 cmdpy_completer_handle_brkchars.
2946 2014-09-03 Gary Benson <gbenson@redhat.com>
2948 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2949 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2950 Loop conditions changed to equivalent form.
2951 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2952 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2953 ALL_DEBUG_ADDRESS_REGISTERS.
2955 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2957 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2960 2014-09-02 Doug Evans <dje@google.com>
2962 * typeprint.c (find_global_typedef): Fix comment.
2964 2014-09-02 Gary Benson <gbenson@redhat.com>
2966 * i386-nat.h: Renamed as...
2967 * x86-nat.h: New file. All type, function and variable name
2968 prefixes changed from "i386_" to "x86_". All references updated.
2969 * i386-nat.c: Renamed as...
2970 * x86-nat.c: New file. All type, function and variable name
2971 prefixes changed from "i386_" to "x86_". All references updated.
2972 * common/i386-xstate.h: Renamed as...
2973 * common/x86-xstate.h: New file. All type, function and variable
2974 name prefixes changed from "i386_" to "x86_". All references
2976 * nat/i386-cpuid.h: Renamed as...
2977 * nat/x86-cpuid.h: New file. All type, function and variable name
2978 prefixes changed from "i386_" to "x86_". All references updated.
2979 * nat/i386-gcc-cpuid.h: Renamed as...
2980 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2981 name prefixes changed from "i386_" to "x86_". All references
2983 * nat/i386-dregs.h: Renamed as...
2984 * nat/x86-dregs.h: New file. All type, function and variable name
2985 prefixes changed from "i386_" to "x86_". All references updated.
2986 * nat/i386-dregs.c: Renamed as...
2987 * nat/x86-dregs.c: New file. All type, function and variable name
2988 prefixes changed from "i386_" to "x86_". All references updated.
2990 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2992 * varobj.c (_initialize_varobj): Move to the end of file.
2994 2014-08-29 Gary Benson <gbenson@redhat.com>
2996 * common/common-exceptions.h: New file.
2997 * common/common-exceptions.c: Likewise.
2998 * Makefile.in (SFILES): Add common/common-exceptions.c.
2999 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3000 (COMMON_OBS): Add common-exceptions.o.
3001 (common-exceptions.o): New rule.
3002 * exceptions.h (common-exceptions.h): Include.
3003 (gdb_setjmp.h): Do not include.
3004 (return_reason): Moved to common-exceptions.h.
3005 (enum return_reason): Likewise.
3006 (RETURN_MASK): Likewise.
3007 (typedef return_mask): Likewise.
3008 (enum errors): Likewise.
3009 (struct gdb_exception): Likewise.
3010 (exceptions_state_mc_init): Likewise.
3011 (exceptions_state_mc_action_iter): Likewise.
3012 (exceptions_state_mc_action_iter_1): Likewise.
3013 (TRY_CATCH): Likewise.
3014 (throw_exception): Likewise.
3015 (throw_verror): Likewise.
3016 (throw_vquit): Likewise.
3017 (throw_error): Likewise.
3018 (throw_quit): Likewise.
3019 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3020 (enum catcher_action): Likewise.
3021 (struct catcher): Likewise.
3022 (current_catcher): Likewise.
3023 (catcher_list_size): Likewise.
3024 (exceptions_state_mc_init): Likewise.
3025 (catcher_pop): Likewise.
3026 (exceptions_state_mc): Likewise.
3027 (exceptions_state_mc_action_iter): Likewise.
3028 (exceptions_state_mc_action_iter_1): Likewise.
3029 (throw_exception): Likewise.
3030 (exception_messages): Likewise.
3031 (exception_messages_size): Likewise.
3032 (throw_it): Likewise.
3033 (throw_verror): Likewise.
3034 (throw_vquit): Likewise.
3035 (throw_error): Likewise.
3036 (throw_quit): Likewise.
3037 (prepare_to_throw_exception): New function.
3039 2014-08-29 Gary Benson <gbenson@redhat.com>
3041 * common/gdb_setjmp.h: New file.
3042 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3043 * configure.ac: Move sigsetjmp check...
3044 * common/common.m4: ...here.
3045 * configure: Regenerate.
3046 * cp-support.c (SIGJMP_BUF): Delete.
3047 (SIGSETJMP): Likewise.
3048 (SIGLONGJMP): Likewise.
3049 * exceptions.h (gdb_setjmp.h): Include.
3050 (setjmp.h): Do not include.
3051 (EXCEPTIONS_SIGJMP_BUF): Delete.
3052 (EXCEPTIONS_SIGSETJMP): Likewise.
3053 (EXCEPTIONS_SIGLONGJMP): Likewise.
3054 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3056 * exceptions.c: Likewise.
3058 2014-08-29 Gary Benson <gbenson@redhat.com>
3060 * cleanups.h: Moved to...
3061 * common/cleanups.h: New file.
3062 * cleanups.c: Moved to...
3063 * common/cleanups.c: New file. Include common-defs.h and
3064 cleanups.h. Do not include defs.h.
3065 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3066 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3067 (cleanups.o): New rule.
3069 2014-08-29 Gary Benson <gbenson@redhat.com>
3071 * common/errors.h (internal_warning): New declaration.
3072 (internal_vwarning): Likewise.
3073 * common/errors.c (internal_warning): New function.
3074 * utils.h (internal_warning): Don't declare.
3075 (internal_vwarning): Likewise.
3076 * utils.c (internal_warning): Removed.
3078 2014-08-29 Gary Benson <gbenson@redhat.com>
3080 * main.c (captured_main): Use warning during startup.
3081 Prefix startup warning messages with command name.
3083 2014-08-29 Gary Benson <gbenson@redhat.com>
3085 * main.c (captured_main): Handle usage errors with error.
3087 2014-08-29 Gary Benson <gbenson@redhat.com>
3089 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3090 exit pair with a call to error. Wrap the message with _().
3092 2014-08-29 Gary Benson <gbenson@redhat.com>
3094 * main.c (captured_main): Replace a fprintf/exit
3095 pair with a call to error. Wrap the message with _().
3097 2014-08-29 Gary Benson <gbenson@redhat.com>
3099 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3100 pairs with calls to error. Wrap the message with _().
3102 2014-08-29 Gary Benson <gbenson@redhat.com>
3104 * utils.c (vwarning): Protect calls to target_terminal_ours
3107 2014-08-29 Gary Benson <gbenson@redhat.com>
3109 * exceptions.c (print_flush): Protect calls to
3110 target_terminal_ours and wrap_here.
3112 2014-08-29 Gary Benson <gbenson@redhat.com>
3114 * utils.h (filtered_printing_initialized): New declaration.
3115 * utils.c (abort_with_message): New function.
3116 (internal_vproblem): Use abort_with_message for first level
3117 recursive internal problems, and if gdb_stderr is not set up.
3118 Protect calls to target_terminal_ours, begin_line and query.
3120 2014-08-28 Doug Evans <dje@google.com>
3122 * symtab.c (in_prologue): Move definition to better spot.
3123 (skip_prologue_using_sal): Ditto.
3125 2014-08-28 Doug Evans <dje@google.com>
3127 * symtab.c (find_function_start_sal): Move definition to better spot.
3129 2014-08-28 Yao Qi <yao@codesourcery.com>
3131 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3132 found_stack_adjust in forward scan. Remove condition check
3133 on found_stack_adjust which is always true. Indent the code.
3135 2014-08-28 Yao Qi <yao@codesourcery.com>
3137 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3138 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3139 (dwarf_decode_lines): Remove argument
3140 want_line_info. Remove condition check on want_line_info.
3143 2014-08-27 Doug Evans <dje@google.com>
3145 * dwarf2read.c (dwarf_record_line): Fix typo.
3147 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3149 * target.h (struct target_ops::to_terminal_save_ours): Remove
3151 (target_terminal_save_ours): Remove macro.
3152 * target-delegates.c: Regenerate.
3153 * inf-child.c (inf_child_target): Don't set the nonexistent
3154 field to_terminal_save_ours.
3155 * inferior.h (child_terminal_save_ours): Remove declaration.
3156 * terminal.h (gdb_save_tty_state): New declaration.
3157 * inflow.c (child_terminal_save_ours): Rename to ...
3158 (gdb_save_tty_state): ... this.
3159 * tui/tui.c: Include terminal.h.
3160 (tui_enable): Use gdb_save_tty_state instead of
3161 target_terminal_save_ours.
3162 (tui_disable): Likewise.
3164 2014-08-25 Doug Evans <dje@google.com>
3166 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3167 Pass NULL instead of 0 for context pointer.
3169 2014-08-25 Yao Qi <yao@codesourcery.com>
3171 * dwarf2read.c: Fix grammatical error.
3173 2014-08-24 Yao Qi <yao@codesourcery.com>
3175 * dwarf2read.c (scan_partial_symbols): Update comments.
3176 Rename argument 'need_pc' with 'set_addrmap'.
3177 (add_partial_namespace): Rename argument 'need_pc' with
3179 (add_partial_module): Likewise.
3180 (add_partial_subprogram): Likewise. Update comments.
3181 (dwarf2_name): Fix typo.
3183 2014-08-22 Doug Evans <dje@google.com>
3186 * dwarf2read.c (dwarf_record_line_p): New function.
3187 (dwarf_decode_lines_1): Ignore subsequent line number entries
3188 for the same line if any entry had a non-zero discriminator.
3190 2014-08-22 Doug Evans <dje@google.com>
3192 * buildsym.h (record_line_ftype): New typedef.
3193 (record_line): Use it.
3194 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3195 (dwarf_decode_lines_1): Call them.
3197 2014-08-22 Yao Qi <yao@codesourcery.com>
3199 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3200 (ctf_end): Remove code.
3202 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3204 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3205 (linux_make_corefile_notes): call update_thread_list, protected against
3208 2014-08-21 Pedro Alves <palves@redhat.com>
3210 * infcmd.c (attach_command): Remove comment.
3212 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3214 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3215 unsigned LONGEST to ULONGEST.
3217 2014-08-20 Pedro Alves <palves@redhat.com>
3219 * Makefile.in (check-read1): New rule.
3221 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3223 * value.c (value_from_contents_and_address): Strip resolved_type's
3224 typedef layers before checking its TYPE_DATA_LOCATION.
3226 2014-08-20 Pedro Alves <palves@redhat.com>
3228 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3230 2014-08-20 Yao Qi <yao@codesourcery.com>
3232 * amd64-tdep.c (amd64_classify): Add a blank line after the
3233 example. Move "*/" to a new line.
3234 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3235 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3236 * dwarf2read.c (psymtab_include_file_name): Likewise.
3238 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3239 Pedro Alves <palves@redhat.com>
3243 * ada-lang.c (coerce_unspec_val_to_type): Use
3244 value_contents_copy_raw.
3245 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3246 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3247 * cp-valprint.c (cp_print_value_fields): Let the common printing
3248 code handle optimized out values.
3249 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3250 * d-valprint.c (dynamic_array_type): Use
3251 value_bits_any_optimized_out.
3252 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3253 check_any_valid fields.
3254 (check_pieced_value_bits): Delete and inline ...
3255 (check_pieced_synthetic_pointer): ... here.
3256 (check_pieced_value_validity): Delete.
3257 (check_pieced_value_invalid): Delete.
3258 (pieced_value_funcs): Remove check_validity and check_any_valid
3260 (read_pieced_value): Use mark_value_bits_optimized_out.
3261 (write_pieced_value): Switch to use
3262 mark_value_bytes_optimized_out.
3263 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3264 of assuming the whole value is optimized out.
3265 * findvar.c (read_frame_register_value): Remove special handling
3266 of optimized out registers.
3267 (value_from_register): Use mark_value_bytes_optimized_out.
3268 * frame-unwind.c (frame_unwind_got_optimized): Use
3269 mark_value_bytes_optimized_out.
3270 * jv-valprint.c (java_value_print): Adjust.
3271 (java_print_value_fields): Let the common printing code handle
3272 optimized out values.
3273 * mips-tdep.c (mips_print_register): Remove special handling of
3274 optimized out registers.
3275 * opencl-lang.c (lval_func_check_validity): Delete.
3276 (lval_func_check_any_valid): Delete.
3277 (opencl_value_funcs): Remove check_validity and check_any_valid
3279 * p-valprint.c (pascal_object_print_value_fields): Let the common
3280 printing code handle optimized out values.
3281 * stack.c (read_frame_arg): Remove special handling of optimized
3282 out values. Fetch both VAL and ENTRYVAL before comparing
3283 contents. Adjust to value_available_contents_eq rename.
3284 * valprint.c (valprint_check_validity)
3285 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3286 (val_print_array_elements): Adjust.
3287 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3288 (value_bits_any_optimized_out): New function.
3289 (value_entirely_covered_by_range_vector): New function, factored
3290 out from value_entirely_unavailable.
3291 (value_entirely_unavailable): Reimplement.
3292 (value_entirely_optimized_out): New function.
3293 (insert_into_bit_range_vector): New function, factored out from
3294 mark_value_bits_unavailable.
3295 (mark_value_bits_unavailable): Reimplement.
3296 (struct ranges_and_idx): New struct.
3297 (find_first_range_overlap_and_match): New function, factored out
3298 from value_available_contents_bits_eq.
3299 (value_available_contents_bits_eq): Rename to ...
3300 (value_contents_bits_eq): ... this. Check both unavailable
3301 contents and optimized out contents.
3302 (value_available_contents_eq): Rename to ...
3303 (value_contents_eq): ... this.
3304 (allocate_value_lazy): Remove reference to the old optimized_out
3306 (allocate_optimized_out_value): Use
3307 mark_value_bytes_optimized_out.
3308 (require_not_optimized_out): Adjust to check whether the
3309 optimized_out vec is empty.
3310 (ranges_copy_adjusted): New function, factored out from
3311 value_contents_copy_raw.
3312 (value_contents_copy_raw): Also copy the optimized out ranges.
3313 Assert the destination ranges aren't optimized out.
3314 (value_contents_copy): Update comment, remove call to
3315 require_not_optimized_out.
3316 (value_contents_equal): Adjust to check whether the optimized_out
3318 (set_value_optimized_out, value_optimized_out_const): Delete.
3319 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3321 (value_entirely_optimized_out, value_bits_valid): Delete.
3322 (value_copy): Take a VEC copy of the 'optimized_out' field.
3323 (value_primitive_field): Remove special handling of optimized out.
3324 (value_fetch_lazy): Assert that lazy values have no unavailable
3325 regions. Use value_bits_any_optimized_out. Remove some special
3326 handling for optimized out values.
3327 * value.h: Add intro comment about <optimized out> and
3329 (struct lval_funcs): Remove check_validity and check_any_valid
3331 (set_value_optimized_out, value_optimized_out_const): Remove.
3332 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3334 (value_bits_any_optimized_out): New declaration.
3335 (value_bits_valid): Delete declaration.
3336 (value_available_contents_eq): Rename to ...
3337 (value_contents_eq): ... this, and extend comments.
3339 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3341 Fix -fsanitize=address on unreadable inferior strings.
3342 * valprint.c (val_print_string): Fix access before BUFFER.
3344 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3346 * target.c (target_struct_size): Remove.
3347 (target_struct_allocsize): Remove.
3348 (DEFAULT_ALLOCSIZE): Remove.
3349 (target_ops_p): New typedef.
3350 (DEF_VEC_P (target_ops_p)): New vector type.
3351 (target_structs): Change type to VEC (target_ops_p).
3352 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3353 (find_default_run_target): Rewrite for loop following changes to
3356 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3358 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3359 Adjust code accordingly. Adjust function description comment.
3361 2014-08-19 Yao Qi <yao@codesourcery.com>
3363 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3366 2014-08-19 Alan Modra <amodra@gmail.com>
3368 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3369 * config.in: Regenerate.
3370 * configure: Regenerate.
3372 2014-08-19 Tom Tromey <tromey@redhat.com>
3373 Gary Benson <gbenson@redhat.com>
3375 * common/common-debug.h: New file.
3376 * common/common-debug.c: Likewise.
3377 * debug.c: Likewise.
3378 * Makefile.in (SFILES): Add common/common-debug.c.
3379 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3380 (COMMON_OBS): Add common-debug.o and debug.o.
3381 (common-debug.o): New rule.
3382 * common/common-defs.h: Include common-debug.h.
3383 * common/agent.c (debug_agent_printf): New function.
3384 (DEBUG_AGENT): Redefine.
3385 * nat/i386-dregs.c (debug_printf): Undefine.
3387 2014-08-19 Gary Benson <gbenson@redhat.com>
3389 * common/common-defs.h: Include print-utils.h.
3390 * utils.h: Do not include print-utils.h.
3392 2014-08-19 Tom Tromey <tromey@redhat.com>
3393 Gary Benson <gbenson@redhat.com>
3395 * common/common-types.h: New file.
3396 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3397 * common/common-defs.h: Include common-types.h.
3398 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3401 2014-08-19 Tom Tromey <tromey@redhat.com>
3402 Gary Benson <gbenson@redhat.com>
3404 * common/errors.h: New file.
3405 * common/errors.c: Likewise.
3406 * Makefile.in (SFILES): Add common/errors.c.
3407 (HFILES_NO_SRCDIR): Add common/errors.h.
3408 (COMMON_OBS): Add errors.o.
3409 (errors.o): New rule.
3410 * common/common-defs.h: Include errors.h.
3411 * utils.h (perror_with_name, error, verror, warning, vwarning):
3413 * common/common-utils.h: (malloc_failure, internal_error):
3416 2014-08-19 Gary Benson <gbenson@redhat.com>
3418 * utils.c (internal_vproblem): Always print the message.
3420 2014-08-18 Doug Evans <dje@google.com>
3422 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3424 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3426 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3427 Return 0 if TYPE is dynamic.
3428 (print_range): Add handling of dynamic ranges.
3430 2014-08-18 Keven Boell <keven.boell@intel.com>
3431 Joel Brobecker <brobecker@adacore.com>
3433 * gdbtypes.h (struct main_type): Add field "data_location".
3434 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3435 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3436 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3437 a dynamic data location.
3438 (resolve_dynamic_type): Add DW_AT_data_location handling.
3439 (copy_recursive, copy_type): Copy the data_location information
3441 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3442 * value.c (value_from_contents_and_address): Add
3443 DW_AT_data_location handling.
3445 2014-08-18 Keven Boell <keven.boell@intel.com>
3446 Joel Brobecker <brobecker@adacore.com>
3448 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3449 field "get_object_address".
3450 * dwarf2expr.c (execute_stack_op): Add handling for
3451 DW_OP_push_object_address.
3452 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3453 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3454 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3455 (dwarf_expr_get_obj_addr): New function.
3456 (dwarf_expr_ctx_funcs): Add get_object_address field.
3457 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3458 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3459 (dwarf2_evaluate_property): Add parameter "address". Use it.
3460 (needs_get_obj_addr): New function.
3461 (needs_frame_ctx_funcs): Add get_object_address field.
3462 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3463 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3464 (resolve_dynamic_array): Likewise.
3466 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3468 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3469 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3470 fixed value for records and unions for which some GNAT encodings
3473 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3475 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3476 rewrite to avoid "else if" and "else" constructs. Should be
3477 a no-op in practice.
3479 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3481 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3484 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3487 * eval.c: Update all calls to find_overload_match.
3488 * valarith.c: Likewise.
3489 (value_user_defined_cpp_op, value_user_defined_op): New
3490 argument NOSIDE. Update all callers.
3491 * valops.c (find_overload_match): New argument NOSIDE.
3492 * value.h (find_overload_match): Update signature.
3494 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3496 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3497 'items' methods instead of 'iteritems' method on dictionaries.
3499 2014-08-15 Doug Evans <dje@google.com>
3501 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3504 2014-08-15 Doug Evans <dje@google.com>
3506 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3508 2014-08-15 Doug Evans <dje@google.com>
3510 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3512 2014-08-15 Doug Evans <dje@google.com>
3514 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3517 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3519 * dcache.h: Include target.h, to avoid compile time warnings.
3521 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3523 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3524 frame_info" partial declaration.
3525 * gdbarch.h: Regenerate.
3527 2014-08-15 Yao Qi <yao@codesourcery.com>
3529 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3530 Add parameter 'decode_for_pst_p'. Callers update.
3532 2014-08-13 Yao Qi <yao@codesourcery.com>
3535 * configure.ac: Use local variable 'pos'.
3536 * configure: Regenerated.
3538 2014-08-11 Doug Evans <dje@google.com>
3540 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3541 message, it is redundant with "Reading symbols from ..." message.
3543 2014-08-10 Doug Evans <xdje42@gmail.com>
3545 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3547 2014-08-09 Yao Qi <yao@codesourcery.com>
3550 * remote.c (remote_xfer_partial): Remove dead code.
3552 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3554 * ia64-linux-tdep.c: Include "regset.h".
3555 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3556 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3557 (ia64_linux_supply_fpregset): New function.
3558 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3559 (ia64_linux_regset_from_core_section): New function.
3560 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3563 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3565 * m68klinux-tdep.c: Include "regset.h".
3566 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3567 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3568 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3569 (m68k_linux_regset_from_core_section): New function.
3570 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3573 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3575 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3576 function. Move logic to...
3577 (tilegx_linux_regmap): ... this new register map.
3578 (tilegx_linux_regset): Refer to register map, replace supply
3579 method by regcache_supply_regset, and add collect method.
3580 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3581 TILEGX_FIRST_EASY_REGNUM.
3583 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3585 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3586 that calls regcache_supply_regset and handles the EPC register
3587 separately. Move main logic to...
3588 (score7_linux_gregmap): ... this new register map.
3589 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3590 (score7_linux_gregset): Refer to register map. Add collect method.
3591 (score7_linux_regset_from_core_section): Replace
3592 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3593 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3594 (struct regset): Delete unused forward declaraction.
3595 (struct pt_regs): Delete structure definition.
3596 (elf_gregset_t): Delete typedef.
3598 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3600 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3601 (nios2_core_regset): Add collect method.
3603 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3605 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3606 platform-independent and don't write to read-only input buffer.
3607 (m32r_linux_collect_gregset): New function.
3608 (m32r_linux_gregset): Add collect method.
3610 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3612 * hppa-linux-tdep.c (greg_map): Rename to...
3613 (hppa_linux_gregmap): ... this. Also convert to
3614 regcache_map_entry format.
3615 (hppa_linux_supply_regset): Delete function.
3616 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3617 (hppa_linux_fpregmap): ... this new register map.
3618 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3619 register map, replace supply method by regcache_supply_regset, and
3620 add collect method regcache_collect_regset.
3622 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3624 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3625 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3626 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3627 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3628 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3629 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3630 (frv_linux_supply_gregset): Replace main logic by call to
3631 regcache_supply_regset, but keep clearing gr32-gr63.
3632 (frv_linux_supply_fpregset): Delete function.
3633 (frv_linux_gregset): Refer to appropriate register map and add
3634 regcache_collect_regset as the collect method.
3635 (frv_linux_fpregset): Likewise. Also exchange the supply method
3636 by regcache_supply_regset.
3638 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3640 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3641 by call to alpha_supply_int_regs.
3642 (alpha_linux_collect_gregset): New function.
3643 (alpha_linux_supply_fpregset): Replace logic by call to
3644 alpha_supply_fp_regs.
3645 (alpha_linux_collect_fpregset): New function.
3646 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3648 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3650 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3651 by call to regcache_collect_regset.
3652 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3653 instead of aarch64_linux_supply_gregset/_fpregset.
3654 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3655 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3656 header file instead.
3657 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3658 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3659 functions. Move logic to ...
3660 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3662 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3663 refer to new register maps, replace *_regset_from_core by
3664 regcache_supply_regset, and also use regcache_collect_regset.
3665 * aarch64-linux-tdep.h: Include "regset.h".
3666 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3668 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3669 macros, moved from C source file.
3670 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3671 variable declarations.
3673 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3675 * s390-linux-nat.c: Include "regset.h".
3676 (regmap_gregset): Delete macro.
3677 (s390_64_regmap_gregset): New register map for
3678 regcache_supply/_collect_regset.
3679 (s390_64_gregset): New regset.
3680 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3681 (regmap_fpregset): Delete macro.
3682 (s390_native_supply, s390_native_collect): Delete functions.
3683 (supply_gregset, fill_gregset): Replace s390-specific regmap
3684 handling by a call to regcache_supply/_collect_regset.
3685 (supply_fpregset, fill_fpregset): Call regcache_supply/
3686 _collect_regset instead of s390_native_supply/_collect.
3687 (fetch_regset, store_regset): Likewise. Also change the last
3688 parameter to a regset instead of a regmap.
3689 (s390_linux_fetch_inferior_registers)
3690 (390_linux_store_inferior_registers): Adjust last parameter in
3691 calls to fetch_regset and store_regset.
3692 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3693 (s390_gregmap): ... this. Also make static const and convert to
3694 regcache_map_entry format.
3695 (s390x_regmap_gregset): Delete.
3696 (s390_regmap_fpregset): Rename to...
3697 (s390_fpregmap): ... this. Make static const and convert to
3698 regcache_map_entry format.
3699 (s390_regmap_upper, s390_regmap_last_break)
3700 (s390x_regmap_last_break, s390_regmap_system_call)
3701 (s390_regmap_tdb): Likewise.
3702 (s390_supply_regset, s390_collect_regset): Remove functions.
3703 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3705 (s390_gregset, s390_fpregset, s390_upper_regset)
3706 (s390_last_break_regset, s390x_last_break_regset)
3707 (s390_system_call_regset, s390_tdb_regset): Make global and
3708 replace s390_supply/_collect_regset by regcache_supply/
3710 (s390x_gregset): Delete.
3711 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3712 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3713 (s390_regmap_fpregset, s390_regmap_last_break)
3714 (s390x_regmap_last_break, s390_regmap_system_call)
3715 (s390_regmap_tdb): Delete global variable declarations.
3716 (s390_gregset, s390_fpregset, s390_last_break_regset)
3717 (s390x_last_break_regset, s390_system_call_regset)
3718 (s390_tdb_regset): New global variable declarations.
3720 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3722 * regcache.c: Include "regset.h".
3723 (regcache_transfer_regset): New local function.
3724 (regcache_supply_regset, regcache_collect_regset): New functions.
3725 * regcache.h (struct regcache_map_entry): New structure.
3726 (REGCACHE_MAP_SKIP): New enum value.
3727 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3729 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3731 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3732 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3733 (ppc_linux_collect_gregset ): Likewise.
3734 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3735 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3736 (ppc_collect_vrregset): Likewise.
3737 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3740 2014-08-07 Yao Qi <yao@codesourcery.com>
3742 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3743 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3744 * remote.c (remote_read_bytes): Likewise.
3746 2014-08-07 Yao Qi <yao@codesourcery.com>
3748 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3750 2014-08-07 Yao Qi <yao@codesourcery.com>
3753 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3754 TARGET_XFER_OK instead of 0.
3756 2014-08-07 Gary Benson <gbenson@redhat.com>
3758 * common/common-defs.h: Include errno.h.
3759 * defs.h: Do not include errno.h.
3760 * ada-typeprint.c: Likewise.
3761 * c-typeprint.c: Likewise.
3762 * core-regset.c: Likewise.
3763 * corefile.c: Likewise.
3764 * corelow.c: Likewise.
3765 * event-loop.c: Likewise.
3766 * f-typeprint.c: Likewise.
3767 * gnu-nat.c: Likewise.
3768 * go32-nat.c: Likewise.
3769 * i386gnu-nat.c: Likewise.
3770 * m2-typeprint.c: Likewise.
3771 * nat/linux-btrace.c: Likewise.
3772 * p-typeprint.c: Likewise.
3773 * procfs.c: Likewise.
3774 * remote-sim.c: Likewise.
3775 * rs6000-nat.c: Likewise.
3776 * target.c: Likewise.
3777 * typeprint.c: Likewise.
3778 * ui-file.c: Likewise.
3779 * valops.c: Likewise.
3780 * valprint.c: Likewise.
3782 2014-08-07 Gary Benson <gbenson@redhat.com>
3784 * common/common-defs.h: Include string.h.
3785 * aarch64-tdep.c: Do not include string.h.
3786 * ada-exp.y: Likewise.
3787 * ada-lang.c: Likewise.
3788 * ada-lex.l: Likewise.
3789 * ada-typeprint.c: Likewise.
3790 * ada-valprint.c: Likewise.
3791 * aix-thread.c: Likewise.
3792 * alpha-linux-tdep.c: Likewise.
3793 * alpha-mdebug-tdep.c: Likewise.
3794 * alpha-nat.c: Likewise.
3795 * alpha-osf1-tdep.c: Likewise.
3796 * alpha-tdep.c: Likewise.
3797 * alphanbsd-tdep.c: Likewise.
3798 * amd64-dicos-tdep.c: Likewise.
3799 * amd64-linux-tdep.c: Likewise.
3800 * amd64-nat.c: Likewise.
3801 * amd64-sol2-tdep.c: Likewise.
3802 * amd64fbsd-tdep.c: Likewise.
3803 * amd64obsd-tdep.c: Likewise.
3804 * arch-utils.c: Likewise.
3805 * arm-linux-nat.c: Likewise.
3806 * arm-linux-tdep.c: Likewise.
3807 * arm-tdep.c: Likewise.
3808 * arm-wince-tdep.c: Likewise.
3809 * armbsd-tdep.c: Likewise.
3810 * armnbsd-nat.c: Likewise.
3811 * armnbsd-tdep.c: Likewise.
3812 * armobsd-tdep.c: Likewise.
3813 * avr-tdep.c: Likewise.
3814 * ax-gdb.c: Likewise.
3815 * ax-general.c: Likewise.
3816 * bcache.c: Likewise.
3817 * bfin-tdep.c: Likewise.
3818 * breakpoint.c: Likewise.
3819 * build-id.c: Likewise.
3820 * buildsym.c: Likewise.
3821 * c-exp.y: Likewise.
3822 * c-lang.c: Likewise.
3823 * c-typeprint.c: Likewise.
3824 * c-valprint.c: Likewise.
3825 * charset.c: Likewise.
3826 * cli-out.c: Likewise.
3827 * cli/cli-cmds.c: Likewise.
3828 * cli/cli-decode.c: Likewise.
3829 * cli/cli-dump.c: Likewise.
3830 * cli/cli-interp.c: Likewise.
3831 * cli/cli-logging.c: Likewise.
3832 * cli/cli-script.c: Likewise.
3833 * cli/cli-setshow.c: Likewise.
3834 * cli/cli-utils.c: Likewise.
3835 * coffread.c: Likewise.
3836 * common/agent.c: Likewise.
3837 * common/buffer.c: Likewise.
3838 * common/buffer.h: Likewise.
3839 * common/common-utils.c: Likewise.
3840 * common/filestuff.c: Likewise.
3841 * common/filestuff.c: Likewise.
3842 * common/format.c: Likewise.
3843 * common/print-utils.c: Likewise.
3844 * common/rsp-low.c: Likewise.
3845 * common/signals.c: Likewise.
3846 * common/vec.h: Likewise.
3847 * common/xml-utils.c: Likewise.
3848 * core-regset.c: Likewise.
3849 * corefile.c: Likewise.
3850 * corelow.c: Likewise.
3851 * cp-abi.c: Likewise.
3852 * cp-name-parser.y: Likewise.
3853 * cp-support.c: Likewise.
3854 * cp-valprint.c: Likewise.
3855 * cris-tdep.c: Likewise.
3856 * d-exp.y: Likewise.
3857 * darwin-nat.c: Likewise.
3858 * dbxread.c: Likewise.
3859 * dcache.c: Likewise.
3860 * demangle.c: Likewise.
3861 * dicos-tdep.c: Likewise.
3862 * disasm.c: Likewise.
3863 * doublest.c: Likewise.
3864 * dsrec.c: Likewise.
3865 * dummy-frame.c: Likewise.
3866 * dwarf2-frame.c: Likewise.
3867 * dwarf2loc.c: Likewise.
3868 * dwarf2read.c: Likewise.
3869 * elfread.c: Likewise.
3870 * environ.c: Likewise.
3872 * event-loop.c: Likewise.
3873 * exceptions.c: Likewise.
3875 * expprint.c: Likewise.
3876 * f-exp.y: Likewise.
3877 * f-lang.c: Likewise.
3878 * f-typeprint.c: Likewise.
3879 * f-valprint.c: Likewise.
3880 * fbsd-nat.c: Likewise.
3881 * findcmd.c: Likewise.
3882 * findvar.c: Likewise.
3883 * fork-child.c: Likewise.
3884 * frame.c: Likewise.
3885 * frv-linux-tdep.c: Likewise.
3886 * frv-tdep.c: Likewise.
3888 * gdb_bfd.c: Likewise.
3889 * gdbarch.c: Likewise.
3890 * gdbarch.sh: Likewise.
3891 * gdbtypes.c: Likewise.
3892 * gnu-nat.c: Likewise.
3893 * gnu-v2-abi.c: Likewise.
3894 * gnu-v3-abi.c: Likewise.
3895 * go-exp.y: Likewise.
3896 * go-lang.c: Likewise.
3897 * go32-nat.c: Likewise.
3898 * guile/guile.c: Likewise.
3899 * guile/scm-auto-load.c: Likewise.
3900 * hppa-hpux-tdep.c: Likewise.
3901 * hppa-linux-nat.c: Likewise.
3902 * hppanbsd-tdep.c: Likewise.
3903 * hppaobsd-tdep.c: Likewise.
3904 * i386-cygwin-tdep.c: Likewise.
3905 * i386-dicos-tdep.c: Likewise.
3906 * i386-linux-tdep.c: Likewise.
3907 * i386-nto-tdep.c: Likewise.
3908 * i386-sol2-tdep.c: Likewise.
3909 * i386-tdep.c: Likewise.
3910 * i386bsd-tdep.c: Likewise.
3911 * i386gnu-nat.c: Likewise.
3912 * i386nbsd-tdep.c: Likewise.
3913 * i386obsd-tdep.c: Likewise.
3914 * i387-tdep.c: Likewise.
3915 * ia64-libunwind-tdep.c: Likewise.
3916 * ia64-linux-nat.c: Likewise.
3917 * inf-child.c: Likewise.
3918 * inf-ptrace.c: Likewise.
3919 * inf-ttrace.c: Likewise.
3920 * infcall.c: Likewise.
3921 * infcmd.c: Likewise.
3922 * inflow.c: Likewise.
3923 * infrun.c: Likewise.
3924 * interps.c: Likewise.
3925 * iq2000-tdep.c: Likewise.
3926 * irix5-nat.c: Likewise.
3927 * jv-exp.y: Likewise.
3928 * jv-lang.c: Likewise.
3929 * jv-typeprint.c: Likewise.
3930 * jv-valprint.c: Likewise.
3931 * language.c: Likewise.
3932 * linux-fork.c: Likewise.
3933 * linux-nat.c: Likewise.
3934 * lm32-tdep.c: Likewise.
3935 * m2-exp.y: Likewise.
3936 * m2-typeprint.c: Likewise.
3937 * m32c-tdep.c: Likewise.
3938 * m32r-linux-nat.c: Likewise.
3939 * m32r-linux-tdep.c: Likewise.
3940 * m32r-rom.c: Likewise.
3941 * m32r-tdep.c: Likewise.
3942 * m68hc11-tdep.c: Likewise.
3943 * m68k-tdep.c: Likewise.
3944 * m68kbsd-tdep.c: Likewise.
3945 * m68klinux-nat.c: Likewise.
3946 * m68klinux-tdep.c: Likewise.
3947 * m88k-tdep.c: Likewise.
3948 * machoread.c: Likewise.
3949 * macrocmd.c: Likewise.
3951 * mdebugread.c: Likewise.
3952 * mem-break.c: Likewise.
3953 * memattr.c: Likewise.
3954 * memory-map.c: Likewise.
3955 * mep-tdep.c: Likewise.
3956 * mi/mi-cmd-break.c: Likewise.
3957 * mi/mi-cmd-disas.c: Likewise.
3958 * mi/mi-cmd-env.c: Likewise.
3959 * mi/mi-cmd-stack.c: Likewise.
3960 * mi/mi-cmd-var.c: Likewise.
3961 * mi/mi-cmds.c: Likewise.
3962 * mi/mi-console.c: Likewise.
3963 * mi/mi-getopt.c: Likewise.
3964 * mi/mi-interp.c: Likewise.
3965 * mi/mi-main.c: Likewise.
3966 * mi/mi-parse.c: Likewise.
3967 * microblaze-rom.c: Likewise.
3968 * microblaze-tdep.c: Likewise.
3969 * mingw-hdep.c: Likewise.
3970 * minidebug.c: Likewise.
3971 * minsyms.c: Likewise.
3972 * mips-irix-tdep.c: Likewise.
3973 * mips-linux-tdep.c: Likewise.
3974 * mips-tdep.c: Likewise.
3975 * mips64obsd-tdep.c: Likewise.
3976 * mipsnbsd-tdep.c: Likewise.
3977 * mipsread.c: Likewise.
3978 * mn10300-linux-tdep.c: Likewise.
3979 * mn10300-tdep.c: Likewise.
3980 * monitor.c: Likewise.
3981 * moxie-tdep.c: Likewise.
3982 * mt-tdep.c: Likewise.
3983 * nat/linux-btrace.c: Likewise.
3984 * nat/linux-osdata.c: Likewise.
3985 * nat/linux-procfs.c: Likewise.
3986 * nat/linux-ptrace.c: Likewise.
3987 * nat/linux-waitpid.c: Likewise.
3988 * nbsd-tdep.c: Likewise.
3989 * nios2-linux-tdep.c: Likewise.
3990 * nto-procfs.c: Likewise.
3991 * nto-tdep.c: Likewise.
3992 * objc-lang.c: Likewise.
3993 * objfiles.c: Likewise.
3994 * opencl-lang.c: Likewise.
3995 * osabi.c: Likewise.
3996 * osdata.c: Likewise.
3997 * p-exp.y: Likewise.
3998 * p-lang.c: Likewise.
3999 * p-typeprint.c: Likewise.
4000 * parse.c: Likewise.
4001 * posix-hdep.c: Likewise.
4002 * ppc-linux-nat.c: Likewise.
4003 * ppc-sysv-tdep.c: Likewise.
4004 * ppcfbsd-tdep.c: Likewise.
4005 * ppcnbsd-tdep.c: Likewise.
4006 * ppcobsd-tdep.c: Likewise.
4007 * printcmd.c: Likewise.
4008 * procfs.c: Likewise.
4009 * prologue-value.c: Likewise.
4010 * python/py-auto-load.c: Likewise.
4011 * python/py-gdb-readline.c: Likewise.
4012 * ravenscar-thread.c: Likewise.
4013 * regcache.c: Likewise.
4014 * registry.c: Likewise.
4015 * remote-fileio.c: Likewise.
4016 * remote-m32r-sdi.c: Likewise.
4017 * remote-mips.c: Likewise.
4018 * remote-notif.c: Likewise.
4019 * remote-sim.c: Likewise.
4020 * remote.c: Likewise.
4021 * reverse.c: Likewise.
4022 * rs6000-aix-tdep.c: Likewise.
4023 * ser-base.c: Likewise.
4024 * ser-go32.c: Likewise.
4025 * ser-mingw.c: Likewise.
4026 * ser-pipe.c: Likewise.
4027 * ser-tcp.c: Likewise.
4028 * ser-unix.c: Likewise.
4029 * serial.c: Likewise.
4030 * sh-tdep.c: Likewise.
4031 * sh64-tdep.c: Likewise.
4032 * shnbsd-tdep.c: Likewise.
4034 * sol-thread.c: Likewise.
4035 * solib-dsbt.c: Likewise.
4036 * solib-frv.c: Likewise.
4037 * solib-osf.c: Likewise.
4038 * solib-som.c: Likewise.
4039 * solib-spu.c: Likewise.
4040 * solib-target.c: Likewise.
4041 * solib.c: Likewise.
4042 * somread.c: Likewise.
4043 * source.c: Likewise.
4044 * sparc-nat.c: Likewise.
4045 * sparc-sol2-tdep.c: Likewise.
4046 * sparc-tdep.c: Likewise.
4047 * sparc64-tdep.c: Likewise.
4048 * sparc64fbsd-tdep.c: Likewise.
4049 * sparc64nbsd-tdep.c: Likewise.
4050 * sparcnbsd-tdep.c: Likewise.
4051 * spu-linux-nat.c: Likewise.
4052 * spu-multiarch.c: Likewise.
4053 * spu-tdep.c: Likewise.
4054 * stabsread.c: Likewise.
4055 * stack.c: Likewise.
4056 * std-regs.c: Likewise.
4057 * symfile.c: Likewise.
4058 * symmisc.c: Likewise.
4059 * symtab.c: Likewise.
4060 * target.c: Likewise.
4061 * thread.c: Likewise.
4062 * tilegx-linux-nat.c: Likewise.
4063 * tilegx-tdep.c: Likewise.
4065 * tracepoint.c: Likewise.
4066 * tui/tui-command.c: Likewise.
4067 * tui/tui-data.c: Likewise.
4068 * tui/tui-disasm.c: Likewise.
4069 * tui/tui-file.c: Likewise.
4070 * tui/tui-layout.c: Likewise.
4071 * tui/tui-out.c: Likewise.
4072 * tui/tui-regs.c: Likewise.
4073 * tui/tui-source.c: Likewise.
4074 * tui/tui-stack.c: Likewise.
4075 * tui/tui-win.c: Likewise.
4076 * tui/tui-windata.c: Likewise.
4077 * tui/tui-winsource.c: Likewise.
4078 * typeprint.c: Likewise.
4079 * ui-file.c: Likewise.
4080 * ui-out.c: Likewise.
4081 * user-regs.c: Likewise.
4082 * utils.c: Likewise.
4083 * v850-tdep.c: Likewise.
4084 * valarith.c: Likewise.
4085 * valops.c: Likewise.
4086 * valprint.c: Likewise.
4087 * value.c: Likewise.
4088 * varobj.c: Likewise.
4089 * vax-tdep.c: Likewise.
4090 * vaxnbsd-tdep.c: Likewise.
4091 * vaxobsd-tdep.c: Likewise.
4092 * windows-nat.c: Likewise.
4093 * xcoffread.c: Likewise.
4094 * xml-support.c: Likewise.
4095 * xstormy16-tdep.c: Likewise.
4096 * xtensa-linux-nat.c: Likewise.
4098 2014-08-07 Gary Benson <gbenson@redhat.com>
4100 * common/common-defs.h: Include gdb_assert.h.
4101 * aarch64-tdep.c: Do not include gdb_assert.h.
4102 * addrmap.c: Likewise.
4103 * aix-thread.c: Likewise.
4104 * alpha-linux-tdep.c: Likewise.
4105 * alpha-mdebug-tdep.c: Likewise.
4106 * alphanbsd-tdep.c: Likewise.
4107 * amd64-nat.c: Likewise.
4108 * amd64-tdep.c: Likewise.
4109 * amd64bsd-nat.c: Likewise.
4110 * amd64fbsd-nat.c: Likewise.
4111 * amd64fbsd-tdep.c: Likewise.
4112 * amd64nbsd-nat.c: Likewise.
4113 * amd64nbsd-tdep.c: Likewise.
4114 * amd64obsd-nat.c: Likewise.
4115 * amd64obsd-tdep.c: Likewise.
4116 * arch-utils.c: Likewise.
4117 * arm-tdep.c: Likewise.
4118 * armbsd-tdep.c: Likewise.
4120 * bcache.c: Likewise.
4121 * bfin-tdep.c: Likewise.
4122 * blockframe.c: Likewise.
4123 * breakpoint.c: Likewise.
4124 * bsd-kvm.c: Likewise.
4125 * bsd-uthread.c: Likewise.
4126 * buildsym.c: Likewise.
4127 * c-exp.y: Likewise.
4128 * c-lang.c: Likewise.
4129 * charset.c: Likewise.
4130 * cleanups.c: Likewise.
4131 * cli-out.c: Likewise.
4132 * cli/cli-decode.c: Likewise.
4133 * cli/cli-dump.c: Likewise.
4134 * cli/cli-logging.c: Likewise.
4135 * cli/cli-script.c: Likewise.
4136 * cli/cli-utils.c: Likewise.
4137 * coffread.c: Likewise.
4138 * common/common-utils.c: Likewise.
4139 * common/queue.h: Likewise.
4140 * common/signals.c: Likewise.
4141 * common/vec.h: Likewise.
4142 * complaints.c: Likewise.
4143 * completer.c: Likewise.
4144 * corelow.c: Likewise.
4145 * cp-abi.c: Likewise.
4146 * cp-name-parser.y: Likewise.
4147 * cp-namespace.c: Likewise.
4148 * cp-support.c: Likewise.
4149 * cris-tdep.c: Likewise.
4150 * dbxread.c: Likewise.
4151 * dictionary.c: Likewise.
4152 * doublest.c: Likewise.
4153 * dsrec.c: Likewise.
4154 * dummy-frame.c: Likewise.
4155 * dwarf2-frame-tailcall.c: Likewise.
4156 * dwarf2-frame.c: Likewise.
4157 * dwarf2expr.c: Likewise.
4158 * dwarf2loc.c: Likewise.
4159 * dwarf2read.c: Likewise.
4161 * event-loop.c: Likewise.
4162 * exceptions.c: Likewise.
4163 * expprint.c: Likewise.
4164 * f-valprint.c: Likewise.
4165 * fbsd-nat.c: Likewise.
4166 * findvar.c: Likewise.
4167 * frame-unwind.c: Likewise.
4168 * frame.c: Likewise.
4169 * frv-tdep.c: Likewise.
4170 * gcore.c: Likewise.
4171 * gdb-dlfcn.c: Likewise.
4172 * gdb_bfd.c: Likewise.
4173 * gdbarch.c: Likewise.
4174 * gdbarch.sh: Likewise.
4175 * gdbtypes.c: Likewise.
4176 * gnu-nat.c: Likewise.
4177 * gnu-v3-abi.c: Likewise.
4178 * go-lang.c: Likewise.
4179 * guile/scm-exception.c: Likewise.
4180 * guile/scm-gsmob.c: Likewise.
4181 * guile/scm-lazy-string.c: Likewise.
4182 * guile/scm-math.c: Likewise.
4183 * guile/scm-pretty-print.c: Likewise.
4184 * guile/scm-safe-call.c: Likewise.
4185 * guile/scm-utils.c: Likewise.
4186 * guile/scm-value.c: Likewise.
4187 * h8300-tdep.c: Likewise.
4188 * hppa-hpux-nat.c: Likewise.
4189 * hppa-tdep.c: Likewise.
4190 * hppanbsd-tdep.c: Likewise.
4191 * hppaobsd-tdep.c: Likewise.
4192 * i386-darwin-nat.c: Likewise.
4193 * i386-darwin-tdep.c: Likewise.
4194 * i386-nto-tdep.c: Likewise.
4195 * i386-tdep.c: Likewise.
4196 * i386bsd-nat.c: Likewise.
4197 * i386fbsd-tdep.c: Likewise.
4198 * i386gnu-nat.c: Likewise.
4199 * i386nbsd-tdep.c: Likewise.
4200 * i386obsd-tdep.c: Likewise.
4201 * i387-tdep.c: Likewise.
4202 * ia64-libunwind-tdep.c: Likewise.
4203 * ia64-tdep.c: Likewise.
4204 * inf-ptrace.c: Likewise.
4205 * inf-ttrace.c: Likewise.
4206 * infcall.c: Likewise.
4207 * infcmd.c: Likewise.
4208 * infrun.c: Likewise.
4209 * inline-frame.c: Likewise.
4210 * interps.c: Likewise.
4211 * jv-lang.c: Likewise.
4212 * jv-typeprint.c: Likewise.
4213 * linux-fork.c: Likewise.
4214 * linux-nat.c: Likewise.
4215 * linux-thread-db.c: Likewise.
4216 * m32c-tdep.c: Likewise.
4217 * m32r-linux-nat.c: Likewise.
4218 * m32r-tdep.c: Likewise.
4219 * m68k-tdep.c: Likewise.
4220 * m68kbsd-nat.c: Likewise.
4221 * m68kbsd-tdep.c: Likewise.
4222 * m88k-tdep.c: Likewise.
4223 * machoread.c: Likewise.
4224 * macroexp.c: Likewise.
4225 * macrotab.c: Likewise.
4226 * maint.c: Likewise.
4227 * mdebugread.c: Likewise.
4228 * memory-map.c: Likewise.
4229 * mep-tdep.c: Likewise.
4230 * mi/mi-common.c: Likewise.
4231 * microblaze-tdep.c: Likewise.
4232 * mingw-hdep.c: Likewise.
4233 * mips-linux-nat.c: Likewise.
4234 * mips-linux-tdep.c: Likewise.
4235 * mips-tdep.c: Likewise.
4236 * mips64obsd-tdep.c: Likewise.
4237 * mipsnbsd-tdep.c: Likewise.
4238 * mn10300-linux-tdep.c: Likewise.
4239 * mn10300-tdep.c: Likewise.
4240 * moxie-tdep.c: Likewise.
4241 * mt-tdep.c: Likewise.
4242 * nat/linux-btrace.c: Likewise.
4243 * nat/linux-osdata.c: Likewise.
4244 * nat/linux-ptrace.c: Likewise.
4245 * nat/mips-linux-watch.c: Likewise.
4246 * nios2-linux-tdep.c: Likewise.
4247 * nios2-tdep.c: Likewise.
4248 * objc-lang.c: Likewise.
4249 * objfiles.c: Likewise.
4250 * obsd-nat.c: Likewise.
4251 * opencl-lang.c: Likewise.
4252 * osabi.c: Likewise.
4253 * parse.c: Likewise.
4254 * ppc-linux-nat.c: Likewise.
4255 * ppc-sysv-tdep.c: Likewise.
4256 * ppcfbsd-nat.c: Likewise.
4257 * ppcfbsd-tdep.c: Likewise.
4258 * ppcnbsd-nat.c: Likewise.
4259 * ppcnbsd-tdep.c: Likewise.
4260 * ppcobsd-nat.c: Likewise.
4261 * ppcobsd-tdep.c: Likewise.
4262 * printcmd.c: Likewise.
4263 * procfs.c: Likewise.
4264 * prologue-value.c: Likewise.
4265 * psymtab.c: Likewise.
4266 * python/py-lazy-string.c: Likewise.
4267 * python/py-value.c: Likewise.
4268 * regcache.c: Likewise.
4269 * reggroups.c: Likewise.
4270 * registry.c: Likewise.
4271 * remote-sim.c: Likewise.
4272 * remote.c: Likewise.
4273 * rs6000-aix-tdep.c: Likewise.
4274 * rs6000-tdep.c: Likewise.
4275 * s390-linux-tdep.c: Likewise.
4276 * score-tdep.c: Likewise.
4277 * ser-base.c: Likewise.
4278 * ser-mingw.c: Likewise.
4279 * sh-tdep.c: Likewise.
4280 * sh64-tdep.c: Likewise.
4281 * solib-darwin.c: Likewise.
4282 * solib-spu.c: Likewise.
4283 * solib-svr4.c: Likewise.
4284 * source.c: Likewise.
4285 * sparc-nat.c: Likewise.
4286 * sparc-sol2-tdep.c: Likewise.
4287 * sparc-tdep.c: Likewise.
4288 * sparc64-sol2-tdep.c: Likewise.
4289 * sparc64-tdep.c: Likewise.
4290 * sparc64fbsd-tdep.c: Likewise.
4291 * sparc64nbsd-tdep.c: Likewise.
4292 * sparc64obsd-tdep.c: Likewise.
4293 * sparcnbsd-tdep.c: Likewise.
4294 * sparcobsd-tdep.c: Likewise.
4295 * spu-multiarch.c: Likewise.
4296 * spu-tdep.c: Likewise.
4297 * stabsread.c: Likewise.
4298 * stack.c: Likewise.
4299 * symfile.c: Likewise.
4300 * symtab.c: Likewise.
4301 * target-descriptions.c: Likewise.
4302 * target-memory.c: Likewise.
4303 * target.c: Likewise.
4304 * tic6x-linux-tdep.c: Likewise.
4305 * tic6x-tdep.c: Likewise.
4306 * tilegx-linux-nat.c: Likewise.
4307 * tilegx-tdep.c: Likewise.
4309 * tramp-frame.c: Likewise.
4310 * tui/tui-out.c: Likewise.
4311 * tui/tui-winsource.c: Likewise.
4312 * ui-out.c: Likewise.
4313 * user-regs.c: Likewise.
4314 * utils.c: Likewise.
4315 * v850-tdep.c: Likewise.
4316 * valops.c: Likewise.
4317 * value.c: Likewise.
4318 * varobj.c: Likewise.
4319 * vax-nat.c: Likewise.
4320 * xml-syscall.c: Likewise.
4321 * xml-tdesc.c: Likewise.
4322 * xstormy16-tdep.c: Likewise.
4323 * xtensa-linux-nat.c: Likewise.
4324 * xtensa-tdep.c: Likewise.
4326 2014-08-07 Gary Benson <gbenson@redhat.com>
4328 * common/common-defs.h: Include common-utils.h.
4329 * defs.h: Do not include common-utils.h.
4330 * common/gdb_assert.h: Likewise.
4331 * darwin-nat.h: Likewise.
4332 * nat/linux-btrace.c: Likewise.
4333 * target/waitstatus.h: Likewise.
4335 2014-08-07 Gary Benson <gbenson@redhat.com>
4337 * common/common-defs.h: Include ptid.h.
4338 * defs.h: Do not include ptid.h.
4339 * inferior.h: Likewise.
4340 * infrun.h: Likewise.
4341 * nat/linux-btrace.h: Likewise.
4342 * nat/linux-osdata.h: Likewise.
4343 * target/waitstatus.h: Likewise.
4345 2014-08-07 Gary Benson <gbenson@redhat.com>
4347 * common/common-defs.h: Include gdb_locale.h.
4348 * defs.h: Do not include gdb_locale.h.
4350 2014-08-07 Gary Benson <gbenson@redhat.com>
4352 * common/common-defs.h: Include gdb/signals.h.
4353 * defs.h: Do not include gdb/signals.h.
4355 2014-08-07 Gary Benson <gbenson@redhat.com>
4357 * common/common-defs.h: Include pathmax.h.
4358 * defs.h: Do not include pathmax.h.
4360 2014-08-07 Gary Benson <gbenson@redhat.com>
4362 * common/common-defs.h: Include libiberty.h.
4363 * defs.h: Do not include libiberty.h.
4364 * common/queue.h: Likewise.
4365 * cp-name-parser.y: Likewise.
4366 * mi/mi-cmd-catch.c: Likewise.
4367 * python/python.c: Likewise.
4369 2014-08-07 Gary Benson <gbenson@redhat.com>
4371 * common/common-defs.h: Include ansidecl.h.
4372 * defs.h: Do not include ansidecl.h.
4373 * common/buffer.h: Likewise.
4374 * common/common-utils.h: Likewise.
4376 2014-08-07 Gary Benson <gbenson@redhat.com>
4378 * common/common-defs.h: Include stddef.h.
4379 * defs.h: Do not include stddef.h.
4380 * common/common-utils.h: Likewise.
4381 * amd64fbsd-nat.c: Likewise.
4382 * bcache.c: Likewise.
4383 * charset.c: Likewise.
4384 * common/buffer.h: Likewise.
4385 * common/vec.h: Likewise.
4386 * i386bsd-nat.c: Likewise.
4387 * nat/linux-btrace.h: Likewise.
4388 * ppcfbsd-nat.c: Likewise.
4389 * ppcnbsd-tdep.h: Likewise.
4390 * ppcobsd-nat.c: Likewise.
4391 * ppcobsd-tdep.h: Likewise.
4392 * python/py-gdb-readline.c: Likewise.
4394 2014-08-07 Gary Benson <gbenson@redhat.com>
4396 * common/common-defs.h: Include stdarg.h.
4397 * defs.h: Do not include stdarg.h.
4398 * ada-lang.c: Likewise.
4399 * common/common-utils.h: Likewise.
4400 * guile/scm-string.c: Likewise.
4401 * guile/scm-utils.c: Likewise.
4402 * m32c-tdep.c: Likewise.
4404 2014-08-07 Gary Benson <gbenson@redhat.com>
4406 * common/common-defs.h: Include stdlib.h.
4407 * defs.h: Do not include stdlib.h.
4408 * addrmap.c: Likewise.
4409 * bcache.c: Likewise.
4410 * common/buffer.c: Likewise.
4411 * common/common-utils.c: Likewise.
4412 * cp-name-parser.y: Likewise.
4413 * go32-nat.c: Likewise.
4414 * mn10300-linux-tdep.c: Likewise.
4415 * nat/linux-osdata.c: Likewise.
4416 * tui/tui.c: Likewise.
4417 * windows-nat.c: Likewise.
4419 2014-08-07 Gary Benson <gbenson@redhat.com>
4421 * common/common-defs.h: Include stdio.h.
4422 * defs.h: Do not include stdio.h.
4423 * ada-lang.c: Likewise.
4424 * common/buffer.c: Likewise.
4425 * common/common-utils.c: Likewise.
4426 * cp-name-parser.y: Likewise.
4427 * gnu-nat.c: Likewise.
4428 * go32-nat.c: Likewise.
4429 * i386gnu-nat.c: Likewise.
4430 * proc-api.c: Likewise.
4431 * proc-events.c: Likewise.
4432 * proc-flags.c: Likewise.
4433 * proc-why.c: Likewise.
4434 * python/python-internal.h: Likewise.
4435 * target-memory.c: Likewise.
4436 * tui/tui-io.c: Likewise.
4437 * tui/tui.c: Likewise.
4439 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4441 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4442 (scan_dyntag_auxv): Same.
4444 2014-08-06 Yao Qi <yao@codesourcery.com>
4446 * amd64-linux-nat.c: Remove duplicated include
4448 * i386-linux-nat.c: Likewise.
4450 2014-08-06 Yao Qi <yao@codesourcery.com>
4452 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4453 operand" with "Special opcode" in comments.
4455 2014-08-05 Gary Benson <gbenson@redhat.com>
4457 * interps.c (initialize_interps): Remove prototype.
4458 (interpreter_initialized): Remove static global.
4459 (interp_add): Do not call initialize_interps.
4460 (initialize_interps): Remove function.
4462 2014-08-05 Gary Benson <gbenson@redhat.com>
4464 * utils.c (vwarning): Remove spurious va_end.
4466 2014-08-05 Alan Modra <amodra@gmail.com>
4468 * charset.c (convert_between_encodings): Cast result of obstack_base.
4469 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4470 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4471 (read_unwind_info): Use size_t for some locals.
4472 * jit.c (finalize_symtab): Likewise.
4473 * utils.c (hashtab_obstack_allocate): Likewise.
4474 * symmisc.c (print_objfile_statistics): Update format strings.
4476 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4478 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4479 (Changes in GDB 7.8): ... here.
4481 2014-08-04 Tom Tromey <tromey@redhat.com>
4483 * target.c (set_targetdebug): New function.
4484 (initialize_targets): Pass set_targetdebug when creating "set
4487 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4489 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4490 if detecting a variable-sized field that is not the last field.
4491 Fix struct type length computation.
4493 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4495 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4498 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4500 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4501 Remove "+ 8" offset in computation of CHAIN_VMA.
4503 2014-07-31 Doug Evans <dje@google.com>
4505 * inflow.c (child_terminal_inferior): Add comment.
4506 (child_terminal_ours_for_output): Add comment.
4507 (child_terminal_ours): Add comment.
4508 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4509 (linux_nat_terminal_ours): Add comment.
4511 2014-07-31 Gary Benson <gbenson@redhat.com>
4513 * common/btrace-common.h: Do not include defs.h or server.h.
4514 * nat/mips-linux-watch.h: Likewise.
4515 * gdb-dlfcn.h: Do not include defs.h.
4516 * tracefile.h: Likewise.
4518 2014-07-30 Roland McGrath <mcgrathr@google.com>
4520 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4522 2014-07-30 Tom Tromey <tromey@redhat.com>
4524 * bsd-kvm.c (bsd_kvm_open): Constify.
4525 * corelow.c (core_open): Constify.
4526 * ctf.c (ctf_open): Constify.
4527 * dbug-rom.c (dbug_open): Constify.
4528 * exec.c (exec_open): Constify.
4529 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4530 * microblaze-rom.c (picobug_open): Constify.
4531 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4533 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4534 * record-btrace.c (record_btrace_open): Constify.
4535 * record-full.c (record_full_core_open_1, record_full_open_1)
4536 (record_full_open): Constify.
4537 * remote-m32r-sdi.c (m32r_open): Constify.
4538 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4539 (rockhopper_open, lsi_open): Constify.
4540 * remote-sim.c (gdbsim_open): Constify.
4541 * remote.c (remote_open, extended_remote_open, remote_open_1):
4543 * target.h (struct target_ops) <to_open>: Make "arg" const.
4544 * tracefile-tfile.c (tfile_open): Constify.
4546 2014-07-30 Tom Tromey <tromey@redhat.com>
4548 * breakpoint.c (map_breakpoint_numbers): Update.
4549 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4550 (get_number_const): New function.
4551 (get_number): Rewrite using get_number_const.
4552 (init_number_or_range): Make "string" const.
4553 (number_is_in_list): Make "list" const.
4554 * cli/cli-utils.h (get_number_const): Declare.
4555 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4556 (init_number_or_range, number_is_in_list): Update.
4557 * printcmd.c (map_display_numbers): Update.
4558 * value.c (value_from_history_ref): Constify.
4559 * value.h (value_from_history_ref): Update.
4561 2014-07-30 Tom Tromey <tromey@redhat.com>
4563 * corefile.c (hook_type, call_extra_exec_file_hooks)
4564 (specify_exec_file_hook): Constify.
4565 * exec.c (exec_file_attach): Make "filename" const.
4566 * gdbcore.h (deprecated_exec_file_display_hook)
4567 (specify_exec_file_hook, exec_file_attach): Constify.
4568 * main.c (captured_main): Use catch_command_errors_const.
4570 2014-07-30 Tom Tromey <tromey@redhat.com>
4572 * target.c (open_target): New function.
4573 (add_target_with_completer, add_deprecated_target_alias): Use
4574 set_cmd_sfunc, set_cmd_context.
4575 (debug_to_open): Remove.
4576 (setup_target_debug): Update.
4578 2014-07-30 Yao Qi <yao@codesourcery.com>
4580 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4582 * parse.c (exp_iterate): Update comments.
4584 2014-07-30 Gary Benson <gbenson@redhat.com>
4586 * common/common-defs.h: New file.
4587 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4588 * defs.h: Include common-defs.h.
4589 Do not include config.h or build-gnulib/config.h.
4591 2014-07-30 Gary Benson <gbenson@redhat.com>
4593 * common/common-utils.h: Do not include config.h.
4594 * nat/linux-btrace.h: Likewise.
4596 2014-07-30 Gary Benson <gbenson@redhat.com>
4598 * btrace.c: Include defs.h.
4599 * common/ptid.c: Include defs.h or server.h as appropriate.
4600 * nat/mips-linux-watch.c: Likewise.
4602 2014-07-29 Tom Tromey <tromey@redhat.com>
4604 * target.c (target_is_pushed): Simplify.
4606 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4610 2014-07-29 Yao Qi <yao@codesourcery.com>
4613 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4615 2014-07-28 Doug Evans <xdje42@gmail.com>
4618 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4619 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4622 2014-07-28 Will Newton <will.newton@linaro.org>
4624 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4625 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4626 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4627 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4628 (THUMB2_EABI_SYSCALL): Likewise.
4629 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4631 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4632 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4634 2014-07-27 Doug Evans <xdje42@gmail.com>
4636 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4638 2014-07-27 Doug Evans <xdje42@gmail.com>
4640 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4642 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4643 Doug Evans <xdje42@gmail.com>
4646 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4647 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4648 * configure.ac: Try to use guild to compile an scm file, if it fails
4649 then disable guile support.
4650 * configure: Regenerate.
4651 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4653 (GUILE_COMPILED_FILES): New variable.
4654 (GUILE_FILES) Update.
4655 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4656 (stamp-guile): Compile scm files.
4657 * guile/guile.c (boot_guile_support): New function.
4658 (standard_throw_args_p): New function.
4659 (print_standard_throw_error, print_throw_error): New functions.
4660 (handle_boot_error): New function.
4661 (initialize_scheme_side): Rewrite to call boot_guile_support.
4662 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4663 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4665 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4666 Doug Evans <xdje42@gmail.com>
4669 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4670 * guile/lib/gdb/support.scm: New file.
4671 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4672 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4674 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4676 (%assert-type): Ditto, and renamed to assert-type.
4677 (%exception-print-style): Delete.
4679 2014-07-26 Doug Evans <xdje42@gmail.com>
4682 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4683 * configure: Regenerate.
4684 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4686 (PYTHON_FILES): New variable.
4687 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4688 (GUILE_FILES): New variable.
4689 (stamp-python, install-python, uninstall-python): Handle empty
4691 (stamp-guile, install-guile, uninstall-guile): Ditto.
4693 2014-07-26 Doug Evans <xdje42@gmail.com>
4696 * guile/lib/gdb.scm (pretty-printers): Export.
4697 (set-pretty-printers!): Export.
4698 * guile/lib/gdb/printing.scm (gdb module): Update.
4699 (prepend-pretty-printer!, append-pretty-printer!): Update.
4700 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4701 (pretty_printer_list_var): Delete.
4702 (pretty_printer_list): New static global.
4703 (gdbscm_pretty_printers): New function.
4704 (gdbscm_set_pretty_printers_x): New function.
4705 (ppscm_find_pretty_printer_from_gdb): Update.
4706 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4707 (gdbscm_initialize_pretty_printers): Update.
4709 2014-07-26 Doug Evans <xdje42@gmail.com>
4712 * configure.ac: Add check for header gc/gc.h.
4713 Add check for function setenv.
4714 * configure: Regenerate.
4715 * config.in: Regenerate.
4716 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4718 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4720 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4721 variation in gdbarch matching.
4723 2014-07-25 Tom Tromey <tromey@redhat.com>
4725 * exec.c (using_exec_ops): Remove.
4726 (exec_close_1): Update. Remove extraneous block, reindent.
4727 (add_target_sections): Use target_is_pushed.
4729 2014-07-25 Pedro Alves <palves@redhat.com>
4731 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4732 * monitor.c (monitor_create_inferior): Likewise.
4733 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4734 * remote-sim.c (gdbsim_create_inferior): Likewise.
4735 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4736 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4737 * windows-nat.c (do_initial_windows_stuff): Likewise.
4739 2014-07-25 Pedro Alves <palves@redhat.com>
4741 * NEWS: Mention signal passing and "signal" command changes.
4742 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4744 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4746 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4747 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4748 (jump_command): Adjust clear_proceed_status call.
4749 (signal_command): Warn if other thread that are resumed have
4750 signals that will be delivered. Adjust clear_proceed_status call.
4751 (until_next_command, finish_command)
4752 (proceed_after_attach_callback, attach_command_post_wait)
4753 (attach_command): Adjust clear_proceed_status call.
4754 * infrun.c (proceed_after_vfork_done): Likewise.
4755 (proceed_after_attach_callback): Adjust comment.
4756 (clear_proceed_status_thread): Clear stop_signal if not in pass
4758 (clear_proceed_status_callback): Delete.
4759 (clear_proceed_status): New 'step' parameter. Only clear the
4760 proceed status of threads the command being prepared is about to
4762 (proceed): If passed in an explicit signal, override stop_signal
4763 with it. Don't pass the last stop signal to the thread we're
4765 (init_wait_for_inferior): Adjust clear_proceed_status call.
4766 (switch_back_to_stepped_thread): Clear the signal if it should not
4768 * infrun.h (clear_proceed_status): New 'step' parameter.
4769 (user_visible_resume_ptid): Add comment.
4770 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4771 signal is in pass state.
4772 * remote.c (append_pending_thread_resumptions): Likewise.
4773 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4775 2014-07-25 Tom Tromey <tromey@redhat.com>
4777 * target.h (target_stopped_data_address)
4778 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4781 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4783 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4785 (avr_pointer_to_address): Likewise.
4787 2014-07-24 Tom Tromey <tromey@redhat.com>
4789 * monitor.c (compile_pattern): Update.
4790 * target.h (struct target_ops) <to_shortname, to_longname,
4793 2014-07-24 Tom Tromey <tromey@redhat.com>
4795 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4796 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4797 (add_info_alias, add_com): Make "doc" const.
4798 (print_doc_line): Make "str" const.
4799 (delete_cmd): Update.
4800 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4801 (print_doc_line): Update.
4802 * cli/cli-script.c (document_command): Update.
4803 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4804 (add_com, add_info, add_info_alias): Update.
4805 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4806 * python/py-cmd.c (cmdpy_destroyer): Update.
4808 2014-07-24 Tom Tromey <tromey@redhat.com>
4810 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4811 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4812 (help_cmd_list): Constify.
4813 (lookup_cmd): Update.
4814 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4816 (help_cmd_list, apropos_cmd): Update.
4817 * cli/cli-script.c (show_user): Update.
4818 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4819 * cli/cli-setshow.h (cmd_show_list): Update.
4820 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4821 (cmd_show_list): Update.
4822 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4823 * python/py-cmd.c (cmdpy_destroyer): Update.
4825 2014-07-24 Tom Tromey <tromey@redhat.com>
4827 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4828 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4830 * command.h (deprecate_cmd): Update.
4831 * maint.c (maintenance_do_deprecate): Add casts.
4833 2014-07-24 Tom Tromey <tromey@redhat.com>
4835 * cli/cli-decode.c (help_cmd): Make parameter "const".
4836 * cli/cli-decode.h (help_cmd): Update.
4838 2014-07-24 Tom Tromey <tromey@redhat.com>
4840 * stack.c (up_silently_base, down_silently_base): Make argument
4843 2014-07-24 Tom Tromey <tromey@redhat.com>
4845 * solib.c (solib_add): Make "pattern" const.
4846 * solib.h (solib_add): Update.
4848 2014-07-24 Tom Tromey <tromey@redhat.com>
4850 * remote.c (remote_serial_open, print_packet, putpkt)
4851 (putpkt_binary): Constify.
4852 * remote.h (putpkt): Update.
4854 2014-07-24 Tom Tromey <tromey@redhat.com>
4856 * monitor.c (monitor_open): Make "args" const.
4857 * monitor.h (monitor_open): Update.
4859 2014-07-24 Tom Tromey <tromey@redhat.com>
4861 * maint.c (match_bfd_flags): Make "string" const.
4862 (print_bfd_section_info): Remove casts.
4863 (print_objfile_section_info): Make "string" const.
4865 2014-07-24 Tom Tromey <tromey@redhat.com>
4867 * inf-child.c (inf_child_open_target): Make "arg" const.
4868 * inf-child.h (inf_child_open_target): Update.
4870 2014-07-24 Tom Tromey <tromey@redhat.com>
4872 * environ.c (unset_in_environ): Make "var" const.
4873 * environ.h (unset_in_environ): Update.
4875 2014-07-24 Tom Tromey <tromey@redhat.com>
4877 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4879 (scan_filename_with_cleanup): Likewise.
4880 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4881 Make arguments const.
4882 (restore_command): Update.
4884 2014-07-24 Pedro Alves <palves@redhat.com>
4886 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4888 2014-07-24 Tom Tromey <tromey@redhat.com>
4889 Gary Benson <gbenson@redhat.com>
4891 * nat/linux-ptrace.c (additional_flags): New global.
4892 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4893 additional_flags; don't check GDBSERVER.
4894 (linux_ptrace_set_additional_flags): New function.
4895 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4897 * linux-nat.c (_initialize_linux_nat): Call
4898 linux_ptrace_set_additional_flags.
4900 2014-07-24 Tom Tromey <tromey@redhat.com>
4902 * make-target-delegates (munge_type, write_debugmethod): New
4904 (debug_names): New global.
4905 ($TARGET_DEBUG_PRINTER): New global.
4906 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4908 Write debug methods. Generate init_debug_target.
4909 * target-debug.h: New file.
4910 * target-delegates.c: Rebuild.
4911 * target.c: Include target-debug.h.
4912 (debug_target): Hoist definition.
4913 (target_kill, target_get_section_table, target_memory_map)
4914 (target_flash_erase, target_flash_done, target_detach)
4915 (target_disconnect, target_wait, target_resume)
4916 (target_pass_signals, target_program_signals, target_follow_fork)
4917 (target_mourn_inferior, target_search_memory)
4918 (target_thread_address_space, target_close)
4919 (target_find_new_threads, target_core_of_thread)
4920 (target_verify_memory, target_insert_mask_watchpoint)
4921 (target_remove_mask_watchpoint): Remove targetdebug code.
4922 (debug_to_post_attach, debug_to_prepare_to_store)
4923 (debug_to_files_info, debug_to_insert_breakpoint)
4924 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4925 (debug_to_region_ok_for_hw_watchpoint)
4926 (debug_to_can_accel_watchpoint_condition)
4927 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4928 (debug_to_watchpoint_addr_within_range)
4929 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4930 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4931 (debug_to_terminal_init, debug_to_terminal_inferior)
4932 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4933 (debug_to_terminal_save_ours, debug_to_terminal_info)
4934 (debug_to_load, debug_to_post_startup_inferior)
4935 (debug_to_insert_fork_catchpoint)
4936 (debug_to_remove_fork_catchpoint)
4937 (debug_to_insert_vfork_catchpoint)
4938 (debug_to_remove_vfork_catchpoint)
4939 (debug_to_insert_exec_catchpoint)
4940 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4941 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4942 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4943 (setup_target_debug): Call init_debug_target.
4944 * target.h (TARGET_DEBUG_PRINTER): New macro.
4945 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4946 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4948 2014-07-24 Gary Benson <gbenson@redhat.com>
4950 * exceptions.h (throw_vfatal): Renamed to...
4951 (throw_vquit): New declaration.
4952 (throw_quit): Likewise.
4953 * exceptions.c (throw_vfatal): Renamed to...
4954 (throw_vquit): New function.
4955 (throw_quit): Likewise.
4956 (throw_error): Call throw_verror rather than throw_it.
4957 * utils.h (vfatal): Removed.
4959 * utils.c (vfatal): Removed.
4961 (internal_verror): Replaced call to fatal with call to throw_quit.
4962 (quit): Replaced calls to fatal with calls to throw_quit.
4964 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4966 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4969 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4971 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4972 less than zero in conditional expression.
4974 2014-07-23 Tom Tromey <tromey@redhat.com>
4976 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4977 ($INTRO_PART): Don't match whitespace.
4978 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4980 ($METHOD): Add $METHOD_TRAILER.
4982 (scan_target_h): New sub.
4983 Change main loop not to collect state.
4984 * target-delegates.c: Rebuild.
4986 2014-07-23 Gary Benson <gbenson@redhat.com>
4988 * cp-support.c (gdb_demangle): Fix build on systems without
4991 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4993 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4994 for reference entry value target data value.
4996 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4998 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4999 value_available_contents_eq.
5001 2014-07-22 Pedro Alves <palves@redhat.com>
5003 * value.c (allocate_optimized_out_value): Don't mark value as
5006 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5008 * MAINTAINERS (Write After Approval): Update my email address.
5010 2014-07-20 Doug Evans <dje@google.com>
5013 * remote.c (putpkt_binary): Add text to error message.
5015 2014-07-20 Yao Qi <yao@codesourcery.com>
5017 * eval.c: Remove "Chill" from comments.
5018 * gdbtypes.h: Likewise.
5019 * symtab.h: Likewise.
5021 2014-07-20 Yao Qi <yao@codesourcery.com>
5023 * std-operator.def: Update comments to TERNOP_SLICE.
5025 2014-07-20 Yao Qi <yao@codesourcery.com>
5027 * std-operator.def: Remove BINOP_RANGE.
5028 * breakpoint.c (watchpoint_exp_is_const): Update.
5029 * expprint.c (dump_subexp_body_standard): Likewise.
5030 * eval.c (init_array_element): Remove dead code.
5031 (evaluate_subexp_standard): Likewise.
5033 2014-07-20 Yao Qi <yao@codesourcery.com>
5035 * std-operator.def: Remove BINOP_IN.
5036 * breakpoint.c (watchpoint_exp_is_const): Update.
5037 * eval.c (evaluate_subexp_standard): Likewise.
5038 * expprint.c (dump_subexp_body_standard): Likewise.
5040 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5042 * microblaze-tdep.c (microblaze_register_names): Add
5043 the rshr and rslr register names.
5044 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5045 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5046 Use of tdesc_numbered_register. Use of
5047 microblaze_register_g_packet_guesses. Use of
5048 tdesc_use_registers. Use of set_gdbarch_register_type.
5049 (microblaze_register_g_packet_guesses): New.
5050 * microblaze-tdep.h (microblaze_reg_num): Add
5051 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5052 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5053 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5054 * features/microblaze-core.xml: New file.
5055 * features/microblaze-stack-protect.xml: New file.
5056 * features/microblaze-with-stack-protect.c: New file.
5057 * features/microblaze-with-stack-protect.xml: New file.
5058 * features/microblaze.xml: New file.
5059 * features/microblaze.c: New file.
5060 * features/Makefile (microblaze-with-stack-protect): Add
5061 microblaze-with-stack-protect microblaze and microblaze-expedite.
5062 * regformats/microblaze-with-stack-protect.dat: New file.
5063 * regformats/microblaze.dat: New file.
5064 * doc/gdb.texinfo (MicroBlaze Features): Added.
5066 2014-07-18 Tom Tromey <tromey@redhat.com>
5068 * exec.c (exec_ops): Now static.
5069 * exec.h (exec_ops): Don't declare.
5071 2014-07-18 Tom Tromey <tromey@redhat.com>
5073 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5074 to find_target_beneath.
5075 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5076 find_target_beneath.
5077 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5079 2014-07-18 Tom Tromey <tromey@redhat.com>
5082 * utils.c (quit): Use target_supports_terminal_ours.
5083 * target.h (target_supports_terminal_ours): Declare.
5084 * target.c (target_supports_delete_record): Don't check
5085 to_delete_record against NULL.
5086 (target_supports_terminal_ours): New function.
5088 2014-07-18 Tom Tromey <tromey@redhat.com>
5091 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5092 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5093 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5094 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5095 * windows-nat.c (windows_xfer_partial): Always delegate.
5096 * record-btrace.c (record_btrace_xfer_partial): Simplify
5098 (record_btrace_fetch_registers, record_btrace_store_registers)
5099 (record_btrace_prepare_to_store, record_btrace_resume)
5100 (record_btrace_wait, record_btrace_find_new_threads)
5101 (record_btrace_thread_alive): Likewise.
5102 * procfs.c (procfs_xfer_partial): Always delegate.
5103 * corelow.c (core_xfer_partial): Always delegate.
5104 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5106 2014-07-18 Tom Tromey <tromey@redhat.com>
5108 * exec.c (exec_make_note_section): Move earlier.
5110 2014-07-17 Doug Evans <dje@google.com>
5113 * maint.c (count_symtabs_and_blocks): Handle NULL
5114 current_program_space.
5115 (report_command_stats): Check global enabled flag in addition to
5116 recorded enabled flag.
5117 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5119 2014-07-16 Pedro Alves <palves@redhat.com>
5121 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5123 2014-07-16 Tom Tromey <tromey@redhat.com>
5125 * target.h (struct target_ops) <to_delete_record>: Reformat
5128 2014-07-16 Tom Tromey <tromey@redhat.com>
5130 * target-delegates.c: Rebuild.
5132 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5134 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5135 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5136 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5137 (avr_pointer_to_address): Likewise.
5138 (avr_address_class_type_flags): New function.
5139 (avr_address_class_type_flags_to_name): Likewise.
5140 (avr_address_class_name_to_type_flags): Likewise.
5141 (avr_gdbarch_init): Set address_class_type_flags,
5142 address_class_type_flags_to_name and
5143 address_class_name_to_type_flags.
5145 2014-07-15 Pedro Alves <palves@redhat.com>
5147 * linux-nat.c (kill_callback): Save errno and work with saved
5150 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5152 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5154 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5156 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5157 breakpoint support correctly.
5159 2014-07-14 Pedro Alves <palves@redhat.com>
5161 * utils.c (prompt_for_continue): Call target_terminal_ours.
5163 2014-07-14 Pedro Alves <palves@redhat.com>
5165 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5166 catch_errors. Don't re-enable stdin or notify observers where,
5168 (fetch_inferior_event_wrapper): Delete.
5170 2014-07-14 Pedro Alves <palves@redhat.com>
5173 * top.c: Include "inf-loop.h".
5174 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5176 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5178 (gdb_readline_wrapper): Store whether the target is async, and
5181 2014-07-14 Pedro Alves <palves@redhat.com>
5184 * top.c (gdb_readline_wrapper_line): Tweak comment.
5185 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5186 the input handler callback.
5188 2014-07-14 Pedro Alves <palves@redhat.com>
5191 * main.c: Include event-top.h.
5192 (handle_command_errors): New function.
5193 (catch_command_errors, catch_command_errors_const): Use it.
5195 2014-07-14 Pedro Alves <palves@redhat.com>
5197 * exceptions.c (catch_command_errors, catch_command_errors_const):
5199 * exceptions.h (catch_command_errors_ftype)
5200 (catch_command_errors_const_ftype): Moved to main.c.
5201 (catch_command_errors, catch_command_errors_const): Delete
5203 * main.c (catch_command_errors_ftype)
5204 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5205 (catch_command_errors, catch_command_errors_const)): Moved here
5206 from exceptions.c and make static.
5208 2014-07-14 Pedro Alves <palves@redhat.com>
5210 * exceptions.c (print_any_exception): Delete.
5211 (catch_exceptions_with_msg): Use exception_print instead of
5212 print_any_exception.
5213 (catch_errors): Use exception_fprintf instead of
5214 print_any_exception.
5215 (catch_command_errors, catch_command_errors_const): Use
5216 exception_print instead of print_any_exception.
5218 2014-07-14 Pedro Alves <palves@redhat.com>
5220 * infcall.c (run_inferior_call): Set 'sync_execution' while
5221 running the inferior call.
5223 2014-07-14 Pedro Alves <palves@redhat.com>
5225 * value.c (value_contents_equal): Delete function.
5226 * value.h (value_contents_equal): Delete declaration.
5228 2014-07-14 Tom Tromey <tromey@redhat.com>
5231 * gdbtypes.c (is_dynamic_type_internal): New function, from
5233 (is_dynamic_type): Rewrite.
5234 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5235 (resolve_dynamic_struct): Likewise.
5236 (resolve_dynamic_type_internal): New function, from
5237 resolve_dynamic_type.
5238 (resolve_dynamic_type): Rewrite.
5240 2014-07-14 Tom Tromey <tromey@redhat.com>
5242 * target.c (target_require_runnable): Also check record_stratum.
5245 2014-07-11 Yao Qi <yao@codesourcery.com>
5247 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5248 thumb_instruction_restores_sp return true.
5250 2014-07-11 Yao Qi <yao@codesourcery.com>
5252 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5253 (thumb_in_function_epilogue_p): Call
5254 thumb_instruction_restores_sp.
5256 2014-07-11 Yao Qi <yao@codesourcery.com>
5258 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5260 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5262 2014-07-11 Gary Benson <gbenson@redhat.com>
5264 * amd64-linux-nat.c (gdbcore.h): Remove include.
5265 (regset.h): Likewise.
5266 (nat/linux-btrace.h): Likewise.
5267 (btrace.h): Likewise.
5268 (gdb_assert.h): Likewise.
5269 (string.h): Likewise.
5270 (sys/uio.h): Likewise.
5271 (sys/debugreg.h): Likewise.
5272 (sys/syscall.h): Likewise.
5273 (sys/procfs.h): Likewise.
5274 (sys/user.h): Likewise.
5275 (asm/ptrace.h): Likewise.
5276 (i386-nat.h): Likewise.
5277 * i386-linux-nat.c (i386-nat.h): Likewise.
5278 (regset.h): Likewise.
5279 (target.h): Likewise.
5280 (linux-nat.h): Likewise.
5281 (nat/linux-btrace.h): Likewise.
5282 (btrace.h): Likewise.
5283 (gdb_assert.h): Likewise.
5284 (string.h): Likewise.
5285 (sys/uio.h): Likewise.
5286 (sys/user.h): Likewise.
5287 (sys/procfs.h): Likewise.
5288 (sys/reg.h): Likewise.
5289 (sys/debugreg.h): Likewise.
5290 (ORIG_EAX): Remove definition.
5292 2014-07-11 Gary Benson <gbenson@redhat.com>
5294 * i386-linux-nat.h: New file.
5295 * x86-linux-nat.h: Likewise.
5296 * x86-linux-nat.c: Likewise.
5297 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5298 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5299 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5300 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5301 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5302 (PTRACE_SETREGSET): Likewise.
5303 (arch_lwp_info): Now in x86-linux-nat.c.
5304 (have_ptrace_getregset): Now in x86-linux-nat.h.
5305 (x86_linux_dr_get): Now in x86-linux-nat.c.
5306 (x86_linux_dr_set): Likewise.
5307 (x86_linux_dr_get_addr): Likewise.
5308 (x86_linux_dr_get_control): Likewise.
5309 (x86_linux_dr_get_status): Likewise.
5310 (update_debug_registers_callback): Likewise.
5311 (x86_linux_dr_set_control): Likewise.
5312 (x86_linux_dr_set_addr): Likewise.
5313 (x86_linux_prepare_to_resume): Likewise.
5314 (x86_linux_new_thread): Likewise.
5315 (x86_linux_new_fork): Likewise.
5316 (x86_linux_get_thread_area): Likewise.
5317 (super_post_startup_inferior): Likewise.
5318 (x86_linux_child_post_startup_inferior): Likewise.
5319 (AMD64_LINUX_USER64_CS): Likewise.
5320 (AMD64_LINUX_X32_DS): Likewise.
5321 (x86_linux_read_description): Likewise.
5322 (x86_linux_enable_btrace): Likewise.
5323 (x86_linux_disable_btrace): Likewise.
5324 (x86_linux_teardown_btrace): Likewise.
5325 (x86_linux_read_btrace): Likewise.
5326 (x86_linux_create_target): Likewise.
5327 (x86_linux_add_target): Likewise.
5328 * i386-linux-nat.c (x86-linux-nat.h): New include.
5329 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5330 (PTRACE_SETREGSET): Likewise.
5331 (arch_lwp_info): Now in x86-linux-nat.c.
5332 (have_ptrace_getregset): Now in x86-linux-nat.h.
5333 (x86_linux_dr_get): Now in x86-linux-nat.c.
5334 (x86_linux_dr_set): Likewise.
5335 (x86_linux_dr_get_addr): Likewise.
5336 (x86_linux_dr_get_control): Likewise.
5337 (x86_linux_dr_get_status): Likewise.
5338 (update_debug_registers_callback): Likewise.
5339 (x86_linux_dr_set_control): Likewise.
5340 (x86_linux_dr_set_addr): Likewise.
5341 (x86_linux_prepare_to_resume): Likewise.
5342 (x86_linux_new_thread): Likewise.
5343 (x86_linux_new_fork): Likewise.
5344 (x86_linux_get_thread_area): Likewise.
5345 (super_post_startup_inferior): Likewise.
5346 (x86_linux_child_post_startup_inferior): Likewise.
5347 (AMD64_LINUX_USER64_CS): Likewise.
5348 (AMD64_LINUX_X32_DS): Likewise.
5349 (x86_linux_read_description): Likewise.
5350 (x86_linux_enable_btrace): Likewise.
5351 (x86_linux_disable_btrace): Likewise.
5352 (x86_linux_teardown_btrace): Likewise.
5353 (x86_linux_read_btrace): Likewise.
5354 (x86_linux_create_target): Likewise.
5355 (x86_linux_add_target): Likewise.
5357 2014-07-11 Gary Benson <gbenson@redhat.com>
5359 * amd64-linux-nat.c: Comment and whitespace changes.
5360 * i386-linux-nat.c: Comment and whitespace changes.
5362 2014-07-11 Gary Benson <gbenson@redhat.com>
5364 * amd64-linux-nat.c (x86_linux_create_target): New function.
5365 (x86_linux_add_target): Likewise.
5366 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5367 * i386-linux-nat.c (x86_linux_create_target): New function.
5368 (x86_linux_add_target): Likewise.
5369 (_initialize_i386_linux_nat): Delegate to the above new functions.
5371 2014-07-11 Gary Benson <gbenson@redhat.com>
5373 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5374 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5375 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5376 (ps_get_thread_area): Delegate to the above.
5378 2014-07-11 Gary Benson <gbenson@redhat.com>
5380 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5381 x86_linux_read_description. All uses updated. amd64-specific
5382 code conditionalized. Conditionalized i386-specific code added.
5383 Redundant cast removed.
5384 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5385 x86_linux_read_description. All uses updated. i386-specific
5386 code conditionalized. Conditionalized amd64-specific code added.
5387 One sizeof replaced with the actual type it is describing.
5389 2014-07-11 Gary Benson <gbenson@redhat.com>
5391 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5392 x86_linux_dr_get. All uses updated.
5393 (amd64_linux_dr_set): Renamed to
5394 x86_linux_dr_set. All uses updated.
5395 (amd64_linux_dr_get_addr): Renamed to
5396 x86_linux_dr_get_addr. All uses updated.
5397 (amd64_linux_dr_get_control): Renamed to
5398 x86_linux_dr_get_control. All uses updated.
5399 (amd64_linux_dr_get_status): Renamed to
5400 x86_linux_dr_get_status. All uses updated.
5401 (amd64_linux_dr_set_control): Renamed to
5402 x86_linux_dr_set_control. All uses updated.
5403 (amd64_linux_dr_set_addr): Renamed to
5404 x86_linux_dr_set_addr. All uses updated.
5405 (amd64_linux_prepare_to_resume): Renamed to
5406 x86_linux_prepare_to_resume. All uses updated.
5407 (amd64_linux_new_thread): Renamed to
5408 x86_linux_new_thread. All uses updated.
5409 (amd64_linux_new_fork): Renamed to
5410 x86_linux_new_fork. All uses updated.
5411 (amd64_linux_child_post_startup_inferior): Renamed to
5412 x86_linux_child_post_startup_inferior. All uses updated.
5413 (amd64_linux_enable_btrace): Renamed to
5414 x86_linux_enable_btrace. All uses updated.
5415 (amd64_linux_disable_btrace): Renamed to
5416 x86_linux_disable_btrace. All uses updated.
5417 (amd64_linux_teardown_btrace): Renamed to
5418 x86_linux_teardown_btrace. All uses updated.
5419 (amd64_linux_read_btrace): Renamed to
5420 x86_linux_read_btrace. All uses updated.
5421 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5422 x86_linux_dr_get. All uses updated.
5423 (i386_linux_dr_set): Renamed to
5424 x86_linux_dr_set. All uses updated.
5425 (i386_linux_dr_get_addr): Renamed to
5426 x86_linux_dr_get_addr. All uses updated.
5427 (i386_linux_dr_get_control): Renamed to
5428 x86_linux_dr_get_control. All uses updated.
5429 (i386_linux_dr_get_status): Renamed to
5430 x86_linux_dr_get_status. All uses updated.
5431 (i386_linux_dr_set_control): Renamed to
5432 x86_linux_dr_set_control. All uses updated.
5433 (i386_linux_dr_set_addr): Renamed to
5434 x86_linux_dr_set_addr. All uses updated.
5435 (i386_linux_prepare_to_resume): Renamed to
5436 x86_linux_prepare_to_resume. All uses updated.
5437 (i386_linux_new_thread): Renamed to
5438 x86_linux_new_thread. All uses updated.
5439 (i386_linux_new_fork): Renamed to
5440 x86_linux_new_fork. All uses updated.
5441 (i386_linux_child_post_startup_inferior): Renamed to
5442 x86_linux_child_post_startup_inferior. All uses updated.
5443 (i386_linux_enable_btrace): Renamed to
5444 x86_linux_enable_btrace. All uses updated.
5445 (i386_linux_disable_btrace): Renamed to
5446 x86_linux_disable_btrace. All uses updated.
5447 (i386_linux_teardown_btrace): Renamed to
5448 x86_linux_teardown_btrace. All uses updated.
5449 (i386_linux_read_btrace): Renamed to
5450 x86_linux_read_btrace. All uses updated.
5452 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5454 * remote.c (extended_remote_post_attach): New function.
5455 (init_extended_remote_ops): Install it as to_post_attach method.
5457 2014-07-09 Pedro Alves <palves@redhat.com>
5459 * infcmd.c (attach_command_post_wait): Don't call
5460 target_terminal_inferior here.
5461 (attach_command): Call it here instead.
5463 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5465 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5467 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5468 from varobj.c, with additional checks.
5469 (c_varobj_ops): Fill in is_path_expr_parent field.
5470 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5471 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5473 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5475 (varobj_default_is_path_expr_parent): New function.
5476 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5477 (varobj_default_is_path_expr_parent): Declare new function.
5479 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5481 * infcmd.c (finish_backward): Turn internal error into normal error.
5483 2014-07-07 Pedro Alves <palves@redhat.com>
5486 * remote.c (async_handle_remote_sigint)
5487 (async_handle_remote_sigint_twice): Call
5488 gdb_call_async_signal_handler instead of
5489 mark_async_signal_handler.
5491 2014-07-07 Tom Tromey <tromey@redhat.com>
5493 * target-delegates.c: Rebuild.
5494 * target.c (target_info_record): Remove.
5495 * record.c (info_record_command): Unconditionally call
5497 * target.h (struct target_ops) <to_info_record>: Use
5498 TARGET_DEFAULT_IGNORE.
5499 (target_info_record): Remove.
5501 2014-07-07 Tom Tromey <tromey@redhat.com>
5503 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5504 TARGET_DEFAULT_NORETURN.
5505 * target.c (generic_tls_error): New function.
5506 (target_translate_tls_address): Don't search target stack.
5507 * target-delegates.c: Rebuild.
5508 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5510 * linux-thread-db.c (thread_db_get_thread_local_address):
5511 Unconditionally call beneath target.
5513 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5515 * cli/cli-logging.c (pop_output_files): Assign targerr to
5518 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5520 * MAINTAINERS (Write After Approval): Update my email address.
5522 2014-07-02 Gary Benson <gbenson@redhat.com>
5524 * proc-service.c (ps_xfer_memory): Update comment.
5525 (ps_pstop): Remove unused function.
5526 (ps_pcontinue): Likewise.
5527 (ps_lstop): Likewise.
5528 (ps_lcontinue): Likewise.
5529 (ps_lgetxregsize): Likewise.
5530 (ps_lgetxregs): Likewise.
5531 (ps_lsetxregs): Likewise.
5532 (ps_plog): Likewise.
5533 (ps_ptread): Likewise.
5534 (ps_ptwrite): Likewise.
5536 2014-07-01 Mark Wielaard <mjw@redhat.com>
5538 * dwarf2read.c (add_array_cv_type): New function.
5539 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5540 (read_tag_volatile_type): Likewise.
5542 2014-07-01 Tom Tromey <tromey@redhat.com>
5544 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5545 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5546 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5547 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5548 * command.h (cmd_cfunc_ftype): Move earlier.
5549 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5550 (add_com, add_info): Use cmd_cfunc_ftype.
5552 2014-06-30 Tom Tromey <tromey@redhat.com>
5554 * symtab.c (operator_chars): Make parameters and return type
5556 (file_matches): Make "files" const.
5557 (struct search_symbols_data) <files>: Now const.
5558 (search_symbols): Make "regexp" and "files" parameters const.
5560 (symtab_symbol_info): Remove cast.
5561 (rbreak_command): Update.
5562 * symtab.h (search_symbols): Update.
5564 2014-06-27 Yao Qi <yao@codesourcery.com>
5566 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5567 Change parameter type to 'struct thread_info *'. Caller
5569 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5571 * dummy-frame.c (struct dummy_frame_id): New.
5572 (dummy_frame_id_eq): New function.
5573 (struct dummy_frame) <id>: Change its type to 'struct
5575 (dummy_frame_push): Add parameter ptid and save it in
5577 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5579 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5581 (lookup_dummy_frame): Change parameter type to 'struct
5582 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5583 instead of frame_id_eq.
5584 (dummy_frame_pop): Add parameter ptid. Callers updated.
5585 Update comments. Compose dummy_frame_id and pass it to
5587 (dummy_frame_discard): Add parameter ptid.
5588 (dummy_frame_sniffer): Compose dummy_frame_id and call
5589 dummy_frame_id_eq instead of frame_id_eq.
5590 (fprint_dummy_frames): Print ptid.
5591 * dummy-frame.h: Remove comments.
5592 (dummy_frame_push): Add ptid in declaration.
5593 (dummy_frame_pop, dummy_frame_discard): Likewise.
5595 2014-06-26 Tom Tromey <tromey@redhat.com>
5597 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5598 * command.h (error_no_arg): Update.
5600 2014-06-26 Tom Tromey <tromey@redhat.com>
5602 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5603 (do_show_command): Make "arg" const.
5604 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5606 2014-06-26 Tom Tromey <tromey@redhat.com>
5608 * record-full.c (record_full_get_bookmark): Make "args" const.
5609 (record_full_goto_bookmark): Make "raw_bookmark" const.
5610 * record.c (record_goto): New function.
5611 (cmd_record_goto): Use it. Now static.
5612 * record.h (record_goto): Declare.
5613 (cmd_record_goto): Remove declaration.
5614 * target-delegates.c: Rebuild.
5615 * target.h (struct target_ops) <to_get_bookmark,
5616 to_goto_bookmark>: Make parameter const.
5618 2014-06-26 Tom Tromey <tromey@redhat.com>
5620 * defs.h (generic_load): Update.
5621 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5622 * monitor.c (monitor_load): Make "args" const.
5623 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5624 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5626 (mips_load): Make "file" const.
5627 * remote-sim.c (gdbsim_load): Make "args" const.
5628 * remote.c (remote_load): Make "name" const.
5629 * symfile.c (generic_load): Make "args" const.
5630 * target-delegates.c: Rebuild.
5631 * target.c (target_load): Make "arg" const.
5632 (debug_to_load): Make "args" const.
5633 * target.h (struct target_ops) <to_load>: Make parameter const.
5634 (target_load): Update.
5636 2014-06-26 Tom Tromey <tromey@redhat.com>
5639 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5640 (dwarf2_physname, read_partial_die)
5641 (guess_partial_die_structure_name, fixup_partial_die)
5642 (guess_full_die_structure_name, anonymous_struct_prefix)
5643 (dwarf2_name): Use per-BFD obstack.
5645 2014-06-26 Yao Qi <yao@codesourcery.com>
5647 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5648 dummyframe and this_id into inner block below.
5650 2014-06-26 Yao Qi <yao@codesourcery.com>
5652 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5653 with "signal_pass[0]" in the initialization of signal_pass.
5655 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5657 * record-btrace.c (record_btrace_generating_corefile)
5658 (record_btrace_prepare_to_generate_core)
5659 (record_btrace_done_generating_core): New.
5660 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5661 (record_btrace_store_registers, record_btrace_prepare_to_store):
5662 Forward request when generating a core file.
5663 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5664 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5665 to_done_generating_core.
5667 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5669 * target.h (target_ops) <to_prepare_to_generate_core>
5670 <to_done_generating_core>: New.
5671 (target_prepare_to_generate_core, target_done_generating_core): New.
5672 * target.c (target_prepare_to_generate_core)
5673 (target_done_generating_core): New.
5674 * target-delegates.c: Regenerate.
5675 * gcore.c: (write_gcore_file): Rename to ...
5676 (write_gcore_file_1): ...this.
5677 (write_gcore_file): Call target_prepare_to_generate_core
5678 and target_done_generating_core.
5680 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5682 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5683 * gcore.c (write_gcore_file): Free memory returned from
5684 make_corefile_notes.
5685 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5686 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5688 2014-06-24 Yao Qi <yao@codesourcery.com>
5690 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5691 (arm_linux_init_abi): Set skip_trampoline_code with
5692 gdbarch_skip_trampoline_code instead of
5693 find_solib_trampoline_target.
5695 2014-06-24 Yao Qi <yao@codesourcery.com>
5697 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5698 arm_skip_bx_reg returns non-zero.
5700 2014-06-24 Yao Qi <yao@codesourcery.com>
5702 * arm-tdep.c (arm_skip_bx_reg): New function.
5703 (arm_skip_stub): Call arm_skip_bx_reg.
5705 2014-06-23 Don Breazeal <donb@codesourcery.com>
5707 * MAINTAINERS: Add myself as write-after-approval maintainer.
5709 2014-06-23 Pedro Alves <palves@redhat.com>
5711 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5712 DR_CONTROL before setting DR0..DR3.
5713 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5714 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5715 bits of DR_CONTROL related to the debug register slot being
5716 disabled. If all slots are vacant, clear local slowdown as well,
5717 and assert DR_CONTROL is 0.
5719 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5721 * python/lib/gdb/command/xmethods.py
5722 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5723 current progspace only if the string "progspace" matches LOCUS_RE.
5725 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5727 Fix --with-system-readline with readline-6.3 patch 5.
5728 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5729 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5732 2014-06-20 Tom Tromey <tromey@redhat.com>
5734 * dwarf2read.c (dw2_get_real_path): Use correct type in
5736 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5738 2014-06-20 Gary Benson <gbenson@redhat.com>
5740 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5741 * common/glibc_thread_db.h: Likewise.
5742 * common/i386-cpuid.h: Likewise.
5743 * common/i386-gcc-cpuid.h: Likewise.
5744 * common/linux-btrace.h: Likewise.
5745 * common/linux-osdata.h: Likewise.
5746 * common/linux-procfs.h: Likewise.
5747 * common/linux-ptrace.h: Likewise.
5748 * common/mips-linux-watch.h: Likewise.
5749 * common/linux-btrace.c: Moved to nat.
5750 * common/linux-osdata.c: Likewise.
5751 * common/linux-procfs.c: Likewise.
5752 * common/linux-ptrace.c: Likewise.
5753 * common/mips-linux-watch.c: Likewise.
5754 * nat/gdb_thread_db.h: Moved from common.
5755 * nat/glibc_thread_db.h: Likewise.
5756 * nat/i386-cpuid.h: Likewise.
5757 * nat/i386-gcc-cpuid.h: Likewise.
5758 * nat/linux-btrace.c: Likewise.
5759 * nat/linux-btrace.h: Likewise.
5760 * nat/linux-osdata.c: Likewise.
5761 * nat/linux-osdata.h: Likewise.
5762 * nat/linux-procfs.c: Likewise.
5763 * nat/linux-procfs.h: Likewise.
5764 * nat/linux-ptrace.c: Likewise.
5765 * nat/linux-ptrace.h: Likewise.
5766 * nat/mips-linux-watch.c: Likewise.
5767 * nat/mips-linux-watch.h: Likewise.
5768 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5769 (object file files): Reordered.
5770 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5771 of glibc_thread_db.h.
5773 2014-06-20 Gary Benson <gbenson@redhat.com>
5775 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5776 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5777 (i386_dr_low): Likewise.
5778 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5779 (i386_dr_low_set_addr): Likewise.
5780 (i386_dr_low_get_addr): Likewise.
5781 (i386_dr_low_can_set_control): Likewise.
5782 (i386_dr_low_set_control): Likewise.
5783 (i386_dr_low_get_control): Likewise.
5784 (i386_dr_low_get_status): Likewise.
5785 (i386_get_debug_register_length): Likewise.
5786 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5787 (i386_dr_low): Likewise.
5788 * nat/i386-dregs.c (i386-low.h): Remove include.
5789 (i386-nat.h): Likewise.
5790 (nat/i386-dregs.h): New include.
5791 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5792 (i386_dr_low_set_addr): Likewise.
5793 (i386_dr_low_get_addr): Likewise.
5794 (i386_dr_low_can_set_control): Likewise.
5795 (i386_dr_low_set_control): Likewise.
5796 (i386_dr_low_get_control): Likewise.
5797 (i386_dr_low_get_status): Likewise.
5798 (i386_get_debug_register_length): Likewise.
5799 (debug_hw_points): Likewise.
5801 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5803 * Makefile.in (SFILES): Add d-exp.y.
5804 (YYFILES): Add d-exp.c.
5805 (YYOBJ): Add d-exp.o.
5806 (local-maintainer-clean): Delete d-exp.c.
5807 * d-exp.y: New file.
5808 * d-lang.h (d_parse): New declaration.
5809 (d_error): New declaration.
5810 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5811 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5812 PREC_ORDER operators.
5813 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5815 2014-06-19 Yao Qi <yao@codesourcery.com>
5817 * gdbthread.h (any_running): Remove the declaration.
5818 * thread.c (any_running): Remove.
5820 2014-06-19 Yao Qi <yao@codesourcery.com>
5822 * gdbthread.h (struct thread_info) <state>: Change its type to
5823 'enum thread_state'. Update comments.
5825 2014-06-19 Pedro Alves <palves@redhat.com>
5827 * gdbthread.h (ALL_THREADS): Delete.
5828 (ALL_NON_EXITED_THREADS): New macro.
5829 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5830 instead of ALL_THREADS.
5831 * infrun.c (find_thread_needs_step_over)
5832 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5833 instead of ALL_THREADS.
5834 * record-btrace.c (record_btrace_open)
5835 (record_btrace_stop_recording, record_btrace_close)
5836 (record_btrace_is_replaying, record_btrace_resume)
5837 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5838 * remote.c (append_pending_thread_resumptions): Likewise.
5839 * thread.c (thread_apply_all_command): Likewise.
5841 2014-06-19 Gary Benson <gbenson@redhat.com>
5843 * i386-nat.c (i386_stopped_by_watchpoint):
5844 Use i386_dr_stopped_by_watchpoint.
5845 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5846 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5848 2014-06-19 Gary Benson <gbenson@redhat.com>
5850 * nat/i386-dregs.c: New file.
5851 * Makefile.in (i386-dregs.o): New rule.
5852 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5853 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5854 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5855 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5856 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5857 * config/i386/go32.mh (NATDEPFILES): Likewise.
5858 * config/i386/linux.mh (NATDEPFILES): Likewise.
5859 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5860 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5861 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5862 * i386-nat.h (debug_hw_points): New declaration.
5863 * i386-nat.c (breakpoint.h): Remove include.
5864 (command.h): Likewise.
5865 (target.h): Likewise.
5866 (gdb_assert.h): Likewise.
5867 (debug_hw_points): Made nonstatic.
5868 (debug_printf): Now in i386-dregs.c.
5869 (TARGET_HAS_DR_LEN_8): Likewise.
5870 (DR_CONTROL_SHIFT): Likewise.
5871 (DR_CONTROL_SIZE): Likewise.
5872 (DR_RW_EXECUTE): Likewise.
5873 (DR_RW_WRITE): Likewise.
5874 (DR_RW_READ): Likewise.
5875 (DR_RW_IORW): Likewise.
5876 (DR_LEN_1): Likewise.
5877 (DR_LEN_2): Likewise.
5878 (DR_LEN_4): Likewise.
5879 (DR_LEN_8): Likewise.
5880 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5881 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5882 (DR_ENABLE_SIZE): Likewise.
5883 (DR_LOCAL_SLOWDOWN): Likewise.
5884 (DR_GLOBAL_SLOWDOWN): Likewise.
5885 (DR_CONTROL_RESERVED): Likewise.
5886 (I386_DR_CONTROL_MASK): Likewise.
5887 (I386_DR_VACANT): Likewise.
5888 (I386_DR_LOCAL_ENABLE): Likewise.
5889 (I386_DR_GLOBAL_ENABLE): Likewise.
5890 (I386_DR_DISABLE): Likewise.
5891 (I386_DR_SET_RW_LEN): Likewise.
5892 (I386_DR_GET_RW_LEN): Likewise.
5893 (I386_DR_WATCH_HIT): Likewise.
5894 (i386_wp_op_t): Likewise.
5895 (i386_show_dr): Likewise.
5896 (i386_length_and_rw_bits): Likewise.
5897 (i386_insert_aligned_watchpoint): Likewise.
5898 (i386_remove_aligned_watchpoint): Likewise.
5899 (i386_handle_nonaligned_watchpoint): Likewise.
5900 (i386_update_inferior_debug_regs): Likewise.
5901 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5902 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5903 (i386_region_ok_for_watchpoint):
5904 Use i386_dr_region_ok_for_watchpoint.
5905 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5907 2014-06-19 Gary Benson <gbenson@redhat.com>
5909 * i386-nat.c (i386_insert_hw_breakpoint): Use
5910 i386_insert_watchpoint.
5911 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5913 2014-06-19 Gary Benson <gbenson@redhat.com>
5915 * i386-nat.c (i386_dr_show): Renamed to
5916 i386_show_dr and made static. All uses updated.
5917 (i386_dr_length_and_rw_bits): Renamed to
5918 i386_length_and_rw_bits and made static.
5920 (i386_dr_insert_aligned_watchpoint): Renamed to
5921 i386_insert_aligned_watchpoint and made static.
5923 (i386_dr_remove_aligned_watchpoint): Renamed to
5924 i386_remove_aligned_watchpoint and made static.
5926 (i386_dr_update_inferior_debug_regs): Renamed to
5927 i386_update_inferior_debug_regs and made static.
5929 * nat/i386-dregs.h (i386_dr_show): Removed.
5930 (i386_dr_length_and_rw_bits): Likewise.
5931 (i386_dr_insert_aligned_watchpoint): Likewise.
5932 (i386_dr_remove_aligned_watchpoint): Likewise.
5933 (i386_dr_update_inferior_debug_regs): Likewise.
5935 2014-06-19 Gary Benson <gbenson@redhat.com>
5937 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5938 * configure: Regenerate.
5939 * config.in: Likewise.
5940 * main.c (signal.h): New include.
5941 (setup_alternate_signal_stack): New function.
5942 (captured_main): Call the above.
5943 * cp-support.c (signal.h): New include.
5944 (catch_demangler_crashes): New flag.
5945 (SIGJMP_BUF): New define.
5946 (SIGSETJMP): Likewise.
5947 (SIGLONGJMP): Likewise.
5948 (gdb_demangle_jmp_buf): New static global.
5949 (gdb_demangle_attempt_core_dump): Likewise.
5950 (gdb_demangle_signal_handler): New function.
5951 (gdb_demangle): If catch_demangler_crashes is set, install the
5952 above signal handler before calling bfd_demangle, and restore
5953 the original signal handler afterwards. Display the offending
5954 symbol and call demangler_warning the first time a segmentation
5956 (_initialize_cp_support): New maint set/show command.
5958 2014-06-19 Gary Benson <gbenson@redhat.com>
5960 * utils.h (resource_limit_kind): New enum.
5961 (can_dump_core): New declaration.
5962 (warn_cant_dump_core): Likewise.
5963 (dump_core): Likewise.
5964 * utils.c (dump_core): Made nonstatic. Added new
5965 parameter "limit_kind".
5966 (can_dump_core): Made nonstatic. Moved printing code to...
5967 (warn_cant_dump_core): New function.
5968 (can_dump_core_warn): Likewise.
5969 (internal_vproblem): Replace calls to can_dump_core with
5970 calls to can_dump_core_warn. Supply new argument to each.
5972 2014-06-19 Gary Benson <gbenson@redhat.com>
5974 * utils.h (demangler_vwarning): New declaration.
5975 (demangler_warning): Likewise.
5976 * utils.c (struct internal_problem)
5977 <user_settable_should_quit>: New field.
5978 <user_settable_should_dump_core>: Likewise
5979 (internal_error_problem): Add values for above new fields.
5980 (internal_warning_problem): Likewise.
5981 (demangler_warning_problem): New static global.
5982 (demangler_vwarning): New function.
5983 (demangler_warning): Likewise.
5984 (add_internal_problem_command): Selectively add commands.
5985 (_initialize_utils): New internal problem command.
5986 * maint.c (maintenance_demangler_warning): New function.
5987 (_initialize_maint_cmds): New command.
5989 2014-06-18 Tom Tromey <tromey@redhat.com>
5991 * f-valprint.c (info_common_command_for_block): Update.
5992 * symtab.h (struct general_symbol_info) <common_block>: Now
5995 2014-06-18 Tom Tromey <tromey@redhat.com>
5997 * symtab.h (struct symtab) <blockvector>: Now const.
5998 * ada-lang.c (ada_add_global_exceptions): Update.
5999 * buildsym.c (augment_type_symtab): Update.
6000 * dwarf2read.c (dw2_lookup_symbol): Update.
6001 * jit.c (finalize_symtab): Update.
6002 * jv-lang.c (add_class_symtab_symbol): Update.
6003 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6005 * objfiles.c (objfile_relocate1): Update.
6006 * psymtab.c (lookup_symbol_aux_psymtabs)
6007 (maintenance_check_psymtabs): Update.
6008 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6010 * spu-tdep.c (spu_catch_start): Update.
6011 * symmisc.c (dump_symtab_1): Update.
6012 * symtab.c (lookup_global_symbol_from_objfile)
6013 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6014 (basic_lookup_transparent_type_quick)
6015 (basic_lookup_transparent_type, find_pc_sect_symtab)
6016 (find_pc_sect_line, search_symbols): Update.
6017 * block.c (find_block_in_blockvector): Make "bl" const.
6018 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6020 (blockvector_contains_pc): Make "bv" const.
6021 (block_for_pc_sect): Update.
6022 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6023 (blockvector_contains_pc): Update.
6024 * breakpoint.c (resolve_sal_pc): Update.
6025 * inline-frame.c (block_starting_point_at): Update.
6027 2014-06-18 Tom Tromey <tromey@redhat.com>
6029 * completer.c (complete_line): Make "line_buffer" const.
6030 * completer.h (complete_line): Update.
6032 2014-06-18 Tom Tromey <tromey@redhat.com>
6034 * symtab.c (add_macro_name): Remove unneeded cast.
6036 2014-06-18 Tom Tromey <tromey@redhat.com>
6038 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6039 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6041 2014-06-18 Tom Tromey <tromey@redhat.com>
6043 * probe.c (info_probes_for_ops): Make "arg" const.
6044 * probe.h (info_probes_for_ops): Update.
6046 2014-06-18 Tom Tromey <tromey@redhat.com>
6048 * varobj.c (varobj_create): Update.
6049 * valops.c (value_of_this): Update.
6050 * tracepoint.c (add_local_symbols, scope_info): Update.
6051 * symtab.h (struct general_symbol_info) <block>: Now const.
6052 * symtab.c (skip_prologue_sal)
6053 (default_make_symbol_completion_list_break_on)
6054 (skip_prologue_using_sal): Update.
6055 * stack.h (iterate_over_block_locals)
6056 (iterate_over_block_local_vars): Update.
6057 * stack.c (print_frame_args): Update.
6058 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6060 (get_selected_block): Make return type const.
6061 * python/py-frame.c (frapy_block): Update.
6062 * python/py-block.c (gdbpy_block_for_pc): Update.
6063 * p-exp.y (%union) <bval>: Now const.
6064 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6065 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6066 * m2-exp.y (%union) <bval>: Now const.
6067 * linespec.c (get_current_search_block): Make return type const.
6068 (create_sals_line_offset, find_label_symbols): Update.
6069 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6071 (block_starting_point_at): Make "block" const.
6072 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6073 (check_exception_resume): Update.
6074 * guile/scm-frame.c (gdbscm_frame_block): Update.
6075 * guile/scm-block.c (gdbscm_lookup_block): Update.
6076 * frame.h (get_frame_block): Update.
6077 (get_selected_block): Make return type const.
6078 * frame.c (frame_id_inner): Update.
6079 * f-valprint.c (info_common_command_for_block)
6080 (info_common_command): Update.
6081 * dwarf2loc.c (dwarf2_find_location_expression)
6082 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6083 (locexpr_describe_location_piece): Update.
6084 * c-exp.y (%union) <bval>: Now const.
6085 * breakpoint.c (resolve_sal_pc): Update.
6086 * blockframe.c (get_frame_block):Make return type const.
6087 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6088 (block_innermost_frame): Update.
6089 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6090 (block_for_pc, block_for_pc_sect): Update.
6091 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6093 (block_for_pc_sect, block_for_pc): Make return type const.
6094 * ax-gdb.c (gen_expr): Update.
6095 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6096 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6097 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6098 (ada_read_var_value): Update.
6099 * ada-exp.y (struct name_info) <block>: Now const.
6101 (block_lookup): Constify.
6103 2014-06-18 Gary Benson <gbenson@redhat.com>
6105 * nat/i386-dregs.h: New file.
6106 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6107 * i386-nat.h (i386-dregs.h): New include.
6108 (DR_FIRSTADDR): Now in i386-dregs.h.
6109 (DR_LASTADDR): Likewise.
6110 (DR_NADDR): Likewise.
6111 (DR_STATUS): Likewise.
6112 (DR_CONTROL): Likewise.
6113 (i386_debug_reg_state): Likewise.
6114 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6116 2014-06-18 Don Breazeal <donb@codesourcery.com>
6118 * breakpoint.c (set_longjmp_breakpoint): Call
6119 momentary_breakpoint_from_master with additional argument.
6120 (set_longjmp_breakpoint_for_call_dummy): Call
6121 momentary_breakpoint_from_master with additional argument.
6122 (set_std_terminate_breakpoint): Call
6123 momentary_breakpoint_from_master with additional argument.
6124 (momentary_breakpoint_from_master): Add argument to function
6125 definition and use it to initialize structure member flag.
6126 (clone_momentary_breakpoint): Call
6127 momentary_breakpoint_from_master with additional argument.
6128 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6129 member flags set in momentary_breakpoint_from_master.
6131 2014-06-18 Gary Benson <gbenson@redhat.com>
6133 * i386-nat.c (i386_show_dr): Renamed to
6134 i386_dr_show and made nonstatic. All uses updated.
6135 (i386_length_and_rw_bits): Renamed to
6136 i386_dr_length_and_rw_bits and made nonstatic.
6138 (i386_insert_aligned_watchpoint): Renamed to
6139 i386_dr_insert_aligned_watchpoint and made nonstatic.
6141 (i386_remove_aligned_watchpoint): Renamed to
6142 i386_dr_remove_aligned_watchpoint and made nonstatic.
6144 (i386_update_inferior_debug_regs): Renamed to
6145 i386_dr_update_inferior_debug_regs and made nonstatic.
6148 2014-06-18 Gary Benson <gbenson@redhat.com>
6150 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6151 (i386_dr_low_can_set_control): Likewise.
6152 (i386_dr_low_set_addr): Likewise.
6153 (i386_dr_low_set_control): Likewise.
6154 (i386_dr_low_get_addr): Likewise.
6155 (i386_dr_low_get_status): Likewise.
6156 (i386_dr_low_get_control): Likewise.
6157 (i386_insert_aligned_watchpoint): Use new macros.
6158 (i386_update_inferior_debug_regs): Likewise.
6159 (i386_stopped_data_address): Likewise.
6161 2014-06-18 Gary Benson <gbenson@redhat.com>
6163 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6164 New parameter. All uses updated.
6166 2014-06-18 Gary Benson <gbenson@redhat.com>
6168 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6171 2014-06-18 Gary Benson <gbenson@redhat.com>
6173 * i386-nat.c (debug_printf): New macro.
6174 (i386_get_debug_register_length): Likewise.
6175 (TARGET_HAS_DR_LEN_8): Use above macro.
6176 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6177 and printf_unfiltered. Use phex to format values.
6179 2014-06-18 Gary Benson <gbenson@redhat.com>
6181 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6184 2014-06-18 Gary Benson <gbenson@redhat.com>
6186 * i386-nat.c: Comment changes.
6188 2014-06-18 Gary Benson <gbenson@redhat.com>
6190 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6192 2014-06-18 Gary Benson <gbenson@redhat.com>
6194 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6195 (i386_insert_aligned_watchpoint): Likewise.
6196 (i386_remove_aligned_watchpoint): Likewise.
6197 (i386_handle_nonaligned_watchpoint): Likewise.
6199 2014-06-18 Gary Benson <gbenson@redhat.com>
6201 * i386-nat.c: Whitespace changes.
6203 2014-06-17 Samuel Bronson <naesten@gmail.com>
6205 * MAINTAINERS: Update Roland McGrath's email address.
6206 Thanks to Sergio Durigan Junior for pointing out that he left
6207 Red Hat a while ago, and giving me a current address.
6209 2014-06-17 Tom Tromey <tromey@redhat.com>
6211 * utils.h (savestring): Remove declaration.
6213 2014-06-17 Tom Tromey <tromey@redhat.com>
6215 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6217 2014-06-16 Keith Seitz <keiths@redhat.com>
6220 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6221 to update the varobj if inferior_ptid is null_ptid.
6223 2014-06-16 Tom Tromey <tromey@redhat.com>
6225 * target.h (struct target_ops) <to_info_proc>: Make parameter
6227 (target_info_proc): Update.
6228 * target.c (target_info_proc): Make "args" const.
6229 * procfs.c (procfs_info_proc): Update.
6230 * linux-tdep.c (linux_info_proc): Update.
6231 (linux_core_info_proc_mappings): Make "args" const.
6232 (linux_core_info_proc): Update.
6233 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6234 * gdbarch.c: Rebuild.
6235 * gdbarch.h: Rebuild.
6236 * corelow.c (core_info_proc): Update.
6238 2014-06-16 Tom Tromey <tromey@redhat.com>
6240 * target.h (struct target_ops) <to_disconnect>: Make parameter
6242 (target_disconnect): Update.
6243 * target.c (target_disconnect): Make "args" const.
6244 * target-delegates.c: Rebuild.
6245 * remote.c (remote_disconnect): Update.
6246 * record.h (record_disconnect): Update.
6247 * record.c (record_disconnect): Update.
6248 * inf-child.c (inf_child_disconnect): Update.
6250 2014-06-16 Tom Tromey <tromey@redhat.com>
6252 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6253 * target.c (debug_to_rcmd, default_rcmd): Update.
6254 * target-delegates.c: Rebuild.
6255 * remote.c (remote_rcmd): Update.
6256 * monitor.c (monitor_rcmd): Update.
6258 2014-06-16 Pedro Alves <palves@redhat.com>
6260 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6261 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6262 have OBJF_SHARED set.
6263 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6264 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6265 instead of OBJF_USERLOADED.
6266 * objfiles.h (OBJF_SHARED): Update comment.
6267 (userloaded_objfile_contains_address_p): Rename to ...
6268 (shared_objfile_contains_address_p): ... this, and update
6270 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6272 (remove_symbol_file_command): Skip objfiles that don't have
6275 2014-06-16 Tom Tromey <tromey@redhat.com>
6277 * minsyms.h (prim_record_minimal_symbol)
6278 (prim_record_minimal_symbol_and_info): Update comments.
6280 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6282 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6283 or --without-guile, according to how GDB was built.
6285 2014-06-13 Tom Tromey <tromey@redhat.com>
6287 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6289 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6291 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6293 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6294 help_list.Pass all_commands, not -1, to help_list.
6295 * cli/cli-dump.c (dump_command, append_command)
6296 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6297 (binary_dump_command, binary_append_command): Pass all_commands,
6298 not -1, to help_list.
6299 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6301 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6303 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6305 * top.c (set_history): Pass all_commands, not -1, to help_list.
6306 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6307 all_commands, not -1, to help_list.
6308 * symfile.c (overlay_command): Pass all_commands, not -1, to
6310 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6312 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6314 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6316 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6317 not -1, to help_list.
6318 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6319 not -1, to help_list.
6320 * maint.c (maintenance_command, maintenance_info_command)
6321 (maintenance_print_command, maintenance_set_cmd): Pass
6322 all_commands, not -1, to help_list.
6323 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6325 * language.c (set_check): Pass all_commands, not -1, to help_list.
6326 * infcmd.c (unset_command): Pass all_commands, not -1, to
6328 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6330 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6332 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6334 * breakpoint.c (save_command): Pass all_commands, not -1, to
6336 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6337 all_commands, not -1, to help_list.
6339 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6341 * regcache.c (struct register_to_invalidate): New structure.
6342 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6344 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6346 2014-06-12 Yao Qi <yao@codesourcery.com>
6348 * varobj.c (varobj_get_num_children): Call
6349 varobj_is_dynamic_p.
6350 (varobj_list_children): Likewise.
6351 (varobj_update): Likewise. Update comments.
6353 2014-06-12 Yao Qi <yao@codesourcery.com>
6355 * varobj.c (varobj_pretty_printed_p): Rename to ...
6356 (varobj_is_dynamic_p): ... this. New function.
6357 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6358 (varobj_is_dynamic_p): Declare.
6359 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6360 (mi_print_value_p, varobj_update_one): Likewise.
6362 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6363 Yao Qi <yao@codesourcery.com>
6365 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6366 (varobj_get_iterator): Wrap up code for pretty-printer by
6367 "#if HAVE_PYTHON" and "#endif".
6368 (update_dynamic_varobj_children): Likewise.
6370 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6371 Yao Qi <yao@codesourcery.com>
6373 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6374 gdb_python_initialized is false. Move some code from varobj.c.
6375 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6376 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6377 (struct varobj_item): Moved to varobj-iter.h".
6378 (varobj_clear_saved_item): New function.
6379 (update_dynamic_varobj_children): Move python-related code to
6381 (free_variable): Call varobj_clear_saved_item and
6384 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6385 Yao Qi <yao@codesourcery.com>
6387 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6388 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6389 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6390 (py-varobj.o): New rule.
6391 * python/py-varobj.c: New file.
6392 * python/python-internal.h (py_varobj_get_iterator): Declare.
6393 * varobj-iter.h: New file.
6394 * varobj.c: Include "varobj-iter.h"
6395 (struct varobj) <child_iter>: Change its type from "PyObject *"
6396 to "struct varobj_iter *".
6397 <saved_item>: Likewise.
6398 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6399 [HAVE_PYTHON] (varobj_get_iterator): New function.
6400 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6401 python-specific code to python/py-varobj.c.
6402 (install_visualizer): Call varobj_iter_delete instead of
6404 * varobj.h (varobj_ensure_python_env): Declare.
6406 2014-06-12 Yao Qi <yao@codesourcery.com>
6408 * varobj.c (struct varobj_item): New structure.
6409 (create_child_with_value): Update declaration.
6410 (varobj_add_child): Replace arguments 'name' and 'value' with
6411 'item'. All callers updated.
6412 (install_dynamic_child): Likewise.
6413 (update_dynamic_varobj_children): Likewise.
6414 (varobj_add_child): Likewise.
6415 (create_child_with_value): Likewise.
6417 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6419 * NEWS: Create a new section for the next release branch.
6420 Rename the section of the current branch, now that it has
6423 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6425 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6426 * version.in: Bump version to 7.8.50.DATE-cvs.
6428 2014-06-11 Pedro Alves <palves@redhat.com>
6431 * ser-mingw.c (net_windows_socket_check_pending): New function.
6432 (net_windows_select_thread): Ignore spurious wakeups. Use
6433 net_windows_socket_check_pending.
6434 (net_windows_wait_handle): Check for pending events with
6435 ioctlsocket, through net_windows_socket_check_pending, instead of
6436 checking the socket's event.
6438 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6440 * python/python-internal.h (gdb_PyObject_GetAttrString)
6441 (gdb_PyObject_HasAttrString): New inline function definitions.
6442 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6443 char * of the second argument to PyObject_GetAttrString.
6445 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6447 * serial.c (serial_write): Fix index of character to be printed
6448 in call to serial_logchar when serial debug traces are enabled.
6450 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6452 * gdbtypes (resolve_dynamic_range): Add function description.
6454 2014-06-09 Pedro Alves <palves@redhat.com>
6456 * linux-nat.c (linux_child_follow_fork): Initialize status with
6457 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6458 inner block. Only pass the signal to PTRACE_DETACH if in pass
6461 2014-06-09 Gary Benson <gbenson@redhat.com>
6463 * common/signals.c (gdb_signal_from_host): Reorder to separate
6464 the always-available ANSI-standard signals from the signals that
6466 (do_gdb_signal_to_host): Likewise.
6467 * proc-events.c (signal_table): Likewise.
6469 2014-06-08 Hui Zhu <hui@codesourcery.com>
6471 * common/linux-ptrace.c (linux_disable_event_reporting): New
6473 * common/linux-ptrace.h (linux_disable_event_reporting): New
6475 * linux-nat.c (linux_child_follow_fork): Do a single step before
6478 2014-06-07 Keith Seitz <keiths@redhat.com>
6482 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6483 from symbol_matches_domain in symtab.c. All local callers
6484 of symbol_matches_domain updated.
6485 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6486 search STRUCT_DOMAIN.
6487 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6488 independently. standard_lookup will do that automatically.
6489 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6490 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6491 (cp_lookup_symbol_in_namespace): Likewise.
6492 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6493 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6494 may return a STRUCT_DOMAIN match.
6495 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6496 * cp-support.c: Include language.h.
6497 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6499 * psymtab.c (match_partial_symbol): Compare the requested
6500 domain with the symbol's domain directly.
6501 (lookup_partial_symbol): Likewise.
6502 * symtab.c (lookup_symbol_in_language): Explain when/why
6503 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6504 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6505 appropriate languages.
6506 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6507 and moved to ada-lang.c
6508 (lookup_block_symbol): Explain that this function only returns
6509 symbol matching the requested DOMAIN.
6510 Compare the requested domain with the symbol's domain directly.
6511 (iterate_over_symbols): Compare the requested domain with the
6512 symbol's domain directly.
6513 * symtab.h (symbol_matches_domain): Remove.
6515 2014-06-06 Doug Evans <xdje42@gmail.com>
6517 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6518 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6519 (gdbscm_guile_version_is_at_least): Declare.
6520 (gdbscm_scm_string_to_int): Declare.
6521 * guile/guile.c (gdbscm_guile_major_version): New global.
6522 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6523 (guile_datadir): New static global.
6524 (gdbscm_guile_data_directory): New function.
6525 (initialize_scheme_side): Update.
6526 (misc_guile_functions): Add guile-data-directory.
6527 (initialize_gdb_module): Fetch guile version number.
6528 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6529 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6530 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6531 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6533 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6534 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6535 * guile/scm-value.c (gdbscm_value_to_string): Only call
6536 scm_port_conversion_strategy if Guile version >= 2.0.6.
6538 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6540 * main.c (print_gdb_help): Add -q and --silent.
6542 2014-06-06 Gary Benson <gbenson@redhat.com>
6544 * common/signals.c: Remove preprocessor conditionals for
6545 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6546 SIGSEGV and SIGTERM.
6547 * proc-events.c: Likewise.
6549 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6551 * symfile.c (symfile_free_objfile): Remove restriction to
6553 * symfile-mem.c (symbol_file_add_from_memory): Call
6554 add_target_sections_of_objfile.
6556 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6558 * guile/scm-value.c (gdbscm_history_append_x): Use
6559 'vlscm_get_value_smob_arg_unsafe' instead of
6560 'vlscm_scm_to_value'.
6562 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6565 * utils.c (printchar): Don't escape at all if quoter is NUL.
6566 Update function documentation to clarify effect of parameter
6568 * remote.c (escape_buffer): Pass '\\' as the quoter to
6569 fputstrn_unfiltered.
6570 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6571 generate the output.
6572 (mi_solib_unloaded): Same.
6574 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6576 * development.sh: Delete.
6577 * Makefile.in (config.status): Adjust dependency on development.sh.
6578 * configure.ac: Adjust development.sh source call.
6579 * configure: Regenerate.
6581 2014-06-04 Doug Evans <xdje42@gmail.com>
6583 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6584 is_scheme_bkpt, spec.
6585 (bpscm_make_breakpoint_smob): Initialize new members.
6586 (gdbscm_create_breakpoint_x): Split into two ...
6587 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6588 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6589 (scheme_function breakpoint_functions): Update.
6590 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6591 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6592 register-breakpoint!.
6594 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6597 * mem-break.c (z_type_supported): Return zero if
6598 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6600 2014-06-04 Tom Tromey <tromey@redhat.com>
6602 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6603 value_from_contents_and_address_unresolved.
6604 (ada_template_to_fixed_record_type_1): Likewise.
6605 (ada_which_variant_applies): Likewise.
6606 * value.h (value_from_contents_and_address_unresolved): Declare.
6607 * value.c (value_from_contents_and_address_unresolved): New
6609 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6610 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6611 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6613 2014-06-04 Tom Tromey <tromey@redhat.com>
6615 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6617 2014-06-04 Tom Tromey <tromey@redhat.com>
6619 * procfs.c (procfs_attach): Make "args" const.
6620 * windows-nat.c (windows_attach): Make "args" const.
6621 * nto-procfs.c (procfs_attach): Make "args" const.
6622 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6623 * go32-nat.c (go32_attach): Make "args" const.
6624 * gnu-nat.c (gnu_attach): Make "args" const.
6625 * darwin-nat.c (darwin_attach): Make "args" const.
6626 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6627 * linux-nat.c (linux_nat_attach): Make "args" const.
6628 * remote.c (extended_remote_attach_1, extended_remote_attach):
6630 * target.h (struct target_ops) <to_attach>: Make "args" const.
6631 (find_default_attach): Likewise.
6632 * utils.c (parse_pid_to_attach): Make "args" const.
6633 * utils.h (parse_pid_to_attach): Update.
6635 2014-06-04 Tom Tromey <tromey@redhat.com>
6637 * target-delegates.c: Rebuild.
6638 * target.c (default_thread_address_space): New function.
6639 (target_thread_address_space): Simplify.
6640 * target.h (struct target_ops) <to_thread_address_space>: Add
6641 TARGET_DEFAULT_FUNC.
6643 2014-06-04 Doug Evans <xdje42@gmail.com>
6645 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6647 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6649 * record-btrace.c: Include event-loop.h and inf-loop.h.
6650 (record_btrace_resume_exec_dir)
6651 (record_btrace_async_inferior_event_handler)
6652 (record_btrace_handle_async_inferior_event): New.
6653 (record_btrace_open): Create async event handler.
6654 (record_btrace_close): Delete async event handler.
6655 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6656 Mark async event handler.
6657 (record_btrace_execution_direction): New.
6658 (init_record_btrace_ops): Initialize to_execution_direction.
6660 2014-06-03 Doug Evans <xdje42@gmail.com>
6662 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6663 (gdbscm_make_parameter): Ditto.
6665 2014-06-03 Doug Evans <dje@google.com>
6667 * exec.c (exec_close_1): Call clear_section_table instead of
6668 resize_section_table.
6669 (clear_section_table): New function.
6670 (resize_section_table): Make static. Rename arg num_added to
6672 * exec.h (clear_section_table): Declare.
6673 (resize_section_table): Delete.
6674 * progspace.c (release_program_space): Call clear_section_table
6675 instead of resize_section_table.
6677 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6679 * NEWS (Python Scripting): Add entry about the new xmethods
6682 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6684 * python/py-xmethods.c: New file.
6685 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6686 (objfpy_dealloc): XDECREF on the new xmethods field.
6687 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6689 (objfpy_get_xmethods): New function.
6690 (objfile_getset): New entry 'xmethods'.
6691 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6692 (pspy_dealloc): XDECREF on the new xmethods field.
6693 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6695 (pspy_get_xmethods): New function.
6696 (pspace_getset): New entry 'xmethods'.
6697 * python/python-internal.h: Add declarations for new functions.
6698 * python/python.c (_initialize_python): Invoke
6699 gdbpy_initialize_xmethods.
6700 * python/lib/gdb/__init__.py (xmethods): New
6702 * python/lib/gdb/xmethod.py: New file.
6703 * python/lib/gdb/command/xmethods.py: New file.
6705 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6707 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6708 best match method returned by find_overload_match is an xmethod.
6709 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6710 the best matching operator returned by find_overload_match is an
6712 * valops.c: #include "extension.h".
6713 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6714 Return void. The list of matching source methods is returned in
6715 "fn_list" and a vector of matching debug method workers is
6716 returned in "xm_worker_vec". Update all callers.
6717 (value_find_oload_method_list): Likewise.
6718 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6719 non-NULL, then the index of the best matching method in this
6720 vector is returned. Update all callers.
6721 (find_overload_match): Include xmethods while performing overload
6724 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6726 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6727 * extension-priv.h (struct extension_language_ops): Add the
6729 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6730 get_matching_xmethod_workers, get_xmethod_argtypes,
6731 invoke_xmethod, free_xmethod_worker,
6732 free_xmethod_worker_vec): New functions.
6733 * extension.h: #include "common/vec.h".
6734 New function declarations.
6735 (struct xmethod_worker): New struct.
6736 (VEC (xmethod_worker_ptr)): New vector type.
6737 (xmethod_worker_ptr): New typedef.
6738 (xmethod_worker_vec): Likewise.
6739 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6741 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6742 (struct builtin_type): New field "xmethod".
6743 * valarith.c (value_ptradd): Assert that the value argument is not
6745 * valops.c (value_must_coerce_to_target): Return 0 for
6746 lval_xcallable values.
6747 * value.c (struct value): New field XM_WORKER in the field
6749 (value_address, value_raw_address): Return 0 for lval_xcallable
6751 (set_value_address): Assert that the value is not an
6753 (value_free): Free the associated xmethod worker when freeing
6754 lval_xcallable values.
6755 (set_value_component_location): Assert that the WHOLE value is not
6757 (value_of_xmethod, call_xmethod): New functions.
6758 * value.h: Declare "struct xmethod_worker".
6759 Declare new functions value_of_xmethod, call_xmethod.
6761 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6762 Pedro Alves <palves@redhat.com>
6764 PR breakpoints/17000
6765 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6766 New function, extracted from software_breakpoint_inserted_here_p.
6767 (software_breakpoint_inserted_here_p): Replace factored out code
6768 by call to find_non_raw_software_breakpoint_inserted_here.
6769 (bp_target_info_copy_insertion_state): New function.
6770 (bkpt_insert_location): Handle the case of a single-step
6771 breakpoint already inserted at the same address.
6772 (bkpt_remove_location): Handle the case of a single-step
6773 breakpoint still inserted at the same address.
6774 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6775 breakpoint already inserted at the same address.
6776 (deprecated_remove_raw_breakpoint): Handle the case of a
6777 non-raw breakpoint still inserted at the same address.
6778 (find_single_step_breakpoint): New function, extracted from
6779 single_step_breakpoint_inserted_here_p.
6780 (find_single_step_breakpoint): New function,
6781 factored out from single_step_breakpoint_inserted_here_p.
6782 (single_step_breakpoint_inserted_here_p): Reimplement.
6784 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6786 Pushed by Joel Brobecker <brobecker@adacore.com>
6787 * source.c (show_substitute_path_command): Fix display of matching
6790 2014-06-03 Gary Benson <gbenson@redhat.com>
6792 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6794 2014-06-02 Doug Evans <xdje42@gmail.com>
6796 Add parameter support for Guile.
6797 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6798 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6799 (scm-param.o): New rule.
6800 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6801 (gdbscm_misc_error): Declare.
6802 (gdbscm_canonicalize_command_name): Declare.
6803 (gdbscm_scm_to_host_string): Declare.
6804 (gdbscm_scm_from_host_string): Declare.
6805 (gdbscm_initialize_parameters): Declare.
6806 * guile/guile.c (initialize_gdb_module): Call
6807 gdbscm_initialize_parameters.
6808 * guile/lib/gdb.scm: Export parameter symbols.
6809 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6810 cmdscm_canonicalize_name and made public. All callers updated.
6811 * guile/scm-exception.c (gdbscm_misc_error): New function.
6812 * guile/scm-param.c: New file.
6813 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6814 (gdbscm_scm_to_host_string): New function.
6815 (gdbscm_scm_from_host_string): New function.
6816 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6818 2014-06-02 Doug Evans <xdje42@gmail.com>
6820 Add command support for Guile.
6821 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6822 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6823 (scm-cmd.o): New rule.
6824 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6825 (gdbscm_user_error_p): Declare.
6826 (gdbscm_parse_command_name): Declare.
6827 (gdbscm_valid_command_class_p): Declare.
6828 (gdbscm_initialize_commands): Declare.
6829 * guile/guile.c (initialize_gdb_module): Call
6830 gdbscm_initialize_commands.
6831 * guile/lib/gdb.scm: Export command symbols.
6832 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6833 (throw-user-error): New function.
6834 * guile/scm-cmd.c: New file.
6835 * guile/scm-exception.c (user_error_symbol): New static global.
6836 (gdbscm_user_error_p): New function.
6837 (gdbscm_initialize_exceptions): Set user_error_symbol.
6838 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6840 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6842 * top.c (command_loop): Handle comments here...
6843 (command_line_input): ... not here.
6845 2014-06-02 Doug Evans <xdje42@gmail.com>
6847 Add progspace support for Guile.
6848 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6849 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6850 (scm-progspace.o): New rule.
6851 * guile/guile-internal.h (pspace_smob): New typedef.
6852 (psscm_pspace_smob_pretty_printers): Declare.
6853 (psscm_pspace_smob_from_pspace): Declare.
6854 (psscm_scm_from_pspace): Declare.
6855 * guile/guile.c (initialize_gdb_module): Call
6856 gdbscm_initialize_pspaces.
6857 * guile/lib/gdb.scm: Export progspace symbols.
6858 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6860 (append-pretty-printer!): Ditto.
6861 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6863 * guile/scm-progspace.c: New file.
6865 2014-06-03 Alan Modra <amodra@gmail.com>
6867 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6868 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6870 2014-06-02 Doug Evans <dje@google.com>
6872 Add support for skeletonless type units.
6873 * dwarf2read.c (struct dwarf2_per_objfile): New member
6874 n_allocated_type_units.
6875 (struct dwarf2_per_objfile) <tu_stats>: New member
6876 nr_all_type_units_reallocs.
6877 (create_signatured_type_table_from_index): Initialize
6878 n_allocated_type_units
6879 (create_all_type_units): Ditto.
6880 (add_type_unit): Move up in file. New arg slot.
6881 All callers updated. Increase space for all_type_units more
6883 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6884 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6885 (lookup_dwp_signatured_type): Ditto.
6886 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6887 All callers updated.
6888 (build_type_psymtabs_1): Leave type_unit_groups as
6889 NULL if no TUs present.
6890 (print_tu_stats): New function.
6891 (process_skeletonless_type_unit): New function.
6892 (process_dwo_file_for_skeletonless_type_units): New
6894 (process_skeletonless_type_units): New function.
6895 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6896 Call print tu_stats if debugging enabled.
6898 2014-06-02 Pedro Alves <palves@redhat.com>
6900 * breakpoint.c (build_target_command_list): Don't build a command
6901 list if we have any duplicate location that isn't a dprintf.
6903 2014-06-02 Pedro Alves <palves@redhat.com>
6905 * breakpoint.c (dprintf_breakpoint_hit): New function.
6906 (initialize_breakpoint_ops): Install it as dprintf's
6907 breakpoint_hit method.
6909 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6911 * source.c (substitute_path_rule_matches): Simplify using
6912 filename_ncmp instead of FILENAME_CMP.
6914 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6916 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6918 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6920 * configure.ac: When Guile is available, check for the
6921 availability of 'scm_new_smob'.
6922 * configure, config.h.in: Regenerate.
6923 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6926 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6928 * frame.c (struct frame_info): Add stop_string field.
6929 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6930 (get_prev_frame_always): Old content moved into
6931 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6932 TRY_CATCH, handle MEMORY_ERROR exceptions.
6933 (frame_stop_reason_string): New function definition.
6934 * frame.h (unwind_stop_reason_to_string): Extend comment to
6935 mention frame_stop_reason_string.
6936 (frame_stop_reason_string): New function declaration.
6937 * stack.c (frame_info): Switch to frame_stop_reason_string.
6938 (backtrace_command_1): Switch to frame_stop_reason_string.
6939 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6940 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6941 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6943 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6945 * frame.c (frame_stop_reason_string): Rename to ...
6946 (unwind_stop_reason_to_string): this.
6947 * frame.h (frame_stop_reason_string): Rename to ...
6948 (unwind_stop_reason_to_string): this.
6949 * stack.c (frame_info): Update call to frame_stop_reason_string.
6950 (backtrace_command_1): Likewise.
6951 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6952 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6954 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6956 * frame.c (remove_prev_frame): New function.
6957 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6960 2014-05-29 Pedro Alves <palves@redhat.com>
6962 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6963 and make it const. When a single-step decays to a continue,
6964 clear 'step', not 'hw_step'. Pass whether the caller wanted
6965 to step to user_visible_resume_ptid, not what we ask the
6968 2014-05-29 Pedro Alves <palves@redhat.com>
6970 * infrun.c (process_event_stop_test, handle_step_into_function)
6971 (handle_step_into_function_backward): Adjust.
6972 Don't set the even thread's stop_step and call stop_waiting before
6973 calling end_stepping_range. Instead do that ...
6974 (end_stepping_range): ... here. Take an ecs pointer parameter.
6976 2014-05-29 Pedro Alves <palves@redhat.com>
6978 * infrun.c (stop_stepping): Rename to ...
6979 (stop_waiting): ... this.
6980 (proceed): Update comment.
6981 (process_event_stop_test, handle_inferior_event)
6982 (handle_signal_stop, handle_step_into_function)
6983 (handle_step_into_function_backward): Update.
6985 2014-05-29 Pedro Alves <palves@redhat.com>
6987 * infcall.c (run_inferior_call): Don't check whether the current
6988 thread is running after the proceed call.
6990 2014-05-29 Pedro Alves <palves@redhat.com>
6991 Tom Tromey <tromey@redhat.com>
6993 * NEWS: Mention "maint set target-async", "set mi-async", and that
6994 background execution commands are now always available.
6995 * target.h (target_async_permitted): Update comment.
6996 * target.c (target_async_permitted, target_async_permitted_1):
6998 (set_target_async_command): Rename to ...
6999 (maint_set_target_async_command): ... this.
7000 (show_target_async_command): Rename to ...
7001 (maint_show_target_async_command): ... this.
7002 (_initialize_target): Adjust.
7003 * infcmd.c (prepare_execution_command): Make extern.
7004 * inferior.h (prepare_execution_command): Declare.
7005 * infrun.c (set_observer_mode): Leave target async alone.
7006 * mi/mi-interp.c (mi_interpreter_init): Install
7007 mi_on_sync_execution_done as sync_execution_done observer.
7008 (mi_on_sync_execution_done): New function.
7009 (mi_execute_command_input_handler): Don't print the prompt if we
7010 just started a synchronous command with an async target.
7011 (mi_on_resume): Check sync_execution before printing prompt.
7012 * mi/mi-main.h (mi_async_p): Declare.
7013 * mi/mi-main.c: Include gdbcmd.h.
7014 (mi_async_p): New function.
7015 (mi_async, mi_async_1): New globals.
7016 (set_mi_async_command, show_mi_async_command, mi_async): New
7018 (exec_continue): Call prepare_execution_command.
7019 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7020 (mi_execute_async_cli_command): Use mi_async_p.
7021 (_initialize_mi_main): Install "set mi-async". Make
7022 "target-async" a deprecated alias.
7024 2014-05-29 Pedro Alves <palves@redhat.com>
7026 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7027 (_initialize_cli_interp): Adjust.
7028 * event-loop.c: Include "observer.h".
7029 (start_event_loop): Notify 'command_error' observers instead of
7030 calling display_gdb_prompt. Remove FIXME comment.
7031 * event-top.c (display_gdb_prompt): Remove call into the
7033 * inf-loop.c: Include "observer.h".
7034 (inferior_event_handler): Notify 'command_error' observers instead
7035 of calling display_gdb_prompt.
7036 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7037 observers instead of calling display_gdb_prompt.
7038 * interps.c (interp_set): Don't call display_gdb_prompt.
7039 (current_interp_display_prompt_p): Delete.
7040 * interps.h (interp_prompt_p): Delete declaration.
7041 (interp_prompt_p_ftype): Delete.
7042 (struct interp_procs) <prompt_proc_p>: Delete field.
7043 (current_interp_display_prompt_p): Delete declaration.
7044 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7045 (_initialize_mi_interp): Adjust.
7046 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7047 'command_error' observers.
7048 (tui_on_sync_execution_done, tui_on_command_error): New
7050 (tui_display_prompt_p): Delete.
7051 (_initialize_tui_interp): Adjust.
7053 2014-05-29 Pedro Alves <palves@redhat.com>
7056 * cli/cli-interp.c: Include infrun.h and observer.h.
7057 (cli_uiout, cli_interp): New globals.
7058 (cli_on_signal_received, cli_on_end_stepping_range)
7059 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7061 (cli_interpreter_init): Install them as 'end_stepping_range',
7062 'signal_received' 'signal_exited', 'exited' and 'no_history'
7064 (_initialize_cli_interp): Remove cli_interp local.
7065 * infrun.c (handle_inferior_event): Call the several stop reason
7066 observers instead of printing the stop reason directly.
7067 (end_stepping_range): New function.
7068 (print_end_stepping_range_reason, print_signal_exited_reason)
7069 (print_exited_reason, print_signal_received_reason)
7070 (print_no_history_reason): Make static, and add an uiout
7071 parameter. Print to that instead of to CURRENT_UIOUT.
7072 * infrun.h (print_end_stepping_range_reason)
7073 (print_signal_exited_reason, print_exited_reason)
7074 (print_signal_received_reason print_no_history_reason): New
7076 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7078 <cli_uiout>: New field.
7079 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7080 uiout for CLI output. Install 'signal_received',
7081 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7083 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7084 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7085 (mi_on_no_history): New functions.
7086 (ui_out_free_cleanup): Delete function.
7087 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7088 instead use the one already stored in the MI interpreter data.
7089 (mi_ui_out): Adjust.
7090 * tui/tui-interp.c: Include infrun.h and observer.h.
7091 (tui_interp): New global.
7092 (tui_on_signal_received, tui_on_end_stepping_range)
7093 (tui_on_signal_exited, tui_on_exited)
7094 (tui_on_no_history): New functions.
7095 (tui_init): Install them as 'end_stepping_range',
7096 'signal_received' 'signal_exited', 'exited' and 'no_history'
7098 (_initialize_tui_interp): Delete tui_interp local.
7100 2014-05-29 Pedro Alves <palves@redhat.com>
7103 * linux-nat.c (linux_nat_resume_callback): Rename the second
7104 parameter to 'except'. Skip LP if it points to EXCEPT.
7105 (linux_nat_resume): Don't mark the event lwp as not stopped
7106 before resuming sibling lwps. Instead ask
7107 linux_nat_resume_callback to skip the event lwp. Mark it as not
7108 stopped after actually resuming it.
7109 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7111 (wait_lwp): Mark the lwp as stopped here.
7112 (stop_wait_callback): Mark the lwp as not stopped right after
7113 resuming it. Don't mark lwps as stopped here.
7114 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7115 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7117 2014-05-29 Pedro Alves <palves@redhat.com>
7120 * infrun.c (resume): Determine how much to resume depending on
7121 whether the caller wanted a step, not whether we can hardware step
7122 the target. Mark all threads that we intend to run as running,
7123 unless we're calling an inferior function.
7124 (normal_stop): If the thread is running an infcall, don't finish
7126 * target.c (target_resume): Don't mark threads as running here.
7128 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7130 * serial.c (_initialize_serial): Remove support for
7131 the "set remotebaud" and "show remotebaud" commands.
7132 * NEWS: Add entry documenting the removal of that command.
7134 2014-05-28 Yao Qi <yao@codesourcery.com>
7136 * charset.c: Fix typo in comments.
7138 2014-05-27 Gary Benson <gbenson@redhat.com>
7140 * utils.c (internal_vproblem): Prompt for a bug report.
7142 2014-05-26 Andy Wingo <wingo@igalia.com>
7144 * guile/scm-arch.c (arscm_mark_arch_smob):
7145 * guile/scm-block.c (bkscm_mark_block_smob)
7146 (bkscm_mark_block_syms_progress_smob):
7147 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7148 * guile/scm-exception.c (exscm_mark_exception_smob):
7149 * guile/scm-frame.c (frscm_mark_frame_smob):
7150 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7151 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7152 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7153 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7154 (ppscm_mark_pretty_printer_worker_smob):
7155 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7156 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7157 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7158 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7160 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7163 2014-05-26 Andy Wingo <wingo@igalia.com>
7164 Doug Evans <xdje42@gmail.com>
7166 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7167 empty_base_class. All uses updated.
7168 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7169 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7171 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7172 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7173 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7174 (gdbscm_gsmob_has_property_p, add_property_name)
7175 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7176 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7177 (gdb-object-has-property?, gdb-object-properties): Remove.
7178 (gdb-object-kind): Renamed from gsmob-kind.
7180 2014-05-26 Andy Wingo <wingo@igalia.com>
7182 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7183 * configure: Regenerate.
7185 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7187 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7189 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7191 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7192 (replay_memory_access_read_only, replay_memory_access_read_write)
7193 (replay_memory_access_types, replay_memory_access)
7194 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7195 (cmd_set_record_btrace, cmd_show_record_btrace)
7196 (cmd_show_replay_memory_access): New.
7197 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7198 (record_btrace_remove_breakpoint): Replace
7199 record_btrace_allow_memory_access with replay_memory_access.
7200 (_initialize_record_btrace): Add commands.
7201 * NEWS: Announce it.
7203 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7205 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7207 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7209 * MAINTAINERS (Write After Approval): Move self back from
7212 2014-05-22 Pedro Alves <palves@redhat.com>
7214 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7215 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7216 (disable_randomization, enum exec_direction_kind)
7217 (execution_direction, stop_registers, start_remote)
7218 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7219 (wait_for_inferior, normal_stop, get_last_target_status)
7220 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7221 (insert_step_resume_breakpoint_at_sal)
7222 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7223 (set_step_info, print_stop_event, signal_stop_state)
7224 (signal_print_state, signal_pass_state, signal_stop_update)
7225 (signal_print_update, signal_pass_update)
7226 (update_signals_program_target, clear_exit_convenience_vars)
7227 (displaced_step_dump_bytes, update_observer_mode)
7228 (signal_catch_update, gdb_signal_from_command): Move
7230 * infrun.h: ... to this new file.
7231 * amd64-tdep.c: Include infrun.h.
7232 * annotate.c: Include infrun.h.
7233 * arch-utils.c: Include infrun.h.
7234 * arm-linux-tdep.c: Include infrun.h.
7235 * arm-tdep.c: Include infrun.h.
7236 * break-catch-sig.c: Include infrun.h.
7237 * breakpoint.c: Include infrun.h.
7238 * common/agent.c: Include infrun.h instead of inferior.h.
7239 * corelow.c: Include infrun.h.
7240 * event-top.c: Include infrun.h.
7241 * go32-nat.c: Include infrun.h.
7242 * i386-tdep.c: Include infrun.h.
7243 * inf-loop.c: Include infrun.h.
7244 * infcall.c: Include infrun.h.
7245 * infcmd.c: Include infrun.h.
7246 * infrun.c: Include infrun.h.
7247 * linux-fork.c: Include infrun.h.
7248 * linux-nat.c: Include infrun.h.
7249 * linux-thread-db.c: Include infrun.h.
7250 * monitor.c: Include infrun.h.
7251 * nto-tdep.c: Include infrun.h.
7252 * procfs.c: Include infrun.h.
7253 * record-btrace.c: Include infrun.h.
7254 * record-full.c: Include infrun.h.
7255 * remote-m32r-sdi.c: Include infrun.h.
7256 * remote-mips.c: Include infrun.h.
7257 * remote-notif.c: Include infrun.h.
7258 * remote-sim.c: Include infrun.h.
7259 * remote.c: Include infrun.h.
7260 * reverse.c: Include infrun.h.
7261 * rs6000-tdep.c: Include infrun.h.
7262 * s390-linux-tdep.c: Include infrun.h.
7263 * solib-irix.c: Include infrun.h.
7264 * solib-osf.c: Include infrun.h.
7265 * solib-svr4.c: Include infrun.h.
7266 * target.c: Include infrun.h.
7267 * top.c: Include infrun.h.
7268 * windows-nat.c: Include infrun.h.
7269 * mi/mi-interp.c: Include infrun.h.
7270 * mi/mi-main.c: Include infrun.h.
7271 * python/py-threadevent.c: Include infrun.h.
7273 2014-05-22 Pedro Alves <palves@redhat.com>
7275 * infrun.c (handle_inferior_event): Store the exit code for
7276 --return-child-result here, instead of ...
7277 (print_exited_reason): ... here.
7279 2014-05-21 Pedro Alves <palves@redhat.com>
7282 * gdbthread.h (struct thread_control_state): New field
7284 * infrun.c (follow_fork): Copy the new thread control field to the
7286 (clear_proceed_status_thread): Clear the new thread control field.
7287 (proceed): Set the new thread control field.
7288 * interps.h (command_interp): Declare.
7289 * interps.c (command_interpreter): New global.
7290 (command_interp): New function.
7291 (interp_exec): Set `command_interpreter' while here.
7292 * cli-out.c (cli_uiout_dtor): New function.
7293 (cli_ui_out_impl): Install it.
7294 * mi/mi-interp.c: Include cli-out.h.
7295 (mi_cmd_interpreter_exec): Add comment.
7296 (restore_current_uiout_cleanup): New function.
7297 (ui_out_free_cleanup): New function.
7298 (mi_on_normal_stop): If finishing an execution command started by
7299 a CLI command, or any kind of breakpoint-like event triggered,
7300 print the stop event to the output (CLI) stream.
7301 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7303 2014-05-21 Pedro Alves <palves@redhat.com>
7305 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7306 current source line having changed.
7307 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7308 * infrun.c (normal_stop): Adjust call to
7309 set_current_sal_from_frame.
7310 * source.c (clear_lines_listed_range): New function.
7311 (set_current_source_symtab_and_line, identify_source_line): Clear
7312 the lines listed range.
7313 (line_info): Handle the first "info line" after the current source
7314 line having changed.
7315 * stack.c (print_stack_frame): Remove center handling.
7316 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7319 2014-05-21 Pedro Alves <palves@redhat.com>
7321 * inf-child.c (inf_child_mourn_inferior): New function.
7322 * inf-child.h (inf_child_mourn_inferior): New declaration.
7323 * darwin-nat.c (darwin_mourn_inferior): Use
7324 inf_child_mourn_inferior.
7325 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7326 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7327 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7328 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7329 * windows-nat.c (windows_mourn_inferior): Likewise.
7331 2014-05-21 Doug Evans <xdje42@gmail.com>
7333 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7335 2014-05-21 Doug Evans <xdje42@gmail.com>
7337 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7338 (gdbscm_out_of_range_error): Ditto.
7339 (gdbscm_memory_error): Ditto.
7340 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7341 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7342 (gdbscm_out_of_range_error): Update.
7343 (gdbscm_memory_error): Update.
7344 (gdbscm_scm_to_target_string_unsafe): Delete.
7346 2014-05-21 Pedro Alves <palves@redhat.com>
7348 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7350 (inf_child_open_target): New function.
7351 (inf_child_open): Use inf_child_open_target to push the target
7352 instead of erroring out.
7353 (inf_child_disconnect, inf_child_close)
7354 (inf_child_maybe_unpush_target): New functions.
7355 (inf_child_target): Install inf_child_disconnect and
7356 inf_child_close. Store a pointer to the returned object.
7357 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7359 * target.c (auto_connect_native_target): New global.
7360 (show_default_run_target): New function.
7361 (find_default_run_target): Return NULL if automatically connecting
7362 to the native target is disabled.
7363 (_initialize_target): Install set/show auto-connect-native-target.
7364 * NEWS: Mention "set auto-connect-native-target", and "target
7366 * linux-nat.c (super_close): New global.
7367 (linux_nat_close): Call super_close.
7368 (linux_nat_add_target): Store a pointer to the base class's
7370 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7371 inf_child_maybe_unpush.
7372 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7374 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7375 the inferior. Use inf_child_maybe_unpush_target.
7376 (inf_ttrace_attach): Don't push the target if it is already
7378 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7379 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7380 after mourning the inferior. Use inf_child_maybe_unpush_target.
7381 (darwin_attach_pid): Don't push the target if it is already
7383 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7384 mourning the inferior. Use inf_child_maybe_unpush_target.
7385 (gnu_detach): Use inf_child_maybe_unpush_target.
7386 * go32-nat.c (go32_create_inferior): Don't push the target if it
7388 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7389 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7390 (procfs_open): Rename to ...
7391 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7392 comments. Can target_preopen before changing node. Call
7393 inf_child_open_target to push the target explicitly.
7394 (procfs_attach): Don't push the target if it is already pushed.
7395 (procfs_detach): Use inf_child_maybe_unpush_target.
7396 (procfs_create_inferior): Don't push the target if it is already
7398 (nto_native_ops): New global.
7399 (procfs_open): Reimplement.
7400 (procfs_native_open): New function.
7401 (init_procfs_targets): Install procfs_native_open as to_open of
7402 "target native". Store a pointer to the "native" target in
7404 * procfs.c (procfs_attach): Don't push the target if it is already
7406 (procfs_detach): Use inf_child_maybe_unpush_target.
7407 (procfs_mourn_inferior): Only unpush the target after mourning the
7408 inferior. Use inf_child_maybe_unpush_target.
7409 (procfs_init_inferior): Don't push the target if it is already
7411 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7412 if it is already pushed.
7414 2014-05-21 Pedro Alves <palves@redhat.com>
7416 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7417 and "procfs" targets are now called "native" instead.
7419 2014-05-21 Pedro Alves <palves@redhat.com>
7421 * go32-nat.c (go32_open): Delete.
7422 (go32_target): Don't override the to_open method.
7424 2014-05-21 Pedro Alves <palves@redhat.com>
7426 * nto-procfs.c (procfs_can_run): New function.
7427 (nto_procfs_ops): New global.
7428 (init_procfs_targets): New, based on procfs_target. Install
7429 "target native" in addition to "target procfs".
7430 (_initialize_procfs): Call init_procfs_targets instead of adding
7433 2014-05-21 Pedro Alves <palves@redhat.com>
7435 * windows-nat.c (windows_target): Don't override to_shortname,
7436 to_longname or to_doc.
7438 2014-05-21 Pedro Alves <palves@redhat.com>
7440 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7443 2014-05-21 Pedro Alves <palves@redhat.com>
7445 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7446 to_shortname, to_longname or to_doc.
7448 2014-05-21 Pedro Alves <palves@redhat.com>
7450 * go32-nat.c (go32_target): Don't override to_shortname,
7451 to_longname or to_doc.
7453 2014-05-21 Pedro Alves <palves@redhat.com>
7455 * inf-child.c (inf_child_open): Remove mention of "child".
7456 (inf_child_target): Rename target to "native" instead of "child".
7458 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7460 * Makefile.in (SFILES): Delete "regset.c".
7461 (COMMON_OBS): Delete "regset.o".
7463 * regset.h (regset_alloc): Delete prototype.
7465 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7467 * sparc-linux-tdep.c (sparc32_linux_gregset)
7468 (sparc32_linux_fpregset): New static regset structures.
7469 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7470 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7472 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7473 (sparc64_linux_fpregset): New static regset structures.
7474 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7475 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7476 New static regset structures.
7477 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7478 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7479 New static regset structures.
7480 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7481 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7482 New static regset structures.
7483 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7484 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7485 New static regset structures.
7486 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7488 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7490 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7491 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7492 register maps ("regmaps") from "*regset" to "*regmap". Do this
7493 for all regmap types and variables.
7494 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7495 (sparc32_linux_supply_core_gregset)
7496 (sparc32_linux_collect_core_gregset)
7497 (sparc32_linux_supply_core_fpregset)
7498 (sparc32_linux_collect_core_fpregset): Likewise.
7499 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7500 (sparc_gregmap, sparc_fpregmap): ... these.
7501 (sparc_supply_gregset, sparc_collect_gregset)
7502 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7503 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7504 (_initialize_sparc_nat): Rename regmaps.
7505 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7506 (sparc_gregmap, sparc_fpregmap): ... these.
7507 (sparc_supply_gregset, sparc_collect_gregset)
7508 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7509 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7511 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7512 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7514 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7516 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7517 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7518 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7520 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7521 (sparc32_bsd_fpregset): Rename to...
7522 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7523 (sparc32_bsd_fpregmap): ... these.
7524 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7525 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7526 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7527 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7528 (struct sparc_gregmap, struct sparc_fpregmap)
7529 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7530 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7531 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7532 (sparc32_supply_regset, sparc32_collect_gregset)
7533 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7535 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7536 (sparc64_linux_ptrace_gregmap): ... this.
7537 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7538 (_initialize_sparc64_linux_nat): Rename regmaps.
7539 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7540 (sparc64_linux_core_gregmap): ... this.
7541 (sparc64_linux_supply_core_gregset)
7542 (sparc64_linux_collect_core_gregset)
7543 (sparc64_linux_supply_core_fpregset)
7544 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7545 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7546 (sparc64_sol2_fpregset): Rename to...
7547 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7548 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7549 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7551 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7552 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7553 (sparc64_bsd_fpregset): Rename to...
7554 (struct sparc_gregmap, sparc64_sol2_gregmap)
7555 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7556 (sparc64_bsd_fpregmap): ... these.
7557 (sparc64_supply_gregset, sparc64_collect_gregset)
7558 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7560 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7561 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7562 (sparc64fbsd_gregmap): ... this.
7563 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7564 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7566 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7567 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7568 (sparc64nbsd_collect_fpregset): Likewise.
7569 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7570 (sparc64nbsd_gregmap): ... this.
7571 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7573 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7574 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7575 (sparc64obsd_gregmap): ... this.
7576 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7578 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7579 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7580 (sparc32nbsd_gregmap): ... this.
7581 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7584 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7586 * score-tdep.c (score7_linux_gregset): New static regset
7588 (score7_linux_regset_from_core_section): Remove dynamic regset
7590 (score_gdbarch_init): Drop allocation of tdep structure.
7591 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7593 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7595 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7597 (am33_regset_from_core_section): Remove dynamic regset
7600 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7602 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7603 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7605 (mips_linux_regset_from_core_section): Remove dynamic regset
7607 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7608 'gregset64', 'fpregset', and 'fpregset64'.
7609 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7610 deleted tdep fields.
7612 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7614 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7616 (amd64_regset_from_core_section): Remove dynamic regset
7618 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7620 (amd64obsd_regset_from_core_section): Remove dynamic regset
7622 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7624 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7625 x86-common regset supply function.
7626 * i386-tdep.c (i386_collect_gregset): Make static.
7627 (i386_gregset): New global regset structure.
7628 (i386_fpregset, i386_xstateregset): New static regset structures.
7629 (i386_regset_from_core_section): Remove dynamic regset
7631 (i386_gdbarch_init): Remove initialization of tdep fields
7632 'gregset', 'fpregset', and 'xstateregset'.
7633 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7634 'fpregset', and 'xstateregset'.
7635 (i386_collect_gregset): Remove prototype.
7636 (i386_gregset): New declaration.
7637 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7639 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7642 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7644 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7645 (arm_linux_vfpregset): New static regset structures.
7646 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7648 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7649 and 'vfpregset' fields.
7651 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7653 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7654 (aarch64_linux_fpregset): New static regset structures.
7655 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7656 of regset structures.
7657 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7660 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7662 * regset.h (struct regset): Remove gdbarch field.
7663 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7664 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7665 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7667 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7668 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7669 (ppc32_linux_vsxregset): Likewise.
7670 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7671 via the regcache instead of the regset.
7672 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7673 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7674 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7675 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7678 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7680 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7681 Constify structures.
7682 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7683 (alphanbsd_aout_gregset): Likewise.
7684 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7685 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7687 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7688 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7690 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7691 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7692 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7693 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7694 * m88k-tdep.c (m88k_gregset): Likewise.
7695 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7696 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7697 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7698 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7699 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7700 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7701 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7702 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7703 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7705 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7706 * sh-tdep.h (sh_corefile_gregset): Likewise.
7707 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7708 * vax-tdep.c (vax_gregset): Likewise.
7710 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7712 Fix TLS access for -static -pthread.
7713 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7714 (try_thread_db_load_1): Initialize it.
7715 (thread_db_get_thread_local_address): Call it if LM is zero.
7716 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7717 * target.h (struct target_ops) (to_get_thread_local_address): Add
7718 load_module_addr comment.
7720 2014-05-21 Pedro Alves <palves@redhat.com>
7722 * dcache.c (dcache_read_memory_partial): If reading the cache line
7723 fails, fallback to reading just the memory the caller wanted.
7725 2014-05-20 Doug Evans <dje@google.com>
7727 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7728 instead of get_current_arch.
7730 2014-05-20 Pedro Alves <palves@redhat.com>
7732 * NEWS: Mention that compare-sections now works with all targets.
7734 * remote.c (PACKET_qCRC): New enum value.
7735 (remote_verify_memory): Don't send qCRC if the target has no
7736 execution. Use packet_support/packet_ok. If the target doesn't
7737 support the qCRC packet, fallback to a deep memory copy.
7738 (compare_sections_command): Say "target image" instead of "remote
7740 (_initialize_remote): Add PACKET_qCRC to the list of config
7741 packets that have no associated command. Extend comment.
7742 * target.c (simple_verify_memory, default_verify_memory): New
7744 * target.h (struct target_ops) <to_verify_memory>: Default to
7745 default_verify_memory.
7746 (simple_verify_memory): New declaration.
7747 * target-delegates.c: Regenerate.
7749 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7751 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7753 2014-05-20 Hui Zhu <hui@codesourcery.com>
7754 Yao Qi <yao@codesourcery.com>
7757 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7758 and change address of sp and pc.
7760 2014-05-19 Tom Tromey <tromey@redhat.com>
7762 * gdbtypes.c (rank_function): Use XNEWVEC.
7763 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7765 2014-05-19 Doug Evans <dje@google.com>
7767 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7768 build_type_unit_groups and moved closer to only caller. Remove
7769 arguments. All references updated. Remove outdated .gdb_index
7771 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7772 build_type_psymtabs_1.
7774 2014-05-19 Doug Evans <dje@google.com>
7776 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7777 n_type_unit_groups, all_type_unit_groups. All uses removed.
7778 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7779 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7780 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7781 (add_type_unit_group_to_table): Delete.
7783 2014-05-19 Doug Evans <dje@google.com>
7785 * eval.c (evaluate_subexp_standard): Add some comments.
7787 2014-05-17 Doug Evans <xdje42@gmail.com>
7789 * progspace.c (remove_program_space): Delete, unused.
7790 * progspace.h (remove_program_space): Ditto.
7792 2014-05-17 Doug Evans <xdje42@gmail.com>
7794 * inferior.c (prune_inferiors): Fix comment.
7795 (remove_inferior_command): Call prune_program_spaces.
7797 2014-05-16 Doug Evans <dje@google.com>
7799 New command line option -D.
7801 * main.c (set_gdb_data_directory): New function.
7802 (captured_main): Recognize -D. Flag error for --data-directory "".
7803 Call set_gdb_data_directory.
7804 (print_gdb_help): Print --data-directory, -D.
7805 * main.h (set_gdb_data_directory): Declare.
7806 * top.c (staged_gdb_datadir): New static global.
7807 (set_gdb_datadir): Call set_gdb_data_directory
7808 (show_gdb_datadir): New function.
7809 (init_main): Update init of data-directory parameter.
7811 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7813 Import the "dirfd" gnulib module.
7814 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7815 * gnulib/aclocal.m4: Update.
7816 * gnulib/config.in: Update.
7817 * gnulib/configure: Update.
7818 * gnulib/import/Makefile.am: Update.
7819 * gnulib/import/Makefile.in: Update.
7820 * gnulib/import/dirfd.c: New.
7821 * gnulib/import/m4/dirfd.m4: New.
7822 * gnulib/import/m4/gnulib-cache.m4: Update.
7823 * gnulib/import/m4/gnulib-comp.m4: Update.
7825 2014-05-16 Pierre Muller <muller@sourceware.org>
7826 Yao Qi <yao@codesourcery.com>
7828 * valprint.c (print_wchar): Move the code on checking whether
7829 W is a printable wide char to the default branch of switch
7830 statement below. Call wchar_printable instead of gdb_iswprint.
7832 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7834 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7835 ldr.w and ldrd instructions.
7837 2014-05-15 Doug Evans <dje@google.com>
7839 * dwarf2read.c (read_structure_type): Delete outdated comments.
7841 2014-05-14 Tom Tromey <tromey@redhat.com>
7843 * macrocmd.c (print_macro_definition): Reindent.
7845 2014-05-13 Doug Evans <xdje42@gmail.com>
7847 * python/py-cmd.c (cmdpy_completer): Add comment.
7848 (completers): Make const.
7850 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7852 * infrun.c (resume): Remove should_resume (unused). Move up
7853 declaration of resume_ptid.
7855 2014-05-13 Tom Tromey <tromey@redhat.com>
7857 * language.h (unop_type_check): Remove.
7858 (binop_type_check): Don't declare.
7860 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7862 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7863 call to regcache_raw_collect.
7865 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7867 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7868 mi_console->quote as the quoting character.
7870 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7872 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7874 2014-04-29 Tom Tromey <tromey@redhat.com>
7876 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7877 "show debug varobj".
7879 2014-05-07 Kyle McMartin <kyle@redhat.com>
7881 Pushed by Joel Brobecker <brobecker@adacore.com>.
7882 * aarch64-tdep.c (aarch64_software_single_step): New function.
7883 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7884 with aarch64_software_single_step.
7886 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7890 2014-05-05 Keith Seitz <keiths@redhat.com>
7892 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7893 variable or history value is successfully parsed.
7895 2014-05-05 Yao Qi <yao@codesourcery.com>
7896 Pedro Alves <palves@redhat.com>
7898 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7899 address of blocks that intersects the requested range. Trim
7900 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7902 * ctf.c (ctf_xfer_partial): Likewise.
7904 2014-05-05 Yao Qi <yao@codesourcery.com>
7906 * printcmd.c (display_command): Remove the check to
7907 target_has_execution.
7909 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7911 * ppcobsd-nat.c: Include "obsd-nat.h".
7912 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7914 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7916 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7918 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7919 and 16-bit signed and unsigned arguments. Update comment.
7920 (stap_parse_probe_arguments): Extend code to handle such
7921 arguments. Use warning instead of complaint to notify about
7922 unrecognized bitness.
7924 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7926 PR breakpoints/16889
7927 * stap-probe.c (stap_parse_probe_arguments): Simplify
7928 check for non-prefixed probes (i.e., probes whose
7929 arguments do not start with "N@"). Always set the
7930 argument type to a sane value.
7932 2014-05-01 David Taylor <dtaylor@emc.com>
7934 * remote.c (compare_sections_command): Add -r option to compare
7935 all loadable read-only sections.
7937 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7939 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7940 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7942 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7943 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7944 Remove unused CORE_ADDR argument. Update all callers.
7946 2014-04-29 Pedro Alves <palves@redhat.com>
7948 * remote.c (struct packet_config) <detect>: Extend comment.
7949 (add_packet_config_cmd): Don't set the config's detect or support
7951 (init_all_packet_configs): Also initialize the config's 'detect'
7953 (reset_all_packet_configs_support): New function.
7954 (remote_open_1): Call reset_all_packet_configs_support instead of
7955 init_all_packet_configs.
7956 (_initialize_remote): Initialize all packet configs. Assert that
7957 all packets have an associated command, except a few known
7960 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7962 * dwarf2read.c (read_subrange_type): Handle dynamic
7963 DW_AT_lower_bound attributes.
7965 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7967 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7968 dynamic bounds before computing its upper bound.
7969 (ada_discrete_type_low_bound): Same as above with the lower bound.
7971 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7973 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7974 range types. Adjust the array handling implementation to
7975 take advantage of this change.
7976 (resolve_dynamic_range): New function, mostly extracted from
7977 resolve_dynamic_bounds.
7978 (resolve_dynamic_array): New function, mostly extracted from
7979 resolve_dynamic_bounds.
7980 (resolve_dynamic_bounds): Delete.
7981 (resolve_dynamic_type): Reimplement. Add handling of
7982 TYPE_CODE_RANGE types.
7984 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7986 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7987 handling of parallel ___XA types.
7989 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7991 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7992 unnecessary second call to static_unwrap_type.
7994 2014-04-27 Hui Zhu <hui@codesourcery.com>
7996 * stack.c (print_frame_info): Call do_gdb_disassembly with
7997 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7999 2014-04-26 Doug Evans <xdje42@gmail.com>
8001 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8003 2014-04-25 Pedro Alves <palves@redhat.com>
8006 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8007 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8008 and newline from built string.
8009 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8010 (linux_ptrace_attach_fail_reason): ... this.
8011 * linux-nat.c (linux_nat_attach): Adjust to use
8012 linux_ptrace_attach_fail_reason.
8014 2014-04-25 Pedro Alves <palves@redhat.com>
8016 * remote.c (struct remote_state): Remove multi_process_aware,
8017 non_stop_aware, cond_tracepoints, cond_breakpoints,
8018 breakpoint_commands, fast_tracepoints, static_tracepoints,
8019 install_in_trace, disconnected_tracing,
8020 enable_disable_tracepoints, string_tracing, and
8021 augmented_libraries_svr4_read fields.
8022 (remote_multi_process_p): Move further below in the file.
8023 (struct packet_config): Add comments.
8024 (update_packet_config): Delete function.
8025 (show_packet_config_cmd): Use packet_config_support.
8026 (add_packet_config_cmd): Use NULL as set callback.
8027 (packet_ok): "set remote foo-packet"-style commands no longer
8028 change config->supported -- adjust.
8029 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8030 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8031 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8032 (PACKET_QNonStop, PACKET_multiprocess_feature)
8033 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8034 (PACKET_DisconnectedTracing_feature)
8035 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8036 (set_remote_protocol_packet_cmd): Delete function.
8037 (packet_config_support, packet_support): New functions.
8038 (set_remote_protocol_Z_packet_cmd): Don't call
8039 update_packet_config.
8040 (remote_query_attached, remote_pass_signals)
8041 (remote_program_signals, remote_threads_info)
8042 (remote_threads_extra_info, remote_start_remote): Use
8044 (remote_start_remote): Use packet_config_support and
8046 (init_all_packet_configs): Set all packets to unknown support,
8047 instead of calling update_packet_config.
8048 (remote_check_symbols): Use packet_support.
8049 (remote_supported_packet): Unconditionally set the packet config's
8051 (remote_multi_process_feature, remote_non_stop_feature)
8052 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8053 (remote_breakpoint_commands_feature)
8054 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8055 (remote_install_in_trace_feature)
8056 (remote_disconnected_tracing_feature)
8057 (remote_enable_disable_tracepoint_feature)
8058 (remote_string_tracing_feature)
8059 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8060 (remote_protocol_features): Adjust to use remote_supported_packet
8061 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8062 "ConditionalTracepoints", "ConditionalBreakpoints",
8063 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8064 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8065 "EnableDisableTracepoints", and "tracenz".
8066 (remote_query_supported): Use packet_support.
8067 (remote_open_1): Adjust.
8068 (extended_remote_attach_1): Use packet_support. Switch on the
8069 result of packet_ok instead of checking whether the packet ended
8071 (remote_vcont_resume): Use packet_support.
8072 (remote_resume, remote_stop_ns, fetch_register_using_p)
8073 (remote_prepare_to_store, store_register_using_P)
8074 (check_binary_download, remote_write_bytes): Use packet_support.
8075 (remote_vkill): Use packet_support. Switch on the result of
8076 packet_ok instead of checking whether the packet ended up
8078 (extended_remote_supports_disable_randomization): Use
8080 (extended_remote_run): Switch on the result of packet_ok instead
8081 of checking whether the packet ended up disabled.
8082 (remote_insert_breakpoint, remote_remove_breakpoint)
8083 (remote_insert_watchpoint, remote_remove_watchpoint)
8084 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8086 (remote_search_memory): Use packet_config_support.
8087 (remote_get_thread_local_address, remote_get_tib_address)
8088 (remote_hostio_send_command, remote_can_execute_reverse): Use
8090 (remote_supports_cond_tracepoints)
8091 (remote_supports_cond_breakpoints)
8092 (remote_supports_fast_tracepoints)
8093 (remote_supports_static_tracepoints)
8094 (remote_supports_install_in_trace)
8095 (remote_supports_enable_disable_tracepoint)
8096 (remote_supports_string_tracing)
8097 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8098 the packet config says the feature is enabled or disabled.
8099 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8100 (remote_get_trace_status): Use packet_support.
8101 (remote_set_disconnected_tracing): Adjust to check whether the
8102 feature is enabled with packet_support.
8103 (remote_set_trace_buffer_size, remote_use_agent)
8104 (remote_can_use_agent, remote_supports_btrace): Use
8106 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8107 Use packet_config_support.
8108 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8109 the packet config says the feature is enabled or disabled.
8110 (set_range_stepping): Use packet_support.
8112 2014-04-25 Tom Tromey <tromey@redhat.com>
8114 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8117 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8119 * NEWS: Mention support for C99 variable length arrays.
8121 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8123 * ada-lang.c (standard_exc): Expand introductory comment.
8125 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8126 Walfred Tedeschi <walfred.tedeschi@intel.com>
8128 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8130 (amd64_linux_read_description): Add code to handle AVX512 xstate
8131 mask and return respective tdesc.
8132 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8133 and features/i386/x32-avx512-linux.c.
8134 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8135 (amd64_linux_core_read_description): Add code to handle AVX512
8136 xstate mask and return respective tdesc.
8137 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8138 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8140 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8141 (tdesc_amd64_avx512_linux): New prototype.
8142 (tdesc_x32_avx512_linux): Likewise.
8143 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8144 features/i386/x32-avx512.c.
8145 (amd64_ymm_avx512_names): New register names for pseudo
8147 (amd64_ymmh_avx512_names): New register names for raw registers
8149 (amd64_k_names): New register names for K registers.
8150 (amd64_zmmh_names): New register names for ZMM raw registers.
8151 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8152 (amd64_xmm_avx512_names): New register names for XMM16-31
8154 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8156 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8157 if feature is present.
8158 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8159 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8160 (AMD64_NUM_REGS): Adjust to new number of registers.
8161 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8162 registers supplied via XSTATE by AVX512 registers.
8163 (i386_linux_read_description): Add case for AVX512.
8164 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8165 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8166 (i386_linux_core_read_description): Add case for AVX512.
8167 (i386_linux_init_abi): Install supported register note section
8169 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8171 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8172 registers to be number of zmm7h + 1.
8173 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8174 * i386-tdep.c: Include features/i386/i386-avx512.c.
8175 (i386_zmm_names): Add ZMM pseudo register names array.
8176 (i386_zmmh_names): Add ZMM raw register names array.
8177 (i386_k_names): Add K raw register names array.
8178 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8179 registers. AVX512 has 16 more ZMM registers than there are YMM
8181 (i386_zmmh_regnum_p): Add function to look up register number of
8183 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8184 (i386_k_regnum_p): Likewise for K raw registers.
8185 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8186 registers added by AVX512.
8187 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8188 registers added by AVX512.
8189 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8191 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8192 (i386_pseudo_register_name): Add ZMM pseudo registers.
8193 (i386_zmm_type): Construct and return vector registers type for ZMM
8195 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8196 ZMM0-31 pseudo registers and K registers.
8197 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8198 and YMM16-31 registers from register cache.
8199 (i386_pseudo_register_write): Add code to write K, ZMM and
8201 (i386_register_reggroup_p): Add code to include/exclude AVX512
8202 registers in/from respective register groups.
8203 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8204 registers if feature is present in xcr0.
8205 (i386_gdbarch_init): Add code to initialize AVX512 feature
8206 variables in tdep structure, wire in pseudo registers and call
8207 initialize_tdesc_i386_avx512.
8208 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8210 (i386_regnum): Add AVX512 registers.
8211 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8212 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8213 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8214 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8216 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8217 (i386_ymm_avx512_regnum_p): Likewise.
8218 (i386_k_regnum_p): Likewise.
8219 (i386_zmm_regnum_p): Likewise.
8220 (i386_zmmh_regnum_p): Likewise.
8221 * i387-tdep.c : Update year in copyright notice.
8222 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8224 (XSAVE_YMM_AVX512_ADDR): New macro.
8225 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8227 (XSAVE_XMM_AVX512_ADDR): New macro.
8228 (xsave_avx512_k_offset): New table for K register offsets in
8230 (XSAVE_AVX512_K_ADDR): New macro.
8231 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8233 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8234 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8236 (i387_collect_xsave): Add code to collect AVX512 registers from
8238 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8239 of XMM16-31 registers.
8240 (I387_NUM_K_REGS): New define for number of K registers.
8241 (I387_K0_REGNUM): New define for K0 register number.
8242 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8243 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8244 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8246 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8247 (I387_XMM16_REGNUM): New define for XMM16 register number.
8248 (I387_YMM0_REGNUM): New define for YMM0 register number.
8249 (I387_KEND_REGNUM): New define for last K register number.
8250 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8251 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8253 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8255 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8257 * features/Makefile: Add AVX512 related files.
8258 * features/i386/32bit-avx512.xml: New file.
8259 * features/i386/64bit-avx512.xml: Likewise.
8260 * features/i386/amd64-avx512-linux.c: Likewise.
8261 * features/i386/amd64-avx512-linux.xml: Likewise.
8262 * features/i386/amd64-avx512.c: Likewise.
8263 * features/i386/amd64-avx512.xml: Likewise.
8264 * features/i386/i386-avx512-linux.c: Likewise.
8265 * features/i386/i386-avx512-linux.xml: Likewise.
8266 * features/i386/i386-avx512.c: Likewise.
8267 * features/i386/i386-avx512.xml: Likewise.
8268 * features/i386/x32-avx512-linux.c: Likewise.
8269 * features/i386/x32-avx512-linux.xml: Likewise.
8270 * features/i386/x32-avx512.c: Likewise.
8271 * features/i386/x32-avx512.xml: Likewise.
8272 * regformats/i386/amd64-avx512-linux.dat: New file.
8273 * regformats/i386/amd64-avx512.dat: Likewise.
8274 * regformats/i386/i386-avx512-linux.dat: Likewise.
8275 * regformats/i386/i386-avx512.dat: Likewise.
8276 * regformats/i386/x32-avx512-linux.dat: Likewise.
8277 * regformats/i386/x32-avx512.dat: Likewise.
8278 * NEWS: Add note about new support for AVX512.
8281 2014-04-23 Pedro Alves <palves@redhat.com>
8283 * breakpoint.c (insert_bp_location): Tolerate errors if the
8284 breakpoint is set in a user-loaded objfile.
8285 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8286 location is marked shlib_disabled. If the breakpoint is set in a
8287 user-loaded objfile is a GDB-side memory breakpoint, validate it
8288 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8289 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8291 * mem-break.c (memory_validate_breakpoint): New function.
8292 * objfiles.c (userloaded_objfile_contains_address_p): New
8294 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8295 * target.h (memory_validate_breakpoint): New declaration.
8297 2014-04-23 Pedro Alves <palves@redhat.com>
8299 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8300 the breakpoint is set in a shared library, only suppress
8301 errors for software breakpoints, not hardware breakpoints.
8303 2014-04-22 Pedro Alves <palves@redhat.com>
8305 * infrun.c (schedlock_applies): New function, factored out from
8306 find_thread_needs_step_over.
8307 (find_thread_needs_step_over): Use it.
8308 (switch_back_to_stepped_thread): Always clear trap_expected if the
8309 step over is finished. Return early if scheduler locking applies.
8310 Look for the stepping thread and a potential step-over thread with
8312 (currently_stepping_or_nexting_callback): Delete.
8314 2014-04-22 Nick Clifton <nickc@redhat.com>
8316 * NEWS: Mention that ARM sim now supports tracing.
8318 2014-04-22 Yao Qi <yao@codesourcery.com>
8320 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8322 * tracefile.c (tracefile_fetch_registers): ... it. New
8324 * tracefile.h (tracefile_fetch_registers): Declare.
8325 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8326 tracefile_fetch_registers.
8328 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8331 * windows-nat.c (thread_rec): Don't display a warning when
8332 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8333 fails for any reason, set th->suspended to -1, so that we don't
8334 try to resume such a thread. Also, don't return NULL in these
8335 cases, to avoid completely ruin the session due to "PC register is
8336 not available" error.
8337 (do_windows_fetch_inferior_registers): Check errors in
8338 GetThreadContext call.
8339 (windows_continue): Accept an additional argument KILLED; if not
8340 zero, ignore errors in the SetThreadContext call, since the
8341 inferior was killed and is shutting down.
8342 (windows_resume, get_windows_debug_event)
8343 (windows_create_inferior, windows_mourn_inferior)
8344 (windows_kill_inferior): All callers of windows_continue changed
8345 to adjust to its new calling sequence.
8347 2014-04-19 Yao Qi <yao@codesourcery.com>
8349 * ctf.c (ctf_open): Call post_create_inferior.
8351 2014-04-19 Yao Qi <yao@codesourcery.com>
8353 * ctf.c (handle_id): New static variable.
8354 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8355 value. Get the declaration of event "register" and get length
8356 of field "contents".
8358 2014-04-19 Yao Qi <yao@codesourcery.com>
8360 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8362 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8364 * valops.c (oload_method_static): Remove unnecessary argument
8365 METHOD. Update all callers.
8367 2014-04-18 Pedro alves <palves@redhat.com>
8368 Tom Tromey <tromey@redhat.com>
8371 * frame.c (get_prev_frame_1): Rename to ...
8372 (get_prev_frame_always): ... this, and make extern. Adjust.
8373 (skip_artificial_frames): Use get_prev_frame_always.
8374 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8375 (get_frame_unwind_stop_reason): Adjust to rename.
8376 * frame.h (get_prev_frame_always): Declare.
8377 * inline-frame.c: Include frame.h.
8378 (inline_frame_this_id): Use get_prev_frame_always.
8380 2014-04-18 Tristan Gingold <gingold@adacore.com>
8382 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8383 code by using bfd_mach_o_get_base_address.
8385 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8387 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8388 (spu_ax_pseudo_register_collect): New function.
8389 (spu_ax_pseudo_register_push_stack): Likewise.
8390 (spu_dwarf_reg_to_regnum): Likewise.
8391 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8393 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8395 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8396 Replace FRAME argument with FRAME_ID.
8397 * gdbarch.c, gdbarch.h: Regenerate.
8398 * findvar.c (default_value_from_register): Add GDBARCH argument;
8399 replace FRAME by FRAME_ID. No longer call get_frame_id.
8400 (value_from_register): Update call to gdbarch_value_from_register.
8401 * value.h (default_value_from_register): Update prototype.
8402 * s390-linux-tdep.c (s390_value_from_register): Update interface
8403 and call to default_value_from_register.
8404 * spu-tdep.c (spu_value_from_register): Likewise.
8406 * findvar.c (address_from_register): Remove TYPE argument.
8407 Do not call value_from_register; use gdbarch_value_from_register
8408 with null_frame_id instead.
8409 * value.h (address_from_register): Update prototype.
8410 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8411 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8412 address_from_register interface change.
8414 2014-04-17 Yao Qi <yao@codesourcery.com>
8416 * gdbtypes.h: Update comments to link to types and macros'
8419 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8421 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8423 2014-04-16 Keith Seitz <keiths@redhat.com>
8426 * dwarf2read.c (skip_one_die): Check that all relative-offset
8427 sibling DIEs fall within range of the current reader's buffer.
8428 (read_partial_die): Likewise.
8430 2014-04-16 Keith Seitz <keiths@redhat.com>
8433 * cp-namespace.c (lookup_symbol_file): If the type name of
8434 `this' is NULL, return immediately.
8436 2014-04-14 Keith Seitz <keiths@redhat.com>
8439 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8440 from symbol_matches_domain in symtab.c. All local callers
8441 of symbol_matches_domain updated.
8442 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8443 search STRUCT_DOMAIN.
8444 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8445 independently. standard_lookup will do that automatically.
8446 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8447 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8448 (cp_lookup_symbol_in_namespace): Likewise.
8449 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8450 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8451 may return a STRUCT_DOMAIN match.
8452 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8453 * cp-support.c: Include language.h.
8454 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8456 * psymtab.c (match_partial_symbol): Compare the requested
8457 domain with the symbol's domain directly.
8458 (lookup_partial_symbol): Likewise.
8459 * symtab.c (lookup_symbol_in_language): Explain when/why
8460 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8461 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8462 appropriate languages.
8463 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8464 and moved to ada-lang.c
8465 (lookup_block_symbol): Explain that this function only returns
8466 symbol matching the requested DOMAIN.
8467 Compare the requested domain with the symbol's domain directly.
8468 (iterate_over_symbols): Compare the requested domain with the
8469 symbol's domain directly.
8470 * symtab.h (symbol_matches_domain): Remove.
8472 2014-04-14 Tom Tromey <tromey@redhat.com>
8475 * c-exp.y (type_aggregate_p): New function.
8476 (qualified_name, classify_inner_name): Use it.
8477 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8478 and TYPE_TARGET_TYPE of an enum type.
8479 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8481 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8482 handle TYPE_DECLARED_CLASS.
8483 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8485 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8486 * valops.c (enum_constant_from_type): New function.
8487 (value_aggregate_elt): Use it.
8488 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8491 2014-04-14 Tom Tromey <tromey@redhat.com>
8493 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8494 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8496 * value.h (value_aggregate_elt): Update.
8498 2014-04-14 Tom Tromey <tromey@redhat.com>
8500 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8502 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8504 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8505 (evaluate_subexp_standard): Pass noside argument.
8506 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8507 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8508 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8509 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8510 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8512 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8514 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8515 points to a constant blob.
8517 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8519 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8520 property and store it as the high bound and flag the range accordingly.
8521 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8522 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8523 * gdbtypes.h (enum range_flags): New enum.
8524 (struct range_bounds): Add flags member.
8526 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8528 * c-typeprint.c (c_type_print_varspec_suffix): Added
8529 check for not yet resolved high bound. If unresolved, print
8530 "variable length" string to the console instead of random
8533 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8535 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8537 (ada_template_to_fixed_record_type_1): Likewise.
8538 (ada_to_fixed_type_1): Likewise.
8539 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8540 (cp_print_value): Likewise.
8541 * d-valprint.c (dynamic_array_type): Likewise.
8542 * findvar.c (address_of_variable): Likewise.
8543 * jv-valprint.c (java_value_print): Likewise.
8544 * valops.c (value_ind): Likewise.
8545 * value.c (coerce_ref): Likewise.
8547 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8549 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8550 value and retrieve the dynamic type size.
8552 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
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 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8558 Joel Brobecker <brobecker@adacore.com>
8560 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8561 (dwarf2_evaluate_property): New function.
8562 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8563 * dwarf2read.c (attr_to_dynamic_prop): New function.
8564 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8566 * gdbtypes.c: Include dwarf2loc.h.
8567 (is_dynamic_type): New function.
8568 (resolve_dynamic_type): New function.
8569 (resolve_dynamic_bounds): New function.
8570 (get_type_length): New function.
8571 (check_typedef): Use get_type_length to compute type length.
8572 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8573 (TYPE_LOW_BOUND_KIND): New macro.
8574 (is_dynamic_type): New function prototype.
8575 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8576 to resolve dynamic properties of the type. Update comment.
8577 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8579 2014-04-14 Richard Henderson <rth@redhat.com>
8581 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8583 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8584 Doug Evans <xdje42@gmail.com>
8586 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8587 dereference TYPE_CODE_REF values.
8589 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8591 Revert the following changes due to regressions:
8593 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8594 (dwarf2_evaluate_property): New function.
8595 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8596 * dwarf2read.c (attr_to_dynamic_prop): New function.
8597 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8599 * gdbtypes.c: Include dwarf2loc.h.
8600 (is_dynamic_type): New function.
8601 (resolve_dynamic_type): New function.
8602 (resolve_dynamic_bounds): New function.
8603 (get_type_length): New function.
8604 (check_typedef): Use get_type_length to compute type length.
8605 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8606 (TYPE_LOW_BOUND_KIND): New macro.
8607 (is_dynamic_type): New function prototype.
8608 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8609 to resolve dynamic properties of the type. Update comment.
8610 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8612 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8613 passed to sizeof is dynamic evaluate the argument to compute the length.
8615 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8616 value and retrieve the dynamic type size.
8618 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8619 (ada_template_to_fixed_record_type_1): Likewise.
8620 (ada_to_fixed_type_1): Likewise.
8621 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8622 (cp_print_value): Likewise.
8623 * d-valprint.c (dynamic_array_type): Likewise.
8624 * eval.c (evaluate_subexp_with_coercion): Likewise.
8625 * findvar.c (address_of_variable): Likewise.
8626 * jv-valprint.c (java_value_print): Likewise.
8627 * valops.c (value_ind): Likewise.
8628 * value.c (coerce_ref): Likewise.
8630 * c-typeprint.c (c_type_print_varspec_suffix): Added
8631 check for not yet resolved high bound. If unresolved, print
8632 "variable length" string to the console instead of random
8635 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8636 property and store it as the high bound and flag the range accordingly.
8637 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8638 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8639 * gdbtypes.h (enum range_flags): New enum.
8640 (struct range_bounds): Add flags member.
8642 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8643 points to a constant blob.
8645 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8646 (evaluate_subexp_standard): Pass noside argument.
8647 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8648 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8649 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8650 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8651 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8653 2014-04-11 Keith Seitz <keiths@redhat.com>
8656 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8657 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8660 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8662 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8663 (evaluate_subexp_standard): Pass noside argument.
8664 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8665 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8666 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8667 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8668 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8670 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8672 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8673 points to a constant blob.
8675 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8677 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8678 property and store it as the high bound and flag the range accordingly.
8679 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8680 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8681 * gdbtypes.h (enum range_flags): New enum.
8682 (struct range_bounds): Add flags member.
8684 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8686 * c-typeprint.c (c_type_print_varspec_suffix): Added
8687 check for not yet resolved high bound. If unresolved, print
8688 "variable length" string to the console instead of random
8691 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8693 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8694 (ada_template_to_fixed_record_type_1): Likewise.
8695 (ada_to_fixed_type_1): Likewise.
8696 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8697 (cp_print_value): Likewise.
8698 * d-valprint.c (dynamic_array_type): Likewise.
8699 * eval.c (evaluate_subexp_with_coercion): Likewise.
8700 * findvar.c (address_of_variable): Likewise.
8701 * jv-valprint.c (java_value_print): Likewise.
8702 * valops.c (value_ind): Likewise.
8703 * value.c (coerce_ref): Likewise.
8705 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8707 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8708 value and retrieve the dynamic type size.
8710 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8712 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8713 passed to sizeof is dynamic evaluate the argument to compute the length.
8715 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8717 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8718 (dwarf2_evaluate_property): New function.
8719 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8720 * dwarf2read.c (attr_to_dynamic_prop): New function.
8721 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8723 * gdbtypes.c: Include dwarf2loc.h.
8724 (is_dynamic_type): New function.
8725 (resolve_dynamic_type): New function.
8726 (resolve_dynamic_bounds): New function.
8727 (get_type_length): New function.
8728 (check_typedef): Use get_type_length to compute type length.
8729 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8730 (TYPE_LOW_BOUND_KIND): New macro.
8731 (is_dynamic_type): New function prototype.
8732 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8733 to resolve dynamic properties of the type. Update comment.
8734 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8736 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8738 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8739 declaring high/low bounds and change uses accordingly. Call
8740 create_range_type instead of create_static_range_type.
8741 * gdbtypes.c (create_range_type): New function.
8742 (create_range_type): Convert bounds into struct bound_prop and pass
8743 them to create_range_type.
8744 * gdbtypes.h (struct bound_prop): New struct.
8745 (create_range_type): New function prototype.
8746 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8747 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8748 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8750 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8752 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8754 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8755 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8756 * ada-lang.c: All uses of create_range_type updated.
8757 * coffread.c: All uses of create_range_type updated.
8758 * dwarf2read.c: All uses of create_range_type updated.
8759 * f-exp.y: All uses of create_range_type updated.
8760 * m2-valprint.c: All uses of create_range_type updated.
8761 * mdebugread.c: All uses of create_range_type updated.
8762 * stabsread.c: All uses of create_range_type updated.
8763 * valops.c: All uses of create_range_type updated.
8764 * valprint.c: All uses of create_range_type updated.
8766 2014-04-10 Pedro Alves <palves@redhat.com>
8768 * breakpoint.c (single_step_breakpoints)
8769 (single_step_gdbarch): Move up in the file.
8770 (one_breakpoint_xfer_memory): New function, factored out from ...
8771 (breakpoint_xfer_memory): ... here. Also process single-step
8774 2014-04-09 Tristan Gingold <gingold@adacore.com>
8776 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8778 (darwin_decode_exception_message): Free port only after use.
8780 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8782 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8783 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8784 when setting the size of call_length.
8786 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8788 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8789 dereference TYPE_CODE_REF values.
8791 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8793 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8794 end of warning message.
8796 2014-04-03 Doug Evans <dje@google.com>
8798 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8799 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8801 2014-04-02 Alan Modra <amodra@gmail.com>
8803 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8804 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8805 (struct symbol_file_add_from_memory_args): Add size field.
8806 (find_vdso_size): New function.
8807 (add_vsyscall_page): Attempt to find vdso size.
8809 2014-04-01 Doug Evans <dje@google.com>
8811 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8813 2014-04-01 Tristan Gingold <gingold@adacore.com>
8815 * darwin-nat.c (darwin_encode_reply): Add prototype.
8816 (darwin_decode_exception_message): Reply to unknown inferiors.
8817 (darwin_decode_message): Handle message by id. Ignore message
8818 to unknown inferior.
8819 (darwin_wait): Discard unknown messages, add debug trace.
8821 2014-03-31 Doug Evans <dje@google.com>
8823 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8826 2014-03-31 Doug Evans <dje@google.com>
8828 New option "set print symbol-loading".
8830 * solib.c (solib_read_symbols): Only print symbol loading messages
8832 (solib_add): If symbol loading is in "brief" mode, notify user
8833 symbols are being loaded.
8834 (reload_shared_libraries_1): Ditto.
8835 * symfile.c (print_symbol_loading_off): New static global.
8836 (print_symbol_loading_brief): New static global.
8837 (print_symbol_loading_full): New static global.
8838 (print_symbol_loading_enums): New static global.
8839 (print_symbol_loading): New static global.
8840 (print_symbol_loading_p): New function.
8841 (symbol_file_add_with_addrs): Only print symbol loading messages
8843 (_initialize_symfile): Register "print symbol-loading" set/show
8845 * symfile.h (print_symbol_loading_p): Declare.
8847 2014-03-30 Doug Evans <xdje42@gmail.com>
8849 * infrun.c (set_last_target_status): New function.
8850 (handle_inferior_event): Call it.
8852 2014-03-30 Doug Evans <xdje42@gmail.com>
8854 * inferior.h (enum stop_kind): Improve comment.
8856 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8858 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8859 a reference, strip the reference layer before calling
8860 the lang_ops value_has_mutated callback.
8862 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8864 Remove some globals from our parser.
8865 * language.c (unk_lang_parser): Add "struct parser_state"
8867 * language.h (struct language_defn) <la_parser>: Likewise.
8868 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8869 (initialize_expout): Add "struct parser_state" argument.
8870 Rewrite function to use the parser state.
8871 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8872 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8873 write_exp_elt_longcst, write_exp_elt_dblcst,
8874 write_exp_elt_decfloatcst, write_exp_elt_type,
8875 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8876 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8877 write_dollar_variable): Likewise.
8878 (parse_exp_in_context_1): Use parser state.
8879 (insert_type_address_space): Add "struct parser_state" argument.
8881 (increase_expout_size): New function.
8882 * parser-defs.h: Forward declare "struct language_defn" and
8883 "struct parser_state".
8884 (expout, expout_size, expout_ptr): Remove extern declarations.
8885 (parse_gdbarch, parse_language): Rewrite macro declarations to
8886 accept the parser state.
8887 (struct parser_state): New struct.
8888 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8889 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8890 write_exp_elt_decfloatcst, write_exp_elt_type,
8891 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8892 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8893 write_exp_msymbol, write_dollar_variable,
8894 mark_struct_expression, insert_type_address_space): Add "struct
8895 parser_state" argument.
8896 (increase_expout_size): New function.
8897 * utils.c (do_clear_parser_state): New function.
8898 (make_cleanup_clear_parser_state): Likewise.
8899 * utils.h (make_cleanup_clear_parser_state): New function
8901 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8902 Update calls to write_exp* in order to pass the parser state.
8903 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8904 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8905 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8906 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8907 * stap-probe.c (stap_parse_register_operand): Likewise.
8908 (stap_parse_single_operand): Likewise.
8909 (stap_parse_argument_1): Likewise.
8910 (stap_parse_argument): Use parser state.
8911 * stap-probe.h: Include "parser-defs.h".
8912 (struct stap_parse_info) <pstate>: New field.
8913 * c-exp.y (parse_type): Rewrite to use parser state.
8914 (yyparse): Redefine to c_parse_internal.
8915 (pstate): New global variable.
8916 (parse_number): Add "struct parser_state" argument.
8917 (write_destructor_name): Likewise.
8918 (type_exp): Update calls to write_exp* and similars in order to
8920 (exp1, exp, variable, qualified_name, space_identifier,
8921 typename, typebase): Likewise.
8922 (write_destructor_name, parse_number, lex_one_token,
8923 classify_name, classify_inner_name, c_parse): Add "struct
8924 parser_state" argument. Update function to use parser state.
8925 * c-lang.h: Forward declare "struct parser_state".
8926 (c_parse): Add "struct parser_state" argument.
8927 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8928 (yyparse): Redefine macro to ada_parse_internal.
8929 (pstate): New variable.
8930 (write_int, write_object_renaming, write_var_or_type,
8931 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8932 type_int, type_long, type_long_long, type_float, type_double,
8933 type_long_double, type_char, type_boolean, type_system_address):
8934 Add "struct parser_state" argument.
8935 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8936 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8937 var_or_type, aggregate, aggregate_component_list,
8938 positional_list, others, component_group,
8939 component_associations): Update calls to write_exp* and similar
8940 functions in order to use parser state.
8941 (ada_parse, write_var_from_sym, write_int,
8942 write_exp_op_with_string, write_object_renaming,
8943 find_primitive_type, write_selectors, write_ambiguous_var,
8944 write_var_or_type, write_name_assoc, type_int, type_long,
8945 type_long_long, type_float, type_double, type_long_double,
8946 type_char, type_boolean, type_system_address): Add "struct
8947 parser_state" argument. Adjust function to use parser state.
8948 * ada-lang.c (parse): Likewise.
8949 * ada-lang.h: Forward declare "struct parser_state".
8950 (ada_parse): Add "struct parser_state" argument.
8951 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8952 calls to both functions.
8953 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8955 (yyparse): Redefine macro to f_parse_internal.
8956 (pstate): New variable.
8957 (parse_number): Add "struct parser_state" argument.
8958 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8959 and similars in order to use parser state.
8960 (parse_number): Adjust code to use parser state.
8962 (f_parse): New function.
8963 * f-lang.h: Forward declare "struct parser_state".
8964 (f_parse): Add "struct parser_state" argument.
8965 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8967 (yyparse): Redefine macro for java_parse_internal.
8968 (pstate): New variable.
8969 (push_expression_name, push_expression_name, insert_exp): Add
8970 "struct parser_state" argument.
8971 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8972 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8973 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8974 PostIncrementExpression, PostDecrementExpression,
8975 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8976 UnaryExpressionNotPlusMinus, CastExpression,
8977 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8978 RelationalExpression, EqualityExpression, AndExpression,
8979 ExclusiveOrExpression, InclusiveOrExpression,
8980 ConditionalAndExpression, ConditionalOrExpression,
8981 ConditionalExpression, Assignment, LeftHandSide): Update
8982 calls to write_exp* and similars in order to use parser state.
8983 (parse_number): Ajust code to use parser state.
8985 (java_parse): New function.
8986 (push_variable): Add "struct parser_state" argument. Adjust
8987 code to user parser state.
8988 (push_fieldnames, push_qualified_expression_name,
8989 push_expression_name, insert_exp): Likewise.
8990 * jv-lang.h: Forward declare "struct parser_state".
8991 (java_parse): Add "struct parser_state" argument.
8992 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8994 (yyparse): Redefine macro to m2_parse_internal.
8995 (pstate): New variable.
8996 (type_exp, exp, fblock, variable, type): Update calls to
8997 write_exp* and similars to use parser state.
8999 (m2_parse): New function.
9000 * m2-lang.h: Forward declare "struct parser_state".
9001 (m2_parse): Add "struct parser_state" argument.
9002 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9003 * objc-lang.h: Forward declare "struct parser_state".
9004 (end_msglist): Add "struct parser_state" argument.
9005 * p-exp.y (parse_type): Rewrite macro to use parser state.
9006 (yyparse): Redefine macro to pascal_parse_internal.
9007 (pstate): New variable.
9008 (parse_number): Add "struct parser_state" argument.
9009 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9010 write_exp* and similars in order to use parser state.
9011 (parse_number, yylex): Adjust code to use parser state.
9012 (pascal_parse): New function.
9013 * p-lang.h: Forward declare "struct parser_state".
9014 (pascal_parse): Add "struct parser_state" argument.
9015 * go-exp.y (parse_type): Rewrite macro to use parser state.
9016 (yyparse): Redefine macro to go_parse_internal.
9017 (pstate): New variable.
9018 (parse_number): Add "struct parser_state" argument.
9019 (type_exp, exp1, exp, variable, type): Update calls to
9020 write_exp* and similars in order to use parser state.
9021 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9022 to use parser state.
9023 (go_parse): Likewise.
9024 * go-lang.h: Forward declare "struct parser_state".
9025 (go_parse): Add "struct parser_state" argument.
9027 2014-03-27 Doug Evans <dje@google.com>
9029 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9031 2014-03-27 Doug Evans <dje@google.com>
9033 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9034 Remove argument abbrev_section. All callers updated.
9036 2014-03-27 Doug Evans <dje@google.com>
9038 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9039 addr_base, ranges_base.
9041 2014-03-26 Keith Seitz <keiths@redhat.com>
9043 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9044 types, not VAR_DOMAIN.
9046 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9048 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9050 * features/nios2-linux.c: Regenerated.
9051 * features/nios2.c: Regenerated.
9053 2014-03-25 Pedro Alves <palves@redhat.com>
9055 * cli/cli-script.c (script_from_file): Force the interpreter to
9058 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9060 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9061 small stack allocation.
9063 2014-03-24 Tristan Gingold <gingold@adacore.com>
9065 * darwin-nat.c (exc_server): Remove unused prototype.
9066 (darwin_dump_message): Correctly display data on x86_64.
9067 (darwin_encode_reply): Fix style.
9068 Add comments and fix indentation.
9070 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9072 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9074 2014-03-22 Doug Evans <xdje42@gmail.com>
9076 * infcmd.c: Whitespace fixes.
9077 (interrupt_command): Merge two function comments into one.
9079 2014-03-22 Doug Evans <xdje42@gmail.com>
9081 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9084 2014-03-22 Yao Qi <yao@codesourcery.com>
9086 * remote.c (target_read_live_memory): Remove.
9087 (memory_xfer_live_readonly_partial): Rename it to
9088 remote_xfer_live_readonly_partial. Remove argument 'object'.
9089 All callers updated. Call remote_read_bytes_1
9090 instead of target_read_live_memory.
9091 * tracepoint.c (set_traceframe_number): Remove.
9092 (make_cleanup_restore_traceframe_number): Likewise .
9093 * tracepoint.h (set_traceframe_number): Remove declaration.
9094 (make_cleanup_restore_traceframe_number): Likewise.
9096 2014-03-22 Yao Qi <yao@codesourcery.com>
9098 * remote.c (remote_read_bytes): Move code on reading from the
9100 (remote_read_bytes_1): ... here. New function.
9102 2014-03-22 Yao Qi <yao@codesourcery.com>
9104 * ctf.c (ctf_xfer_partial): Check the return value of
9105 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9106 return TARGET_XFER_UNAVAILABLE.
9107 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9108 * target.c (target_read_live_memory): Move it to remote.c.
9109 (memory_xfer_live_readonly_partial): Likewise.
9110 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9111 * remote.c (target_read_live_memory): Moved from target.c.
9112 (memory_xfer_live_readonly_partial): Likewise.
9113 (remote_read_bytes): Factored out from
9114 memory_xfer_partial_1.
9116 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9118 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9121 2014-03-21 Pedro Alves <palves@redhat.com>
9123 * infrun.c (normal_stop): Extend comment.
9125 2014-03-21 Hui Zhu <hui@codesourcery.com>
9126 Pedro Alves <palves@redhat.com>
9128 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9130 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9131 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9132 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9134 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9136 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9137 `z' formatted output modifier.
9139 2014-03-20 Tom Tromey <tromey@redhat.com>
9140 Sergio Durigan Junior <sergiodj@redhat.com>
9142 * probe.c (parse_probes): Turn assert into an ordinary error.
9143 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9144 exceptions when parsing probes. Rearrange the code for clarity.
9146 2014-03-20 Tom Tromey <tromey@redhat.com>
9149 * top.c (execute_command): Only dispatch events if the command
9152 2014-03-20 Tom Tromey <tromey@redhat.com>
9155 * infcall.c: Include event-top.h.
9156 (run_inferior_call): Call async_disable_stdin if needed.
9158 2014-03-20 Pedro Alves <palves@redhat.com>
9160 * infrun.c (prepare_to_proceed): Delete.
9161 (thread_still_needs_step_over): New function.
9162 (find_thread_needs_step_over): New function.
9163 (proceed): If the current thread needs a step-over, set its
9164 steping_over_breakpoint flag. Adjust to use
9165 find_thread_needs_step_over instead of prepare_to_proceed.
9166 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9167 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9169 (switch_back_to_stepped_thread): Step over breakpoints of all
9170 threads not the stepping thread, before switching back to the
9173 2014-03-20 Pedro Alves <palves@redhat.com>
9175 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9177 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9178 * infrun.c (saved_singlestep_ptid)
9179 (stepping_past_singlestep_breakpoint): Delete.
9180 (resume): Remove stepping_past_singlestep_breakpoint handling.
9181 (proceed): Store the prev_pc of the stepping thread too.
9182 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9184 (enum infwait_states): Delete infwait_thread_hop_state.
9185 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9187 (handle_inferior_event): Adjust.
9188 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9189 handling and the thread-hop code. Before removing single-step
9190 breakpoints, check whether the thread hit a single-step breakpoint
9191 of another thread. If it did, the trap is not a random signal.
9192 (switch_back_to_stepped_thread): If the event thread hit a
9193 single-step breakpoint, unblock it before switching to the
9194 stepping thread. Handle the case of the stepped thread having
9196 (keep_going): Handle the case of the current thread moving past a
9197 single-step breakpoint.
9199 2014-03-20 Pedro Alves <palves@redhat.com>
9202 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9203 are being stepped over.
9204 (breakpoint_address_match): Make extern.
9205 * breakpoint.h (breakpoint_address_match): New declaration.
9206 * inferior.h (stepping_past_instruction_at): New declaration.
9207 * infrun.c (struct step_over_info): New type.
9208 (step_over_info): New global.
9209 (set_step_over_info, clear_step_over_info)
9210 (stepping_past_instruction_at): New functions.
9211 (handle_inferior_event): Clear the step-over info when
9212 trap_expected is cleared.
9213 (resume): Remove now stale comment.
9214 (clear_proceed_status): Clear step-over info.
9215 (proceed): Adjust step-over handling to set or clear the step-over
9216 info instead of removing all breakpoints.
9217 (handle_signal_stop): When setting up a thread-hop, don't remove
9219 (stop_stepping): Clear step-over info.
9220 (keep_going): Adjust step-over handling to set or clear step-over
9221 info and then always inserting breakpoints, instead of removing
9222 all breakpoints when stepping over one.
9224 2014-03-20 Pedro Alves <palves@redhat.com>
9226 * infrun.c (previous_inferior_ptid): Adjust comment.
9227 (deferred_step_ptid): Delete.
9228 (infrun_thread_ptid_changed, prepare_to_proceed)
9229 (init_wait_for_inferior): Adjust.
9230 (handle_signal_stop): Delete deferred_step_ptid handling.
9232 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9235 * defs.h (sync_quit_force_run): New declaration.
9236 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9237 * event-top.c (async_sigterm_handler): New declaration.
9238 (async_sigterm_token): New variable.
9239 (async_init_signals): Create also async_sigterm_token.
9240 (async_sigterm_handler): New function.
9241 (sync_quit_force_run): New variable.
9242 (handle_sigterm): Replace quit_force call by other calls.
9243 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9245 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9247 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9248 offset into SPE pseudo registers.
9250 2014-03-18 Pedro Alves <palves@redhat.com>
9253 * inferior.h (print_stop_event): Declare.
9254 * infrun.c (print_stop_event): New, factored out from ...
9255 (normal_stop): ... this.
9256 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9257 of bpstat_print/print_stack_frame.
9259 2014-03-17 Tom Tromey <tromey@redhat.com>
9261 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9263 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9265 * ada-lang.c (decode_constrained_packed_array): Perform a
9266 minimal coercion for reference with coerce_ref instead of
9269 2014-03-17 Tristan Gingold <gingold@adacore.com>
9271 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9272 (darwin_solib_create_inferior_hook): Emit a warning if version
9275 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9277 * python/py-value.c (get_field_flag): Cast flag_name argument to
9278 PyObject_GetAttrString to support Python 2.4.
9280 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9282 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9283 (Global Maintainers): Remove Jan Kratochvil.
9285 2014-03-14 Pedro Alves <palves@redhat.com>
9287 * inferior.h (terminal_ours_for_output): Rename to ...
9288 (child_terminal_ours_for_output): ... this.
9289 (terminal_save_ours): Rename to ...
9290 (child_terminal_save_ours): ... this.
9291 (terminal_ours): Rename to ...
9292 (child_terminal_ours): ... this.
9293 (terminal_inferior): Rename to ...
9294 (child_terminal_inferior): ... this.
9295 (terminal_init_inferior): Rename to ...
9296 (child_terminal_init_inferior): ... this.
9297 (terminal_init_inferior_with_pgrp): Rename to ...
9298 (child_terminal_init_inferior_with_pgrp): ... this.
9299 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9300 (child_terminal_init_with_pgrp): ... this.
9301 (terminal_save_ours): Rename to ...
9302 (child_terminal_save_ours): ... this.
9303 (terminal_init_inferior): Rename to ...
9304 (child_terminal_init): ... this. Adjust.
9305 (terminal_inferior): Rename to ...
9306 (child_terminal_inferior): ... this.
9307 (terminal_ours_for_output): Rename to ...
9308 (child_terminal_ours_for_output): ... this. Adjust.
9309 (terminal_ours): Rename to ...
9310 (child_terminal_ours): ... this.
9311 (terminal_ours_1): Rename to ...
9312 (child_terminal_ours_1): ... this. Adjust.
9313 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9314 * windows-nat.c (do_initial_windows_stuff): Adjust.
9315 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9316 (gnu_terminal_init): ... this. Adjust.
9317 (gnu_target): Adjust.
9318 * inf-child.c (inf_child_target): Adjust.
9320 2014-03-13 Doug Evans <xdje42@gmail.com>
9323 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9326 2014-03-13 Doug Evans <xdje42@gmail.com>
9328 * value.c (record_latest_value): Call release_value_or_incref
9329 instead of release_value.
9331 2014-03-13 Pedro Alves <palves@redhat.com>
9333 * procfs.c (procfs_target): Don't override to_shortname,
9334 to_longname or to_doc.
9336 2014-03-13 Pedro Alves <palves@redhat.com>
9338 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9339 Unix in user visible strings.
9341 2014-03-12 Stan Shebs <stan@codesourcery.com>
9343 * gdbtypes.h: Annotate comments for Doxygen, add a page
9344 block comment with some general info.
9346 2014-03-12 Pedro Alves <palves@redhat.com>
9348 * infcmd.c (prepare_execution_command): New function, factored out
9349 from several execution commands.
9350 (run_command_1, continue_command, step_1, jump_command)
9351 (signal_command, until_command, advance_command, finish_command)
9352 (attach_command): Use prepare_execution_command.
9354 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9356 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9359 (struct arm_linux_thread_points): Removed.
9360 (struct arm_linux_process_info): New.
9361 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9362 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9363 (arm_linux_find_breakpoints_by_tid): Removed.
9364 (struct arch_lwp_info): New.
9365 (arm_linux_find_process_pid): New functions.
9366 (arm_linux_add_process): New functions.
9367 (arm_linux_process_info_get): New functions.
9368 (arm_linux_forget_process): New function.
9369 (arm_linux_get_debug_reg_state): New function.
9370 (struct update_registers_data): New.
9371 (update_registers_callback): New function.
9372 (arm_linux_insert_hw_breakpoint1): Updated.
9373 (arm_linux_remove_hw_breakpoint1): Updated.
9374 (arm_linux_insert_hw_breakpoint): Updated.
9375 (arm_linux_remove_hw_breakpoint): Updated.
9376 (arm_linux_insert_watchpoint): Updated.
9377 (arm_linux_remove_watchpoint): Updated.
9378 (arm_linux_new_thread): Updated.
9379 (arm_linux_prepare_to_resume): New function.
9380 (arm_linux_new_fork): New function.
9381 (_initialize_arm_linux_nat): Updated.
9383 2014-03-12 Pedro Alves <palves@redhat.com>
9385 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9387 2014-03-12 Tom Tromey <tromey@redhat.com>
9389 * inf-child.c (return_zero): New function.
9390 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9391 * aix-thread.c (aix_thread_inferior_created): New function.
9392 (aix_thread_attach): Remove.
9393 (init_aix_thread_ops): Don't set to_attach.
9394 (_initialize_aix_thread): Register inferior_created observer.
9395 * corelow.c (init_core_ops): Don't set to_attach or
9397 * exec.c (init_exec_ops): Don't set to_attach or
9399 * infcmd.c (run_command_1): Use find_run_target. Make direct
9401 (attach_command): Use find_attach_target. Make direct target
9403 * record-btrace.c (init_record_btrace_ops): Don't set
9405 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9407 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9408 set to_create_inferior.
9409 * target.c (complete_target_initialization): Add assertion.
9410 (target_create_inferior): Remove.
9411 (find_default_attach, find_default_create_inferior): Remove.
9412 (find_attach_target, find_run_target): New functions.
9413 (find_default_is_async_p, find_default_can_async_p)
9414 (target_supports_non_stop, target_attach): Remove.
9415 (init_dummy_target): Don't set to_create_inferior or
9416 to_supports_non_stop.
9417 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9418 TARGET_DEFAULT_FUNC.
9419 <to_create_inferior>: Add comment.
9420 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9421 TARGET_DEFAULT_RETURN.
9422 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9423 (find_attach_target, find_run_target): Declare.
9424 (target_create_inferior): Remove.
9425 (target_has_execution_1): Update comment.
9426 (target_supports_non_stop): Remove.
9427 * target-delegates.c: Rebuild.
9429 2014-03-12 Pedro Alves <palves@redhat.com>
9431 * inf-child.h: Update comment to not mention Unix.
9433 2014-03-12 Pedro Alves <palves@redhat.com>
9435 * inf-child.c: Update top comment to not mention Unix. Add
9436 generic comment describing how this target is meant to be used.
9437 (inf_child_post_attach, inf_child_post_startup_inferior)
9438 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9441 2014-03-12 Pedro Alves <palves@redhat.com>
9443 * nto-procfs.c: Include inf-child.h.
9444 (procfs_ops): Delete global.
9445 (procfs_can_run): Delete method.
9446 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9447 target pointer instead of referencing procfs_ops.
9448 (procfs_prepare_to_store): Delete.
9449 (init_procfs_ops): Delete function.
9450 (procfs_target): New function, based on init_procfs_ops, but
9451 inherit inf_child_target.
9452 (_initialize_procfs): Use procfs_target.
9454 2014-03-12 Pedro Alves <palves@redhat.com>
9456 * windows-nat.c: Include inf-child.h.
9457 (windows_ops): Delete global.
9458 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9460 (init_windows_ops): Delete function.
9461 (windows_target): New function, based on init_windows_ops, but
9462 inherit inf_child_target.
9463 (_initialize_windows_nat): Use windows_target. Install x86
9464 specific target methods here.
9466 2014-03-10 Doug Evans <xdje42@gmail.com>
9468 * guile/guile.c (call_initialize_gdb_module): New function.
9469 (initialize_guile): Replace call to scm_init_guile with call to
9472 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9474 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9475 in call to TYPE_CODE macro.
9477 2014-03-10 Jerome Guitton <guitton@adacore.com>
9479 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9480 Resolve tagged types to full view.
9482 2014-03-10 Hui Zhu <hui@codesourcery.com>
9484 * target.h (target_insert_breakpoint): Remove "hardware" from its
9487 2014-03-07 Doug Evans <dje@google.com>
9489 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9491 2014-03-07 Doug Evans <dje@google.com>
9493 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9494 Remove unused local comp_dir_attr. Assert exactly one of
9495 stub_comp_unit_die, stub_comp_dir is non-NULL.
9497 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9499 * target.h (complete_target_initialization, add_target):
9502 2014-03-07 Pedro Alves <palves@redhat.com>
9504 * go32-nat.c: Include inf-child.h.
9505 (go32_ops): Delete global.
9506 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9508 (go32_create_inferior): Push the passed in target pointer instead
9509 of referencing go32_ops.
9510 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9511 (go32_target): New function, based on init_go32_ops, but inherit
9513 (_initialize_go32_nat): Use go32_target. Move parts of
9516 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9518 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9519 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9520 SYMBOL_VALUE_ADDRESS.
9521 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9523 2014-03-06 Yao Qi <yao@codesourcery.com>
9525 * breakpoint.c (get_tracepoint_by_number): Remove argument
9526 optional_p. All callers updated. Adjust comments. Update
9528 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9530 2014-03-06 Yao Qi <yao@codesourcery.com>
9532 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9533 early if get_number returns zero. Use 'p' instead of 'args'.
9535 2014-03-06 Yao Qi <yao@codesourcery.com>
9537 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9540 2014-03-06 Yao Qi <yao@codesourcery.com>
9542 PR breakpoints/16508
9543 * tracepoint.c (check_trace_running): New function.
9544 (trace_find_command): Move code to check_trace_running and
9545 call check_trace_running.
9546 (trace_find_pc_command): Likewise.
9547 (trace_find_tracepoint_command): Likewise.
9548 (trace_find_line_command): Likewise.
9549 (trace_find_range_command): Likewise.
9550 * tracepoint.h (check_trace_running): Likewise.
9551 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9553 2014-03-06 Yao Qi <yao@codesourcery.com>
9555 * target.h (struct target_ops) <to_traceframe_info>: Use
9556 TARGET_DEFAULT_NORETURN (tcomplain ()).
9557 * target-delegates.c: Regenerated.
9559 2014-03-05 Pedro Alves <palves@redhat.com>
9562 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9563 void. Update comment.
9564 (dcache_xfer_memory): Delete.
9565 (dcache_read_memory_partial): New, based on the read bits of
9567 (dcache_update): Add status parameter. Use ULONGEST for len, and
9568 adjust. Discard cache lines if the reason for the update was
9570 * dcache.h (dcache_xfer_memory): Delete declaration.
9571 (dcache_read_memory_partial): New declaration.
9572 (dcache_update): Update prototype.
9573 * target.c (raw_memory_xfer_partial): Update the dcache here.
9574 (memory_xfer_partial_1): Don't handle dcache writes here.
9576 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9578 * remote-sim.c (gdbsim_load): Add const to prog.
9580 2014-03-03 Tom Tromey <tromey@redhat.com>
9582 * elfread.c (probe_key): Change to bfd_data.
9583 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9584 now per-BFD, not per-objfile.
9585 * stap-probe.c (stap_probe_destroy): Update comment.
9586 (handle_stap_probe): Allocate on the per-BFD obstack.
9588 2014-03-03 Tom Tromey <tromey@redhat.com>
9590 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9591 * breakpoint.c (create_longjmp_master_breakpoint): Use
9593 (add_location_to_breakpoint, bkpt_probe_insert_location)
9594 (bkpt_probe_remove_location): Update.
9595 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9596 * elfread.c (elf_symfile_relocate_probe): Remove.
9597 (elf_probe_fns): Update.
9598 (insert_exception_resume_breakpoint): Change type of "probe"
9599 parameter to bound_probe.
9600 (check_exception_resume): Update.
9601 * objfiles.c (objfile_relocate1): Don't relocate probes.
9602 * probe.c (bound_probe_s): New typedef.
9603 (parse_probes): Use get_probe_address. Set sal's objfile.
9604 (find_probe_by_pc): Return a bound_probe.
9605 (collect_probes): Return a VEC(bound_probe_s).
9606 (compare_probes): Update.
9607 (gen_ui_out_table_header_info): Change type of "probes"
9609 (info_probes_for_ops): Update.
9610 (get_probe_address): New function.
9611 (probe_safe_evaluate_at_pc): Update.
9612 * probe.h (struct probe_ops) <get_probe_address>: New field.
9613 <set_semaphore, clear_semaphore>: Add objfile parameter.
9614 (struct probe) <objfile>: Remove field.
9616 <address>: Update comment.
9617 (struct bound_probe): New.
9618 (find_probe_by_pc): Return a bound_probe.
9619 (get_probe_address): Declare.
9620 * solib-svr4.c (struct probe_and_action) <address>: New field.
9621 (hash_probe_and_action, equal_probe_and_action): Update.
9622 (register_solib_event_probe): Add address parameter.
9623 (solib_event_probe_at): Update.
9624 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9626 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9627 (stap_get_probe_address): New function.
9628 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9629 (compile_probe_arg): Update.
9630 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9632 (handle_stap_probe): Don't relocate the probe.
9633 (stap_relocate): Remove.
9634 (stap_gen_info_probes_table_values): Update.
9635 (stap_probe_ops): Remove stap_relocate.
9636 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9637 (debug_sym_probe_fns): Update.
9638 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9639 * symtab.c (init_sal): Use memset.
9640 * symtab.h (struct symtab_and_line) <objfile>: New field.
9641 * tracepoint.c (start_tracing, stop_tracing): Update.
9643 2014-03-03 Tom Tromey <tromey@redhat.com>
9645 * probe.h (parse_probes, find_probe_by_pc)
9646 (find_probes_in_objfile): Fix comments.
9648 2014-03-02 Doug Evans <xdje42@gmail.com>
9650 * infrun.c (handle_signal_stop): Replace test for
9651 TARGET_WAITKIND_STOPPED with an assert.
9653 2014-03-02 Doug Evans <xdje42@gmail.com>
9655 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9657 2014-03-02 Doug Evans <xdje42@gmail.com>
9659 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9661 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9663 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9665 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9667 * i386obsd-nat.c: Include "obsd-nat.h".
9668 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9670 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9672 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9674 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9676 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9678 * mips64obsd-nat.c: Include "obsd-nath".
9679 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9681 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9683 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9685 * amd64obsd-nat.c: Include "obsd-nat,h.
9686 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9688 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9690 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9692 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9693 (find_overload_match): Update call to find_oload_champ.
9694 (find_oload_champ_namespace_loop): Likewise
9696 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9698 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9700 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9701 * config/sparc/obsd64.mh: New file.
9702 * sparc64obsd-nat.c: New file.
9704 * obsd-nat.h: New file.
9705 * obsd-nat.c: New file.
9706 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9707 (ALLDEPFILES): Add obsd-nat.c.
9709 2014-02-28 Tom Tromey <tromey@redhat.com>
9711 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9712 * cli-out.h (cli_ui_out_impl): Now const.
9713 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9714 * ui-out.c (struct ui_out) <impl>: Now const.
9715 (default_ui_out_impl): Now const.
9716 (ui_out_new): Make 'impl' parameter const.
9717 * ui-out.h (ui_out_new): Update.
9719 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9721 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9723 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9725 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9727 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9729 Additional PR 8882 fix.
9730 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9732 2014-02-27 Pedro Alves <palves@redhat.com>
9734 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9737 2014-02-27 Pedro Alves <palves@redhat.com>
9740 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9741 * nat/linux-waitpid.c: Include string.h.
9742 (status_to_str): Moved here and made extern.
9743 * nat/linux-waitpid.h (status_to_str): New declaration.
9745 2014-02-27 Hui Zhu <hui@codesourcery.com>
9748 * infrun.c (ptid_match): Move ...
9749 * common/ptid.c (ptid_match): ... here.
9750 * inferior.h (ptid_match): Move ...
9751 * common/ptid.h (ptid_match): ... here.
9753 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9755 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9756 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9759 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9761 * obsd-tdep.c (obsd_auxv_parse): New function.
9762 (obsd_init_abi): Set auxv_parse.
9764 * gdbarch.sh (auxv_parse): New.
9765 * gdbarch.h: Regenerated.
9766 * gdbarch.c: Regenerated.
9767 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9769 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9771 * guile/scm-value.c (gdbscm_history_append_x): New function.
9772 (value_functions): Add it.
9774 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9776 * dwarf2read.c (attr_value_as_address): New function.
9777 (dwarf2_find_base_address, read_call_site_scope): Use
9778 attr_value_as_address in place of DW_ADDR.
9779 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9780 the low and high addresses. Slight rework of the handling
9781 of the high pc being a constant form, and limit it to
9782 DWARF verson 4 or higher.
9783 (dwarf2_record_block_ranges): Likewise.
9784 (read_partial_die): Likewise.
9785 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9787 2014-02-26 Tom Tromey <tromey@redhat.com>
9789 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9791 2014-02-26 Tom Tromey <tromey@redhat.com>
9793 * elfread.c (elf_read_minimal_symbols): Return early if
9794 minimal symbols have already been read. Add "ei" parameter.
9795 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9796 * minsyms.c (prim_record_minimal_symbol_full): Update.
9797 * objfiles.h (struct objstats) <n_minsyms>: Move...
9798 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9799 * symmisc.c (print_objfile_statistics): Update.
9801 2014-02-26 Tom Tromey <tromey@redhat.com>
9803 * elfread.c (elf_read_minimal_symbols): New function, from
9805 (elf_symfile_read): Call it.
9807 2014-02-26 Tom Tromey <tromey@redhat.com>
9809 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9810 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9811 (lookup_minimal_symbol_solib_trampoline)
9812 (lookup_minimal_symbol_by_pc_section_1)
9813 (lookup_minimal_symbol_and_objfile): Update.
9814 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9815 Don't allocate a minimal symbol if minsyms have already been read.
9816 (build_minimal_symbol_hash_tables): Update.
9817 (install_minimal_symbols): Do nothing if minsyms already read.
9818 Use the per-BFD obstack.
9819 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9820 * objfiles.c (allocate_objfile): Call
9821 terminate_minimal_symbol_table later.
9822 (have_minimal_symbols): Update.
9823 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9824 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9825 Move from struct objfile.
9826 <minsyms_read>: New field.
9827 (struct objfile) <msymbols, minimal_symbol_count,
9828 msymbol_hash, msymbol_demangled_hash>: Move.
9829 (ALL_OBJFILE_MSYMBOLS): Update.
9830 * symfile.c (read_symbols): Set minsyms_read.
9831 (reread_symbols): Update.
9832 * symmisc.c (dump_objfile, dump_msymbols): Update.
9834 2014-02-26 Tom Tromey <tromey@redhat.com>
9836 * minsyms.c (msymbols_sort): Remove.
9837 * minsyms.h (msymbols_sort): Remove.
9838 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9839 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9840 * elfread.c (elf_symtab_read): Don't add section offsets.
9841 * xcoffread.c (record_minimal_symbol): Don't add section offset
9842 to minimal symbol address.
9843 * somread.c (text_offset, data_offset): Remove.
9844 (som_symtab_read): Don't add section offsets to minimal symbol
9846 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9847 Don't add section offsets to minimal symbols.
9848 * coffread.c (coff_symtab_read): Don't add section offsets
9849 to minimal symbol addresses.
9850 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9851 to minimal symbol addresses.
9852 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9853 section offset to minimal symbol addresses.
9854 * mdebugread.c (parse_partial_symbols): Don't add section
9855 offset to minimal symbol addresses.
9856 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9857 offset to minimal symbol addresses.
9859 2014-02-26 Tom Tromey <tromey@redhat.com>
9861 * ada-lang.c (ada_main_name): Update.
9862 (ada_add_standard_exceptions): Update.
9863 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9864 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9865 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9866 * auxv.c (ld_so_xfer_auxv): Update.
9867 * avr-tdep.c (avr_scan_prologue): Update.
9868 * ax-gdb.c (gen_var_ref): Update.
9869 * blockframe.c (get_pc_function_start)
9870 (find_pc_partial_function_gnu_ifunc): Update.
9871 * breakpoint.c (create_overlay_event_breakpoint)
9872 (create_longjmp_master_breakpoint)
9873 (create_std_terminate_master_breakpoint)
9874 (create_exception_master_breakpoint): Update.
9875 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9876 * c-valprint.c (c_val_print): Update.
9877 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9878 * common/agent.c (agent_look_up_symbols): Update.
9879 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9880 * dwarf2loc.c (call_site_to_target_addr): Update.
9881 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9882 * elfread.c (elf_gnu_ifunc_record_cache)
9883 (elf_gnu_ifunc_resolve_by_got): Update.
9884 * findvar.c (default_read_var_value): Update.
9885 * frame.c (inside_main_func): Update.
9886 * frv-tdep.c (frv_frame_this_id): Update.
9887 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9888 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9890 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9891 (hppa_hpux_find_dummy_bpaddr): Update.
9892 * hppa-tdep.c (hppa_symbol_address): Update.
9893 * infcmd.c (until_next_command): Update.
9894 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9896 * linespec.c (minsym_found, add_minsym): Update.
9897 * linux-nat.c (get_signo): Update.
9898 * linux-thread-db.c (inferior_has_bug): Update.
9899 * m32c-tdep.c (m32c_return_value)
9900 (m32c_m16c_address_to_pointer): Update.
9901 * m32r-tdep.c (m32r_frame_this_id): Update.
9902 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9903 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9904 * maint.c (maintenance_translate_address): Update.
9905 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9906 (frob_address): New function.
9907 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9908 frob_address. Rename parameter to "pc_in".
9909 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9911 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9913 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9914 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9915 * objc-lang.c (find_objc_msgsend): Update.
9916 * objfiles.c (objfile_relocate1): Update.
9917 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9918 * p-valprint.c (pascal_val_print): Update.
9919 * parse.c (write_exp_msymbol): Update.
9920 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9921 (ppc_elfv2_skip_entrypoint): Update.
9922 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9923 * printcmd.c (build_address_symbolic, msym_info)
9924 (address_info): Update.
9925 * proc-service.c (ps_pglobal_lookup): Update.
9926 * psymtab.c (find_pc_sect_psymtab_closer)
9927 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9928 Change msymbol parameter to bound_minimal_symbol.
9929 * ravenscar-thread.c (get_running_thread_id): Update.
9930 * remote.c (remote_check_symbols): Update.
9931 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9933 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9934 * solib-dsbt.c (lm_base): Update.
9935 * solib-frv.c (lm_base, main_got): Update.
9936 * solib-irix.c (locate_base): Update.
9937 * solib-som.c (som_solib_create_inferior_hook)
9938 (link_map_start): Update.
9939 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9940 * solib-svr4.c (elf_locate_base, enable_break): Update.
9941 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9942 (flush_ea_cache): Update.
9943 * stabsread.c (define_symbol, scan_file_globals): Update.
9944 * stack.c (find_frame_funname): Update.
9945 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9946 (debug_qf_find_pc_sect_symtab): Update.
9947 * symfile.c (simple_read_overlay_table)
9948 (simple_overlay_update): Update.
9949 * symfile.h (struct quick_symbol_functions)
9950 <find_pc_sect_symtab>: Change type of msymbol to
9951 bound_minimal_symbol.
9952 * symmisc.c (dump_msymbols): Update.
9953 * symtab.c (find_pc_sect_symtab_via_partial)
9954 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9955 (search_symbols, print_msymbol_info): Update.
9956 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9957 (MSYMBOL_VALUE_ADDRESS): Redefine.
9958 (BMSYMBOL_VALUE_ADDRESS): New macro.
9959 * tracepoint.c (scope_info): Update.
9960 * tui/tui-disasm.c (tui_find_disassembly_address)
9961 (tui_get_begin_asm_address): Update.
9962 * valops.c (find_function_in_inferior): Update.
9963 * value.c (value_static_field, value_fn_field): Update.
9965 2014-02-26 Tom Tromey <tromey@redhat.com>
9967 * ada-lang.c (ada_update_initial_language): Update.
9968 (ada_main_name, ada_has_this_exception_support): Update.
9969 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9970 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9971 * arm-tdep.c (arm_skip_stub): Update.
9972 * auxv.c (ld_so_xfer_auxv): Update.
9973 * avr-tdep.c (avr_scan_prologue): Update.
9974 * ax-gdb.c (gen_var_ref): Update.
9975 * breakpoint.c (struct breakpoint_objfile_data)
9976 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9977 type to bound_minimal_symbol.
9978 (create_overlay_event_breakpoint)
9979 (create_longjmp_master_breakpoint)
9980 (create_std_terminate_master_breakpoint)
9981 (create_exception_master_breakpoint): Update.
9982 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9983 * c-exp.y (classify_name): Update.
9984 * coffread.c (coff_symfile_read): Update.
9985 * common/agent.c (agent_look_up_symbols): Update.
9986 * d-lang.c (d_main_name): Update.
9987 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9988 * dec-thread.c (enable_dec_thread): Update.
9989 * dwarf2loc.c (call_site_to_target_addr): Update.
9990 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9991 * eval.c (evaluate_subexp_standard): Update.
9992 * findvar.c (struct minsym_lookup_data) <result>: Change type
9993 to bound_minimal_symbol.
9995 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9996 * frame.c (inside_main_func): Update.
9997 * frv-tdep.c (frv_frame_this_id): Update.
9998 * gcore.c (call_target_sbrk): Update.
9999 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10000 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10002 * go-lang.c (go_main_name): Update.
10003 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10004 (hppa_hpux_find_import_stub_for_addr): Update.
10005 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10006 Update. Change return type.
10007 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10009 * jit.c (jit_breakpoint_re_set_internal): Update.
10010 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10012 * linux-nat.c (get_signo): Update.
10013 * linux-thread-db.c (inferior_has_bug): Update
10014 * m32c-tdep.c (m32c_return_value)
10015 (m32c_m16c_address_to_pointer): Update.
10016 * m32r-tdep.c (m32r_frame_this_id): Update.
10017 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10018 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10019 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10020 lookup_minimal_symbol. Change return type.
10021 (lookup_minimal_symbol): Remove.
10022 (lookup_bound_minimal_symbol): Update.
10023 (lookup_minimal_symbol_text): Change return type.
10024 (lookup_minimal_symbol_solib_trampoline): Change return type.
10025 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10026 (lookup_minimal_symbol_solib_trampoline): Change return type.
10027 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10028 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10029 (value_nsstring, find_imps): Update.
10030 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10031 * p-lang.c (pascal_main_name): Update.
10032 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10033 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10034 * proc-service.c (ps_pglobal_lookup): Update.
10035 * ravenscar-thread.c (get_running_thread_msymbol): Change
10037 (has_ravenscar_runtime, get_running_thread_id): Update.
10038 * remote.c (remote_check_symbols): Update.
10039 * sol-thread.c (ps_pglobal_lookup): Update.
10040 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10041 * solib-dsbt.c (lm_base): Update.
10042 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10044 * solib-irix.c (locate_base): Update.
10045 * solib-som.c (som_solib_create_inferior_hook)
10046 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10048 * solib-spu.c (spu_enable_break): Update.
10049 * solib-svr4.c (elf_locate_base, enable_break): Update.
10050 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10051 (flush_ea_cache): Update.
10052 * stabsread.c (define_symbol): Update.
10053 * symfile.c (simple_read_overlay_table): Update.
10054 * symtab.c (find_pc_sect_line): Update.
10055 * tracepoint.c (scope_info): Update.
10056 * tui-disasm.c (tui_get_begin_asm_address): Update.
10057 * value.c (value_static_field): Update.
10059 2014-02-26 Tom Tromey <tromey@redhat.com>
10061 * minsyms.c (prim_record_minimal_symbol_full): Use
10062 SET_MSYMBOL_VALUE_ADDRESS.
10063 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10064 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10065 SET_MSYMBOL_VALUE_ADDRESS.
10066 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10067 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10069 2014-02-26 Tom Tromey <tromey@redhat.com>
10071 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10072 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10073 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10074 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10075 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10076 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10077 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10078 * ada-lang.c (ada_main_name): Update.
10079 (ada_lookup_simple_minsym): Update.
10080 (ada_make_symbol_completion_list): Update.
10081 (ada_add_standard_exceptions): Update.
10082 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10083 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10084 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10085 * arm-tdep.c (skip_prologue_function): Update.
10086 (arm_skip_stack_protector, arm_skip_stub): Update.
10087 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10088 (arm_wince_skip_main_prologue): Update.
10089 * auxv.c (ld_so_xfer_auxv): Update.
10090 * avr-tdep.c (avr_scan_prologue): Update.
10091 * ax-gdb.c (gen_var_ref): Update.
10092 * block.c (call_site_for_pc): Update.
10093 * blockframe.c (get_pc_function_start): Update.
10094 (find_pc_partial_function_gnu_ifunc): Update.
10095 * breakpoint.c (create_overlay_event_breakpoint): Update.
10096 (create_longjmp_master_breakpoint): Update.
10097 (create_std_terminate_master_breakpoint): Update.
10098 (create_exception_master_breakpoint): Update.
10099 (resolve_sal_pc): Update.
10100 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10101 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10103 * c-valprint.c (c_val_print): Update.
10104 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10105 * coffread.c (coff_symfile_read): Update.
10106 * common/agent.c (agent_look_up_symbols): Update.
10107 * dbxread.c (find_stab_function_addr): Update.
10108 (end_psymtab): Update.
10109 * dwarf2loc.c (call_site_to_target_addr): Update.
10110 (func_verify_no_selftailcall): Update.
10111 (tailcall_dump): Update.
10112 (call_site_find_chain_1): Update.
10113 (dwarf_expr_reg_to_entry_parameter): Update.
10114 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10115 (elf_gnu_ifunc_resolve_by_got): Update.
10116 * f-valprint.c (info_common_command): Update.
10117 * findvar.c (read_var_value): Update.
10118 * frame.c (get_prev_frame_1): Update.
10119 (inside_main_func): Update.
10120 * frv-tdep.c (frv_skip_main_prologue): Update.
10121 (frv_frame_this_id): Update.
10122 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10123 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10124 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10125 (gnuv3_skip_trampoline): Update.
10126 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10127 (hppa64_hpux_in_solib_call_trampoline): Update.
10128 (hppa_hpux_skip_trampoline_code): Update.
10129 (hppa64_hpux_search_dummy_call_sequence): Update.
10130 (hppa_hpux_find_import_stub_for_addr): Update.
10131 (hppa_hpux_find_dummy_bpaddr): Update.
10132 * hppa-tdep.c (hppa_symbol_address)
10133 (hppa_lookup_stub_minimal_symbol): Update.
10134 * i386-tdep.c (i386_skip_main_prologue): Update.
10135 (i386_pe_skip_trampoline_code): Update.
10136 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10137 * infcall.c (get_function_name): Update.
10138 * infcmd.c (until_next_command): Update.
10139 * jit.c (jit_breakpoint_re_set_internal): Update.
10140 (jit_inferior_init): Update.
10141 * linespec.c (minsym_found): Update.
10142 (add_minsym): Update.
10143 * linux-fork.c (info_checkpoints_command): Update.
10144 * linux-nat.c (get_signo): Update.
10145 * linux-thread-db.c (inferior_has_bug): Update.
10146 * m32c-tdep.c (m32c_return_value): Update.
10147 (m32c_m16c_address_to_pointer): Update.
10148 (m32c_m16c_pointer_to_address): Update.
10149 * m32r-tdep.c (m32r_frame_this_id): Update.
10150 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10151 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10152 * maint.c (maintenance_translate_address): Update.
10153 * minsyms.c (add_minsym_to_hash_table): Update.
10154 (add_minsym_to_demangled_hash_table): Update.
10155 (msymbol_objfile): Update.
10156 (lookup_minimal_symbol): Update.
10157 (iterate_over_minimal_symbols): Update.
10158 (lookup_minimal_symbol_text): Update.
10159 (lookup_minimal_symbol_by_pc_name): Update.
10160 (lookup_minimal_symbol_solib_trampoline): Update.
10161 (lookup_minimal_symbol_by_pc_section_1): Update.
10162 (lookup_minimal_symbol_and_objfile): Update.
10163 (prim_record_minimal_symbol_full): Update.
10164 (compare_minimal_symbols): Update.
10165 (compact_minimal_symbols): Update.
10166 (build_minimal_symbol_hash_tables): Update.
10167 (install_minimal_symbols): Update.
10168 (terminate_minimal_symbol_table): Update.
10169 (find_solib_trampoline_target): Update.
10170 (minimal_symbol_upper_bound): Update.
10171 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10172 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10173 (mips_skip_pic_trampoline_code): Update.
10174 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10175 * objc-lang.c (selectors_info): Update.
10176 (classes_info): Update.
10177 (find_methods): Update.
10178 (find_imps): Update.
10179 (find_objc_msgsend): Update.
10180 * objfiles.c (objfile_relocate1): Update.
10181 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10182 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10183 * p-valprint.c (pascal_val_print): Update.
10184 * parse.c (write_exp_msymbol): Update.
10185 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10186 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10187 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10188 * printcmd.c (build_address_symbolic): Update.
10189 (sym_info): Update.
10190 (address_info): Update.
10191 * proc-service.c (ps_pglobal_lookup): Update.
10192 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10193 (find_pc_sect_psymtab): Update.
10194 * python/py-framefilter.c (py_print_frame): Update.
10195 * ravenscar-thread.c (get_running_thread_id): Update.
10196 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10198 * remote.c (remote_check_symbols): Update.
10199 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10200 (rs6000_skip_trampoline_code): Update.
10201 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10202 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10203 * solib-dsbt.c (lm_base): Update.
10204 * solib-frv.c (lm_base): Update.
10205 (main_got): Update.
10206 * solib-irix.c (locate_base): Update.
10207 * solib-som.c (som_solib_create_inferior_hook): Update.
10208 (som_solib_desire_dynamic_linker_symbols): Update.
10209 (link_map_start): Update.
10210 * solib-spu.c (spu_enable_break): Update.
10211 (ocl_enable_break): Update.
10212 * solib-svr4.c (elf_locate_base): Update.
10213 (enable_break): Update.
10214 * spu-tdep.c (spu_get_overlay_table): Update.
10215 (spu_catch_start): Update.
10216 (flush_ea_cache): Update.
10217 * stabsread.c (define_symbol): Update.
10218 (scan_file_globals): Update.
10219 * stack.c (find_frame_funname): Update.
10220 (frame_info): Update.
10221 * symfile.c (simple_read_overlay_table): Update.
10222 (simple_overlay_update): Update.
10223 * symmisc.c (dump_msymbols): Update.
10224 * symtab.c (fixup_section): Update.
10225 (find_pc_sect_line): Update.
10226 (skip_prologue_sal): Update.
10227 (search_symbols): Update.
10228 (print_msymbol_info): Update.
10229 (rbreak_command): Update.
10230 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10231 (completion_list_objc_symbol): Update.
10232 (default_make_symbol_completion_list_break_on): Update.
10233 * tracepoint.c (scope_info): Update.
10234 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10235 (tui_get_begin_asm_address): Update.
10236 * valops.c (find_function_in_inferior): Update.
10237 * value.c (value_static_field): Update.
10238 (value_fn_field): Update.
10240 2014-02-26 Tom Tromey <tromey@redhat.com>
10242 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10243 bound minimal symbols. Move code that knows about minsym
10245 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10247 * minsyms.h (minimal_symbol_upper_bound): Declare.
10248 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10249 minimal_symbol_upper_bound.
10251 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10253 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10254 Use the type's name if its basic type does not have a tag.
10256 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10258 * dwarf2read.c (read_subrange_type): Add comment.
10260 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10262 * dwarf2read.c (update_enumeration_type_from_children): New
10263 function, mostly extracted from process_structure_scope.
10264 (read_enumeration_type): Call update_enumeration_type_from_children.
10265 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10266 and flag_flag_enum fields.
10268 2014-02-26 Pedro Alves <palves@redhat.com>
10270 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10271 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10272 to_xfer_partial method.
10274 2014-02-26 Pedro Alves <palves@redhat.com>
10276 * target.c (complete_target_initialization): Don't install
10277 default_xfer_partial as to_xfer_partial hook.
10278 (nomemory): Delete.
10279 (update_current_target): Don't INHERIT nor de_fault
10280 deprecated_xfer_memory. Delete de_fault macro.
10281 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10282 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10283 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10286 2014-02-26 Pedro Alves <palves@redhat.com>
10288 * go32-nat.c (my_write_child): New function.
10289 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10290 (go32_xfer_partial): New function.
10291 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10292 Instead install a to_xfer_partial hook.
10294 2014-02-26 Pedro Alves <palves@redhat.com>
10296 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10297 to_xfer_partial helper. Rewrite.
10298 (procfs_xfer_partial): New function.
10299 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10300 Install a to_xfer_partial hook.
10302 2014-02-26 Pedro Alves <palves@redhat.com>
10304 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10305 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10306 (m32r_xfer_partial): New function.
10307 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10308 Install a to_xfer_partial hook.
10310 2014-02-26 Pedro Alves <palves@redhat.com>
10312 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10314 (mips_xfer_partial): New function.
10315 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10316 hook. Install a to_xfer_partial hook.
10318 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10320 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10321 * gdbtypes.c (create_array_type_with_stride): New function,
10322 renaming create_array_type, but with an added parameter
10323 called "bit_stride".
10324 (create_array_type): Re-implement using
10325 create_array_type_with_stride.
10326 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10327 and DW_AT_bit_stride attributes.
10329 2014-02-26 Pedro Alves <palves@redhat.com>
10331 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10332 task-specific breakpoints.
10334 2014-02-25 Pedro Alves <palves@redhat.com>
10336 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10337 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10339 2014-02-25 Stan Shebs <stan@codesourcery.com>
10341 * defs.h: Annotate comments for Doxygen.
10343 2014-02-25 Tom Tromey <tromey@redhat.com>
10345 * target.h (target_ignore): Don't declare.
10346 * target.c (target_ignore): Remove.
10348 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10351 * auto-load.c (auto_load_objfile_script_1): Change filename to
10354 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10356 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10357 documentation. Adjust prototype to match the target_ops
10358 to_xfer_partial method. Adjust implementation accordingly.
10360 2014-02-25 Hui Zhu <hui@codesourcery.com>
10362 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10363 to_traceframe_info.
10365 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10367 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10368 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10369 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10370 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10371 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10372 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10373 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10374 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10376 (rl78_register_type): Use a data pointer type for SP and
10377 new pseudo registers mentioned above. Use a 16 bit integer
10378 type for all other register pairs.
10379 (rl78_register_name, rl78_g10_register_name): Update for
10380 new pseudo registers.
10381 (rl78_pseudo_register_read): Likewise.
10382 (rl78_pseudo_register_write): Likewise.
10383 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10384 to the newly added pseudo registers.
10386 2014-02-24 Doug Evans <dje@google.com>
10388 * value.c (record_latest_value): Fix comment.
10389 * printcmd.c (print_command_1): Remove code to handle -1 return from
10390 record_latest_value.
10392 2014-02-24 Pedro Alves <palves@redhat.com>
10394 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10395 deprecated_xfer_memory hook.
10396 (procfs_xfer_partial): Call procfs_xfer_memory instead
10397 of the deprecated_xfer_memory target hook.
10398 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10401 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10403 * windows-nat.c (windows_xfer_shared_libraries): Return
10404 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10405 requested object is TARGET_OBJECT_LIBRARIES.
10407 2014-02-24 Yao Qi <yao@codesourcery.com>
10409 * target.h (enum target_xfer_status)
10410 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10411 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10413 * corefile.c (memory_error_message): User updated.
10414 * exec.c (section_table_read_available_memory): Likewise.
10415 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10416 * target.c (target_xfer_status_to_string): Likewise.
10417 (raw_memory_xfer_partial): Likewise.
10418 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10419 * valops.c (read_value_memory): Likewise.
10420 * exec.h: Update comments.
10422 2014-02-24 Yao Qi <yao@codesourcery.com>
10424 * target.c (target_xfer_status_to_string): Rename argument err
10426 * target.h (target_xfer_status_to_string): Update declaration.
10427 Replace target_xfer_error_to_string with
10428 target_xfer_status_to_string in comment.
10430 2014-02-24 Yao Qi <yao@codesourcery.com>
10432 * mips-linux-nat.c (super_close): Update its type.
10433 (mips_linux_close): Pass 'self' to super_close.
10435 2014-02-24 Yao Qi <yao@codesourcery.com>
10437 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10438 * corefile.c (read_memory): Adjusted.
10439 * target.c (target_write_with_progress): Adjusted.
10441 2014-02-23 Yao Qi <yao@codesourcery.com>
10443 Revert two patches:
10445 2013-10-25 Yao Qi <yao@codesourcery.com>
10447 * remote.c (remote_traceframe_info): Return early if
10448 traceframe is not selected.
10450 2013-07-19 Yao Qi <yao@codesourcery.com>
10452 * target.c (update_current_target): Change the default action
10453 of 'to_traceframe_info' from tcomplain to return_zero.
10454 * target.h (struct target_ops) <to_traceframe_info>: Add more
10457 2014-02-23 Yao Qi <yao@codesourcery.com>
10459 * valops.c (read_value_memory): Rewrite it. Call
10460 target_xfer_partial in a loop.
10461 * exec.h (section_table_available_memory): Remove declaration.
10462 Move comments to ...
10463 * exec.c (section_table_available_memory): ... here. Make it
10466 2014-02-23 Yao Qi <yao@codesourcery.com>
10468 * exec.c (section_table_read_available_memory): New function.
10469 * exec.h (section_table_read_available_memory): Declare.
10470 * ctf.c (ctf_xfer_partial): Call
10471 section_table_read_available_memory.
10472 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10474 2014-02-23 Yao Qi <yao@codesourcery.com>
10476 * ctf.c (ctf_xfer_partial): Move code to ...
10477 * exec.c (exec_read_partial_read_only): ... it. New function.
10478 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10479 * tracefile.c: Include "exec.h".
10480 * exec.h (exec_read_partial_read_only): Declare.
10482 2014-02-23 Yao Qi <yao@codesourcery.com>
10484 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10485 (tfile_has_memory): Remove.
10486 (init_tfile_ops): Don't set fields to_has_all_memory and
10487 to_has_memory of tfile_ops.
10488 * tracefile.c (tracefile_has_all_memory): New function.
10489 (tracefile_has_memory): New function.
10490 (init_tracefile_ops): Initialize fields to_has_all_memory and
10491 to_has_memory of 'ops'.
10493 2014-02-23 Yao Qi <yao@codesourcery.com>
10495 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10496 (ctf_thread_alive, ctf_get_trace_status): Remove.
10497 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10498 init_tracefile_ops.
10499 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10500 (tfile_has_stack, tfile_has_registers): Remove.
10501 (tfile_thread_alive): Remove.
10502 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10503 init_tracefile_ops.
10504 * tracefile.c (tracefile_has_stack): New function.
10505 (tracefile_has_registers): New function.
10506 (tracefile_thread_alive): New function.
10507 (tracefile_get_trace_status): New function.
10508 (init_tracefile_ops): New function.
10509 * tracefile.h (init_tracefile_ops): Declare.
10511 2014-02-23 Yao Qi <yao@codesourcery.com>
10513 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10514 (O_LARGEFILE): Likewise.
10515 (tfile_ops): Likewise.
10516 (TRACE_HEADER_SIZE): Likewise.
10517 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10518 (cur_data_size): Likewise.
10519 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10520 (tfile_close, tfile_files_info): Likewise.
10521 (tfile_get_trace_status): Likewise.
10522 (tfile_get_tracepoint_status): Likewise.
10523 (tfile_get_traceframe_address): Likewise.
10524 (tfile_trace_find, match_blocktype): Likewise.
10525 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10526 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10527 (tfile_get_trace_state_variable_value): Likewise.
10528 (tfile_has_all_memory, tfile_has_memory): Likewise.
10529 (tfile_has_stack, tfile_has_registers): Likewise.
10530 (tfile_thread_alive, build_traceframe_info): Likewise.
10531 (tfile_traceframe_info, init_tfile_ops): Likewise.
10532 (_initialize_tracepoint): Don't call init_tfile_ops
10533 and add_target_with_completer.
10534 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10535 exec.h, completer.h and filenames.h.
10536 (_initialize_tracefile_tfile): New function.
10538 2014-02-23 Yao Qi <yao@codesourcery.com>
10540 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10542 (HFILES_NO_SRCDIR): Add tracefile.h.
10543 * ctf.c: Include "tracefile.h".
10544 * tracefile.h: New file.
10545 * tracefile.c: New file
10546 * tracefile-tfile.c: New file.
10547 * tracepoint.c: Include "tracefile.h".
10548 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10549 (stop_reason_names): Add const.
10550 (trace_file_writer_xfree): Move it to tracefile.c.
10551 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10552 (trace_save_ctf): Likewise.
10553 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10554 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10555 (tfile_write_header, tfile_write_regblock_type): Likewise.
10556 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10557 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10558 (tfile_write_raw_data, tfile_end): Likewise.
10559 (tfile_trace_file_writer_new): Likewise.
10560 (free_uploaded_tp): Make it extern.
10561 (free_uploaded_tsv): Make it extern.
10562 (_initialize_tracepoint): Move code to register command 'tsave'
10564 * tracepoint.h (stop_reason_names): Declare.
10565 (struct trace_frame_write_ops): Move it to tracefile.h.
10566 (struct trace_file_write_ops): Likewise.
10567 (struct trace_file_writer): Likewise.
10568 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10570 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10573 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10575 (get_cores_used_by_process): New parameter num_cores, use it.
10576 (linux_xfer_osdata_processes): Pass num_cores to it.
10577 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10580 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10582 * target.c (memory_xfer_partial): Fix length arg in call to
10583 breakpoint_xfer_memory.
10585 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10588 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10589 number comes after the + or - signs. Adjust length of register
10590 name to be extracted.
10592 2014-02-20 Tom Tromey <tromey@redhat.com>
10594 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10595 (ada_varobj_ops): Mark "extern".
10597 2014-02-20 Tom Tromey <tromey@redhat.com>
10599 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10601 2014-02-20 Doug Evans <xdje42@gmail.com>
10603 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10604 All callers updated.
10605 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10606 All callers updated.
10607 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10608 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10610 2014-02-20 lin zuojian <manjian2006@gmail.com>
10611 Joel Brobecker <brobecker@adacore.com>
10612 Doug Evans <xdje42@gmail.com>
10615 * dwarf2read.c (struct die_info): New member in_process.
10616 (reset_die_in_process): New function.
10617 (process_die): Set it at the start, reset when returning.
10618 (inherit_abstract_dies): Only call process_die if origin_child_die
10619 not already being processed.
10621 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10623 * windows-nat.c (handle_unload_dll): Add function documentation.
10624 (do_initial_windows_stuff): Add comment explaining why we wait
10625 until after inferior initialization has finished before
10626 processing all DLLs.
10628 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10630 * windows-nat.c (get_module_name): Delete.
10631 (windows_get_exec_module_filename): New function, mostly
10632 inspired from get_module_name.
10633 (windows_pid_to_exec_file): Replace call to get_module_name
10634 by call to windows_get_exec_module_filename.
10636 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10638 * windows-nat.c (handle_load_dll): Rewrite this function's
10639 introductory comment. Remove code using get_module_name
10640 to get the DLL's name.
10642 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10644 * windows-nat.c (get_windows_debug_event): Ignore
10645 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10646 if windows_initialization_done == 0.
10647 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10648 Adjust implementation to always load all DLLs.
10649 (do_initial_windows_stuff): Replace call to
10650 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10652 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10654 * windows-nat.c (_initialize_windows_nat): Deprecate the
10655 "dll-symbols" command. Turn the "add-shared-symbol-files"
10656 and "assf" aliases into commands, and deprecate them as well.
10657 * NEWS: Add entry explaining that "dll-symbols" and its two
10658 aliases are now deprecated.
10660 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10662 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10663 new-line in debug string. Remove trailing spaces.
10665 2014-02-19 Stan Shebs <stan@codesourcery.com>
10667 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10669 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10671 * NEWS: Add entry for the new feature
10672 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10675 2014-02-19 Stan Shebs <stan@codesourcery.com>
10677 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10679 2014-02-19 Pedro Alves <palves@redhat.com>
10681 * common/ptid.h (struct ptid): Mention that process_stratum
10682 targets should prefer ptid.lwp.
10684 2014-02-19 Pedro Alves <palves@redhat.com>
10686 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10687 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10688 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10689 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10690 store remote thread ids rather than ptid.tid.
10691 (_initialize_remote): Adjust.
10693 2014-02-19 Tom Tromey <tromey@redhat.com>
10695 * target.c (target_get_unwinder): Rewrite.
10696 (target_get_tailcall_unwinder): Rewrite.
10697 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10698 (record_btrace_to_get_tailcall_unwinder): New function.
10699 (init_record_btrace_ops): Update.
10700 * target.h (struct target_ops) <to_get_unwinder,
10701 to_get_tailcall_unwinder>: Now function pointers. Use
10702 TARGET_DEFAULT_RETURN.
10704 2014-02-19 Tom Tromey <tromey@redhat.com>
10706 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10708 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10710 2014-02-19 Tom Tromey <tromey@redhat.com>
10712 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10714 * target-delegates.c: Rebuild.
10715 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10716 TARGET_DEFAULT_FUNC.
10717 * target.c (default_target_decr_pc_after_break): Rename from
10718 forward_target_decr_pc_after_break. Simplify.
10719 (target_decr_pc_after_break): Rely on delegation.
10721 2014-02-19 Tom Tromey <tromey@redhat.com>
10723 * target.c (update_current_target): Do not INHERIT to_doc or
10724 to_magic. Do not de_fault to_open or to_close.
10726 2014-02-19 Tom Tromey <tromey@redhat.com>
10728 * gcore.h (objfile_find_memory_regions): Declare.
10729 * gcore.c (objfile_find_memory_regions): No longer static. Add
10731 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10732 * exec.c: Include gcore.h.
10733 (exec_set_find_memory_regions): Remove.
10734 (exec_find_memory_regions): Remove.
10735 (exec_do_find_memory_regions): Remove.
10736 (init_exec_ops): Update.
10737 * defs.h (exec_set_find_memory_regions): Remove.
10739 2014-02-19 Tom Tromey <tromey@redhat.com>
10741 * target-delegates.c: Rebuild.
10742 * target.h (struct target_ops) <to_extra_thread_info,
10743 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10744 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10745 not 0, in TARGET_DEFAULT_RETURN.
10747 2014-02-19 Tom Tromey <tromey@redhat.com>
10749 * target.c (complete_target_initialization): Remove casts. Use
10750 return_zero_has_execution.
10751 (return_zero): Add "ignore" argument.
10752 (return_zero_has_execution): New function.
10753 (init_dummy_target): Remove casts. Use
10754 return_zero_has_execution.
10756 2014-02-19 Tom Tromey <tromey@redhat.com>
10758 * target.c (update_current_target): Update comments. Do not
10759 INHERIT to_stratum.
10761 2014-02-19 Tom Tromey <tromey@redhat.com>
10763 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10765 * corelow.c (core_read_description): Delegate when needed.
10766 * remote.c (remote_read_description): Delegate when needed.
10767 * target-delegates.c: Rebuild.
10768 * target.c (target_read_description): Rewrite.
10769 * target.h (struct target_ops) <to_read_description>: Update
10770 comment. Use TARGET_DEFAULT_RETURN.
10772 2014-02-19 Tom Tromey <tromey@redhat.com>
10774 * target-delegates.c: Rebuild.
10775 * target.c (update_current_target): Don't inherit or default
10777 (find_default_run_target): Check against delegate_can_run.
10778 * target.h (struct target_ops) <to_can_run>: Use
10779 TARGET_DEFAULT_RETURN.
10781 2014-02-19 Tom Tromey <tromey@redhat.com>
10783 * target-delegates.c: Rebuild.
10784 * target.c (target_disconnect): Unconditionally delegate.
10785 * target.h (struct target_ops) <to_disconnect>: Use
10786 TARGET_DEFAULT_NORETURN.
10788 2014-02-19 Tom Tromey <tromey@redhat.com>
10790 * record.c (record_stop): Unconditionally delegate.
10791 * target-delegates.c: Rebuild.
10792 * target.c (target_stop_recording): Unconditionally delegate.
10793 * target.h (struct target_ops) <to_stop_recording>: Use
10794 TARGET_DEFAULT_IGNORE.
10796 2014-02-19 Tom Tromey <tromey@redhat.com>
10798 * target-delegates.c: Rebuild.
10799 * target.c (target_enable_btrace): Unconditionally delegate.
10800 * target.h (struct target_ops) <to_enable_btrace>: Use
10801 TARGET_DEFAULT_NORETURN.
10803 2014-02-19 Tom Tromey <tromey@redhat.com>
10805 * target-delegates.c: Rebuild.
10806 * target.c (target_read_btrace): Unconditionally delegate.
10807 * target.h (struct target_ops) <to_read_btrace>: Use
10808 TARGET_DEFAULT_NORETURN.
10810 2014-02-19 Tom Tromey <tromey@redhat.com>
10812 * target-delegates.c: Rebuild.
10813 * target.c (target_teardown_btrace): Unconditionally delegate.
10814 * target.h (struct target_ops) <to_teardown_btrace>: Use
10815 TARGET_DEFAULT_NORETURN.
10817 2014-02-19 Tom Tromey <tromey@redhat.com>
10819 * target-delegates.c: Rebuild.
10820 * target.c (target_disable_btrace): Unconditionally delegate.
10821 * target.h (struct target_ops) <to_disable_btrace>: Use
10822 TARGET_DEFAULT_NORETURN.
10824 2014-02-19 Tom Tromey <tromey@redhat.com>
10826 * target-delegates.c: Rebuild.
10827 * target.c (default_search_memory): New function.
10828 (simple_search_memory): Update comment.
10829 (target_search_memory): Unconditionally delegate.
10830 * target.h (struct target_ops) <to_search_memory>: Use
10831 TARGET_DEFAULT_FUNC.
10833 2014-02-19 Tom Tromey <tromey@redhat.com>
10835 * auxv.c (default_auxv_parse): No longer static.
10836 (target_auxv_parse): Unconditionally delegate.
10837 * auxv.h (default_auxv_parse): Declare.
10838 * target-delegates.c: Rebuild.
10839 * target.c: Include auxv.h.
10840 * target.h (struct target_ops) <to_auxv_parse>: Use
10841 TARGET_DEFAULT_FUNC.
10843 2014-02-19 Tom Tromey <tromey@redhat.com>
10845 * target-delegates.c: Rebuild.
10846 * target.c (target_memory_map): Unconditionally delegate.
10847 * target.h (struct target_ops) <to_memory_map>: Use
10848 TARGET_DEFAULT_RETURN.
10850 2014-02-19 Tom Tromey <tromey@redhat.com>
10852 * target-delegates.c: Rebuild.
10853 * target.c (target_thread_alive): Unconditionally delegate.
10854 * target.h (struct target_ops) <to_thread_alive>: Use
10855 TARGET_DEFAULT_RETURN.
10857 2014-02-19 Tom Tromey <tromey@redhat.com>
10859 * target-delegates.c: Rebuild.
10860 * target.c (target_save_record): Unconditionally delegate.
10861 * target.h (struct target_ops) <to_save_record>: Use
10862 TARGET_DEFAULT_NORETURN.
10864 2014-02-19 Tom Tromey <tromey@redhat.com>
10866 * target-delegates.c: Rebuild.
10867 * target.c (target_delete_record): Unconditionally delegate.
10868 * target.h (struct target_ops) <to_delete_record>: Use
10869 TARGET_DEFAULT_NORETURN.
10871 2014-02-19 Tom Tromey <tromey@redhat.com>
10873 * target-delegates.c: Rebuild.
10874 * target.c (target_record_is_replaying): Unconditionally
10876 * target.h (struct target_ops) <to_record_is_replaying>: Use
10877 TARGET_DEFAULT_RETURN.
10879 2014-02-19 Tom Tromey <tromey@redhat.com>
10881 * target-delegates.c: Rebuild.
10882 * target.c (target_goto_record_begin): Unconditionally delegate.
10883 * target.h (struct target_ops) <to_goto_record_begin>: Use
10884 TARGET_DEFAULT_NORETURN.
10886 2014-02-19 Tom Tromey <tromey@redhat.com>
10888 * target-delegates.c: Rebuild.
10889 * target.c (target_goto_record_end): Unconditionally delegate.
10890 * target.h (struct target_ops) <to_goto_record_end>: Use
10891 TARGET_DEFAULT_NORETURN.
10893 2014-02-19 Tom Tromey <tromey@redhat.com>
10895 * target-delegates.c: Rebuild.
10896 * target.c (target_goto_record): Unconditionally delegate.
10897 * target.h (struct target_ops) <to_goto_record>: Use
10898 TARGET_DEFAULT_NORETURN.
10900 2014-02-19 Tom Tromey <tromey@redhat.com>
10902 * target-delegates.c: Rebuild.
10903 * target.c (target_insn_history): Unconditionally delegate.
10904 * target.h (struct target_ops) <to_insn_history>: Use
10905 TARGET_DEFAULT_NORETURN.
10907 2014-02-19 Tom Tromey <tromey@redhat.com>
10909 * target-delegates.c: Rebuild.
10910 * target.c (target_insn_history_from): Unconditionally delegate.
10911 * target.h (struct target_ops) <to_insn_history_from>: Use
10912 TARGET_DEFAULT_NORETURN.
10914 2014-02-19 Tom Tromey <tromey@redhat.com>
10916 * target-delegates.c: Rebuild.
10917 * target.c (target_insn_history_range): Unconditionally delegate.
10918 * target.h (struct target_ops) <to_insn_history_range>: Use
10919 TARGET_DEFAULT_NORETURN.
10921 2014-02-19 Tom Tromey <tromey@redhat.com>
10923 * target-delegates.c: Rebuild.
10924 * target.c (target_call_history): Unconditionally delegate.
10925 * target.h (struct target_ops) <to_call_history>: Use
10926 TARGET_DEFAULT_NORETURN.
10928 2014-02-19 Tom Tromey <tromey@redhat.com>
10930 * target-delegates.c: Rebuild.
10931 * target.c (target_call_history_from): Unconditionally delegate.
10932 * target.h (struct target_ops) <to_call_history_from>: Use
10933 TARGET_DEFAULT_NORETURN.
10935 2014-02-19 Tom Tromey <tromey@redhat.com>
10937 * target-delegates.c: Rebuild.
10938 * target.c (target_call_history_range): Unconditionally delegate.
10939 * target.h (struct target_ops) <to_call_history_range>: Use
10940 TARGET_DEFAULT_NORETURN.
10942 2014-02-19 Tom Tromey <tromey@redhat.com>
10944 * target-delegates.c: Rebuild.
10945 * target.c (target_verify_memory): Unconditionally delegate.
10946 * target.h (struct target_ops) <to_verify_memory>: Use
10947 TARGET_DEFAULT_NORETURN.
10949 2014-02-19 Tom Tromey <tromey@redhat.com>
10951 * target-delegates.c: Rebuild.
10952 * target.c (target_core_of_thread): Unconditionally delegate.
10953 * target.h (struct target_ops) <to_core_of_thread>: Use
10954 TARGET_DEFAULT_RETURN.
10956 2014-02-19 Tom Tromey <tromey@redhat.com>
10958 * target-delegates.c: Rebuild.
10959 * target.c (target_flash_done): Unconditionally delegate.
10960 * target.h (struct target_ops) <to_flash_done>: Use
10961 TARGET_DEFAULT_NORETURN.
10963 2014-02-19 Tom Tromey <tromey@redhat.com>
10965 * target-delegates.c: Rebuild.
10966 * target.c (target_flash_erase): Unconditionally delegate.
10967 * target.h (struct target_ops) <to_flash_erase>: Use
10968 TARGET_DEFAULT_NORETURN.
10970 2014-02-19 Tom Tromey <tromey@redhat.com>
10972 * target-delegates.c: Rebuild.
10973 * target.c (target_get_section_table): Unconditionally delegate.
10974 * target.h (struct target_ops) <to_get_section_table>: Use
10975 TARGET_DEFAULT_RETURN.
10977 2014-02-19 Tom Tromey <tromey@redhat.com>
10979 * target-delegates.c: Rebuild.
10980 * target.c (target_pid_to_str): Unconditionally delegate.
10981 (init_dummy_target): Don't initialize to_pid_to_str.
10982 (default_pid_to_str): Rename from dummy_pid_to_str.
10983 * target.h (struct target_ops) <to_pid_to_str>: Use
10984 TARGET_DEFAULT_FUNC.
10986 2014-02-19 Tom Tromey <tromey@redhat.com>
10988 * target-delegates.c: Rebuild.
10989 * target.c (target_find_new_threads): Unconditionally delegate.
10990 * target.h (struct target_ops) <to_find_new_threads>: Use
10991 TARGET_DEFAULT_RETURN.
10993 2014-02-19 Tom Tromey <tromey@redhat.com>
10995 * target-delegates.c: Rebuild.
10996 * target.c (target_program_signals): Unconditionally delegate.
10997 * target.h (struct target_ops) <to_program_signals>: Use
10998 TARGET_DEFAULT_IGNORE.
11000 2014-02-19 Tom Tromey <tromey@redhat.com>
11002 * target-delegates.c: Rebuild.
11003 * target.c (target_pass_signals): Unconditionally delegate.
11004 * target.h (struct target_ops) <to_pass_signals>: Use
11005 TARGET_DEFAULT_IGNORE.
11007 2014-02-19 Tom Tromey <tromey@redhat.com>
11009 * target-delegates.c: Rebuild.
11010 * target.c (default_mourn_inferior): New function.
11011 (target_mourn_inferior): Unconditionally delegate.
11012 * target.h (struct target_ops) <to_mourn_inferior>: Use
11013 TARGET_DEFAULT_FUNC.
11015 2014-02-19 Tom Tromey <tromey@redhat.com>
11017 * target-delegates.c: Rebuild.
11018 * target.c (default_follow_fork): New function.
11019 (target_follow_fork): Unconditionally delegate.
11020 * target.h (struct target_ops) <to_follow_fork>: Use
11021 TARGET_DEFAULT_FUNC.
11023 2014-02-19 Tom Tromey <tromey@redhat.com>
11025 * target-delegates.c: Rebuild.
11026 * target.c (target_kill): Unconditionally delegate.
11027 * target.h (struct target_ops) <to_kill>: Use
11028 TARGET_DEFAULT_NORETURN.
11030 2014-02-19 Tom Tromey <tromey@redhat.com>
11032 * target-delegates.c: Rebuild.
11033 * target.c (target_masked_watch_num_registers): Unconditionally
11035 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11036 Use TARGET_DEFAULT_RETURN.
11038 2014-02-19 Tom Tromey <tromey@redhat.com>
11040 * target-delegates.c: Rebuild.
11041 * target.c (target_remove_mask_watchpoint): Unconditionally
11043 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11044 TARGET_DEFAULT_RETURN.
11046 2014-02-19 Tom Tromey <tromey@redhat.com>
11048 * target-delegates.c: Rebuild.
11049 * target.c (target_insert_mask_watchpoint): Unconditionally
11051 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11052 TARGET_DEFAULT_RETURN.
11054 2014-02-19 Tom Tromey <tromey@redhat.com>
11056 * target-delegates.c: Rebuild.
11057 * target.c (target_ranged_break_num_registers): Unconditionally
11059 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11060 Use TARGET_DEFAULT_RETURN.
11062 2014-02-19 Tom Tromey <tromey@redhat.com>
11064 * target-delegates.c: Rebuild.
11065 * target.c (target_fetch_registers): Unconditionally delegate.
11066 * target.h (struct target_ops) <to_fetch_registers>: Use
11067 TARGET_DEFAULT_NORETURN.
11069 2014-02-19 Tom Tromey <tromey@redhat.com>
11071 * target-delegates.c: Rebuild.
11072 * target.c (update_current_target): Don't inherit or default
11074 * target.h (struct target_ops) <to_stop>: Use
11075 TARGET_DEFAULT_IGNORE.
11077 2014-02-19 Tom Tromey <tromey@redhat.com>
11079 * target-delegates.c: Rebuild.
11080 * target.c (update_current_target): Don't inherit or default
11081 to_can_run_breakpoint_commands.
11082 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11083 Use TARGET_DEFAULT_RETURN.
11085 2014-02-19 Tom Tromey <tromey@redhat.com>
11087 * target-delegates.c: Rebuild.
11088 * target.c (update_current_target): Don't inherit or default
11089 to_supports_evaluation_of_breakpoint_conditions.
11090 * target.h (struct target_ops)
11091 <to_supports_evaluation_of_breakpoint_conditions>: Use
11092 TARGET_DEFAULT_RETURN.
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_augmented_libraries_svr4_read.
11099 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11100 Use TARGET_DEFAULT_RETURN.
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
11107 * target.h (struct target_ops) <to_can_use_agent>: 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 inherit or default
11115 * target.h (struct target_ops) <to_use_agent>: Use
11116 TARGET_DEFAULT_NORETURN.
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_traceframe_info.
11123 (return_null): Remove.
11124 * target.h (struct target_ops) <to_traceframe_info>: Use
11125 TARGET_DEFAULT_RETURN.
11127 2014-02-19 Tom Tromey <tromey@redhat.com>
11129 * target-delegates.c: Rebuild.
11130 * target.c (update_current_target): Don't inherit or default
11131 to_static_tracepoint_markers_by_strid.
11132 * target.h (struct target_ops)
11133 <to_static_tracepoint_markers_by_strid>: Use
11134 TARGET_DEFAULT_NORETURN.
11136 2014-02-19 Tom Tromey <tromey@redhat.com>
11138 * target-delegates.c: Rebuild.
11139 * target.c (update_current_target): Don't inherit or default
11140 to_static_tracepoint_marker_at.
11141 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11142 Use TARGET_DEFAULT_RETURN.
11144 2014-02-19 Tom Tromey <tromey@redhat.com>
11146 * target-delegates.c: Rebuild.
11147 * target.c (update_current_target): Don't inherit or default
11148 to_set_permissions.
11149 * target.h (struct target_ops) <to_set_permissions>: Use
11150 TARGET_DEFAULT_IGNORE.
11152 2014-02-19 Tom Tromey <tromey@redhat.com>
11154 * target-delegates.c: Rebuild.
11155 * target.c (update_current_target): Don't inherit or default
11156 to_get_tib_address.
11157 * target.h (struct target_ops) <to_get_tib_address>: Use
11158 TARGET_DEFAULT_NORETURN.
11160 2014-02-19 Tom Tromey <tromey@redhat.com>
11162 * target-delegates.c: Rebuild.
11163 * target.c (update_current_target): Don't inherit or default
11164 to_set_trace_notes.
11165 * target.h (struct target_ops) <to_set_trace_notes>: Use
11166 TARGET_DEFAULT_RETURN.
11168 2014-02-19 Tom Tromey <tromey@redhat.com>
11170 * target-delegates.c: Rebuild.
11171 * target.c (update_current_target): Don't initialize
11172 to_set_trace_buffer_size.
11173 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11174 TARGET_DEFAULT_IGNORE.
11176 2014-02-19 Tom Tromey <tromey@redhat.com>
11178 * target-delegates.c: Rebuild.
11179 * target.c (update_current_target): Don't inherit or default
11180 to_set_circular_trace_buffer.
11181 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11182 TARGET_DEFAULT_IGNORE.
11184 2014-02-19 Tom Tromey <tromey@redhat.com>
11186 * target-delegates.c: Rebuild.
11187 * target.c (update_current_target): Don't inherit or default
11188 to_set_disconnected_tracing.
11189 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11190 TARGET_DEFAULT_IGNORE.
11192 2014-02-19 Tom Tromey <tromey@redhat.com>
11194 * target-delegates.c: Rebuild.
11195 * target.c (update_current_target): Don't inherit or default
11196 to_get_min_fast_tracepoint_insn_len.
11197 (return_minus_one): Remove.
11198 * target.h (struct target_ops)
11199 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11201 2014-02-19 Tom Tromey <tromey@redhat.com>
11203 * target-delegates.c: Rebuild.
11204 * target.c (update_current_target): Don't inherit or default
11205 to_get_raw_trace_data.
11206 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11207 TARGET_DEFAULT_NORETURN.
11209 2014-02-19 Tom Tromey <tromey@redhat.com>
11211 * target-delegates.c: Rebuild.
11212 * target.c (update_current_target): Don't inherit or default
11213 to_upload_trace_state_variables.
11214 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11215 Use TARGET_DEFAULT_RETURN.
11217 2014-02-19 Tom Tromey <tromey@redhat.com>
11219 * target-delegates.c: Rebuild.
11220 * target.c (update_current_target): Don't inherit or default
11221 to_upload_tracepoints.
11222 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11223 TARGET_DEFAULT_RETURN.
11225 2014-02-19 Tom Tromey <tromey@redhat.com>
11227 * target-delegates.c: Rebuild.
11228 * target.c (update_current_target): Don't inherit or default
11229 to_save_trace_data.
11230 * target.h (struct target_ops) <to_save_trace_data>: Use
11231 TARGET_DEFAULT_NORETURN.
11233 2014-02-19 Tom Tromey <tromey@redhat.com>
11235 * target-delegates.c: Rebuild.
11236 * target.c (update_current_target): Don't inherit or default
11237 to_get_trace_state_variable_value.
11238 * target.h (struct target_ops)
11239 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11241 2014-02-19 Tom Tromey <tromey@redhat.com>
11243 * target-delegates.c: Rebuild.
11244 * target.c (update_current_target): Don't inherit or default
11246 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11248 2014-02-19 Tom Tromey <tromey@redhat.com>
11250 * target-delegates.c: Rebuild.
11251 * target.c (update_current_target): Don't inherit or default
11253 * target.h (struct target_ops) <to_trace_stop>: Use
11254 TARGET_DEFAULT_NORETURN.
11256 2014-02-19 Tom Tromey <tromey@redhat.com>
11258 * target-delegates.c: Rebuild.
11259 * target.c (update_current_target): Don't inherit or default
11260 to_get_tracepoint_status.
11261 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11262 TARGET_DEFAULT_NORETURN.
11264 2014-02-19 Tom Tromey <tromey@redhat.com>
11266 * target-delegates.c: Rebuild.
11267 * target.c (update_current_target): Don't inherit or default
11268 to_get_trace_status.
11269 * target.h (struct target_ops) <to_get_trace_status>: Use
11270 TARGET_DEFAULT_RETURN.
11272 2014-02-19 Tom Tromey <tromey@redhat.com>
11274 * target-delegates.c: Rebuild.
11275 * target.c (update_current_target): Don't inherit or default
11277 * target.h (struct target_ops) <to_trace_start>: Use
11278 TARGET_DEFAULT_NORETURN.
11280 2014-02-19 Tom Tromey <tromey@redhat.com>
11282 * target-delegates.c: Rebuild.
11283 * target.c (update_current_target): Don't inherit or default
11284 to_trace_set_readonly_regions.
11285 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11286 Use TARGET_DEFAULT_NORETURN.
11288 2014-02-19 Tom Tromey <tromey@redhat.com>
11290 * target-delegates.c: Rebuild.
11291 * target.c (update_current_target): Don't inherit or default
11292 to_disable_tracepoint.
11293 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11294 TARGET_DEFAULT_NORETURN.
11296 2014-02-19 Tom Tromey <tromey@redhat.com>
11298 * target-delegates.c: Rebuild.
11299 * target.c (update_current_target): Don't inherit or default
11300 to_enable_tracepoint.
11301 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11302 TARGET_DEFAULT_NORETURN.
11304 2014-02-19 Tom Tromey <tromey@redhat.com>
11306 * target-delegates.c: Rebuild.
11307 * target.c (update_current_target): Don't inherit or default
11308 to_download_trace_state_variable.
11309 * target.h (struct target_ops) <to_download_trace_state_variable>:
11310 Use TARGET_DEFAULT_NORETURN.
11312 2014-02-19 Tom Tromey <tromey@redhat.com>
11314 * target-delegates.c: Rebuild.
11315 * target.c (update_current_target): Don't inherit or default
11316 to_can_download_tracepoint.
11317 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11318 TARGET_DEFAULT_RETURN.
11320 2014-02-19 Tom Tromey <tromey@redhat.com>
11322 * target-delegates.c: Rebuild.
11323 * target.c (update_current_target): Don't inherit or default
11324 to_download_tracepoint.
11325 * target.h (struct target_ops) <to_download_tracepoint>: Use
11326 TARGET_DEFAULT_NORETURN.
11328 2014-02-19 Tom Tromey <tromey@redhat.com>
11330 * target-delegates.c: Rebuild.
11331 * target.c (update_current_target): Don't inherit or default
11333 * target.h (struct target_ops) <to_trace_init>: Use
11334 TARGET_DEFAULT_RETURN.
11336 2014-02-19 Tom Tromey <tromey@redhat.com>
11338 * target-delegates.c: Rebuild.
11339 * target.c (update_current_target): Don't inherit or default
11340 to_supports_string_tracing.
11341 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11342 TARGET_DEFAULT_RETURN.
11344 2014-02-19 Tom Tromey <tromey@redhat.com>
11346 * target-delegates.c: Rebuild.
11347 * target.c (update_current_target): Don't inherit or default
11348 to_supports_enable_disable_tracepoint.
11349 * target.h (struct target_ops)
11350 <to_supports_enable_disable_tracepoint>: Use
11351 TARGET_DEFAULT_RETURN.
11353 2014-02-19 Tom Tromey <tromey@redhat.com>
11355 * target-delegates.c: Rebuild.
11356 * target.c (update_current_target): Don't inherit or default
11357 to_supports_multi_process.
11358 * target.h (struct target_ops) <to_supports_multi_process>: Use
11359 TARGET_DEFAULT_RETURN.
11361 2014-02-19 Tom Tromey <tromey@redhat.com>
11363 * target-delegates.c: Rebuild.
11364 * target.c (update_current_target): Don't inherit or default
11365 to_get_ada_task_ptid.
11366 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11367 TARGET_DEFAULT_FUNC.
11369 2014-02-19 Tom Tromey <tromey@redhat.com>
11371 * target-delegates.c: Rebuild.
11372 * target.c (update_current_target): Don't inherit or default
11373 to_thread_architecture.
11374 * target.h (struct target_ops) <to_thread_architecture>: Use
11375 TARGET_DEFAULT_FUNC.
11377 2014-02-19 Tom Tromey <tromey@redhat.com>
11379 * target-delegates.c: Rebuild.
11380 * target.c (update_current_target): Don't inherit or default
11381 to_execution_direction.
11382 * target.h (struct target_ops) <to_execution_direction>: Use
11383 TARGET_DEFAULT_FUNC.
11385 2014-02-19 Tom Tromey <tromey@redhat.com>
11387 * target-delegates.c: Rebuild.
11388 * target.c (update_current_target): Don't inherit or default
11389 to_can_execute_reverse.
11390 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11391 TARGET_DEFAULT_RETURN.
11392 (target_can_execute_reverse): Unconditionally delegate.
11394 2014-02-19 Tom Tromey <tromey@redhat.com>
11396 * target-delegates.c: Rebuild.
11397 * target.c (update_current_target): Don't inherit or default
11399 (dummy_goto_bookmark): Remove.
11400 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11401 * target.h (struct target_ops) <to_goto_bookmark>: Use
11402 TARGET_DEFAULT_NORETURN.
11404 2014-02-19 Tom Tromey <tromey@redhat.com>
11406 * target-delegates.c: Rebuild.
11407 * target.c (update_current_target): Don't inherit or default
11409 (dummy_get_bookmark): Remove.
11410 (init_dummy_target): Don't inherit or default to_get_bookmark.
11411 * target.h (struct target_ops) <to_get_bookmark>: Use
11412 TARGET_DEFAULT_NORETURN
11414 2014-02-19 Tom Tromey <tromey@redhat.com>
11416 * target-delegates.c: Rebuild.
11417 * target.c (update_current_target): Don't inherit or default
11418 to_make_corefile_notes.
11419 (init_dummy_target): Don't initialize to_make_corefile_notes.
11420 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11421 TARGET_DEFAULT_FUNC.
11423 2014-02-19 Tom Tromey <tromey@redhat.com>
11425 * target-delegates.c: Rebuild.
11426 * target.c (update_current_target): Don't inherit or default
11427 to_find_memory_regions.
11428 (init_dummy_target): Don't initialize to_find_memory_regions.
11429 * target.h (struct target_ops) <to_find_memory_regions>: Use
11430 TARGET_DEFAULT_FUNC.
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11434 * target-delegates.c: Rebuild.
11435 * target.c (update_current_target): Don't inherit or default
11437 * target.h (struct target_ops) <to_log_command>: Use
11438 TARGET_DEFAULT_IGNORE.
11439 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
11446 * target.h (struct target_ops) <to_pid_to_exec_file>: 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
11454 (target_thread_name): Unconditionally delegate.
11455 * target.h (struct target_ops) <to_thread_name>: Use
11456 TARGET_DEFAULT_RETURN.
11458 2014-02-19 Tom Tromey <tromey@redhat.com>
11460 * target-delegates.c: Rebuild.
11461 * target.c (update_current_target): Don't inherit or default
11462 to_extra_thread_info.
11463 * target.h (struct target_ops) <to_extra_thread_info>: Use
11464 TARGET_DEFAULT_RETURN.
11466 2014-02-19 Tom Tromey <tromey@redhat.com>
11468 * target-delegates.c: Rebuild.
11469 * target.c (update_current_target): Don't inherit or default
11471 * target.h (struct target_ops) <to_has_exited>: Use
11472 TARGET_DEFAULT_RETURN..
11474 2014-02-19 Tom Tromey <tromey@redhat.com>
11476 * target-delegates.c: Rebuild.
11477 * target.c (update_current_target): Don't inherit or default
11478 to_set_syscall_catchpoint.
11479 (return_one): Remove.
11480 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11481 TARGET_DEFAULT_RETURN.
11483 2014-02-19 Tom Tromey <tromey@redhat.com>
11485 * target-delegates.c: Rebuild.
11486 * target.c (update_current_target): Don't inherit or default
11487 to_insert_exec_catchpoint.
11488 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11489 TARGET_DEFAULT_RETURN.
11491 2014-01-08 Tom Tromey <tromey@redhat.com>
11493 * target-delegates.c: Rebuild.
11494 * target.c (update_current_target): Don't inherit or default
11495 to_insert_exec_catchpoint.
11496 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11497 TARGET_DEFAULT_RETURN.
11499 2014-02-19 Tom Tromey <tromey@redhat.com>
11501 * target-delegates.c: Rebuild.
11502 * target.c (update_current_target): Don't inherit or default
11503 to_remove_vfork_catchpoint.
11504 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11505 TARGET_DEFAULT_RETURN.
11507 2014-02-19 Tom Tromey <tromey@redhat.com>
11509 * target-delegates.c: Rebuild.
11510 * target.c (update_current_target): Don't inherit or default
11511 to_insert_vfork_catchpoint.
11512 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11513 TARGET_DEFAULT_RETURN.
11515 2014-02-19 Tom Tromey <tromey@redhat.com>
11517 * target-delegates.c: Rebuild.
11518 * target.c (update_current_target): Don't inherit or default
11519 to_remove_fork_catchpoint.
11520 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11521 TARGET_DEFAULT_RETURN.
11523 2014-02-19 Tom Tromey <tromey@redhat.com>
11525 * target-delegates.c: Rebuild.
11526 * target.c (update_current_target): Don't inherit or default
11527 to_insert_fork_catchpoint.
11528 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11529 TARGET_DEFAULT_RETURN.
11531 2014-02-19 Tom Tromey <tromey@redhat.com>
11533 * target-delegates.c: Rebuild.
11534 * target.c (update_current_target): Don't inherit or default
11535 to_post_startup_inferior.
11536 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11537 TARGET_DEFAULT_IGNORE.
11539 2014-02-19 Tom Tromey <tromey@redhat.com>
11541 * target-delegates.c: Rebuild.
11542 * target.c (update_current_target): Don't inherit or default
11544 * target.h (struct target_ops) <to_load>: Use
11545 TARGET_DEFAULT_NORETURN.
11547 2014-02-19 Tom Tromey <tromey@redhat.com>
11549 * target-delegates.c: Rebuild.
11550 * target.c (update_current_target): Don't inherit or default
11552 * target.h (struct target_ops) <to_terminal_info>: Use
11553 TARGET_DEFAULT_FUNC.
11555 2014-02-19 Tom Tromey <tromey@redhat.com>
11557 * target-delegates.c: Rebuild.
11558 * target.c (update_current_target): Don't inherit or default
11559 to_terminal_save_ours.
11560 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11561 TARGET_DEFAULT_IGNORE.
11563 2014-02-19 Tom Tromey <tromey@redhat.com>
11565 * target-delegates.c: Rebuild.
11566 * target.c (update_current_target): Don't inherit or default
11568 * target.h (struct target_ops) <to_terminal_ours>: Use
11569 TARGET_DEFAULT_IGNORE.
11571 2014-02-19 Tom Tromey <tromey@redhat.com>
11573 * target-delegates.c: Rebuild.
11574 * target.c (update_current_target): Don't inherit or default
11575 to_terminal_ours_for_output.
11576 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11577 TARGET_DEFAULT_IGNORE.
11579 2014-02-19 Tom Tromey <tromey@redhat.com>
11581 * target-delegates.c: Rebuild.
11582 * target.c (update_current_target): Don't inherit or default
11583 to_terminal_inferior.
11584 * target.h (struct target_ops) <to_terminal_inferior>: Use
11585 TARGET_DEFAULT_IGNORE.
11587 2014-02-19 Tom Tromey <tromey@redhat.com>
11589 * target-delegates.c: Rebuild.
11590 * target.c (update_current_target): Don't inherit or default
11592 * target.h (struct target_ops) <to_terminal_init>: Use
11593 TARGET_DEFAULT_IGNORE.
11595 2014-02-19 Tom Tromey <tromey@redhat.com>
11597 * target-delegates.c: Rebuild.
11598 * target.c (update_current_target): Don't inherit or default
11599 to_can_accel_watchpoint_condition.
11600 * target.h (struct target_ops)
11601 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11603 2014-02-19 Tom Tromey <tromey@redhat.com>
11605 * target-delegates.c: Rebuild.
11606 * target.c (update_current_target): Don't inherit or default
11607 to_region_ok_for_hw_watchpoint.
11608 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11609 Use TARGET_DEFAULT_FUNC.
11611 2014-02-19 Tom Tromey <tromey@redhat.com>
11613 * target-delegates.c: Rebuild.
11614 * target.c (update_current_target): Don't inherit or default
11615 to_watchpoint_addr_within_range.
11616 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11617 Use TARGET_DEFAULT_FUNC.
11619 2014-02-19 Tom Tromey <tromey@redhat.com>
11621 * target-delegates.c: Rebuild.
11622 * target.c (update_current_target): Don't inherit or default
11623 to_remove_watchpoint.
11624 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11625 TARGET_DEFAULT_NORETURN.
11627 2014-02-19 Tom Tromey <tromey@redhat.com>
11629 * target-delegates.c: Rebuild.
11630 * target.c (update_current_target): Don't inherit or default
11631 to_insert_watchpoint.
11632 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11633 TARGET_DEFAULT_RETURN.
11635 2014-02-19 Tom Tromey <tromey@redhat.com>
11637 * target-delegates.c: Rebuild.
11638 * target.c (update_current_target): Don't inherit or default
11639 to_remove_hw_breakpoint.
11640 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11641 TARGET_DEFAULT_RETURN.
11643 2014-02-19 Tom Tromey <tromey@redhat.com>
11645 * target-delegates.c: Rebuild.
11646 * target.c (update_current_target): Don't inherit or default
11647 to_insert_hw_breakpoint.
11648 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11649 TARGET_DEFAULT_RETURN.
11651 2014-02-19 Tom Tromey <tromey@redhat.com>
11653 * target-delegates.c: Rebuild.
11654 * target.c (update_current_target): Don't inherit or default
11655 to_can_use_hw_breakpoint.
11656 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11657 TARGET_DEFAULT_RETURN.
11659 2014-02-19 Tom Tromey <tromey@redhat.com>
11661 * target-delegates.c: Rebuild.
11662 * target.c (update_current_target): Don't inherit or default
11664 * target.h (struct target_ops) <to_files_info>: Use
11665 TARGET_DEFAULT_IGNORE.
11667 2014-02-19 Tom Tromey <tromey@redhat.com>
11669 * target-delegates.c: Rebuild.
11670 * target.c (update_current_target): Don't inherit or default
11672 * target.h (struct target_ops) <to_store>: Use
11673 TARGET_DEFAULT_NORETURN.
11675 2014-02-19 Tom Tromey <tromey@redhat.com>
11677 * target-delegates.c: Rebuild.
11678 * target.c (update_current_target): Don't inherit or default
11680 * target.h (struct target_ops) <to_post_attach>: Use
11681 TARGET_DEFAULT_IGNORE.
11683 2014-02-19 Tom Tromey <tromey@redhat.com>
11685 * target-delegates.c: Rebuild.
11686 * target.c (update_current_target): Don't inherit or default
11688 (default_rcmd): New function.
11689 (do_monitor_command): Unconditionally delegate.
11690 * target.h (struct target_ops) <to_rmcd>: Use
11691 TARGET_DEFAULT_FUNC.
11693 2014-02-19 Tom Tromey <tromey@redhat.com>
11695 * target-delegates.c: Rebuild.
11696 * target.c (init_dummy_target): Don't initialize to_attach.
11697 (target_attach): Unconditionally delegate.
11698 * target.h (struct target_ops) <to_attach>: Use
11699 TARGET_DEFAULT_FUNC.
11701 2014-02-19 Tom Tromey <tromey@redhat.com>
11703 * target-delegates.c: Rebuild.
11704 * target.c (target_detach): Unconditionally delegate.
11705 (init_dummy_target): Don't initialize to_detach.
11706 * target.h (struct target_ops) <to_detach>: Use
11707 TARGET_DEFAULT_IGNORE.
11709 2014-02-19 Tom Tromey <tromey@redhat.com>
11711 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11713 (target_augmented_libraries_svr4_read): Add argument.
11714 * target.c (update_current_target): Update.
11715 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11718 2014-02-19 Tom Tromey <tromey@redhat.com>
11720 * target.h (struct target_ops) <to_call_history_range>: Add
11722 * target.c (target_call_history_range): Add argument.
11723 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11725 (record_btrace_call_history_from): Update.
11727 2014-02-19 Tom Tromey <tromey@redhat.com>
11729 * target.h (struct target_ops) <to_call_history_from>: Add
11731 * target.c (target_call_history_from): Add argument.
11732 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11735 2014-02-19 Tom Tromey <tromey@redhat.com>
11737 * target.h (struct target_ops) <to_call_history>: Add argument.
11738 * target.c (target_call_history): Add argument.
11739 * record-btrace.c (record_btrace_call_history): Add 'self'
11742 2014-02-19 Tom Tromey <tromey@redhat.com>
11744 * target.h (struct target_ops) <to_insn_history_range>: Add
11746 * target.c (target_insn_history_range): Add argument.
11747 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11749 (record_btrace_insn_history_from): Update.
11751 2014-02-19 Tom Tromey <tromey@redhat.com>
11753 * target.h (struct target_ops) <to_insn_history_from>: Add
11755 * target.c (target_insn_history_from): Add argument.
11756 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11759 2014-02-19 Tom Tromey <tromey@redhat.com>
11761 * target.h (struct target_ops) <to_insn_history>: Add argument.
11762 * target.c (target_insn_history): Add argument.
11763 * record-btrace.c (record_btrace_insn_history): Add 'self'
11766 2014-02-19 Tom Tromey <tromey@redhat.com>
11768 * target.h (struct target_ops) <to_goto_record>: Add argument.
11769 * target.c (target_goto_record): Add argument.
11770 * record-full.c (record_full_goto): Add 'self' argument.
11771 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11773 2014-02-19 Tom Tromey <tromey@redhat.com>
11775 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11776 * target.c (target_goto_record_end): Add argument.
11777 * record-full.c (record_full_goto_end): Add 'self' argument.
11778 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11780 2014-02-19 Tom Tromey <tromey@redhat.com>
11782 * target.h (struct target_ops) <to_goto_record_begin>: Add
11784 * target.c (target_goto_record_begin): Add argument.
11785 * record-full.c (record_full_goto_begin): Add 'self' argument.
11786 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11789 2014-02-19 Tom Tromey <tromey@redhat.com>
11791 * target.h (struct target_ops) <to_record_is_replaying>: Add
11793 * target.c (target_record_is_replaying): Add argument.
11794 * record-full.c (record_full_is_replaying): Add 'self' argument.
11795 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11797 (record_btrace_xfer_partial, record_btrace_store_registers)
11798 (record_btrace_prepare_to_store, record_btrace_resume)
11799 (record_btrace_wait, record_btrace_decr_pc_after_break)
11800 (record_btrace_find_new_threads, record_btrace_thread_alive):
11803 2014-02-19 Tom Tromey <tromey@redhat.com>
11805 * target.h (struct target_ops) <to_delete_record>: Add argument.
11806 * target.c (target_delete_record): Add argument.
11807 * record-full.c (record_full_delete): Add 'self' argument.
11809 2014-02-19 Tom Tromey <tromey@redhat.com>
11811 * target.h (struct target_ops) <to_save_record>: Add argument.
11812 * target.c (target_save_record): Add argument.
11813 * record-full.c (record_full_save): Add 'self' argument.
11814 (record_full_save): Add 'self' argument.
11816 2014-02-19 Tom Tromey <tromey@redhat.com>
11818 * target.h (struct target_ops) <to_info_record>: Add argument.
11819 * target.c (target_info_record): Add argument.
11820 * record.c (info_record_command): Add argument.
11821 * record-full.c (record_full_info): Add 'self' argument.
11822 * record-btrace.c (record_btrace_info): Add 'self' argument.
11824 2014-02-19 Tom Tromey <tromey@redhat.com>
11826 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11827 * target.c (target_stop_recording): Add argument.
11828 * record.c (record_stop): Add argument.
11829 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11832 2014-02-19 Tom Tromey <tromey@redhat.com>
11834 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11835 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11836 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11838 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11839 (_initialize_amd64_linux_nat): Use it.
11840 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11841 (_initialize_i386_linux_nat): Use it.
11843 2014-02-19 Tom Tromey <tromey@redhat.com>
11845 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11846 * target.c (target_teardown_btrace): Add argument.
11847 * remote.c (remote_teardown_btrace): Add 'self' argument.
11848 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11850 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11853 2014-02-19 Tom Tromey <tromey@redhat.com>
11855 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11856 * target.c (target_disable_btrace): Add argument.
11857 * remote.c (remote_disable_btrace): Add 'self' argument.
11858 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11860 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11863 2014-02-19 Tom Tromey <tromey@redhat.com>
11865 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11866 * target.c (target_enable_btrace): Add argument.
11867 * remote.c (remote_enable_btrace): Add 'self' argument.
11868 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11870 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11873 2014-02-19 Tom Tromey <tromey@redhat.com>
11875 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11876 (target_can_use_agent): Add argument.
11877 * target.c (update_current_target): Update.
11878 * remote.c (remote_can_use_agent): Add 'self' argument.
11879 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11881 2014-02-19 Tom Tromey <tromey@redhat.com>
11883 * target.h (struct target_ops) <to_use_agent>: Add argument.
11884 (target_use_agent): Add argument.
11885 * target.c (update_current_target): Update.
11886 * remote.c (remote_use_agent): Add 'self' argument.
11887 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11889 2014-02-19 Tom Tromey <tromey@redhat.com>
11891 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11892 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11893 (target_traceframe_info): Add argument.
11894 * target.c (update_current_target): Update.
11895 * remote.c (remote_traceframe_info): Add 'self' argument.
11896 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11898 2014-02-19 Tom Tromey <tromey@redhat.com>
11900 * target.h (target_static_tracepoint_markers_by_strid): Add
11902 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11904 * target.c (update_current_target): Update.
11905 * remote.c (struct target_ops)
11906 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11907 * linux-nat.c (struct target_ops)
11908 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11910 2014-02-19 Tom Tromey <tromey@redhat.com>
11912 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11914 (target_static_tracepoint_marker_at): Add argument.
11915 * target.c (update_current_target): Update.
11916 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11919 2014-02-19 Tom Tromey <tromey@redhat.com>
11921 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11922 (target_set_permissions): Add argument.
11923 * target.c (update_current_target): Update.
11924 * remote.c (remote_set_permissions): Add 'self' argument.
11925 (remote_start_remote): Update.
11927 2014-02-19 Tom Tromey <tromey@redhat.com>
11929 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11930 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11931 (target_get_tib_address): Add argument.
11932 * target.c (update_current_target): Update.
11933 * remote.c (remote_get_tib_address): Add 'self' argument.
11935 2014-02-19 Tom Tromey <tromey@redhat.com>
11937 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11938 (target_set_trace_notes): Add argument.
11939 * target.c (update_current_target): Update.
11940 * remote.c (remote_set_trace_notes): Add 'self' argument.
11942 2014-02-19 Tom Tromey <tromey@redhat.com>
11944 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11946 (target_set_trace_buffer_size): Add argument.
11947 * target.c (update_current_target): Update.
11948 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11950 2014-02-19 Tom Tromey <tromey@redhat.com>
11952 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11954 (target_set_circular_trace_buffer): Add argument.
11955 * target.c (update_current_target): Update.
11956 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11959 2014-02-19 Tom Tromey <tromey@redhat.com>
11961 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11963 (target_set_disconnected_tracing): Add argument.
11964 * target.c (update_current_target): Update.
11965 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11967 2014-02-19 Tom Tromey <tromey@redhat.com>
11969 * target.h (struct target_ops)
11970 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11971 (target_get_min_fast_tracepoint_insn_len): Add argument.
11972 * target.c (update_current_target): Update.
11973 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11976 2014-02-19 Tom Tromey <tromey@redhat.com>
11978 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11980 (target_get_raw_trace_data): Add argument.
11981 * target.c (update_current_target): Update.
11982 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11984 2014-02-19 Tom Tromey <tromey@redhat.com>
11986 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11988 (target_upload_trace_state_variables): Add argument.
11989 * target.c (update_current_target): Update.
11990 * remote.c (remote_upload_trace_state_variables): Add 'self'
11992 (remote_start_remote): Update.
11994 2014-02-19 Tom Tromey <tromey@redhat.com>
11996 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11998 (target_upload_tracepoints): Add argument.
11999 * target.c (update_current_target): Update.
12000 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12001 (remote_start_remote): Update.
12003 2014-02-19 Tom Tromey <tromey@redhat.com>
12005 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12006 (target_save_trace_data): Add argument.
12007 * target.c (update_current_target): Update.
12008 * remote.c (remote_save_trace_data): Add 'self' argument.
12010 2014-02-19 Tom Tromey <tromey@redhat.com>
12012 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12014 * target.h (struct target_ops)
12015 <to_get_trace_state_variable_value>: Add argument.
12016 (target_get_trace_state_variable_value): Add argument.
12017 * target.c (update_current_target): Update.
12018 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12020 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12022 2014-02-19 Tom Tromey <tromey@redhat.com>
12024 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12025 * target.h (struct target_ops) <to_trace_find>: Add argument.
12026 (target_trace_find): Add argument.
12027 * target.c (update_current_target): Update.
12028 * remote.c (remote_trace_find): Add 'self' argument.
12029 * ctf.c (ctf_trace_find): Add 'self' argument.
12031 2014-02-19 Tom Tromey <tromey@redhat.com>
12033 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12034 (target_trace_stop): Add argument.
12035 * target.c (update_current_target): Update.
12036 * remote.c (remote_trace_stop): Add 'self' argument.
12038 2014-02-19 Tom Tromey <tromey@redhat.com>
12040 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12041 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12043 (target_get_tracepoint_status): Add argument.
12044 * target.c (update_current_target): Update.
12045 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12047 2014-02-19 Tom Tromey <tromey@redhat.com>
12049 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12050 * target.h (struct target_ops) <to_get_trace_status>: Add
12052 (target_get_trace_status): Add argument.
12053 * target.c (update_current_target): Update.
12054 * remote.c (remote_get_trace_status): Add 'self' argument.
12055 (remote_start_remote, remote_can_download_tracepoint): Update.
12056 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12058 2014-02-19 Tom Tromey <tromey@redhat.com>
12060 * target.h (struct target_ops) <to_trace_start>: Add argument.
12061 (target_trace_start): Add argument.
12062 * target.c (update_current_target): Update.
12063 * remote.c (remote_trace_start): Add 'self' argument.
12065 2014-02-19 Tom Tromey <tromey@redhat.com>
12067 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12069 (target_trace_set_readonly_regions): Add argument.
12070 * target.c (update_current_target): Update.
12071 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12074 2014-02-19 Tom Tromey <tromey@redhat.com>
12076 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12078 (target_disable_tracepoint): Add argument.
12079 * target.c (update_current_target): Update.
12080 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12082 2014-02-19 Tom Tromey <tromey@redhat.com>
12084 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12086 (target_enable_tracepoint): Add argument.
12087 * target.c (update_current_target): Update.
12088 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12090 2014-02-19 Tom Tromey <tromey@redhat.com>
12092 * target.h (struct target_ops) <to_download_trace_state_variable>:
12094 (target_download_trace_state_variable): Add argument.
12095 * target.c (update_current_target): Update.
12096 * remote.c (remote_download_trace_state_variable): Add 'self'
12099 2014-02-19 Tom Tromey <tromey@redhat.com>
12101 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12103 (target_can_download_tracepoint): Add argument.
12104 * target.c (update_current_target): Update.
12105 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12107 2014-02-19 Tom Tromey <tromey@redhat.com>
12109 * target.h (struct target_ops) <to_download_tracepoint>: Add
12111 (target_download_tracepoint): Add argument.
12112 * target.c (update_current_target): Update.
12113 * remote.c (remote_download_tracepoint): Add 'self' argument.
12115 2014-02-19 Tom Tromey <tromey@redhat.com>
12117 * target.h (struct target_ops) <to_trace_init>: Add argument.
12118 (target_trace_init): Add argument.
12119 * target.c (update_current_target): Update.
12120 * remote.c (remote_trace_init): Add 'self' argument.
12122 2014-02-19 Tom Tromey <tromey@redhat.com>
12124 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12125 * target.c (target_fileio_readlink): Add argument.
12126 * remote.c (remote_hostio_readlink): Add 'self' argument.
12127 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12129 2014-02-19 Tom Tromey <tromey@redhat.com>
12131 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12132 * target.c (target_fileio_unlink): Add argument.
12133 * remote.c (remote_hostio_unlink): Add 'self' argument.
12134 (remote_file_delete): Update.
12135 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12137 2014-02-19 Tom Tromey <tromey@redhat.com>
12139 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12140 * target.c (target_fileio_close): Add argument.
12141 * remote.c (remote_hostio_close): Add 'self' argument.
12142 (remote_hostio_close_cleanup): Update.
12143 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12145 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12147 2014-02-19 Tom Tromey <tromey@redhat.com>
12149 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12150 * target.c (target_fileio_pread): Add argument.
12151 * remote.c (remote_hostio_pread): Add 'self' argument.
12152 (remote_bfd_iovec_pread, remote_file_get): Update.
12153 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12155 2014-02-19 Tom Tromey <tromey@redhat.com>
12157 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12158 * target.c (target_fileio_pwrite): Add argument.
12159 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12160 (remote_file_put): Update.
12161 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12163 2014-02-19 Tom Tromey <tromey@redhat.com>
12165 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12166 * target.c (target_fileio_open): Add argument.
12167 * remote.c (remote_hostio_open): Add 'self' argument.
12168 (remote_bfd_iovec_open): Add 'self' argument.
12169 (remote_file_put): Add 'self' argument.
12170 (remote_file_get): Add 'self' argument.
12171 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12173 2014-02-19 Tom Tromey <tromey@redhat.com>
12175 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12177 (target_can_run_breakpoint_commands): Add argument.
12178 * target.c (update_current_target): Update.
12179 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12181 (remote_insert_breakpoint): Add 'self' argument.
12182 (remote_insert_hw_breakpoint): Add 'self' argument.
12183 (remote_can_run_breakpoint_commands): Add 'self' argument.
12185 2014-02-19 Tom Tromey <tromey@redhat.com>
12187 * target.h (struct target_ops)
12188 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12189 (target_supports_evaluation_of_breakpoint_conditions): Add
12191 * target.c (update_current_target): Update.
12192 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12194 (remote_insert_breakpoint): Add 'self' argument.
12195 (remote_insert_hw_breakpoint): Add 'self' argument.
12196 (remote_supports_cond_breakpoints): Add 'self' argument.
12198 2014-02-19 Tom Tromey <tromey@redhat.com>
12200 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12202 (target_supports_string_tracing): Add argument.
12203 * target.c (update_current_target): Update.
12204 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12206 2014-02-19 Tom Tromey <tromey@redhat.com>
12208 * target.h (struct target_ops)
12209 <to_supports_disable_randomization>: Add argument.
12210 * target.c (find_default_supports_disable_randomization): Add
12212 (target_supports_disable_randomization): Add argument.
12213 (find_default_supports_disable_randomization): Add 'self'
12215 * remote.c (extended_remote_supports_disable_randomization): Add
12217 (remote_supports_disable_randomization): Add 'self' argument.
12218 (extended_remote_create_inferior): Update.
12219 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12222 2014-02-19 Tom Tromey <tromey@redhat.com>
12224 * target.h (struct target_ops)
12225 <to_supports_enable_disable_tracepoint>: Add argument.
12226 (target_supports_enable_disable_tracepoint): Add argument.
12227 * target.c (update_current_target): Update.
12228 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12231 2014-02-19 Tom Tromey <tromey@redhat.com>
12233 * target.h (struct target_ops) <to_supports_multi_process>: Add
12235 (target_supports_multi_process): Add argument.
12236 * target.c (update_current_target): Update.
12237 * remote.c (remote_supports_multi_process): Add 'self' argument.
12238 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12240 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12243 2014-02-19 Tom Tromey <tromey@redhat.com>
12245 * target.h (struct target_ops) <to_execution_direction>: Add
12247 (target_execution_direction): Add argument.
12248 * target.c (default_execution_direction): Add 'self' argument.
12249 * record-full.c (record_full_execution_direction): Add 'self'
12252 2014-02-19 Tom Tromey <tromey@redhat.com>
12254 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12256 (target_can_execute_reverse): Add argument.
12257 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12258 * record-full.c (record_full_can_execute_reverse): Add 'self'
12260 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12263 2014-02-19 Tom Tromey <tromey@redhat.com>
12265 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12266 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12268 (target_get_ada_task_ptid): Add argument.
12269 * target.c (update_current_target): Update.
12270 (default_get_ada_task_ptid): Add 'self' argument.
12271 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12272 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12273 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12275 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12277 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12279 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12281 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12282 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12285 2014-02-19 Tom Tromey <tromey@redhat.com>
12287 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12288 (target_goto_bookmark): Add argument.
12289 * target.c (dummy_goto_bookmark): Add 'self' argument.
12290 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12292 2014-02-19 Tom Tromey <tromey@redhat.com>
12294 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12295 (target_get_bookmark): Add argument.
12296 * target.c (dummy_get_bookmark): Add 'self' argument.
12297 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12299 2014-02-19 Tom Tromey <tromey@redhat.com>
12301 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12303 (target_make_corefile_notes): Add argument.
12304 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12305 * procfs.c (procfs_make_note_section): Add 'self' argument.
12306 (procfs_make_note_section): Add 'self' argument.
12307 (procfs_make_note_section): Add 'self' argument.
12308 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12310 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12311 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12312 * exec.c (exec_make_note_section): Add 'self' argument.
12313 (exec_make_note_section): Add 'self' argument.
12315 2014-02-19 Tom Tromey <tromey@redhat.com>
12317 * target.h (struct target_ops) <to_find_memory_regions>: Add
12319 (target_find_memory_regions): Add argument.
12320 * target.c (dummy_find_memory_regions): Add 'self' argument.
12321 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12322 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12323 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12324 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12325 * exec. (exec_do_find_memory_regions): New global.
12326 (exec_set_find_memory_regions): Rewrite.
12327 (exec_find_memory_regions): New function.
12328 (init_exec_ops): Use exec_find_memory_regions.
12330 2014-02-19 Tom Tromey <tromey@redhat.com>
12332 * target.h (struct target_ops) <to_supports_non_stop>: Add
12334 * target.c (find_default_supports_non_stop): Add argument.
12335 (target_supports_non_stop): Add argument.
12336 (find_default_supports_non_stop): Add 'self' argument.
12337 * remote.c (remote_supports_non_stop): Add 'self' argument.
12338 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12340 2014-02-19 Tom Tromey <tromey@redhat.com>
12342 * target.h (struct target_ops) <to_log_command>: Add argument.
12343 (target_log_command): Add argument.
12344 * serial.h (serial_log_command): Add 'self' argument.
12345 * serial.c (serial_log_command): Add 'self' argument.
12347 2014-02-19 Tom Tromey <tromey@redhat.com>
12349 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12350 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12352 (target_pid_to_exec_file): Add argument.
12353 * target.c (debug_to_pid_to_exec_file): Add argument.
12354 (update_current_target): Update.
12355 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12356 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12357 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12358 (linux_handle_extended_wait): Update.
12359 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12360 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12361 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12362 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12364 2014-02-19 Tom Tromey <tromey@redhat.com>
12366 * target.h (struct target_ops) <to_rcmd>: Add argument.
12367 (target_rcmd): Add argument.
12368 * target.c (debug_to_rcmd): Add argument.
12369 (update_current_target, do_monitor_command): Update.
12370 * remote.c (remote_rcmd): Add 'self' argument.
12371 * monitor.c (monitor_rcmd): Add 'self' argument.
12373 2014-02-19 Tom Tromey <tromey@redhat.com>
12375 * windows-nat.c (windows_stop): Add 'self' argument.
12376 * target.h (struct target_ops) <to_stop>: Add argument.
12377 * target.c (target_stop): Add argument.
12378 (debug_to_stop): Add argument.
12379 (update_current_target): Update.
12380 * remote.c (remote_stop): Add 'self' argument.
12381 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12382 (gdbsim_cntrl_c): Update.
12383 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12384 * procfs.c (procfs_stop): Add 'self' argument.
12385 * nto-procfs.c (procfs_stop): Add 'self' argument.
12386 * monitor.c (monitor_stop): Add 'self' argument.
12387 (monitor_open): Update.
12388 * linux-nat.c (linux_nat_stop): Add argument.
12389 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12390 * gnu-nat.c (gnu_stop): Add 'self' argument.
12391 * darwin-nat.c (darwin_stop): Add 'self' argument.
12393 2014-02-19 Tom Tromey <tromey@redhat.com>
12395 * target.h (struct target_ops) <to_thread_name>: Add argument.
12396 * target.c (target_thread_name): Add argument.
12397 (update_current_target): Update.
12398 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12400 2014-02-19 Tom Tromey <tromey@redhat.com>
12402 * target.h (struct target_ops) <to_extra_thread_info>: Add
12404 (target_extra_thread_info): Add argument.
12405 * target.c (update_current_target): Update.
12406 * remote.c (remote_threads_extra_info): Add 'self' argument.
12407 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12409 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12410 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12411 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12413 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12415 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12417 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12420 2014-02-19 Tom Tromey <tromey@redhat.com>
12422 * target.h (struct target_ops) <to_program_signals>: Add argument.
12423 * target.c (target_program_signals): Add argument.
12424 * remote.c (remote_program_signals): Add 'self' argument.
12426 2014-02-19 Tom Tromey <tromey@redhat.com>
12428 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12429 * target.c (target_pass_signals): Add argument.
12430 * remote.c (remote_pass_signals): Add 'self' argument.
12431 (remote_start_remote): Update.
12432 * procfs.c (procfs_pass_signals): Add 'self' argument.
12433 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12434 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12435 (linux_nat_create_inferior, linux_nat_attach): Update.
12437 2014-02-19 Tom Tromey <tromey@redhat.com>
12439 * windows-nat.c (windows_can_run): Add 'self' argument.
12440 * target.h (struct target_ops) <to_can_run>: Add argument.
12441 (target_can_run): Add argument.
12442 * target.c (debug_to_can_run): Add argument.
12443 (update_current_target): Update.
12444 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12445 * inf-child.c (inf_child_can_run): Add 'self' argument.
12446 * go32-nat.c (go32_can_run): Add 'self' argument.
12448 2014-02-19 Tom Tromey <tromey@redhat.com>
12450 * target.h (struct target_ops) <to_has_exited>: Add argument.
12451 (target_has_exited): Add argument.
12452 * target.c (debug_to_has_exited): Add argument.
12453 (update_current_target): Update.
12455 2014-02-19 Tom Tromey <tromey@redhat.com>
12457 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12459 (target_set_syscall_catchpoint): Add argument.
12460 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12462 * target.c (update_current_target): Update.
12464 2014-02-19 Tom Tromey <tromey@redhat.com>
12466 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12468 (target_remove_exec_catchpoint): Add argument.
12469 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12470 (update_current_target): Update.
12471 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12474 2014-02-19 Tom Tromey <tromey@redhat.com>
12476 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12478 (target_insert_exec_catchpoint): Add argument.
12479 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12480 (update_current_target): Update.
12481 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12484 2014-02-19 Tom Tromey <tromey@redhat.com>
12486 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12488 (target_remove_vfork_catchpoint): Add argument.
12489 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12490 (update_current_target): Update.
12491 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12494 2014-02-19 Tom Tromey <tromey@redhat.com>
12496 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12498 (target_insert_vfork_catchpoint): Add argument.
12499 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12500 (update_current_target): Update.
12501 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12504 2014-02-19 Tom Tromey <tromey@redhat.com>
12506 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12508 (target_remove_fork_catchpoint): Add argument.
12509 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12510 (update_current_target): Update.
12511 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12514 2014-02-19 Tom Tromey <tromey@redhat.com>
12516 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12518 (target_insert_fork_catchpoint): Add argument.
12519 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12520 (update_current_target): Update.
12521 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12524 2014-02-19 Tom Tromey <tromey@redhat.com>
12526 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12528 (target_post_startup_inferior): Add argument.
12529 * target.c (debug_to_post_startup_inferior): Add argument.
12530 (update_current_target): Update.
12531 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12533 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12535 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12537 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12539 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12541 (super_post_startup_inferior): Likewise.
12542 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12544 (super_post_startup_inferior): Likewise.
12545 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12546 Add 'self' argument.
12547 (super_post_startup_inferior): Likewise.
12549 2014-02-19 Tom Tromey <tromey@redhat.com>
12551 * target.h (struct target_ops) <to_load>: Add argument.
12552 * target.c (target_load): Add argument.
12553 (debug_to_load): Add argument.
12554 (update_current_target): Update.
12555 * remote.c (remote_load): Add 'self' argument.
12556 * remote-sim.c (gdbsim_load): Add 'self' argument.
12557 * remote-mips.c (mips_load): Add 'self' argument.
12558 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12559 * monitor.c (monitor_load): Add 'self' argument.
12560 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12562 2014-02-19 Tom Tromey <tromey@redhat.com>
12564 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12565 (target_terminal_info): Add argument.
12566 * target.c (debug_to_terminal_info): Add argument.
12567 (default_terminal_info): Likewise.
12568 * inflow.c (child_terminal_info): Add 'self' argument.
12569 * inferior.h (child_terminal_info): Add 'self' argument.
12570 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12572 2014-02-19 Tom Tromey <tromey@redhat.com>
12574 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12576 (target_terminal_save_ours): Add argument.
12577 * target.c (debug_to_terminal_save_ours): Add argument.
12578 (update_current_target): Update.
12579 * inflow.c (terminal_save_ours): Add 'self' argument.
12580 * inferior.h (terminal_save_ours): Add 'self' argument.
12582 2014-02-19 Tom Tromey <tromey@redhat.com>
12584 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12585 (target_terminal_ours): Add argument.
12586 * target.c (debug_to_terminal_ours): Add argument.
12587 (update_current_target): Update.
12588 * remote.c (remote_terminal_ours): Add 'self' argument.
12589 (remote_close): Update.
12590 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12591 * inflow.c (terminal_ours): Add 'self' argument.
12592 * inferior.h (terminal_ours): Add 'self' argument.
12593 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12595 2014-02-19 Pedro Alves <palves@redhat.com>
12596 Tom Tromey <tromey@redhat.com>
12598 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12600 (target_terminal_ours_for_output): Add argument.
12601 * target.c (debug_to_terminal_ours_for_output): Add argument.
12602 (update_current_target): Update.
12603 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12604 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12605 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12607 2014-02-19 Tom Tromey <tromey@redhat.com>
12609 * target.h (struct target_ops) <to_terminal_inferior>: Add
12611 * target.c (target_terminal_inferior): Add argument.
12612 (update_current_target): Update.
12613 * remote.c (remote_terminal_inferior): Add 'self' argument.
12614 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12615 * inflow.c (terminal_inferior): Add 'self' argument.
12616 * inferior.h (terminal_inferior): Add 'self' argument.
12617 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12618 (go32_terminal_inferior): Add 'self' argument.
12620 2014-02-19 Tom Tromey <tromey@redhat.com>
12622 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12623 (target_terminal_init): Add argument.
12624 * target.c (debug_to_terminal_init): Add argument.
12625 (update_current_target): Update.
12626 * inflow.c (terminal_init_inferior): Add 'self' argument.
12627 * inferior.h (terminal_init_inferior): Add 'self' argument.
12628 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12629 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12631 2014-02-19 Tom Tromey <tromey@redhat.com>
12633 * target.h (struct target_ops)
12634 <to_can_accel_watchpoint_condition>: Add argument.
12635 (target_can_accel_watchpoint_condition): Add argument.
12636 * target.c (debug_to_can_accel_watchpoint_condition): Add
12638 (update_current_target): Update.
12639 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12642 2014-02-19 Tom Tromey <tromey@redhat.com>
12644 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12646 (target_region_ok_for_hw_watchpoint): Add argument.
12647 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12648 (default_region_ok_for_hw_watchpoint): Add argument.
12649 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12650 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12652 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12654 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12656 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12658 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12660 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12662 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12663 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12665 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12666 Add 'self' argument.
12668 2014-02-19 Tom Tromey <tromey@redhat.com>
12670 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12672 (target_insert_watchpoint): Add argument.
12673 * target.c (debug_to_insert_watchpoint): Add argument.
12674 (update_current_target): Update.
12675 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12676 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12677 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12678 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12679 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12680 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12682 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12683 (procfs_insert_hw_watchpoint): Add 'self' argument.
12684 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12686 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12688 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12690 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12691 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12693 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12696 2014-02-19 Tom Tromey <tromey@redhat.com>
12698 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12700 (target_remove_watchpoint): Add argument.
12701 * target.c (debug_to_remove_watchpoint): Add argument.
12702 (update_current_target): Update.
12703 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12704 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12705 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12706 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12707 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12708 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12710 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12711 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12713 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12715 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12717 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12718 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12720 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12723 2014-02-19 Tom Tromey <tromey@redhat.com>
12725 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12727 (target_remove_hw_breakpoint): Add argument.
12728 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12729 (update_current_target): Update.
12730 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12731 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12733 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12734 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12736 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12739 2014-02-19 Tom Tromey <tromey@redhat.com>
12741 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12743 (target_insert_hw_breakpoint): Add argument.
12744 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12745 (update_current_target): Update.
12746 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12747 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12749 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12750 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12751 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12753 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12756 2014-02-19 Tom Tromey <tromey@redhat.com>
12758 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12760 (target_can_use_hardware_watchpoint): Add argument.
12761 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12762 (update_current_target): Update.
12763 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12765 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12767 * remote.c (remote_check_watch_resources): Add 'self' argument.
12768 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12769 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12771 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12772 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12774 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12776 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12778 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12780 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12782 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12784 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12785 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12787 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12790 2014-02-19 Tom Tromey <tromey@redhat.com>
12792 * target.h (struct target_ops) <to_post_attach>: Add argument.
12793 (target_post_attach): Add argument.
12794 * target.c (debug_to_post_attach): Add argument.
12795 (update_current_target): Update.
12796 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12797 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12798 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12799 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12800 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12802 2014-02-19 Tom Tromey <tromey@redhat.com>
12804 * windows-nat.c (windows_close): Add 'self' argument.
12805 * tracepoint.c (tfile_close): Add 'self' argument.
12806 * target.h (struct target_ops) <to_close>: Add argument.
12807 * target.c (target_close): Add argument.
12808 (update_current_target): Update.
12809 * remote.c (remote_close): Add 'self' argument.
12810 * remote-sim.c (gdbsim_close): Add 'self' argument.
12811 * remote-mips.c (mips_close): Add 'self' argument.
12812 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12813 * record-full.c (record_full_close): Add 'self' argument.
12814 * record-btrace.c (record_btrace_close): Add 'self' argument.
12815 * monitor.h (monitor_close): Add 'self' argument.
12816 * monitor.c (monitor_close): Add 'self' argument.
12817 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12818 * linux-nat.c (linux_nat_close): Add argument.
12819 * go32-nat.c (go32_close): Add 'self' argument.
12820 * exec.c (exec_close_1): Add 'self' argument.
12821 * ctf.c (ctf_close): Add 'self' argument.
12822 * corelow.c (core_close): Add 'self' argument.
12823 (core_close_cleanup): Update.
12824 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12825 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12827 2014-02-19 Tom Tromey <tromey@redhat.com>
12829 * remote.c (remote_load): New function.
12830 (init_remote_ops): Use it.
12832 2014-02-19 Tom Tromey <tromey@redhat.com>
12834 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12836 * common/linux-btrace.h (linux_supports_btrace): Update.
12837 * remote.c (remote_supports_btrace): Add "self" argument.
12838 * target-delegates.c: Rebuild.
12839 * target.c (target_supports_btrace): Remove.
12840 * target.h (struct target_ops) <to_supports_btrace>: Add
12841 target_ops argument.
12842 (target_supports_btrace): New define.
12844 2014-02-19 Tom Tromey <tromey@redhat.com>
12846 * record-full.c (record_full_beneath_to_resume_ops)
12847 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12848 (record_full_beneath_to_wait)
12849 (record_full_beneath_to_store_registers_ops)
12850 (record_full_beneath_to_store_registers)
12851 (record_full_beneath_to_xfer_partial_ops)
12852 (record_full_beneath_to_xfer_partial)
12853 (record_full_beneath_to_insert_breakpoint_ops)
12854 (record_full_beneath_to_insert_breakpoint)
12855 (record_full_beneath_to_remove_breakpoint_ops)
12856 (record_full_beneath_to_remove_breakpoint)
12857 (record_full_beneath_to_stopped_by_watchpoint)
12858 (record_full_beneath_to_stopped_data_address)
12859 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12860 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12861 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12862 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12863 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12864 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12865 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12866 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12867 (record_full_resume, record_full_wait_1)
12868 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12869 (record_full_store_registers, record_full_xfer_partial)
12870 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12871 (record_full_async, record_full_core_xfer_partial): Use target
12873 * target-delegates.c: Rebuild.
12874 * target.c (current_xfer_partial): Remove.
12875 (update_current_target): Do not INHERIT or de_fault
12876 to_insert_breakpoint, to_remove_breakpoint,
12877 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12878 to_is_async_p, to_async. Do not set to_xfer_partial field.
12879 (default_xfer_partial): Simplify.
12880 (current_xfer_partial): Remove.
12881 (target_wait, target_resume): Simplify.
12882 (find_default_can_async_p, find_default_is_async_p): Update.
12883 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12884 to_xfer_partial, to_stopped_by_watchpoint,
12885 to_stopped_data_address.
12886 (target_store_registers): Simplify.
12887 (forward_target_remove_breakpoint)
12888 (forward_target_insert_breakpoint): Remove.
12889 (target_remove_breakpoint, target_insert_breakpoint)
12890 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12891 * target.h (struct target_ops) <to_resume, to_wait,
12892 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12893 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12894 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12896 (forward_target_remove_breakpoint)
12897 (forward_target_insert_breakpoint): Remove.
12898 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12900 (record_btrace_insert_breakpoint): Delegate directly.
12902 2014-02-19 Tom Tromey <tromey@redhat.com>
12905 * target-delegates.c: New file.
12906 * target.c: Include target-delegates.c.
12907 (init_dummy_target): Call install_dummy_methods.
12908 (complete_target_initialization): Call install_delegators.
12909 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12910 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12911 * make-target-delegates: New file.
12913 2014-02-19 Tom Tromey <tromey@redhat.com>
12915 * record.c (find_record_target): Use find_target_at.
12916 * target.c (find_target_at): New function.
12917 * target.h (find_target_at): Declare.
12919 2014-02-19 Tom Tromey <tromey@redhat.com>
12921 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12922 Add 'ops' argument.
12923 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12925 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12926 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12928 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12930 * linux-nat.c (save_sigtrap): Update.
12931 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12932 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12933 (linux_nat_close): Update.
12934 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12936 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12938 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12939 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12940 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12941 (tmp_to_async): Add 'ops' argument.
12942 (record_full_stopped_by_watchpoint, record_full_async)
12943 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12945 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12946 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12947 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12948 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12949 (remote_is_async_p, remote_async): Add 'ops' argument.
12950 (remote_stopped_data_address): Update.
12951 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12952 * target.c (update_current_target)
12953 (find_default_can_async_p, find_default_is_async_p): Update.
12954 (init_dummy_target): Update.
12955 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12956 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12957 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12958 (target_can_async_p, target_is_async_p, target_async)
12959 (target_stopped_by_watchpoint): Update.
12961 2014-02-19 Yao Qi <yao@codesourcery.com>
12964 * gdbarch.sh: Remove startup_gdbarch.
12965 * gdbarch.c: Regenerated.
12966 * gdbarch.h: Likewise.
12968 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12970 * rl78-tdep.c (rl78_g10_register_name): New function.
12971 (rl78_return_value): Add g10 support.
12972 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12975 2014-02-17 Doug Evans <xdje42@gmail.com>
12977 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12978 (SUBDIR_GUILE_SRCS): Ditto.
12979 (scm-gsmob.o): Ditto.
12981 2014-02-17 Yao Qi <yao@codesourcery.com>
12983 * gnu-nat.c (ILL_RPC): Declare defined function.
12985 2014-02-17 Yao Qi <yao@codesourcery.com>
12987 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12988 mach_msg_type_number_t.
12989 (gnu_write_inferior): Likewise.
12991 2014-02-17 Yao Qi <yao@codesourcery.com>
12993 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12995 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12996 (inf_validate_procs, inf_signal): Likewise.
12997 (S_exception_raise_request): Likewise.
12998 (do_mach_notify_dead_name): Likewise.
12999 (steal_exc_port): Likewise.
13000 (gnu_read_inferior): Change 'copy_count''s type to
13001 mach_msg_type_number_t.
13002 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13005 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13007 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13008 flag. Adjust all users; in particular...
13009 (gnu_wait): ..., don't decrement its value in here...
13010 (gnu_create_inferior): ..., and instead set the flag in here,
13011 around the startup_inferior call, and call that one with
13012 START_INFERIOR_TRAPS_EXPECTED.
13014 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13015 (ILL_RPC): ... new macro.
13016 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13017 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13018 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13019 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13020 functions with ILL_RPC macro.
13021 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13022 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13023 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13024 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13025 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13026 (S_proc_getlogin_reply, S_proc_getsid_reply)
13027 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13028 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13029 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13030 (S_proc_getnports_reply, S_proc_is_important_reply)
13031 (S_proc_get_code_reply): New stub functions, generated with
13034 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13035 collected the type check structures.
13037 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13039 2014-02-14 Doug Evans <dje@google.com>
13041 * target.c (target_write_partial): Fix result type.
13043 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13045 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13046 the proper offsets to access fpregset_t.
13048 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13050 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13051 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13052 * h8300-tdep.c (setmachinelist): Remove global.
13053 * hppa-tdep.c (hppa_sigtramp): Remove global.
13054 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13055 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13056 * ravenscar-thread.c (update_target_observer): Remove global.
13057 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13059 2014-02-12 Tom Tromey <tromey@redhat.com>
13061 * common/rsp-low.c: Update comments.
13062 * common/rsp-low.h: Update comments.
13064 2014-02-12 Tom Tromey <tromey@redhat.com>
13066 * common/rsp-low.c (convert_ascii_to_int): Remove.
13067 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13069 2014-02-12 Tom Tromey <tromey@redhat.com>
13071 * common/rsp-low.h (unhexify): Don't declare.
13072 * common/rsp-low.c (unhexify): Remove.
13074 2014-02-12 Tom Tromey <tromey@redhat.com>
13076 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13077 * common/rsp-low.c (convert_int_to_ascii): Remove.
13079 2014-02-12 Tom Tromey <tromey@redhat.com>
13081 * common/rsp-low.h (hexify): Don't declare.
13082 * common/rsp-low.c (hexify): Remove.
13084 2014-02-12 Tom Tromey <tromey@redhat.com>
13086 * common/rsp-low.c (hexify): Never take strlen of argument.
13088 2014-02-12 Tom Tromey <tromey@redhat.com>
13090 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13091 * remote.c (extended_remote_run, remote_rcmd)
13092 (remote_download_trace_state_variable, remote_save_trace_data)
13093 (remote_set_trace_notes): Update.
13094 * tracepoint.c (encode_source_string, tfile_write_status)
13095 (tfile_write_uploaded_tsv): Update.
13097 2014-02-12 Tom Tromey <tromey@redhat.com>
13099 * tracepoint.c: Include rsp-low.h.
13100 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13101 * remote.c: Include rsp-low.h.
13102 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13103 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13104 (remote_unescape_input): Move to common/rsp-low.c.
13105 * common/rsp-low.h: New file.
13106 * common/rsp-low.c: New file.
13107 * Makefile.in (SFILES): Add common/rsp-low.c.
13108 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13109 (COMMON_OBS): Add rsp-low.o.
13110 (rsp-low.o): New target.
13112 2014-02-12 Tom Tromey <tromey@redhat.com>
13114 * utils.h: Include print-utils.h.
13115 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13116 (int_string, core_addr_to_string, core_addr_to_string_nz)
13117 (hex_string, hex_string_custom): Don't declare.
13118 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13119 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13120 (hex_string_custom, int_string, core_addr_to_string)
13121 (core_addr_to_string_nz, host_address_to_string): Move to
13122 common/print-utils.c.
13123 * common/print-utils.h: New file.
13124 * common/print-utils.c: New file
13125 * Makefile.in (SFILES): Add common/print-utils.c.
13126 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13127 (COMMON_OBS): Add print-utils.o.
13128 (print-utils.o): New target.
13130 2014-02-12 Tom Tromey <tromey@redhat.com>
13132 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13134 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13136 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13138 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13140 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13141 if a PT_IO ptrace request returns sucessfully but indicates that 0
13142 bytes were transferred.
13144 2014-02-12 Pedro Alves <palves@redhat.com>
13145 Kevin Buettner <kevinb@redhat.com>
13147 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13148 TYPE_INSTANCE_FLAG_CODE_SPACE.
13150 2014-02-12 Pedro Alves <palves@redhat.com>
13152 * h8300-tdep.c (pseudo_from_raw_register)
13153 (raw_from_pseudo_register): New functions.
13154 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13157 2014-02-12 Pedro Alves <palves@redhat.com>
13159 * h8300-tdep.c (h8300_register_sim_regno): New function.
13160 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13161 gdbarch_register_sim_regno hook.
13163 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13165 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13167 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13169 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13171 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13173 * obsd-tdep.h (obsd_init_abi): New prototype.
13174 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13175 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13176 (obsd_init_abi): New functions.
13177 * i386obsd-tdep.c: Include "obsd-tdep.h".
13178 (i386obsd_init_abi): Call obsd_init_abi.
13179 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13180 (amd64obsd_init_abi): Call obsd_init_abi.
13181 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13182 obsd-tdep.c to gdb_target_obs.
13184 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13186 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13187 double float arguments to 16-byte in the argument slots.
13189 2014-02-11 Doug Evans <xdje42@gmail.com>
13191 * configure.ac: Don't crash if pkg-config is not found and guile
13192 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13194 * configure: Regenerate.
13196 2014-02-11 Yao Qi <yao@codesourcery.com>
13198 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13199 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13200 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13201 * gnu-nat.c (gnu_xfer_memory): Likewise.
13202 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13203 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13204 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13205 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13207 2014-02-11 Yao Qi <yao@codesourcery.com>
13209 * target.h (enum target_xfer_error): Rename to ...
13210 (enum target_xfer_status): ... it. New. All users updated.
13211 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13213 (TARGET_XFER_STATUS_ERROR_P): New macro.
13214 (target_xfer_error_to_string): Remove declaration.
13215 (target_xfer_status_to_string): Declare.
13216 (target_xfer_partial_ftype): Adjust it.
13217 (struct target_ops) <to_xfer_partial>: Return
13218 target_xfer_status. Add argument xfered_len. Update
13220 * target.c (target_xfer_error_to_string): Rename to ...
13221 (target_xfer_status_to_string): ... it. New. All callers
13223 (target_read_live_memory): Likewise. Call target_xfer_partial
13224 instead of target_read.
13225 (memory_xfer_live_readonly_partial): Return
13226 target_xfer_status. Add argument xfered_len.
13227 (raw_memory_xfer_partial): Likewise.
13228 (memory_xfer_partial_1): Likewise.
13229 (memory_xfer_partial): Likewise.
13230 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13231 properly. Update debug message.
13232 (default_xfer_partial, current_xfer_partial): Likewise.
13233 (target_write_partial): Likewise.
13234 (target_read_partial): Likewise. All callers updated.
13235 (read_whatever_is_readable): Likewise.
13236 (target_write_with_progress): Likewise.
13237 (target_read_alloc_1): Likewise.
13239 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13240 * auxv.c (procfs_xfer_auxv): Likewise.
13241 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13242 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13243 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13244 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13245 * corefile.c (read_memory): Adjust.
13246 * corelow.c (core_xfer_partial): Likewise.
13247 * ctf.c (ctf_xfer_partial): Likewise.
13248 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13250 (darwin_xfer_partial): Likewise.
13251 * exec.c (section_table_xfer_memory_partial): Likewise. All
13253 (exec_xfer_partial): Likewise.
13254 * exec.h (section_table_xfer_memory_partial): Update
13256 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13258 (gnu_xfer_partial): Likewise.
13259 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13260 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13261 (ia64_hpux_xfer_solib_got): Likewise.
13262 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13263 type of 'partial_len' to ULONGEST.
13264 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13265 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13266 (linux_nat_xfer_partial): Likewise.
13267 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13268 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13269 * monitor.c (monitor_xfer_memory): Likewise.
13270 (monitor_xfer_partial): Likewise.
13271 * procfs.c (procfs_xfer_partial): Likewise.
13272 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13273 * record-full.c (record_full_xfer_partial): Likewise.
13274 (record_full_core_xfer_partial): Likewise.
13275 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13276 (gdbsim_xfer_partial): Likewise.
13277 * remote.c (remote_write_bytes_aux): Likewise. All callers
13279 (remote_write_bytes, remote_read_bytes): Likewise. All
13281 (remote_flash_erase): Likewise. All callers updated.
13282 (remote_write_qxfer): Likewise. All callers updated.
13283 (remote_read_qxfer): Likewise. All callers updated.
13284 (remote_xfer_partial): Likewise.
13285 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13286 (rs6000_xfer_shared_libraries): Likewise.
13287 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13288 (sol_thread_xfer_partial): Likewise.
13289 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13290 (sparc_xfer_partial): Likewise.
13291 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13293 (spu_xfer_partial): Likewise.
13294 * spu-multiarch.c (spu_xfer_partial): Likewise.
13295 * tracepoint.c (tfile_xfer_partial): Likewise.
13296 * windows-nat.c (windows_xfer_memory): Likewise.
13297 (windows_xfer_shared_libraries): Likewise.
13298 (windows_xfer_partial): Likewise.
13299 * valprint.c: Replace 'target_xfer_error' with
13300 'target_xfer_status' in comments.
13302 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13304 Checked in by Joel Brobecker <brobecker@adacore.com>.
13305 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13307 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13309 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13310 function parameters.
13312 2014-02-10 Will Newton <will.newton@linaro.org>
13314 * elfread.c (elf_rel_plt_read): Look for a .got section if
13315 looking up .got.plt fails.
13316 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13317 on address passed to elf_gnu_ifunc_record_cache.
13318 (elf_gnu_ifunc_resolve_addr): Likewise.
13319 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13321 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13323 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13324 (X_RETTURN): New macro.
13325 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13327 * sparc64-tdep.c (sparc64_init_abi): Hook
13328 sparc_in_function_epilogue_p.
13330 2014-02-10 Gary Benson <gbenson@redhat.com>
13332 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13333 Rename name_matcher to symbol_matcher.
13335 2014-02-10 Gary Benson <gbenson@redhat.com>
13337 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13338 Use expand_symtabs_file_matcher_ftype and
13339 expand_symtabs_symbol_matcher_ftype.
13341 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13343 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13344 (struct ada_symbol_cache): New.
13345 (ada_free_symbol_cache): Forward declare.
13346 (struct ada_pspace_data): New.
13347 (ada_pspace_data_handle): New static global.
13348 (get_ada_pspace_data, ada_pspace_data_cleanup)
13349 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13350 (cache_space, cache): Delete, now folded inside struct
13352 (ada_get_symbol_cache): New function.
13353 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13355 (_initialize_ada_language): Remove initialization of cache_space.
13356 Move call to observer_attach_inferior_exit up, grouping it
13357 with the other observer registrations inside this function.
13358 Rename command to be more general. Add call to
13359 register_program_space_data_with_cleanup.
13361 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13363 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13364 ada_new_objfile_observer.
13365 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13366 (_initialize_tasks): Update uses of ada_new_objfile_observer
13367 and ada_tasks_normal_stop_observer.
13369 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13371 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13372 returned by the 'Length attribute to integer.
13374 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13376 * ada-lang.c (_initialize_ada_language): Initialize
13377 cache_space obstack.
13379 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13381 * ada-lang.c (HASH_SIZE): New macro.
13382 (struct cache_entry): New type.
13383 (cache_space, cache): New static globals.
13384 (ada_clear_symbol_cache, find_entry): New functions.
13385 (lookup_cached_symbol, cache_symbol): Implement.
13386 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13387 (_initialize_ada_language): Attach ada_new_objfile_observer
13388 and ada_free_objfile_observer.
13390 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13392 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13393 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13394 struct block * parameter.
13395 (ada_lookup_symbol_list_worker): Constify local variable "block".
13396 Remove cast which is no longer necessary.
13398 2014-02-10 Doug Evans <xdje42@gmail.com>
13400 Add Guile as an extension language.
13401 * NEWS: Mention Guile scripting.
13402 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13403 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13404 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13405 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13406 (CLIBS): Add GUILE_LIBS.
13407 (install-guile): New rule.
13408 (guile.o): New rule.
13409 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13410 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13411 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13412 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13413 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13414 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13415 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13416 * configure.ac: New option --with-guile.
13417 * configure: Regenerate.
13418 * config.in: Regenerate.
13419 * auto-load.c: Remove #include "python/python.h". Add #include
13420 "gdb/section-scripts.h".
13421 (source_section_scripts): Handle Guile scripts.
13422 (_initialize_auto_load): Add name of Guile objfile script to
13423 scripts-directory help text.
13424 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13425 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13426 (struct breakpoint): New member scm_bp_object.
13427 * defs.h (enum command_control_type): New value guile_control.
13428 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13430 (show_user): Update comment.
13431 (_initialize_cli_cmds): Update help text for "show user". Update help
13432 text for max-user-call-depth.
13433 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13435 (multi_line_command_p): Add guile_control.
13436 (print_command_lines): Handle guile_control.
13437 (execute_control_command, recurse_read_control_structure): Ditto.
13438 (process_next_line): Recognize "guile" commands.
13439 * disasm.c (gdb_disassemble_info): Make non-static.
13440 * disasm.h: #include "dis-asm.h".
13441 (struct gdbarch): Add forward decl.
13442 (gdb_disassemble_info): Declare.
13443 * extension.c: #include "guile/guile.h".
13444 (extension_languages): Add guile.
13445 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13446 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13447 * gdbtypes.c (get_unsigned_type_max): New function.
13448 (get_signed_type_minmax): New function.
13449 * gdbtypes.h (get_unsigned_type_max): Declare.
13450 (get_signed_type_minmax): Declare.
13451 * guile/README: New file.
13452 * guile/guile-internal.h: New file.
13453 * guile/guile.c: New file.
13454 * guile/guile.h: New file.
13455 * guile/scm-arch.c: New file.
13456 * guile/scm-auto-load.c: New file.
13457 * guile/scm-block.c: New file.
13458 * guile/scm-breakpoint.c: New file.
13459 * guile/scm-disasm.c: New file.
13460 * guile/scm-exception.c: New file.
13461 * guile/scm-frame.c: New file.
13462 * guile/scm-gsmob.c: New file.
13463 * guile/scm-iterator.c: New file.
13464 * guile/scm-lazy-string.c: New file.
13465 * guile/scm-math.c: New file.
13466 * guile/scm-objfile.c: New file.
13467 * guile/scm-ports.c: New file.
13468 * guile/scm-pretty-print.c: New file.
13469 * guile/scm-safe-call.c: New file.
13470 * guile/scm-string.c: New file.
13471 * guile/scm-symbol.c: New file.
13472 * guile/scm-symtab.c: New file.
13473 * guile/scm-type.c: New file.
13474 * guile/scm-utils.c: New file.
13475 * guile/scm-value.c: New file.
13476 * guile/lib/gdb.scm: New file.
13477 * guile/lib/gdb/boot.scm: New file.
13478 * guile/lib/gdb/experimental.scm: New file.
13479 * guile/lib/gdb/init.scm: New file.
13480 * guile/lib/gdb/iterator.scm: New file.
13481 * guile/lib/gdb/printing.scm: New file.
13482 * guile/lib/gdb/types.scm: New file.
13483 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13484 (VPATH): Add $(GUILE_SRCDIR).
13485 (GUILE_DIR): New variable.
13486 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13487 (all): Add stamp-guile dependency.
13488 (stamp-guile): New rule.
13489 (clean-guile, install-guile, uninstall-guile): New rules.
13490 (install-only): Add install-guile dependency.
13491 (uninstall): Add uninstall-guile dependency.
13492 (clean): Add clean-guile dependency.
13494 2014-02-09 Doug Evans <xdje42@gmail.com>
13496 Revert this patch (which I approved, mea culpa).
13498 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13500 * Makefile.in (all-lib): Remove.
13501 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13503 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13505 Fix Python stack corruption.
13506 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13509 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13511 * Makefile.in (all-lib): Remove.
13512 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13514 2014-02-07 Doug Evans <dje@google.com>
13516 * extension-priv.h (extension_language_script_ops): Add comment.
13517 (extension_language_ops): Add comment.
13518 (active_ext_lang_state): Fix typo in comment.
13520 2014-02-07 Pedro Alves <palves@redhat.com>
13522 PR breakpoints/16292
13523 * infrun.c (handle_signal_stop) <signal arrives while stepping
13524 over a breakpoint>: Switch back to the stepping thread.
13526 2014-02-07 Yao Qi <yao@codesourcery.com>
13528 * target.c (target_xfer_partial): Return zero if LEN is zero.
13530 2014-02-07 Yao Qi <yao@codesourcery.com>
13532 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13533 (ld_so_xfer_auxv): Likewise.
13534 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13535 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13536 * corelow.c (core_xfer_partial): Likewise.
13537 * ctf.c (ctf_xfer_partial): Likewise.
13538 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13539 (darwin_xfer_partial): Likewise.
13540 * exec.c (exec_xfer_partial): Likewise.
13541 * gnu-nat.c (gnu_xfer_partial): Likewise.
13542 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13543 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13544 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13545 * linux-nat.c (linux_xfer_siginfo): Likewise.
13546 (linux_proc_xfer_spu): Likewise.
13547 * procfs.c (procfs_xfer_partial): Likewise.
13548 * record-full.c (record_full_xfer_partial): Likewise.
13549 (record_full_core_xfer_partial): Likewise.
13550 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13551 * remote.c (remote_write_qxfer): Likewise.
13552 (remote_write_qxfer, remote_read_qxfer): Likewise.
13553 (remote_xfer_partial): Likewise.
13554 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13555 (rs6000_xfer_shared_libraries): Likewise.
13556 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13557 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13558 (spu_xfer_partial): Likewise.
13559 * target.c (memory_xfer_partial_1): Likewise.
13560 * tracepoint.c (tfile_xfer_partial): Likewise.
13561 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13562 (windows_xfer_partial): Likewise.
13564 2014-02-07 Yao Qi <yao@codesourcery.com>
13566 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13568 (core_xfer_shared_libraries_aix): Likewise.
13569 * gdbarch.c, gdbarch.h: Regenerated.
13570 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13571 ULONGEST. Change 'len_avail' type to ULONGEST.
13572 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13573 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13575 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13577 2014-02-07 Yao Qi <yao@codesourcery.com>
13579 * corefile.c (memory_error): Get 'exception' from ERR and pass
13580 'exception' to throw_error.
13582 2014-02-06 Doug Evans <xdje42@gmail.com>
13584 * configure.ac (libpython checking): Remove all but python.o from
13585 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13586 * configure: Regenerate.
13588 * Makefile.in (SFILES): Add extension.c.
13589 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13590 (COMMON_OBS): Add extension.o.
13591 * extension.h: New file.
13592 * extension-priv.h: New file.
13593 * extension.c: New file.
13595 * python/python-internal.h: #include "extension.h".
13596 (gdbpy_auto_load_enabled): Declare.
13597 (gdbpy_apply_val_pretty_printer): Declare.
13598 (gdbpy_apply_frame_filter): Declare.
13599 (gdbpy_preserve_values): Declare.
13600 (gdbpy_breakpoint_cond_says_stop): Declare.
13601 (gdbpy_breakpoint_has_cond): Declare.
13602 (void source_python_script_for_objfile): Delete.
13603 * python/python.c: #include "extension-priv.h".
13604 Delete inclusion of "observer.h".
13605 (extension_language_python): Moved here and renamed from
13606 script_language_python in py-auto-load.c.
13607 Redefined to be of type extension_language_defn.
13608 (python_extension_script_ops): New global.
13609 (python_extension_ops): New global.
13610 (struct python_env): New member previous_active.
13611 (restore_python_env): Call restore_active_ext_lang.
13612 (ensure_python_env): Call set_active_ext_lang.
13613 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13615 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13617 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13619 (gdbpy_eval_from_control_command): Renamed from
13620 eval_python_from_control_command, made static. New arg extlang.
13621 (gdbpy_source_script) Renamed from source_python_script, made static.
13623 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13624 result to int. New arg extlang.
13625 (gdbpy_source_objfile_script): Renamed from
13626 source_python_script_for_objfile, made static. New arg extlang.
13627 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13628 static. New args extlang, extlang_printers. Change result type to
13630 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13631 static. New arg extlang. Rename arg printers to extlang_printers
13632 and change type to ext_lang_type_printers *.
13633 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13634 static. Replace argument arg with extlang, extlang_printers.
13635 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13636 (!HAVE_PYTHON, source_python_script): Delete.
13637 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13638 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13639 (!HAVE_PYTHON, start_type_printers): Delete.
13640 (!HAVE_PYTHON, apply_type_printers): Delete.
13641 (!HAVE_PYTHON, free_type_printers): Delete.
13642 (_initialize_python): Delete call to observer_attach_before_prompt.
13643 (finalize_python): Set/restore active extension language.
13644 (gdbpy_finish_initialization) Renamed from
13645 finish_python_initialization, made static. New arg extlang.
13646 (gdbpy_initialized): New function.
13647 * python/python.h: #include "extension.h". Delete #include
13648 "value.h", "mi/mi-cmds.h".
13649 (extension_language_python): Declare.
13650 (GDBPY_AUTO_FILE_NAME): Delete.
13651 (enum py_bt_status): Moved to extension.h and renamed to
13652 ext_lang_bt_status.
13653 (enum frame_filter_flags): Moved to extension.h.
13654 (enum py_frame_args): Moved to extension.h and renamed to
13655 ext_lang_frame_args.
13656 (finish_python_initialization): Delete.
13657 (eval_python_from_control_command): Delete.
13658 (source_python_script): Delete.
13659 (apply_val_pretty_printer): Delete.
13660 (apply_frame_filter): Delete.
13661 (preserve_python_values): Delete.
13662 (gdbpy_script_language_defn): Delete.
13663 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13664 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13666 * auto-load.c: #include "extension.h".
13667 (GDB_AUTO_FILE_NAME): Delete.
13668 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13669 (script_language_gdb): Delete, moved to extension.c and renamed to
13670 extension_language_gdb.
13671 (source_gdb_script_for_objfile): Delete.
13672 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13673 (loaded_script): Change type of language member to
13674 struct extension_language_defn *.
13675 (init_loaded_scripts_info): Initialize
13676 unsupported_script_warning_printed.
13677 (maybe_add_script): Make static. Change type of language arg to
13678 struct extension_language_defn *.
13679 (clear_section_scripts): Reset unsupported_script_warning_printed.
13680 (auto_load_objfile_script_1): Rewrite to use extension language API.
13681 (auto_load_objfile_script): Make public. Remove support-compiled-in
13682 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13683 (source_section_scripts): Rewrite to use extension language API.
13684 (load_auto_scripts_for_objfile): Rewrite to use
13685 auto_load_scripts_for_objfile.
13686 (collect_matching_scripts_data): Change type of language member to
13687 struct extension_language_defn *.
13688 (auto_load_info_scripts): Change type of language arg to
13689 struct extension_language_defn *.
13690 (unsupported_script_warning_print): New function.
13691 (script_not_found_warning_print): Make static.
13692 (_initialize_auto_load): Rewrite construction of scripts-directory
13694 * auto-load.h (struct objfile): Add forward decl.
13695 (struct script_language): Delete.
13696 (struct auto_load_pspace_info): Add forward decl.
13697 (struct extension_language_defn): Add forward decl.
13698 (maybe_add_script): Delete.
13699 (auto_load_objfile_script): Declare.
13700 (script_not_found_warning_print): Delete.
13701 (auto_load_info_scripts): Update prototype.
13702 (auto_load_gdb_scripts_enabled): Declare.
13703 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13704 auto_load_python_scripts_enabled and made public.
13705 (script_language_python): Delete, moved to python.c.
13706 (gdbpy_script_language_defn): Delete.
13707 (info_auto_load_python_scripts): Update to use
13708 extension_language_python.
13710 * breakpoint.c (condition_command): Replace call to
13711 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13712 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13713 with call to breakpoint_ext_lang_cond_says_stop.
13714 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13715 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13716 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13717 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13719 (local_setattro): Print name of extension language with existing
13722 * valprint.c (val_print, value_print): Update to call
13723 apply_ext_lang_val_pretty_printer.
13724 * cp-valprint.c (cp_print_value): Update call to
13725 apply_ext_lang_val_pretty_printer.
13726 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13727 (gdbpy_apply_val_pretty_printer): Renamed from
13728 apply_val_pretty_printer. New arg extlang.
13729 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13731 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13732 extension language API.
13733 * cli/cli-script.c (execute_control_command): Update to call
13734 eval_ext_lang_from_control_command.
13736 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13737 enum ext_lang_bt_status values. Update call to
13738 apply_ext_lang_frame_filter.
13739 (mi_cmd_stack_list_locals): Ditto.
13740 (mi_cmd_stack_list_args): Ditto.
13741 (mi_cmd_stack_list_variables): Ditto.
13742 * mi/mi-main.c: Delete #include "python/python-internal.h".
13743 Add #include "extension.h".
13744 (mi_cmd_list_features): Replace reference to python internal variable
13745 gdb_python_initialized with call to ext_lang_initialized_p.
13747 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13748 Update to use enum ext_lang_frame_args. Update to call
13749 apply_ext_lang_frame_filter.
13750 * python/py-framefilter.c (extract_sym): Update to use enum
13751 ext_lang_bt_status.
13752 (extract_value, py_print_type, py_print_value): Ditto.
13753 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13754 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13755 (py_print_frame): Ditto.
13756 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13757 New arg extlang. Update to use enum ext_lang_bt_status.
13759 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13760 finish_python_initialization. Replace with call to
13761 finish_ext_lang_initialization.
13763 * typeprint.c (do_free_global_table): Update to call
13764 free_ext_lang_type_printers.
13765 (create_global_typedef_table): Update to call
13766 start_ext_lang_type_printers.
13767 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13768 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13769 (type_print_options): Change type of global_printers from "void *"
13770 to "struct ext_lang_type_printers *".
13772 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13773 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13774 (gdbpy_preserve_values): Renamed from preserve_python_values.
13776 (!HAVE_PYTHON, preserve_python_values): Delete.
13778 * utils.c (quit_flag): Delete, moved to extension.c.
13779 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13782 * eval.c: Delete #include "python/python.h".
13783 * main.c: Delete #include "python/python.h".
13785 * defs.h: Update comment.
13787 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13791 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13793 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13796 2014-02-05 Yao Qi <yao@codesourcery.com>
13798 * remote.c (remote_pass_signals): Remove local 'buf' and use
13800 (remote_program_signals): Likewise.
13802 2014-02-05 Yao Qi <yao@codesourcery.com>
13804 * ctf.c: Include "inferior.h" and "gdbthread.h".
13805 (CTF_PID): A new macro.
13806 (ctf_open): Call inferior_appeared and add_thread_silent.
13807 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13808 (ctf_thread_alive): New function.
13809 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13811 2014-02-05 Yao Qi <yao@codesourcery.com>
13815 2013-05-24 Yao Qi <yao@codesourcery.com>
13817 * tracepoint.c (TFILE_PID): Remove.
13818 (tfile_open): Don't add thread and inferior.
13819 (tfile_close): Don't set 'inferior_ptid'. Don't call
13820 exit_inferior_silent.
13821 (tfile_thread_alive): Remove.
13822 (init_tfile_ops): Don't set field 'to_thread_alive' of
13825 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13827 * remote.c (remote_start_remote): Call remote_check_symbols even
13828 if only symbol-file (not file) has been given.
13830 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13832 * gdbarch.sh (skip_entrypoint): New callback.
13833 * gdbarch.c, gdbarch.h: Regenerate.
13834 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13835 * infrun.c (fill_in_stop_func): Likewise.
13836 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13837 (ppc_elfv2_elf_make_msymbol_special): New function.
13838 (ppc_elfv2_skip_entrypoint): Likewise.
13839 (ppc_linux_init_abi): Install them for ELFv2.
13841 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13843 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13844 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13845 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13846 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13847 structures returned in GPRs.
13849 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13851 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13852 offset to the stack parameter list for the ELFv2 ABI.
13854 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13856 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13857 set_gdbarch_convert_from_func_ptr_addr and
13858 set_gdbarch_elf_make_msymbol_special for ELFv1.
13859 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13860 function descriptors on ELFv1.
13861 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13862 set up r12 at function entry.
13864 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13866 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13867 (struct gdbarch_tdep): New member elf_abi.
13869 * rs6000-tdep.c: Include "elf/ppc64.h".
13870 (rs6000_gdbarch_init): Detect ELF ABI version.
13872 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13874 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13875 within a register pair holding a DFP 128-bit value on little-endian.
13876 (ppc64_sysv_abi_return_value_base): Likewise.
13877 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13878 (dfp_pseudo_register_write): Likewise.
13880 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13882 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13883 offset on little-endian when passing _Decimal32.
13884 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13886 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13888 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13889 of the overlapped FP register within the VSX register on little-
13891 (efpr_pseudo_register_write): Likewise.
13893 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13895 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13896 offset on little-endian when passing small structures.
13898 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13900 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13901 (struct ppc64_sysv_argpos): New data structure.
13902 (ppc64_sysv_abi_push_float): Remove.
13903 (ppc64_sysv_abi_push_val): New function.
13904 (ppc64_sysv_abi_push_integer): Likewise.
13905 (ppc64_sysv_abi_push_freg): Likewise.
13906 (ppc64_sysv_abi_push_vreg): Likewise.
13907 (ppc64_sysv_abi_push_param): Likewise.
13908 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13909 (ppc64_sysv_abi_return_value_base): New function.
13910 (ppc64_sysv_abi_return_value): Refactor to use it.
13912 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13914 * NEWS: Document new target powerpc64le-*-linux*.
13916 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13918 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13919 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13921 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13922 register set used in ELF core dumps. Add floating-point register set.
13924 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13926 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13927 dwarf2_to_gdb[] table using symbolic constants. Adjust
13928 penultimate entry from number representing the PC register
13929 to symbolic constant representing the MDR register. Add
13930 constant for the PC register to the end of the table.
13932 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13934 * bsd-kvm.c: Include <sys/param.h>
13936 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13938 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13940 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13942 * ada-lang.h (clear_ada_sym_cache): Delete.
13944 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13946 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13948 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13950 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13951 the sigreturn register save area only if the syscall is
13954 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13956 * valops.c (value_slice): Minor reformatting.
13958 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13960 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13962 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13964 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13965 New static globals.
13966 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13967 (ada_ignore_descriptive_types_p): New static global.
13968 (find_parallel_type_by_descriptive_type): Return immediately
13969 if ada_ignore_descriptive_types_p is set.
13970 (_initialize_ada_language): Register new commands "maintenance
13971 set ada", "maintenance show ada", "maintenance set ada
13972 ignore-descriptive-types" and "maintenance show ada
13973 ignore-descriptive-types".
13974 * NEWS: Add entry for new "maint ada set/show
13975 ignore-descriptive-types" commands.
13977 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13979 * record-btrace.c (record_btrace_close): Call btrace_teardown
13982 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13984 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13987 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13989 * ada-typeprint (type_is_full_subrange_of_target_type):
13991 (print_range): Add parameter bounds_prefered_p. If not set,
13992 try printing range types using the name of their base type.
13993 (print_range_type): Add parameter bounds_prefered_p.
13994 Use it in call to print_range.
13995 (print_array_type, ada_print_type): Update calls to print_range
13996 and print_range_type.
13998 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14000 * ada-typeprint.c (print_array_type, print_choices, print_range)
14001 (print_range_bound, print_dynamic_range_bound, print_range_type):
14002 Remove declaration.
14004 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14006 * ada-typeprint.c (print_range): Add missing empty line
14007 after local declaration.
14009 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14011 * ada-valprint.c (print_optional_low_bound): Get index_type's
14012 target type for as long as it is a TYPE_CODE_RANGE.
14014 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14016 * procfs.c (procfs_make_note_section): Remove assertion and
14017 associated comment.
14019 2014-01-24 Yao Qi <yao@codesourcery.com>
14021 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14022 * corelow.c (get_core_siginfo): Likewise.
14024 2014-01-24 Yao Qi <yao@codesourcery.com>
14026 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14027 ULONGEST. Don't check 'len' is negative.
14028 (remote_write_bytes): Change type of 'len' to ULONGEST.
14030 2014-01-23 Tom Tromey <tromey@redhat.com>
14033 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14034 Handle exception from frame.block.
14035 (FrameVars.fetch_frame_locals): Likewise.
14037 2014-01-23 Tom Tromey <tromey@redhat.com>
14040 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14041 on a NULL pointer. Move "goto error" to correct place.
14043 2014-01-23 Tom Tromey <tromey@redhat.com>
14046 * python/py-framefilter.c (apply_frame_filter): Call
14047 ensure_python_env after computing gdbarch.
14049 2014-01-23 Yao Qi <yao@codesourcery.com>
14051 * target.c (raw_memory_xfer_partial): Change argument type
14052 from void * to gdb_byte *.
14053 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14055 2014-01-22 Doug Evans <dje@google.com>
14057 New gdbserver option --debug-format=timestamp.
14058 * NEWS: Mention it.
14060 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14062 * syscalls/s390x-linux.xml: New file.
14063 * syscalls/s390-linux.xml: New file.
14064 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14065 (XML_SYSCALL_FILENAME_S390X): Likewise.
14066 (op_svc): New enum value for SVC opcode.
14067 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14068 (s390_linux_get_syscall_number): New function.
14069 (s390_gdbarch_init): Register '*get_syscall_number' and the
14070 syscall xml file name.
14071 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14072 "s390-linux.xml" and "s390x-linux.xml".
14073 * NEWS: Announce new feature.
14075 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14077 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14079 2014-01-22 Pedro Alves <palves@redhat.com>
14081 * xtensa-config.c: Include defs.h.
14083 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14085 * common/common-utils.h: Add "ARI:" comment beside __func__
14088 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14090 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14091 documentation a bit.
14093 2014-01-21 Roland McGrath <mcgrathr@google.com>
14095 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14096 * configure: Regenerate.
14097 * aclocal.m4: Regenerate.
14098 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14099 New substituted variables.
14100 (install-strip): New target.
14101 (INSTALL_SCRIPT): New substituted variable.
14102 (FLAGS_TO_PASS): Add it.
14103 (install-only): Use $(INSTALL_SCRIPT) rather than
14104 $(INSTALL_PROGRAM) for gcore.
14106 2014-01-20 Tom Tromey <tromey@redhat.com>
14108 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14111 2014-01-20 Tom Tromey <tromey@redhat.com>
14113 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14114 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14115 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14116 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14117 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14118 (struct cmd_list_element) <flags>: Remove.
14119 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14120 doc_allocated>: New fields.
14121 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14123 * maint.c (maintenance_do_deprecate): Update.
14124 * top.c (execute_command): Update.
14126 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14128 * xtensa-linux-nat.c: Include asm/ptrace.h.
14130 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14132 * Makefile.in (SFILES): Add d-support.c.
14133 (COMMON_OBS): Add d-support.o.
14134 * d-lang.h (d_parse_symbol): Add comment, now defined in
14136 * d-lang.c (parse_call_convention)
14137 (parse_attributes, parse_function_types)
14138 (parse_function_args, parse_type, parse_identifier)
14139 (call_convention_p, d_parse_symbol): Move functions to ...
14140 * d-support.c: ... New file.
14142 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14144 * d-lang.h (d_parse_symbol): Add declaration.
14145 * d-lang.c (extract_identifiers)
14146 (extract_type_info): Remove functions.
14147 (parse_call_convention, parse_attributes)
14148 (parse_function_types, parse_function_args)
14149 (parse_type, parse_identifier, call_convention_p)
14150 (d_parse_symbol): New functions.
14151 (d_demangle): Use d_parse_symbol to demangle D symbols.
14153 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14155 * d-lang.h (struct builtin_d_type): New data type.
14156 (builtin_d_type): Add declaration.
14157 * d-lang.c (d_language_arch_info, build_d_types)
14158 (builtin_d_type): New functions.
14159 (enum d_primitive_types): New data type.
14160 (d_language_defn): Change c_language_arch_info to
14161 d_language_arch_info.
14162 (d_type_data): New static variable.
14163 (_initialize_d_language): Initialize d_type_data.
14165 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14167 * d-lang.h (d_main_name): Add declaration.
14168 * d-lang.c (d_main_name): New function.
14169 * symtab.c (find_main_name): Add call to d_main_name.
14171 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14173 * d-lang.c (d_language_defn): Change macro_expansion_c to
14174 macro_expansion_no.
14176 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14178 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14180 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14182 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14183 gdb_exception" declaration.
14184 * remote.c (getpkt_or_notif_sane): Likewise.
14186 2014-01-17 Doug Evans <dje@google.com>
14188 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14189 function, contents of dirnames_to_char_ptr_vec_append moved here.
14190 (delim_string_to_char_ptr_vec): New function.
14191 (dirnames_to_char_ptr_vec_append): Rewrite.
14192 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14194 2014-01-17 Doug Evans <dje@google.com>
14196 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14198 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14199 #include "common-utils.h".
14200 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14201 * common/vec.h (VEC_ASSERT_PASS): Update.
14202 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14203 (MACH_CHECK_ERROR): Update.
14205 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14207 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14209 * gdbarch.h: Regenerate.
14211 2014-01-16 Tom Tromey <tromey@redhat.com>
14213 * value.c (struct value) <regnum>: Move earlier.
14215 2014-01-16 Tom Tromey <tromey@redhat.com>
14217 * remote.c (extended_remote_create_inferior): Rename from
14218 extended_remote_create_inferior_1. Add "ops" argument. Remove
14219 old implementation.
14221 2014-01-16 Pedro Alves <palves@redhat.com>
14223 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14224 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14227 2014-01-16 Doug Evans <dje@google.com>
14229 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14231 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14233 * btrace.h (btrace_thread_flag): New.
14234 (struct btrace_thread_info) <flags>: New.
14235 * record-btrace.c (record_btrace_resume_thread)
14236 (record_btrace_find_thread_to_move, btrace_step_no_history)
14237 (btrace_step_stopped, record_btrace_start_replaying)
14238 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14239 (record_btrace_find_resume_thread): New.
14240 (record_btrace_resume, record_btrace_wait): Extend.
14241 (record_btrace_can_execute_reverse): New.
14242 (record_btrace_open): Fail in non-stop mode.
14243 (record_btrace_set_replay): Split into this, ...
14244 (record_btrace_stop_replaying): ... this, ...
14245 (record_btrace_clear_histories): ... and this.
14246 (init_record_btrace_ops): Init to_can_execute_reverse.
14247 * NEWS: Announce it.
14249 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14251 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14252 (forward_target_decr_pc_after_break)
14253 (target_decr_pc_after_break): New.
14254 * target.c (forward_target_decr_pc_after_break)
14255 (target_decr_pc_after_break): New.
14256 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14257 instead of gdbarch_decr_pc_after_break.
14258 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14259 instead of gdbarch_decr_pc_after_break.
14260 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14261 instead of gdbarch_decr_pc_after_break.
14262 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14263 instead of gdbarch_decr_pc_after_break.
14264 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14265 instead of gdbarch_decr_pc_after_break.
14266 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14267 instead of gdbarch_decr_pc_after_break.
14269 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14271 * btrace.c: Include regcache.h.
14272 (btrace_add_pc): New.
14273 (btrace_enable): Call btrace_add_pc.
14274 (btrace_is_empty): New.
14275 * btrace.h (btrace_is_empty): New.
14276 * record-btrace.c (require_btrace, record_btrace_info): Call
14279 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14281 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14282 Support delta reads.
14283 (linux_disable_btrace): Change return type.
14284 * common/linux-btrace.h (linux_read_btrace): Change parameters
14285 and return type to allow error reporting. Update users.
14286 (linux_disable_btrace): Change return type. Update users.
14287 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14289 (btrace_error): New.
14290 (btrace_block) <begin>: Comment on BEGIN == 0.
14291 * btrace.c (btrace_compute_ftrace): Start from the end of
14293 (btrace_stitch_trace, btrace_clear_history): New.
14294 (btrace_fetch): Read delta trace, return if replaying.
14295 (btrace_clear): Move clear history code to btrace_clear_history.
14296 (parse_xml_btrace): Throw an error if parsing failed.
14297 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14298 and return type to allow error reporting.
14299 (target_read_btrace): Change parameters and return type to allow
14301 * target.c (target_read_btrace): Update.
14302 * remote.c (remote_read_btrace): Support delta reads. Pass
14304 * NEWS: Announce it.
14306 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14308 * record.h (record_btrace_frame_unwind)
14309 (record_btrace_tailcall_frame_unwind): New declarations.
14310 * dwarf2-frame: Include record.h
14311 (dwarf2_frame_cfa): Throw an error for btrace frames.
14312 * record-btrace.c: Include hashtab.h.
14313 (btrace_get_bfun_name): New.
14314 (btrace_call_history): Call btrace_get_bfun_name.
14315 (struct btrace_frame_cache): New.
14317 (bfcache_hash, bfcache_eq, bfcache_new): New.
14318 (btrace_get_frame_function): New.
14319 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14320 (record_btrace_frame_this_id): Compute own id.
14321 (record_btrace_frame_prev_register): Provide PC, throw_error
14322 for all other registers.
14323 (record_btrace_frame_sniffer): Detect btrace frames.
14324 (record_btrace_tailcall_frame_sniffer): New.
14325 (record_btrace_frame_dealloc_cache): New.
14326 (record_btrace_frame_unwind): Add new functions.
14327 (record_btrace_tailcall_frame_unwind): New.
14328 (_initialize_record_btrace): Allocate cache.
14329 * btrace.c (btrace_clear): Call reinit_frame_cache.
14330 * NEWS: Announce it.
14332 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14334 * record-btrace.c (record_btrace_set_replay)
14335 (record_btrace_goto_begin, record_btrace_goto_end)
14336 (record_btrace_goto): New.
14337 (init_record_btrace_ops): Initialize them.
14338 * NEWS: Announce it.
14340 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14342 * record-btrace.c (record_btrace_find_new_threads)
14343 (record_btrace_thread_alive): New.
14344 (init_record_btrace_ops): Initialize to_find_new_threads and
14347 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14349 * record-btrace.c (record_btrace_resume): New.
14350 (record_btrace_wait): New.
14351 (init_record_btrace_ops): Initialize to_wait and to_resume.
14353 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14355 * record-btrace.c (record_btrace_xfer_partial)
14356 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14357 (record_btrace_allow_memory_access): New.
14358 (init_record_btrace_ops): Initialize new methods.
14359 * target.c (raw_memory_xfer_partial): Bail out if target reports
14360 that this memory is not available.
14362 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14364 * target.h (target_ops) <to_insert_breakpoint>
14365 <to_remove_breakpoint>: Add target_ops parameter.
14366 (forward_target_insert_breakpoint): New.
14367 (forward_target_remove_breakpoint): New.
14368 (memory_remove_breakpoint, memory_insert_breakpoint):
14369 Add target_ops parameter.
14370 * target.c (target_insert_breakpoint): Split into this and ...
14371 (forward_target_insert_breakpoint): ... this.
14372 (target_remove_breakpoint): Split into this and ...
14373 (forward_target_remove_breakpoint): ... this.
14374 (debug_to_insert_breakpoint): Add target_ops parameter.
14375 Call forward_target_insert_breakpoint.
14376 (debug_to_remove_breakpoint): Add target_ops parameter.
14377 Call forward_target_remove_breakpoint.
14378 (update_current_target): Do not inherit or default to_insert_breakpoint
14379 and to_remove_breakpoint.
14380 * corelow.c (ignore): Add target_ops parameter.
14381 * exec.c (ignore): Add target_ops parameter.
14382 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14383 Add target_ops parameter.
14384 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14385 Add target_ops parameter.
14386 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14387 Add target_ops parameter.
14388 * record-full.c (record_full_beneath_to_insert_breakpoint)
14389 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14390 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14391 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14392 (record_full_core_remove_breakpoint): Add target_ops parameter.
14394 (record_full_beneath_to_insert_breakpoint_ops)
14395 (record_full_beneath_to_remove_breakpoint_ops)
14396 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14397 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14398 tmp_to_remove_breakpoint_ops,
14399 record_full_beneath_to_insert_breakpoint_ops, and
14400 record_full_beneath_to_remove_breakpoint_ops.
14401 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14402 (m32r_remove_breakpoint): Add target_ops parameter.
14403 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14404 Add target_ops parameter.
14405 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14406 Add target_ops parameter.
14408 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14409 Markus Metzger <markus.t.metzger@intel.com>
14411 * record-btrace.c: Include frame-unwind.h.
14412 (record_btrace_frame_unwind_stop_reason)
14413 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14414 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14416 (init_record_btrace_ops): Install it.
14418 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14420 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14423 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14425 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14428 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14430 * frame-unwind.c: Include target.h.
14431 (frame_unwind_try_unwinder): New function with code from ...
14432 (frame_unwind_find_by_frame): ... here. New variable
14433 unwinder_from_target, call also target_get_unwinder)
14434 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14435 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14436 * target.h (struct target_ops): New fields to_get_unwinder and
14437 to_get_tailcall_unwinder.
14438 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14440 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14442 * record-btrace.c (record_btrace_fetch_registers)
14443 (record_btrace_store_registers)
14444 (record_btrace_to_prepare_to_store): New.
14445 (init_record_btrace_ops): Add the above.
14447 2014-01-16 Tom Tromey <tromey@redhat.com>
14449 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14450 * target.h (struct target_ops) <to_prepare_to_store>: Add
14452 (target_prepare_to_store): Add argument.
14453 * target.c (debug_to_prepare_to_store): Add argument.
14454 (update_current_target): Update.
14455 * remote.c (remote_prepare_to_store): Add 'self' argument.
14456 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14457 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14458 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14459 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14461 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14462 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14463 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14464 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14465 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14467 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14469 * btrace.h (replay) <replay>: New.
14470 (btrace_is_replaying): New.
14471 * btrace.c (btrace_clear): Free replay iterator.
14472 (btrace_is_replaying): New.
14473 * record-btrace.c (record_btrace_is_replaying): New.
14474 (record_btrace_info): Print insn number if replaying.
14475 (record_btrace_insn_history): Start at replay position.
14476 (record_btrace_call_history): Start at replay position.
14477 (init_record_btrace_ops): Init to_record_is_replaying.
14479 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14481 * record-btrace.c (record_btrace_insn_history_range): Include
14483 (record_btrace_insn_history_from): Adjust range.
14484 (record_btrace_call_history_range): Include
14486 (record_btrace_call_history_from): Adjust range.
14487 * NEWS: Announce changes.
14489 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14491 * record.h (enum record_print_flag)
14492 <record_print_indent_calls>: New.
14493 * record.c (get_call_history_modifiers): Recognize /c modifier.
14494 (_initialize_record): Document /c modifier.
14495 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14496 Reorder fields. Optionally indent the function name. Update
14498 * NEWS: Announce changes.
14500 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14502 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14504 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14506 * btrace.c (ftrace_new_function): Start counting at one.
14507 * record-btrace.c (record_btrace_info): Adjust number of calls
14509 * NEWS: Announce it.
14511 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14513 * record-btrace.c (btrace_call_history_insn_range): Print
14514 insn range as [begin, end].
14516 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14518 * btrace.h (struct btrace_func_link): New.
14519 (enum btrace_function_flag): New.
14520 (struct btrace_inst): Rename to ...
14521 (struct btrace_insn): ...this. Update all users.
14522 (struct btrace_func) <ibegin, iend>: Remove.
14523 (struct btrace_func_link): New.
14524 (struct btrace_func): Rename to ...
14525 (struct btrace_function): ...this. Update all users.
14526 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14527 (number, level, flags>: New.
14528 (struct btrace_insn_iterator): Rename to ...
14529 (struct btrace_insn_history): ...this.
14531 (struct btrace_insn_iterator, btrace_call_iterator): New.
14532 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14533 (struct btrace_target_info) <begin, end, level>
14534 <insn_history, call_history>: New.
14535 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14536 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14537 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14538 (btrace_call_number, btrace_call_begin, btrace_call_end)
14539 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14540 (btrace_find_function_by_number, btrace_set_insn_history)
14541 (btrace_set_call_history): New.
14542 * btrace.c (btrace_init_insn_iterator)
14543 (btrace_init_func_iterator, compute_itrace): Remove.
14544 (ftrace_print_function_name, ftrace_print_filename)
14545 (ftrace_skip_file): Change
14546 parameter to const.
14547 (ftrace_init_func): Remove.
14548 (ftrace_debug): Use new btrace_function fields.
14549 (ftrace_function_switched): Also consider gaining and
14550 losing symbol information).
14551 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14552 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14553 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14555 (ftrace_new_function): Move. Remove debug print.
14556 (ftrace_update_lines, ftrace_update_insns): New.
14557 (ftrace_update_function): Check for call, ret, and jump.
14558 (compute_ftrace): Renamed to ...
14559 (btrace_compute_ftrace): ...this. Rewritten to compute call
14561 (btrace_fetch, btrace_clear): Updated.
14562 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14563 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14564 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14565 (btrace_call_number, btrace_call_begin, btrace_call_end)
14566 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14567 (btrace_find_function_by_number, btrace_set_insn_history)
14568 (btrace_set_call_history): New.
14569 * record-btrace.c (require_btrace): Use new btrace thread
14571 (record_btrace_info, btrace_insn_history)
14572 (record_btrace_insn_history, record_btrace_insn_history_range):
14573 Use new btrace thread info fields and new iterator.
14574 (btrace_func_history_src_line): Rename to ...
14575 (btrace_call_history_src_line): ...this. Use new btrace
14576 thread info fields.
14577 (btrace_func_history): Rename to ...
14578 (btrace_call_history): ...this. Use new btrace thread info
14579 fields and new iterator.
14580 (record_btrace_call_history, record_btrace_call_history_range):
14581 Use new btrace thread info fields and new iterator.
14583 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14585 * frame.h (frame_id_build_unavailable_stack_special): New.
14586 * frame.c (frame_id_build_unavailable_stack_special): New.
14588 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14590 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14591 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14592 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14594 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14595 (i386_insn_is_jump, i386_jmp_p): New.
14596 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14597 insn_is_jump to gdbarch.
14598 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14599 * gdbarch.h: Regenerated.
14600 * gdbarch.c: Regenerated.
14601 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14602 (default_insn_is_jump): New.
14603 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14604 (default_insn_is_jump): New.
14606 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14608 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14610 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14611 (btrace_read_type) <btrace_read_new>: Change to ...
14612 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14614 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14616 * common/linux-btrace.c (linux_read_btrace): Free trace from
14617 previous iteration.
14619 2014-01-15 Doug Evans <dje@google.com>
14621 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14624 2014-01-15 Tom Tromey <tromey@redhat.com>
14626 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14627 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14628 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14629 (set_objfile_main_name): New function.
14630 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14631 language_of_main>: New fields.
14632 (set_objfile_main_name): Declare.
14633 * symtab.c (find_main_name): Loop over objfiles to find the main
14635 (set_main_name): Now static.
14636 (get_main_info): Add comment.
14637 * symtab.h (set_main_name): Don't declare.
14639 2014-01-15 Tom Tromey <tromey@redhat.com>
14641 * symtab.c (main_progspace_key): New global.
14642 (struct main_info): New.
14643 (name_of_main, language_of_main): Remove.
14644 (get_main_info, main_info_cleanup): New function.
14645 (set_main_name, main_name, main_language): Use get_main_info.
14646 (_initialize_symtab): Initialize main_progspace_key.
14648 2014-01-15 Tom Tromey <tromey@redhat.com>
14650 * dbxread.c (process_one_symbol): Update.
14651 * dwarf2read.c (read_partial_die): Update.
14652 * symfile.c (set_initial_language): Call main_language.
14653 * symtab.c (language_of_main): Now static.
14654 (set_main_name): Add 'lang' parameter.
14655 (find_main_name): Update.
14656 (main_language): New function.
14657 (symtab_observer_executable_changed): Update.
14658 * symtab.h (set_main_name): Update.
14659 (language_of_main): Remove.
14660 (main_language): Declare.
14662 2014-01-15 Tom Tromey <tromey@redhat.com>
14664 * symfile.c (init_entry_point_info): Use new "initialized" field.
14666 * objfiles.h (struct entry_point) <initialized>: New field.
14667 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14668 (struct objfile) <ei>: ...here. Remove.
14669 * objfiles.c (entry_point_address_query): Update.
14671 2014-01-15 Tom Tromey <tromey@redhat.com>
14673 * objfiles.c (entry_point_address_query): Relocate entry point
14675 (objfile_relocate1): Do not relocate entry point address.
14676 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14677 <the_bfd_section_index>: New field.
14678 * symfile.c (init_entry_point_info): Find the entry point's
14681 2014-01-15 Tom Tromey <tromey@redhat.com>
14683 * solib-frv.c (enable_break): Use entry_point_address_query.
14685 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14687 * NEWS: Add note on improved process record-replay on
14688 arm*-linux* targets.
14690 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14692 * arm-tdep.c (enum arm_record_result): New enum.
14693 (arm_record_unsupported_insn): New function.
14694 (arm_record_coproc_data_proc): Removed.
14695 (thumb2_record_ld_st_multiple): New function.
14696 (thumb2_record_ld_st_dual_ex_tbb): New function.
14697 (thumb2_record_data_proc_sreg_mimm): New function.
14698 (thumb2_record_ps_dest_generic): New function.
14699 (thumb2_record_branch_misc_cntrl): New function.
14700 (thumb2_record_str_single_data): New function.
14701 (thumb2_record_ld_mem_hints): New function.
14702 (thumb2_record_ld_word): New function.
14703 (thumb2_record_lmul_lmla_div): New function.
14704 (thumb2_record_decode_insn_handler): New function.
14705 (decode_insn): Add thumb32 instruction handlers.
14707 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14709 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14710 (struct arm_linux_record_tdep): Declare.
14711 (arm_canonicalize_syscall): New function.
14712 (arm_all_but_pc_registers_record): New function.
14713 (arm_linux_syscall_record): New function.
14714 (arm_linux_init_abi): Add syscall recording constructs.
14715 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14716 decoding. (arm_record_coproc_data_proc): Update arm syscall
14718 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14719 <arm_syscall_record>: New field.
14720 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14723 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14725 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14726 register for push instruction recording.
14728 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14730 * arm-tdep.c (thumb_record_misc): Update to correct logical
14731 error while recording ldm, ldmia and pop instructions.
14733 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14735 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14737 2014-01-15 Pedro Alves <palves@redhat.com>
14739 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14740 (go32_resume, go32_fetch_registers, store_register)
14741 (go32_store_registers, go32_prepare_to_store)
14742 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14743 (go32_create_inferior, go32_can_run, go32_terminal_init)
14744 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14747 2014-01-15 Tom Tromey <tromey@redhat.com>
14749 * target.h (async_callback_ftype): New typedef.
14750 (struct target_ops) <to_async>: Use it.
14752 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14754 * python/py-value.c (get_field_type): Remove unnecessary curly
14755 braces for single-statement if block.
14757 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14759 * python/py-type.c (convert_field): Add missing empty line
14760 after declarations.
14762 2014-01-14 Doug Evans <dje@google.com>
14764 * symfile.h (expand_symtabs_matching): Renamed from
14765 expand_partial_symbol_names. Update prototype.
14766 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14767 * symfile.c (expand_symtabs_matching): Renamed from
14768 expand_partial_symbol_names. New args file_matcher, kind.
14769 Rename arg fun to symbol_matcher.
14770 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14771 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14772 ada_expand_partial_symbol_name.
14773 (ada_make_symbol_completion_list): Update to call
14774 expand_symtabs_matching.
14775 (ada_add_global_exceptions): Call expand_symtabs_matching.
14776 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14777 call map_symbol_filenames.
14778 * symtab.c (sources_info): Update to call map_symbol_filenames.
14779 (search_symbols): Call expand_symtabs_matching.
14780 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14781 (default_make_symbol_completion_list_break_on): Update to call
14782 expand_symtabs_matching.
14783 (make_source_files_completion_list): Update to call
14784 map_symbol_filenames.
14786 2014-01-14 Doug Evans <dje@google.com>
14788 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14789 (expand_symtabs_symbol_matcher_ftype): New typedef.
14790 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14791 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14792 * symfile.c (expand_partial_symbol_names): Update to use
14793 expand_symtabs_symbol_matcher_ftype.
14794 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14795 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14796 Arg name_matcher renamed to symbol_matcher.
14797 * psymtab.c (recursively_search_psymtabs): Update to use
14798 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14800 (expand_symtabs_matching_via_partial): Update to use
14801 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14802 Arg name_matcher renamed to symbol_matcher.
14804 2014-01-14 Doug Evans <dje@google.com>
14806 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14807 (map_partial_symbol_filenames): Ditto.
14808 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14809 (map_partial_symbol_filenames): Ditto.
14810 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14811 (map_partial_symbol_filenames): Ditto.
14812 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14813 (map_partial_symbol_filenames): Ditto.
14814 * symtab.c: Delete #include "psymtab.h".
14816 2014-01-14 Pedro Alves <palves@redhat.com>
14817 Tom Tromey <tromey@redhat.com>
14819 * infrun.c (use_displaced_stepping): Use find_record_target
14820 instead of RECORD_IS_USED.
14821 (adjust_pc_after_break): Use record_full_is_used instead of
14823 * record-btrace.c (record_btrace_open): Call record_preopen
14824 instead of checking RECORD_IS_USED.
14825 * record-full.c (record_full_shortname)
14826 (record_full_core_shortname): New globals.
14827 (record_full_is_used): New function.
14828 (find_full_open): Call record_preopen instead of checking
14830 (init_record_full_ops): Set the target's shortname to
14831 record_full_shortname.
14832 (init_record_full_core_ops): Set the target's shortname to
14833 record_full_core_shortname.
14834 * record-full.h (record_full_is_used): Declare.
14835 * record.c (find_record_target): Make extern.
14836 (record_preopen): New function.
14837 * record.h (RECORD_IS_USED): Delete macro.
14838 (find_record_target, record_preopen): Declare functions.
14840 2014-01-14 Yao Qi <yao@codesourcery.com>
14842 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14843 'len''s type to ULONGEST.
14844 (core_xfer_shared_libraries_aix): Likewise.
14845 * gdbarch.c, gdbarch.h: Regenerated.
14846 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14847 Change type of 'len' to ULONGEST.
14848 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14849 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14851 2014-01-14 Yao Qi <yao@codesourcery.com>
14853 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14854 type of 'len' to ULONGEST.
14855 (linux_xfer_osdata_processgroups): Likewise.
14856 (linux_xfer_osdata_threads): Likewise.
14857 (linux_xfer_osdata_fds): Likewise.
14858 (linux_xfer_osdata_isockets): Likewise.
14859 (linux_xfer_osdata_shm): Likewise.
14860 (linux_xfer_osdata_sem): Likewise.
14861 (linux_xfer_osdata_msg): Likewise.
14862 (linux_common_xfer_osdata): Likewise.
14863 (struct osdata_type) <getter>: Likewise.
14864 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14867 2014-01-14 Yao Qi <yao@codesourcery.com>
14869 * target.h (target_xfer_partial_ftype): Update.
14870 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14872 * aix-thread.c (aix_thread_xfer_partial): Change type of
14873 argument 'len' to ULONGEST.
14874 * auxv.c (procfs_xfer_auxv): Likewise.
14875 (ld_so_xfer_auxv): Likewise.
14876 (memory_xfer_auxv): Likewise.
14877 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14878 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14879 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14880 * corelow.c (core_xfer_partial): Likewise.
14881 * ctf.c (ctf_xfer_partial): Likewise.
14882 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14884 (darwin_read_dyld_info): Likewise.
14885 (darwin_xfer_partial): Likewise.
14886 * exec.c (section_table_xfer_memory_partial): Likewise.
14887 (exec_xfer_partial): Likewise.
14888 * exec.h (section_table_xfer_memory_partial): Update
14890 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14891 instead of plongest.
14892 (gnu_xfer_partial): Likewise.
14893 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14894 (ia64_hpux_xfer_solib_got): Likewise.
14895 (ia64_hpux_xfer_partial): Likewise.
14896 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14897 * inf-ptrace.c (inf_ptrace_xfer_partial):
14898 * inf-ttrace.c (inf_ttrace_xfer_partial):
14899 * linux-nat.c (linux_xfer_siginfo): Likewise.
14900 (linux_nat_xfer_partial): Likewise.
14901 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14902 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14903 * monitor.c (monitor_xfer_memory): Likewise.
14904 (monitor_xfer_partial): Likewise.
14905 * procfs.c (procfs_xfer_partial): Likewise.
14906 * record-full.c (record_full_xfer_partial): Likewise.
14907 (record_full_core_xfer_partial): Likewise.
14908 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14909 instead of plongest.
14910 (gdbsim_xfer_partial): Likewise.
14911 * remote.c (remote_xfer_partial): Likewise.
14912 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14913 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14915 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14916 (rs6000_xfer_shared_libraries): Likewise.
14917 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14918 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14919 (sparc_xfer_partial): Likewise.
14920 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14921 (spu_xfer_partial): Likewise.
14922 * spu-multiarch.c (spu_xfer_partial): Likewise.
14923 * target.c (target_read_live_memory): Likewise.
14924 (memory_xfer_live_readonly_partial): Likewise.
14925 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14926 (target_xfer_partial, default_xfer_partial): Likewise.
14927 (current_xfer_partial): Likewise.
14928 * tracepoint.c (tfile_xfer_partial): Likewise.
14929 * windows-nat.c (windows_xfer_memory): Likewise. Call
14930 pulongest instead of plongest.
14931 (windows_xfer_partial): Likewise.
14932 (windows_xfer_shared_libraries): Likewise.
14934 2014-01-14 Yao Qi <yao@codesourcery.com>
14936 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14937 target_xfer_partial_ftype.
14939 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14943 * valops.c (value_struct_elt_bitpos): New function
14944 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14945 object to 'None' if the field name is an empty string ("").
14946 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14947 attribute to look for a field when 'name' is 'None'.
14948 (get_field_type): New function
14950 2014-01-13 Doug Evans <dje@google.com>
14953 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14954 (try_open_dwop_file): Ditto.
14955 * gdb_bfd.c: #include "vec.h".
14956 (bfdp): New typedef.
14957 (struct gdb_bfd_data): New member included_bfds.
14958 (gdb_bfd_unref): Unref all included bfds.
14959 (gdb_bfd_record_inclusion): New function.
14960 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14962 2014-01-13 Tom Tromey <tromey@redhat.com>
14964 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14966 2014-01-13 Tom Tromey <tromey@redhat.com>
14968 * defs.h (use_windows): Remove.
14969 * gdb.c (main): Update.
14970 * main.c (captured_main, gdb_main): Update.
14971 * main.h (struct captured_main_args) <use_windows>: Remove.
14972 * top.c (use_windows): Remove.
14974 2014-01-13 Tom Tromey <tromey@redhat.com>
14976 * defs.h (deprecated_flush_hook): Remove.
14978 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14981 * linux-thread-db.c (try_thread_db_load): Add parameter
14982 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14983 (try_thread_db_load_from_pdir_1): Move it there from here.
14984 (try_thread_db_load_from_sdir): Update caller.
14985 (try_thread_db_load_from_dir): Move it there from here.
14987 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14989 * regformats/regdat.sh: Always rewrite the register file.
14991 2014-01-13 Pedro Alves <palves@redhat.com>
14993 * Makefile.in (CHECK_HEADERS): New variable.
14994 (check-headers:): New rule.
14996 2014-01-13 Tom Tromey <tromey@redhat.com>
14998 * cli/cli-setshow.c (do_set_command): Update.
14999 * defs.h (deprecated_set_hook): Remove.
15000 * top.c (deprecated_set_hook): Remove.
15002 2014-01-13 Pedro Alves <palves@redhat.com>
15004 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15005 the tracepoint if the PC is a pseudo-register.
15007 2014-01-13 Tom Tromey <tromey@redhat.com>
15009 * defs.h (XCALLOC): Remove.
15010 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15011 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15012 * dwarf2loc.c (allocate_piece_closure): Likewise.
15013 * elfread.c (elf_symfile_segments): Likewise.
15014 (elf_symfile_segments): Likewise.
15015 * gdbtypes.c (copy_type_recursive): Likewise.
15016 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15017 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15018 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15020 * mt-tdep.c (mt_gdbarch_init): Likewise.
15021 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15023 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15024 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15025 * registry.c (registry_alloc_data): Likewise.
15026 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15027 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15028 * serial.c (serial_fdopen_ops): Likewise.
15029 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15031 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15032 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15035 2014-01-13 Tom Tromey <tromey@redhat.com>
15037 * defs.h (XMALLOC): Remove.
15038 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15039 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15040 * cli-out.c (struct ui_out *): Likewise.
15041 * cli/cli-dump.c (add_dump_command): Likewise.
15042 (add_dump_command): Likewise.
15043 * complaints.c (get_complaints): Likewise.
15044 (find_complaint): Likewise.
15045 * dwarf2-frame.c (execute_cfa_program): Likewise.
15046 * dwarf2read.c (abbrev_table_read_table): Likewise.
15047 * gdbarch.sh: Likewise.
15048 * gdbarch.c: Rebuild.
15049 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15050 * interps.c (interp_new): Likewise.
15051 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15052 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15053 * mi/mi-console.c (mi_console_file_new): Likewise.
15054 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15055 * mi/mi-out.c (mi_out_new): Likewise.
15056 * mi/mi-parse.c (mi_parse): Likewise.
15057 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15058 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15059 * observer.c (xalloc_observer_list_node): Likewise.
15060 * regcache.c (regcache_xmalloc_1): Likewise.
15061 * reggroups.c (reggroup_new): Likewise.
15062 (_initialize_reggroup): Likewise.
15063 * registry.c (register_data_with_cleanup): Likewise.
15064 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15065 * ser-base.c (serial_ttystate): Likewise.
15066 * ser-mingw.c (make_pipe_state): Likewise.
15067 * ser-pipe.c (pipe_open): Likewise.
15068 * serial.c (serial_open): Likewise.
15069 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15070 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15071 (tui_alloc_win_info): Likewise.
15072 (tui_add_content_elements): Likewise.
15073 * tui/tui-file.c (tui_file_new): Likewise.
15074 * tui/tui-out.c (tui_out_new): Likewise.
15075 * ui-file.c (mem_file_new): Likewise.
15076 * ui-out.c (push_level): Likewise.
15077 (make_cleanup_ui_out_end): Likewise.
15078 (append_header_to_list): Likewise.
15079 (ui_out_new): Likewise.
15080 * user-regs.c (user_reg_add_builtin): Likewise.
15082 2014-01-13 Tom Tromey <tromey@redhat.com>
15084 * defs.h (XZALLOC): Remove.
15085 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15086 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15087 (get_ada_tasks_inferior_data): Likewise.
15088 * auto-load.c (get_auto_load_pspace_data): Likewise.
15089 * auxv.c (get_auxv_inferior_data): Likewise.
15090 * bfd-target.c (target_bfd_reopen): Likewise.
15091 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15092 (deprecated_insert_raw_breakpoint): Likewise.
15093 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15094 * corelow.c (core_open): Likewise.
15095 * darwin-nat.c (darwin_check_new_threads): Likewise.
15096 (darwin_attach_pid): Likewise.
15097 * dummy-frame.c (dummy_frame_push): Likewise.
15098 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15099 * dwarf2loc.c (allocate_piece_closure): Likewise.
15100 * elfread.c (elf_symfile_segments): Likewise.
15101 * eval.c (ptrmath_type_p): Likewise.
15102 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15103 * gdbtypes.c (alloc_type_arch): Likewise.
15104 (alloc_type_instance): Likewise.
15105 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15106 * inf-child.c (inf_child_can_use_agent): Likewise.
15107 * inflow.c (get_inflow_inferior_data): Likewise.
15108 * infrun.c (save_infcall_suspend_state): Likewise.
15109 * jit.c (jit_reader_load): Likewise.
15110 (get_jit_objfile_data): Likewise.
15111 (get_jit_program_space_data): Likewise.
15112 (jit_object_open_impl): Likewise.
15113 (jit_symtab_open_impl): Likewise.
15114 (jit_block_open_impl): Likewise.
15115 (jit_frame_sniffer): Likewise.
15116 * linux-fork.c (add_fork): Likewise.
15117 * maint.c (make_command_stats_cleanup): Likewise.
15118 * objfiles.c (get_objfile_pspace_data): Likewise.
15119 * opencl-lang.c (struct lval_closure): Likewise.
15120 * osdata.c (osdata_start_osdata): Likewise.
15121 * progspace.c (new_address_space): Likewise.
15122 (add_program_space): Likewise.
15123 * remote-sim.c (get_sim_inferior_data): Likewise.
15124 * sh-tdep.c (sh_gdbarch_init): Likewise.
15125 * skip.c (Ignore): Likewise.
15126 (skip_delete_command): Likewise.
15127 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15128 (library_list_start_library): Likewise.
15129 (solib_aix_current_sos): Likewise.
15130 * solib-darwin.c (get_darwin_info): Likewise.
15131 (darwin_current_sos): Likewise.
15132 * solib-dsbt.c (get_dsbt_info): Likewise.
15133 * solib-ia64-hpux.c (new_so_list): Likewise.
15134 (ia64_hpux_get_solib_linkage_addr): Likewise.
15135 * solib-spu.c (append_ocl_sos): Likewise.
15136 (spu_current_sos): Likewise.
15137 * solib-svr4.c (get_svr4_info): Likewise.
15138 (svr4_keep_data_in_core): Likewise.
15139 (library_list_start_library): Likewise.
15140 (svr4_default_sos): Likewise.
15141 (svr4_read_so_list): Likewise.
15142 * solib-target.c (library_list_start_library): Likewise.
15143 (solib_target_current_sos): Likewise.
15144 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15145 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15146 * symfile.c (default_symfile_segments): Likewise.
15147 * target-descriptions.c (tdesc_data_init): Likewise.
15148 (tdesc_create_reg): Likewise.
15149 (struct tdesc_type *): Likewise.
15150 (tdesc_create_vector): Likewise.
15151 (tdesc_set_struct_size): Likewise.
15152 (struct tdesc_type *): Likewise.
15153 (tdesc_free_feature): Likewise.
15154 (tdesc_create_feature): Likewise.
15155 * windows-nat.c (windows_add_thread): Likewise.
15156 (windows_make_so): Likewise.
15157 * xml-support.c (gdb_xml_body_text): Likewise.
15158 (gdb_xml_create_parser_and_cleanup): Likewise.
15159 (xml_process_xincludes): Likewise.
15160 * xml-syscall.c (allocate_syscalls_info): Likewise.
15161 (syscall_create_syscall_desc): Likewise.
15163 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15165 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15166 function, with code from i386_stap_parse_special_token.
15167 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15168 (i386_stap_parse_special_token): Move code to the two functions
15169 above; simplify it.
15171 2014-01-09 Pedro Alves <palves@redhat.com>
15172 Hui Zhu <hui@codesourcery.com>
15175 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15176 bp_err_string. Don't mark the location shlib_disabled if the
15177 error thrown wasn't a generic or memory error. Catch errors
15178 thrown while inserting breakpoints in overlayed code. Output
15179 error message of software breakpoints.
15180 * remote.c (remote_insert_breakpoint): If this breakpoint has
15181 target-side commands but this stub doesn't support Z0 packets,
15182 throw NOT_SUPPORTED_ERROR error.
15183 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15184 * target.h (target_insert_breakpoint): Extend comment.
15185 (target_insert_hw_breakpoint): Add comment.
15187 2014-01-08 Pedro Alves <palves@redhat.com>
15189 * remote.c (remote_add_thread): Add threads silently if starting
15191 (remote_notice_new_inferior): If in all-stop, and starting up,
15192 don't call notice_new_inferior.
15193 (get_current_thread): New function, factored out from ...
15194 (add_current_inferior_and_thread): ... this. Adjust.
15195 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15196 found any thread, then select the remote's current thread as GDB's
15197 current thread too.
15199 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15201 * NEWS: Create a new section for the next release branch.
15202 Rename the section of the current branch, now that it has
15205 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15207 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15208 * version.in: Bump version to 7.7.50.DATE-cvs.
15210 2014-01-08 Yao Qi <yao@codesourcery.com>
15212 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15213 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15214 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15216 2014-01-08 Yao Qi <yao@codesourcery.com>
15218 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15219 return value of bfd_get_filename to symbol_file_add_from_bfd.
15221 2014-01-08 Pierre Muller <muller@sourceware.org>
15224 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15225 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15226 to prim_record_mininal_symbol_and_info.
15227 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15228 in call to prim_record_minimal_symbol_and_info.
15229 (read_pe_exported_syms): Set index field of section_data.
15231 2014-01-07 Andrew Pinski <apinski@cavium.com>
15233 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15234 * features/aarch64.c: Regenerate.
15236 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15238 * target.c (return_null): Define.
15239 (update_current_target): Use it instead of return_zero for
15240 functions that return a pointer.
15242 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15244 * source.c (add_path): Fix check for duplicated paths in the previously
15247 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15249 * ada-lang.c: Remove duplicated include statements.
15250 * alphabsd-nat.c: Ditto.
15251 * amd64-darwin-tdep.c: Ditto.
15252 * amd64fbsd-nat.c: Ditto.
15253 * auto-load.c: Ditto.
15255 * breakpoint.c: Ditto.
15256 * dbxread.c: Ditto.
15257 * fork-child.c: Ditto.
15258 * gdb_usleep.c: Ditto.
15259 * i386-darwin-tdep.c: Ditto.
15260 * i386fbsd-nat.c: Ditto.
15262 * inferior.c: Ditto.
15263 * jv-lang.c: Ditto.
15264 * linux-nat.c: Ditto.
15265 * linux-tdep.c: Ditto.
15266 * m68kbsd-nat.c: Ditto.
15267 * m68klinux-nat.c: Ditto.
15268 * microblaze-tdep.c: Ditto.
15269 * mips-linux-tdep.c: Ditto.
15270 * mn10300-tdep.c: Ditto.
15271 * nto-tdep.c: Ditto.
15272 * opencl-lang.c: Ditto.
15274 * printcmd.c: Ditto.
15275 * regcache.c: Ditto.
15276 * remote-m32r-sdi.c: Ditto.
15278 * symfile.c: Ditto.
15280 * tilegx-linux-nat.c: Ditto.
15281 * tilegx-tdep.c: Ditto.
15282 * tracepoint.c: Ditto.
15284 * vaxbsd-nat.c: Ditto.
15285 * windows-nat.c: Ditto.
15286 * xtensa-tdep.c: Ditto.
15288 2014-01-07 Yao Qi <yao@codesourcery.com>
15290 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15292 2014-01-07 Yao Qi <yao@codesourcery.com>
15293 Joel Brobecker <brobecker@adacore.com>
15295 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15296 (pdc_write_regs): Likewise.
15297 (fetch_regs_kernel_thread): Likewise.
15298 (store_regs_kernel_thread): Likewise.
15300 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15302 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15303 tagged type objects to their actual type.
15305 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15307 * ada-valprint.c (print_field_values): Add "language" parameter.
15308 Update calls to print_field_values and print_variant_part.
15309 Pass new parameter "language" in call to val_print instead
15310 of "current_language". Replace call to ada_val_print by call
15312 (print_variant_part): Add "language" parameter.
15313 (ada_val_print_struct_union): Update call to print_field_values.
15315 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15317 * ada-valprint.c (ui_memcpy): Delete.
15318 (ada_print_floating): Update documentation. Add empty line
15319 between between function documentation and implementation.
15320 Delete variable "buffer". Use ui_file_xstrdup in place of
15321 ui_file_put. Minor adjustments following this change.
15323 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15325 * ada-valprint.c (ada_val_print_string): New function,
15326 extracted from ada_val_print_array.
15327 (ada_val_print_array): Replace extracted code by call
15328 to ada_val_print_string followed by a return. Move
15329 "else" branch to the function's top block.
15331 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15333 * ada-valprint.c (ada_val_print_array): Move implementation
15334 down. Rename parameter "offset" and "val" into "offset_aligned"
15335 and "original_value" respectively. Add parameter "offset".
15337 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15339 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15340 re-organizing the code. Change the "???" message printed
15341 when target type is a TYPE_CODE_UNDEF into
15342 "<ref to undefined type>".
15344 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15346 * ada-valprint.c (print_record): Delete, implementation inlined...
15347 (ada_val_print_struct_union): ... here. Remove call to
15348 ada_check_typedef in inlined implementation.
15350 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15352 * ada-valprint.c (ada_val_print_gnat_array): New function,
15353 extracted from ada_val_print_1;
15354 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15355 (ada_val_print_flt, ada_val_print_struct_union)
15356 (ada_val_print_ref): Likewise.
15357 (ada_val_print_1): Delete variables i and elttype.
15358 Replace extracted-out code by call to corresponding
15361 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15363 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15365 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15367 * ada-valprint.c (ada_val_print_1): Replace calls to
15368 ada_val_print_1 by calls to val_print.
15370 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15372 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15373 Update calls to self accordingly. Replace calls to c_val_print
15374 by calls to val_print.
15376 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15378 * ada-valprint.c (print_record): Delete declaration.
15379 (adjust_type_signedness, ada_val_print_1): Likewise.
15380 (ada_val_print): Move function implementation down.
15381 (print_variant_part, print_field_values, print_record):
15382 Move function implementation up.
15384 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15386 * python/py-type.c (typy_get_name): New function.
15387 (type_object_getset): Add entry for attribute "name".
15388 * NEWS: Add entry mentioning this new attribute.
15390 2014-01-07 Yao Qi <yao@codesourcery.com>
15392 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15395 2014-01-07 Yao Qi <yao@codesourcery.com>
15397 * gnu-nat.c (info_port_rights): Add qualifier const to
15400 2014-01-07 Yao Qi <yao@codesourcery.com>
15402 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15404 2014-01-07 Yao Qi <yao@codesourcery.com>
15406 * gnu-nat.c (make_inf) Update declaration.
15407 (make_inf): Make it static.
15408 (inf_set_traced): Likewise.
15409 (inf_port_to_thread, inf_task_died_status): Likewise.
15411 2014-01-07 Yao Qi <yao@codesourcery.com>
15413 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15415 2014-01-07 Yao Qi <yao@codesourcery.com>
15417 * gnu-nat.c (_initialize_gnu_nat): Declare.
15419 2014-01-07 Yao Qi <yao@codesourcery.com>
15421 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15423 (struct gdbarch_info) <byte_order>: Change type to
15425 <byte_order_for_code>: Likewise.
15426 * gdbarch.c, gdbarch.h: Regenerated.
15428 2014-01-06 Sasha Smundak <asmundak@google.com>
15430 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15432 2014-01-06 Tom Tromey <tromey@redhat.com>
15434 * doublest.c (convert_doublest_to_floatformat): Use const, not
15436 * somread.c (som_symtab_read): Likewise.
15438 2014-01-07 Hui Zhu <hui@codesourcery.com>
15440 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15441 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15442 (gdb_bfd_fopen): Ditto.
15443 (gdb_bfd_openr): Ditto.
15444 (gdb_bfd_openw): Ditto.
15445 (gdb_bfd_openr_iovec): Ditto.
15446 (gdb_bfd_fdopenr): Ditto.
15447 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15448 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15450 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15452 * symfile-mem.c (symbol_file_add_from_memory): Removed
15453 gdb_bfd_stash_filename.
15455 2014-01-03 Doug Evans <dje@google.com>
15457 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15460 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15462 Update year range in copyright notice of all files.
15464 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15466 * top.c (print_gdb_version): Set copyright year to 2014.
15468 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15470 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15472 For older changes see ChangeLog-2013.
15478 version-control: never