1 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
3 * MAINTAINERS (Write After Approval): Add myself.
5 2014-11-23 Joel Brobecker <brobecker@adacore.com>
7 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
8 to a bp_call_dummy breakpoint type.
10 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
12 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
13 registering the signal handler.
15 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
17 * event-top.h (call_stdin_event_handler_again_p): Declare.
18 * event-top.c (call_stdin_event_handler_again_p): Define.
19 (stdin_event_handler): Use it.
20 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
21 handler again if there is pending input following a
24 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
26 Pushed by Joel Brobecker <brobecker@adacore.com>
27 * linux-fork.c (checkpoint_command): Print index of new
28 checkpoint in response message.
30 2014-11-23 Yao Qi <yao@codesourcery.com>
32 * valprint.c (read_string): Move local variables 'found_nul',
33 'chunksize' and 'limit' to inner scope. Update comments.
35 2014-11-22 Doug Evans <xdje42@gmail.com>
37 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
39 (search_symbols): Fix comments and whitespace.
41 2014-11-22 Doug Evans <xdje42@gmail.com>
43 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
45 2014-11-21 Doug Evans <dje@google.com>
47 * psymtab.c (psymtab_search_name): Fix whitespace.
49 2014-11-21 Yao Qi <yao@codesourcery.com>
51 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
53 * gnulib/import/Makefile.am: Re-generated.
54 * gnulib/import/Makefile.in: Likewise.
55 * gnulib/import/m4/gnulib-cache.m4: Likewise.
57 2014-11-21 Yao Qi <yao@codesourcery.com>
59 * gdb_wchar.h: Include wchar.h and wctype.h.
60 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
61 include wchar.h and wctype.h.
62 Don't check HAVE_WCHAR_H.
64 2014-11-21 Yao Qi <yao@codesourcery.com>
66 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
68 * gnulib/import/Makefile.am: Re-generated.
69 * gnulib/import/Makefile.in: Likewise.
70 * gnulib/import/m4/gnulib-cache.m4: Likewise.
72 2014-11-21 Yao Qi <yao@codesourcery.com>
74 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
76 * gnulib/import/Makefile.am: Re-generated.
77 * gnulib/import/Makefile.in: Likewise.
78 * gnulib/import/m4/gnulib-cache.m4: Likewise.
80 2014-11-21 Yao Qi <yao@codesourcery.com>
82 * common/common-defs.h: Include alloca.h
83 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
84 * configure: Re-generated.
85 * defs.h: Remove code handling alloca.
86 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
89 2014-11-21 Yao Qi <yao@codesourcery.com>
91 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
93 * gnulib/import/Makefile.am: Re-generated.
94 * gnulib/import/Makefile.in: Likewise..
95 * gnulib/import/m4/gnulib-cache.m4: Likewise.
97 2014-11-21 Yao Qi <yao@codesourcery.com>
99 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
102 2014-11-21 Joel Brobecker <brobecker@adacore.com>
104 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
105 flag_unsigned if HIGH_BOUND is constant and negative.
107 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
110 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
111 modifier from "struct gdbarch" when compiling without Expat (XML)
113 (get_syscall_by_number): Likewise.
114 (get_syscall_by_name): Likewise.
115 (get_syscall_names): Likewise.
117 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
120 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
121 set_xml_syscall_file_name to provide gdbarch.
122 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
123 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
124 * breakpoint.c (print_it_catch_syscall): Adjust call to
125 get_syscall_by_number to provide gdbarch.
126 (print_one_catch_syscall): Likewise.
127 (print_mention_catch_syscall): Likewise.
128 (print_recreate_catch_syscall): Likewise.
129 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
130 and get_syscall_by_name to provide gdbarch.
131 (catch_syscall_completer): Adjust call to get_syscall_names to
133 * gdbarch.c: Regenerate.
134 * gdbarch.h: Likewise.
135 * gdbarch.sh: Forward declare "struct syscalls_info".
136 (xml_syscall_file): New variable.
137 (syscalls_info): Likewise.
138 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
139 set_xml_syscall_file_name to provide gdbarch.
140 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
141 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
142 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
143 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
144 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
145 * xml-syscall.c: Include gdbarch.h.
146 (set_xml_syscall_file_name): Accept gdbarch parameter.
147 (get_syscall_by_number): Likewise.
148 (get_syscall_by_name): Likewise.
149 (get_syscall_names): Likewise.
150 (my_gdb_datadir): Delete global variable.
151 (struct syscalls_info) <my_gdb_datadir>: New variable.
152 (struct syscalls_info) <sysinfo>: Rename variable to
154 (sysinfo): Delete global variable.
155 (have_initialized_sysinfo): Likewise.
156 (xml_syscall_file): Likewise.
157 (sysinfo_free_syscalls_desc): Rename to...
158 (syscalls_info_free_syscalls_desc): ... this.
159 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
160 code to the new layout of "struct syscalls_info".
161 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
163 (syscall_create_syscall_desc): Likewise.
164 (syscall_start_syscall): Likewise.
165 (syscall_parse_xml): Likewise.
166 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
167 (init_sysinfo): Rename to...
168 (init_syscalls_info): ...this. Add gdbarch as a parameter.
169 Adjust function to deal with gdbarch.
170 (xml_get_syscall_number): Delete parameter sysinfo. Accept
171 gdbarch as a parameter. Adjust code.
172 (xml_get_syscall_name): Likewise.
173 (xml_list_of_syscalls): Likewise.
174 (set_xml_syscall_file_name): Accept gdbarch as parameter.
175 (get_syscall_by_number): Likewise.
176 (get_syscall_by_name): Likewise.
177 (get_syscall_names): Likewise.
178 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
179 (get_syscall_by_number): Likewise.
180 (get_syscall_by_name): Likewise.
181 (get_syscall_names): Likewise.
183 2014-11-20 Doug Evans <xdje42@gmail.com>
185 Split struct symtab into two: struct symtab and compunit_symtab.
186 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
187 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
188 to "struct compunit_symtab *". All callers updated.
189 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
190 "struct symtab *" argument to "struct compunit_symtab *".
192 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
193 result to "struct compunit_symtab *". All callers updated.
194 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
195 Change result to "struct compunit_symtab *". All callers updated.
196 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
197 hange type to "struct compunit_symtab *". All uses updated.
198 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
199 Change type to "struct compunit_symtab *". All uses updated.
200 * buildsym.c (struct buildsym_compunit): New struct.
201 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
202 (buildsym_compunit): New static global.
203 (finish_block_internal): Update to fetch objfile from
205 (make_blockvector): Delete objfile argument.
206 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
207 debugformat, producer.
208 (start_buildsym_compunit): New function.
209 (free_buildsym_compunit): Renamed from free_subfiles_list.
211 (patch_subfile_names): Rewrite to use buildsym_compunit.
212 (get_compunit_symtab): New function.
213 (get_macro_table): Delete argument comp_dir. All callers updated.
214 (start_symtab): Change result to "struct compunit_symtab *".
215 All callers updated. Create the subfile of the main source file.
216 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
217 (reset_symtab_globals): Update.
218 (end_symtab_get_static_block): Update to use buildsym_compunit.
219 (end_symtab_without_blockvector): Rewrite.
220 (end_symtab_with_blockvector): Change result to
221 "struct compunit_symtab *". All callers updated.
222 Update to use buildsym_compunit. Don't set symtab->dirname,
223 instead set it in the compunit.
224 Explicitly make sure main symtab is first in its list.
225 Set debugformat, producer, blockvector, block_line_section, and
226 macrotable in the compunit.
227 (end_symtab_from_static_block): Change result to
228 "struct compunit_symtab *". All callers updated.
229 (end_symtab, end_expandable_symtab): Ditto.
230 (set_missing_symtab): Change symtab argument to
231 "struct compunit_symtab *". All callers updated.
232 (augment_type_symtab): Ditto.
233 (record_debugformat): Update to use buildsym_compunit.
234 (record_producer): Update to use buildsym_compunit.
235 * buildsym.h (struct subfile) <dirname>: Delete.
236 <producer, debugformat>: Delete.
237 <buildsym_compunit>: New member.
238 (get_compunit_symtab): Declare.
239 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
240 from primary_symtab. Change type to "struct compunit_symtab *".
242 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
244 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
245 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
246 symtab. Change type to "struct compunit_symtab *". All uses updated.
247 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
249 (dw2_find_last_source_symtab): Ditto.
250 (dw2_lookup_symbol): Ditto.
251 (recursively_find_pc_sect_compunit_symtab): Renamed from
252 recursively_find_pc_sect_symtab. Change result to
253 "struct compunit_symtab *". All callers updated.
254 (dw2_find_pc_sect_compunit_symtab): Renamed from
255 dw2_find_pc_sect_symtab. Change result to
256 "struct compunit_symtab *". All callers updated.
257 (get_compunit_symtab): Renamed from get_symtab. Change result to
258 "struct compunit_symtab *". All callers updated.
259 (recursively_compute_inclusions): Change type of immediate_parent
260 argument to "struct compunit_symtab *". All callers updated.
261 (compute_compunit_symtab_includes): Renamed from
262 compute_symtab_includes. All callers updated. Rewrite to compute
263 includes of compunit_symtabs and not symtabs.
264 (process_full_comp_unit): Update to work with struct compunit_symtab.
265 (process_full_type_unit): Ditto.
266 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
267 (dwarf_decode_lines): Remove special case handling of main subfile.
268 (macro_start_file): Delete argument comp_dir. All callers updated.
269 (dwarf_decode_macro_bytes): Ditto.
270 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
271 use struct compunit_symtab.
272 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
273 * jit.c (finalize_symtab): Build compunit_symtab.
274 * jv-lang.c (get_java_class_symtab): Change result to
275 "struct compunit_symtab *". All callers updated.
276 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
277 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
278 comp_dir. Change type to "struct compunit_symtab *".
280 (new_macro_table): Change comp_dir argument to cust,
281 "struct compunit_symtab *". All callers updated.
282 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
283 nr_primary_symtabs. All uses updated.
284 (count_symtabs_and_blocks): Update to handle compunits.
285 (report_command_stats): Update output, "primary symtabs" renamed to
287 * mdebugread.c (new_symtab): Change result to
288 "struct compunit_symtab *". All callers updated.
289 (parse_procedure): Change type of search_symtab argument to
290 "struct compunit_symtab *". All callers updated.
291 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
293 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
294 symtabs. Change type to "struct compunit_symtab *". All uses updated.
295 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
297 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
299 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
300 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
301 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
302 symtab. Change type to "struct compunit_symtab *". All uses updated.
303 * psymtab.c (psymtab_to_symtab): Change result type to
304 "struct compunit_symtab *". All callers updated.
305 (find_pc_sect_compunit_symtab_from_partial): Renamed from
306 find_pc_sect_symtab_from_partial. Change result type to
307 "struct compunit_symtab *". All callers updated.
308 (lookup_symbol_aux_psymtabs): Change result type to
309 "struct compunit_symtab *". All callers updated.
310 (find_last_source_symtab_from_partial): Ditto.
311 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
312 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
313 and macro_table from compunit.
314 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
315 type to "struct compunit_symtab *". All callers updated.
316 (debug_qf_lookup_symbol): Ditto.
317 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
318 debug_qf_find_pc_sect_symtab, change result type to
319 "struct compunit_symtab *". All callers updated.
320 * symfile.c (allocate_symtab): Delete objfile argument.
322 (allocate_compunit_symtab): New function.
323 (add_compunit_symtab_to_objfile): New function.
324 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
325 Change result type to "struct compunit_symtab *". All uses updated.
326 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
327 Change result type to "struct compunit_symtab *". All uses updated.
328 * symmisc.c (print_objfile_statistics): Compute blockvector count in
330 (dump_symtab_1): Update test for primary source symtab.
331 (maintenance_info_symtabs): Update to handle compunit symtabs.
332 (maintenance_check_symtabs): Ditto.
333 * symtab.c (set_primary_symtab): Delete.
334 (compunit_primary_filetab): New function.
335 (compunit_language): New function.
336 (iterate_over_some_symtabs): Change type of arguments "first",
337 "after_last" to "struct compunit_symtab *". All callers updated.
338 Update to loop over symtabs in each compunit.
339 (error_in_psymtab_expansion): Rename symtab argument to cust,
340 and change type to "struct compunit_symtab *". All callers updated.
341 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
342 Change result type to "struct compunit_symtab *". All callers updated.
343 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
344 Change result type to "struct compunit_symtab *". All callers updated.
345 (find_pc_sect_line): Only loop over symtabs within selected compunit
346 instead of all symtabs in the objfile.
347 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
348 <compunit_symtab> New member.
349 <block_line_section>: Moved to compunit_symtab.
350 <locations_valid>: Ditto.
351 <epilogue_unwind_valid>: Ditto.
352 <macro_table>: Ditto.
354 <debugformat>: Ditto.
357 <call_site_htab>: Ditto.
361 (SYMTAB_COMPUNIT): New macro.
362 (SYMTAB_BLOCKVECTOR): Update definition.
363 (SYMTAB_OBJFILE): Update definition.
364 (SYMTAB_DIRNAME): Update definition.
365 (struct compunit_symtab): New type. Common members among all source
366 symtabs within a compilation unit moved here. All uses updated.
367 (COMPUNIT_OBJFILE): New macro.
368 (COMPUNIT_FILETABS): New macro.
369 (COMPUNIT_DEBUGFORMAT): New macro.
370 (COMPUNIT_PRODUCER): New macro.
371 (COMPUNIT_DIRNAME): New macro.
372 (COMPUNIT_BLOCKVECTOR): New macro.
373 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
374 (COMPUNIT_LOCATIONS_VALID): New macro.
375 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
376 (COMPUNIT_CALL_SITE_HTAB): New macro.
377 (COMPUNIT_MACRO_TABLE): New macro.
378 (ALL_COMPUNIT_FILETABS): New macro.
379 (compunit_symtab_ptr): New typedef.
380 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
382 2014-11-20 Joel Brobecker <brobecker@adacore.com>
384 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
385 if the TYPE_CODE of range_type's base type does not match
386 the TYPE_CODE of encoding_type's base type.
388 2014-11-19 Joel Brobecker <brobecker@adacore.com>
390 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
393 2014-11-19 Joel Brobecker <brobecker@adacore.com>
395 * ada-lang.c (ada_is_redundant_range_encoding): New function.
396 (ada_is_redundant_index_type_desc): New function.
397 (to_fixed_array_type): Ignore parallel XA type if redundant.
399 2014-11-19 Joel Brobecker <brobecker@adacore.com>
401 * ada-lang.c (constrained_packed_array_type): Set the length
402 of the return array as if both bounds where zero if that
403 returned array's index type is dynamic.
405 2014-11-19 Yao Qi <yao@codesourcery.com>
407 * config/i386/go32.mh (CC): Remove.
409 2014-11-18 Doug Evans <xdje42@gmail.com>
411 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
414 2014-11-18 Doug Evans <xdje42@gmail.com>
416 * buildsym.c (buildsym_objfile): New static global.
417 (buildsym_comp_dir): New static global.
418 (finish_block_internal): Delete arg objfile. All callers updated.
419 (finish_block): Delete arg objfile. All callers updated.
420 (start_subfile): Delete arg dirname. All callers updated.
421 (patch_subfile_names): Update buildsym_comp_dir.
422 (get_macro_table): Delete arg objfile. All callers updated.
423 (start_symtab): New arg objfile. All callers updated.
424 Rename arg dirname to comp_dir.
425 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
426 (end_symtab_get_static_block): Delete arg objfile. All callers
428 (end_symtab_without_blockvector): Ditto.
429 (end_symtab_with_blockvector): Ditto.
430 (end_symtab_from_static_block): Ditto.
432 (end_expandable_symtab): Ditto.
433 (augment_type_symtab): Ditto.
434 * coffread.c (coff_start_symtab): New arg objfile. All callers
437 2014-11-18 Doug Evans <xdje42@gmail.com>
439 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
442 2014-11-18 Doug Evans <xdje42@gmail.com>
444 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
445 symtab.dirname updated to use it.
447 2014-11-18 Doug Evans <xdje42@gmail.com>
449 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
450 symtab.objfile updated to use it.
452 2014-11-18 Doug Evans <xdje42@gmail.com>
454 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
456 2014-11-18 Doug Evans <xdje42@gmail.com>
458 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
460 * findvar.c (default_read_var_value): Ditto.
461 * jv-lang.c (add_class_symtab_symbol): Ditto.
462 * parse.c (operator_check_standard): Ditto.
463 * printcmd.c (address_info): Ditto.
464 * symtab.c (fixup_symbol_section): Ditto.
465 (skip_prologue_sal): Ditto.
466 * tracepoint.c (scope_info): Ditto.
467 * valops.c (find_function_in_inferior): Ditto.
468 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
469 * python/py-symbol.c (set_symbol): Ditto.
471 2014-11-18 Doug Evans <xdje42@gmail.com>
473 * buildsym.c (main_subfile): New static global.
474 (free_subfiles_list): New function.
475 (start_symtab): Set main_subfile.
476 (restart_symtab): Replace init of subfiles, current_subfile with
477 call to free_subfiles_list.
478 (watch_main_source_file_lossage): Use main_subfile.
479 (reset_symtab_globals): Replace init of current_subfile with call
480 to free_subfiles_list.
481 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
482 functions, split out from ...
483 (end_symtab_from_static_block): ... here. Rewrite to call them.
485 2014-11-18 Doug Evans <xdje42@gmail.com>
487 The result of symtab expansion is always a primary symtab.
488 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
489 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
490 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
491 (psymtab_to_symtab): Add comment and assert.
492 (map_matching_symbols_psymtab): Remove unnecessary test for
495 2014-11-15 Doug Evans <xdje42@gmail.com>
498 * symtab.c (find_pc_line_symtab): New function.
499 * symtab.h (find_pc_line_symtab): Declare.
500 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
502 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
503 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
504 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
505 * tui/tui-win.c (make_visible_with_new_height): Ditto.
506 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
507 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
509 2014-11-15 Doug Evans <xdje42@gmail.com>
511 * symtab.c (expand_symtab_containing_pc): Renamed from
512 find_pc_sect_symtab_via_partial. All callers updated.
514 2014-11-15 Yao Qi <yao@codesourcery.com>
516 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
518 2014-11-14 Joel Brobecker <brobecker@adacore.com>
520 * common/common-defs.h: Move <stdarg.h> #include ahead of
523 2014-11-14 Pedro Alves <palves@redhat.com>
525 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
526 [!PHONY_ICONV] (gdb_iconv): New function.
527 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
529 2014-11-13 Doug Evans <dje@google.com>
532 * dwarf2read.c (find_slot_in_mapped_hash): Handle
533 "(anonymous namespace)".
535 2014-11-13 Doug Evans <dje@google.com>
537 * dwarf2read.c (update_enumeration_type_from_children): Avoid
540 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
542 * NEWS (maint set target-async): Fix typo.
544 2014-11-12 Pedro Alves <palves@redhat.com>
546 * infrun.c (enum infwait_states, infwait_state): Delete.
548 2014-11-12 Pedro Alves <palves@redhat.com>
550 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
551 Rewrite stepping over a permanent breakpoint.
552 (thread_still_needs_step_over, proceed): Don't set
553 stepping_over_breakpoint for permanent breakpoints.
554 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
555 single-step breakpoints out of the target on hardware step
557 (process_event_stop_test): If stepping a permanent breakpoint
558 doesn't hit the step-resume breakpoint, delete the step-resume
560 (switch_back_to_stepped_thread): Also check if the stepped thread
561 has advanced already on hardware step targets.
562 (currently_stepping): Return true if the thread stepped a
565 2014-11-12 Pedro Alves <palves@redhat.com>
567 Mark locations as permanent, not the whole breakpoint.
568 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
569 (mark_breakpoints_out): Don't mark permanent breakpoints as
571 (breakpoint_init_inferior): Use mark_breakpoints_out.
572 (breakpoint_here_p): Adjust.
573 (bpstat_stop_status, describe_other_breakpoints): Remove handling
574 of permanent breakpoints.
575 (make_breakpoint_permanent): Mark each location as permanent,
576 instead of marking the breakpoint.
577 (add_location_to_breakpoint): If the location is permanent, mark
578 it as such, and as inserted.
579 (init_breakpoint_sal): Don't make the breakpoint permanent here.
580 (bp_location_compare, update_global_location_list): Adjust.
581 (update_breakpoint_locations): Don't make the breakpoint permanent
583 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
585 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
586 (struct bp_location) <permanent>: New field.
587 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
588 reference to bp_permanent.
590 2014-11-12 Pedro Alves <palves@redhat.com>
592 * arch-utils.c (default_skip_permanent_breakpoint): New function.
593 * arch-utils.h (default_skip_permanent_breakpoint): New
595 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
596 Install default_skip_permanent_breakpoint as default method.
597 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
598 (i386_gdbarch_init): Don't install it.
599 * infrun.c (resume): Assume there's always a
600 gdbarch_skip_permanent_breakpoint implementation.
601 * gdbarch.h, gdbarch.c: Regenerate.
603 2014-11-11 Daniel Colascione <dancol@dancol.org>
605 Warn about cross-PID-namespace debugging.
606 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
607 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
608 * linux-thread-db.c (check_pid_namespace_match): New function.
609 (thread_db_inferior_created): Call it.
611 2014-11-10 Doug Evans <xdje42@gmail.com>
613 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
614 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
616 2014-11-10 Doug Evans <xdje42@gmail.com>
618 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
620 2014-11-10 Doug Evans <xdje42@gmail.com>
623 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
624 (lookup_static_symbol): Move definition to new location and rewrite.
625 (lookup_symbol_in_objfile): New function.
626 (lookup_symbol_global_iterator_cb): Call it.
628 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
630 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
632 2014-11-07 Pedro Alves <palves@redhat.com>
634 * infrun.c (process_event_stop_test) <subroutine check>: Don't
635 check if we did a "nexti" inside a prologue.
636 * symtab.c (in_prologue): Delete function.
637 * symtab.h (in_prologue): Delete declaration.
639 2014-11-06 Doug Evans <xdje42@gmail.com>
641 * symtab.h (lookup_global_symbol): Improve function comment.
643 2014-11-06 Doug Evans <xdje42@gmail.com>
645 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
647 * symtab.h (lookup_global_symbol): Update decl.
648 (lookup_static_symbol): Move decl to better location.
650 2014-11-06 Doug Evans <xdje42@gmail.com>
652 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
654 2014-11-06 Doug Evans <xdje42@gmail.com>
656 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
658 (lookup_symbol_in_all_objfiles): Renamed from
659 lookup_symbol_aux_symtabs. All callers updated.
660 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
662 (lookup_symbol_in_objfile_symtabs): Renamed from
663 lookup_symbol_aux_objfile. All callers updated.
665 2014-11-06 Doug Evans <xdje42@gmail.com>
667 * symtab.c (lookup_symbol_in_block): Renamed from
668 lookup_symbol_aux_block. All callers updated.
670 2014-11-06 Doug Evans <xdje42@gmail.com>
672 * symtab.c (lookup_static_symbol): Renamed from
673 lookup_static_symbol_aux. All callers updated.
674 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
677 2014-11-06 Doug Evans <xdje42@gmail.com>
679 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
680 * block.c (block_lookup_symbol): Use it.
681 * cp-support.c (make_symbol_overload_list_block): Use it.
682 * symtab.c (iterate_over_symbols): Use it.
684 2014-11-06 Doug Evans <xdje42@gmail.com>
686 * symtab.c (lookup_block_symbol): Moved to ...
687 * block.c (block_lookup_symbol): ... here and renamed.
689 * block.h (block_lookup_symbol): Declare.
690 * symtab.h (lookup_block_symbol): Delete.
692 2014-11-06 Doug Evans <xdje42@gmail.com>
694 * ada-lang.c (ada_make_symbol_completion_list): Use
695 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
696 * symtab.c (lookup_objfile_from_block): Ditto.
698 2014-11-06 Doug Evans <xdje42@gmail.com>
700 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
703 2014-11-06 Doug Evans <xdje42@gmail.com>
705 * objfiles.c (get_objfile_arch): Constify.
706 * objfiles.h (get_objfile_arch): Update prototype.
707 * solib.c (solib_global_lookup): Fetch arch from objfile,
710 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
712 * nios2-tdep.c (wild_insn): Delete.
713 (profiler_insn, irqentry_insn): Delete.
714 (nios2_match_sequence): Delete.
715 (nios2_analyze_prologue): Update comments. Remove matching
716 of obsolete profiler_insn and irqentry_insn sequences.
718 2014-11-05 Alan Modra <amodra@gmail.com>
720 * charset.c (convert_between_encodings): Shrink obstack using
722 * minsyms.c (install_minimal_symbols): Likewise.
723 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
724 to char* before doing pointer arithmetic.
726 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
728 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
730 2014-11-04 Pedro Alves <palves@redhat.com>
732 * breakpoint.c (breakpoint_thread_match): Delete function.
733 * breakpoint.h (breakpoint_thread_match): Delete declaration.
735 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
738 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
739 the method args also under EVAL_SKIP when evaluating method
740 calls under EVAL_SKIP.
742 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
744 * dwarf2loc.c (read_pieced_value): Do big endian
745 processing only if gdb_regnum is not -1.
746 (write_pieced_value): Ditto.
748 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
750 * arm-linux-tdep.c (arm_linux_init_abi): Use
751 info.byte_order_for_code to choose endianity of breakpoint
752 instructions snippets.
754 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
756 * arm-tdep.c (extract_arm_insn): Use
757 gdbarch_byte_order_for_code to read arm instruction.
759 2014-11-02 Doug Evans <xdje42@gmail.com>
761 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
763 2014-11-02 Doug Evans <xdje42@gmail.com>
765 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
766 main_subfile before returning.
768 2014-10-31 Doug Evans <xdje42@gmail.com>
770 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
771 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
773 2014-10-31 Doug Evans <xdje42@gmail.com>
775 * valops.c (value_cast_pointers): Fix whitespace.
776 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
779 2014-10-30 Doug Evans <dje@google.com>
781 * NEWS: Mention ability add attributes to gdb.Objfile and
782 gdb.Progspace objects.
783 * python/py-objfile.c (objfile_object): New member dict.
784 (objfpy_dealloc): Py_XDECREF dict.
785 (objfpy_initialize): Initialize dict.
786 (objfile_getset): Add __dict__.
787 (objfile_object_type): Set tp_dictoffset member.
788 * python/py-progspace.c (progspace_object): New member dict.
789 (pspy_dealloc): Py_XDECREF dict.
790 (pspy_initialize): Initialize dict.
791 (pspace_getset): Add __dict__.
792 (pspace_object_type): Set tp_dictoffset member.
794 2014-10-30 Yao Qi <yao@codesourcery.com>
796 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
797 replace '\\' with '\\\\'.
799 2014-10-29 Joel Brobecker <brobecker@adacore.com>
803 2014-10-29 Pedro Alves <palves@redhat.com>
806 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
807 instead of assuming a thread with a stepping range is always
810 2014-10-29 Pedro Alves <palves@redhat.com>
813 * event-top.c (change_line_handler): Call
814 gdb_rl_callback_handler_remove instead of
815 rl_callback_handler_remove.
816 (callback_handler_installed): New global.
817 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
818 (gdb_rl_callback_handler_reinstall): New functions.
819 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
820 gdb_rl_callback_handler_install instead of
821 rl_callback_handler_remove and rl_callback_handler_install.
822 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
823 instead of rl_callback_handler_remove.
824 * event-top.h (gdb_rl_callback_handler_remove)
825 (gdb_rl_callback_handler_install)
826 (gdb_rl_callback_handler_reinstall): New declarations.
827 * infrun.c (reinstall_readline_callback_handler_cleanup): New
829 (fetch_inferior_event): Install it.
830 * top.c (gdb_readline_wrapper_line) Call
831 gdb_rl_callback_handler_remove instead of
832 rl_callback_handler_remove.
833 (gdb_readline_wrapper_cleanup): Don't call
834 rl_callback_handler_install.
836 2014-10-29 Pedro Alves <palves@redhat.com>
838 * event-top.c (command_line_handler): Clear the first byte of
839 linebuffer, when it is first allocated.
841 2014-10-29 Pedro Alves <palves@redhat.com>
843 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
846 2014-10-29 Pedro Alves <palves@redhat.com>
850 * tui/tui-interp.c (tui_is_toplevel): Delete global.
851 (tui_allowed_p): Delete function.
852 * tui/tui.c: Include "interps.h".
853 (tui_enable): Don't use tui_allowed_p. Error out here with
854 detailed error messages if the TUI is the top level interpreter,
855 or if output is not a terminal. Use newterm instead of initscr,
856 and error out if initializing the terminal fails. Also error out if
857 the terminal doesn't support cursor addressing.
858 * tui/tui.h (tui_allowed_p): Delete declaration.
860 2014-10-29 Joel Brobecker <brobecker@adacore.com>
862 * arm-tdep.c (arm_skip_stack_protector): Return early if
863 address loaded by first "ldr" instruction does not have
864 a corresponding minimal symbol. Update comment.
866 2014-10-29 Yao Qi <yao@codesourcery.com>
868 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
869 loaded address correctly of ldr instruction.
871 2014-10-28 Pedro Alves <palves@redhat.com>
874 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
876 * infrun.c (resume) <stepping breakpoint instruction>: Set the
877 thread's stepped_breakpoint field. Skip if reverse debugging.
879 (init_thread_stepping_state, handle_signal_stop): Clear the
880 thread's stepped_breakpoint field.
882 2014-10-27 Pedro Alves <palves@redhat.com>
884 * remote.c (remote_thread_alive): New, factored out from ...
885 (remote_thread_alive): ... this.
886 (remote_update_thread_list): Bail out before deleting threads if
887 the target returned an empty list, and, the current thread has a
890 2014-10-27 Pedro Alves <palves@redhat.com>
892 * infrun.c (handle_signal_stop): Also skip handlers when a random
893 signal arrives while handling a "stepi" or a "nexti". Set the
894 thread's 'step_after_step_resume_breakpoint' flag.
896 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
898 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
899 (arm_record_ld_st_imm_offset): Reimplement to cover all
900 load/store cases for ARM opcode 010.
901 (arm_record_ld_st_multiple): Reimplement to cover all
902 load/store cases for ARM opcode 100.
904 2014-10-26 Doug Evans <xdje42@gmail.com>
906 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
908 2014-10-26 Doug Evans <xdje42@gmail.com>
910 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
911 parameter "kind" to "block_index".
912 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
914 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
916 2014-10-26 Doug Evans <xdje42@gmail.com>
918 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
920 2014-10-26 Doug Evans <xdje42@gmail.com>
922 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
925 2014-10-26 Doug Evans <xdje42@gmail.com>
927 * parser-defs.h (block_found): Move decl from here ...
928 * symtab.h (block_found): ... to here.
930 2014-10-26 Doug Evans <xdje42@gmail.com>
932 * symtab.h (struct field_of_this_result): Fix typo in comment.
933 (lookup_symbol_in_language): Move function comment here.
934 (lookup_symbol): Improve function comment.
935 (basic_lookup_symbol_nonlocal): Ditto.
936 (lookup_symbol_static, lookup_symbol_global): Ditto.
937 (lookup_symbol_aux_block): Ditto.
938 (lookup_language_this): Add function comment.
939 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
941 (lookup_block_symbol): Improve function comment.
942 (lookup_struct): Fix capitalization in function comment.
943 (lookup_transparent_type): Add function comment.
944 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
945 Improve function comment.
946 (lookup_objfile_from_block): Add function comment.
947 * symtab.c (lookup_symbol_in_language): Update function comment.
948 (lookup_symbol, lookup_language_this): Ditto.
949 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
950 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
951 (basic_lookup_symbol_nonlocal): Ditto.
952 (lookup_symbol_static, lookup_symbol_global): Ditto.
953 (lookup_transparent_type, lookup_block_symbol): Ditto.
955 2014-10-25 Doug Evans <xdje42@gmail.com>
957 * symtab.c (types_info): Delete forward decl.
958 (functions_info, variables_info, sources_info): Ditto.
959 (_initialize_symtab): Rewrite forward decl to use
960 initialize_file_ftype.
962 2014-10-25 Doug Evans <xdje42@gmail.com>
964 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
966 2014-10-25 Doug Evans <xdje42@gmail.com>
968 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
969 of local var child_die.
971 2014-10-24 Don Breazeal <donb@codesourcery.com>
973 * infrun.c (follow_fork_inferior): Update fork message printing
974 to use target_terminal_ours_for_output instead of
975 target_terminal_ours, to use _() for all format strings, to print
976 "vfork" instead of "fork" for vforks, and to add a detach message.
977 (handle_vfork_child_exec_or_exit): Update message printing to use
978 target_terminal_ours_for_output instead of target_terminal_ours, to
979 use _() for all format strings, and to fix some formatting.
981 2014-10-24 Pedro Alves <palves@redhat.com>
983 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
984 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
985 * config/vax/vax.mh: Delete.
986 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
987 obsolete configurations section.
988 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
989 * vax-nat.c: Delete file.
991 2014-10-24 Pedro Alves <palves@redhat.com>
993 * NEWS (Removed targets): Add OS/arch column.
995 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
997 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
998 on the arg type of a constructor only if it is of reference type.
1000 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1002 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1003 accessors and constants from nios2 opcodes update.
1004 (nios2_get_next_pc): Likewise.
1006 2014-10-19 Doug Evans <xdje42@gmail.com>
1008 * gdbthread.h (set_running): Fix comment.
1009 (set_executing, finish_thread_state): Fix comment.
1011 2014-10-18 Doug Evans <xdje42@gmail.com>
1013 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1015 2014-10-17 Doug Evans <dje@google.com>
1017 * NEWS: Mention new event gdb.clear_objfiles.
1018 * python/py-event.h (emit_clear_objfiles_event): Clear
1019 * python/py-events.h (events_object): New member clear_objfiles.
1020 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1022 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1023 emit clear_objfiles event.
1024 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1026 (emit_clear_objfiles_event): New function.
1027 (clear_objfiles): New event.
1028 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1030 * python/python.c (_initialize_python): Call
1031 gdbpy_initialize_clear_objfiles_event.
1033 2014-10-17 Doug Evans <dje@google.com>
1035 * NEWS: Mention new gdb.Objfile.progspace attribute.
1036 * python/py-objfile.c (objfpy_get_progspace): New function.
1037 (objfile_getset): New entry for "progspace".
1039 2014-10-17 Pedro Alves <palves@redhat.com>
1042 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1043 returns a copy of the input.
1044 (run_command_1, continue_command, step_1, jump_command)
1045 (signal_command, until_command, advance_command, finish_command)
1046 (attach_command): Adjust and install a cleanup to free the
1049 2014-10-17 Pedro Alves <palves@redhat.com>
1052 * infcmd.c (continue_1): If continuing all threads in the
1053 foreground, make sure the inferior's terminal settings are put in
1056 2014-10-17 Pedro Alves <palves@redhat.com>
1059 * annotate.c (annotate_breakpoints_invalid): Use
1060 target_terminal_our_for_output instead of target_terminal_ours.
1061 Give back the terminal to the target.
1062 (annotate_frames_invalid): Likewise.
1064 2014-10-17 Pedro Alves <palves@redhat.com>
1066 * target.c (enum terminal_state): New enum.
1067 (terminal_state): New global.
1068 (target_terminal_init): New function.
1069 (target_terminal_inferior): Skip if inferior already owns the
1071 (target_terminal_ours, target_terminal_ours_for_output): New
1073 * target.h (target_terminal_init): Convert to function prototype.
1074 (target_terminal_ours_for_output): Convert to function prototype
1076 (target_terminal_ours): Convert to function prototype and tweak
1078 * windows-nat.c (do_initial_windows_stuff): Call
1079 target_terminal_init instead of child_terminal_init_with_pgrp.
1081 2014-10-17 Pedro Alves <palves@redhat.com>
1083 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1084 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1085 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1087 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1088 * ada-lang.h [__alpha__ && __osf__]
1089 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1090 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1091 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1093 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1095 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1096 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1097 * configure: Regenerate.
1098 * configure.ac: Remove references to osf.
1099 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1100 section. Remove all other references to osf.
1101 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1102 Remove all other references to osf.
1103 * dec-thread.c: Delete file.
1104 * defs.h (GDB_OSABI_OSF1): Delete.
1105 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1107 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1108 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1110 (unconditionally_kill_inferior)
1111 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1112 * solib-osf.c: Delete file.
1114 2014-10-17 Pedro Alves <palves@redhat.com>
1116 * remote.c (clear_threads_listing_context): Move higher up, out of
1117 the HAVE_LIBEXPAT guard.
1119 2014-10-16 Tristan Gingold <gingold@adacore.com>
1121 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1122 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1125 2014-10-15 Pedro Alves <palves@redhat.com>
1127 * dec-thread.c (dec_thread_count_gdb_threads)
1128 (dec_thread_add_gdb_thread): Delete.
1129 (dec_thread_update_thread_list): Delete.
1130 (dec_thread_find_new_threads): Rename to ...
1131 (dec_thread_update_thread_list): ... this. Delete GDB-size
1132 threads that are no longer found in dec_thread_list.
1133 (resync_thread_list): Delete.
1134 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1137 2014-10-15 Pedro Alves <palves@redhat.com>
1139 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1140 * remote.c (remote_update_thread_list): Skip calling prune_threads
1141 if any thread listing method is supported, and instead walk over
1142 the set of remote threads listed, deleting those that are not
1143 found in GDB's thread list.
1145 2014-10-15 Pedro Alves <palves@redhat.com>
1147 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1148 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1149 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1150 (bsd_uthread_target): Adjust.
1151 * corelow.c (core_open): Adjust.
1152 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1153 (dec_thread_update_thread_list): New function.
1154 (init_dec_thread_ops): Adjust.
1155 * gdbthread.h (prune_threads): New declaration.
1156 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1157 (thread_db_update_thread_list): ... this. Call prune_threads.
1158 (init_thread_db_ops): Adjust.
1159 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1160 (procfs_update_thread_list): ... this. Call prune_threads.
1161 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1163 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1164 (obsd_update_thread_list): ... this. Call prune_threads.
1165 (obsd_add_target): Adjust.
1166 * procfs.c (procfs_target): Adjust.
1167 (procfs_notice_thread): Update comment.
1168 (procfs_find_new_threads): Rename to ...
1169 (procfs_update_thread_list): ... this. Call prune_threads.
1170 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1172 (ravenscar_wait): Adjust.
1173 (ravenscar_find_new_threads): Rename to ...
1174 (ravenscar_update_thread_list): ... this. Call prune_threads.
1175 (init_ravenscar_thread_ops): Adjust.
1176 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1177 (record_btrace_update_thread_list): ... this. Adjust comment.
1178 (init_record_btrace_ops): Adjust.
1179 * remote.c (remote_threads_info): Rename to ...
1180 (remote_update_thread_list): ... this. Call prune_threads.
1181 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1183 * sol-thread.c (check_for_thread_db): Adjust.
1184 (sol_find_new_threads_callback): Rename to ...
1185 (sol_update_thread_list_callback): ... this.
1186 (sol_find_new_threads): Rename to ...
1187 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1188 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1189 * target-delegates.c: Regenerate.
1190 * target.c (target_find_new_threads): Rename to ...
1191 (target_update_thread_list): ... this.
1192 * target.h (struct target_ops): Rename to_find_new_threads field
1193 to to_update_thread_list.
1194 (target_find_new_threads): Rename to ...
1195 (target_update_thread_list): ... this.
1196 * thread.c (prune_threads): Make extern.
1197 (update_thread_list): Adjust.
1199 2014-10-15 Pedro Alves <palves@redhat.com>
1201 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1202 Add describing comment. Return -1 if the qL packet is not
1204 (struct thread_item, thread_item_t): Move higher up in
1205 the file. Add comments.
1206 (struct threads_parsing_context): Move higher up in
1207 the file, add comments, and remote to ...
1208 (struct threads_listing_context): ... this.
1209 (remote_newthread_step): Don't add the thread to GDB's thread
1210 database here. Instead push it to the thread_listing_context
1212 (remote_find_new_threads): Rename to ...
1213 (remote_get_threads_with_ql): ... this. Add target_ops and
1214 targets_listing_context parameters. Pass down context.
1215 (start_thread): Adjust.
1216 (clear_threads_parsing_context): Rename to ...
1217 (clear_threads_listing_context): ... this.
1218 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1219 remote_threads_info.
1220 (remote_get_threads_with_qthreadinfo): Ditto.
1221 (remote_threads_info): Reimplement.
1223 2014-10-15 Pedro Alves <palves@redhat.com>
1225 * infrun.c (resume): Don't force displaced-stepping for all
1226 single-steps on software single-stepping archs.
1228 2014-10-15 Pedro Alves <palves@redhat.com>
1230 * breakpoint.c (single_step_breakpoints): Delete global.
1231 (insert_single_step_breakpoint): Adjust to store the breakpoint
1232 pointer in the current thread.
1233 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1234 (cancel_single_step_breakpoints): Delete functions.
1235 (breakpoint_has_location_inserted_here): Make extern.
1236 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1238 * breakpoint.h (breakpoint_has_location_inserted_here): New
1240 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1241 (cancel_single_step_breakpoints): Remove declarations.
1242 * gdbthread.h (struct thread_control_state)
1243 <single_step_breakpoints>: New field.
1244 (delete_single_step_breakpoints)
1245 (thread_has_single_step_breakpoints_set)
1246 (thread_has_single_step_breakpoint_here): New declarations.
1247 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1248 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1249 (singlestep_pc): Delete globals.
1250 (infrun_thread_ptid_changed): Remove references to removed
1252 (resume_cleanups): Delete the current thread's single-step
1254 (maybe_software_singlestep): Remove references to removed globals.
1255 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1256 delete_single_step_breakpoints.
1257 (init_wait_for_inferior): Remove references to removed globals.
1258 (delete_thread_infrun_breakpoints): Delete the thread's
1259 single-step breakpoints too.
1260 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1261 single-step breakpoints here.
1262 (delete_stopped_threads_single_step_breakpoints): New function.
1263 (adjust_pc_after_break): Adjust to use
1264 thread_has_single_step_breakpoints_set.
1265 (handle_inferior_event): Remove references to removed globals.
1266 Use delete_stopped_threads_single_step_breakpoints.
1267 (handle_signal_stop): Adjust to per-thread single-step
1268 breakpoints. Swap test order to do cheaper tests first.
1269 (switch_back_to_stepped_thread): Extend debug output. Remove
1270 references to removed globals.
1271 * record-full.c (record_full_wait_1): Adjust to per-thread
1272 single-step breakpoints.
1273 * thread.c (delete_single_step_breakpoints)
1274 (thread_has_single_step_breakpoints_set)
1275 (thread_has_single_step_breakpoint_here): New functions.
1276 (clear_thread_inferior_resources): Also delete the thread's
1277 single-step breakpoints.
1279 2014-10-15 Pedro Alves <palves@redhat.com>
1281 * thread.c (delete_thread_breakpoint): New function.
1282 (delete_step_resume_breakpoint)
1283 (delete_exception_resume_breakpoint): Use it.
1284 (delete_at_next_stop): New function.
1285 (clear_thread_inferior_resources): Use delete_at_next_stop.
1287 2014-10-15 Pedro Alves <palves@redhat.com>
1289 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1290 (breakpoint_inserted_here_p): ... here. Remove special case for
1291 software single-step breakpoints.
1292 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1293 (software_breakpoint_inserted_here_p): ... here. Remove special
1294 case for software single-step breakpoints.
1295 (bp_target_info_copy_insertion_state)
1296 (deprecated_insert_raw_breakpoint)
1297 (deprecated_remove_raw_breakpoint): Delete functions.
1298 * breakpoint.h (deprecated_insert_raw_breakpoint)
1299 (deprecated_remove_raw_breakpoint): Remove declarations.
1301 2014-10-15 Pedro Alves <palves@redhat.com>
1304 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1305 Delete array globals.
1306 (single_step_breakpoints): New global.
1307 (breakpoint_xfer_memory): Remove special handling for single-step
1309 (update_breakpoints_after_exec): Delete bp_single_step
1311 (detach_breakpoints): Remove special handling for single-step
1313 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1314 (bpstat_stop_status): Add comment.
1315 (bpstat_what, bptype_string, print_one_breakpoint_location)
1316 (adjust_breakpoint_address, init_bp_location): Handle
1318 (new_single_step_breakpoint): New function.
1319 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1320 handling for single-step breakpoints.
1321 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1322 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1324 (detach_single_step_breakpoints, find_single_step_breakpoint):
1326 (breakpoint_has_location_inserted_here): New function.
1327 (single_step_breakpoint_inserted_here_p): Rewrite.
1328 * breakpoint.h: Remove FIXME.
1329 (enum bptype) <bp_single_step>: New enum value.
1330 (insert_single_step_breakpoint): Update comment.
1331 * infrun.c (resume_cleanups)
1332 (delete_step_thread_step_resume_breakpoint): Remove single-step
1334 (fetch_inferior_event): Install a cleanup that removes infrun
1336 (switch_back_to_stepped_thread) <expect thread advanced also>:
1337 Clear step-over info.
1339 2014-10-15 Pedro Alves <palves@redhat.com>
1341 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1342 (delete_thread_infrun_breakpoints): New function, with parts
1343 salvaged from delete_step_resume_breakpoint_callback.
1344 (delete_step_thread_step_resume_breakpoint): Delete.
1345 (for_each_just_stopped_thread_callback_func): New typedef.
1346 (for_each_just_stopped_thread): New function.
1347 (delete_just_stopped_threads_infrun_breakpoints): New function.
1348 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1349 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1351 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1353 2014-10-15 Pedro Alves <palves@redhat.com>
1355 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1356 trying to step past a non-steppable watchpoint.
1357 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1359 * infrun.c (struct step_over_info): Add new field
1360 'nonsteppable_watchpoint_p' and adjust comments.
1361 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1363 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1364 (stepping_past_nonsteppable_watchpoint): New function.
1365 (step_over_info_valid_p): Also return true if stepping past a
1366 nonsteppable watchpoint.
1367 (proceed): Adjust call to set_step_over_info. Remove reference to
1369 (init_wait_for_inferior): Remove reference to init_infwait_state.
1370 (waiton_ptid): Delete global.
1371 (struct execution_control_state)
1372 <stepped_after_stopped_by_watchpoint>: Delete field.
1373 (wait_for_inferior, fetch_inferior_event): Always pass
1374 minus_one_ptid to target_wait.
1375 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1377 (init_infwait_state): Delete function.
1378 (handle_inferior_event): Remove infwait_state handling.
1379 (handle_signal_stop) <watchpoints handling>: Adjust after
1380 stepped_after_stopped_by_watchpoint removal. Don't remove
1381 breakpoints here nor set infwait_state. Set the thread's
1382 stepping_over_watchpoint flag, and call keep_going instead.
1383 (keep_going): Handle stepping_over_watchpoint. Adjust
1384 set_step_over_info calls.
1385 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1388 2014-10-15 Pedro Alves <palves@redhat.com>
1390 * infrun.c (step_over_info_valid_p): New function.
1391 (resume): Use step_over_info_valid_p instead of checking the
1392 threads's trap_expected flag.
1394 2014-10-15 Doug Evans <dje@google.com>
1395 Walfred Tedeschi <walfred.tedeschi@intel.com>
1398 * python/lib/gdb/__init__.py (packages): Add "printer".
1399 * python/lib/gdb/command/bound_registers.py: Moved to ...
1400 * python/lib/gdb/printer/bound_registers.py: ... here.
1401 Add printer to global set of builtin printers. Rename printer from
1402 "bound" to "mpx_bound128".
1403 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1404 registered as global "builtin" printer.
1405 (add_builtin_pretty_printer): New function.
1406 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1407 gdb/printer/__init__.py.
1409 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1411 * Makefile.in (SFILES): Remove d-support.c.
1412 (COMMON_OBS): Remove d-support.o.
1413 * d-lang.h (d_parse_symbol): Remove declaration.
1414 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1415 * d-support.c: Remove file.
1417 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1419 * gdb/infrun.c (process_event_stop_test): Apply
1420 gdbarch_addr_bits_remove to longjmp resume address.
1422 2014-10-15 Pedro Alves <palves@redhat.com>
1424 * regformats/microblaze.dat: Delete file.
1426 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1428 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1429 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1431 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1433 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1436 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1440 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1441 with qualified args.
1443 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1445 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1446 of the case where the second operand is a pointer.
1447 <BINOP_SUB>: Likewise.
1449 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1451 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1452 only if it is not NULL.
1453 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1454 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1455 (struct probe_ops) <clear_semaphore>: Likewise.
1456 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1458 (stop_tracing): Likewise, for clear_semaphore.
1460 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1462 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1463 using language_c, instead of current_language.
1465 2014-10-13 Doug Evans <dje@google.com>
1467 * python/py-objfile.c (objfpy_initialize): New function.
1468 (objfpy_new, objfile_to_objfile_object): Call it.
1469 * python/py-progspace.c (pspy_initialize): New function.
1470 (pspy_new, pspace_to_pspace_object): Call it.
1472 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1473 Jan Kratochvil <jan.kratochvil@redhat.com>
1475 Fix "save breakpoints" for "catch" command.
1476 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1479 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1481 Fix "save breakpoints" for "disable $bpnum" command.
1482 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1484 2014-10-10 Pedro Alves <palves@redhat.com>
1486 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1487 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1488 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1489 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1491 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1492 * configure.ac: Remove references to IRIX.
1493 * configure.host: Add *-*-irix* to the obsolete hosts section.
1494 Remove all other references to irix.
1495 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1498 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1500 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1501 isn't valid, release the tdesc arch data and return NULL.
1503 2014-10-10 Pedro Alves <palves@redhat.com>
1505 * linux-tdep.c: Include observer.h.
1506 (linux_inferior_data): New global.
1507 (struct linux_info): New structure.
1508 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1509 (get_linux_inferior_data): New functions.
1510 (linux_vsyscall_range): Rename to ...
1511 (linux_vsyscall_range_raw): ... this.
1512 (linux_vsyscall_range): New function; handles caching.
1513 (_initialize_linux_tdep): Register linux_inferior_data. Install
1514 inferior_exit and inferior_appeared observers.
1516 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1517 Pedro Alves <palves@redhat.com>
1520 * solib-svr4.c (svr4_read_so_list): Rename to ...
1521 (svr4_current_sos_1): ... this and change the function comment.
1522 (svr4_current_sos): New function.
1524 2014-10-10 Pedro Alves <palves@redhat.com>
1526 * arch-utils.c (default_vsyscall_range): New function.
1527 * arch-utils.h (default_vsyscall_range): New declaration.
1528 * gdbarch.sh (vsyscall_range): New hook.
1529 * gdbarch.h, gdbarch.c: Regenerate.
1530 * linux-tdep.c (linux_vsyscall_range): New function.
1531 (linux_init_abi): Install linux_vsyscall_range as
1532 vsyscall_range gdbarch hook.
1533 * memrange.c (address_in_mem_range): New function.
1534 * memrange.h (address_in_mem_range): New declaration.
1535 * symfile-mem.c (find_vdso_size): Delete function.
1536 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1538 2014-10-10 Pedro Alves <palves@redhat.com>
1540 * infrun.c (normal_stop): Fix typo in comment.
1542 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1545 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1546 typo when using logical AND to determine instruction type.
1548 2014-10-09 Yao Qi <yao@codesourcery.com>
1550 * infrun.c (handle_signal_stop): Remove local variable
1553 2014-10-08 Stan Shebs <stan@codesourcery.com>
1555 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1557 2014-10-08 Gary Benson <gbenson@redhat.com>
1559 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1561 2014-10-08 Gary Benson <gbenson@redhat.com>
1563 * common/common-defs.h: Include common-exceptions.h.
1564 * exceptions.h: Do not include common-exceptions.h.
1566 2014-10-08 Gary Benson <gbenson@redhat.com>
1568 * common/common-defs.h: Include cleanups.h.
1569 * common/common-exceptions.c: Do not include cleanups.h.
1570 * utils.h: Likewise.
1572 2014-10-08 Gary Benson <gbenson@redhat.com>
1574 * ada-lang.c: Do not include exceptions.h.
1575 * ada-valprint.c: Likewise.
1576 * amd64-tdep.c: Likewise.
1577 * auto-load.c: Likewise.
1578 * block.c: Likewise.
1579 * break-catch-throw.c: Likewise.
1580 * breakpoint.c: Likewise.
1581 * btrace.c: Likewise.
1582 * c-lang.c: Likewise.
1583 * cli/cli-cmds.c: Likewise.
1584 * cli/cli-interp.c: Likewise.
1585 * cli/cli-script.c: Likewise.
1586 * completer.c: Likewise.
1587 * corefile.c: Likewise.
1588 * corelow.c: Likewise.
1589 * cp-abi.c: Likewise.
1590 * cp-support.c: Likewise.
1591 * cp-valprint.c: Likewise.
1592 * darwin-nat.c: Likewise.
1593 * dwarf2-frame-tailcall.c: Likewise.
1594 * dwarf2-frame.c: Likewise.
1595 * dwarf2loc.c: Likewise.
1596 * dwarf2read.c: Likewise.
1598 * event-loop.c: Likewise.
1599 * event-top.c: Likewise.
1600 * f-valprint.c: Likewise.
1601 * frame-unwind.c: Likewise.
1602 * frame.c: Likewise.
1603 * gdbtypes.c: Likewise.
1604 * gnu-v2-abi.c: Likewise.
1605 * gnu-v3-abi.c: Likewise.
1606 * guile/scm-auto-load.c: Likewise.
1607 * guile/scm-breakpoint.c: Likewise.
1608 * guile/scm-cmd.c: Likewise.
1609 * guile/scm-frame.c: Likewise.
1610 * guile/scm-lazy-string.c: Likewise.
1611 * guile/scm-param.c: Likewise.
1612 * guile/scm-symbol.c: Likewise.
1613 * guile/scm-type.c: Likewise.
1614 * hppa-hpux-tdep.c: Likewise.
1615 * i386-tdep.c: Likewise.
1616 * inf-loop.c: Likewise.
1617 * infcall.c: Likewise.
1618 * infcmd.c: Likewise.
1619 * infrun.c: Likewise.
1620 * interps.c: Likewise.
1621 * interps.h: Likewise.
1623 * linespec.c: Likewise.
1624 * linux-nat.c: Likewise.
1625 * linux-thread-db.c: Likewise.
1626 * m32r-rom.c: Likewise.
1628 * memory-map.c: Likewise.
1629 * mi/mi-cmd-break.c: Likewise.
1630 * mi/mi-cmd-stack.c: Likewise.
1631 * mi/mi-interp.c: Likewise.
1632 * mi/mi-main.c: Likewise.
1633 * monitor.c: Likewise.
1634 * nto-procfs.c: Likewise.
1635 * objc-lang.c: Likewise.
1636 * p-valprint.c: Likewise.
1637 * parse.c: Likewise.
1638 * ppc-linux-tdep.c: Likewise.
1639 * printcmd.c: Likewise.
1640 * probe.c: Likewise.
1641 * python/py-auto-load.c: Likewise.
1642 * python/py-breakpoint.c: Likewise.
1643 * python/py-cmd.c: Likewise.
1644 * python/py-finishbreakpoint.c: Likewise.
1645 * python/py-frame.c: Likewise.
1646 * python/py-framefilter.c: Likewise.
1647 * python/py-function.c: Likewise.
1648 * python/py-gdb-readline.c: Likewise.
1649 * python/py-inferior.c: Likewise.
1650 * python/py-infthread.c: Likewise.
1651 * python/py-lazy-string.c: Likewise.
1652 * python/py-linetable.c: Likewise.
1653 * python/py-param.c: Likewise.
1654 * python/py-prettyprint.c: Likewise.
1655 * python/py-symbol.c: Likewise.
1656 * python/py-type.c: Likewise.
1657 * python/py-value.c: Likewise.
1658 * python/python-internal.h: Likewise.
1659 * python/python.c: Likewise.
1660 * record-btrace.c: Likewise.
1661 * record-full.c: Likewise.
1662 * regcache.c: Likewise.
1663 * remote-fileio.c: Likewise.
1664 * remote-mips.c: Likewise.
1665 * remote.c: Likewise.
1666 * rs6000-aix-tdep.c: Likewise.
1667 * rs6000-nat.c: Likewise.
1669 * solib-darwin.c: Likewise.
1670 * solib-dsbt.c: Likewise.
1671 * solib-frv.c: Likewise.
1672 * solib-ia64-hpux.c: Likewise.
1673 * solib-spu.c: Likewise.
1674 * solib-svr4.c: Likewise.
1675 * solib.c: Likewise.
1676 * spu-tdep.c: Likewise.
1677 * stack.c: Likewise.
1678 * stap-probe.c: Likewise.
1679 * symfile-mem.c: Likewise.
1680 * symmisc.c: Likewise.
1681 * target.c: Likewise.
1682 * thread.c: Likewise.
1684 * tracepoint.c: Likewise.
1685 * tui/tui-interp.c: Likewise.
1686 * typeprint.c: Likewise.
1687 * utils.c: Likewise.
1688 * valarith.c: Likewise.
1689 * valops.c: Likewise.
1690 * valprint.c: Likewise.
1691 * value.c: Likewise.
1692 * varobj.c: Likewise.
1693 * windows-nat.c: Likewise.
1694 * xml-support.c: Likewise.
1696 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1698 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1700 (extended_mips16_next_pc): Update accordingly.
1702 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1704 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1706 (micromips_instruction_is_compact_branch): Likewise.
1707 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1708 or a compact jump, reaching a jump delay slot, or seeing a
1709 second non-prologue instruction.
1710 (micromips_scan_prologue): Also terminate scanning upon seeing a
1711 compact branch or jump, or reaching a branch or jump delay slot.
1712 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1713 or jump delay slot, or seeing a second non-prologue instruction.
1714 (mips32_instruction_has_delay_slot): Retain instruction
1715 examination code only, update arguments accordingly and move
1716 instruction fetch pieces to...
1717 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1718 (micromips_instruction_has_delay_slot): Likewise and to...
1719 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1720 (mips16_instruction_has_delay_slot): Likewise and to...
1721 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1722 (mips_single_step_through_delay): Update accordingly.
1723 (mips_adjust_breakpoint_address): Likewise.
1725 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1727 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1728 !mustbe32 also return 1 for 32-bit instructions.
1729 (mips16_instruction_has_delay_slot): Likewise. Add an
1730 explanatory comment.
1732 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1734 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1737 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1739 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1741 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1742 for the breakpoint's address. Don't preinitialize `placed_size'.
1743 (insert_bp_location): Set `reqstd_address' rather than
1745 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1746 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1748 (bkpt_remove_location): Likewise.
1749 (deprecated_insert_raw_breakpoint): Likewise.
1750 (deprecated_remove_raw_breakpoint): Likewise.
1751 (find_single_step_breakpoint): Likewise.
1752 * mem-break.c (default_memory_insert_breakpoint): Use
1753 `reqstd_address' for the breakpoint's address. Don't set
1754 `placed_address' or `placed_size' if breakpoint contents couldn't
1755 have been determined.
1756 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1757 the breakpoint's address.
1758 (remote_insert_hw_breakpoint): Likewise. Don't set
1759 `placed_address' or `placed_size' if breakpoint couldn't have been
1761 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1762 `reqstd_address' for the breakpoint's address.
1763 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1764 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1765 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1766 * microblaze-linux-tdep.c
1767 (microblaze_linux_memory_remove_breakpoint): Likewise.
1768 * monitor.c (monitor_insert_breakpoint): Likewise.
1769 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1770 (procfs_insert_hw_breakpoint): Likewise.
1771 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1772 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1773 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1774 * remote-mips.c (mips_insert_breakpoint): Likewise.
1775 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1777 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1779 * valops.c (value_assign): Check for bit field assignments
1780 before calling architecture-specific register value
1781 conversion functions.
1783 2014-10-03 Pierre Muller <muller@sourceware.org>
1785 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1787 2014-10-02 Pedro Alves <palves@redhat.com>
1789 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1790 threads_are_executing.
1791 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1793 * gdbthread.h (threads_are_executing): Declare.
1794 (handle_signal_stop) <random signals>: Don't print about the
1795 signal here if stopping.
1796 (end_stepping_range): Don't notify observers here.
1797 (normal_stop): Update the thread list. If stopped by a random
1798 signal or a stepping range ended, notify observers.
1799 * thread.c (threads_executing): New global.
1800 (init_thread_list): Clear 'threads_executing'.
1801 (set_executing): Set or clear 'threads_executing'.
1802 (threads_are_executing): New function.
1803 (update_threads_executing): New function.
1804 (update_thread_list): Use it.
1806 2014-10-02 Pedro Alves <palves@redhat.com>
1808 PR breakpoints/17431
1809 * breakpoint.c (update_breakpoints_after_exec): Don't create
1810 overlay, longjmp, std terminate nor exception breakpoints here.
1812 2014-10-02 Pedro Alves <palves@redhat.com>
1814 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1816 * inferior.c (find_inferior_for_program_space): Give preference to
1817 the current inferior.
1818 * inferior.h (find_inferior_for_program_space): Update comment.
1819 * progspace.c (switch_to_program_space_and_thread): Prefer the
1820 current inferior if it's bound to the program space requested. If
1821 the inferior found doesn't have a PID yet, don't bother looking up
1823 * progspace.h (switch_to_program_space_and_thread): Adjust
1825 * thread.c (any_thread_of_process, any_live_thread_of_process):
1826 Give preference to the current thread.
1828 2014-10-01 Pedro Alves <palves@redhat.com>
1830 * breakpoint.c (insert_bp_location): Error out if inserting a
1831 software breakpoint at a read-only address.
1832 * target.c (memory_xfer_check_region): New function, factored out
1834 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1836 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1837 against the memory region attributes.
1839 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1841 * NEWS: Announce new exit-code field in -list-thread-groups
1843 * inferior.c (exit_inferior_1): Don't clear exit code.
1844 (inferior_appeared): Clear exit code.
1845 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1848 2014-10-01 Pedro Alves <palves@redhat.com>
1850 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1851 GENERATED" along with emacs/vi read-only markers.
1852 * regformats/aarch64.dat: Regenerate.
1853 * regformats/arm-with-iwmmxt.dat: Regenerate.
1854 * regformats/arm-with-neon.dat: Regenerate.
1855 * regformats/arm-with-vfpv2.dat: Regenerate.
1856 * regformats/arm-with-vfpv3.dat: Regenerate.
1857 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1858 * regformats/i386/amd64-avx.dat: Regenerate.
1859 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1860 * regformats/i386/amd64-avx512.dat: Regenerate.
1861 * regformats/i386/amd64-linux.dat: Regenerate.
1862 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1863 * regformats/i386/amd64-mpx.dat: Regenerate.
1864 * regformats/i386/amd64.dat: Regenerate.
1865 * regformats/i386/i386-avx-linux.dat: Regenerate.
1866 * regformats/i386/i386-avx.dat: Regenerate.
1867 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1868 * regformats/i386/i386-avx512.dat: Regenerate.
1869 * regformats/i386/i386-linux.dat: Regenerate.
1870 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1871 * regformats/i386/i386-mmx.dat: Regenerate.
1872 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1873 * regformats/i386/i386-mpx.dat: Regenerate.
1874 * regformats/i386/i386.dat: Regenerate.
1875 * regformats/i386/x32-avx-linux.dat: Regenerate.
1876 * regformats/i386/x32-avx.dat: Regenerate.
1877 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1878 * regformats/i386/x32-avx512.dat: Regenerate.
1879 * regformats/i386/x32-linux.dat: Regenerate.
1880 * regformats/i386/x32.dat: Regenerate.
1881 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1882 * regformats/mips-dsp-linux.dat: Regenerate.
1883 * regformats/mips-linux.dat: Regenerate.
1884 * regformats/mips64-dsp-linux.dat: Regenerate.
1885 * regformats/mips64-linux.dat: Regenerate.
1886 * regformats/nios2-linux.dat: Regenerate.
1887 * regformats/rs6000/powerpc-32.dat: Regenerate.
1888 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1889 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1890 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1891 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1892 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1893 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1894 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1895 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1896 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1897 * regformats/s390-linux32.dat: Regenerate.
1898 * regformats/s390-linux32v1.dat: Regenerate.
1899 * regformats/s390-linux32v2.dat: Regenerate.
1900 * regformats/s390-linux64.dat: Regenerate.
1901 * regformats/s390-linux64v1.dat: Regenerate.
1902 * regformats/s390-linux64v2.dat: Regenerate.
1903 * regformats/s390-te-linux64.dat: Regenerate.
1904 * regformats/s390x-linux64.dat: Regenerate.
1905 * regformats/s390x-linux64v1.dat: Regenerate.
1906 * regformats/s390x-linux64v2.dat: Regenerate.
1907 * regformats/s390x-te-linux64.dat: Regenerate.
1908 * regformats/tic6x-c62x-linux.dat: Regenerate.
1909 * regformats/tic6x-c62x.dat: Regenerate.
1910 * regformats/tic6x-c64x-linux.dat: Regenerate.
1911 * regformats/tic6x-c64x.dat: Regenerate.
1912 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1913 * regformats/tic6x-c64xp.dat: Regenerate.
1915 2014-10-01 Pedro Alves <palves@redhat.com>
1917 * features/Makefile: Update comments.
1918 (XMLTOC): List all xml files we build C files from.
1919 (clean-cfiles): New rule.
1921 2014-10-01 Pedro Alves <palves@redhat.com>
1923 * features/i386/amd64-avx512-linux.c: Regenerate.
1924 * features/i386/amd64-avx512.c: Regenerate.
1925 * features/i386/x32-avx512-linux.c: Regenerate.
1926 * features/i386/x32-avx512.c: Regenerate.
1928 2014-10-01 Pedro Alves <palves@redhat.com>
1930 * features/Makefile (WHICH): Remove arm-with-m,
1931 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1933 2014-10-01 Pedro Alves <palves@redhat.com>
1935 * features/Makefile (clean): New rule.
1937 2014-10-01 Pedro Alves <palves@redhat.com>
1939 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1940 (zmm14h): Add missing end quotes.
1942 2014-10-01 Pedro Alves <palves@redhat.com>
1944 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1945 * features/aarch64.c: Regenerate.
1947 2014-09-30 Don Breazeal <donb@codesourcery.com>
1949 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1950 code so as to work with follow_fork_inferior.
1951 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1952 (inf_ttrace_create_inferior): Remove reference to
1953 inf_ttrace_vfork_ppid.
1954 (inf_ttrace_attach): Ditto.
1955 (inf_ttrace_detach): Ditto.
1956 (inf_ttrace_kill): Use current_inferior instead of
1957 inf_ttrace_vfork_ppid.
1958 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1959 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1960 inferior away from the parent.
1961 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1963 (follow_fork_inferior): New function.
1964 (follow_inferior_reset_breakpoints): Make function static.
1965 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1966 * linux-nat.c (linux_child_follow_fork): Move target-independent
1967 code to infrun.c:follow_fork_inferior.
1969 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1971 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1972 * gdbarch.c: Regenerate.
1973 * gdbarch.h: Likewise.
1974 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1975 gdbarch method 'regset_from_core_section'.
1976 (get_core_register_section): Remove handling for the case that
1977 regset == NULL and regset_from_core_section is defined.
1978 (get_core_registers): Drop check for deleted method.
1979 * procfs.c (procfs_do_thread_registers): Adjust comment.
1981 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1983 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1984 (linux_nat_make_corefile_notes): Remove.
1985 (linux_target_install_ops): Do not set target method
1986 'make_corefile_notes'.
1987 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1989 (linux_corefile_thread_callback): Instead of args->collect, call
1990 linux_collect_thread_registers.
1991 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1992 NULL unless there is a regset iterator.
1993 (linux_make_corefile_notes_1): Remove.
1994 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1995 by linux_make_corefile_notes.
1996 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1998 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2000 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2001 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2003 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2005 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2007 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2008 (xtensa_iterate_over_regset_sections): New.
2009 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2011 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2013 * vax-tdep.c (vax_regset_from_core_section): Remove.
2014 (vax_iterate_over_regset_sections): New.
2015 (vax_gdbarch_init): Adjust gdbarch initialization.
2017 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2019 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2020 (tilegx_regset_from_core_section): Remove.
2021 (tilegx_iterate_over_regset_sections): New.
2022 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2024 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2026 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2027 (sparc_iterate_over_regset_sections): New.
2028 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2029 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2031 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2032 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2033 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2034 target method 'make_corefile_notes'.
2036 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2038 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2039 'sizeof_gregset' and 'sizeof_fpregset'.
2040 * sh-tdep.c (sh_regset_from_core_section): Remove.
2041 (sh_iterate_over_regset_sections): New.
2042 (sh_gdbarch_init): Adjust gdbarch initialization.
2043 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2045 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2048 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2050 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2051 (score7_linux_iterate_over_regset_sections): New.
2052 (score_gdbarch_init): Adjust gdbarch initialization.
2054 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2056 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2058 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2059 method 'make_corefile_notes'.
2060 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2061 (ppcfbsd_regset_from_core_section): Remove.
2062 (ppcfbsd_iterate_over_regset_sections): New.
2063 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2065 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2066 (ppcnbsd_iterate_over_regset_sections): New.
2067 (ppcnbsd_init_abi): Adjust.
2068 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2069 (ppcobsd_iterate_over_regset_sections): New.
2070 (ppcobsd_init_abi): Adjust.
2071 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2072 (rs6000_aix_iterate_over_regset_sections): New.
2073 (rs6000_aix_init_osabi): Adjust.
2075 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2077 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2078 (nios2_regset_from_core_section): Remove.
2079 (nios2_iterate_over_regset_sections): New.
2080 (nios2_linux_init_abi): Adjust gdbarch initialization.
2082 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2084 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2085 (am33_iterate_over_regset_sections): New.
2086 (am33_linux_init_osabi): Adjust gdbarch initialization.
2088 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2090 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2091 (mips_linux_iterate_over_regset_sections): New.
2092 (mips_linux_init_abi): Adjust gdbarch initialization.
2093 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2094 (mips64obsd_iterate_over_regset_sections): New.
2095 (mips64obsd_init_abi): Adjust.
2096 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2097 (mipsnbsd_iterate_over_regset_sections): New.
2098 (mipsnbsd_init_abi): Adjust.
2100 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2102 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2103 (m88k_iterate_over_regset_sections): New.
2104 (m88k_gdbarch_init): Adjust gdbarch initialization.
2106 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2108 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2109 (ia64_linux_iterate_over_regset_sections): New.
2110 (ia64_linux_init_abi): Adjust gdbarch initialization.
2112 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2114 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2115 (m68kbsd_iterate_over_regset_sections): New.
2116 (m68kbsd_init_abi): Adjust gdbarch initialization.
2117 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2118 (m68k_linux_iterate_over_regset_sections): New.
2119 (m68k_linux_init_abi): Adjust gdbarch initialization.
2121 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2123 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2124 (m32r_linux_regset_from_core_section): Remove.
2125 (m32r_linux_iterate_over_regset_sections): New.
2126 (m32r_linux_init_abi): Adjust gdbarch initialization.
2128 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2130 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2131 (amd64obsd_iterate_over_regset_sections): New.
2132 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2133 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2135 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2136 regset_from_core_section initialization.
2137 * i386-tdep.c (i386_regset_from_core_section): Remove.
2138 (i386_iterate_over_regset_sections): New.
2139 (i386_gdbarch_init): Adjust gdbarch initialization.
2140 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2141 (i386_iterate_over_regset_sections): New prototype.
2142 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2144 (i386obsd_aout_iterate_over_regset_sections): New.
2145 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2146 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2148 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2149 (amd64fbsd_init_abi): Call fbsd_init_abi.
2150 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2151 (i386fbsd4_init_abi): Call fbsd_init_abi.
2152 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2153 target method 'make_corefile_notes'.
2154 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2156 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2158 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2159 (hppa_hpux_iterate_over_regset_sections): New.
2160 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2161 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2162 (hppa_linux_iterate_over_regset_sections): New.
2163 (hppa_linux_init_abi): Adjust.
2164 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2165 (hppanbsd_iterate_over_regset_sections): New.
2166 (hppanbsd_init_abi): Adjust.
2167 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2168 (hppaobsd_iterate_over_regset_sections): New.
2169 (hppaobsd_init_abi): Adjust.
2171 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2173 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2174 (frv_linux_iterate_over_regset_sections): New.
2175 (frv_linux_init_abi): Adjust gdbarch initialization.
2177 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2179 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2180 (armbsd_iterate_over_regset_sections): New prototype.
2181 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2182 (armbsd_iterate_over_regset_sections): New.
2183 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2186 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2188 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2189 (alpha_linux_iterate_over_regset_sections): New.
2190 (alpha_linux_init_abi): Adjust gdbarch initialization.
2191 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2193 (alphanbsd_iterate_over_regset_sections): New prototype.
2195 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2197 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2199 (aarch64_linux_iterate_over_regset_sections): New.
2200 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2202 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2204 * fbsd-tdep.c: New file.
2205 * fbsd-tdep.h: New file.
2206 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2207 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2208 (ALLDEPFILES): Add fbsd-tdep.c.
2210 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2212 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2214 * gdbarch.h: Regenerate.
2215 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2217 (get_core_register_section): Add parameter 'regset' and use it, if
2218 set. Add parameter 'min_size' and verify the bfd section size
2220 (get_core_registers_cb): Add parameter 'regset' and pass it to
2221 get_core_register section. For the "standard" register sections
2222 ".reg" and ".reg2", set an appropriate default for human_name.
2223 (get_core_registers): Don't abort when the gdbarch has an iterator
2224 but no regset_from_core_section. Add NULL/0 for parameters
2225 'regset'/'min_size' in calls to get_core_register_section.
2226 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2227 'regset' and use it instead of calling the
2228 regset_from_core_section gdbarch method.
2229 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2230 * i386-tdep.c (i386_supply_xstateregset)
2231 (i386_collect_xstateregset, i386_xstateregset): Moved to
2233 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2235 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2236 core file support only if the regset iterator hasn't been set.
2237 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2238 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2239 Moved from i386-tdep.c and renamed to *_linux*.
2240 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2241 each callback invocation. Allow any .reg-xstate size when reading
2243 * amd64-tdep.c (amd64_supply_xstateregset)
2244 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2246 (amd64_regset_from_core_section): Remove.
2247 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2248 install an amd64-specific regset_from_core_section gdbarch method.
2249 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2250 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2251 Moved from amd64-tdep.c and renamed to *_linux*.
2252 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2253 to each callback invocation. Allow any .reg-xstate size when
2254 reading from a core file.
2255 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2256 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2257 each callback invocation.
2258 (arm_linux_init_abi): No longer set the regset_from_core_section
2260 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2261 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2262 each callback invocation.
2263 (ppc_linux_init_abi): No longer set the regset_from_core_section
2265 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2266 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2267 (s390_regset_from_core_section): Remove.
2268 (s390_iterate_over_regset_sections): Add regset parameter to each
2269 callback invocation.
2270 (s390_gdbarch_init): No longer set the regset_from_core_section
2271 gdbarch method. Drop initialization of deleted tdep fields.
2273 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2275 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2276 (amd64_linux_iterate_over_regset_sections): New.
2277 (amd64_linux_init_abi_common): Don't install the regset section
2278 list, but the new iterator in gdbarch.
2279 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2280 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2281 (arm_linux_iterate_over_regset_sections): ...here. New function.
2282 (arm_linux_init_abi): Set iterator instead of section list.
2283 * corelow.c (get_core_registers_cb): New function, logic moved
2285 (get_core_registers): ...loop body here. Use new iterator method
2286 instead of walking through the regset section list.
2287 * gdbarch.sh: Remove 'core_regset_sections'. New method
2288 'iterate_over_regset_sections'. New typedef
2289 'iterate_over_regset_sections_cb'.
2290 * gdbarch.c: Regenerate.
2291 * gdbarch.h: Likewise.
2292 * i386-linux-tdep.c (i386_linux_regset_sections)
2293 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2295 (i386_linux_iterate_over_regset_sections): New.
2296 (i386_linux_init_abi): Don't choose a regset section list, but
2297 install new iterator in gdbarch.
2298 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2299 (linux_collect_regset_section_cb): New function, logic moved
2301 (linux_collect_thread_registers): ...loop body here. Use iterator
2302 method instead of walking through list.
2303 (linux_make_corefile_notes_1): Check for presence of iterator
2304 method instead of regset section list.
2305 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2306 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2307 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2308 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2309 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2310 (ppc_linux_init_abi): Don't choose from above regset section
2311 lists, but install new iterator in gdbarch.
2312 * regset.h (struct core_regset_section): Remove.
2313 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2314 have_linux_v1, have_linux_v2, and have_tdb.
2315 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2316 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2317 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2318 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2319 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2320 (s390_iterate_over_regset_sections): ...here. New function. Use
2322 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2323 regset section lists, but install new iterator.
2325 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2327 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2329 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2331 * progspace.c (print_program_space): Don't prune program spaces
2332 before printing them.
2334 2014-09-25 Pedro Alves <palves@redhat.com>
2336 * infrun.c (user_visible_resume_ptid): Don't check
2337 singlestep_breakpoints_inserted_p.
2339 2014-09-25 Pedro Alves <palves@redhat.com>
2341 * breakpoint.c (should_be_inserted): Add debug output.
2343 2014-09-25 Pedro Alves <palves@redhat.com>
2345 * infrun.c (stepping_past_instruction_at)
2346 (clear_exit_convenience_vars): Point at infrun.h instead of
2348 (handle_signal_stop): Fix typo.
2350 2014-09-24 Yao Qi <yao@codesourcery.com>
2352 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2355 2014-09-22 Gary Benson <gbenson@redhat.com>
2357 * target.c (target_stop): Updated comment.
2359 2014-09-22 Gary Benson <gbenson@redhat.com>
2361 * target/target.h (target_stop_ptid): Renamed as...
2362 (target_stop_and_wait): New function. Updated comment.
2364 (target_continue_ptid): Renamed as...
2365 (target_continue_no_signal): New function. Updated comment.
2368 2014-09-22 Pedro Alves <palves@redhat.com>
2370 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2372 * breakpoint.c (enum ugll_insert_mode): New enum.
2373 (always_inserted_mode): Now a plain boolean.
2374 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2375 (breakpoints_always_inserted_mode): Delete.
2376 (breakpoints_should_be_inserted_now): New function.
2377 (insert_breakpoints): Pass UGLL_INSERT to
2378 update_global_location_list instead of calling
2379 insert_breakpoint_locations manually.
2380 (create_solib_event_breakpoint_1): New, factored out from ...
2381 (create_solib_event_breakpoint): ... this.
2382 (create_and_insert_solib_event_breakpoint): Use
2383 create_solib_event_breakpoint_1 instead of calling
2384 insert_breakpoint_locations manually.
2385 (update_global_location_list): Change parameter type from boolean
2386 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2387 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2388 (update_global_location_list_nothrow): Change parameter type from
2389 boolean to enum ugll_insert_mode.
2390 (_initialize_breakpoint): "breakpoint always-inserted" option is
2391 now a boolean command. Update help text.
2392 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2393 (breakpoints_should_be_inserted_now): New declaration.
2394 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2395 Remove breakpoints_always_inserted_mode check.
2396 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2397 * remote.c (remote_start_remote): Likewise.
2399 2014-09-22 Pedro Alves <palves@redhat.com>
2401 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2402 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2403 Instead, pass UGLL_INSERT to update_global_location_list.
2404 (update_global_location_list): Change parameter type from boolean
2405 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2406 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2407 (create_solib_event_breakpoint_1): New, factored out from ...
2408 (create_solib_event_breakpoint): ... this.
2409 (create_and_insert_solib_event_breakpoint): Use
2410 create_solib_event_breakpoint_1 instead of calling
2411 insert_breakpoint_locations manually.
2412 (update_global_location_list): Handle UGLL_INSERT.
2414 2014-09-22 Pedro Alves <palves@redhat.com>
2416 * breakpoint.c (enum ugll_insert_mode): New enum.
2417 (update_global_location_list)
2418 (update_global_location_list_nothrow): Change parameter type from
2419 boolean to enum ugll_insert_mode. All callers adjusted.
2421 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2423 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2424 SystemTap support in GDB.
2426 2014-09-19 Don Breazeal <donb@codesourcery.com>
2428 * linux-nat.c (linux_handle_extended_wait): Call
2429 linux_ptrace_get_extended_event.
2430 (wait_lwp): Call linux_is_extended_waitstatus.
2431 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2432 and linux_is_extended_waitstatus.
2433 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2434 linux_ptrace_get_extended_event.
2435 (linux_ptrace_get_extended_event): New function.
2436 (linux_is_extended_waitstatus): New function.
2437 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2438 (linux_is_extended_waitstatus): New declarations.
2440 2014-09-19 Yao Qi <yao@codesourcery.com>
2442 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2443 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2444 comments. Callers update.
2445 (dwarf_decode_lines): Likewise.
2446 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2447 comments. Skip the line table if 'lowpc' is greater than
2448 'address'. Don't check
2449 dwarf2_per_objfile->has_section_at_zero.
2451 2014-09-18 Doug Evans <dje@google.com>
2453 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2454 * python/py-symtab.c (stpy_get_producer): New function.
2455 (symtab_object_getset): Add "producer" attribute.
2457 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
2460 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2461 (do_captured_read_memory_integer): Remove.
2462 (safe_read_memory_integer): Use target_read_memory directly instead
2463 of catching errors in do_captured_read_memory_integer.
2465 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2467 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2470 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2472 * objc-lang.c (find_implementation_from_class): Remove dead code.
2474 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2477 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2478 "fprintf_unfiltered (gdb_stdlog...)".
2480 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2482 PR breakpoints/12526
2483 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2485 * breakpoint.c (watch_command_1): Use these fields to retain
2486 bitfield information.
2487 (extract_bitfield_from_watchpoint_value): New function.
2488 (watchpoint_check): Use it.
2489 (update_watchpoint): Use it. Optimize the address and length of a
2490 HW watchpoint pointing to a bitfield.
2491 * value.h (unpack_value_bitfield): New prototype.
2492 * value.c (unpack_value_bitfield): Make extern.
2494 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2496 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2498 * gnu-nat.c (inf_threads): New function.
2499 * gnu-nat.h (inf_threads_ftype): New typedef.
2500 (inf_threads): New declaration.
2501 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2502 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2503 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2504 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2505 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2506 (i386_gnu_dr_get_control): New functions.
2507 (reg_addr): New structure.
2508 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2509 i386 debugging register hooks.
2510 * NEWS: Mention this.
2512 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2514 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2515 vector data transfer instructions.
2516 (arm_record_coproc_data_proc): Updated.
2518 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2520 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2521 arm_record_exreg_ld_st_insn.
2522 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2525 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2527 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2528 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2529 processing instructions.
2531 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2533 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2534 for advance SIMD struct ld/st insn.
2535 (thumb2_record_decode_insn_handler): Replace stub handler with
2536 thumb2_record_asimd_struct_ld_st.
2538 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2540 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2541 for asimd, vfp and coprocessor insns.
2542 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2543 and coprocessor insns.
2544 (thumb2_record_coproc_insn): New function.
2545 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2547 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2550 2014-09-13 Doug Evans <xdje42@gmail.com>
2552 * NEWS: Mention new "queue-signal" command.
2553 * infcmd.c (queue_signal_command): New function.
2554 (_initialize_infcmd): Add new queue-signal command.
2556 2014-09-13 Doug Evans <xdje42@gmail.com>
2558 * linux-nat.c (wait_lwp): Add debugging printf.
2559 (linux_nat_wait_1): Ditto.
2561 2014-09-12 Pedro Alves <palves@redhat.com>
2563 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2564 (create_and_insert_solib_event_breakpoint): New functions.
2565 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2566 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2567 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2568 (remove_dbx_link_breakpoint): Delete function.
2569 (insert_dbx_link_bpt_in_file): Use
2570 create_and_insert_solib_event_breakpoint instead of
2571 deprecated_insert_raw_breakpoint.
2572 (procfs_wait): Don't check whether we hit __dbx_link here.
2573 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2575 * solib-irix.c (base_breakpoint): Delete global.
2576 (disable_break): Delete function.
2577 (enable_break): Use create_solib_event_breakpoint
2578 instead of deprecated_insert_raw_breakpoint.
2579 (irix_solib_handle_event): New function.
2580 (irix_solib_create_inferior_hook): Don't run the target or disable
2581 the mapping-complete breakpoint here.
2582 (_initialize_irix_solib): Install irix_solib_handle_event as
2583 so_ops->handle_event hook.
2585 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2586 Ulrich Weigand <uweigand@de.ibm.com>
2589 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2590 instead of read_memory_unsigned_integer.
2592 2014-09-12 Gary Benson <gbenson@redhat.com>
2594 * nat/linux-waitpid.c: Include common-defs.h.
2595 [GDBSERVER]: Add FIXME comment.
2596 [!GDBSERVER]: Don't include defs.h or signal.h.
2597 (linux_debug) [!GDBSERVER]: Remove empty block.
2599 2014-09-12 Gary Benson <gbenson@redhat.com>
2601 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2602 Don't include defs.h or server.h.
2604 2014-09-12 Gary Benson <gbenson@redhat.com>
2606 * nat/linux-btrace.c: Include common-defs.h.
2607 Don't include defs.h, server.h or gdbthread.h.
2608 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2610 2014-09-12 Gary Benson <gbenson@redhat.com>
2612 * common/agent.c: Include common-defs.h.
2613 Don't include defs.h or server.h.
2614 * common/buffer.c: Likewise.
2615 * common/common-debug.c: Likewise.
2616 * common/common-utils.c: Likewise.
2617 * common/errors.c: Likewise.
2618 * common/filestuff.c: Likewise.
2619 * common/format.c: Likewise.
2620 * common/gdb_vecs.c: Likewise.
2621 * common/print-utils.c: Likewise.
2622 * common/ptid.c: Likewise.
2623 * common/rsp-low.c: Likewise.
2624 * common/signals.c: Likewise.
2625 * common/vec.c: Likewise.
2626 * common/xml-utils.c: Likewise.
2627 * nat/linux-osdata.c: Likewise.
2628 * nat/linux-procfs.c: Likewise.
2629 * nat/linux-ptrace.c: Likewise.
2630 * nat/mips-linux-watch.c: Likewise.
2631 * target/waitstatus.c: Likewise.
2633 2014-09-12 Tom Tromey <tromey@redhat.com>
2634 Gary Benson <gbenson@redhat.com>
2636 * common/common-regcache.h: New file.
2637 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2638 * regcache.h: Include common-regcache.h.
2639 (regcache_read_pc): Don't declare.
2640 * regcache.c (get_thread_regcache_for_ptid): New function.
2641 * nat/linux-btrace.c: Don't include regcache.h.
2642 Include common-regcache.h.
2643 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2645 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2647 * regcache.h (struct regset): Declare.
2649 2014-09-11 Pedro Alves <palves@redhat.com>
2652 * main.c: Include "infrun.h".
2653 (catch_command_errors, catch_command_errors_const): Wait for the
2654 foreground command to complete.
2655 * top.c (maybe_wait_sync_command_done): New function, factored out
2657 (maybe_wait_sync_command_done): ... here.
2658 * top.h (maybe_wait_sync_command_done): New declaration.
2660 2014-09-11 Tom Tromey <tromey@redhat.com>
2661 Gary Benson <gbenson@redhat.com>
2663 * common/symbol.h: New file.
2664 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2665 * minsyms.c (find_minimal_symbol_address): New function.
2666 * common/agent.c: Include common/symbol.h.
2667 [!GDBSERVER]: Don't include objfiles.h.
2668 (agent_look_up_symbols): Use find_minimal_symbol_address.
2670 2014-09-11 Gary Benson <gbenson@redhat.com>
2672 * target/target.h (target_stop_ptid, target_continue_ptid):
2674 * target.c (target_stop_ptid, target_continue_ptid): New
2676 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2677 (agent_run_command): Always use target_stop_ptid and
2678 target_continue_ptid.
2680 2014-09-11 Tom Tromey <tromey@redhat.com>
2681 Gary Benson <gbenson@redhat.com>
2683 * target/target.h: New file.
2684 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2685 * target.h: Include target/target.h.
2686 (target_read_memory, target_write_memory): Don't declare.
2687 * target.c (target_read_uint32): New function.
2688 * common/agent.c: Include target/target.h.
2689 [!GDBSERVER]: Don't include target.h.
2690 (helper_thread_id): Type changed to uint32_t.
2691 (agent_get_helper_thread_id): Use target_read_uint32.
2692 (agent_run_command): Always use target_read_memory and
2693 target_write_memory.
2694 (agent_capability): Type changed to uint32_t.
2695 (agent_capability_check): Use target_read_uint32.
2697 2014-09-11 Gary Benson <gbenson@redhat.com>
2699 * common/common-debug.h (show_debug_regs): Declare.
2700 * common/common-debug.c (show_debug_regs): Define.
2701 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2702 all uses with show_debug_regs. Replace all uses that considered
2703 debug_hw_points as a multi-value integer with straight boolean
2705 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2706 with show_debug_regs.
2707 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2708 all uses with show_debug_regs.
2709 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2710 uses with show_debug_regs.
2712 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2714 * findvar.c (address_from_register): Handle targets requiring
2715 a special conversion routine even for plain pointer types.
2717 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2719 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2720 (store_register): Do not call exec_one_dummy_insn.
2722 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2724 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2725 dereference it first. Use value_enclosing_type instead of
2727 (ada_array_length): Likewise.
2729 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2731 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2732 Adjust function implementation and documentation accordingly.
2733 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2734 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2735 Update call to ada_value_ptr_subscript.
2737 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2739 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2740 instead of VAL's type.
2742 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2744 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2746 2014-09-09 Doug Evans <xdje42@gmail.com>
2749 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2750 last parameter to pkg-config, not first.
2751 * configure.ac: Pass --with-guile provided pkg-config path to
2752 GDB_GUILE_PROGRAM_NAMES.
2753 * configure: Regenerate.
2755 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2757 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2760 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2762 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2763 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2764 the list of sections determining GDB_OSABI_IRIX.
2766 2014-09-09 James Hogan <james.hogan@imgtec.com>
2768 * MAINTAINERS (Write After Approval): Add "James Hogan".
2770 2014-09-09 James Hogan <james.hogan@imgtec.com>
2772 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2774 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2776 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2778 2014-09-08 Doug Evans <xdje42@gmail.com>
2781 * guile.c: #include <signal.h>.
2782 (_initialize_guile): Block SIGCHLD while initializing Guile.
2784 Replaces the following, which is reverted.
2786 2014-07-26 Doug Evans <xdje42@gmail.com>
2789 * configure.ac: Add check for header gc/gc.h.
2790 Add check for function setenv.
2791 * configure: Regenerate.
2792 * config.in: Regenerate.
2793 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2795 2014-09-08 Doug Evans <xdje42@gmail.com>
2797 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2798 with named constant. Fix style of pointer comparison.
2799 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2801 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2804 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2805 decide whether we display the command on "show user".
2806 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2807 printing command name.
2808 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2809 * cli/cli-decode.c (cli_user_command_p): Create helper function
2810 to verify whether cmd_list_element is a user-defined command.
2812 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2815 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2816 Fix goto out of TRY_CATCH.
2818 2014-09-06 Doug Evans <xdje42@gmail.com>
2819 Tom Tromey <tromey@redhat.com>
2822 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2823 $_any_caller_matches.
2824 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2825 * python/lib/gdb/function/caller_is.py: New file.
2827 2014-09-06 Doug Evans <xdje42@gmail.com>
2829 * infcmd.c (program_info): Fix typo.
2831 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2834 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2835 'number'. New variable 'has_digit'. Rewrite code to deal with
2836 subexpressions on SDT probes.
2838 2014-09-04 Pedro Alves <palves@redhat.com>
2840 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2841 the input is only one character long.
2843 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2846 * f-valprint.c (f_val_print): Specify the correct print option to
2847 use when printing integer values.
2849 2014-09-04 Gary Benson <gbenson@redhat.com>
2851 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2852 Remove code to cope with LWPs wrapped as PIDs.
2853 Add assertions to ensure no wrapped LWPs are passed.
2855 2014-09-04 Pedro Alves <palves@redhat.com>
2857 * value.c (value_ranges_copy_adjusted): New function, factored out
2859 (value_contents_copy_raw): ... here.
2860 (unpack_value_bits_as_long_1): Rename back to ...
2861 (unpack_bits_as_long): ... this. Remove 'original_value' and
2862 'result' parameters. Change return type to LONGEST.
2863 (unpack_value_bits_as_long): Delete.
2864 (unpack_value_field_as_long_1): Delete.
2865 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2866 (unpack_value_bitfield): New function.
2867 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2868 (value_fetch_lazy): Use unpack_value_bitfield.
2869 * value.h (unpack_value_bits_as_long): Delete declaration.
2871 2014-09-03 Sasha Smundak <asmundak@google.com>
2873 * python/py-frame.c (frapy_read_register): New function.
2875 2014-09-03 James Hogan <james.hogan@imgtec.com>
2877 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2878 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2880 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2883 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2885 (add_cmd): Set "completer_handle_brkchars" to NULL.
2886 * cli/cli-decode.h (struct cmd_list_element)
2887 <completer_handle_brkchars>: New field.
2888 * command.h (completer_ftype_void): New typedef.
2889 (set_cmd_completer_handle_brkchars): New prototype.
2890 * completer.c (set_gdb_completion_word_break_characters): New
2892 (complete_line_internal): Call "completer_handle_brkchars"
2893 callback from command.
2894 * completer.h: Include "command.h".
2895 (set_gdb_completion_word_break_characters): New prototype.
2896 * python/py-cmd.c (cmdpy_completer_helper): New function.
2897 (cmdpy_completer_handle_brkchars): New function.
2898 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2899 (cmdpy_init): Set completer_handle_brkchars to
2900 cmdpy_completer_handle_brkchars.
2902 2014-09-03 Gary Benson <gbenson@redhat.com>
2904 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2905 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2906 Loop conditions changed to equivalent form.
2907 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2908 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2909 ALL_DEBUG_ADDRESS_REGISTERS.
2911 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2913 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2916 2014-09-02 Doug Evans <dje@google.com>
2918 * typeprint.c (find_global_typedef): Fix comment.
2920 2014-09-02 Gary Benson <gbenson@redhat.com>
2922 * i386-nat.h: Renamed as...
2923 * x86-nat.h: New file. All type, function and variable name
2924 prefixes changed from "i386_" to "x86_". All references updated.
2925 * i386-nat.c: Renamed as...
2926 * x86-nat.c: New file. All type, function and variable name
2927 prefixes changed from "i386_" to "x86_". All references updated.
2928 * common/i386-xstate.h: Renamed as...
2929 * common/x86-xstate.h: New file. All type, function and variable
2930 name prefixes changed from "i386_" to "x86_". All references
2932 * nat/i386-cpuid.h: Renamed as...
2933 * nat/x86-cpuid.h: New file. All type, function and variable name
2934 prefixes changed from "i386_" to "x86_". All references updated.
2935 * nat/i386-gcc-cpuid.h: Renamed as...
2936 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2937 name prefixes changed from "i386_" to "x86_". All references
2939 * nat/i386-dregs.h: Renamed as...
2940 * nat/x86-dregs.h: New file. All type, function and variable name
2941 prefixes changed from "i386_" to "x86_". All references updated.
2942 * nat/i386-dregs.c: Renamed as...
2943 * nat/x86-dregs.c: New file. All type, function and variable name
2944 prefixes changed from "i386_" to "x86_". All references updated.
2946 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2948 * varobj.c (_initialize_varobj): Move to the end of file.
2950 2014-08-29 Gary Benson <gbenson@redhat.com>
2952 * common/common-exceptions.h: New file.
2953 * common/common-exceptions.c: Likewise.
2954 * Makefile.in (SFILES): Add common/common-exceptions.c.
2955 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2956 (COMMON_OBS): Add common-exceptions.o.
2957 (common-exceptions.o): New rule.
2958 * exceptions.h (common-exceptions.h): Include.
2959 (gdb_setjmp.h): Do not include.
2960 (return_reason): Moved to common-exceptions.h.
2961 (enum return_reason): Likewise.
2962 (RETURN_MASK): Likewise.
2963 (typedef return_mask): Likewise.
2964 (enum errors): Likewise.
2965 (struct gdb_exception): Likewise.
2966 (exceptions_state_mc_init): Likewise.
2967 (exceptions_state_mc_action_iter): Likewise.
2968 (exceptions_state_mc_action_iter_1): Likewise.
2969 (TRY_CATCH): Likewise.
2970 (throw_exception): Likewise.
2971 (throw_verror): Likewise.
2972 (throw_vquit): Likewise.
2973 (throw_error): Likewise.
2974 (throw_quit): Likewise.
2975 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2976 (enum catcher_action): Likewise.
2977 (struct catcher): Likewise.
2978 (current_catcher): Likewise.
2979 (catcher_list_size): Likewise.
2980 (exceptions_state_mc_init): Likewise.
2981 (catcher_pop): Likewise.
2982 (exceptions_state_mc): Likewise.
2983 (exceptions_state_mc_action_iter): Likewise.
2984 (exceptions_state_mc_action_iter_1): Likewise.
2985 (throw_exception): Likewise.
2986 (exception_messages): Likewise.
2987 (exception_messages_size): Likewise.
2988 (throw_it): Likewise.
2989 (throw_verror): Likewise.
2990 (throw_vquit): Likewise.
2991 (throw_error): Likewise.
2992 (throw_quit): Likewise.
2993 (prepare_to_throw_exception): New function.
2995 2014-08-29 Gary Benson <gbenson@redhat.com>
2997 * common/gdb_setjmp.h: New file.
2998 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2999 * configure.ac: Move sigsetjmp check...
3000 * common/common.m4: ...here.
3001 * configure: Regenerate.
3002 * cp-support.c (SIGJMP_BUF): Delete.
3003 (SIGSETJMP): Likewise.
3004 (SIGLONGJMP): Likewise.
3005 * exceptions.h (gdb_setjmp.h): Include.
3006 (setjmp.h): Do not include.
3007 (EXCEPTIONS_SIGJMP_BUF): Delete.
3008 (EXCEPTIONS_SIGSETJMP): Likewise.
3009 (EXCEPTIONS_SIGLONGJMP): Likewise.
3010 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3012 * exceptions.c: Likewise.
3014 2014-08-29 Gary Benson <gbenson@redhat.com>
3016 * cleanups.h: Moved to...
3017 * common/cleanups.h: New file.
3018 * cleanups.c: Moved to...
3019 * common/cleanups.c: New file. Include common-defs.h and
3020 cleanups.h. Do not include defs.h.
3021 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3022 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3023 (cleanups.o): New rule.
3025 2014-08-29 Gary Benson <gbenson@redhat.com>
3027 * common/errors.h (internal_warning): New declaration.
3028 (internal_vwarning): Likewise.
3029 * common/errors.c (internal_warning): New function.
3030 * utils.h (internal_warning): Don't declare.
3031 (internal_vwarning): Likewise.
3032 * utils.c (internal_warning): Removed.
3034 2014-08-29 Gary Benson <gbenson@redhat.com>
3036 * main.c (captured_main): Use warning during startup.
3037 Prefix startup warning messages with command name.
3039 2014-08-29 Gary Benson <gbenson@redhat.com>
3041 * main.c (captured_main): Handle usage errors with error.
3043 2014-08-29 Gary Benson <gbenson@redhat.com>
3045 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3046 exit pair with a call to error. Wrap the message with _().
3048 2014-08-29 Gary Benson <gbenson@redhat.com>
3050 * main.c (captured_main): Replace a fprintf/exit
3051 pair with a call to error. Wrap the message with _().
3053 2014-08-29 Gary Benson <gbenson@redhat.com>
3055 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3056 pairs with calls to error. Wrap the message with _().
3058 2014-08-29 Gary Benson <gbenson@redhat.com>
3060 * utils.c (vwarning): Protect calls to target_terminal_ours
3063 2014-08-29 Gary Benson <gbenson@redhat.com>
3065 * exceptions.c (print_flush): Protect calls to
3066 target_terminal_ours and wrap_here.
3068 2014-08-29 Gary Benson <gbenson@redhat.com>
3070 * utils.h (filtered_printing_initialized): New declaration.
3071 * utils.c (abort_with_message): New function.
3072 (internal_vproblem): Use abort_with_message for first level
3073 recursive internal problems, and if gdb_stderr is not set up.
3074 Protect calls to target_terminal_ours, begin_line and query.
3076 2014-08-28 Doug Evans <dje@google.com>
3078 * symtab.c (in_prologue): Move definition to better spot.
3079 (skip_prologue_using_sal): Ditto.
3081 2014-08-28 Doug Evans <dje@google.com>
3083 * symtab.c (find_function_start_sal): Move definition to better spot.
3085 2014-08-28 Yao Qi <yao@codesourcery.com>
3087 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3088 found_stack_adjust in forward scan. Remove condition check
3089 on found_stack_adjust which is always true. Indent the code.
3091 2014-08-28 Yao Qi <yao@codesourcery.com>
3093 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3094 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3095 (dwarf_decode_lines): Remove argument
3096 want_line_info. Remove condition check on want_line_info.
3099 2014-08-27 Doug Evans <dje@google.com>
3101 * dwarf2read.c (dwarf_record_line): Fix typo.
3103 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3105 * target.h (struct target_ops::to_terminal_save_ours): Remove
3107 (target_terminal_save_ours): Remove macro.
3108 * target-delegates.c: Regenerate.
3109 * inf-child.c (inf_child_target): Don't set the nonexistent
3110 field to_terminal_save_ours.
3111 * inferior.h (child_terminal_save_ours): Remove declaration.
3112 * terminal.h (gdb_save_tty_state): New declaration.
3113 * inflow.c (child_terminal_save_ours): Rename to ...
3114 (gdb_save_tty_state): ... this.
3115 * tui/tui.c: Include terminal.h.
3116 (tui_enable): Use gdb_save_tty_state instead of
3117 target_terminal_save_ours.
3118 (tui_disable): Likewise.
3120 2014-08-25 Doug Evans <dje@google.com>
3122 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3123 Pass NULL instead of 0 for context pointer.
3125 2014-08-25 Yao Qi <yao@codesourcery.com>
3127 * dwarf2read.c: Fix grammatical error.
3129 2014-08-24 Yao Qi <yao@codesourcery.com>
3131 * dwarf2read.c (scan_partial_symbols): Update comments.
3132 Rename argument 'need_pc' with 'set_addrmap'.
3133 (add_partial_namespace): Rename argument 'need_pc' with
3135 (add_partial_module): Likewise.
3136 (add_partial_subprogram): Likewise. Update comments.
3137 (dwarf2_name): Fix typo.
3139 2014-08-22 Doug Evans <dje@google.com>
3142 * dwarf2read.c (dwarf_record_line_p): New function.
3143 (dwarf_decode_lines_1): Ignore subsequent line number entries
3144 for the same line if any entry had a non-zero discriminator.
3146 2014-08-22 Doug Evans <dje@google.com>
3148 * buildsym.h (record_line_ftype): New typedef.
3149 (record_line): Use it.
3150 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3151 (dwarf_decode_lines_1): Call them.
3153 2014-08-22 Yao Qi <yao@codesourcery.com>
3155 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3156 (ctf_end): Remove code.
3158 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3160 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3161 (linux_make_corefile_notes): call update_thread_list, protected against
3164 2014-08-21 Pedro Alves <palves@redhat.com>
3166 * infcmd.c (attach_command): Remove comment.
3168 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3170 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3171 unsigned LONGEST to ULONGEST.
3173 2014-08-20 Pedro Alves <palves@redhat.com>
3175 * Makefile.in (check-read1): New rule.
3177 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3179 * value.c (value_from_contents_and_address): Strip resolved_type's
3180 typedef layers before checking its TYPE_DATA_LOCATION.
3182 2014-08-20 Pedro Alves <palves@redhat.com>
3184 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3186 2014-08-20 Yao Qi <yao@codesourcery.com>
3188 * amd64-tdep.c (amd64_classify): Add a blank line after the
3189 example. Move "*/" to a new line.
3190 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3191 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3192 * dwarf2read.c (psymtab_include_file_name): Likewise.
3194 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3195 Pedro Alves <palves@redhat.com>
3199 * ada-lang.c (coerce_unspec_val_to_type): Use
3200 value_contents_copy_raw.
3201 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3202 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3203 * cp-valprint.c (cp_print_value_fields): Let the common printing
3204 code handle optimized out values.
3205 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3206 * d-valprint.c (dynamic_array_type): Use
3207 value_bits_any_optimized_out.
3208 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3209 check_any_valid fields.
3210 (check_pieced_value_bits): Delete and inline ...
3211 (check_pieced_synthetic_pointer): ... here.
3212 (check_pieced_value_validity): Delete.
3213 (check_pieced_value_invalid): Delete.
3214 (pieced_value_funcs): Remove check_validity and check_any_valid
3216 (read_pieced_value): Use mark_value_bits_optimized_out.
3217 (write_pieced_value): Switch to use
3218 mark_value_bytes_optimized_out.
3219 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3220 of assuming the whole value is optimized out.
3221 * findvar.c (read_frame_register_value): Remove special handling
3222 of optimized out registers.
3223 (value_from_register): Use mark_value_bytes_optimized_out.
3224 * frame-unwind.c (frame_unwind_got_optimized): Use
3225 mark_value_bytes_optimized_out.
3226 * jv-valprint.c (java_value_print): Adjust.
3227 (java_print_value_fields): Let the common printing code handle
3228 optimized out values.
3229 * mips-tdep.c (mips_print_register): Remove special handling of
3230 optimized out registers.
3231 * opencl-lang.c (lval_func_check_validity): Delete.
3232 (lval_func_check_any_valid): Delete.
3233 (opencl_value_funcs): Remove check_validity and check_any_valid
3235 * p-valprint.c (pascal_object_print_value_fields): Let the common
3236 printing code handle optimized out values.
3237 * stack.c (read_frame_arg): Remove special handling of optimized
3238 out values. Fetch both VAL and ENTRYVAL before comparing
3239 contents. Adjust to value_available_contents_eq rename.
3240 * valprint.c (valprint_check_validity)
3241 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3242 (val_print_array_elements): Adjust.
3243 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3244 (value_bits_any_optimized_out): New function.
3245 (value_entirely_covered_by_range_vector): New function, factored
3246 out from value_entirely_unavailable.
3247 (value_entirely_unavailable): Reimplement.
3248 (value_entirely_optimized_out): New function.
3249 (insert_into_bit_range_vector): New function, factored out from
3250 mark_value_bits_unavailable.
3251 (mark_value_bits_unavailable): Reimplement.
3252 (struct ranges_and_idx): New struct.
3253 (find_first_range_overlap_and_match): New function, factored out
3254 from value_available_contents_bits_eq.
3255 (value_available_contents_bits_eq): Rename to ...
3256 (value_contents_bits_eq): ... this. Check both unavailable
3257 contents and optimized out contents.
3258 (value_available_contents_eq): Rename to ...
3259 (value_contents_eq): ... this.
3260 (allocate_value_lazy): Remove reference to the old optimized_out
3262 (allocate_optimized_out_value): Use
3263 mark_value_bytes_optimized_out.
3264 (require_not_optimized_out): Adjust to check whether the
3265 optimized_out vec is empty.
3266 (ranges_copy_adjusted): New function, factored out from
3267 value_contents_copy_raw.
3268 (value_contents_copy_raw): Also copy the optimized out ranges.
3269 Assert the destination ranges aren't optimized out.
3270 (value_contents_copy): Update comment, remove call to
3271 require_not_optimized_out.
3272 (value_contents_equal): Adjust to check whether the optimized_out
3274 (set_value_optimized_out, value_optimized_out_const): Delete.
3275 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3277 (value_entirely_optimized_out, value_bits_valid): Delete.
3278 (value_copy): Take a VEC copy of the 'optimized_out' field.
3279 (value_primitive_field): Remove special handling of optimized out.
3280 (value_fetch_lazy): Assert that lazy values have no unavailable
3281 regions. Use value_bits_any_optimized_out. Remove some special
3282 handling for optimized out values.
3283 * value.h: Add intro comment about <optimized out> and
3285 (struct lval_funcs): Remove check_validity and check_any_valid
3287 (set_value_optimized_out, value_optimized_out_const): Remove.
3288 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3290 (value_bits_any_optimized_out): New declaration.
3291 (value_bits_valid): Delete declaration.
3292 (value_available_contents_eq): Rename to ...
3293 (value_contents_eq): ... this, and extend comments.
3295 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3297 Fix -fsanitize=address on unreadable inferior strings.
3298 * valprint.c (val_print_string): Fix access before BUFFER.
3300 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3302 * target.c (target_struct_size): Remove.
3303 (target_struct_allocsize): Remove.
3304 (DEFAULT_ALLOCSIZE): Remove.
3305 (target_ops_p): New typedef.
3306 (DEF_VEC_P (target_ops_p)): New vector type.
3307 (target_structs): Change type to VEC (target_ops_p).
3308 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3309 (find_default_run_target): Rewrite for loop following changes to
3312 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3314 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3315 Adjust code accordingly. Adjust function description comment.
3317 2014-08-19 Yao Qi <yao@codesourcery.com>
3319 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3322 2014-08-19 Alan Modra <amodra@gmail.com>
3324 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3325 * config.in: Regenerate.
3326 * configure: Regenerate.
3328 2014-08-19 Tom Tromey <tromey@redhat.com>
3329 Gary Benson <gbenson@redhat.com>
3331 * common/common-debug.h: New file.
3332 * common/common-debug.c: Likewise.
3333 * debug.c: Likewise.
3334 * Makefile.in (SFILES): Add common/common-debug.c.
3335 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3336 (COMMON_OBS): Add common-debug.o and debug.o.
3337 (common-debug.o): New rule.
3338 * common/common-defs.h: Include common-debug.h.
3339 * common/agent.c (debug_agent_printf): New function.
3340 (DEBUG_AGENT): Redefine.
3341 * nat/i386-dregs.c (debug_printf): Undefine.
3343 2014-08-19 Gary Benson <gbenson@redhat.com>
3345 * common/common-defs.h: Include print-utils.h.
3346 * utils.h: Do not include print-utils.h.
3348 2014-08-19 Tom Tromey <tromey@redhat.com>
3349 Gary Benson <gbenson@redhat.com>
3351 * common/common-types.h: New file.
3352 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3353 * common/common-defs.h: Include common-types.h.
3354 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3357 2014-08-19 Tom Tromey <tromey@redhat.com>
3358 Gary Benson <gbenson@redhat.com>
3360 * common/errors.h: New file.
3361 * common/errors.c: Likewise.
3362 * Makefile.in (SFILES): Add common/errors.c.
3363 (HFILES_NO_SRCDIR): Add common/errors.h.
3364 (COMMON_OBS): Add errors.o.
3365 (errors.o): New rule.
3366 * common/common-defs.h: Include errors.h.
3367 * utils.h (perror_with_name, error, verror, warning, vwarning):
3369 * common/common-utils.h: (malloc_failure, internal_error):
3372 2014-08-19 Gary Benson <gbenson@redhat.com>
3374 * utils.c (internal_vproblem): Always print the message.
3376 2014-08-18 Doug Evans <dje@google.com>
3378 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3380 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3382 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3383 Return 0 if TYPE is dynamic.
3384 (print_range): Add handling of dynamic ranges.
3386 2014-08-18 Keven Boell <keven.boell@intel.com>
3387 Joel Brobecker <brobecker@adacore.com>
3389 * gdbtypes.h (struct main_type): Add field "data_location".
3390 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3391 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3392 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3393 a dynamic data location.
3394 (resolve_dynamic_type): Add DW_AT_data_location handling.
3395 (copy_recursive, copy_type): Copy the data_location information
3397 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3398 * value.c (value_from_contents_and_address): Add
3399 DW_AT_data_location handling.
3401 2014-08-18 Keven Boell <keven.boell@intel.com>
3402 Joel Brobecker <brobecker@adacore.com>
3404 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3405 field "get_object_address".
3406 * dwarf2expr.c (execute_stack_op): Add handling for
3407 DW_OP_push_object_address.
3408 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3409 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3410 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3411 (dwarf_expr_get_obj_addr): New function.
3412 (dwarf_expr_ctx_funcs): Add get_object_address field.
3413 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3414 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3415 (dwarf2_evaluate_property): Add parameter "address". Use it.
3416 (needs_get_obj_addr): New function.
3417 (needs_frame_ctx_funcs): Add get_object_address field.
3418 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3419 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3420 (resolve_dynamic_array): Likewise.
3422 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3424 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3425 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3426 fixed value for records and unions for which some GNAT encodings
3429 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3431 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3432 rewrite to avoid "else if" and "else" constructs. Should be
3433 a no-op in practice.
3435 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3437 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3440 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3443 * eval.c: Update all calls to find_overload_match.
3444 * valarith.c: Likewise.
3445 (value_user_defined_cpp_op, value_user_defined_op): New
3446 argument NOSIDE. Update all callers.
3447 * valops.c (find_overload_match): New argument NOSIDE.
3448 * value.h (find_overload_match): Update signature.
3450 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3452 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3453 'items' methods instead of 'iteritems' method on dictionaries.
3455 2014-08-15 Doug Evans <dje@google.com>
3457 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3460 2014-08-15 Doug Evans <dje@google.com>
3462 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3464 2014-08-15 Doug Evans <dje@google.com>
3466 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3468 2014-08-15 Doug Evans <dje@google.com>
3470 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3473 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3475 * dcache.h: Include target.h, to avoid compile time warnings.
3477 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3479 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3480 frame_info" partial declaration.
3481 * gdbarch.h: Regenerate.
3483 2014-08-15 Yao Qi <yao@codesourcery.com>
3485 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3486 Add parameter 'decode_for_pst_p'. Callers update.
3488 2014-08-13 Yao Qi <yao@codesourcery.com>
3491 * configure.ac: Use local variable 'pos'.
3492 * configure: Regenerated.
3494 2014-08-11 Doug Evans <dje@google.com>
3496 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3497 message, it is redundant with "Reading symbols from ..." message.
3499 2014-08-10 Doug Evans <xdje42@gmail.com>
3501 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3503 2014-08-09 Yao Qi <yao@codesourcery.com>
3506 * remote.c (remote_xfer_partial): Remove dead code.
3508 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3510 * ia64-linux-tdep.c: Include "regset.h".
3511 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3512 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3513 (ia64_linux_supply_fpregset): New function.
3514 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3515 (ia64_linux_regset_from_core_section): New function.
3516 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3519 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3521 * m68klinux-tdep.c: Include "regset.h".
3522 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3523 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3524 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3525 (m68k_linux_regset_from_core_section): New function.
3526 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3529 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3531 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3532 function. Move logic to...
3533 (tilegx_linux_regmap): ... this new register map.
3534 (tilegx_linux_regset): Refer to register map, replace supply
3535 method by regcache_supply_regset, and add collect method.
3536 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3537 TILEGX_FIRST_EASY_REGNUM.
3539 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3541 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3542 that calls regcache_supply_regset and handles the EPC register
3543 separately. Move main logic to...
3544 (score7_linux_gregmap): ... this new register map.
3545 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3546 (score7_linux_gregset): Refer to register map. Add collect method.
3547 (score7_linux_regset_from_core_section): Replace
3548 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3549 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3550 (struct regset): Delete unused forward declaraction.
3551 (struct pt_regs): Delete structure definition.
3552 (elf_gregset_t): Delete typedef.
3554 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3556 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3557 (nios2_core_regset): Add collect method.
3559 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3561 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3562 platform-independent and don't write to read-only input buffer.
3563 (m32r_linux_collect_gregset): New function.
3564 (m32r_linux_gregset): Add collect method.
3566 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3568 * hppa-linux-tdep.c (greg_map): Rename to...
3569 (hppa_linux_gregmap): ... this. Also convert to
3570 regcache_map_entry format.
3571 (hppa_linux_supply_regset): Delete function.
3572 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3573 (hppa_linux_fpregmap): ... this new register map.
3574 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3575 register map, replace supply method by regcache_supply_regset, and
3576 add collect method regcache_collect_regset.
3578 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3580 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3581 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3582 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3583 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3584 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3585 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3586 (frv_linux_supply_gregset): Replace main logic by call to
3587 regcache_supply_regset, but keep clearing gr32-gr63.
3588 (frv_linux_supply_fpregset): Delete function.
3589 (frv_linux_gregset): Refer to appropriate register map and add
3590 regcache_collect_regset as the collect method.
3591 (frv_linux_fpregset): Likewise. Also exchange the supply method
3592 by regcache_supply_regset.
3594 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3596 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3597 by call to alpha_supply_int_regs.
3598 (alpha_linux_collect_gregset): New function.
3599 (alpha_linux_supply_fpregset): Replace logic by call to
3600 alpha_supply_fp_regs.
3601 (alpha_linux_collect_fpregset): New function.
3602 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3604 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3606 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3607 by call to regcache_collect_regset.
3608 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3609 instead of aarch64_linux_supply_gregset/_fpregset.
3610 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3611 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3612 header file instead.
3613 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3614 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3615 functions. Move logic to ...
3616 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3618 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3619 refer to new register maps, replace *_regset_from_core by
3620 regcache_supply_regset, and also use regcache_collect_regset.
3621 * aarch64-linux-tdep.h: Include "regset.h".
3622 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3624 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3625 macros, moved from C source file.
3626 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3627 variable declarations.
3629 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3631 * s390-linux-nat.c: Include "regset.h".
3632 (regmap_gregset): Delete macro.
3633 (s390_64_regmap_gregset): New register map for
3634 regcache_supply/_collect_regset.
3635 (s390_64_gregset): New regset.
3636 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3637 (regmap_fpregset): Delete macro.
3638 (s390_native_supply, s390_native_collect): Delete functions.
3639 (supply_gregset, fill_gregset): Replace s390-specific regmap
3640 handling by a call to regcache_supply/_collect_regset.
3641 (supply_fpregset, fill_fpregset): Call regcache_supply/
3642 _collect_regset instead of s390_native_supply/_collect.
3643 (fetch_regset, store_regset): Likewise. Also change the last
3644 parameter to a regset instead of a regmap.
3645 (s390_linux_fetch_inferior_registers)
3646 (390_linux_store_inferior_registers): Adjust last parameter in
3647 calls to fetch_regset and store_regset.
3648 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3649 (s390_gregmap): ... this. Also make static const and convert to
3650 regcache_map_entry format.
3651 (s390x_regmap_gregset): Delete.
3652 (s390_regmap_fpregset): Rename to...
3653 (s390_fpregmap): ... this. Make static const and convert to
3654 regcache_map_entry format.
3655 (s390_regmap_upper, s390_regmap_last_break)
3656 (s390x_regmap_last_break, s390_regmap_system_call)
3657 (s390_regmap_tdb): Likewise.
3658 (s390_supply_regset, s390_collect_regset): Remove functions.
3659 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3661 (s390_gregset, s390_fpregset, s390_upper_regset)
3662 (s390_last_break_regset, s390x_last_break_regset)
3663 (s390_system_call_regset, s390_tdb_regset): Make global and
3664 replace s390_supply/_collect_regset by regcache_supply/
3666 (s390x_gregset): Delete.
3667 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3668 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3669 (s390_regmap_fpregset, s390_regmap_last_break)
3670 (s390x_regmap_last_break, s390_regmap_system_call)
3671 (s390_regmap_tdb): Delete global variable declarations.
3672 (s390_gregset, s390_fpregset, s390_last_break_regset)
3673 (s390x_last_break_regset, s390_system_call_regset)
3674 (s390_tdb_regset): New global variable declarations.
3676 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3678 * regcache.c: Include "regset.h".
3679 (regcache_transfer_regset): New local function.
3680 (regcache_supply_regset, regcache_collect_regset): New functions.
3681 * regcache.h (struct regcache_map_entry): New structure.
3682 (REGCACHE_MAP_SKIP): New enum value.
3683 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3685 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3687 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3688 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3689 (ppc_linux_collect_gregset ): Likewise.
3690 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3691 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3692 (ppc_collect_vrregset): Likewise.
3693 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3696 2014-08-07 Yao Qi <yao@codesourcery.com>
3698 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3699 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3700 * remote.c (remote_read_bytes): Likewise.
3702 2014-08-07 Yao Qi <yao@codesourcery.com>
3704 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3706 2014-08-07 Yao Qi <yao@codesourcery.com>
3709 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3710 TARGET_XFER_OK instead of 0.
3712 2014-08-07 Gary Benson <gbenson@redhat.com>
3714 * common/common-defs.h: Include errno.h.
3715 * defs.h: Do not include errno.h.
3716 * ada-typeprint.c: Likewise.
3717 * c-typeprint.c: Likewise.
3718 * core-regset.c: Likewise.
3719 * corefile.c: Likewise.
3720 * corelow.c: Likewise.
3721 * event-loop.c: Likewise.
3722 * f-typeprint.c: Likewise.
3723 * gnu-nat.c: Likewise.
3724 * go32-nat.c: Likewise.
3725 * i386gnu-nat.c: Likewise.
3726 * m2-typeprint.c: Likewise.
3727 * nat/linux-btrace.c: Likewise.
3728 * p-typeprint.c: Likewise.
3729 * procfs.c: Likewise.
3730 * remote-sim.c: Likewise.
3731 * rs6000-nat.c: Likewise.
3732 * target.c: Likewise.
3733 * typeprint.c: Likewise.
3734 * ui-file.c: Likewise.
3735 * valops.c: Likewise.
3736 * valprint.c: Likewise.
3738 2014-08-07 Gary Benson <gbenson@redhat.com>
3740 * common/common-defs.h: Include string.h.
3741 * aarch64-tdep.c: Do not include string.h.
3742 * ada-exp.y: Likewise.
3743 * ada-lang.c: Likewise.
3744 * ada-lex.l: Likewise.
3745 * ada-typeprint.c: Likewise.
3746 * ada-valprint.c: Likewise.
3747 * aix-thread.c: Likewise.
3748 * alpha-linux-tdep.c: Likewise.
3749 * alpha-mdebug-tdep.c: Likewise.
3750 * alpha-nat.c: Likewise.
3751 * alpha-osf1-tdep.c: Likewise.
3752 * alpha-tdep.c: Likewise.
3753 * alphanbsd-tdep.c: Likewise.
3754 * amd64-dicos-tdep.c: Likewise.
3755 * amd64-linux-tdep.c: Likewise.
3756 * amd64-nat.c: Likewise.
3757 * amd64-sol2-tdep.c: Likewise.
3758 * amd64fbsd-tdep.c: Likewise.
3759 * amd64obsd-tdep.c: Likewise.
3760 * arch-utils.c: Likewise.
3761 * arm-linux-nat.c: Likewise.
3762 * arm-linux-tdep.c: Likewise.
3763 * arm-tdep.c: Likewise.
3764 * arm-wince-tdep.c: Likewise.
3765 * armbsd-tdep.c: Likewise.
3766 * armnbsd-nat.c: Likewise.
3767 * armnbsd-tdep.c: Likewise.
3768 * armobsd-tdep.c: Likewise.
3769 * avr-tdep.c: Likewise.
3770 * ax-gdb.c: Likewise.
3771 * ax-general.c: Likewise.
3772 * bcache.c: Likewise.
3773 * bfin-tdep.c: Likewise.
3774 * breakpoint.c: Likewise.
3775 * build-id.c: Likewise.
3776 * buildsym.c: Likewise.
3777 * c-exp.y: Likewise.
3778 * c-lang.c: Likewise.
3779 * c-typeprint.c: Likewise.
3780 * c-valprint.c: Likewise.
3781 * charset.c: Likewise.
3782 * cli-out.c: Likewise.
3783 * cli/cli-cmds.c: Likewise.
3784 * cli/cli-decode.c: Likewise.
3785 * cli/cli-dump.c: Likewise.
3786 * cli/cli-interp.c: Likewise.
3787 * cli/cli-logging.c: Likewise.
3788 * cli/cli-script.c: Likewise.
3789 * cli/cli-setshow.c: Likewise.
3790 * cli/cli-utils.c: Likewise.
3791 * coffread.c: Likewise.
3792 * common/agent.c: Likewise.
3793 * common/buffer.c: Likewise.
3794 * common/buffer.h: Likewise.
3795 * common/common-utils.c: Likewise.
3796 * common/filestuff.c: Likewise.
3797 * common/filestuff.c: Likewise.
3798 * common/format.c: Likewise.
3799 * common/print-utils.c: Likewise.
3800 * common/rsp-low.c: Likewise.
3801 * common/signals.c: Likewise.
3802 * common/vec.h: Likewise.
3803 * common/xml-utils.c: Likewise.
3804 * core-regset.c: Likewise.
3805 * corefile.c: Likewise.
3806 * corelow.c: Likewise.
3807 * cp-abi.c: Likewise.
3808 * cp-name-parser.y: Likewise.
3809 * cp-support.c: Likewise.
3810 * cp-valprint.c: Likewise.
3811 * cris-tdep.c: Likewise.
3812 * d-exp.y: Likewise.
3813 * darwin-nat.c: Likewise.
3814 * dbxread.c: Likewise.
3815 * dcache.c: Likewise.
3816 * demangle.c: Likewise.
3817 * dicos-tdep.c: Likewise.
3818 * disasm.c: Likewise.
3819 * doublest.c: Likewise.
3820 * dsrec.c: Likewise.
3821 * dummy-frame.c: Likewise.
3822 * dwarf2-frame.c: Likewise.
3823 * dwarf2loc.c: Likewise.
3824 * dwarf2read.c: Likewise.
3825 * elfread.c: Likewise.
3826 * environ.c: Likewise.
3828 * event-loop.c: Likewise.
3829 * exceptions.c: Likewise.
3831 * expprint.c: Likewise.
3832 * f-exp.y: Likewise.
3833 * f-lang.c: Likewise.
3834 * f-typeprint.c: Likewise.
3835 * f-valprint.c: Likewise.
3836 * fbsd-nat.c: Likewise.
3837 * findcmd.c: Likewise.
3838 * findvar.c: Likewise.
3839 * fork-child.c: Likewise.
3840 * frame.c: Likewise.
3841 * frv-linux-tdep.c: Likewise.
3842 * frv-tdep.c: Likewise.
3844 * gdb_bfd.c: Likewise.
3845 * gdbarch.c: Likewise.
3846 * gdbarch.sh: Likewise.
3847 * gdbtypes.c: Likewise.
3848 * gnu-nat.c: Likewise.
3849 * gnu-v2-abi.c: Likewise.
3850 * gnu-v3-abi.c: Likewise.
3851 * go-exp.y: Likewise.
3852 * go-lang.c: Likewise.
3853 * go32-nat.c: Likewise.
3854 * guile/guile.c: Likewise.
3855 * guile/scm-auto-load.c: Likewise.
3856 * hppa-hpux-tdep.c: Likewise.
3857 * hppa-linux-nat.c: Likewise.
3858 * hppanbsd-tdep.c: Likewise.
3859 * hppaobsd-tdep.c: Likewise.
3860 * i386-cygwin-tdep.c: Likewise.
3861 * i386-dicos-tdep.c: Likewise.
3862 * i386-linux-tdep.c: Likewise.
3863 * i386-nto-tdep.c: Likewise.
3864 * i386-sol2-tdep.c: Likewise.
3865 * i386-tdep.c: Likewise.
3866 * i386bsd-tdep.c: Likewise.
3867 * i386gnu-nat.c: Likewise.
3868 * i386nbsd-tdep.c: Likewise.
3869 * i386obsd-tdep.c: Likewise.
3870 * i387-tdep.c: Likewise.
3871 * ia64-libunwind-tdep.c: Likewise.
3872 * ia64-linux-nat.c: Likewise.
3873 * inf-child.c: Likewise.
3874 * inf-ptrace.c: Likewise.
3875 * inf-ttrace.c: Likewise.
3876 * infcall.c: Likewise.
3877 * infcmd.c: Likewise.
3878 * inflow.c: Likewise.
3879 * infrun.c: Likewise.
3880 * interps.c: Likewise.
3881 * iq2000-tdep.c: Likewise.
3882 * irix5-nat.c: Likewise.
3883 * jv-exp.y: Likewise.
3884 * jv-lang.c: Likewise.
3885 * jv-typeprint.c: Likewise.
3886 * jv-valprint.c: Likewise.
3887 * language.c: Likewise.
3888 * linux-fork.c: Likewise.
3889 * linux-nat.c: Likewise.
3890 * lm32-tdep.c: Likewise.
3891 * m2-exp.y: Likewise.
3892 * m2-typeprint.c: Likewise.
3893 * m32c-tdep.c: Likewise.
3894 * m32r-linux-nat.c: Likewise.
3895 * m32r-linux-tdep.c: Likewise.
3896 * m32r-rom.c: Likewise.
3897 * m32r-tdep.c: Likewise.
3898 * m68hc11-tdep.c: Likewise.
3899 * m68k-tdep.c: Likewise.
3900 * m68kbsd-tdep.c: Likewise.
3901 * m68klinux-nat.c: Likewise.
3902 * m68klinux-tdep.c: Likewise.
3903 * m88k-tdep.c: Likewise.
3904 * machoread.c: Likewise.
3905 * macrocmd.c: Likewise.
3907 * mdebugread.c: Likewise.
3908 * mem-break.c: Likewise.
3909 * memattr.c: Likewise.
3910 * memory-map.c: Likewise.
3911 * mep-tdep.c: Likewise.
3912 * mi/mi-cmd-break.c: Likewise.
3913 * mi/mi-cmd-disas.c: Likewise.
3914 * mi/mi-cmd-env.c: Likewise.
3915 * mi/mi-cmd-stack.c: Likewise.
3916 * mi/mi-cmd-var.c: Likewise.
3917 * mi/mi-cmds.c: Likewise.
3918 * mi/mi-console.c: Likewise.
3919 * mi/mi-getopt.c: Likewise.
3920 * mi/mi-interp.c: Likewise.
3921 * mi/mi-main.c: Likewise.
3922 * mi/mi-parse.c: Likewise.
3923 * microblaze-rom.c: Likewise.
3924 * microblaze-tdep.c: Likewise.
3925 * mingw-hdep.c: Likewise.
3926 * minidebug.c: Likewise.
3927 * minsyms.c: Likewise.
3928 * mips-irix-tdep.c: Likewise.
3929 * mips-linux-tdep.c: Likewise.
3930 * mips-tdep.c: Likewise.
3931 * mips64obsd-tdep.c: Likewise.
3932 * mipsnbsd-tdep.c: Likewise.
3933 * mipsread.c: Likewise.
3934 * mn10300-linux-tdep.c: Likewise.
3935 * mn10300-tdep.c: Likewise.
3936 * monitor.c: Likewise.
3937 * moxie-tdep.c: Likewise.
3938 * mt-tdep.c: Likewise.
3939 * nat/linux-btrace.c: Likewise.
3940 * nat/linux-osdata.c: Likewise.
3941 * nat/linux-procfs.c: Likewise.
3942 * nat/linux-ptrace.c: Likewise.
3943 * nat/linux-waitpid.c: Likewise.
3944 * nbsd-tdep.c: Likewise.
3945 * nios2-linux-tdep.c: Likewise.
3946 * nto-procfs.c: Likewise.
3947 * nto-tdep.c: Likewise.
3948 * objc-lang.c: Likewise.
3949 * objfiles.c: Likewise.
3950 * opencl-lang.c: Likewise.
3951 * osabi.c: Likewise.
3952 * osdata.c: Likewise.
3953 * p-exp.y: Likewise.
3954 * p-lang.c: Likewise.
3955 * p-typeprint.c: Likewise.
3956 * parse.c: Likewise.
3957 * posix-hdep.c: Likewise.
3958 * ppc-linux-nat.c: Likewise.
3959 * ppc-sysv-tdep.c: Likewise.
3960 * ppcfbsd-tdep.c: Likewise.
3961 * ppcnbsd-tdep.c: Likewise.
3962 * ppcobsd-tdep.c: Likewise.
3963 * printcmd.c: Likewise.
3964 * procfs.c: Likewise.
3965 * prologue-value.c: Likewise.
3966 * python/py-auto-load.c: Likewise.
3967 * python/py-gdb-readline.c: Likewise.
3968 * ravenscar-thread.c: Likewise.
3969 * regcache.c: Likewise.
3970 * registry.c: Likewise.
3971 * remote-fileio.c: Likewise.
3972 * remote-m32r-sdi.c: Likewise.
3973 * remote-mips.c: Likewise.
3974 * remote-notif.c: Likewise.
3975 * remote-sim.c: Likewise.
3976 * remote.c: Likewise.
3977 * reverse.c: Likewise.
3978 * rs6000-aix-tdep.c: Likewise.
3979 * ser-base.c: Likewise.
3980 * ser-go32.c: Likewise.
3981 * ser-mingw.c: Likewise.
3982 * ser-pipe.c: Likewise.
3983 * ser-tcp.c: Likewise.
3984 * ser-unix.c: Likewise.
3985 * serial.c: Likewise.
3986 * sh-tdep.c: Likewise.
3987 * sh64-tdep.c: Likewise.
3988 * shnbsd-tdep.c: Likewise.
3990 * sol-thread.c: Likewise.
3991 * solib-dsbt.c: Likewise.
3992 * solib-frv.c: Likewise.
3993 * solib-osf.c: Likewise.
3994 * solib-som.c: Likewise.
3995 * solib-spu.c: Likewise.
3996 * solib-target.c: Likewise.
3997 * solib.c: Likewise.
3998 * somread.c: Likewise.
3999 * source.c: Likewise.
4000 * sparc-nat.c: Likewise.
4001 * sparc-sol2-tdep.c: Likewise.
4002 * sparc-tdep.c: Likewise.
4003 * sparc64-tdep.c: Likewise.
4004 * sparc64fbsd-tdep.c: Likewise.
4005 * sparc64nbsd-tdep.c: Likewise.
4006 * sparcnbsd-tdep.c: Likewise.
4007 * spu-linux-nat.c: Likewise.
4008 * spu-multiarch.c: Likewise.
4009 * spu-tdep.c: Likewise.
4010 * stabsread.c: Likewise.
4011 * stack.c: Likewise.
4012 * std-regs.c: Likewise.
4013 * symfile.c: Likewise.
4014 * symmisc.c: Likewise.
4015 * symtab.c: Likewise.
4016 * target.c: Likewise.
4017 * thread.c: Likewise.
4018 * tilegx-linux-nat.c: Likewise.
4019 * tilegx-tdep.c: Likewise.
4021 * tracepoint.c: Likewise.
4022 * tui/tui-command.c: Likewise.
4023 * tui/tui-data.c: Likewise.
4024 * tui/tui-disasm.c: Likewise.
4025 * tui/tui-file.c: Likewise.
4026 * tui/tui-layout.c: Likewise.
4027 * tui/tui-out.c: Likewise.
4028 * tui/tui-regs.c: Likewise.
4029 * tui/tui-source.c: Likewise.
4030 * tui/tui-stack.c: Likewise.
4031 * tui/tui-win.c: Likewise.
4032 * tui/tui-windata.c: Likewise.
4033 * tui/tui-winsource.c: Likewise.
4034 * typeprint.c: Likewise.
4035 * ui-file.c: Likewise.
4036 * ui-out.c: Likewise.
4037 * user-regs.c: Likewise.
4038 * utils.c: Likewise.
4039 * v850-tdep.c: Likewise.
4040 * valarith.c: Likewise.
4041 * valops.c: Likewise.
4042 * valprint.c: Likewise.
4043 * value.c: Likewise.
4044 * varobj.c: Likewise.
4045 * vax-tdep.c: Likewise.
4046 * vaxnbsd-tdep.c: Likewise.
4047 * vaxobsd-tdep.c: Likewise.
4048 * windows-nat.c: Likewise.
4049 * xcoffread.c: Likewise.
4050 * xml-support.c: Likewise.
4051 * xstormy16-tdep.c: Likewise.
4052 * xtensa-linux-nat.c: Likewise.
4054 2014-08-07 Gary Benson <gbenson@redhat.com>
4056 * common/common-defs.h: Include gdb_assert.h.
4057 * aarch64-tdep.c: Do not include gdb_assert.h.
4058 * addrmap.c: Likewise.
4059 * aix-thread.c: Likewise.
4060 * alpha-linux-tdep.c: Likewise.
4061 * alpha-mdebug-tdep.c: Likewise.
4062 * alphanbsd-tdep.c: Likewise.
4063 * amd64-nat.c: Likewise.
4064 * amd64-tdep.c: Likewise.
4065 * amd64bsd-nat.c: Likewise.
4066 * amd64fbsd-nat.c: Likewise.
4067 * amd64fbsd-tdep.c: Likewise.
4068 * amd64nbsd-nat.c: Likewise.
4069 * amd64nbsd-tdep.c: Likewise.
4070 * amd64obsd-nat.c: Likewise.
4071 * amd64obsd-tdep.c: Likewise.
4072 * arch-utils.c: Likewise.
4073 * arm-tdep.c: Likewise.
4074 * armbsd-tdep.c: Likewise.
4076 * bcache.c: Likewise.
4077 * bfin-tdep.c: Likewise.
4078 * blockframe.c: Likewise.
4079 * breakpoint.c: Likewise.
4080 * bsd-kvm.c: Likewise.
4081 * bsd-uthread.c: Likewise.
4082 * buildsym.c: Likewise.
4083 * c-exp.y: Likewise.
4084 * c-lang.c: Likewise.
4085 * charset.c: Likewise.
4086 * cleanups.c: Likewise.
4087 * cli-out.c: Likewise.
4088 * cli/cli-decode.c: Likewise.
4089 * cli/cli-dump.c: Likewise.
4090 * cli/cli-logging.c: Likewise.
4091 * cli/cli-script.c: Likewise.
4092 * cli/cli-utils.c: Likewise.
4093 * coffread.c: Likewise.
4094 * common/common-utils.c: Likewise.
4095 * common/queue.h: Likewise.
4096 * common/signals.c: Likewise.
4097 * common/vec.h: Likewise.
4098 * complaints.c: Likewise.
4099 * completer.c: Likewise.
4100 * corelow.c: Likewise.
4101 * cp-abi.c: Likewise.
4102 * cp-name-parser.y: Likewise.
4103 * cp-namespace.c: Likewise.
4104 * cp-support.c: Likewise.
4105 * cris-tdep.c: Likewise.
4106 * dbxread.c: Likewise.
4107 * dictionary.c: Likewise.
4108 * doublest.c: Likewise.
4109 * dsrec.c: Likewise.
4110 * dummy-frame.c: Likewise.
4111 * dwarf2-frame-tailcall.c: Likewise.
4112 * dwarf2-frame.c: Likewise.
4113 * dwarf2expr.c: Likewise.
4114 * dwarf2loc.c: Likewise.
4115 * dwarf2read.c: Likewise.
4117 * event-loop.c: Likewise.
4118 * exceptions.c: Likewise.
4119 * expprint.c: Likewise.
4120 * f-valprint.c: Likewise.
4121 * fbsd-nat.c: Likewise.
4122 * findvar.c: Likewise.
4123 * frame-unwind.c: Likewise.
4124 * frame.c: Likewise.
4125 * frv-tdep.c: Likewise.
4126 * gcore.c: Likewise.
4127 * gdb-dlfcn.c: Likewise.
4128 * gdb_bfd.c: Likewise.
4129 * gdbarch.c: Likewise.
4130 * gdbarch.sh: Likewise.
4131 * gdbtypes.c: Likewise.
4132 * gnu-nat.c: Likewise.
4133 * gnu-v3-abi.c: Likewise.
4134 * go-lang.c: Likewise.
4135 * guile/scm-exception.c: Likewise.
4136 * guile/scm-gsmob.c: Likewise.
4137 * guile/scm-lazy-string.c: Likewise.
4138 * guile/scm-math.c: Likewise.
4139 * guile/scm-pretty-print.c: Likewise.
4140 * guile/scm-safe-call.c: Likewise.
4141 * guile/scm-utils.c: Likewise.
4142 * guile/scm-value.c: Likewise.
4143 * h8300-tdep.c: Likewise.
4144 * hppa-hpux-nat.c: Likewise.
4145 * hppa-tdep.c: Likewise.
4146 * hppanbsd-tdep.c: Likewise.
4147 * hppaobsd-tdep.c: Likewise.
4148 * i386-darwin-nat.c: Likewise.
4149 * i386-darwin-tdep.c: Likewise.
4150 * i386-nto-tdep.c: Likewise.
4151 * i386-tdep.c: Likewise.
4152 * i386bsd-nat.c: Likewise.
4153 * i386fbsd-tdep.c: Likewise.
4154 * i386gnu-nat.c: Likewise.
4155 * i386nbsd-tdep.c: Likewise.
4156 * i386obsd-tdep.c: Likewise.
4157 * i387-tdep.c: Likewise.
4158 * ia64-libunwind-tdep.c: Likewise.
4159 * ia64-tdep.c: Likewise.
4160 * inf-ptrace.c: Likewise.
4161 * inf-ttrace.c: Likewise.
4162 * infcall.c: Likewise.
4163 * infcmd.c: Likewise.
4164 * infrun.c: Likewise.
4165 * inline-frame.c: Likewise.
4166 * interps.c: Likewise.
4167 * jv-lang.c: Likewise.
4168 * jv-typeprint.c: Likewise.
4169 * linux-fork.c: Likewise.
4170 * linux-nat.c: Likewise.
4171 * linux-thread-db.c: Likewise.
4172 * m32c-tdep.c: Likewise.
4173 * m32r-linux-nat.c: Likewise.
4174 * m32r-tdep.c: Likewise.
4175 * m68k-tdep.c: Likewise.
4176 * m68kbsd-nat.c: Likewise.
4177 * m68kbsd-tdep.c: Likewise.
4178 * m88k-tdep.c: Likewise.
4179 * machoread.c: Likewise.
4180 * macroexp.c: Likewise.
4181 * macrotab.c: Likewise.
4182 * maint.c: Likewise.
4183 * mdebugread.c: Likewise.
4184 * memory-map.c: Likewise.
4185 * mep-tdep.c: Likewise.
4186 * mi/mi-common.c: Likewise.
4187 * microblaze-tdep.c: Likewise.
4188 * mingw-hdep.c: Likewise.
4189 * mips-linux-nat.c: Likewise.
4190 * mips-linux-tdep.c: Likewise.
4191 * mips-tdep.c: Likewise.
4192 * mips64obsd-tdep.c: Likewise.
4193 * mipsnbsd-tdep.c: Likewise.
4194 * mn10300-linux-tdep.c: Likewise.
4195 * mn10300-tdep.c: Likewise.
4196 * moxie-tdep.c: Likewise.
4197 * mt-tdep.c: Likewise.
4198 * nat/linux-btrace.c: Likewise.
4199 * nat/linux-osdata.c: Likewise.
4200 * nat/linux-ptrace.c: Likewise.
4201 * nat/mips-linux-watch.c: Likewise.
4202 * nios2-linux-tdep.c: Likewise.
4203 * nios2-tdep.c: Likewise.
4204 * objc-lang.c: Likewise.
4205 * objfiles.c: Likewise.
4206 * obsd-nat.c: Likewise.
4207 * opencl-lang.c: Likewise.
4208 * osabi.c: Likewise.
4209 * parse.c: Likewise.
4210 * ppc-linux-nat.c: Likewise.
4211 * ppc-sysv-tdep.c: Likewise.
4212 * ppcfbsd-nat.c: Likewise.
4213 * ppcfbsd-tdep.c: Likewise.
4214 * ppcnbsd-nat.c: Likewise.
4215 * ppcnbsd-tdep.c: Likewise.
4216 * ppcobsd-nat.c: Likewise.
4217 * ppcobsd-tdep.c: Likewise.
4218 * printcmd.c: Likewise.
4219 * procfs.c: Likewise.
4220 * prologue-value.c: Likewise.
4221 * psymtab.c: Likewise.
4222 * python/py-lazy-string.c: Likewise.
4223 * python/py-value.c: Likewise.
4224 * regcache.c: Likewise.
4225 * reggroups.c: Likewise.
4226 * registry.c: Likewise.
4227 * remote-sim.c: Likewise.
4228 * remote.c: Likewise.
4229 * rs6000-aix-tdep.c: Likewise.
4230 * rs6000-tdep.c: Likewise.
4231 * s390-linux-tdep.c: Likewise.
4232 * score-tdep.c: Likewise.
4233 * ser-base.c: Likewise.
4234 * ser-mingw.c: Likewise.
4235 * sh-tdep.c: Likewise.
4236 * sh64-tdep.c: Likewise.
4237 * solib-darwin.c: Likewise.
4238 * solib-spu.c: Likewise.
4239 * solib-svr4.c: Likewise.
4240 * source.c: Likewise.
4241 * sparc-nat.c: Likewise.
4242 * sparc-sol2-tdep.c: Likewise.
4243 * sparc-tdep.c: Likewise.
4244 * sparc64-sol2-tdep.c: Likewise.
4245 * sparc64-tdep.c: Likewise.
4246 * sparc64fbsd-tdep.c: Likewise.
4247 * sparc64nbsd-tdep.c: Likewise.
4248 * sparc64obsd-tdep.c: Likewise.
4249 * sparcnbsd-tdep.c: Likewise.
4250 * sparcobsd-tdep.c: Likewise.
4251 * spu-multiarch.c: Likewise.
4252 * spu-tdep.c: Likewise.
4253 * stabsread.c: Likewise.
4254 * stack.c: Likewise.
4255 * symfile.c: Likewise.
4256 * symtab.c: Likewise.
4257 * target-descriptions.c: Likewise.
4258 * target-memory.c: Likewise.
4259 * target.c: Likewise.
4260 * tic6x-linux-tdep.c: Likewise.
4261 * tic6x-tdep.c: Likewise.
4262 * tilegx-linux-nat.c: Likewise.
4263 * tilegx-tdep.c: Likewise.
4265 * tramp-frame.c: Likewise.
4266 * tui/tui-out.c: Likewise.
4267 * tui/tui-winsource.c: Likewise.
4268 * ui-out.c: Likewise.
4269 * user-regs.c: Likewise.
4270 * utils.c: Likewise.
4271 * v850-tdep.c: Likewise.
4272 * valops.c: Likewise.
4273 * value.c: Likewise.
4274 * varobj.c: Likewise.
4275 * vax-nat.c: Likewise.
4276 * xml-syscall.c: Likewise.
4277 * xml-tdesc.c: Likewise.
4278 * xstormy16-tdep.c: Likewise.
4279 * xtensa-linux-nat.c: Likewise.
4280 * xtensa-tdep.c: Likewise.
4282 2014-08-07 Gary Benson <gbenson@redhat.com>
4284 * common/common-defs.h: Include common-utils.h.
4285 * defs.h: Do not include common-utils.h.
4286 * common/gdb_assert.h: Likewise.
4287 * darwin-nat.h: Likewise.
4288 * nat/linux-btrace.c: Likewise.
4289 * target/waitstatus.h: Likewise.
4291 2014-08-07 Gary Benson <gbenson@redhat.com>
4293 * common/common-defs.h: Include ptid.h.
4294 * defs.h: Do not include ptid.h.
4295 * inferior.h: Likewise.
4296 * infrun.h: Likewise.
4297 * nat/linux-btrace.h: Likewise.
4298 * nat/linux-osdata.h: Likewise.
4299 * target/waitstatus.h: Likewise.
4301 2014-08-07 Gary Benson <gbenson@redhat.com>
4303 * common/common-defs.h: Include gdb_locale.h.
4304 * defs.h: Do not include gdb_locale.h.
4306 2014-08-07 Gary Benson <gbenson@redhat.com>
4308 * common/common-defs.h: Include gdb/signals.h.
4309 * defs.h: Do not include gdb/signals.h.
4311 2014-08-07 Gary Benson <gbenson@redhat.com>
4313 * common/common-defs.h: Include pathmax.h.
4314 * defs.h: Do not include pathmax.h.
4316 2014-08-07 Gary Benson <gbenson@redhat.com>
4318 * common/common-defs.h: Include libiberty.h.
4319 * defs.h: Do not include libiberty.h.
4320 * common/queue.h: Likewise.
4321 * cp-name-parser.y: Likewise.
4322 * mi/mi-cmd-catch.c: Likewise.
4323 * python/python.c: Likewise.
4325 2014-08-07 Gary Benson <gbenson@redhat.com>
4327 * common/common-defs.h: Include ansidecl.h.
4328 * defs.h: Do not include ansidecl.h.
4329 * common/buffer.h: Likewise.
4330 * common/common-utils.h: Likewise.
4332 2014-08-07 Gary Benson <gbenson@redhat.com>
4334 * common/common-defs.h: Include stddef.h.
4335 * defs.h: Do not include stddef.h.
4336 * common/common-utils.h: Likewise.
4337 * amd64fbsd-nat.c: Likewise.
4338 * bcache.c: Likewise.
4339 * charset.c: Likewise.
4340 * common/buffer.h: Likewise.
4341 * common/vec.h: Likewise.
4342 * i386bsd-nat.c: Likewise.
4343 * nat/linux-btrace.h: Likewise.
4344 * ppcfbsd-nat.c: Likewise.
4345 * ppcnbsd-tdep.h: Likewise.
4346 * ppcobsd-nat.c: Likewise.
4347 * ppcobsd-tdep.h: Likewise.
4348 * python/py-gdb-readline.c: Likewise.
4350 2014-08-07 Gary Benson <gbenson@redhat.com>
4352 * common/common-defs.h: Include stdarg.h.
4353 * defs.h: Do not include stdarg.h.
4354 * ada-lang.c: Likewise.
4355 * common/common-utils.h: Likewise.
4356 * guile/scm-string.c: Likewise.
4357 * guile/scm-utils.c: Likewise.
4358 * m32c-tdep.c: Likewise.
4360 2014-08-07 Gary Benson <gbenson@redhat.com>
4362 * common/common-defs.h: Include stdlib.h.
4363 * defs.h: Do not include stdlib.h.
4364 * addrmap.c: Likewise.
4365 * bcache.c: Likewise.
4366 * common/buffer.c: Likewise.
4367 * common/common-utils.c: Likewise.
4368 * cp-name-parser.y: Likewise.
4369 * go32-nat.c: Likewise.
4370 * mn10300-linux-tdep.c: Likewise.
4371 * nat/linux-osdata.c: Likewise.
4372 * tui/tui.c: Likewise.
4373 * windows-nat.c: Likewise.
4375 2014-08-07 Gary Benson <gbenson@redhat.com>
4377 * common/common-defs.h: Include stdio.h.
4378 * defs.h: Do not include stdio.h.
4379 * ada-lang.c: Likewise.
4380 * common/buffer.c: Likewise.
4381 * common/common-utils.c: Likewise.
4382 * cp-name-parser.y: Likewise.
4383 * gnu-nat.c: Likewise.
4384 * go32-nat.c: Likewise.
4385 * i386gnu-nat.c: Likewise.
4386 * proc-api.c: Likewise.
4387 * proc-events.c: Likewise.
4388 * proc-flags.c: Likewise.
4389 * proc-why.c: Likewise.
4390 * python/python-internal.h: Likewise.
4391 * target-memory.c: Likewise.
4392 * tui/tui-io.c: Likewise.
4393 * tui/tui.c: Likewise.
4395 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4397 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4398 (scan_dyntag_auxv): Same.
4400 2014-08-06 Yao Qi <yao@codesourcery.com>
4402 * amd64-linux-nat.c: Remove duplicated include
4404 * i386-linux-nat.c: Likewise.
4406 2014-08-06 Yao Qi <yao@codesourcery.com>
4408 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4409 operand" with "Special opcode" in comments.
4411 2014-08-05 Gary Benson <gbenson@redhat.com>
4413 * interps.c (initialize_interps): Remove prototype.
4414 (interpreter_initialized): Remove static global.
4415 (interp_add): Do not call initialize_interps.
4416 (initialize_interps): Remove function.
4418 2014-08-05 Gary Benson <gbenson@redhat.com>
4420 * utils.c (vwarning): Remove spurious va_end.
4422 2014-08-05 Alan Modra <amodra@gmail.com>
4424 * charset.c (convert_between_encodings): Cast result of obstack_base.
4425 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4426 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4427 (read_unwind_info): Use size_t for some locals.
4428 * jit.c (finalize_symtab): Likewise.
4429 * utils.c (hashtab_obstack_allocate): Likewise.
4430 * symmisc.c (print_objfile_statistics): Update format strings.
4432 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4434 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4435 (Changes in GDB 7.8): ... here.
4437 2014-08-04 Tom Tromey <tromey@redhat.com>
4439 * target.c (set_targetdebug): New function.
4440 (initialize_targets): Pass set_targetdebug when creating "set
4443 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4445 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4446 if detecting a variable-sized field that is not the last field.
4447 Fix struct type length computation.
4449 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4451 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4454 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4456 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4457 Remove "+ 8" offset in computation of CHAIN_VMA.
4459 2014-07-31 Doug Evans <dje@google.com>
4461 * inflow.c (child_terminal_inferior): Add comment.
4462 (child_terminal_ours_for_output): Add comment.
4463 (child_terminal_ours): Add comment.
4464 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4465 (linux_nat_terminal_ours): Add comment.
4467 2014-07-31 Gary Benson <gbenson@redhat.com>
4469 * common/btrace-common.h: Do not include defs.h or server.h.
4470 * nat/mips-linux-watch.h: Likewise.
4471 * gdb-dlfcn.h: Do not include defs.h.
4472 * tracefile.h: Likewise.
4474 2014-07-30 Roland McGrath <mcgrathr@google.com>
4476 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4478 2014-07-30 Tom Tromey <tromey@redhat.com>
4480 * bsd-kvm.c (bsd_kvm_open): Constify.
4481 * corelow.c (core_open): Constify.
4482 * ctf.c (ctf_open): Constify.
4483 * dbug-rom.c (dbug_open): Constify.
4484 * exec.c (exec_open): Constify.
4485 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4486 * microblaze-rom.c (picobug_open): Constify.
4487 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4489 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4490 * record-btrace.c (record_btrace_open): Constify.
4491 * record-full.c (record_full_core_open_1, record_full_open_1)
4492 (record_full_open): Constify.
4493 * remote-m32r-sdi.c (m32r_open): Constify.
4494 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4495 (rockhopper_open, lsi_open): Constify.
4496 * remote-sim.c (gdbsim_open): Constify.
4497 * remote.c (remote_open, extended_remote_open, remote_open_1):
4499 * target.h (struct target_ops) <to_open>: Make "arg" const.
4500 * tracefile-tfile.c (tfile_open): Constify.
4502 2014-07-30 Tom Tromey <tromey@redhat.com>
4504 * breakpoint.c (map_breakpoint_numbers): Update.
4505 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4506 (get_number_const): New function.
4507 (get_number): Rewrite using get_number_const.
4508 (init_number_or_range): Make "string" const.
4509 (number_is_in_list): Make "list" const.
4510 * cli/cli-utils.h (get_number_const): Declare.
4511 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4512 (init_number_or_range, number_is_in_list): Update.
4513 * printcmd.c (map_display_numbers): Update.
4514 * value.c (value_from_history_ref): Constify.
4515 * value.h (value_from_history_ref): Update.
4517 2014-07-30 Tom Tromey <tromey@redhat.com>
4519 * corefile.c (hook_type, call_extra_exec_file_hooks)
4520 (specify_exec_file_hook): Constify.
4521 * exec.c (exec_file_attach): Make "filename" const.
4522 * gdbcore.h (deprecated_exec_file_display_hook)
4523 (specify_exec_file_hook, exec_file_attach): Constify.
4524 * main.c (captured_main): Use catch_command_errors_const.
4526 2014-07-30 Tom Tromey <tromey@redhat.com>
4528 * target.c (open_target): New function.
4529 (add_target_with_completer, add_deprecated_target_alias): Use
4530 set_cmd_sfunc, set_cmd_context.
4531 (debug_to_open): Remove.
4532 (setup_target_debug): Update.
4534 2014-07-30 Yao Qi <yao@codesourcery.com>
4536 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4538 * parse.c (exp_iterate): Update comments.
4540 2014-07-30 Gary Benson <gbenson@redhat.com>
4542 * common/common-defs.h: New file.
4543 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4544 * defs.h: Include common-defs.h.
4545 Do not include config.h or build-gnulib/config.h.
4547 2014-07-30 Gary Benson <gbenson@redhat.com>
4549 * common/common-utils.h: Do not include config.h.
4550 * nat/linux-btrace.h: Likewise.
4552 2014-07-30 Gary Benson <gbenson@redhat.com>
4554 * btrace.c: Include defs.h.
4555 * common/ptid.c: Include defs.h or server.h as appropriate.
4556 * nat/mips-linux-watch.c: Likewise.
4558 2014-07-29 Tom Tromey <tromey@redhat.com>
4560 * target.c (target_is_pushed): Simplify.
4562 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4566 2014-07-29 Yao Qi <yao@codesourcery.com>
4569 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4571 2014-07-28 Doug Evans <xdje42@gmail.com>
4574 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4575 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4578 2014-07-28 Will Newton <will.newton@linaro.org>
4580 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4581 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4582 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4583 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4584 (THUMB2_EABI_SYSCALL): Likewise.
4585 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4587 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4588 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4590 2014-07-27 Doug Evans <xdje42@gmail.com>
4592 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4594 2014-07-27 Doug Evans <xdje42@gmail.com>
4596 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4598 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4599 Doug Evans <xdje42@gmail.com>
4602 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4603 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4604 * configure.ac: Try to use guild to compile an scm file, if it fails
4605 then disable guile support.
4606 * configure: Regenerate.
4607 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4609 (GUILE_COMPILED_FILES): New variable.
4610 (GUILE_FILES) Update.
4611 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4612 (stamp-guile): Compile scm files.
4613 * guile/guile.c (boot_guile_support): New function.
4614 (standard_throw_args_p): New function.
4615 (print_standard_throw_error, print_throw_error): New functions.
4616 (handle_boot_error): New function.
4617 (initialize_scheme_side): Rewrite to call boot_guile_support.
4618 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4619 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4621 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4622 Doug Evans <xdje42@gmail.com>
4625 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4626 * guile/lib/gdb/support.scm: New file.
4627 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4628 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4630 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4632 (%assert-type): Ditto, and renamed to assert-type.
4633 (%exception-print-style): Delete.
4635 2014-07-26 Doug Evans <xdje42@gmail.com>
4638 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4639 * configure: Regenerate.
4640 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4642 (PYTHON_FILES): New variable.
4643 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4644 (GUILE_FILES): New variable.
4645 (stamp-python, install-python, uninstall-python): Handle empty
4647 (stamp-guile, install-guile, uninstall-guile): Ditto.
4649 2014-07-26 Doug Evans <xdje42@gmail.com>
4652 * guile/lib/gdb.scm (pretty-printers): Export.
4653 (set-pretty-printers!): Export.
4654 * guile/lib/gdb/printing.scm (gdb module): Update.
4655 (prepend-pretty-printer!, append-pretty-printer!): Update.
4656 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4657 (pretty_printer_list_var): Delete.
4658 (pretty_printer_list): New static global.
4659 (gdbscm_pretty_printers): New function.
4660 (gdbscm_set_pretty_printers_x): New function.
4661 (ppscm_find_pretty_printer_from_gdb): Update.
4662 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4663 (gdbscm_initialize_pretty_printers): Update.
4665 2014-07-26 Doug Evans <xdje42@gmail.com>
4668 * configure.ac: Add check for header gc/gc.h.
4669 Add check for function setenv.
4670 * configure: Regenerate.
4671 * config.in: Regenerate.
4672 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4674 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4676 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4677 variation in gdbarch matching.
4679 2014-07-25 Tom Tromey <tromey@redhat.com>
4681 * exec.c (using_exec_ops): Remove.
4682 (exec_close_1): Update. Remove extraneous block, reindent.
4683 (add_target_sections): Use target_is_pushed.
4685 2014-07-25 Pedro Alves <palves@redhat.com>
4687 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4688 * monitor.c (monitor_create_inferior): Likewise.
4689 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4690 * remote-sim.c (gdbsim_create_inferior): Likewise.
4691 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4692 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4693 * windows-nat.c (do_initial_windows_stuff): Likewise.
4695 2014-07-25 Pedro Alves <palves@redhat.com>
4697 * NEWS: Mention signal passing and "signal" command changes.
4698 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4700 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4702 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4703 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4704 (jump_command): Adjust clear_proceed_status call.
4705 (signal_command): Warn if other thread that are resumed have
4706 signals that will be delivered. Adjust clear_proceed_status call.
4707 (until_next_command, finish_command)
4708 (proceed_after_attach_callback, attach_command_post_wait)
4709 (attach_command): Adjust clear_proceed_status call.
4710 * infrun.c (proceed_after_vfork_done): Likewise.
4711 (proceed_after_attach_callback): Adjust comment.
4712 (clear_proceed_status_thread): Clear stop_signal if not in pass
4714 (clear_proceed_status_callback): Delete.
4715 (clear_proceed_status): New 'step' parameter. Only clear the
4716 proceed status of threads the command being prepared is about to
4718 (proceed): If passed in an explicit signal, override stop_signal
4719 with it. Don't pass the last stop signal to the thread we're
4721 (init_wait_for_inferior): Adjust clear_proceed_status call.
4722 (switch_back_to_stepped_thread): Clear the signal if it should not
4724 * infrun.h (clear_proceed_status): New 'step' parameter.
4725 (user_visible_resume_ptid): Add comment.
4726 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4727 signal is in pass state.
4728 * remote.c (append_pending_thread_resumptions): Likewise.
4729 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4731 2014-07-25 Tom Tromey <tromey@redhat.com>
4733 * target.h (target_stopped_data_address)
4734 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4737 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4739 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4741 (avr_pointer_to_address): Likewise.
4743 2014-07-24 Tom Tromey <tromey@redhat.com>
4745 * monitor.c (compile_pattern): Update.
4746 * target.h (struct target_ops) <to_shortname, to_longname,
4749 2014-07-24 Tom Tromey <tromey@redhat.com>
4751 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4752 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4753 (add_info_alias, add_com): Make "doc" const.
4754 (print_doc_line): Make "str" const.
4755 (delete_cmd): Update.
4756 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4757 (print_doc_line): Update.
4758 * cli/cli-script.c (document_command): Update.
4759 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4760 (add_com, add_info, add_info_alias): Update.
4761 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4762 * python/py-cmd.c (cmdpy_destroyer): Update.
4764 2014-07-24 Tom Tromey <tromey@redhat.com>
4766 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4767 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4768 (help_cmd_list): Constify.
4769 (lookup_cmd): Update.
4770 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4772 (help_cmd_list, apropos_cmd): Update.
4773 * cli/cli-script.c (show_user): Update.
4774 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4775 * cli/cli-setshow.h (cmd_show_list): Update.
4776 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4777 (cmd_show_list): Update.
4778 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4779 * python/py-cmd.c (cmdpy_destroyer): Update.
4781 2014-07-24 Tom Tromey <tromey@redhat.com>
4783 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4784 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4786 * command.h (deprecate_cmd): Update.
4787 * maint.c (maintenance_do_deprecate): Add casts.
4789 2014-07-24 Tom Tromey <tromey@redhat.com>
4791 * cli/cli-decode.c (help_cmd): Make parameter "const".
4792 * cli/cli-decode.h (help_cmd): Update.
4794 2014-07-24 Tom Tromey <tromey@redhat.com>
4796 * stack.c (up_silently_base, down_silently_base): Make argument
4799 2014-07-24 Tom Tromey <tromey@redhat.com>
4801 * solib.c (solib_add): Make "pattern" const.
4802 * solib.h (solib_add): Update.
4804 2014-07-24 Tom Tromey <tromey@redhat.com>
4806 * remote.c (remote_serial_open, print_packet, putpkt)
4807 (putpkt_binary): Constify.
4808 * remote.h (putpkt): Update.
4810 2014-07-24 Tom Tromey <tromey@redhat.com>
4812 * monitor.c (monitor_open): Make "args" const.
4813 * monitor.h (monitor_open): Update.
4815 2014-07-24 Tom Tromey <tromey@redhat.com>
4817 * maint.c (match_bfd_flags): Make "string" const.
4818 (print_bfd_section_info): Remove casts.
4819 (print_objfile_section_info): Make "string" const.
4821 2014-07-24 Tom Tromey <tromey@redhat.com>
4823 * inf-child.c (inf_child_open_target): Make "arg" const.
4824 * inf-child.h (inf_child_open_target): Update.
4826 2014-07-24 Tom Tromey <tromey@redhat.com>
4828 * environ.c (unset_in_environ): Make "var" const.
4829 * environ.h (unset_in_environ): Update.
4831 2014-07-24 Tom Tromey <tromey@redhat.com>
4833 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4835 (scan_filename_with_cleanup): Likewise.
4836 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4837 Make arguments const.
4838 (restore_command): Update.
4840 2014-07-24 Pedro Alves <palves@redhat.com>
4842 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4844 2014-07-24 Tom Tromey <tromey@redhat.com>
4845 Gary Benson <gbenson@redhat.com>
4847 * nat/linux-ptrace.c (additional_flags): New global.
4848 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4849 additional_flags; don't check GDBSERVER.
4850 (linux_ptrace_set_additional_flags): New function.
4851 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4853 * linux-nat.c (_initialize_linux_nat): Call
4854 linux_ptrace_set_additional_flags.
4856 2014-07-24 Tom Tromey <tromey@redhat.com>
4858 * make-target-delegates (munge_type, write_debugmethod): New
4860 (debug_names): New global.
4861 ($TARGET_DEBUG_PRINTER): New global.
4862 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4864 Write debug methods. Generate init_debug_target.
4865 * target-debug.h: New file.
4866 * target-delegates.c: Rebuild.
4867 * target.c: Include target-debug.h.
4868 (debug_target): Hoist definition.
4869 (target_kill, target_get_section_table, target_memory_map)
4870 (target_flash_erase, target_flash_done, target_detach)
4871 (target_disconnect, target_wait, target_resume)
4872 (target_pass_signals, target_program_signals, target_follow_fork)
4873 (target_mourn_inferior, target_search_memory)
4874 (target_thread_address_space, target_close)
4875 (target_find_new_threads, target_core_of_thread)
4876 (target_verify_memory, target_insert_mask_watchpoint)
4877 (target_remove_mask_watchpoint): Remove targetdebug code.
4878 (debug_to_post_attach, debug_to_prepare_to_store)
4879 (debug_to_files_info, debug_to_insert_breakpoint)
4880 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4881 (debug_to_region_ok_for_hw_watchpoint)
4882 (debug_to_can_accel_watchpoint_condition)
4883 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4884 (debug_to_watchpoint_addr_within_range)
4885 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4886 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4887 (debug_to_terminal_init, debug_to_terminal_inferior)
4888 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4889 (debug_to_terminal_save_ours, debug_to_terminal_info)
4890 (debug_to_load, debug_to_post_startup_inferior)
4891 (debug_to_insert_fork_catchpoint)
4892 (debug_to_remove_fork_catchpoint)
4893 (debug_to_insert_vfork_catchpoint)
4894 (debug_to_remove_vfork_catchpoint)
4895 (debug_to_insert_exec_catchpoint)
4896 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4897 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4898 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4899 (setup_target_debug): Call init_debug_target.
4900 * target.h (TARGET_DEBUG_PRINTER): New macro.
4901 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4902 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4904 2014-07-24 Gary Benson <gbenson@redhat.com>
4906 * exceptions.h (throw_vfatal): Renamed to...
4907 (throw_vquit): New declaration.
4908 (throw_quit): Likewise.
4909 * exceptions.c (throw_vfatal): Renamed to...
4910 (throw_vquit): New function.
4911 (throw_quit): Likewise.
4912 (throw_error): Call throw_verror rather than throw_it.
4913 * utils.h (vfatal): Removed.
4915 * utils.c (vfatal): Removed.
4917 (internal_verror): Replaced call to fatal with call to throw_quit.
4918 (quit): Replaced calls to fatal with calls to throw_quit.
4920 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4922 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4925 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4927 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4928 less than zero in conditional expression.
4930 2014-07-23 Tom Tromey <tromey@redhat.com>
4932 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4933 ($INTRO_PART): Don't match whitespace.
4934 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4936 ($METHOD): Add $METHOD_TRAILER.
4938 (scan_target_h): New sub.
4939 Change main loop not to collect state.
4940 * target-delegates.c: Rebuild.
4942 2014-07-23 Gary Benson <gbenson@redhat.com>
4944 * cp-support.c (gdb_demangle): Fix build on systems without
4947 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4949 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4950 for reference entry value target data value.
4952 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4954 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4955 value_available_contents_eq.
4957 2014-07-22 Pedro Alves <palves@redhat.com>
4959 * value.c (allocate_optimized_out_value): Don't mark value as
4962 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4964 * MAINTAINERS (Write After Approval): Update my email address.
4966 2014-07-20 Doug Evans <dje@google.com>
4969 * remote.c (putpkt_binary): Add text to error message.
4971 2014-07-20 Yao Qi <yao@codesourcery.com>
4973 * eval.c: Remove "Chill" from comments.
4974 * gdbtypes.h: Likewise.
4975 * symtab.h: Likewise.
4977 2014-07-20 Yao Qi <yao@codesourcery.com>
4979 * std-operator.def: Update comments to TERNOP_SLICE.
4981 2014-07-20 Yao Qi <yao@codesourcery.com>
4983 * std-operator.def: Remove BINOP_RANGE.
4984 * breakpoint.c (watchpoint_exp_is_const): Update.
4985 * expprint.c (dump_subexp_body_standard): Likewise.
4986 * eval.c (init_array_element): Remove dead code.
4987 (evaluate_subexp_standard): Likewise.
4989 2014-07-20 Yao Qi <yao@codesourcery.com>
4991 * std-operator.def: Remove BINOP_IN.
4992 * breakpoint.c (watchpoint_exp_is_const): Update.
4993 * eval.c (evaluate_subexp_standard): Likewise.
4994 * expprint.c (dump_subexp_body_standard): Likewise.
4996 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4998 * microblaze-tdep.c (microblaze_register_names): Add
4999 the rshr and rslr register names.
5000 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5001 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5002 Use of tdesc_numbered_register. Use of
5003 microblaze_register_g_packet_guesses. Use of
5004 tdesc_use_registers. Use of set_gdbarch_register_type.
5005 (microblaze_register_g_packet_guesses): New.
5006 * microblaze-tdep.h (microblaze_reg_num): Add
5007 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5008 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5009 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5010 * features/microblaze-core.xml: New file.
5011 * features/microblaze-stack-protect.xml: New file.
5012 * features/microblaze-with-stack-protect.c: New file.
5013 * features/microblaze-with-stack-protect.xml: New file.
5014 * features/microblaze.xml: New file.
5015 * features/microblaze.c: New file.
5016 * features/Makefile (microblaze-with-stack-protect): Add
5017 microblaze-with-stack-protect microblaze and microblaze-expedite.
5018 * regformats/microblaze-with-stack-protect.dat: New file.
5019 * regformats/microblaze.dat: New file.
5020 * doc/gdb.texinfo (MicroBlaze Features): Added.
5022 2014-07-18 Tom Tromey <tromey@redhat.com>
5024 * exec.c (exec_ops): Now static.
5025 * exec.h (exec_ops): Don't declare.
5027 2014-07-18 Tom Tromey <tromey@redhat.com>
5029 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5030 to find_target_beneath.
5031 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5032 find_target_beneath.
5033 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5035 2014-07-18 Tom Tromey <tromey@redhat.com>
5038 * utils.c (quit): Use target_supports_terminal_ours.
5039 * target.h (target_supports_terminal_ours): Declare.
5040 * target.c (target_supports_delete_record): Don't check
5041 to_delete_record against NULL.
5042 (target_supports_terminal_ours): New function.
5044 2014-07-18 Tom Tromey <tromey@redhat.com>
5047 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5048 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5049 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5050 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5051 * windows-nat.c (windows_xfer_partial): Always delegate.
5052 * record-btrace.c (record_btrace_xfer_partial): Simplify
5054 (record_btrace_fetch_registers, record_btrace_store_registers)
5055 (record_btrace_prepare_to_store, record_btrace_resume)
5056 (record_btrace_wait, record_btrace_find_new_threads)
5057 (record_btrace_thread_alive): Likewise.
5058 * procfs.c (procfs_xfer_partial): Always delegate.
5059 * corelow.c (core_xfer_partial): Always delegate.
5060 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5062 2014-07-18 Tom Tromey <tromey@redhat.com>
5064 * exec.c (exec_make_note_section): Move earlier.
5066 2014-07-17 Doug Evans <dje@google.com>
5069 * maint.c (count_symtabs_and_blocks): Handle NULL
5070 current_program_space.
5071 (report_command_stats): Check global enabled flag in addition to
5072 recorded enabled flag.
5073 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5075 2014-07-16 Pedro Alves <palves@redhat.com>
5077 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5079 2014-07-16 Tom Tromey <tromey@redhat.com>
5081 * target.h (struct target_ops) <to_delete_record>: Reformat
5084 2014-07-16 Tom Tromey <tromey@redhat.com>
5086 * target-delegates.c: Rebuild.
5088 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5090 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5091 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5092 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5093 (avr_pointer_to_address): Likewise.
5094 (avr_address_class_type_flags): New function.
5095 (avr_address_class_type_flags_to_name): Likewise.
5096 (avr_address_class_name_to_type_flags): Likewise.
5097 (avr_gdbarch_init): Set address_class_type_flags,
5098 address_class_type_flags_to_name and
5099 address_class_name_to_type_flags.
5101 2014-07-15 Pedro Alves <palves@redhat.com>
5103 * linux-nat.c (kill_callback): Save errno and work with saved
5106 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5108 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5110 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5112 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5113 breakpoint support correctly.
5115 2014-07-14 Pedro Alves <palves@redhat.com>
5117 * utils.c (prompt_for_continue): Call target_terminal_ours.
5119 2014-07-14 Pedro Alves <palves@redhat.com>
5121 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5122 catch_errors. Don't re-enable stdin or notify observers where,
5124 (fetch_inferior_event_wrapper): Delete.
5126 2014-07-14 Pedro Alves <palves@redhat.com>
5129 * top.c: Include "inf-loop.h".
5130 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5132 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5134 (gdb_readline_wrapper): Store whether the target is async, and
5137 2014-07-14 Pedro Alves <palves@redhat.com>
5140 * top.c (gdb_readline_wrapper_line): Tweak comment.
5141 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5142 the input handler callback.
5144 2014-07-14 Pedro Alves <palves@redhat.com>
5147 * main.c: Include event-top.h.
5148 (handle_command_errors): New function.
5149 (catch_command_errors, catch_command_errors_const): Use it.
5151 2014-07-14 Pedro Alves <palves@redhat.com>
5153 * exceptions.c (catch_command_errors, catch_command_errors_const):
5155 * exceptions.h (catch_command_errors_ftype)
5156 (catch_command_errors_const_ftype): Moved to main.c.
5157 (catch_command_errors, catch_command_errors_const): Delete
5159 * main.c (catch_command_errors_ftype)
5160 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5161 (catch_command_errors, catch_command_errors_const)): Moved here
5162 from exceptions.c and make static.
5164 2014-07-14 Pedro Alves <palves@redhat.com>
5166 * exceptions.c (print_any_exception): Delete.
5167 (catch_exceptions_with_msg): Use exception_print instead of
5168 print_any_exception.
5169 (catch_errors): Use exception_fprintf instead of
5170 print_any_exception.
5171 (catch_command_errors, catch_command_errors_const): Use
5172 exception_print instead of print_any_exception.
5174 2014-07-14 Pedro Alves <palves@redhat.com>
5176 * infcall.c (run_inferior_call): Set 'sync_execution' while
5177 running the inferior call.
5179 2014-07-14 Pedro Alves <palves@redhat.com>
5181 * value.c (value_contents_equal): Delete function.
5182 * value.h (value_contents_equal): Delete declaration.
5184 2014-07-14 Tom Tromey <tromey@redhat.com>
5187 * gdbtypes.c (is_dynamic_type_internal): New function, from
5189 (is_dynamic_type): Rewrite.
5190 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5191 (resolve_dynamic_struct): Likewise.
5192 (resolve_dynamic_type_internal): New function, from
5193 resolve_dynamic_type.
5194 (resolve_dynamic_type): Rewrite.
5196 2014-07-14 Tom Tromey <tromey@redhat.com>
5198 * target.c (target_require_runnable): Also check record_stratum.
5201 2014-07-11 Yao Qi <yao@codesourcery.com>
5203 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5204 thumb_instruction_restores_sp return true.
5206 2014-07-11 Yao Qi <yao@codesourcery.com>
5208 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5209 (thumb_in_function_epilogue_p): Call
5210 thumb_instruction_restores_sp.
5212 2014-07-11 Yao Qi <yao@codesourcery.com>
5214 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5216 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5218 2014-07-11 Gary Benson <gbenson@redhat.com>
5220 * amd64-linux-nat.c (gdbcore.h): Remove include.
5221 (regset.h): Likewise.
5222 (nat/linux-btrace.h): Likewise.
5223 (btrace.h): Likewise.
5224 (gdb_assert.h): Likewise.
5225 (string.h): Likewise.
5226 (sys/uio.h): Likewise.
5227 (sys/debugreg.h): Likewise.
5228 (sys/syscall.h): Likewise.
5229 (sys/procfs.h): Likewise.
5230 (sys/user.h): Likewise.
5231 (asm/ptrace.h): Likewise.
5232 (i386-nat.h): Likewise.
5233 * i386-linux-nat.c (i386-nat.h): Likewise.
5234 (regset.h): Likewise.
5235 (target.h): Likewise.
5236 (linux-nat.h): Likewise.
5237 (nat/linux-btrace.h): Likewise.
5238 (btrace.h): Likewise.
5239 (gdb_assert.h): Likewise.
5240 (string.h): Likewise.
5241 (sys/uio.h): Likewise.
5242 (sys/user.h): Likewise.
5243 (sys/procfs.h): Likewise.
5244 (sys/reg.h): Likewise.
5245 (sys/debugreg.h): Likewise.
5246 (ORIG_EAX): Remove definition.
5248 2014-07-11 Gary Benson <gbenson@redhat.com>
5250 * i386-linux-nat.h: New file.
5251 * x86-linux-nat.h: Likewise.
5252 * x86-linux-nat.c: Likewise.
5253 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5254 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5255 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5256 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5257 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5258 (PTRACE_SETREGSET): Likewise.
5259 (arch_lwp_info): Now in x86-linux-nat.c.
5260 (have_ptrace_getregset): Now in x86-linux-nat.h.
5261 (x86_linux_dr_get): Now in x86-linux-nat.c.
5262 (x86_linux_dr_set): Likewise.
5263 (x86_linux_dr_get_addr): Likewise.
5264 (x86_linux_dr_get_control): Likewise.
5265 (x86_linux_dr_get_status): Likewise.
5266 (update_debug_registers_callback): Likewise.
5267 (x86_linux_dr_set_control): Likewise.
5268 (x86_linux_dr_set_addr): Likewise.
5269 (x86_linux_prepare_to_resume): Likewise.
5270 (x86_linux_new_thread): Likewise.
5271 (x86_linux_new_fork): Likewise.
5272 (x86_linux_get_thread_area): Likewise.
5273 (super_post_startup_inferior): Likewise.
5274 (x86_linux_child_post_startup_inferior): Likewise.
5275 (AMD64_LINUX_USER64_CS): Likewise.
5276 (AMD64_LINUX_X32_DS): Likewise.
5277 (x86_linux_read_description): Likewise.
5278 (x86_linux_enable_btrace): Likewise.
5279 (x86_linux_disable_btrace): Likewise.
5280 (x86_linux_teardown_btrace): Likewise.
5281 (x86_linux_read_btrace): Likewise.
5282 (x86_linux_create_target): Likewise.
5283 (x86_linux_add_target): Likewise.
5284 * i386-linux-nat.c (x86-linux-nat.h): New include.
5285 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5286 (PTRACE_SETREGSET): Likewise.
5287 (arch_lwp_info): Now in x86-linux-nat.c.
5288 (have_ptrace_getregset): Now in x86-linux-nat.h.
5289 (x86_linux_dr_get): Now in x86-linux-nat.c.
5290 (x86_linux_dr_set): Likewise.
5291 (x86_linux_dr_get_addr): Likewise.
5292 (x86_linux_dr_get_control): Likewise.
5293 (x86_linux_dr_get_status): Likewise.
5294 (update_debug_registers_callback): Likewise.
5295 (x86_linux_dr_set_control): Likewise.
5296 (x86_linux_dr_set_addr): Likewise.
5297 (x86_linux_prepare_to_resume): Likewise.
5298 (x86_linux_new_thread): Likewise.
5299 (x86_linux_new_fork): Likewise.
5300 (x86_linux_get_thread_area): Likewise.
5301 (super_post_startup_inferior): Likewise.
5302 (x86_linux_child_post_startup_inferior): Likewise.
5303 (AMD64_LINUX_USER64_CS): Likewise.
5304 (AMD64_LINUX_X32_DS): Likewise.
5305 (x86_linux_read_description): Likewise.
5306 (x86_linux_enable_btrace): Likewise.
5307 (x86_linux_disable_btrace): Likewise.
5308 (x86_linux_teardown_btrace): Likewise.
5309 (x86_linux_read_btrace): Likewise.
5310 (x86_linux_create_target): Likewise.
5311 (x86_linux_add_target): Likewise.
5313 2014-07-11 Gary Benson <gbenson@redhat.com>
5315 * amd64-linux-nat.c: Comment and whitespace changes.
5316 * i386-linux-nat.c: Comment and whitespace changes.
5318 2014-07-11 Gary Benson <gbenson@redhat.com>
5320 * amd64-linux-nat.c (x86_linux_create_target): New function.
5321 (x86_linux_add_target): Likewise.
5322 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5323 * i386-linux-nat.c (x86_linux_create_target): New function.
5324 (x86_linux_add_target): Likewise.
5325 (_initialize_i386_linux_nat): Delegate to the above new functions.
5327 2014-07-11 Gary Benson <gbenson@redhat.com>
5329 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5330 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5331 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5332 (ps_get_thread_area): Delegate to the above.
5334 2014-07-11 Gary Benson <gbenson@redhat.com>
5336 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5337 x86_linux_read_description. All uses updated. amd64-specific
5338 code conditionalized. Conditionalized i386-specific code added.
5339 Redundant cast removed.
5340 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5341 x86_linux_read_description. All uses updated. i386-specific
5342 code conditionalized. Conditionalized amd64-specific code added.
5343 One sizeof replaced with the actual type it is describing.
5345 2014-07-11 Gary Benson <gbenson@redhat.com>
5347 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5348 x86_linux_dr_get. All uses updated.
5349 (amd64_linux_dr_set): Renamed to
5350 x86_linux_dr_set. All uses updated.
5351 (amd64_linux_dr_get_addr): Renamed to
5352 x86_linux_dr_get_addr. All uses updated.
5353 (amd64_linux_dr_get_control): Renamed to
5354 x86_linux_dr_get_control. All uses updated.
5355 (amd64_linux_dr_get_status): Renamed to
5356 x86_linux_dr_get_status. All uses updated.
5357 (amd64_linux_dr_set_control): Renamed to
5358 x86_linux_dr_set_control. All uses updated.
5359 (amd64_linux_dr_set_addr): Renamed to
5360 x86_linux_dr_set_addr. All uses updated.
5361 (amd64_linux_prepare_to_resume): Renamed to
5362 x86_linux_prepare_to_resume. All uses updated.
5363 (amd64_linux_new_thread): Renamed to
5364 x86_linux_new_thread. All uses updated.
5365 (amd64_linux_new_fork): Renamed to
5366 x86_linux_new_fork. All uses updated.
5367 (amd64_linux_child_post_startup_inferior): Renamed to
5368 x86_linux_child_post_startup_inferior. All uses updated.
5369 (amd64_linux_enable_btrace): Renamed to
5370 x86_linux_enable_btrace. All uses updated.
5371 (amd64_linux_disable_btrace): Renamed to
5372 x86_linux_disable_btrace. All uses updated.
5373 (amd64_linux_teardown_btrace): Renamed to
5374 x86_linux_teardown_btrace. All uses updated.
5375 (amd64_linux_read_btrace): Renamed to
5376 x86_linux_read_btrace. All uses updated.
5377 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5378 x86_linux_dr_get. All uses updated.
5379 (i386_linux_dr_set): Renamed to
5380 x86_linux_dr_set. All uses updated.
5381 (i386_linux_dr_get_addr): Renamed to
5382 x86_linux_dr_get_addr. All uses updated.
5383 (i386_linux_dr_get_control): Renamed to
5384 x86_linux_dr_get_control. All uses updated.
5385 (i386_linux_dr_get_status): Renamed to
5386 x86_linux_dr_get_status. All uses updated.
5387 (i386_linux_dr_set_control): Renamed to
5388 x86_linux_dr_set_control. All uses updated.
5389 (i386_linux_dr_set_addr): Renamed to
5390 x86_linux_dr_set_addr. All uses updated.
5391 (i386_linux_prepare_to_resume): Renamed to
5392 x86_linux_prepare_to_resume. All uses updated.
5393 (i386_linux_new_thread): Renamed to
5394 x86_linux_new_thread. All uses updated.
5395 (i386_linux_new_fork): Renamed to
5396 x86_linux_new_fork. All uses updated.
5397 (i386_linux_child_post_startup_inferior): Renamed to
5398 x86_linux_child_post_startup_inferior. All uses updated.
5399 (i386_linux_enable_btrace): Renamed to
5400 x86_linux_enable_btrace. All uses updated.
5401 (i386_linux_disable_btrace): Renamed to
5402 x86_linux_disable_btrace. All uses updated.
5403 (i386_linux_teardown_btrace): Renamed to
5404 x86_linux_teardown_btrace. All uses updated.
5405 (i386_linux_read_btrace): Renamed to
5406 x86_linux_read_btrace. All uses updated.
5408 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5410 * remote.c (extended_remote_post_attach): New function.
5411 (init_extended_remote_ops): Install it as to_post_attach method.
5413 2014-07-09 Pedro Alves <palves@redhat.com>
5415 * infcmd.c (attach_command_post_wait): Don't call
5416 target_terminal_inferior here.
5417 (attach_command): Call it here instead.
5419 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5421 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5423 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5424 from varobj.c, with additional checks.
5425 (c_varobj_ops): Fill in is_path_expr_parent field.
5426 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5427 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5429 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5431 (varobj_default_is_path_expr_parent): New function.
5432 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5433 (varobj_default_is_path_expr_parent): Declare new function.
5435 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5437 * infcmd.c (finish_backward): Turn internal error into normal error.
5439 2014-07-07 Pedro Alves <palves@redhat.com>
5442 * remote.c (async_handle_remote_sigint)
5443 (async_handle_remote_sigint_twice): Call
5444 gdb_call_async_signal_handler instead of
5445 mark_async_signal_handler.
5447 2014-07-07 Tom Tromey <tromey@redhat.com>
5449 * target-delegates.c: Rebuild.
5450 * target.c (target_info_record): Remove.
5451 * record.c (info_record_command): Unconditionally call
5453 * target.h (struct target_ops) <to_info_record>: Use
5454 TARGET_DEFAULT_IGNORE.
5455 (target_info_record): Remove.
5457 2014-07-07 Tom Tromey <tromey@redhat.com>
5459 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5460 TARGET_DEFAULT_NORETURN.
5461 * target.c (generic_tls_error): New function.
5462 (target_translate_tls_address): Don't search target stack.
5463 * target-delegates.c: Rebuild.
5464 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5466 * linux-thread-db.c (thread_db_get_thread_local_address):
5467 Unconditionally call beneath target.
5469 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5471 * cli/cli-logging.c (pop_output_files): Assign targerr to
5474 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5476 * MAINTAINERS (Write After Approval): Update my email address.
5478 2014-07-02 Gary Benson <gbenson@redhat.com>
5480 * proc-service.c (ps_xfer_memory): Update comment.
5481 (ps_pstop): Remove unused function.
5482 (ps_pcontinue): Likewise.
5483 (ps_lstop): Likewise.
5484 (ps_lcontinue): Likewise.
5485 (ps_lgetxregsize): Likewise.
5486 (ps_lgetxregs): Likewise.
5487 (ps_lsetxregs): Likewise.
5488 (ps_plog): Likewise.
5489 (ps_ptread): Likewise.
5490 (ps_ptwrite): Likewise.
5492 2014-07-01 Mark Wielaard <mjw@redhat.com>
5494 * dwarf2read.c (add_array_cv_type): New function.
5495 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5496 (read_tag_volatile_type): Likewise.
5498 2014-07-01 Tom Tromey <tromey@redhat.com>
5500 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5501 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5502 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5503 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5504 * command.h (cmd_cfunc_ftype): Move earlier.
5505 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5506 (add_com, add_info): Use cmd_cfunc_ftype.
5508 2014-06-30 Tom Tromey <tromey@redhat.com>
5510 * symtab.c (operator_chars): Make parameters and return type
5512 (file_matches): Make "files" const.
5513 (struct search_symbols_data) <files>: Now const.
5514 (search_symbols): Make "regexp" and "files" parameters const.
5516 (symtab_symbol_info): Remove cast.
5517 (rbreak_command): Update.
5518 * symtab.h (search_symbols): Update.
5520 2014-06-27 Yao Qi <yao@codesourcery.com>
5522 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5523 Change parameter type to 'struct thread_info *'. Caller
5525 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5527 * dummy-frame.c (struct dummy_frame_id): New.
5528 (dummy_frame_id_eq): New function.
5529 (struct dummy_frame) <id>: Change its type to 'struct
5531 (dummy_frame_push): Add parameter ptid and save it in
5533 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5535 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5537 (lookup_dummy_frame): Change parameter type to 'struct
5538 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5539 instead of frame_id_eq.
5540 (dummy_frame_pop): Add parameter ptid. Callers updated.
5541 Update comments. Compose dummy_frame_id and pass it to
5543 (dummy_frame_discard): Add parameter ptid.
5544 (dummy_frame_sniffer): Compose dummy_frame_id and call
5545 dummy_frame_id_eq instead of frame_id_eq.
5546 (fprint_dummy_frames): Print ptid.
5547 * dummy-frame.h: Remove comments.
5548 (dummy_frame_push): Add ptid in declaration.
5549 (dummy_frame_pop, dummy_frame_discard): Likewise.
5551 2014-06-26 Tom Tromey <tromey@redhat.com>
5553 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5554 * command.h (error_no_arg): Update.
5556 2014-06-26 Tom Tromey <tromey@redhat.com>
5558 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5559 (do_show_command): Make "arg" const.
5560 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5562 2014-06-26 Tom Tromey <tromey@redhat.com>
5564 * record-full.c (record_full_get_bookmark): Make "args" const.
5565 (record_full_goto_bookmark): Make "raw_bookmark" const.
5566 * record.c (record_goto): New function.
5567 (cmd_record_goto): Use it. Now static.
5568 * record.h (record_goto): Declare.
5569 (cmd_record_goto): Remove declaration.
5570 * target-delegates.c: Rebuild.
5571 * target.h (struct target_ops) <to_get_bookmark,
5572 to_goto_bookmark>: Make parameter const.
5574 2014-06-26 Tom Tromey <tromey@redhat.com>
5576 * defs.h (generic_load): Update.
5577 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5578 * monitor.c (monitor_load): Make "args" const.
5579 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5580 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5582 (mips_load): Make "file" const.
5583 * remote-sim.c (gdbsim_load): Make "args" const.
5584 * remote.c (remote_load): Make "name" const.
5585 * symfile.c (generic_load): Make "args" const.
5586 * target-delegates.c: Rebuild.
5587 * target.c (target_load): Make "arg" const.
5588 (debug_to_load): Make "args" const.
5589 * target.h (struct target_ops) <to_load>: Make parameter const.
5590 (target_load): Update.
5592 2014-06-26 Tom Tromey <tromey@redhat.com>
5595 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5596 (dwarf2_physname, read_partial_die)
5597 (guess_partial_die_structure_name, fixup_partial_die)
5598 (guess_full_die_structure_name, anonymous_struct_prefix)
5599 (dwarf2_name): Use per-BFD obstack.
5601 2014-06-26 Yao Qi <yao@codesourcery.com>
5603 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5604 dummyframe and this_id into inner block below.
5606 2014-06-26 Yao Qi <yao@codesourcery.com>
5608 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5609 with "signal_pass[0]" in the initialization of signal_pass.
5611 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5613 * record-btrace.c (record_btrace_generating_corefile)
5614 (record_btrace_prepare_to_generate_core)
5615 (record_btrace_done_generating_core): New.
5616 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5617 (record_btrace_store_registers, record_btrace_prepare_to_store):
5618 Forward request when generating a core file.
5619 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5620 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5621 to_done_generating_core.
5623 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5625 * target.h (target_ops) <to_prepare_to_generate_core>
5626 <to_done_generating_core>: New.
5627 (target_prepare_to_generate_core, target_done_generating_core): New.
5628 * target.c (target_prepare_to_generate_core)
5629 (target_done_generating_core): New.
5630 * target-delegates.c: Regenerate.
5631 * gcore.c: (write_gcore_file): Rename to ...
5632 (write_gcore_file_1): ...this.
5633 (write_gcore_file): Call target_prepare_to_generate_core
5634 and target_done_generating_core.
5636 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5638 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5639 * gcore.c (write_gcore_file): Free memory returned from
5640 make_corefile_notes.
5641 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5642 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5644 2014-06-24 Yao Qi <yao@codesourcery.com>
5646 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5647 (arm_linux_init_abi): Set skip_trampoline_code with
5648 gdbarch_skip_trampoline_code instead of
5649 find_solib_trampoline_target.
5651 2014-06-24 Yao Qi <yao@codesourcery.com>
5653 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5654 arm_skip_bx_reg returns non-zero.
5656 2014-06-24 Yao Qi <yao@codesourcery.com>
5658 * arm-tdep.c (arm_skip_bx_reg): New function.
5659 (arm_skip_stub): Call arm_skip_bx_reg.
5661 2014-06-23 Don Breazeal <donb@codesourcery.com>
5663 * MAINTAINERS: Add myself as write-after-approval maintainer.
5665 2014-06-23 Pedro Alves <palves@redhat.com>
5667 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5668 DR_CONTROL before setting DR0..DR3.
5669 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5670 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5671 bits of DR_CONTROL related to the debug register slot being
5672 disabled. If all slots are vacant, clear local slowdown as well,
5673 and assert DR_CONTROL is 0.
5675 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5677 * python/lib/gdb/command/xmethods.py
5678 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5679 current progspace only if the string "progspace" matches LOCUS_RE.
5681 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5683 Fix --with-system-readline with readline-6.3 patch 5.
5684 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5685 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5688 2014-06-20 Tom Tromey <tromey@redhat.com>
5690 * dwarf2read.c (dw2_get_real_path): Use correct type in
5692 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5694 2014-06-20 Gary Benson <gbenson@redhat.com>
5696 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5697 * common/glibc_thread_db.h: Likewise.
5698 * common/i386-cpuid.h: Likewise.
5699 * common/i386-gcc-cpuid.h: Likewise.
5700 * common/linux-btrace.h: Likewise.
5701 * common/linux-osdata.h: Likewise.
5702 * common/linux-procfs.h: Likewise.
5703 * common/linux-ptrace.h: Likewise.
5704 * common/mips-linux-watch.h: Likewise.
5705 * common/linux-btrace.c: Moved to nat.
5706 * common/linux-osdata.c: Likewise.
5707 * common/linux-procfs.c: Likewise.
5708 * common/linux-ptrace.c: Likewise.
5709 * common/mips-linux-watch.c: Likewise.
5710 * nat/gdb_thread_db.h: Moved from common.
5711 * nat/glibc_thread_db.h: Likewise.
5712 * nat/i386-cpuid.h: Likewise.
5713 * nat/i386-gcc-cpuid.h: Likewise.
5714 * nat/linux-btrace.c: Likewise.
5715 * nat/linux-btrace.h: Likewise.
5716 * nat/linux-osdata.c: Likewise.
5717 * nat/linux-osdata.h: Likewise.
5718 * nat/linux-procfs.c: Likewise.
5719 * nat/linux-procfs.h: Likewise.
5720 * nat/linux-ptrace.c: Likewise.
5721 * nat/linux-ptrace.h: Likewise.
5722 * nat/mips-linux-watch.c: Likewise.
5723 * nat/mips-linux-watch.h: Likewise.
5724 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5725 (object file files): Reordered.
5726 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5727 of glibc_thread_db.h.
5729 2014-06-20 Gary Benson <gbenson@redhat.com>
5731 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5732 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5733 (i386_dr_low): Likewise.
5734 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5735 (i386_dr_low_set_addr): Likewise.
5736 (i386_dr_low_get_addr): Likewise.
5737 (i386_dr_low_can_set_control): Likewise.
5738 (i386_dr_low_set_control): Likewise.
5739 (i386_dr_low_get_control): Likewise.
5740 (i386_dr_low_get_status): Likewise.
5741 (i386_get_debug_register_length): Likewise.
5742 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5743 (i386_dr_low): Likewise.
5744 * nat/i386-dregs.c (i386-low.h): Remove include.
5745 (i386-nat.h): Likewise.
5746 (nat/i386-dregs.h): New include.
5747 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5748 (i386_dr_low_set_addr): Likewise.
5749 (i386_dr_low_get_addr): Likewise.
5750 (i386_dr_low_can_set_control): Likewise.
5751 (i386_dr_low_set_control): Likewise.
5752 (i386_dr_low_get_control): Likewise.
5753 (i386_dr_low_get_status): Likewise.
5754 (i386_get_debug_register_length): Likewise.
5755 (debug_hw_points): Likewise.
5757 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5759 * Makefile.in (SFILES): Add d-exp.y.
5760 (YYFILES): Add d-exp.c.
5761 (YYOBJ): Add d-exp.o.
5762 (local-maintainer-clean): Delete d-exp.c.
5763 * d-exp.y: New file.
5764 * d-lang.h (d_parse): New declaration.
5765 (d_error): New declaration.
5766 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5767 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5768 PREC_ORDER operators.
5769 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5771 2014-06-19 Yao Qi <yao@codesourcery.com>
5773 * gdbthread.h (any_running): Remove the declaration.
5774 * thread.c (any_running): Remove.
5776 2014-06-19 Yao Qi <yao@codesourcery.com>
5778 * gdbthread.h (struct thread_info) <state>: Change its type to
5779 'enum thread_state'. Update comments.
5781 2014-06-19 Pedro Alves <palves@redhat.com>
5783 * gdbthread.h (ALL_THREADS): Delete.
5784 (ALL_NON_EXITED_THREADS): New macro.
5785 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5786 instead of ALL_THREADS.
5787 * infrun.c (find_thread_needs_step_over)
5788 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5789 instead of ALL_THREADS.
5790 * record-btrace.c (record_btrace_open)
5791 (record_btrace_stop_recording, record_btrace_close)
5792 (record_btrace_is_replaying, record_btrace_resume)
5793 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5794 * remote.c (append_pending_thread_resumptions): Likewise.
5795 * thread.c (thread_apply_all_command): Likewise.
5797 2014-06-19 Gary Benson <gbenson@redhat.com>
5799 * i386-nat.c (i386_stopped_by_watchpoint):
5800 Use i386_dr_stopped_by_watchpoint.
5801 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5802 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5804 2014-06-19 Gary Benson <gbenson@redhat.com>
5806 * nat/i386-dregs.c: New file.
5807 * Makefile.in (i386-dregs.o): New rule.
5808 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5809 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5810 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5811 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5812 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5813 * config/i386/go32.mh (NATDEPFILES): Likewise.
5814 * config/i386/linux.mh (NATDEPFILES): Likewise.
5815 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5816 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5817 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5818 * i386-nat.h (debug_hw_points): New declaration.
5819 * i386-nat.c (breakpoint.h): Remove include.
5820 (command.h): Likewise.
5821 (target.h): Likewise.
5822 (gdb_assert.h): Likewise.
5823 (debug_hw_points): Made nonstatic.
5824 (debug_printf): Now in i386-dregs.c.
5825 (TARGET_HAS_DR_LEN_8): Likewise.
5826 (DR_CONTROL_SHIFT): Likewise.
5827 (DR_CONTROL_SIZE): Likewise.
5828 (DR_RW_EXECUTE): Likewise.
5829 (DR_RW_WRITE): Likewise.
5830 (DR_RW_READ): Likewise.
5831 (DR_RW_IORW): Likewise.
5832 (DR_LEN_1): Likewise.
5833 (DR_LEN_2): Likewise.
5834 (DR_LEN_4): Likewise.
5835 (DR_LEN_8): Likewise.
5836 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5837 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5838 (DR_ENABLE_SIZE): Likewise.
5839 (DR_LOCAL_SLOWDOWN): Likewise.
5840 (DR_GLOBAL_SLOWDOWN): Likewise.
5841 (DR_CONTROL_RESERVED): Likewise.
5842 (I386_DR_CONTROL_MASK): Likewise.
5843 (I386_DR_VACANT): Likewise.
5844 (I386_DR_LOCAL_ENABLE): Likewise.
5845 (I386_DR_GLOBAL_ENABLE): Likewise.
5846 (I386_DR_DISABLE): Likewise.
5847 (I386_DR_SET_RW_LEN): Likewise.
5848 (I386_DR_GET_RW_LEN): Likewise.
5849 (I386_DR_WATCH_HIT): Likewise.
5850 (i386_wp_op_t): Likewise.
5851 (i386_show_dr): Likewise.
5852 (i386_length_and_rw_bits): Likewise.
5853 (i386_insert_aligned_watchpoint): Likewise.
5854 (i386_remove_aligned_watchpoint): Likewise.
5855 (i386_handle_nonaligned_watchpoint): Likewise.
5856 (i386_update_inferior_debug_regs): Likewise.
5857 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5858 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5859 (i386_region_ok_for_watchpoint):
5860 Use i386_dr_region_ok_for_watchpoint.
5861 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5863 2014-06-19 Gary Benson <gbenson@redhat.com>
5865 * i386-nat.c (i386_insert_hw_breakpoint): Use
5866 i386_insert_watchpoint.
5867 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5869 2014-06-19 Gary Benson <gbenson@redhat.com>
5871 * i386-nat.c (i386_dr_show): Renamed to
5872 i386_show_dr and made static. All uses updated.
5873 (i386_dr_length_and_rw_bits): Renamed to
5874 i386_length_and_rw_bits and made static.
5876 (i386_dr_insert_aligned_watchpoint): Renamed to
5877 i386_insert_aligned_watchpoint and made static.
5879 (i386_dr_remove_aligned_watchpoint): Renamed to
5880 i386_remove_aligned_watchpoint and made static.
5882 (i386_dr_update_inferior_debug_regs): Renamed to
5883 i386_update_inferior_debug_regs and made static.
5885 * nat/i386-dregs.h (i386_dr_show): Removed.
5886 (i386_dr_length_and_rw_bits): Likewise.
5887 (i386_dr_insert_aligned_watchpoint): Likewise.
5888 (i386_dr_remove_aligned_watchpoint): Likewise.
5889 (i386_dr_update_inferior_debug_regs): Likewise.
5891 2014-06-19 Gary Benson <gbenson@redhat.com>
5893 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5894 * configure: Regenerate.
5895 * config.in: Likewise.
5896 * main.c (signal.h): New include.
5897 (setup_alternate_signal_stack): New function.
5898 (captured_main): Call the above.
5899 * cp-support.c (signal.h): New include.
5900 (catch_demangler_crashes): New flag.
5901 (SIGJMP_BUF): New define.
5902 (SIGSETJMP): Likewise.
5903 (SIGLONGJMP): Likewise.
5904 (gdb_demangle_jmp_buf): New static global.
5905 (gdb_demangle_attempt_core_dump): Likewise.
5906 (gdb_demangle_signal_handler): New function.
5907 (gdb_demangle): If catch_demangler_crashes is set, install the
5908 above signal handler before calling bfd_demangle, and restore
5909 the original signal handler afterwards. Display the offending
5910 symbol and call demangler_warning the first time a segmentation
5912 (_initialize_cp_support): New maint set/show command.
5914 2014-06-19 Gary Benson <gbenson@redhat.com>
5916 * utils.h (resource_limit_kind): New enum.
5917 (can_dump_core): New declaration.
5918 (warn_cant_dump_core): Likewise.
5919 (dump_core): Likewise.
5920 * utils.c (dump_core): Made nonstatic. Added new
5921 parameter "limit_kind".
5922 (can_dump_core): Made nonstatic. Moved printing code to...
5923 (warn_cant_dump_core): New function.
5924 (can_dump_core_warn): Likewise.
5925 (internal_vproblem): Replace calls to can_dump_core with
5926 calls to can_dump_core_warn. Supply new argument to each.
5928 2014-06-19 Gary Benson <gbenson@redhat.com>
5930 * utils.h (demangler_vwarning): New declaration.
5931 (demangler_warning): Likewise.
5932 * utils.c (struct internal_problem)
5933 <user_settable_should_quit>: New field.
5934 <user_settable_should_dump_core>: Likewise
5935 (internal_error_problem): Add values for above new fields.
5936 (internal_warning_problem): Likewise.
5937 (demangler_warning_problem): New static global.
5938 (demangler_vwarning): New function.
5939 (demangler_warning): Likewise.
5940 (add_internal_problem_command): Selectively add commands.
5941 (_initialize_utils): New internal problem command.
5942 * maint.c (maintenance_demangler_warning): New function.
5943 (_initialize_maint_cmds): New command.
5945 2014-06-18 Tom Tromey <tromey@redhat.com>
5947 * f-valprint.c (info_common_command_for_block): Update.
5948 * symtab.h (struct general_symbol_info) <common_block>: Now
5951 2014-06-18 Tom Tromey <tromey@redhat.com>
5953 * symtab.h (struct symtab) <blockvector>: Now const.
5954 * ada-lang.c (ada_add_global_exceptions): Update.
5955 * buildsym.c (augment_type_symtab): Update.
5956 * dwarf2read.c (dw2_lookup_symbol): Update.
5957 * jit.c (finalize_symtab): Update.
5958 * jv-lang.c (add_class_symtab_symbol): Update.
5959 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5961 * objfiles.c (objfile_relocate1): Update.
5962 * psymtab.c (lookup_symbol_aux_psymtabs)
5963 (maintenance_check_psymtabs): Update.
5964 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5966 * spu-tdep.c (spu_catch_start): Update.
5967 * symmisc.c (dump_symtab_1): Update.
5968 * symtab.c (lookup_global_symbol_from_objfile)
5969 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5970 (basic_lookup_transparent_type_quick)
5971 (basic_lookup_transparent_type, find_pc_sect_symtab)
5972 (find_pc_sect_line, search_symbols): Update.
5973 * block.c (find_block_in_blockvector): Make "bl" const.
5974 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5976 (blockvector_contains_pc): Make "bv" const.
5977 (block_for_pc_sect): Update.
5978 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5979 (blockvector_contains_pc): Update.
5980 * breakpoint.c (resolve_sal_pc): Update.
5981 * inline-frame.c (block_starting_point_at): Update.
5983 2014-06-18 Tom Tromey <tromey@redhat.com>
5985 * completer.c (complete_line): Make "line_buffer" const.
5986 * completer.h (complete_line): Update.
5988 2014-06-18 Tom Tromey <tromey@redhat.com>
5990 * symtab.c (add_macro_name): Remove unneeded cast.
5992 2014-06-18 Tom Tromey <tromey@redhat.com>
5994 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5995 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5997 2014-06-18 Tom Tromey <tromey@redhat.com>
5999 * probe.c (info_probes_for_ops): Make "arg" const.
6000 * probe.h (info_probes_for_ops): Update.
6002 2014-06-18 Tom Tromey <tromey@redhat.com>
6004 * varobj.c (varobj_create): Update.
6005 * valops.c (value_of_this): Update.
6006 * tracepoint.c (add_local_symbols, scope_info): Update.
6007 * symtab.h (struct general_symbol_info) <block>: Now const.
6008 * symtab.c (skip_prologue_sal)
6009 (default_make_symbol_completion_list_break_on)
6010 (skip_prologue_using_sal): Update.
6011 * stack.h (iterate_over_block_locals)
6012 (iterate_over_block_local_vars): Update.
6013 * stack.c (print_frame_args): Update.
6014 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6016 (get_selected_block): Make return type const.
6017 * python/py-frame.c (frapy_block): Update.
6018 * python/py-block.c (gdbpy_block_for_pc): Update.
6019 * p-exp.y (%union) <bval>: Now const.
6020 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6021 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6022 * m2-exp.y (%union) <bval>: Now const.
6023 * linespec.c (get_current_search_block): Make return type const.
6024 (create_sals_line_offset, find_label_symbols): Update.
6025 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6027 (block_starting_point_at): Make "block" const.
6028 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6029 (check_exception_resume): Update.
6030 * guile/scm-frame.c (gdbscm_frame_block): Update.
6031 * guile/scm-block.c (gdbscm_lookup_block): Update.
6032 * frame.h (get_frame_block): Update.
6033 (get_selected_block): Make return type const.
6034 * frame.c (frame_id_inner): Update.
6035 * f-valprint.c (info_common_command_for_block)
6036 (info_common_command): Update.
6037 * dwarf2loc.c (dwarf2_find_location_expression)
6038 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6039 (locexpr_describe_location_piece): Update.
6040 * c-exp.y (%union) <bval>: Now const.
6041 * breakpoint.c (resolve_sal_pc): Update.
6042 * blockframe.c (get_frame_block):Make return type const.
6043 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6044 (block_innermost_frame): Update.
6045 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6046 (block_for_pc, block_for_pc_sect): Update.
6047 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6049 (block_for_pc_sect, block_for_pc): Make return type const.
6050 * ax-gdb.c (gen_expr): Update.
6051 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6052 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6053 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6054 (ada_read_var_value): Update.
6055 * ada-exp.y (struct name_info) <block>: Now const.
6057 (block_lookup): Constify.
6059 2014-06-18 Gary Benson <gbenson@redhat.com>
6061 * nat/i386-dregs.h: New file.
6062 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6063 * i386-nat.h (i386-dregs.h): New include.
6064 (DR_FIRSTADDR): Now in i386-dregs.h.
6065 (DR_LASTADDR): Likewise.
6066 (DR_NADDR): Likewise.
6067 (DR_STATUS): Likewise.
6068 (DR_CONTROL): Likewise.
6069 (i386_debug_reg_state): Likewise.
6070 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6072 2014-06-18 Don Breazeal <donb@codesourcery.com>
6074 * breakpoint.c (set_longjmp_breakpoint): Call
6075 momentary_breakpoint_from_master with additional argument.
6076 (set_longjmp_breakpoint_for_call_dummy): Call
6077 momentary_breakpoint_from_master with additional argument.
6078 (set_std_terminate_breakpoint): Call
6079 momentary_breakpoint_from_master with additional argument.
6080 (momentary_breakpoint_from_master): Add argument to function
6081 definition and use it to initialize structure member flag.
6082 (clone_momentary_breakpoint): Call
6083 momentary_breakpoint_from_master with additional argument.
6084 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6085 member flags set in momentary_breakpoint_from_master.
6087 2014-06-18 Gary Benson <gbenson@redhat.com>
6089 * i386-nat.c (i386_show_dr): Renamed to
6090 i386_dr_show and made nonstatic. All uses updated.
6091 (i386_length_and_rw_bits): Renamed to
6092 i386_dr_length_and_rw_bits and made nonstatic.
6094 (i386_insert_aligned_watchpoint): Renamed to
6095 i386_dr_insert_aligned_watchpoint and made nonstatic.
6097 (i386_remove_aligned_watchpoint): Renamed to
6098 i386_dr_remove_aligned_watchpoint and made nonstatic.
6100 (i386_update_inferior_debug_regs): Renamed to
6101 i386_dr_update_inferior_debug_regs and made nonstatic.
6104 2014-06-18 Gary Benson <gbenson@redhat.com>
6106 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6107 (i386_dr_low_can_set_control): Likewise.
6108 (i386_dr_low_set_addr): Likewise.
6109 (i386_dr_low_set_control): Likewise.
6110 (i386_dr_low_get_addr): Likewise.
6111 (i386_dr_low_get_status): Likewise.
6112 (i386_dr_low_get_control): Likewise.
6113 (i386_insert_aligned_watchpoint): Use new macros.
6114 (i386_update_inferior_debug_regs): Likewise.
6115 (i386_stopped_data_address): Likewise.
6117 2014-06-18 Gary Benson <gbenson@redhat.com>
6119 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6120 New parameter. All uses updated.
6122 2014-06-18 Gary Benson <gbenson@redhat.com>
6124 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6127 2014-06-18 Gary Benson <gbenson@redhat.com>
6129 * i386-nat.c (debug_printf): New macro.
6130 (i386_get_debug_register_length): Likewise.
6131 (TARGET_HAS_DR_LEN_8): Use above macro.
6132 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6133 and printf_unfiltered. Use phex to format values.
6135 2014-06-18 Gary Benson <gbenson@redhat.com>
6137 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6140 2014-06-18 Gary Benson <gbenson@redhat.com>
6142 * i386-nat.c: Comment changes.
6144 2014-06-18 Gary Benson <gbenson@redhat.com>
6146 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6148 2014-06-18 Gary Benson <gbenson@redhat.com>
6150 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6151 (i386_insert_aligned_watchpoint): Likewise.
6152 (i386_remove_aligned_watchpoint): Likewise.
6153 (i386_handle_nonaligned_watchpoint): Likewise.
6155 2014-06-18 Gary Benson <gbenson@redhat.com>
6157 * i386-nat.c: Whitespace changes.
6159 2014-06-17 Samuel Bronson <naesten@gmail.com>
6161 * MAINTAINERS: Update Roland McGrath's email address.
6162 Thanks to Sergio Durigan Junior for pointing out that he left
6163 Red Hat a while ago, and giving me a current address.
6165 2014-06-17 Tom Tromey <tromey@redhat.com>
6167 * utils.h (savestring): Remove declaration.
6169 2014-06-17 Tom Tromey <tromey@redhat.com>
6171 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6173 2014-06-16 Keith Seitz <keiths@redhat.com>
6176 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6177 to update the varobj if inferior_ptid is null_ptid.
6179 2014-06-16 Tom Tromey <tromey@redhat.com>
6181 * target.h (struct target_ops) <to_info_proc>: Make parameter
6183 (target_info_proc): Update.
6184 * target.c (target_info_proc): Make "args" const.
6185 * procfs.c (procfs_info_proc): Update.
6186 * linux-tdep.c (linux_info_proc): Update.
6187 (linux_core_info_proc_mappings): Make "args" const.
6188 (linux_core_info_proc): Update.
6189 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6190 * gdbarch.c: Rebuild.
6191 * gdbarch.h: Rebuild.
6192 * corelow.c (core_info_proc): Update.
6194 2014-06-16 Tom Tromey <tromey@redhat.com>
6196 * target.h (struct target_ops) <to_disconnect>: Make parameter
6198 (target_disconnect): Update.
6199 * target.c (target_disconnect): Make "args" const.
6200 * target-delegates.c: Rebuild.
6201 * remote.c (remote_disconnect): Update.
6202 * record.h (record_disconnect): Update.
6203 * record.c (record_disconnect): Update.
6204 * inf-child.c (inf_child_disconnect): Update.
6206 2014-06-16 Tom Tromey <tromey@redhat.com>
6208 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6209 * target.c (debug_to_rcmd, default_rcmd): Update.
6210 * target-delegates.c: Rebuild.
6211 * remote.c (remote_rcmd): Update.
6212 * monitor.c (monitor_rcmd): Update.
6214 2014-06-16 Pedro Alves <palves@redhat.com>
6216 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6217 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6218 have OBJF_SHARED set.
6219 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6220 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6221 instead of OBJF_USERLOADED.
6222 * objfiles.h (OBJF_SHARED): Update comment.
6223 (userloaded_objfile_contains_address_p): Rename to ...
6224 (shared_objfile_contains_address_p): ... this, and update
6226 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6228 (remove_symbol_file_command): Skip objfiles that don't have
6231 2014-06-16 Tom Tromey <tromey@redhat.com>
6233 * minsyms.h (prim_record_minimal_symbol)
6234 (prim_record_minimal_symbol_and_info): Update comments.
6236 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6238 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6239 or --without-guile, according to how GDB was built.
6241 2014-06-13 Tom Tromey <tromey@redhat.com>
6243 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6245 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6247 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6249 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6250 help_list.Pass all_commands, not -1, to help_list.
6251 * cli/cli-dump.c (dump_command, append_command)
6252 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6253 (binary_dump_command, binary_append_command): Pass all_commands,
6254 not -1, to help_list.
6255 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6257 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6259 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6261 * top.c (set_history): Pass all_commands, not -1, to help_list.
6262 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6263 all_commands, not -1, to help_list.
6264 * symfile.c (overlay_command): Pass all_commands, not -1, to
6266 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6268 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6270 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6272 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6273 not -1, to help_list.
6274 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6275 not -1, to help_list.
6276 * maint.c (maintenance_command, maintenance_info_command)
6277 (maintenance_print_command, maintenance_set_cmd): Pass
6278 all_commands, not -1, to help_list.
6279 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6281 * language.c (set_check): Pass all_commands, not -1, to help_list.
6282 * infcmd.c (unset_command): Pass all_commands, not -1, to
6284 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6286 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6288 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6290 * breakpoint.c (save_command): Pass all_commands, not -1, to
6292 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6293 all_commands, not -1, to help_list.
6295 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6297 * regcache.c (struct register_to_invalidate): New structure.
6298 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6300 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6302 2014-06-12 Yao Qi <yao@codesourcery.com>
6304 * varobj.c (varobj_get_num_children): Call
6305 varobj_is_dynamic_p.
6306 (varobj_list_children): Likewise.
6307 (varobj_update): Likewise. Update comments.
6309 2014-06-12 Yao Qi <yao@codesourcery.com>
6311 * varobj.c (varobj_pretty_printed_p): Rename to ...
6312 (varobj_is_dynamic_p): ... this. New function.
6313 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6314 (varobj_is_dynamic_p): Declare.
6315 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6316 (mi_print_value_p, varobj_update_one): Likewise.
6318 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6319 Yao Qi <yao@codesourcery.com>
6321 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6322 (varobj_get_iterator): Wrap up code for pretty-printer by
6323 "#if HAVE_PYTHON" and "#endif".
6324 (update_dynamic_varobj_children): Likewise.
6326 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6327 Yao Qi <yao@codesourcery.com>
6329 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6330 gdb_python_initialized is false. Move some code from varobj.c.
6331 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6332 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6333 (struct varobj_item): Moved to varobj-iter.h".
6334 (varobj_clear_saved_item): New function.
6335 (update_dynamic_varobj_children): Move python-related code to
6337 (free_variable): Call varobj_clear_saved_item and
6340 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6341 Yao Qi <yao@codesourcery.com>
6343 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6344 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6345 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6346 (py-varobj.o): New rule.
6347 * python/py-varobj.c: New file.
6348 * python/python-internal.h (py_varobj_get_iterator): Declare.
6349 * varobj-iter.h: New file.
6350 * varobj.c: Include "varobj-iter.h"
6351 (struct varobj) <child_iter>: Change its type from "PyObject *"
6352 to "struct varobj_iter *".
6353 <saved_item>: Likewise.
6354 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6355 [HAVE_PYTHON] (varobj_get_iterator): New function.
6356 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6357 python-specific code to python/py-varobj.c.
6358 (install_visualizer): Call varobj_iter_delete instead of
6360 * varobj.h (varobj_ensure_python_env): Declare.
6362 2014-06-12 Yao Qi <yao@codesourcery.com>
6364 * varobj.c (struct varobj_item): New structure.
6365 (create_child_with_value): Update declaration.
6366 (varobj_add_child): Replace arguments 'name' and 'value' with
6367 'item'. All callers updated.
6368 (install_dynamic_child): Likewise.
6369 (update_dynamic_varobj_children): Likewise.
6370 (varobj_add_child): Likewise.
6371 (create_child_with_value): Likewise.
6373 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6375 * NEWS: Create a new section for the next release branch.
6376 Rename the section of the current branch, now that it has
6379 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6381 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6382 * version.in: Bump version to 7.8.50.DATE-cvs.
6384 2014-06-11 Pedro Alves <palves@redhat.com>
6387 * ser-mingw.c (net_windows_socket_check_pending): New function.
6388 (net_windows_select_thread): Ignore spurious wakeups. Use
6389 net_windows_socket_check_pending.
6390 (net_windows_wait_handle): Check for pending events with
6391 ioctlsocket, through net_windows_socket_check_pending, instead of
6392 checking the socket's event.
6394 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6396 * python/python-internal.h (gdb_PyObject_GetAttrString)
6397 (gdb_PyObject_HasAttrString): New inline function definitions.
6398 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6399 char * of the second argument to PyObject_GetAttrString.
6401 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6403 * serial.c (serial_write): Fix index of character to be printed
6404 in call to serial_logchar when serial debug traces are enabled.
6406 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6408 * gdbtypes (resolve_dynamic_range): Add function description.
6410 2014-06-09 Pedro Alves <palves@redhat.com>
6412 * linux-nat.c (linux_child_follow_fork): Initialize status with
6413 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6414 inner block. Only pass the signal to PTRACE_DETACH if in pass
6417 2014-06-09 Gary Benson <gbenson@redhat.com>
6419 * common/signals.c (gdb_signal_from_host): Reorder to separate
6420 the always-available ANSI-standard signals from the signals that
6422 (do_gdb_signal_to_host): Likewise.
6423 * proc-events.c (signal_table): Likewise.
6425 2014-06-08 Hui Zhu <hui@codesourcery.com>
6427 * common/linux-ptrace.c (linux_disable_event_reporting): New
6429 * common/linux-ptrace.h (linux_disable_event_reporting): New
6431 * linux-nat.c (linux_child_follow_fork): Do a single step before
6434 2014-06-07 Keith Seitz <keiths@redhat.com>
6438 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6439 from symbol_matches_domain in symtab.c. All local callers
6440 of symbol_matches_domain updated.
6441 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6442 search STRUCT_DOMAIN.
6443 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6444 independently. standard_lookup will do that automatically.
6445 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6446 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6447 (cp_lookup_symbol_in_namespace): Likewise.
6448 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6449 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6450 may return a STRUCT_DOMAIN match.
6451 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6452 * cp-support.c: Include language.h.
6453 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6455 * psymtab.c (match_partial_symbol): Compare the requested
6456 domain with the symbol's domain directly.
6457 (lookup_partial_symbol): Likewise.
6458 * symtab.c (lookup_symbol_in_language): Explain when/why
6459 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6460 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6461 appropriate languages.
6462 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6463 and moved to ada-lang.c
6464 (lookup_block_symbol): Explain that this function only returns
6465 symbol matching the requested DOMAIN.
6466 Compare the requested domain with the symbol's domain directly.
6467 (iterate_over_symbols): Compare the requested domain with the
6468 symbol's domain directly.
6469 * symtab.h (symbol_matches_domain): Remove.
6471 2014-06-06 Doug Evans <xdje42@gmail.com>
6473 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6474 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6475 (gdbscm_guile_version_is_at_least): Declare.
6476 (gdbscm_scm_string_to_int): Declare.
6477 * guile/guile.c (gdbscm_guile_major_version): New global.
6478 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6479 (guile_datadir): New static global.
6480 (gdbscm_guile_data_directory): New function.
6481 (initialize_scheme_side): Update.
6482 (misc_guile_functions): Add guile-data-directory.
6483 (initialize_gdb_module): Fetch guile version number.
6484 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6485 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6486 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6487 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6489 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6490 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6491 * guile/scm-value.c (gdbscm_value_to_string): Only call
6492 scm_port_conversion_strategy if Guile version >= 2.0.6.
6494 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6496 * main.c (print_gdb_help): Add -q and --silent.
6498 2014-06-06 Gary Benson <gbenson@redhat.com>
6500 * common/signals.c: Remove preprocessor conditionals for
6501 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6502 SIGSEGV and SIGTERM.
6503 * proc-events.c: Likewise.
6505 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6507 * symfile.c (symfile_free_objfile): Remove restriction to
6509 * symfile-mem.c (symbol_file_add_from_memory): Call
6510 add_target_sections_of_objfile.
6512 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6514 * guile/scm-value.c (gdbscm_history_append_x): Use
6515 'vlscm_get_value_smob_arg_unsafe' instead of
6516 'vlscm_scm_to_value'.
6518 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6521 * utils.c (printchar): Don't escape at all if quoter is NUL.
6522 Update function documentation to clarify effect of parameter
6524 * remote.c (escape_buffer): Pass '\\' as the quoter to
6525 fputstrn_unfiltered.
6526 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6527 generate the output.
6528 (mi_solib_unloaded): Same.
6530 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6532 * development.sh: Delete.
6533 * Makefile.in (config.status): Adjust dependency on development.sh.
6534 * configure.ac: Adjust development.sh source call.
6535 * configure: Regenerate.
6537 2014-06-04 Doug Evans <xdje42@gmail.com>
6539 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6540 is_scheme_bkpt, spec.
6541 (bpscm_make_breakpoint_smob): Initialize new members.
6542 (gdbscm_create_breakpoint_x): Split into two ...
6543 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6544 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6545 (scheme_function breakpoint_functions): Update.
6546 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6547 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6548 register-breakpoint!.
6550 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6553 * mem-break.c (z_type_supported): Return zero if
6554 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6556 2014-06-04 Tom Tromey <tromey@redhat.com>
6558 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6559 value_from_contents_and_address_unresolved.
6560 (ada_template_to_fixed_record_type_1): Likewise.
6561 (ada_which_variant_applies): Likewise.
6562 * value.h (value_from_contents_and_address_unresolved): Declare.
6563 * value.c (value_from_contents_and_address_unresolved): New
6565 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6566 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6567 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6569 2014-06-04 Tom Tromey <tromey@redhat.com>
6571 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6573 2014-06-04 Tom Tromey <tromey@redhat.com>
6575 * procfs.c (procfs_attach): Make "args" const.
6576 * windows-nat.c (windows_attach): Make "args" const.
6577 * nto-procfs.c (procfs_attach): Make "args" const.
6578 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6579 * go32-nat.c (go32_attach): Make "args" const.
6580 * gnu-nat.c (gnu_attach): Make "args" const.
6581 * darwin-nat.c (darwin_attach): Make "args" const.
6582 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6583 * linux-nat.c (linux_nat_attach): Make "args" const.
6584 * remote.c (extended_remote_attach_1, extended_remote_attach):
6586 * target.h (struct target_ops) <to_attach>: Make "args" const.
6587 (find_default_attach): Likewise.
6588 * utils.c (parse_pid_to_attach): Make "args" const.
6589 * utils.h (parse_pid_to_attach): Update.
6591 2014-06-04 Tom Tromey <tromey@redhat.com>
6593 * target-delegates.c: Rebuild.
6594 * target.c (default_thread_address_space): New function.
6595 (target_thread_address_space): Simplify.
6596 * target.h (struct target_ops) <to_thread_address_space>: Add
6597 TARGET_DEFAULT_FUNC.
6599 2014-06-04 Doug Evans <xdje42@gmail.com>
6601 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6603 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6605 * record-btrace.c: Include event-loop.h and inf-loop.h.
6606 (record_btrace_resume_exec_dir)
6607 (record_btrace_async_inferior_event_handler)
6608 (record_btrace_handle_async_inferior_event): New.
6609 (record_btrace_open): Create async event handler.
6610 (record_btrace_close): Delete async event handler.
6611 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6612 Mark async event handler.
6613 (record_btrace_execution_direction): New.
6614 (init_record_btrace_ops): Initialize to_execution_direction.
6616 2014-06-03 Doug Evans <xdje42@gmail.com>
6618 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6619 (gdbscm_make_parameter): Ditto.
6621 2014-06-03 Doug Evans <dje@google.com>
6623 * exec.c (exec_close_1): Call clear_section_table instead of
6624 resize_section_table.
6625 (clear_section_table): New function.
6626 (resize_section_table): Make static. Rename arg num_added to
6628 * exec.h (clear_section_table): Declare.
6629 (resize_section_table): Delete.
6630 * progspace.c (release_program_space): Call clear_section_table
6631 instead of resize_section_table.
6633 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6635 * NEWS (Python Scripting): Add entry about the new xmethods
6638 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6640 * python/py-xmethods.c: New file.
6641 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6642 (objfpy_dealloc): XDECREF on the new xmethods field.
6643 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6645 (objfpy_get_xmethods): New function.
6646 (objfile_getset): New entry 'xmethods'.
6647 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6648 (pspy_dealloc): XDECREF on the new xmethods field.
6649 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6651 (pspy_get_xmethods): New function.
6652 (pspace_getset): New entry 'xmethods'.
6653 * python/python-internal.h: Add declarations for new functions.
6654 * python/python.c (_initialize_python): Invoke
6655 gdbpy_initialize_xmethods.
6656 * python/lib/gdb/__init__.py (xmethods): New
6658 * python/lib/gdb/xmethod.py: New file.
6659 * python/lib/gdb/command/xmethods.py: New file.
6661 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6663 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6664 best match method returned by find_overload_match is an xmethod.
6665 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6666 the best matching operator returned by find_overload_match is an
6668 * valops.c: #include "extension.h".
6669 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6670 Return void. The list of matching source methods is returned in
6671 "fn_list" and a vector of matching debug method workers is
6672 returned in "xm_worker_vec". Update all callers.
6673 (value_find_oload_method_list): Likewise.
6674 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6675 non-NULL, then the index of the best matching method in this
6676 vector is returned. Update all callers.
6677 (find_overload_match): Include xmethods while performing overload
6680 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6682 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6683 * extension-priv.h (struct extension_language_ops): Add the
6685 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6686 get_matching_xmethod_workers, get_xmethod_argtypes,
6687 invoke_xmethod, free_xmethod_worker,
6688 free_xmethod_worker_vec): New functions.
6689 * extension.h: #include "common/vec.h".
6690 New function declarations.
6691 (struct xmethod_worker): New struct.
6692 (VEC (xmethod_worker_ptr)): New vector type.
6693 (xmethod_worker_ptr): New typedef.
6694 (xmethod_worker_vec): Likewise.
6695 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6697 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6698 (struct builtin_type): New field "xmethod".
6699 * valarith.c (value_ptradd): Assert that the value argument is not
6701 * valops.c (value_must_coerce_to_target): Return 0 for
6702 lval_xcallable values.
6703 * value.c (struct value): New field XM_WORKER in the field
6705 (value_address, value_raw_address): Return 0 for lval_xcallable
6707 (set_value_address): Assert that the value is not an
6709 (value_free): Free the associated xmethod worker when freeing
6710 lval_xcallable values.
6711 (set_value_component_location): Assert that the WHOLE value is not
6713 (value_of_xmethod, call_xmethod): New functions.
6714 * value.h: Declare "struct xmethod_worker".
6715 Declare new functions value_of_xmethod, call_xmethod.
6717 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6718 Pedro Alves <palves@redhat.com>
6720 PR breakpoints/17000
6721 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6722 New function, extracted from software_breakpoint_inserted_here_p.
6723 (software_breakpoint_inserted_here_p): Replace factored out code
6724 by call to find_non_raw_software_breakpoint_inserted_here.
6725 (bp_target_info_copy_insertion_state): New function.
6726 (bkpt_insert_location): Handle the case of a single-step
6727 breakpoint already inserted at the same address.
6728 (bkpt_remove_location): Handle the case of a single-step
6729 breakpoint still inserted at the same address.
6730 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6731 breakpoint already inserted at the same address.
6732 (deprecated_remove_raw_breakpoint): Handle the case of a
6733 non-raw breakpoint still inserted at the same address.
6734 (find_single_step_breakpoint): New function, extracted from
6735 single_step_breakpoint_inserted_here_p.
6736 (find_single_step_breakpoint): New function,
6737 factored out from single_step_breakpoint_inserted_here_p.
6738 (single_step_breakpoint_inserted_here_p): Reimplement.
6740 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6742 Pushed by Joel Brobecker <brobecker@adacore.com>
6743 * source.c (show_substitute_path_command): Fix display of matching
6746 2014-06-03 Gary Benson <gbenson@redhat.com>
6748 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6750 2014-06-02 Doug Evans <xdje42@gmail.com>
6752 Add parameter support for Guile.
6753 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6754 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6755 (scm-param.o): New rule.
6756 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6757 (gdbscm_misc_error): Declare.
6758 (gdbscm_canonicalize_command_name): Declare.
6759 (gdbscm_scm_to_host_string): Declare.
6760 (gdbscm_scm_from_host_string): Declare.
6761 (gdbscm_initialize_parameters): Declare.
6762 * guile/guile.c (initialize_gdb_module): Call
6763 gdbscm_initialize_parameters.
6764 * guile/lib/gdb.scm: Export parameter symbols.
6765 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6766 cmdscm_canonicalize_name and made public. All callers updated.
6767 * guile/scm-exception.c (gdbscm_misc_error): New function.
6768 * guile/scm-param.c: New file.
6769 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6770 (gdbscm_scm_to_host_string): New function.
6771 (gdbscm_scm_from_host_string): New function.
6772 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6774 2014-06-02 Doug Evans <xdje42@gmail.com>
6776 Add command support for Guile.
6777 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6778 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6779 (scm-cmd.o): New rule.
6780 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6781 (gdbscm_user_error_p): Declare.
6782 (gdbscm_parse_command_name): Declare.
6783 (gdbscm_valid_command_class_p): Declare.
6784 (gdbscm_initialize_commands): Declare.
6785 * guile/guile.c (initialize_gdb_module): Call
6786 gdbscm_initialize_commands.
6787 * guile/lib/gdb.scm: Export command symbols.
6788 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6789 (throw-user-error): New function.
6790 * guile/scm-cmd.c: New file.
6791 * guile/scm-exception.c (user_error_symbol): New static global.
6792 (gdbscm_user_error_p): New function.
6793 (gdbscm_initialize_exceptions): Set user_error_symbol.
6794 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6796 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6798 * top.c (command_loop): Handle comments here...
6799 (command_line_input): ... not here.
6801 2014-06-02 Doug Evans <xdje42@gmail.com>
6803 Add progspace support for Guile.
6804 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6805 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6806 (scm-progspace.o): New rule.
6807 * guile/guile-internal.h (pspace_smob): New typedef.
6808 (psscm_pspace_smob_pretty_printers): Declare.
6809 (psscm_pspace_smob_from_pspace): Declare.
6810 (psscm_scm_from_pspace): Declare.
6811 * guile/guile.c (initialize_gdb_module): Call
6812 gdbscm_initialize_pspaces.
6813 * guile/lib/gdb.scm: Export progspace symbols.
6814 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6816 (append-pretty-printer!): Ditto.
6817 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6819 * guile/scm-progspace.c: New file.
6821 2014-06-03 Alan Modra <amodra@gmail.com>
6823 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6824 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6826 2014-06-02 Doug Evans <dje@google.com>
6828 Add support for skeletonless type units.
6829 * dwarf2read.c (struct dwarf2_per_objfile): New member
6830 n_allocated_type_units.
6831 (struct dwarf2_per_objfile) <tu_stats>: New member
6832 nr_all_type_units_reallocs.
6833 (create_signatured_type_table_from_index): Initialize
6834 n_allocated_type_units
6835 (create_all_type_units): Ditto.
6836 (add_type_unit): Move up in file. New arg slot.
6837 All callers updated. Increase space for all_type_units more
6839 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6840 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6841 (lookup_dwp_signatured_type): Ditto.
6842 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6843 All callers updated.
6844 (build_type_psymtabs_1): Leave type_unit_groups as
6845 NULL if no TUs present.
6846 (print_tu_stats): New function.
6847 (process_skeletonless_type_unit): New function.
6848 (process_dwo_file_for_skeletonless_type_units): New
6850 (process_skeletonless_type_units): New function.
6851 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6852 Call print tu_stats if debugging enabled.
6854 2014-06-02 Pedro Alves <palves@redhat.com>
6856 * breakpoint.c (build_target_command_list): Don't build a command
6857 list if we have any duplicate location that isn't a dprintf.
6859 2014-06-02 Pedro Alves <palves@redhat.com>
6861 * breakpoint.c (dprintf_breakpoint_hit): New function.
6862 (initialize_breakpoint_ops): Install it as dprintf's
6863 breakpoint_hit method.
6865 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6867 * source.c (substitute_path_rule_matches): Simplify using
6868 filename_ncmp instead of FILENAME_CMP.
6870 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6872 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6874 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6876 * configure.ac: When Guile is available, check for the
6877 availability of 'scm_new_smob'.
6878 * configure, config.h.in: Regenerate.
6879 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6882 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6884 * frame.c (struct frame_info): Add stop_string field.
6885 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6886 (get_prev_frame_always): Old content moved into
6887 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6888 TRY_CATCH, handle MEMORY_ERROR exceptions.
6889 (frame_stop_reason_string): New function definition.
6890 * frame.h (unwind_stop_reason_to_string): Extend comment to
6891 mention frame_stop_reason_string.
6892 (frame_stop_reason_string): New function declaration.
6893 * stack.c (frame_info): Switch to frame_stop_reason_string.
6894 (backtrace_command_1): Switch to frame_stop_reason_string.
6895 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6896 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6897 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6899 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6901 * frame.c (frame_stop_reason_string): Rename to ...
6902 (unwind_stop_reason_to_string): this.
6903 * frame.h (frame_stop_reason_string): Rename to ...
6904 (unwind_stop_reason_to_string): this.
6905 * stack.c (frame_info): Update call to frame_stop_reason_string.
6906 (backtrace_command_1): Likewise.
6907 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6908 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6910 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6912 * frame.c (remove_prev_frame): New function.
6913 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6916 2014-05-29 Pedro Alves <palves@redhat.com>
6918 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6919 and make it const. When a single-step decays to a continue,
6920 clear 'step', not 'hw_step'. Pass whether the caller wanted
6921 to step to user_visible_resume_ptid, not what we ask the
6924 2014-05-29 Pedro Alves <palves@redhat.com>
6926 * infrun.c (process_event_stop_test, handle_step_into_function)
6927 (handle_step_into_function_backward): Adjust.
6928 Don't set the even thread's stop_step and call stop_waiting before
6929 calling end_stepping_range. Instead do that ...
6930 (end_stepping_range): ... here. Take an ecs pointer parameter.
6932 2014-05-29 Pedro Alves <palves@redhat.com>
6934 * infrun.c (stop_stepping): Rename to ...
6935 (stop_waiting): ... this.
6936 (proceed): Update comment.
6937 (process_event_stop_test, handle_inferior_event)
6938 (handle_signal_stop, handle_step_into_function)
6939 (handle_step_into_function_backward): Update.
6941 2014-05-29 Pedro Alves <palves@redhat.com>
6943 * infcall.c (run_inferior_call): Don't check whether the current
6944 thread is running after the proceed call.
6946 2014-05-29 Pedro Alves <palves@redhat.com>
6947 Tom Tromey <tromey@redhat.com>
6949 * NEWS: Mention "maint set target-async", "set mi-async", and that
6950 background execution commands are now always available.
6951 * target.h (target_async_permitted): Update comment.
6952 * target.c (target_async_permitted, target_async_permitted_1):
6954 (set_target_async_command): Rename to ...
6955 (maint_set_target_async_command): ... this.
6956 (show_target_async_command): Rename to ...
6957 (maint_show_target_async_command): ... this.
6958 (_initialize_target): Adjust.
6959 * infcmd.c (prepare_execution_command): Make extern.
6960 * inferior.h (prepare_execution_command): Declare.
6961 * infrun.c (set_observer_mode): Leave target async alone.
6962 * mi/mi-interp.c (mi_interpreter_init): Install
6963 mi_on_sync_execution_done as sync_execution_done observer.
6964 (mi_on_sync_execution_done): New function.
6965 (mi_execute_command_input_handler): Don't print the prompt if we
6966 just started a synchronous command with an async target.
6967 (mi_on_resume): Check sync_execution before printing prompt.
6968 * mi/mi-main.h (mi_async_p): Declare.
6969 * mi/mi-main.c: Include gdbcmd.h.
6970 (mi_async_p): New function.
6971 (mi_async, mi_async_1): New globals.
6972 (set_mi_async_command, show_mi_async_command, mi_async): New
6974 (exec_continue): Call prepare_execution_command.
6975 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6976 (mi_execute_async_cli_command): Use mi_async_p.
6977 (_initialize_mi_main): Install "set mi-async". Make
6978 "target-async" a deprecated alias.
6980 2014-05-29 Pedro Alves <palves@redhat.com>
6982 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6983 (_initialize_cli_interp): Adjust.
6984 * event-loop.c: Include "observer.h".
6985 (start_event_loop): Notify 'command_error' observers instead of
6986 calling display_gdb_prompt. Remove FIXME comment.
6987 * event-top.c (display_gdb_prompt): Remove call into the
6989 * inf-loop.c: Include "observer.h".
6990 (inferior_event_handler): Notify 'command_error' observers instead
6991 of calling display_gdb_prompt.
6992 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6993 observers instead of calling display_gdb_prompt.
6994 * interps.c (interp_set): Don't call display_gdb_prompt.
6995 (current_interp_display_prompt_p): Delete.
6996 * interps.h (interp_prompt_p): Delete declaration.
6997 (interp_prompt_p_ftype): Delete.
6998 (struct interp_procs) <prompt_proc_p>: Delete field.
6999 (current_interp_display_prompt_p): Delete declaration.
7000 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7001 (_initialize_mi_interp): Adjust.
7002 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7003 'command_error' observers.
7004 (tui_on_sync_execution_done, tui_on_command_error): New
7006 (tui_display_prompt_p): Delete.
7007 (_initialize_tui_interp): Adjust.
7009 2014-05-29 Pedro Alves <palves@redhat.com>
7012 * cli/cli-interp.c: Include infrun.h and observer.h.
7013 (cli_uiout, cli_interp): New globals.
7014 (cli_on_signal_received, cli_on_end_stepping_range)
7015 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7017 (cli_interpreter_init): Install them as 'end_stepping_range',
7018 'signal_received' 'signal_exited', 'exited' and 'no_history'
7020 (_initialize_cli_interp): Remove cli_interp local.
7021 * infrun.c (handle_inferior_event): Call the several stop reason
7022 observers instead of printing the stop reason directly.
7023 (end_stepping_range): New function.
7024 (print_end_stepping_range_reason, print_signal_exited_reason)
7025 (print_exited_reason, print_signal_received_reason)
7026 (print_no_history_reason): Make static, and add an uiout
7027 parameter. Print to that instead of to CURRENT_UIOUT.
7028 * infrun.h (print_end_stepping_range_reason)
7029 (print_signal_exited_reason, print_exited_reason)
7030 (print_signal_received_reason print_no_history_reason): New
7032 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7034 <cli_uiout>: New field.
7035 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7036 uiout for CLI output. Install 'signal_received',
7037 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7039 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7040 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7041 (mi_on_no_history): New functions.
7042 (ui_out_free_cleanup): Delete function.
7043 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7044 instead use the one already stored in the MI interpreter data.
7045 (mi_ui_out): Adjust.
7046 * tui/tui-interp.c: Include infrun.h and observer.h.
7047 (tui_interp): New global.
7048 (tui_on_signal_received, tui_on_end_stepping_range)
7049 (tui_on_signal_exited, tui_on_exited)
7050 (tui_on_no_history): New functions.
7051 (tui_init): Install them as 'end_stepping_range',
7052 'signal_received' 'signal_exited', 'exited' and 'no_history'
7054 (_initialize_tui_interp): Delete tui_interp local.
7056 2014-05-29 Pedro Alves <palves@redhat.com>
7059 * linux-nat.c (linux_nat_resume_callback): Rename the second
7060 parameter to 'except'. Skip LP if it points to EXCEPT.
7061 (linux_nat_resume): Don't mark the event lwp as not stopped
7062 before resuming sibling lwps. Instead ask
7063 linux_nat_resume_callback to skip the event lwp. Mark it as not
7064 stopped after actually resuming it.
7065 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7067 (wait_lwp): Mark the lwp as stopped here.
7068 (stop_wait_callback): Mark the lwp as not stopped right after
7069 resuming it. Don't mark lwps as stopped here.
7070 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7071 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7073 2014-05-29 Pedro Alves <palves@redhat.com>
7076 * infrun.c (resume): Determine how much to resume depending on
7077 whether the caller wanted a step, not whether we can hardware step
7078 the target. Mark all threads that we intend to run as running,
7079 unless we're calling an inferior function.
7080 (normal_stop): If the thread is running an infcall, don't finish
7082 * target.c (target_resume): Don't mark threads as running here.
7084 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7086 * serial.c (_initialize_serial): Remove support for
7087 the "set remotebaud" and "show remotebaud" commands.
7088 * NEWS: Add entry documenting the removal of that command.
7090 2014-05-28 Yao Qi <yao@codesourcery.com>
7092 * charset.c: Fix typo in comments.
7094 2014-05-27 Gary Benson <gbenson@redhat.com>
7096 * utils.c (internal_vproblem): Prompt for a bug report.
7098 2014-05-26 Andy Wingo <wingo@igalia.com>
7100 * guile/scm-arch.c (arscm_mark_arch_smob):
7101 * guile/scm-block.c (bkscm_mark_block_smob)
7102 (bkscm_mark_block_syms_progress_smob):
7103 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7104 * guile/scm-exception.c (exscm_mark_exception_smob):
7105 * guile/scm-frame.c (frscm_mark_frame_smob):
7106 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7107 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7108 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7109 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7110 (ppscm_mark_pretty_printer_worker_smob):
7111 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7112 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7113 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7114 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7116 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7119 2014-05-26 Andy Wingo <wingo@igalia.com>
7120 Doug Evans <xdje42@gmail.com>
7122 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7123 empty_base_class. All uses updated.
7124 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7125 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7127 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7128 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7129 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7130 (gdbscm_gsmob_has_property_p, add_property_name)
7131 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7132 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7133 (gdb-object-has-property?, gdb-object-properties): Remove.
7134 (gdb-object-kind): Renamed from gsmob-kind.
7136 2014-05-26 Andy Wingo <wingo@igalia.com>
7138 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7139 * configure: Regenerate.
7141 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7143 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7145 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7147 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7148 (replay_memory_access_read_only, replay_memory_access_read_write)
7149 (replay_memory_access_types, replay_memory_access)
7150 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7151 (cmd_set_record_btrace, cmd_show_record_btrace)
7152 (cmd_show_replay_memory_access): New.
7153 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7154 (record_btrace_remove_breakpoint): Replace
7155 record_btrace_allow_memory_access with replay_memory_access.
7156 (_initialize_record_btrace): Add commands.
7157 * NEWS: Announce it.
7159 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7161 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7163 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7165 * MAINTAINERS (Write After Approval): Move self back from
7168 2014-05-22 Pedro Alves <palves@redhat.com>
7170 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7171 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7172 (disable_randomization, enum exec_direction_kind)
7173 (execution_direction, stop_registers, start_remote)
7174 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7175 (wait_for_inferior, normal_stop, get_last_target_status)
7176 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7177 (insert_step_resume_breakpoint_at_sal)
7178 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7179 (set_step_info, print_stop_event, signal_stop_state)
7180 (signal_print_state, signal_pass_state, signal_stop_update)
7181 (signal_print_update, signal_pass_update)
7182 (update_signals_program_target, clear_exit_convenience_vars)
7183 (displaced_step_dump_bytes, update_observer_mode)
7184 (signal_catch_update, gdb_signal_from_command): Move
7186 * infrun.h: ... to this new file.
7187 * amd64-tdep.c: Include infrun.h.
7188 * annotate.c: Include infrun.h.
7189 * arch-utils.c: Include infrun.h.
7190 * arm-linux-tdep.c: Include infrun.h.
7191 * arm-tdep.c: Include infrun.h.
7192 * break-catch-sig.c: Include infrun.h.
7193 * breakpoint.c: Include infrun.h.
7194 * common/agent.c: Include infrun.h instead of inferior.h.
7195 * corelow.c: Include infrun.h.
7196 * event-top.c: Include infrun.h.
7197 * go32-nat.c: Include infrun.h.
7198 * i386-tdep.c: Include infrun.h.
7199 * inf-loop.c: Include infrun.h.
7200 * infcall.c: Include infrun.h.
7201 * infcmd.c: Include infrun.h.
7202 * infrun.c: Include infrun.h.
7203 * linux-fork.c: Include infrun.h.
7204 * linux-nat.c: Include infrun.h.
7205 * linux-thread-db.c: Include infrun.h.
7206 * monitor.c: Include infrun.h.
7207 * nto-tdep.c: Include infrun.h.
7208 * procfs.c: Include infrun.h.
7209 * record-btrace.c: Include infrun.h.
7210 * record-full.c: Include infrun.h.
7211 * remote-m32r-sdi.c: Include infrun.h.
7212 * remote-mips.c: Include infrun.h.
7213 * remote-notif.c: Include infrun.h.
7214 * remote-sim.c: Include infrun.h.
7215 * remote.c: Include infrun.h.
7216 * reverse.c: Include infrun.h.
7217 * rs6000-tdep.c: Include infrun.h.
7218 * s390-linux-tdep.c: Include infrun.h.
7219 * solib-irix.c: Include infrun.h.
7220 * solib-osf.c: Include infrun.h.
7221 * solib-svr4.c: Include infrun.h.
7222 * target.c: Include infrun.h.
7223 * top.c: Include infrun.h.
7224 * windows-nat.c: Include infrun.h.
7225 * mi/mi-interp.c: Include infrun.h.
7226 * mi/mi-main.c: Include infrun.h.
7227 * python/py-threadevent.c: Include infrun.h.
7229 2014-05-22 Pedro Alves <palves@redhat.com>
7231 * infrun.c (handle_inferior_event): Store the exit code for
7232 --return-child-result here, instead of ...
7233 (print_exited_reason): ... here.
7235 2014-05-21 Pedro Alves <palves@redhat.com>
7238 * gdbthread.h (struct thread_control_state): New field
7240 * infrun.c (follow_fork): Copy the new thread control field to the
7242 (clear_proceed_status_thread): Clear the new thread control field.
7243 (proceed): Set the new thread control field.
7244 * interps.h (command_interp): Declare.
7245 * interps.c (command_interpreter): New global.
7246 (command_interp): New function.
7247 (interp_exec): Set `command_interpreter' while here.
7248 * cli-out.c (cli_uiout_dtor): New function.
7249 (cli_ui_out_impl): Install it.
7250 * mi/mi-interp.c: Include cli-out.h.
7251 (mi_cmd_interpreter_exec): Add comment.
7252 (restore_current_uiout_cleanup): New function.
7253 (ui_out_free_cleanup): New function.
7254 (mi_on_normal_stop): If finishing an execution command started by
7255 a CLI command, or any kind of breakpoint-like event triggered,
7256 print the stop event to the output (CLI) stream.
7257 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7259 2014-05-21 Pedro Alves <palves@redhat.com>
7261 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7262 current source line having changed.
7263 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7264 * infrun.c (normal_stop): Adjust call to
7265 set_current_sal_from_frame.
7266 * source.c (clear_lines_listed_range): New function.
7267 (set_current_source_symtab_and_line, identify_source_line): Clear
7268 the lines listed range.
7269 (line_info): Handle the first "info line" after the current source
7270 line having changed.
7271 * stack.c (print_stack_frame): Remove center handling.
7272 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7275 2014-05-21 Pedro Alves <palves@redhat.com>
7277 * inf-child.c (inf_child_mourn_inferior): New function.
7278 * inf-child.h (inf_child_mourn_inferior): New declaration.
7279 * darwin-nat.c (darwin_mourn_inferior): Use
7280 inf_child_mourn_inferior.
7281 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7282 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7283 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7284 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7285 * windows-nat.c (windows_mourn_inferior): Likewise.
7287 2014-05-21 Doug Evans <xdje42@gmail.com>
7289 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7291 2014-05-21 Doug Evans <xdje42@gmail.com>
7293 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7294 (gdbscm_out_of_range_error): Ditto.
7295 (gdbscm_memory_error): Ditto.
7296 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7297 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7298 (gdbscm_out_of_range_error): Update.
7299 (gdbscm_memory_error): Update.
7300 (gdbscm_scm_to_target_string_unsafe): Delete.
7302 2014-05-21 Pedro Alves <palves@redhat.com>
7304 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7306 (inf_child_open_target): New function.
7307 (inf_child_open): Use inf_child_open_target to push the target
7308 instead of erroring out.
7309 (inf_child_disconnect, inf_child_close)
7310 (inf_child_maybe_unpush_target): New functions.
7311 (inf_child_target): Install inf_child_disconnect and
7312 inf_child_close. Store a pointer to the returned object.
7313 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7315 * target.c (auto_connect_native_target): New global.
7316 (show_default_run_target): New function.
7317 (find_default_run_target): Return NULL if automatically connecting
7318 to the native target is disabled.
7319 (_initialize_target): Install set/show auto-connect-native-target.
7320 * NEWS: Mention "set auto-connect-native-target", and "target
7322 * linux-nat.c (super_close): New global.
7323 (linux_nat_close): Call super_close.
7324 (linux_nat_add_target): Store a pointer to the base class's
7326 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7327 inf_child_maybe_unpush.
7328 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7330 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7331 the inferior. Use inf_child_maybe_unpush_target.
7332 (inf_ttrace_attach): Don't push the target if it is already
7334 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7335 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7336 after mourning the inferior. Use inf_child_maybe_unpush_target.
7337 (darwin_attach_pid): Don't push the target if it is already
7339 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7340 mourning the inferior. Use inf_child_maybe_unpush_target.
7341 (gnu_detach): Use inf_child_maybe_unpush_target.
7342 * go32-nat.c (go32_create_inferior): Don't push the target if it
7344 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7345 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7346 (procfs_open): Rename to ...
7347 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7348 comments. Can target_preopen before changing node. Call
7349 inf_child_open_target to push the target explicitly.
7350 (procfs_attach): Don't push the target if it is already pushed.
7351 (procfs_detach): Use inf_child_maybe_unpush_target.
7352 (procfs_create_inferior): Don't push the target if it is already
7354 (nto_native_ops): New global.
7355 (procfs_open): Reimplement.
7356 (procfs_native_open): New function.
7357 (init_procfs_targets): Install procfs_native_open as to_open of
7358 "target native". Store a pointer to the "native" target in
7360 * procfs.c (procfs_attach): Don't push the target if it is already
7362 (procfs_detach): Use inf_child_maybe_unpush_target.
7363 (procfs_mourn_inferior): Only unpush the target after mourning the
7364 inferior. Use inf_child_maybe_unpush_target.
7365 (procfs_init_inferior): Don't push the target if it is already
7367 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7368 if it is already pushed.
7370 2014-05-21 Pedro Alves <palves@redhat.com>
7372 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7373 and "procfs" targets are now called "native" instead.
7375 2014-05-21 Pedro Alves <palves@redhat.com>
7377 * go32-nat.c (go32_open): Delete.
7378 (go32_target): Don't override the to_open method.
7380 2014-05-21 Pedro Alves <palves@redhat.com>
7382 * nto-procfs.c (procfs_can_run): New function.
7383 (nto_procfs_ops): New global.
7384 (init_procfs_targets): New, based on procfs_target. Install
7385 "target native" in addition to "target procfs".
7386 (_initialize_procfs): Call init_procfs_targets instead of adding
7389 2014-05-21 Pedro Alves <palves@redhat.com>
7391 * windows-nat.c (windows_target): Don't override to_shortname,
7392 to_longname or to_doc.
7394 2014-05-21 Pedro Alves <palves@redhat.com>
7396 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7399 2014-05-21 Pedro Alves <palves@redhat.com>
7401 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7402 to_shortname, to_longname or to_doc.
7404 2014-05-21 Pedro Alves <palves@redhat.com>
7406 * go32-nat.c (go32_target): Don't override to_shortname,
7407 to_longname or to_doc.
7409 2014-05-21 Pedro Alves <palves@redhat.com>
7411 * inf-child.c (inf_child_open): Remove mention of "child".
7412 (inf_child_target): Rename target to "native" instead of "child".
7414 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7416 * Makefile.in (SFILES): Delete "regset.c".
7417 (COMMON_OBS): Delete "regset.o".
7419 * regset.h (regset_alloc): Delete prototype.
7421 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7423 * sparc-linux-tdep.c (sparc32_linux_gregset)
7424 (sparc32_linux_fpregset): New static regset structures.
7425 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7426 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7428 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7429 (sparc64_linux_fpregset): New static regset structures.
7430 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7431 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7432 New static regset structures.
7433 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7434 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7435 New static regset structures.
7436 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7437 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7438 New static regset structures.
7439 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7440 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7441 New static regset structures.
7442 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7444 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7446 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7447 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7448 register maps ("regmaps") from "*regset" to "*regmap". Do this
7449 for all regmap types and variables.
7450 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7451 (sparc32_linux_supply_core_gregset)
7452 (sparc32_linux_collect_core_gregset)
7453 (sparc32_linux_supply_core_fpregset)
7454 (sparc32_linux_collect_core_fpregset): Likewise.
7455 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7456 (sparc_gregmap, sparc_fpregmap): ... these.
7457 (sparc_supply_gregset, sparc_collect_gregset)
7458 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7459 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7460 (_initialize_sparc_nat): Rename regmaps.
7461 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7462 (sparc_gregmap, sparc_fpregmap): ... these.
7463 (sparc_supply_gregset, sparc_collect_gregset)
7464 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7465 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7467 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7468 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7470 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7472 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7473 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7474 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7476 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7477 (sparc32_bsd_fpregset): Rename to...
7478 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7479 (sparc32_bsd_fpregmap): ... these.
7480 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7481 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7482 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7483 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7484 (struct sparc_gregmap, struct sparc_fpregmap)
7485 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7486 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7487 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7488 (sparc32_supply_regset, sparc32_collect_gregset)
7489 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7491 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7492 (sparc64_linux_ptrace_gregmap): ... this.
7493 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7494 (_initialize_sparc64_linux_nat): Rename regmaps.
7495 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7496 (sparc64_linux_core_gregmap): ... this.
7497 (sparc64_linux_supply_core_gregset)
7498 (sparc64_linux_collect_core_gregset)
7499 (sparc64_linux_supply_core_fpregset)
7500 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7501 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7502 (sparc64_sol2_fpregset): Rename to...
7503 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7504 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7505 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7507 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7508 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7509 (sparc64_bsd_fpregset): Rename to...
7510 (struct sparc_gregmap, sparc64_sol2_gregmap)
7511 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7512 (sparc64_bsd_fpregmap): ... these.
7513 (sparc64_supply_gregset, sparc64_collect_gregset)
7514 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7516 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7517 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7518 (sparc64fbsd_gregmap): ... this.
7519 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7520 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7522 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7523 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7524 (sparc64nbsd_collect_fpregset): Likewise.
7525 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7526 (sparc64nbsd_gregmap): ... this.
7527 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7529 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7530 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7531 (sparc64obsd_gregmap): ... this.
7532 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7534 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7535 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7536 (sparc32nbsd_gregmap): ... this.
7537 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7540 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7542 * score-tdep.c (score7_linux_gregset): New static regset
7544 (score7_linux_regset_from_core_section): Remove dynamic regset
7546 (score_gdbarch_init): Drop allocation of tdep structure.
7547 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7549 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7551 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7553 (am33_regset_from_core_section): Remove dynamic regset
7556 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7558 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7559 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7561 (mips_linux_regset_from_core_section): Remove dynamic regset
7563 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7564 'gregset64', 'fpregset', and 'fpregset64'.
7565 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7566 deleted tdep fields.
7568 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7570 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7572 (amd64_regset_from_core_section): Remove dynamic regset
7574 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7576 (amd64obsd_regset_from_core_section): Remove dynamic regset
7578 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7580 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7581 x86-common regset supply function.
7582 * i386-tdep.c (i386_collect_gregset): Make static.
7583 (i386_gregset): New global regset structure.
7584 (i386_fpregset, i386_xstateregset): New static regset structures.
7585 (i386_regset_from_core_section): Remove dynamic regset
7587 (i386_gdbarch_init): Remove initialization of tdep fields
7588 'gregset', 'fpregset', and 'xstateregset'.
7589 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7590 'fpregset', and 'xstateregset'.
7591 (i386_collect_gregset): Remove prototype.
7592 (i386_gregset): New declaration.
7593 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7595 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7598 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7600 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7601 (arm_linux_vfpregset): New static regset structures.
7602 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7604 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7605 and 'vfpregset' fields.
7607 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7609 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7610 (aarch64_linux_fpregset): New static regset structures.
7611 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7612 of regset structures.
7613 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7616 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7618 * regset.h (struct regset): Remove gdbarch field.
7619 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7620 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7621 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7623 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7624 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7625 (ppc32_linux_vsxregset): Likewise.
7626 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7627 via the regcache instead of the regset.
7628 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7629 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7630 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7631 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7634 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7636 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7637 Constify structures.
7638 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7639 (alphanbsd_aout_gregset): Likewise.
7640 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7641 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7643 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7644 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7646 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7647 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7648 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7649 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7650 * m88k-tdep.c (m88k_gregset): Likewise.
7651 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7652 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7653 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7654 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7655 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7656 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7657 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7658 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7659 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7661 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7662 * sh-tdep.h (sh_corefile_gregset): Likewise.
7663 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7664 * vax-tdep.c (vax_gregset): Likewise.
7666 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7668 Fix TLS access for -static -pthread.
7669 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7670 (try_thread_db_load_1): Initialize it.
7671 (thread_db_get_thread_local_address): Call it if LM is zero.
7672 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7673 * target.h (struct target_ops) (to_get_thread_local_address): Add
7674 load_module_addr comment.
7676 2014-05-21 Pedro Alves <palves@redhat.com>
7678 * dcache.c (dcache_read_memory_partial): If reading the cache line
7679 fails, fallback to reading just the memory the caller wanted.
7681 2014-05-20 Doug Evans <dje@google.com>
7683 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7684 instead of get_current_arch.
7686 2014-05-20 Pedro Alves <palves@redhat.com>
7688 * NEWS: Mention that compare-sections now works with all targets.
7690 * remote.c (PACKET_qCRC): New enum value.
7691 (remote_verify_memory): Don't send qCRC if the target has no
7692 execution. Use packet_support/packet_ok. If the target doesn't
7693 support the qCRC packet, fallback to a deep memory copy.
7694 (compare_sections_command): Say "target image" instead of "remote
7696 (_initialize_remote): Add PACKET_qCRC to the list of config
7697 packets that have no associated command. Extend comment.
7698 * target.c (simple_verify_memory, default_verify_memory): New
7700 * target.h (struct target_ops) <to_verify_memory>: Default to
7701 default_verify_memory.
7702 (simple_verify_memory): New declaration.
7703 * target-delegates.c: Regenerate.
7705 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7707 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7709 2014-05-20 Hui Zhu <hui@codesourcery.com>
7710 Yao Qi <yao@codesourcery.com>
7713 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7714 and change address of sp and pc.
7716 2014-05-19 Tom Tromey <tromey@redhat.com>
7718 * gdbtypes.c (rank_function): Use XNEWVEC.
7719 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7721 2014-05-19 Doug Evans <dje@google.com>
7723 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7724 build_type_unit_groups and moved closer to only caller. Remove
7725 arguments. All references updated. Remove outdated .gdb_index
7727 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7728 build_type_psymtabs_1.
7730 2014-05-19 Doug Evans <dje@google.com>
7732 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7733 n_type_unit_groups, all_type_unit_groups. All uses removed.
7734 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7735 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7736 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7737 (add_type_unit_group_to_table): Delete.
7739 2014-05-19 Doug Evans <dje@google.com>
7741 * eval.c (evaluate_subexp_standard): Add some comments.
7743 2014-05-17 Doug Evans <xdje42@gmail.com>
7745 * progspace.c (remove_program_space): Delete, unused.
7746 * progspace.h (remove_program_space): Ditto.
7748 2014-05-17 Doug Evans <xdje42@gmail.com>
7750 * inferior.c (prune_inferiors): Fix comment.
7751 (remove_inferior_command): Call prune_program_spaces.
7753 2014-05-16 Doug Evans <dje@google.com>
7755 New command line option -D.
7757 * main.c (set_gdb_data_directory): New function.
7758 (captured_main): Recognize -D. Flag error for --data-directory "".
7759 Call set_gdb_data_directory.
7760 (print_gdb_help): Print --data-directory, -D.
7761 * main.h (set_gdb_data_directory): Declare.
7762 * top.c (staged_gdb_datadir): New static global.
7763 (set_gdb_datadir): Call set_gdb_data_directory
7764 (show_gdb_datadir): New function.
7765 (init_main): Update init of data-directory parameter.
7767 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7769 Import the "dirfd" gnulib module.
7770 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7771 * gnulib/aclocal.m4: Update.
7772 * gnulib/config.in: Update.
7773 * gnulib/configure: Update.
7774 * gnulib/import/Makefile.am: Update.
7775 * gnulib/import/Makefile.in: Update.
7776 * gnulib/import/dirfd.c: New.
7777 * gnulib/import/m4/dirfd.m4: New.
7778 * gnulib/import/m4/gnulib-cache.m4: Update.
7779 * gnulib/import/m4/gnulib-comp.m4: Update.
7781 2014-05-16 Pierre Muller <muller@sourceware.org>
7782 Yao Qi <yao@codesourcery.com>
7784 * valprint.c (print_wchar): Move the code on checking whether
7785 W is a printable wide char to the default branch of switch
7786 statement below. Call wchar_printable instead of gdb_iswprint.
7788 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7790 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7791 ldr.w and ldrd instructions.
7793 2014-05-15 Doug Evans <dje@google.com>
7795 * dwarf2read.c (read_structure_type): Delete outdated comments.
7797 2014-05-14 Tom Tromey <tromey@redhat.com>
7799 * macrocmd.c (print_macro_definition): Reindent.
7801 2014-05-13 Doug Evans <xdje42@gmail.com>
7803 * python/py-cmd.c (cmdpy_completer): Add comment.
7804 (completers): Make const.
7806 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7808 * infrun.c (resume): Remove should_resume (unused). Move up
7809 declaration of resume_ptid.
7811 2014-05-13 Tom Tromey <tromey@redhat.com>
7813 * language.h (unop_type_check): Remove.
7814 (binop_type_check): Don't declare.
7816 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7818 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7819 call to regcache_raw_collect.
7821 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7823 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7824 mi_console->quote as the quoting character.
7826 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7828 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7830 2014-04-29 Tom Tromey <tromey@redhat.com>
7832 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7833 "show debug varobj".
7835 2014-05-07 Kyle McMartin <kyle@redhat.com>
7837 Pushed by Joel Brobecker <brobecker@adacore.com>.
7838 * aarch64-tdep.c (aarch64_software_single_step): New function.
7839 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7840 with aarch64_software_single_step.
7842 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7846 2014-05-05 Keith Seitz <keiths@redhat.com>
7848 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7849 variable or history value is successfully parsed.
7851 2014-05-05 Yao Qi <yao@codesourcery.com>
7852 Pedro Alves <palves@redhat.com>
7854 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7855 address of blocks that intersects the requested range. Trim
7856 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7858 * ctf.c (ctf_xfer_partial): Likewise.
7860 2014-05-05 Yao Qi <yao@codesourcery.com>
7862 * printcmd.c (display_command): Remove the check to
7863 target_has_execution.
7865 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7867 * ppcobsd-nat.c: Include "obsd-nat.h".
7868 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7870 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7872 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7874 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7875 and 16-bit signed and unsigned arguments. Update comment.
7876 (stap_parse_probe_arguments): Extend code to handle such
7877 arguments. Use warning instead of complaint to notify about
7878 unrecognized bitness.
7880 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7882 PR breakpoints/16889
7883 * stap-probe.c (stap_parse_probe_arguments): Simplify
7884 check for non-prefixed probes (i.e., probes whose
7885 arguments do not start with "N@"). Always set the
7886 argument type to a sane value.
7888 2014-05-01 David Taylor <dtaylor@emc.com>
7890 * remote.c (compare_sections_command): Add -r option to compare
7891 all loadable read-only sections.
7893 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7895 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7896 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7898 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7899 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7900 Remove unused CORE_ADDR argument. Update all callers.
7902 2014-04-29 Pedro Alves <palves@redhat.com>
7904 * remote.c (struct packet_config) <detect>: Extend comment.
7905 (add_packet_config_cmd): Don't set the config's detect or support
7907 (init_all_packet_configs): Also initialize the config's 'detect'
7909 (reset_all_packet_configs_support): New function.
7910 (remote_open_1): Call reset_all_packet_configs_support instead of
7911 init_all_packet_configs.
7912 (_initialize_remote): Initialize all packet configs. Assert that
7913 all packets have an associated command, except a few known
7916 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7918 * dwarf2read.c (read_subrange_type): Handle dynamic
7919 DW_AT_lower_bound attributes.
7921 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7923 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7924 dynamic bounds before computing its upper bound.
7925 (ada_discrete_type_low_bound): Same as above with the lower bound.
7927 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7929 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7930 range types. Adjust the array handling implementation to
7931 take advantage of this change.
7932 (resolve_dynamic_range): New function, mostly extracted from
7933 resolve_dynamic_bounds.
7934 (resolve_dynamic_array): New function, mostly extracted from
7935 resolve_dynamic_bounds.
7936 (resolve_dynamic_bounds): Delete.
7937 (resolve_dynamic_type): Reimplement. Add handling of
7938 TYPE_CODE_RANGE types.
7940 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7942 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7943 handling of parallel ___XA types.
7945 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7947 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7948 unnecessary second call to static_unwrap_type.
7950 2014-04-27 Hui Zhu <hui@codesourcery.com>
7952 * stack.c (print_frame_info): Call do_gdb_disassembly with
7953 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7955 2014-04-26 Doug Evans <xdje42@gmail.com>
7957 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7959 2014-04-25 Pedro Alves <palves@redhat.com>
7962 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7963 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7964 and newline from built string.
7965 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7966 (linux_ptrace_attach_fail_reason): ... this.
7967 * linux-nat.c (linux_nat_attach): Adjust to use
7968 linux_ptrace_attach_fail_reason.
7970 2014-04-25 Pedro Alves <palves@redhat.com>
7972 * remote.c (struct remote_state): Remove multi_process_aware,
7973 non_stop_aware, cond_tracepoints, cond_breakpoints,
7974 breakpoint_commands, fast_tracepoints, static_tracepoints,
7975 install_in_trace, disconnected_tracing,
7976 enable_disable_tracepoints, string_tracing, and
7977 augmented_libraries_svr4_read fields.
7978 (remote_multi_process_p): Move further below in the file.
7979 (struct packet_config): Add comments.
7980 (update_packet_config): Delete function.
7981 (show_packet_config_cmd): Use packet_config_support.
7982 (add_packet_config_cmd): Use NULL as set callback.
7983 (packet_ok): "set remote foo-packet"-style commands no longer
7984 change config->supported -- adjust.
7985 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7986 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7987 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7988 (PACKET_QNonStop, PACKET_multiprocess_feature)
7989 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7990 (PACKET_DisconnectedTracing_feature)
7991 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7992 (set_remote_protocol_packet_cmd): Delete function.
7993 (packet_config_support, packet_support): New functions.
7994 (set_remote_protocol_Z_packet_cmd): Don't call
7995 update_packet_config.
7996 (remote_query_attached, remote_pass_signals)
7997 (remote_program_signals, remote_threads_info)
7998 (remote_threads_extra_info, remote_start_remote): Use
8000 (remote_start_remote): Use packet_config_support and
8002 (init_all_packet_configs): Set all packets to unknown support,
8003 instead of calling update_packet_config.
8004 (remote_check_symbols): Use packet_support.
8005 (remote_supported_packet): Unconditionally set the packet config's
8007 (remote_multi_process_feature, remote_non_stop_feature)
8008 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8009 (remote_breakpoint_commands_feature)
8010 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8011 (remote_install_in_trace_feature)
8012 (remote_disconnected_tracing_feature)
8013 (remote_enable_disable_tracepoint_feature)
8014 (remote_string_tracing_feature)
8015 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8016 (remote_protocol_features): Adjust to use remote_supported_packet
8017 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8018 "ConditionalTracepoints", "ConditionalBreakpoints",
8019 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8020 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8021 "EnableDisableTracepoints", and "tracenz".
8022 (remote_query_supported): Use packet_support.
8023 (remote_open_1): Adjust.
8024 (extended_remote_attach_1): Use packet_support. Switch on the
8025 result of packet_ok instead of checking whether the packet ended
8027 (remote_vcont_resume): Use packet_support.
8028 (remote_resume, remote_stop_ns, fetch_register_using_p)
8029 (remote_prepare_to_store, store_register_using_P)
8030 (check_binary_download, remote_write_bytes): Use packet_support.
8031 (remote_vkill): Use packet_support. Switch on the result of
8032 packet_ok instead of checking whether the packet ended up
8034 (extended_remote_supports_disable_randomization): Use
8036 (extended_remote_run): Switch on the result of packet_ok instead
8037 of checking whether the packet ended up disabled.
8038 (remote_insert_breakpoint, remote_remove_breakpoint)
8039 (remote_insert_watchpoint, remote_remove_watchpoint)
8040 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8042 (remote_search_memory): Use packet_config_support.
8043 (remote_get_thread_local_address, remote_get_tib_address)
8044 (remote_hostio_send_command, remote_can_execute_reverse): Use
8046 (remote_supports_cond_tracepoints)
8047 (remote_supports_cond_breakpoints)
8048 (remote_supports_fast_tracepoints)
8049 (remote_supports_static_tracepoints)
8050 (remote_supports_install_in_trace)
8051 (remote_supports_enable_disable_tracepoint)
8052 (remote_supports_string_tracing)
8053 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8054 the packet config says the feature is enabled or disabled.
8055 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8056 (remote_get_trace_status): Use packet_support.
8057 (remote_set_disconnected_tracing): Adjust to check whether the
8058 feature is enabled with packet_support.
8059 (remote_set_trace_buffer_size, remote_use_agent)
8060 (remote_can_use_agent, remote_supports_btrace): Use
8062 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8063 Use packet_config_support.
8064 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8065 the packet config says the feature is enabled or disabled.
8066 (set_range_stepping): Use packet_support.
8068 2014-04-25 Tom Tromey <tromey@redhat.com>
8070 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8073 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8075 * NEWS: Mention support for C99 variable length arrays.
8077 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8079 * ada-lang.c (standard_exc): Expand introductory comment.
8081 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8082 Walfred Tedeschi <walfred.tedeschi@intel.com>
8084 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8086 (amd64_linux_read_description): Add code to handle AVX512 xstate
8087 mask and return respective tdesc.
8088 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8089 and features/i386/x32-avx512-linux.c.
8090 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8091 (amd64_linux_core_read_description): Add code to handle AVX512
8092 xstate mask and return respective tdesc.
8093 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8094 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8096 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8097 (tdesc_amd64_avx512_linux): New prototype.
8098 (tdesc_x32_avx512_linux): Likewise.
8099 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8100 features/i386/x32-avx512.c.
8101 (amd64_ymm_avx512_names): New register names for pseudo
8103 (amd64_ymmh_avx512_names): New register names for raw registers
8105 (amd64_k_names): New register names for K registers.
8106 (amd64_zmmh_names): New register names for ZMM raw registers.
8107 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8108 (amd64_xmm_avx512_names): New register names for XMM16-31
8110 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8112 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8113 if feature is present.
8114 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8115 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8116 (AMD64_NUM_REGS): Adjust to new number of registers.
8117 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8118 registers supplied via XSTATE by AVX512 registers.
8119 (i386_linux_read_description): Add case for AVX512.
8120 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8121 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8122 (i386_linux_core_read_description): Add case for AVX512.
8123 (i386_linux_init_abi): Install supported register note section
8125 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8127 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8128 registers to be number of zmm7h + 1.
8129 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8130 * i386-tdep.c: Include features/i386/i386-avx512.c.
8131 (i386_zmm_names): Add ZMM pseudo register names array.
8132 (i386_zmmh_names): Add ZMM raw register names array.
8133 (i386_k_names): Add K raw register names array.
8134 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8135 registers. AVX512 has 16 more ZMM registers than there are YMM
8137 (i386_zmmh_regnum_p): Add function to look up register number of
8139 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8140 (i386_k_regnum_p): Likewise for K raw registers.
8141 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8142 registers added by AVX512.
8143 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8144 registers added by AVX512.
8145 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8147 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8148 (i386_pseudo_register_name): Add ZMM pseudo registers.
8149 (i386_zmm_type): Construct and return vector registers type for ZMM
8151 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8152 ZMM0-31 pseudo registers and K registers.
8153 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8154 and YMM16-31 registers from register cache.
8155 (i386_pseudo_register_write): Add code to write K, ZMM and
8157 (i386_register_reggroup_p): Add code to include/exclude AVX512
8158 registers in/from respective register groups.
8159 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8160 registers if feature is present in xcr0.
8161 (i386_gdbarch_init): Add code to initialize AVX512 feature
8162 variables in tdep structure, wire in pseudo registers and call
8163 initialize_tdesc_i386_avx512.
8164 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8166 (i386_regnum): Add AVX512 registers.
8167 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8168 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8169 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8170 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8172 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8173 (i386_ymm_avx512_regnum_p): Likewise.
8174 (i386_k_regnum_p): Likewise.
8175 (i386_zmm_regnum_p): Likewise.
8176 (i386_zmmh_regnum_p): Likewise.
8177 * i387-tdep.c : Update year in copyright notice.
8178 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8180 (XSAVE_YMM_AVX512_ADDR): New macro.
8181 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8183 (XSAVE_XMM_AVX512_ADDR): New macro.
8184 (xsave_avx512_k_offset): New table for K register offsets in
8186 (XSAVE_AVX512_K_ADDR): New macro.
8187 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8189 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8190 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8192 (i387_collect_xsave): Add code to collect AVX512 registers from
8194 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8195 of XMM16-31 registers.
8196 (I387_NUM_K_REGS): New define for number of K registers.
8197 (I387_K0_REGNUM): New define for K0 register number.
8198 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8199 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8200 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8202 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8203 (I387_XMM16_REGNUM): New define for XMM16 register number.
8204 (I387_YMM0_REGNUM): New define for YMM0 register number.
8205 (I387_KEND_REGNUM): New define for last K register number.
8206 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8207 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8209 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8211 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8213 * features/Makefile: Add AVX512 related files.
8214 * features/i386/32bit-avx512.xml: New file.
8215 * features/i386/64bit-avx512.xml: Likewise.
8216 * features/i386/amd64-avx512-linux.c: Likewise.
8217 * features/i386/amd64-avx512-linux.xml: Likewise.
8218 * features/i386/amd64-avx512.c: Likewise.
8219 * features/i386/amd64-avx512.xml: Likewise.
8220 * features/i386/i386-avx512-linux.c: Likewise.
8221 * features/i386/i386-avx512-linux.xml: Likewise.
8222 * features/i386/i386-avx512.c: Likewise.
8223 * features/i386/i386-avx512.xml: Likewise.
8224 * features/i386/x32-avx512-linux.c: Likewise.
8225 * features/i386/x32-avx512-linux.xml: Likewise.
8226 * features/i386/x32-avx512.c: Likewise.
8227 * features/i386/x32-avx512.xml: Likewise.
8228 * regformats/i386/amd64-avx512-linux.dat: New file.
8229 * regformats/i386/amd64-avx512.dat: Likewise.
8230 * regformats/i386/i386-avx512-linux.dat: Likewise.
8231 * regformats/i386/i386-avx512.dat: Likewise.
8232 * regformats/i386/x32-avx512-linux.dat: Likewise.
8233 * regformats/i386/x32-avx512.dat: Likewise.
8234 * NEWS: Add note about new support for AVX512.
8237 2014-04-23 Pedro Alves <palves@redhat.com>
8239 * breakpoint.c (insert_bp_location): Tolerate errors if the
8240 breakpoint is set in a user-loaded objfile.
8241 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8242 location is marked shlib_disabled. If the breakpoint is set in a
8243 user-loaded objfile is a GDB-side memory breakpoint, validate it
8244 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8245 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8247 * mem-break.c (memory_validate_breakpoint): New function.
8248 * objfiles.c (userloaded_objfile_contains_address_p): New
8250 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8251 * target.h (memory_validate_breakpoint): New declaration.
8253 2014-04-23 Pedro Alves <palves@redhat.com>
8255 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8256 the breakpoint is set in a shared library, only suppress
8257 errors for software breakpoints, not hardware breakpoints.
8259 2014-04-22 Pedro Alves <palves@redhat.com>
8261 * infrun.c (schedlock_applies): New function, factored out from
8262 find_thread_needs_step_over.
8263 (find_thread_needs_step_over): Use it.
8264 (switch_back_to_stepped_thread): Always clear trap_expected if the
8265 step over is finished. Return early if scheduler locking applies.
8266 Look for the stepping thread and a potential step-over thread with
8268 (currently_stepping_or_nexting_callback): Delete.
8270 2014-04-22 Nick Clifton <nickc@redhat.com>
8272 * NEWS: Mention that ARM sim now supports tracing.
8274 2014-04-22 Yao Qi <yao@codesourcery.com>
8276 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8278 * tracefile.c (tracefile_fetch_registers): ... it. New
8280 * tracefile.h (tracefile_fetch_registers): Declare.
8281 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8282 tracefile_fetch_registers.
8284 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8287 * windows-nat.c (thread_rec): Don't display a warning when
8288 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8289 fails for any reason, set th->suspended to -1, so that we don't
8290 try to resume such a thread. Also, don't return NULL in these
8291 cases, to avoid completely ruin the session due to "PC register is
8292 not available" error.
8293 (do_windows_fetch_inferior_registers): Check errors in
8294 GetThreadContext call.
8295 (windows_continue): Accept an additional argument KILLED; if not
8296 zero, ignore errors in the SetThreadContext call, since the
8297 inferior was killed and is shutting down.
8298 (windows_resume, get_windows_debug_event)
8299 (windows_create_inferior, windows_mourn_inferior)
8300 (windows_kill_inferior): All callers of windows_continue changed
8301 to adjust to its new calling sequence.
8303 2014-04-19 Yao Qi <yao@codesourcery.com>
8305 * ctf.c (ctf_open): Call post_create_inferior.
8307 2014-04-19 Yao Qi <yao@codesourcery.com>
8309 * ctf.c (handle_id): New static variable.
8310 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8311 value. Get the declaration of event "register" and get length
8312 of field "contents".
8314 2014-04-19 Yao Qi <yao@codesourcery.com>
8316 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8318 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8320 * valops.c (oload_method_static): Remove unnecessary argument
8321 METHOD. Update all callers.
8323 2014-04-18 Pedro alves <palves@redhat.com>
8324 Tom Tromey <tromey@redhat.com>
8327 * frame.c (get_prev_frame_1): Rename to ...
8328 (get_prev_frame_always): ... this, and make extern. Adjust.
8329 (skip_artificial_frames): Use get_prev_frame_always.
8330 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8331 (get_frame_unwind_stop_reason): Adjust to rename.
8332 * frame.h (get_prev_frame_always): Declare.
8333 * inline-frame.c: Include frame.h.
8334 (inline_frame_this_id): Use get_prev_frame_always.
8336 2014-04-18 Tristan Gingold <gingold@adacore.com>
8338 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8339 code by using bfd_mach_o_get_base_address.
8341 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8343 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8344 (spu_ax_pseudo_register_collect): New function.
8345 (spu_ax_pseudo_register_push_stack): Likewise.
8346 (spu_dwarf_reg_to_regnum): Likewise.
8347 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8349 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8351 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8352 Replace FRAME argument with FRAME_ID.
8353 * gdbarch.c, gdbarch.h: Regenerate.
8354 * findvar.c (default_value_from_register): Add GDBARCH argument;
8355 replace FRAME by FRAME_ID. No longer call get_frame_id.
8356 (value_from_register): Update call to gdbarch_value_from_register.
8357 * value.h (default_value_from_register): Update prototype.
8358 * s390-linux-tdep.c (s390_value_from_register): Update interface
8359 and call to default_value_from_register.
8360 * spu-tdep.c (spu_value_from_register): Likewise.
8362 * findvar.c (address_from_register): Remove TYPE argument.
8363 Do not call value_from_register; use gdbarch_value_from_register
8364 with null_frame_id instead.
8365 * value.h (address_from_register): Update prototype.
8366 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8367 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8368 address_from_register interface change.
8370 2014-04-17 Yao Qi <yao@codesourcery.com>
8372 * gdbtypes.h: Update comments to link to types and macros'
8375 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8377 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8379 2014-04-16 Keith Seitz <keiths@redhat.com>
8382 * dwarf2read.c (skip_one_die): Check that all relative-offset
8383 sibling DIEs fall within range of the current reader's buffer.
8384 (read_partial_die): Likewise.
8386 2014-04-16 Keith Seitz <keiths@redhat.com>
8389 * cp-namespace.c (lookup_symbol_file): If the type name of
8390 `this' is NULL, return immediately.
8392 2014-04-14 Keith Seitz <keiths@redhat.com>
8395 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8396 from symbol_matches_domain in symtab.c. All local callers
8397 of symbol_matches_domain updated.
8398 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8399 search STRUCT_DOMAIN.
8400 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8401 independently. standard_lookup will do that automatically.
8402 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8403 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8404 (cp_lookup_symbol_in_namespace): Likewise.
8405 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8406 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8407 may return a STRUCT_DOMAIN match.
8408 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8409 * cp-support.c: Include language.h.
8410 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8412 * psymtab.c (match_partial_symbol): Compare the requested
8413 domain with the symbol's domain directly.
8414 (lookup_partial_symbol): Likewise.
8415 * symtab.c (lookup_symbol_in_language): Explain when/why
8416 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8417 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8418 appropriate languages.
8419 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8420 and moved to ada-lang.c
8421 (lookup_block_symbol): Explain that this function only returns
8422 symbol matching the requested DOMAIN.
8423 Compare the requested domain with the symbol's domain directly.
8424 (iterate_over_symbols): Compare the requested domain with the
8425 symbol's domain directly.
8426 * symtab.h (symbol_matches_domain): Remove.
8428 2014-04-14 Tom Tromey <tromey@redhat.com>
8431 * c-exp.y (type_aggregate_p): New function.
8432 (qualified_name, classify_inner_name): Use it.
8433 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8434 and TYPE_TARGET_TYPE of an enum type.
8435 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8437 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8438 handle TYPE_DECLARED_CLASS.
8439 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8441 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8442 * valops.c (enum_constant_from_type): New function.
8443 (value_aggregate_elt): Use it.
8444 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8447 2014-04-14 Tom Tromey <tromey@redhat.com>
8449 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8450 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8452 * value.h (value_aggregate_elt): Update.
8454 2014-04-14 Tom Tromey <tromey@redhat.com>
8456 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8458 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8460 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8461 (evaluate_subexp_standard): Pass noside argument.
8462 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8463 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8464 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8465 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8466 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8468 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8470 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8471 points to a constant blob.
8473 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8475 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8476 property and store it as the high bound and flag the range accordingly.
8477 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8478 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8479 * gdbtypes.h (enum range_flags): New enum.
8480 (struct range_bounds): Add flags member.
8482 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8484 * c-typeprint.c (c_type_print_varspec_suffix): Added
8485 check for not yet resolved high bound. If unresolved, print
8486 "variable length" string to the console instead of random
8489 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8491 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8493 (ada_template_to_fixed_record_type_1): Likewise.
8494 (ada_to_fixed_type_1): Likewise.
8495 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8496 (cp_print_value): Likewise.
8497 * d-valprint.c (dynamic_array_type): Likewise.
8498 * findvar.c (address_of_variable): Likewise.
8499 * jv-valprint.c (java_value_print): Likewise.
8500 * valops.c (value_ind): Likewise.
8501 * value.c (coerce_ref): Likewise.
8503 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8505 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8506 value and retrieve the dynamic type size.
8508 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8510 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8511 passed to sizeof is dynamic evaluate the argument to compute the length.
8513 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8514 Joel Brobecker <brobecker@adacore.com>
8516 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8517 (dwarf2_evaluate_property): New function.
8518 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8519 * dwarf2read.c (attr_to_dynamic_prop): New function.
8520 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8522 * gdbtypes.c: Include dwarf2loc.h.
8523 (is_dynamic_type): New function.
8524 (resolve_dynamic_type): New function.
8525 (resolve_dynamic_bounds): New function.
8526 (get_type_length): New function.
8527 (check_typedef): Use get_type_length to compute type length.
8528 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8529 (TYPE_LOW_BOUND_KIND): New macro.
8530 (is_dynamic_type): New function prototype.
8531 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8532 to resolve dynamic properties of the type. Update comment.
8533 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8535 2014-04-14 Richard Henderson <rth@redhat.com>
8537 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8539 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8540 Doug Evans <xdje42@gmail.com>
8542 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8543 dereference TYPE_CODE_REF values.
8545 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8547 Revert the following changes due to regressions:
8549 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8550 (dwarf2_evaluate_property): New function.
8551 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8552 * dwarf2read.c (attr_to_dynamic_prop): New function.
8553 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8555 * gdbtypes.c: Include dwarf2loc.h.
8556 (is_dynamic_type): New function.
8557 (resolve_dynamic_type): New function.
8558 (resolve_dynamic_bounds): New function.
8559 (get_type_length): New function.
8560 (check_typedef): Use get_type_length to compute type length.
8561 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8562 (TYPE_LOW_BOUND_KIND): New macro.
8563 (is_dynamic_type): New function prototype.
8564 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8565 to resolve dynamic properties of the type. Update comment.
8566 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8568 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8569 passed to sizeof is dynamic evaluate the argument to compute the length.
8571 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8572 value and retrieve the dynamic type size.
8574 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8575 (ada_template_to_fixed_record_type_1): Likewise.
8576 (ada_to_fixed_type_1): Likewise.
8577 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8578 (cp_print_value): Likewise.
8579 * d-valprint.c (dynamic_array_type): Likewise.
8580 * eval.c (evaluate_subexp_with_coercion): Likewise.
8581 * findvar.c (address_of_variable): Likewise.
8582 * jv-valprint.c (java_value_print): Likewise.
8583 * valops.c (value_ind): Likewise.
8584 * value.c (coerce_ref): Likewise.
8586 * c-typeprint.c (c_type_print_varspec_suffix): Added
8587 check for not yet resolved high bound. If unresolved, print
8588 "variable length" string to the console instead of random
8591 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8592 property and store it as the high bound and flag the range accordingly.
8593 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8594 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8595 * gdbtypes.h (enum range_flags): New enum.
8596 (struct range_bounds): Add flags member.
8598 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8599 points to a constant blob.
8601 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8602 (evaluate_subexp_standard): Pass noside argument.
8603 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8604 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8605 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8606 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8607 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8609 2014-04-11 Keith Seitz <keiths@redhat.com>
8612 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8613 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8616 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8618 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8619 (evaluate_subexp_standard): Pass noside argument.
8620 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8621 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8622 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8623 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8624 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8626 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8628 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8629 points to a constant blob.
8631 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8633 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8634 property and store it as the high bound and flag the range accordingly.
8635 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8636 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8637 * gdbtypes.h (enum range_flags): New enum.
8638 (struct range_bounds): Add flags member.
8640 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8642 * c-typeprint.c (c_type_print_varspec_suffix): Added
8643 check for not yet resolved high bound. If unresolved, print
8644 "variable length" string to the console instead of random
8647 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8649 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8650 (ada_template_to_fixed_record_type_1): Likewise.
8651 (ada_to_fixed_type_1): Likewise.
8652 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8653 (cp_print_value): Likewise.
8654 * d-valprint.c (dynamic_array_type): Likewise.
8655 * eval.c (evaluate_subexp_with_coercion): Likewise.
8656 * findvar.c (address_of_variable): Likewise.
8657 * jv-valprint.c (java_value_print): Likewise.
8658 * valops.c (value_ind): Likewise.
8659 * value.c (coerce_ref): Likewise.
8661 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8663 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8664 value and retrieve the dynamic type size.
8666 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8668 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8669 passed to sizeof is dynamic evaluate the argument to compute the length.
8671 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8673 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8674 (dwarf2_evaluate_property): New function.
8675 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8676 * dwarf2read.c (attr_to_dynamic_prop): New function.
8677 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8679 * gdbtypes.c: Include dwarf2loc.h.
8680 (is_dynamic_type): New function.
8681 (resolve_dynamic_type): New function.
8682 (resolve_dynamic_bounds): New function.
8683 (get_type_length): New function.
8684 (check_typedef): Use get_type_length to compute type length.
8685 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8686 (TYPE_LOW_BOUND_KIND): New macro.
8687 (is_dynamic_type): New function prototype.
8688 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8689 to resolve dynamic properties of the type. Update comment.
8690 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8692 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8694 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8695 declaring high/low bounds and change uses accordingly. Call
8696 create_range_type instead of create_static_range_type.
8697 * gdbtypes.c (create_range_type): New function.
8698 (create_range_type): Convert bounds into struct bound_prop and pass
8699 them to create_range_type.
8700 * gdbtypes.h (struct bound_prop): New struct.
8701 (create_range_type): New function prototype.
8702 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8703 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8704 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8706 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8708 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8710 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8711 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8712 * ada-lang.c: All uses of create_range_type updated.
8713 * coffread.c: All uses of create_range_type updated.
8714 * dwarf2read.c: All uses of create_range_type updated.
8715 * f-exp.y: All uses of create_range_type updated.
8716 * m2-valprint.c: All uses of create_range_type updated.
8717 * mdebugread.c: All uses of create_range_type updated.
8718 * stabsread.c: All uses of create_range_type updated.
8719 * valops.c: All uses of create_range_type updated.
8720 * valprint.c: All uses of create_range_type updated.
8722 2014-04-10 Pedro Alves <palves@redhat.com>
8724 * breakpoint.c (single_step_breakpoints)
8725 (single_step_gdbarch): Move up in the file.
8726 (one_breakpoint_xfer_memory): New function, factored out from ...
8727 (breakpoint_xfer_memory): ... here. Also process single-step
8730 2014-04-09 Tristan Gingold <gingold@adacore.com>
8732 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8734 (darwin_decode_exception_message): Free port only after use.
8736 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8738 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8739 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8740 when setting the size of call_length.
8742 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8744 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8745 dereference TYPE_CODE_REF values.
8747 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8749 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8750 end of warning message.
8752 2014-04-03 Doug Evans <dje@google.com>
8754 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8755 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8757 2014-04-02 Alan Modra <amodra@gmail.com>
8759 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8760 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8761 (struct symbol_file_add_from_memory_args): Add size field.
8762 (find_vdso_size): New function.
8763 (add_vsyscall_page): Attempt to find vdso size.
8765 2014-04-01 Doug Evans <dje@google.com>
8767 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8769 2014-04-01 Tristan Gingold <gingold@adacore.com>
8771 * darwin-nat.c (darwin_encode_reply): Add prototype.
8772 (darwin_decode_exception_message): Reply to unknown inferiors.
8773 (darwin_decode_message): Handle message by id. Ignore message
8774 to unknown inferior.
8775 (darwin_wait): Discard unknown messages, add debug trace.
8777 2014-03-31 Doug Evans <dje@google.com>
8779 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8782 2014-03-31 Doug Evans <dje@google.com>
8784 New option "set print symbol-loading".
8786 * solib.c (solib_read_symbols): Only print symbol loading messages
8788 (solib_add): If symbol loading is in "brief" mode, notify user
8789 symbols are being loaded.
8790 (reload_shared_libraries_1): Ditto.
8791 * symfile.c (print_symbol_loading_off): New static global.
8792 (print_symbol_loading_brief): New static global.
8793 (print_symbol_loading_full): New static global.
8794 (print_symbol_loading_enums): New static global.
8795 (print_symbol_loading): New static global.
8796 (print_symbol_loading_p): New function.
8797 (symbol_file_add_with_addrs): Only print symbol loading messages
8799 (_initialize_symfile): Register "print symbol-loading" set/show
8801 * symfile.h (print_symbol_loading_p): Declare.
8803 2014-03-30 Doug Evans <xdje42@gmail.com>
8805 * infrun.c (set_last_target_status): New function.
8806 (handle_inferior_event): Call it.
8808 2014-03-30 Doug Evans <xdje42@gmail.com>
8810 * inferior.h (enum stop_kind): Improve comment.
8812 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8814 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8815 a reference, strip the reference layer before calling
8816 the lang_ops value_has_mutated callback.
8818 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8820 Remove some globals from our parser.
8821 * language.c (unk_lang_parser): Add "struct parser_state"
8823 * language.h (struct language_defn) <la_parser>: Likewise.
8824 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8825 (initialize_expout): Add "struct parser_state" argument.
8826 Rewrite function to use the parser state.
8827 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8828 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8829 write_exp_elt_longcst, write_exp_elt_dblcst,
8830 write_exp_elt_decfloatcst, write_exp_elt_type,
8831 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8832 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8833 write_dollar_variable): Likewise.
8834 (parse_exp_in_context_1): Use parser state.
8835 (insert_type_address_space): Add "struct parser_state" argument.
8837 (increase_expout_size): New function.
8838 * parser-defs.h: Forward declare "struct language_defn" and
8839 "struct parser_state".
8840 (expout, expout_size, expout_ptr): Remove extern declarations.
8841 (parse_gdbarch, parse_language): Rewrite macro declarations to
8842 accept the parser state.
8843 (struct parser_state): New struct.
8844 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8845 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8846 write_exp_elt_decfloatcst, write_exp_elt_type,
8847 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8848 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8849 write_exp_msymbol, write_dollar_variable,
8850 mark_struct_expression, insert_type_address_space): Add "struct
8851 parser_state" argument.
8852 (increase_expout_size): New function.
8853 * utils.c (do_clear_parser_state): New function.
8854 (make_cleanup_clear_parser_state): Likewise.
8855 * utils.h (make_cleanup_clear_parser_state): New function
8857 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8858 Update calls to write_exp* in order to pass the parser state.
8859 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8860 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8861 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8862 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8863 * stap-probe.c (stap_parse_register_operand): Likewise.
8864 (stap_parse_single_operand): Likewise.
8865 (stap_parse_argument_1): Likewise.
8866 (stap_parse_argument): Use parser state.
8867 * stap-probe.h: Include "parser-defs.h".
8868 (struct stap_parse_info) <pstate>: New field.
8869 * c-exp.y (parse_type): Rewrite to use parser state.
8870 (yyparse): Redefine to c_parse_internal.
8871 (pstate): New global variable.
8872 (parse_number): Add "struct parser_state" argument.
8873 (write_destructor_name): Likewise.
8874 (type_exp): Update calls to write_exp* and similars in order to
8876 (exp1, exp, variable, qualified_name, space_identifier,
8877 typename, typebase): Likewise.
8878 (write_destructor_name, parse_number, lex_one_token,
8879 classify_name, classify_inner_name, c_parse): Add "struct
8880 parser_state" argument. Update function to use parser state.
8881 * c-lang.h: Forward declare "struct parser_state".
8882 (c_parse): Add "struct parser_state" argument.
8883 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8884 (yyparse): Redefine macro to ada_parse_internal.
8885 (pstate): New variable.
8886 (write_int, write_object_renaming, write_var_or_type,
8887 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8888 type_int, type_long, type_long_long, type_float, type_double,
8889 type_long_double, type_char, type_boolean, type_system_address):
8890 Add "struct parser_state" argument.
8891 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8892 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8893 var_or_type, aggregate, aggregate_component_list,
8894 positional_list, others, component_group,
8895 component_associations): Update calls to write_exp* and similar
8896 functions in order to use parser state.
8897 (ada_parse, write_var_from_sym, write_int,
8898 write_exp_op_with_string, write_object_renaming,
8899 find_primitive_type, write_selectors, write_ambiguous_var,
8900 write_var_or_type, write_name_assoc, type_int, type_long,
8901 type_long_long, type_float, type_double, type_long_double,
8902 type_char, type_boolean, type_system_address): Add "struct
8903 parser_state" argument. Adjust function to use parser state.
8904 * ada-lang.c (parse): Likewise.
8905 * ada-lang.h: Forward declare "struct parser_state".
8906 (ada_parse): Add "struct parser_state" argument.
8907 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8908 calls to both functions.
8909 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8911 (yyparse): Redefine macro to f_parse_internal.
8912 (pstate): New variable.
8913 (parse_number): Add "struct parser_state" argument.
8914 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8915 and similars in order to use parser state.
8916 (parse_number): Adjust code to use parser state.
8918 (f_parse): New function.
8919 * f-lang.h: Forward declare "struct parser_state".
8920 (f_parse): Add "struct parser_state" argument.
8921 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8923 (yyparse): Redefine macro for java_parse_internal.
8924 (pstate): New variable.
8925 (push_expression_name, push_expression_name, insert_exp): Add
8926 "struct parser_state" argument.
8927 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8928 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8929 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8930 PostIncrementExpression, PostDecrementExpression,
8931 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8932 UnaryExpressionNotPlusMinus, CastExpression,
8933 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8934 RelationalExpression, EqualityExpression, AndExpression,
8935 ExclusiveOrExpression, InclusiveOrExpression,
8936 ConditionalAndExpression, ConditionalOrExpression,
8937 ConditionalExpression, Assignment, LeftHandSide): Update
8938 calls to write_exp* and similars in order to use parser state.
8939 (parse_number): Ajust code to use parser state.
8941 (java_parse): New function.
8942 (push_variable): Add "struct parser_state" argument. Adjust
8943 code to user parser state.
8944 (push_fieldnames, push_qualified_expression_name,
8945 push_expression_name, insert_exp): Likewise.
8946 * jv-lang.h: Forward declare "struct parser_state".
8947 (java_parse): Add "struct parser_state" argument.
8948 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8950 (yyparse): Redefine macro to m2_parse_internal.
8951 (pstate): New variable.
8952 (type_exp, exp, fblock, variable, type): Update calls to
8953 write_exp* and similars to use parser state.
8955 (m2_parse): New function.
8956 * m2-lang.h: Forward declare "struct parser_state".
8957 (m2_parse): Add "struct parser_state" argument.
8958 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8959 * objc-lang.h: Forward declare "struct parser_state".
8960 (end_msglist): Add "struct parser_state" argument.
8961 * p-exp.y (parse_type): Rewrite macro to use parser state.
8962 (yyparse): Redefine macro to pascal_parse_internal.
8963 (pstate): New variable.
8964 (parse_number): Add "struct parser_state" argument.
8965 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8966 write_exp* and similars in order to use parser state.
8967 (parse_number, yylex): Adjust code to use parser state.
8968 (pascal_parse): New function.
8969 * p-lang.h: Forward declare "struct parser_state".
8970 (pascal_parse): Add "struct parser_state" argument.
8971 * go-exp.y (parse_type): Rewrite macro to use parser state.
8972 (yyparse): Redefine macro to go_parse_internal.
8973 (pstate): New variable.
8974 (parse_number): Add "struct parser_state" argument.
8975 (type_exp, exp1, exp, variable, type): Update calls to
8976 write_exp* and similars in order to use parser state.
8977 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8978 to use parser state.
8979 (go_parse): Likewise.
8980 * go-lang.h: Forward declare "struct parser_state".
8981 (go_parse): Add "struct parser_state" argument.
8983 2014-03-27 Doug Evans <dje@google.com>
8985 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8987 2014-03-27 Doug Evans <dje@google.com>
8989 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8990 Remove argument abbrev_section. All callers updated.
8992 2014-03-27 Doug Evans <dje@google.com>
8994 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8995 addr_base, ranges_base.
8997 2014-03-26 Keith Seitz <keiths@redhat.com>
8999 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9000 types, not VAR_DOMAIN.
9002 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9004 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9006 * features/nios2-linux.c: Regenerated.
9007 * features/nios2.c: Regenerated.
9009 2014-03-25 Pedro Alves <palves@redhat.com>
9011 * cli/cli-script.c (script_from_file): Force the interpreter to
9014 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9016 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9017 small stack allocation.
9019 2014-03-24 Tristan Gingold <gingold@adacore.com>
9021 * darwin-nat.c (exc_server): Remove unused prototype.
9022 (darwin_dump_message): Correctly display data on x86_64.
9023 (darwin_encode_reply): Fix style.
9024 Add comments and fix indentation.
9026 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9028 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9030 2014-03-22 Doug Evans <xdje42@gmail.com>
9032 * infcmd.c: Whitespace fixes.
9033 (interrupt_command): Merge two function comments into one.
9035 2014-03-22 Doug Evans <xdje42@gmail.com>
9037 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9040 2014-03-22 Yao Qi <yao@codesourcery.com>
9042 * remote.c (target_read_live_memory): Remove.
9043 (memory_xfer_live_readonly_partial): Rename it to
9044 remote_xfer_live_readonly_partial. Remove argument 'object'.
9045 All callers updated. Call remote_read_bytes_1
9046 instead of target_read_live_memory.
9047 * tracepoint.c (set_traceframe_number): Remove.
9048 (make_cleanup_restore_traceframe_number): Likewise .
9049 * tracepoint.h (set_traceframe_number): Remove declaration.
9050 (make_cleanup_restore_traceframe_number): Likewise.
9052 2014-03-22 Yao Qi <yao@codesourcery.com>
9054 * remote.c (remote_read_bytes): Move code on reading from the
9056 (remote_read_bytes_1): ... here. New function.
9058 2014-03-22 Yao Qi <yao@codesourcery.com>
9060 * ctf.c (ctf_xfer_partial): Check the return value of
9061 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9062 return TARGET_XFER_UNAVAILABLE.
9063 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9064 * target.c (target_read_live_memory): Move it to remote.c.
9065 (memory_xfer_live_readonly_partial): Likewise.
9066 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9067 * remote.c (target_read_live_memory): Moved from target.c.
9068 (memory_xfer_live_readonly_partial): Likewise.
9069 (remote_read_bytes): Factored out from
9070 memory_xfer_partial_1.
9072 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9074 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9077 2014-03-21 Pedro Alves <palves@redhat.com>
9079 * infrun.c (normal_stop): Extend comment.
9081 2014-03-21 Hui Zhu <hui@codesourcery.com>
9082 Pedro Alves <palves@redhat.com>
9084 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9086 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9087 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9088 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9090 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9092 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9093 `z' formatted output modifier.
9095 2014-03-20 Tom Tromey <tromey@redhat.com>
9096 Sergio Durigan Junior <sergiodj@redhat.com>
9098 * probe.c (parse_probes): Turn assert into an ordinary error.
9099 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9100 exceptions when parsing probes. Rearrange the code for clarity.
9102 2014-03-20 Tom Tromey <tromey@redhat.com>
9105 * top.c (execute_command): Only dispatch events if the command
9108 2014-03-20 Tom Tromey <tromey@redhat.com>
9111 * infcall.c: Include event-top.h.
9112 (run_inferior_call): Call async_disable_stdin if needed.
9114 2014-03-20 Pedro Alves <palves@redhat.com>
9116 * infrun.c (prepare_to_proceed): Delete.
9117 (thread_still_needs_step_over): New function.
9118 (find_thread_needs_step_over): New function.
9119 (proceed): If the current thread needs a step-over, set its
9120 steping_over_breakpoint flag. Adjust to use
9121 find_thread_needs_step_over instead of prepare_to_proceed.
9122 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9123 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9125 (switch_back_to_stepped_thread): Step over breakpoints of all
9126 threads not the stepping thread, before switching back to the
9129 2014-03-20 Pedro Alves <palves@redhat.com>
9131 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9133 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9134 * infrun.c (saved_singlestep_ptid)
9135 (stepping_past_singlestep_breakpoint): Delete.
9136 (resume): Remove stepping_past_singlestep_breakpoint handling.
9137 (proceed): Store the prev_pc of the stepping thread too.
9138 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9140 (enum infwait_states): Delete infwait_thread_hop_state.
9141 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9143 (handle_inferior_event): Adjust.
9144 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9145 handling and the thread-hop code. Before removing single-step
9146 breakpoints, check whether the thread hit a single-step breakpoint
9147 of another thread. If it did, the trap is not a random signal.
9148 (switch_back_to_stepped_thread): If the event thread hit a
9149 single-step breakpoint, unblock it before switching to the
9150 stepping thread. Handle the case of the stepped thread having
9152 (keep_going): Handle the case of the current thread moving past a
9153 single-step breakpoint.
9155 2014-03-20 Pedro Alves <palves@redhat.com>
9158 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9159 are being stepped over.
9160 (breakpoint_address_match): Make extern.
9161 * breakpoint.h (breakpoint_address_match): New declaration.
9162 * inferior.h (stepping_past_instruction_at): New declaration.
9163 * infrun.c (struct step_over_info): New type.
9164 (step_over_info): New global.
9165 (set_step_over_info, clear_step_over_info)
9166 (stepping_past_instruction_at): New functions.
9167 (handle_inferior_event): Clear the step-over info when
9168 trap_expected is cleared.
9169 (resume): Remove now stale comment.
9170 (clear_proceed_status): Clear step-over info.
9171 (proceed): Adjust step-over handling to set or clear the step-over
9172 info instead of removing all breakpoints.
9173 (handle_signal_stop): When setting up a thread-hop, don't remove
9175 (stop_stepping): Clear step-over info.
9176 (keep_going): Adjust step-over handling to set or clear step-over
9177 info and then always inserting breakpoints, instead of removing
9178 all breakpoints when stepping over one.
9180 2014-03-20 Pedro Alves <palves@redhat.com>
9182 * infrun.c (previous_inferior_ptid): Adjust comment.
9183 (deferred_step_ptid): Delete.
9184 (infrun_thread_ptid_changed, prepare_to_proceed)
9185 (init_wait_for_inferior): Adjust.
9186 (handle_signal_stop): Delete deferred_step_ptid handling.
9188 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9191 * defs.h (sync_quit_force_run): New declaration.
9192 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9193 * event-top.c (async_sigterm_handler): New declaration.
9194 (async_sigterm_token): New variable.
9195 (async_init_signals): Create also async_sigterm_token.
9196 (async_sigterm_handler): New function.
9197 (sync_quit_force_run): New variable.
9198 (handle_sigterm): Replace quit_force call by other calls.
9199 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9201 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9203 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9204 offset into SPE pseudo registers.
9206 2014-03-18 Pedro Alves <palves@redhat.com>
9209 * inferior.h (print_stop_event): Declare.
9210 * infrun.c (print_stop_event): New, factored out from ...
9211 (normal_stop): ... this.
9212 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9213 of bpstat_print/print_stack_frame.
9215 2014-03-17 Tom Tromey <tromey@redhat.com>
9217 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9219 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9221 * ada-lang.c (decode_constrained_packed_array): Perform a
9222 minimal coercion for reference with coerce_ref instead of
9225 2014-03-17 Tristan Gingold <gingold@adacore.com>
9227 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9228 (darwin_solib_create_inferior_hook): Emit a warning if version
9231 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9233 * python/py-value.c (get_field_flag): Cast flag_name argument to
9234 PyObject_GetAttrString to support Python 2.4.
9236 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9238 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9239 (Global Maintainers): Remove Jan Kratochvil.
9241 2014-03-14 Pedro Alves <palves@redhat.com>
9243 * inferior.h (terminal_ours_for_output): Rename to ...
9244 (child_terminal_ours_for_output): ... this.
9245 (terminal_save_ours): Rename to ...
9246 (child_terminal_save_ours): ... this.
9247 (terminal_ours): Rename to ...
9248 (child_terminal_ours): ... this.
9249 (terminal_inferior): Rename to ...
9250 (child_terminal_inferior): ... this.
9251 (terminal_init_inferior): Rename to ...
9252 (child_terminal_init_inferior): ... this.
9253 (terminal_init_inferior_with_pgrp): Rename to ...
9254 (child_terminal_init_inferior_with_pgrp): ... this.
9255 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9256 (child_terminal_init_with_pgrp): ... this.
9257 (terminal_save_ours): Rename to ...
9258 (child_terminal_save_ours): ... this.
9259 (terminal_init_inferior): Rename to ...
9260 (child_terminal_init): ... this. Adjust.
9261 (terminal_inferior): Rename to ...
9262 (child_terminal_inferior): ... this.
9263 (terminal_ours_for_output): Rename to ...
9264 (child_terminal_ours_for_output): ... this. Adjust.
9265 (terminal_ours): Rename to ...
9266 (child_terminal_ours): ... this.
9267 (terminal_ours_1): Rename to ...
9268 (child_terminal_ours_1): ... this. Adjust.
9269 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9270 * windows-nat.c (do_initial_windows_stuff): Adjust.
9271 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9272 (gnu_terminal_init): ... this. Adjust.
9273 (gnu_target): Adjust.
9274 * inf-child.c (inf_child_target): Adjust.
9276 2014-03-13 Doug Evans <xdje42@gmail.com>
9279 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9282 2014-03-13 Doug Evans <xdje42@gmail.com>
9284 * value.c (record_latest_value): Call release_value_or_incref
9285 instead of release_value.
9287 2014-03-13 Pedro Alves <palves@redhat.com>
9289 * procfs.c (procfs_target): Don't override to_shortname,
9290 to_longname or to_doc.
9292 2014-03-13 Pedro Alves <palves@redhat.com>
9294 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9295 Unix in user visible strings.
9297 2014-03-12 Stan Shebs <stan@codesourcery.com>
9299 * gdbtypes.h: Annotate comments for Doxygen, add a page
9300 block comment with some general info.
9302 2014-03-12 Pedro Alves <palves@redhat.com>
9304 * infcmd.c (prepare_execution_command): New function, factored out
9305 from several execution commands.
9306 (run_command_1, continue_command, step_1, jump_command)
9307 (signal_command, until_command, advance_command, finish_command)
9308 (attach_command): Use prepare_execution_command.
9310 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9312 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9315 (struct arm_linux_thread_points): Removed.
9316 (struct arm_linux_process_info): New.
9317 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9318 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9319 (arm_linux_find_breakpoints_by_tid): Removed.
9320 (struct arch_lwp_info): New.
9321 (arm_linux_find_process_pid): New functions.
9322 (arm_linux_add_process): New functions.
9323 (arm_linux_process_info_get): New functions.
9324 (arm_linux_forget_process): New function.
9325 (arm_linux_get_debug_reg_state): New function.
9326 (struct update_registers_data): New.
9327 (update_registers_callback): New function.
9328 (arm_linux_insert_hw_breakpoint1): Updated.
9329 (arm_linux_remove_hw_breakpoint1): Updated.
9330 (arm_linux_insert_hw_breakpoint): Updated.
9331 (arm_linux_remove_hw_breakpoint): Updated.
9332 (arm_linux_insert_watchpoint): Updated.
9333 (arm_linux_remove_watchpoint): Updated.
9334 (arm_linux_new_thread): Updated.
9335 (arm_linux_prepare_to_resume): New function.
9336 (arm_linux_new_fork): New function.
9337 (_initialize_arm_linux_nat): Updated.
9339 2014-03-12 Pedro Alves <palves@redhat.com>
9341 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9343 2014-03-12 Tom Tromey <tromey@redhat.com>
9345 * inf-child.c (return_zero): New function.
9346 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9347 * aix-thread.c (aix_thread_inferior_created): New function.
9348 (aix_thread_attach): Remove.
9349 (init_aix_thread_ops): Don't set to_attach.
9350 (_initialize_aix_thread): Register inferior_created observer.
9351 * corelow.c (init_core_ops): Don't set to_attach or
9353 * exec.c (init_exec_ops): Don't set to_attach or
9355 * infcmd.c (run_command_1): Use find_run_target. Make direct
9357 (attach_command): Use find_attach_target. Make direct target
9359 * record-btrace.c (init_record_btrace_ops): Don't set
9361 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9363 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9364 set to_create_inferior.
9365 * target.c (complete_target_initialization): Add assertion.
9366 (target_create_inferior): Remove.
9367 (find_default_attach, find_default_create_inferior): Remove.
9368 (find_attach_target, find_run_target): New functions.
9369 (find_default_is_async_p, find_default_can_async_p)
9370 (target_supports_non_stop, target_attach): Remove.
9371 (init_dummy_target): Don't set to_create_inferior or
9372 to_supports_non_stop.
9373 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9374 TARGET_DEFAULT_FUNC.
9375 <to_create_inferior>: Add comment.
9376 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9377 TARGET_DEFAULT_RETURN.
9378 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9379 (find_attach_target, find_run_target): Declare.
9380 (target_create_inferior): Remove.
9381 (target_has_execution_1): Update comment.
9382 (target_supports_non_stop): Remove.
9383 * target-delegates.c: Rebuild.
9385 2014-03-12 Pedro Alves <palves@redhat.com>
9387 * inf-child.h: Update comment to not mention Unix.
9389 2014-03-12 Pedro Alves <palves@redhat.com>
9391 * inf-child.c: Update top comment to not mention Unix. Add
9392 generic comment describing how this target is meant to be used.
9393 (inf_child_post_attach, inf_child_post_startup_inferior)
9394 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9397 2014-03-12 Pedro Alves <palves@redhat.com>
9399 * nto-procfs.c: Include inf-child.h.
9400 (procfs_ops): Delete global.
9401 (procfs_can_run): Delete method.
9402 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9403 target pointer instead of referencing procfs_ops.
9404 (procfs_prepare_to_store): Delete.
9405 (init_procfs_ops): Delete function.
9406 (procfs_target): New function, based on init_procfs_ops, but
9407 inherit inf_child_target.
9408 (_initialize_procfs): Use procfs_target.
9410 2014-03-12 Pedro Alves <palves@redhat.com>
9412 * windows-nat.c: Include inf-child.h.
9413 (windows_ops): Delete global.
9414 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9416 (init_windows_ops): Delete function.
9417 (windows_target): New function, based on init_windows_ops, but
9418 inherit inf_child_target.
9419 (_initialize_windows_nat): Use windows_target. Install x86
9420 specific target methods here.
9422 2014-03-10 Doug Evans <xdje42@gmail.com>
9424 * guile/guile.c (call_initialize_gdb_module): New function.
9425 (initialize_guile): Replace call to scm_init_guile with call to
9428 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9430 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9431 in call to TYPE_CODE macro.
9433 2014-03-10 Jerome Guitton <guitton@adacore.com>
9435 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9436 Resolve tagged types to full view.
9438 2014-03-10 Hui Zhu <hui@codesourcery.com>
9440 * target.h (target_insert_breakpoint): Remove "hardware" from its
9443 2014-03-07 Doug Evans <dje@google.com>
9445 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9447 2014-03-07 Doug Evans <dje@google.com>
9449 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9450 Remove unused local comp_dir_attr. Assert exactly one of
9451 stub_comp_unit_die, stub_comp_dir is non-NULL.
9453 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9455 * target.h (complete_target_initialization, add_target):
9458 2014-03-07 Pedro Alves <palves@redhat.com>
9460 * go32-nat.c: Include inf-child.h.
9461 (go32_ops): Delete global.
9462 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9464 (go32_create_inferior): Push the passed in target pointer instead
9465 of referencing go32_ops.
9466 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9467 (go32_target): New function, based on init_go32_ops, but inherit
9469 (_initialize_go32_nat): Use go32_target. Move parts of
9472 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9474 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9475 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9476 SYMBOL_VALUE_ADDRESS.
9477 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9479 2014-03-06 Yao Qi <yao@codesourcery.com>
9481 * breakpoint.c (get_tracepoint_by_number): Remove argument
9482 optional_p. All callers updated. Adjust comments. Update
9484 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9486 2014-03-06 Yao Qi <yao@codesourcery.com>
9488 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9489 early if get_number returns zero. Use 'p' instead of 'args'.
9491 2014-03-06 Yao Qi <yao@codesourcery.com>
9493 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9496 2014-03-06 Yao Qi <yao@codesourcery.com>
9498 PR breakpoints/16508
9499 * tracepoint.c (check_trace_running): New function.
9500 (trace_find_command): Move code to check_trace_running and
9501 call check_trace_running.
9502 (trace_find_pc_command): Likewise.
9503 (trace_find_tracepoint_command): Likewise.
9504 (trace_find_line_command): Likewise.
9505 (trace_find_range_command): Likewise.
9506 * tracepoint.h (check_trace_running): Likewise.
9507 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9509 2014-03-06 Yao Qi <yao@codesourcery.com>
9511 * target.h (struct target_ops) <to_traceframe_info>: Use
9512 TARGET_DEFAULT_NORETURN (tcomplain ()).
9513 * target-delegates.c: Regenerated.
9515 2014-03-05 Pedro Alves <palves@redhat.com>
9518 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9519 void. Update comment.
9520 (dcache_xfer_memory): Delete.
9521 (dcache_read_memory_partial): New, based on the read bits of
9523 (dcache_update): Add status parameter. Use ULONGEST for len, and
9524 adjust. Discard cache lines if the reason for the update was
9526 * dcache.h (dcache_xfer_memory): Delete declaration.
9527 (dcache_read_memory_partial): New declaration.
9528 (dcache_update): Update prototype.
9529 * target.c (raw_memory_xfer_partial): Update the dcache here.
9530 (memory_xfer_partial_1): Don't handle dcache writes here.
9532 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9534 * remote-sim.c (gdbsim_load): Add const to prog.
9536 2014-03-03 Tom Tromey <tromey@redhat.com>
9538 * elfread.c (probe_key): Change to bfd_data.
9539 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9540 now per-BFD, not per-objfile.
9541 * stap-probe.c (stap_probe_destroy): Update comment.
9542 (handle_stap_probe): Allocate on the per-BFD obstack.
9544 2014-03-03 Tom Tromey <tromey@redhat.com>
9546 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9547 * breakpoint.c (create_longjmp_master_breakpoint): Use
9549 (add_location_to_breakpoint, bkpt_probe_insert_location)
9550 (bkpt_probe_remove_location): Update.
9551 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9552 * elfread.c (elf_symfile_relocate_probe): Remove.
9553 (elf_probe_fns): Update.
9554 (insert_exception_resume_breakpoint): Change type of "probe"
9555 parameter to bound_probe.
9556 (check_exception_resume): Update.
9557 * objfiles.c (objfile_relocate1): Don't relocate probes.
9558 * probe.c (bound_probe_s): New typedef.
9559 (parse_probes): Use get_probe_address. Set sal's objfile.
9560 (find_probe_by_pc): Return a bound_probe.
9561 (collect_probes): Return a VEC(bound_probe_s).
9562 (compare_probes): Update.
9563 (gen_ui_out_table_header_info): Change type of "probes"
9565 (info_probes_for_ops): Update.
9566 (get_probe_address): New function.
9567 (probe_safe_evaluate_at_pc): Update.
9568 * probe.h (struct probe_ops) <get_probe_address>: New field.
9569 <set_semaphore, clear_semaphore>: Add objfile parameter.
9570 (struct probe) <objfile>: Remove field.
9572 <address>: Update comment.
9573 (struct bound_probe): New.
9574 (find_probe_by_pc): Return a bound_probe.
9575 (get_probe_address): Declare.
9576 * solib-svr4.c (struct probe_and_action) <address>: New field.
9577 (hash_probe_and_action, equal_probe_and_action): Update.
9578 (register_solib_event_probe): Add address parameter.
9579 (solib_event_probe_at): Update.
9580 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9582 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9583 (stap_get_probe_address): New function.
9584 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9585 (compile_probe_arg): Update.
9586 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9588 (handle_stap_probe): Don't relocate the probe.
9589 (stap_relocate): Remove.
9590 (stap_gen_info_probes_table_values): Update.
9591 (stap_probe_ops): Remove stap_relocate.
9592 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9593 (debug_sym_probe_fns): Update.
9594 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9595 * symtab.c (init_sal): Use memset.
9596 * symtab.h (struct symtab_and_line) <objfile>: New field.
9597 * tracepoint.c (start_tracing, stop_tracing): Update.
9599 2014-03-03 Tom Tromey <tromey@redhat.com>
9601 * probe.h (parse_probes, find_probe_by_pc)
9602 (find_probes_in_objfile): Fix comments.
9604 2014-03-02 Doug Evans <xdje42@gmail.com>
9606 * infrun.c (handle_signal_stop): Replace test for
9607 TARGET_WAITKIND_STOPPED with an assert.
9609 2014-03-02 Doug Evans <xdje42@gmail.com>
9611 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9613 2014-03-02 Doug Evans <xdje42@gmail.com>
9615 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9617 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9619 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9621 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9623 * i386obsd-nat.c: Include "obsd-nat.h".
9624 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9626 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9628 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9630 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9632 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9634 * mips64obsd-nat.c: Include "obsd-nath".
9635 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9637 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9639 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9641 * amd64obsd-nat.c: Include "obsd-nat,h.
9642 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9644 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9646 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9648 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9649 (find_overload_match): Update call to find_oload_champ.
9650 (find_oload_champ_namespace_loop): Likewise
9652 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9654 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9656 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9657 * config/sparc/obsd64.mh: New file.
9658 * sparc64obsd-nat.c: New file.
9660 * obsd-nat.h: New file.
9661 * obsd-nat.c: New file.
9662 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9663 (ALLDEPFILES): Add obsd-nat.c.
9665 2014-02-28 Tom Tromey <tromey@redhat.com>
9667 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9668 * cli-out.h (cli_ui_out_impl): Now const.
9669 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9670 * ui-out.c (struct ui_out) <impl>: Now const.
9671 (default_ui_out_impl): Now const.
9672 (ui_out_new): Make 'impl' parameter const.
9673 * ui-out.h (ui_out_new): Update.
9675 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9677 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9679 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9681 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9683 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9685 Additional PR 8882 fix.
9686 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9688 2014-02-27 Pedro Alves <palves@redhat.com>
9690 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9693 2014-02-27 Pedro Alves <palves@redhat.com>
9696 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9697 * nat/linux-waitpid.c: Include string.h.
9698 (status_to_str): Moved here and made extern.
9699 * nat/linux-waitpid.h (status_to_str): New declaration.
9701 2014-02-27 Hui Zhu <hui@codesourcery.com>
9704 * infrun.c (ptid_match): Move ...
9705 * common/ptid.c (ptid_match): ... here.
9706 * inferior.h (ptid_match): Move ...
9707 * common/ptid.h (ptid_match): ... here.
9709 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9711 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9712 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9715 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9717 * obsd-tdep.c (obsd_auxv_parse): New function.
9718 (obsd_init_abi): Set auxv_parse.
9720 * gdbarch.sh (auxv_parse): New.
9721 * gdbarch.h: Regenerated.
9722 * gdbarch.c: Regenerated.
9723 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9725 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9727 * guile/scm-value.c (gdbscm_history_append_x): New function.
9728 (value_functions): Add it.
9730 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9732 * dwarf2read.c (attr_value_as_address): New function.
9733 (dwarf2_find_base_address, read_call_site_scope): Use
9734 attr_value_as_address in place of DW_ADDR.
9735 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9736 the low and high addresses. Slight rework of the handling
9737 of the high pc being a constant form, and limit it to
9738 DWARF verson 4 or higher.
9739 (dwarf2_record_block_ranges): Likewise.
9740 (read_partial_die): Likewise.
9741 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9743 2014-02-26 Tom Tromey <tromey@redhat.com>
9745 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9747 2014-02-26 Tom Tromey <tromey@redhat.com>
9749 * elfread.c (elf_read_minimal_symbols): Return early if
9750 minimal symbols have already been read. Add "ei" parameter.
9751 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9752 * minsyms.c (prim_record_minimal_symbol_full): Update.
9753 * objfiles.h (struct objstats) <n_minsyms>: Move...
9754 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9755 * symmisc.c (print_objfile_statistics): Update.
9757 2014-02-26 Tom Tromey <tromey@redhat.com>
9759 * elfread.c (elf_read_minimal_symbols): New function, from
9761 (elf_symfile_read): Call it.
9763 2014-02-26 Tom Tromey <tromey@redhat.com>
9765 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9766 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9767 (lookup_minimal_symbol_solib_trampoline)
9768 (lookup_minimal_symbol_by_pc_section_1)
9769 (lookup_minimal_symbol_and_objfile): Update.
9770 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9771 Don't allocate a minimal symbol if minsyms have already been read.
9772 (build_minimal_symbol_hash_tables): Update.
9773 (install_minimal_symbols): Do nothing if minsyms already read.
9774 Use the per-BFD obstack.
9775 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9776 * objfiles.c (allocate_objfile): Call
9777 terminate_minimal_symbol_table later.
9778 (have_minimal_symbols): Update.
9779 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9780 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9781 Move from struct objfile.
9782 <minsyms_read>: New field.
9783 (struct objfile) <msymbols, minimal_symbol_count,
9784 msymbol_hash, msymbol_demangled_hash>: Move.
9785 (ALL_OBJFILE_MSYMBOLS): Update.
9786 * symfile.c (read_symbols): Set minsyms_read.
9787 (reread_symbols): Update.
9788 * symmisc.c (dump_objfile, dump_msymbols): Update.
9790 2014-02-26 Tom Tromey <tromey@redhat.com>
9792 * minsyms.c (msymbols_sort): Remove.
9793 * minsyms.h (msymbols_sort): Remove.
9794 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9795 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9796 * elfread.c (elf_symtab_read): Don't add section offsets.
9797 * xcoffread.c (record_minimal_symbol): Don't add section offset
9798 to minimal symbol address.
9799 * somread.c (text_offset, data_offset): Remove.
9800 (som_symtab_read): Don't add section offsets to minimal symbol
9802 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9803 Don't add section offsets to minimal symbols.
9804 * coffread.c (coff_symtab_read): Don't add section offsets
9805 to minimal symbol addresses.
9806 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9807 to minimal symbol addresses.
9808 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9809 section offset to minimal symbol addresses.
9810 * mdebugread.c (parse_partial_symbols): Don't add section
9811 offset to minimal symbol addresses.
9812 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9813 offset to minimal symbol addresses.
9815 2014-02-26 Tom Tromey <tromey@redhat.com>
9817 * ada-lang.c (ada_main_name): Update.
9818 (ada_add_standard_exceptions): Update.
9819 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9820 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9821 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9822 * auxv.c (ld_so_xfer_auxv): Update.
9823 * avr-tdep.c (avr_scan_prologue): Update.
9824 * ax-gdb.c (gen_var_ref): Update.
9825 * blockframe.c (get_pc_function_start)
9826 (find_pc_partial_function_gnu_ifunc): Update.
9827 * breakpoint.c (create_overlay_event_breakpoint)
9828 (create_longjmp_master_breakpoint)
9829 (create_std_terminate_master_breakpoint)
9830 (create_exception_master_breakpoint): Update.
9831 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9832 * c-valprint.c (c_val_print): Update.
9833 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9834 * common/agent.c (agent_look_up_symbols): Update.
9835 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9836 * dwarf2loc.c (call_site_to_target_addr): Update.
9837 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9838 * elfread.c (elf_gnu_ifunc_record_cache)
9839 (elf_gnu_ifunc_resolve_by_got): Update.
9840 * findvar.c (default_read_var_value): Update.
9841 * frame.c (inside_main_func): Update.
9842 * frv-tdep.c (frv_frame_this_id): Update.
9843 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9844 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9846 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9847 (hppa_hpux_find_dummy_bpaddr): Update.
9848 * hppa-tdep.c (hppa_symbol_address): Update.
9849 * infcmd.c (until_next_command): Update.
9850 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9852 * linespec.c (minsym_found, add_minsym): Update.
9853 * linux-nat.c (get_signo): Update.
9854 * linux-thread-db.c (inferior_has_bug): Update.
9855 * m32c-tdep.c (m32c_return_value)
9856 (m32c_m16c_address_to_pointer): Update.
9857 * m32r-tdep.c (m32r_frame_this_id): Update.
9858 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9859 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9860 * maint.c (maintenance_translate_address): Update.
9861 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9862 (frob_address): New function.
9863 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9864 frob_address. Rename parameter to "pc_in".
9865 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9867 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9869 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9870 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9871 * objc-lang.c (find_objc_msgsend): Update.
9872 * objfiles.c (objfile_relocate1): Update.
9873 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9874 * p-valprint.c (pascal_val_print): Update.
9875 * parse.c (write_exp_msymbol): Update.
9876 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9877 (ppc_elfv2_skip_entrypoint): Update.
9878 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9879 * printcmd.c (build_address_symbolic, msym_info)
9880 (address_info): Update.
9881 * proc-service.c (ps_pglobal_lookup): Update.
9882 * psymtab.c (find_pc_sect_psymtab_closer)
9883 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9884 Change msymbol parameter to bound_minimal_symbol.
9885 * ravenscar-thread.c (get_running_thread_id): Update.
9886 * remote.c (remote_check_symbols): Update.
9887 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9889 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9890 * solib-dsbt.c (lm_base): Update.
9891 * solib-frv.c (lm_base, main_got): Update.
9892 * solib-irix.c (locate_base): Update.
9893 * solib-som.c (som_solib_create_inferior_hook)
9894 (link_map_start): Update.
9895 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9896 * solib-svr4.c (elf_locate_base, enable_break): Update.
9897 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9898 (flush_ea_cache): Update.
9899 * stabsread.c (define_symbol, scan_file_globals): Update.
9900 * stack.c (find_frame_funname): Update.
9901 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9902 (debug_qf_find_pc_sect_symtab): Update.
9903 * symfile.c (simple_read_overlay_table)
9904 (simple_overlay_update): Update.
9905 * symfile.h (struct quick_symbol_functions)
9906 <find_pc_sect_symtab>: Change type of msymbol to
9907 bound_minimal_symbol.
9908 * symmisc.c (dump_msymbols): Update.
9909 * symtab.c (find_pc_sect_symtab_via_partial)
9910 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9911 (search_symbols, print_msymbol_info): Update.
9912 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9913 (MSYMBOL_VALUE_ADDRESS): Redefine.
9914 (BMSYMBOL_VALUE_ADDRESS): New macro.
9915 * tracepoint.c (scope_info): Update.
9916 * tui/tui-disasm.c (tui_find_disassembly_address)
9917 (tui_get_begin_asm_address): Update.
9918 * valops.c (find_function_in_inferior): Update.
9919 * value.c (value_static_field, value_fn_field): Update.
9921 2014-02-26 Tom Tromey <tromey@redhat.com>
9923 * ada-lang.c (ada_update_initial_language): Update.
9924 (ada_main_name, ada_has_this_exception_support): Update.
9925 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9926 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9927 * arm-tdep.c (arm_skip_stub): Update.
9928 * auxv.c (ld_so_xfer_auxv): Update.
9929 * avr-tdep.c (avr_scan_prologue): Update.
9930 * ax-gdb.c (gen_var_ref): Update.
9931 * breakpoint.c (struct breakpoint_objfile_data)
9932 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9933 type to bound_minimal_symbol.
9934 (create_overlay_event_breakpoint)
9935 (create_longjmp_master_breakpoint)
9936 (create_std_terminate_master_breakpoint)
9937 (create_exception_master_breakpoint): Update.
9938 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9939 * c-exp.y (classify_name): Update.
9940 * coffread.c (coff_symfile_read): Update.
9941 * common/agent.c (agent_look_up_symbols): Update.
9942 * d-lang.c (d_main_name): Update.
9943 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9944 * dec-thread.c (enable_dec_thread): Update.
9945 * dwarf2loc.c (call_site_to_target_addr): Update.
9946 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9947 * eval.c (evaluate_subexp_standard): Update.
9948 * findvar.c (struct minsym_lookup_data) <result>: Change type
9949 to bound_minimal_symbol.
9951 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9952 * frame.c (inside_main_func): Update.
9953 * frv-tdep.c (frv_frame_this_id): Update.
9954 * gcore.c (call_target_sbrk): Update.
9955 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9956 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9958 * go-lang.c (go_main_name): Update.
9959 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9960 (hppa_hpux_find_import_stub_for_addr): Update.
9961 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9962 Update. Change return type.
9963 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9965 * jit.c (jit_breakpoint_re_set_internal): Update.
9966 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9968 * linux-nat.c (get_signo): Update.
9969 * linux-thread-db.c (inferior_has_bug): Update
9970 * m32c-tdep.c (m32c_return_value)
9971 (m32c_m16c_address_to_pointer): Update.
9972 * m32r-tdep.c (m32r_frame_this_id): Update.
9973 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9974 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9975 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9976 lookup_minimal_symbol. Change return type.
9977 (lookup_minimal_symbol): Remove.
9978 (lookup_bound_minimal_symbol): Update.
9979 (lookup_minimal_symbol_text): Change return type.
9980 (lookup_minimal_symbol_solib_trampoline): Change return type.
9981 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9982 (lookup_minimal_symbol_solib_trampoline): Change return type.
9983 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9984 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9985 (value_nsstring, find_imps): Update.
9986 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9987 * p-lang.c (pascal_main_name): Update.
9988 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9989 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9990 * proc-service.c (ps_pglobal_lookup): Update.
9991 * ravenscar-thread.c (get_running_thread_msymbol): Change
9993 (has_ravenscar_runtime, get_running_thread_id): Update.
9994 * remote.c (remote_check_symbols): Update.
9995 * sol-thread.c (ps_pglobal_lookup): Update.
9996 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9997 * solib-dsbt.c (lm_base): Update.
9998 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10000 * solib-irix.c (locate_base): Update.
10001 * solib-som.c (som_solib_create_inferior_hook)
10002 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10004 * solib-spu.c (spu_enable_break): Update.
10005 * solib-svr4.c (elf_locate_base, enable_break): Update.
10006 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10007 (flush_ea_cache): Update.
10008 * stabsread.c (define_symbol): Update.
10009 * symfile.c (simple_read_overlay_table): Update.
10010 * symtab.c (find_pc_sect_line): Update.
10011 * tracepoint.c (scope_info): Update.
10012 * tui-disasm.c (tui_get_begin_asm_address): Update.
10013 * value.c (value_static_field): Update.
10015 2014-02-26 Tom Tromey <tromey@redhat.com>
10017 * minsyms.c (prim_record_minimal_symbol_full): Use
10018 SET_MSYMBOL_VALUE_ADDRESS.
10019 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10020 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10021 SET_MSYMBOL_VALUE_ADDRESS.
10022 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10023 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10025 2014-02-26 Tom Tromey <tromey@redhat.com>
10027 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10028 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10029 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10030 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10031 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10032 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10033 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10034 * ada-lang.c (ada_main_name): Update.
10035 (ada_lookup_simple_minsym): Update.
10036 (ada_make_symbol_completion_list): Update.
10037 (ada_add_standard_exceptions): Update.
10038 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10039 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10040 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10041 * arm-tdep.c (skip_prologue_function): Update.
10042 (arm_skip_stack_protector, arm_skip_stub): Update.
10043 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10044 (arm_wince_skip_main_prologue): Update.
10045 * auxv.c (ld_so_xfer_auxv): Update.
10046 * avr-tdep.c (avr_scan_prologue): Update.
10047 * ax-gdb.c (gen_var_ref): Update.
10048 * block.c (call_site_for_pc): Update.
10049 * blockframe.c (get_pc_function_start): Update.
10050 (find_pc_partial_function_gnu_ifunc): Update.
10051 * breakpoint.c (create_overlay_event_breakpoint): Update.
10052 (create_longjmp_master_breakpoint): Update.
10053 (create_std_terminate_master_breakpoint): Update.
10054 (create_exception_master_breakpoint): Update.
10055 (resolve_sal_pc): Update.
10056 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10057 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10059 * c-valprint.c (c_val_print): Update.
10060 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10061 * coffread.c (coff_symfile_read): Update.
10062 * common/agent.c (agent_look_up_symbols): Update.
10063 * dbxread.c (find_stab_function_addr): Update.
10064 (end_psymtab): Update.
10065 * dwarf2loc.c (call_site_to_target_addr): Update.
10066 (func_verify_no_selftailcall): Update.
10067 (tailcall_dump): Update.
10068 (call_site_find_chain_1): Update.
10069 (dwarf_expr_reg_to_entry_parameter): Update.
10070 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10071 (elf_gnu_ifunc_resolve_by_got): Update.
10072 * f-valprint.c (info_common_command): Update.
10073 * findvar.c (read_var_value): Update.
10074 * frame.c (get_prev_frame_1): Update.
10075 (inside_main_func): Update.
10076 * frv-tdep.c (frv_skip_main_prologue): Update.
10077 (frv_frame_this_id): Update.
10078 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10079 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10080 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10081 (gnuv3_skip_trampoline): Update.
10082 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10083 (hppa64_hpux_in_solib_call_trampoline): Update.
10084 (hppa_hpux_skip_trampoline_code): Update.
10085 (hppa64_hpux_search_dummy_call_sequence): Update.
10086 (hppa_hpux_find_import_stub_for_addr): Update.
10087 (hppa_hpux_find_dummy_bpaddr): Update.
10088 * hppa-tdep.c (hppa_symbol_address)
10089 (hppa_lookup_stub_minimal_symbol): Update.
10090 * i386-tdep.c (i386_skip_main_prologue): Update.
10091 (i386_pe_skip_trampoline_code): Update.
10092 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10093 * infcall.c (get_function_name): Update.
10094 * infcmd.c (until_next_command): Update.
10095 * jit.c (jit_breakpoint_re_set_internal): Update.
10096 (jit_inferior_init): Update.
10097 * linespec.c (minsym_found): Update.
10098 (add_minsym): Update.
10099 * linux-fork.c (info_checkpoints_command): Update.
10100 * linux-nat.c (get_signo): Update.
10101 * linux-thread-db.c (inferior_has_bug): Update.
10102 * m32c-tdep.c (m32c_return_value): Update.
10103 (m32c_m16c_address_to_pointer): Update.
10104 (m32c_m16c_pointer_to_address): Update.
10105 * m32r-tdep.c (m32r_frame_this_id): Update.
10106 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10107 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10108 * maint.c (maintenance_translate_address): Update.
10109 * minsyms.c (add_minsym_to_hash_table): Update.
10110 (add_minsym_to_demangled_hash_table): Update.
10111 (msymbol_objfile): Update.
10112 (lookup_minimal_symbol): Update.
10113 (iterate_over_minimal_symbols): Update.
10114 (lookup_minimal_symbol_text): Update.
10115 (lookup_minimal_symbol_by_pc_name): Update.
10116 (lookup_minimal_symbol_solib_trampoline): Update.
10117 (lookup_minimal_symbol_by_pc_section_1): Update.
10118 (lookup_minimal_symbol_and_objfile): Update.
10119 (prim_record_minimal_symbol_full): Update.
10120 (compare_minimal_symbols): Update.
10121 (compact_minimal_symbols): Update.
10122 (build_minimal_symbol_hash_tables): Update.
10123 (install_minimal_symbols): Update.
10124 (terminate_minimal_symbol_table): Update.
10125 (find_solib_trampoline_target): Update.
10126 (minimal_symbol_upper_bound): Update.
10127 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10128 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10129 (mips_skip_pic_trampoline_code): Update.
10130 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10131 * objc-lang.c (selectors_info): Update.
10132 (classes_info): Update.
10133 (find_methods): Update.
10134 (find_imps): Update.
10135 (find_objc_msgsend): Update.
10136 * objfiles.c (objfile_relocate1): Update.
10137 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10138 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10139 * p-valprint.c (pascal_val_print): Update.
10140 * parse.c (write_exp_msymbol): Update.
10141 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10142 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10143 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10144 * printcmd.c (build_address_symbolic): Update.
10145 (sym_info): Update.
10146 (address_info): Update.
10147 * proc-service.c (ps_pglobal_lookup): Update.
10148 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10149 (find_pc_sect_psymtab): Update.
10150 * python/py-framefilter.c (py_print_frame): Update.
10151 * ravenscar-thread.c (get_running_thread_id): Update.
10152 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10154 * remote.c (remote_check_symbols): Update.
10155 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10156 (rs6000_skip_trampoline_code): Update.
10157 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10158 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10159 * solib-dsbt.c (lm_base): Update.
10160 * solib-frv.c (lm_base): Update.
10161 (main_got): Update.
10162 * solib-irix.c (locate_base): Update.
10163 * solib-som.c (som_solib_create_inferior_hook): Update.
10164 (som_solib_desire_dynamic_linker_symbols): Update.
10165 (link_map_start): Update.
10166 * solib-spu.c (spu_enable_break): Update.
10167 (ocl_enable_break): Update.
10168 * solib-svr4.c (elf_locate_base): Update.
10169 (enable_break): Update.
10170 * spu-tdep.c (spu_get_overlay_table): Update.
10171 (spu_catch_start): Update.
10172 (flush_ea_cache): Update.
10173 * stabsread.c (define_symbol): Update.
10174 (scan_file_globals): Update.
10175 * stack.c (find_frame_funname): Update.
10176 (frame_info): Update.
10177 * symfile.c (simple_read_overlay_table): Update.
10178 (simple_overlay_update): Update.
10179 * symmisc.c (dump_msymbols): Update.
10180 * symtab.c (fixup_section): Update.
10181 (find_pc_sect_line): Update.
10182 (skip_prologue_sal): Update.
10183 (search_symbols): Update.
10184 (print_msymbol_info): Update.
10185 (rbreak_command): Update.
10186 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10187 (completion_list_objc_symbol): Update.
10188 (default_make_symbol_completion_list_break_on): Update.
10189 * tracepoint.c (scope_info): Update.
10190 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10191 (tui_get_begin_asm_address): Update.
10192 * valops.c (find_function_in_inferior): Update.
10193 * value.c (value_static_field): Update.
10194 (value_fn_field): Update.
10196 2014-02-26 Tom Tromey <tromey@redhat.com>
10198 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10199 bound minimal symbols. Move code that knows about minsym
10201 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10203 * minsyms.h (minimal_symbol_upper_bound): Declare.
10204 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10205 minimal_symbol_upper_bound.
10207 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10209 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10210 Use the type's name if its basic type does not have a tag.
10212 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10214 * dwarf2read.c (read_subrange_type): Add comment.
10216 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10218 * dwarf2read.c (update_enumeration_type_from_children): New
10219 function, mostly extracted from process_structure_scope.
10220 (read_enumeration_type): Call update_enumeration_type_from_children.
10221 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10222 and flag_flag_enum fields.
10224 2014-02-26 Pedro Alves <palves@redhat.com>
10226 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10227 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10228 to_xfer_partial method.
10230 2014-02-26 Pedro Alves <palves@redhat.com>
10232 * target.c (complete_target_initialization): Don't install
10233 default_xfer_partial as to_xfer_partial hook.
10234 (nomemory): Delete.
10235 (update_current_target): Don't INHERIT nor de_fault
10236 deprecated_xfer_memory. Delete de_fault macro.
10237 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10238 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10239 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10242 2014-02-26 Pedro Alves <palves@redhat.com>
10244 * go32-nat.c (my_write_child): New function.
10245 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10246 (go32_xfer_partial): New function.
10247 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10248 Instead install a to_xfer_partial hook.
10250 2014-02-26 Pedro Alves <palves@redhat.com>
10252 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10253 to_xfer_partial helper. Rewrite.
10254 (procfs_xfer_partial): New function.
10255 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10256 Install a to_xfer_partial hook.
10258 2014-02-26 Pedro Alves <palves@redhat.com>
10260 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10261 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10262 (m32r_xfer_partial): New function.
10263 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10264 Install a to_xfer_partial hook.
10266 2014-02-26 Pedro Alves <palves@redhat.com>
10268 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10270 (mips_xfer_partial): New function.
10271 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10272 hook. Install a to_xfer_partial hook.
10274 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10276 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10277 * gdbtypes.c (create_array_type_with_stride): New function,
10278 renaming create_array_type, but with an added parameter
10279 called "bit_stride".
10280 (create_array_type): Re-implement using
10281 create_array_type_with_stride.
10282 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10283 and DW_AT_bit_stride attributes.
10285 2014-02-26 Pedro Alves <palves@redhat.com>
10287 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10288 task-specific breakpoints.
10290 2014-02-25 Pedro Alves <palves@redhat.com>
10292 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10293 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10295 2014-02-25 Stan Shebs <stan@codesourcery.com>
10297 * defs.h: Annotate comments for Doxygen.
10299 2014-02-25 Tom Tromey <tromey@redhat.com>
10301 * target.h (target_ignore): Don't declare.
10302 * target.c (target_ignore): Remove.
10304 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10307 * auto-load.c (auto_load_objfile_script_1): Change filename to
10310 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10312 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10313 documentation. Adjust prototype to match the target_ops
10314 to_xfer_partial method. Adjust implementation accordingly.
10316 2014-02-25 Hui Zhu <hui@codesourcery.com>
10318 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10319 to_traceframe_info.
10321 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10323 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10324 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10325 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10326 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10327 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10328 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10329 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10330 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10332 (rl78_register_type): Use a data pointer type for SP and
10333 new pseudo registers mentioned above. Use a 16 bit integer
10334 type for all other register pairs.
10335 (rl78_register_name, rl78_g10_register_name): Update for
10336 new pseudo registers.
10337 (rl78_pseudo_register_read): Likewise.
10338 (rl78_pseudo_register_write): Likewise.
10339 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10340 to the newly added pseudo registers.
10342 2014-02-24 Doug Evans <dje@google.com>
10344 * value.c (record_latest_value): Fix comment.
10345 * printcmd.c (print_command_1): Remove code to handle -1 return from
10346 record_latest_value.
10348 2014-02-24 Pedro Alves <palves@redhat.com>
10350 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10351 deprecated_xfer_memory hook.
10352 (procfs_xfer_partial): Call procfs_xfer_memory instead
10353 of the deprecated_xfer_memory target hook.
10354 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10357 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10359 * windows-nat.c (windows_xfer_shared_libraries): Return
10360 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10361 requested object is TARGET_OBJECT_LIBRARIES.
10363 2014-02-24 Yao Qi <yao@codesourcery.com>
10365 * target.h (enum target_xfer_status)
10366 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10367 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10369 * corefile.c (memory_error_message): User updated.
10370 * exec.c (section_table_read_available_memory): Likewise.
10371 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10372 * target.c (target_xfer_status_to_string): Likewise.
10373 (raw_memory_xfer_partial): Likewise.
10374 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10375 * valops.c (read_value_memory): Likewise.
10376 * exec.h: Update comments.
10378 2014-02-24 Yao Qi <yao@codesourcery.com>
10380 * target.c (target_xfer_status_to_string): Rename argument err
10382 * target.h (target_xfer_status_to_string): Update declaration.
10383 Replace target_xfer_error_to_string with
10384 target_xfer_status_to_string in comment.
10386 2014-02-24 Yao Qi <yao@codesourcery.com>
10388 * mips-linux-nat.c (super_close): Update its type.
10389 (mips_linux_close): Pass 'self' to super_close.
10391 2014-02-24 Yao Qi <yao@codesourcery.com>
10393 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10394 * corefile.c (read_memory): Adjusted.
10395 * target.c (target_write_with_progress): Adjusted.
10397 2014-02-23 Yao Qi <yao@codesourcery.com>
10399 Revert two patches:
10401 2013-10-25 Yao Qi <yao@codesourcery.com>
10403 * remote.c (remote_traceframe_info): Return early if
10404 traceframe is not selected.
10406 2013-07-19 Yao Qi <yao@codesourcery.com>
10408 * target.c (update_current_target): Change the default action
10409 of 'to_traceframe_info' from tcomplain to return_zero.
10410 * target.h (struct target_ops) <to_traceframe_info>: Add more
10413 2014-02-23 Yao Qi <yao@codesourcery.com>
10415 * valops.c (read_value_memory): Rewrite it. Call
10416 target_xfer_partial in a loop.
10417 * exec.h (section_table_available_memory): Remove declaration.
10418 Move comments to ...
10419 * exec.c (section_table_available_memory): ... here. Make it
10422 2014-02-23 Yao Qi <yao@codesourcery.com>
10424 * exec.c (section_table_read_available_memory): New function.
10425 * exec.h (section_table_read_available_memory): Declare.
10426 * ctf.c (ctf_xfer_partial): Call
10427 section_table_read_available_memory.
10428 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10430 2014-02-23 Yao Qi <yao@codesourcery.com>
10432 * ctf.c (ctf_xfer_partial): Move code to ...
10433 * exec.c (exec_read_partial_read_only): ... it. New function.
10434 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10435 * tracefile.c: Include "exec.h".
10436 * exec.h (exec_read_partial_read_only): Declare.
10438 2014-02-23 Yao Qi <yao@codesourcery.com>
10440 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10441 (tfile_has_memory): Remove.
10442 (init_tfile_ops): Don't set fields to_has_all_memory and
10443 to_has_memory of tfile_ops.
10444 * tracefile.c (tracefile_has_all_memory): New function.
10445 (tracefile_has_memory): New function.
10446 (init_tracefile_ops): Initialize fields to_has_all_memory and
10447 to_has_memory of 'ops'.
10449 2014-02-23 Yao Qi <yao@codesourcery.com>
10451 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10452 (ctf_thread_alive, ctf_get_trace_status): Remove.
10453 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10454 init_tracefile_ops.
10455 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10456 (tfile_has_stack, tfile_has_registers): Remove.
10457 (tfile_thread_alive): Remove.
10458 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10459 init_tracefile_ops.
10460 * tracefile.c (tracefile_has_stack): New function.
10461 (tracefile_has_registers): New function.
10462 (tracefile_thread_alive): New function.
10463 (tracefile_get_trace_status): New function.
10464 (init_tracefile_ops): New function.
10465 * tracefile.h (init_tracefile_ops): Declare.
10467 2014-02-23 Yao Qi <yao@codesourcery.com>
10469 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10470 (O_LARGEFILE): Likewise.
10471 (tfile_ops): Likewise.
10472 (TRACE_HEADER_SIZE): Likewise.
10473 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10474 (cur_data_size): Likewise.
10475 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10476 (tfile_close, tfile_files_info): Likewise.
10477 (tfile_get_trace_status): Likewise.
10478 (tfile_get_tracepoint_status): Likewise.
10479 (tfile_get_traceframe_address): Likewise.
10480 (tfile_trace_find, match_blocktype): Likewise.
10481 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10482 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10483 (tfile_get_trace_state_variable_value): Likewise.
10484 (tfile_has_all_memory, tfile_has_memory): Likewise.
10485 (tfile_has_stack, tfile_has_registers): Likewise.
10486 (tfile_thread_alive, build_traceframe_info): Likewise.
10487 (tfile_traceframe_info, init_tfile_ops): Likewise.
10488 (_initialize_tracepoint): Don't call init_tfile_ops
10489 and add_target_with_completer.
10490 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10491 exec.h, completer.h and filenames.h.
10492 (_initialize_tracefile_tfile): New function.
10494 2014-02-23 Yao Qi <yao@codesourcery.com>
10496 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10498 (HFILES_NO_SRCDIR): Add tracefile.h.
10499 * ctf.c: Include "tracefile.h".
10500 * tracefile.h: New file.
10501 * tracefile.c: New file
10502 * tracefile-tfile.c: New file.
10503 * tracepoint.c: Include "tracefile.h".
10504 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10505 (stop_reason_names): Add const.
10506 (trace_file_writer_xfree): Move it to tracefile.c.
10507 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10508 (trace_save_ctf): Likewise.
10509 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10510 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10511 (tfile_write_header, tfile_write_regblock_type): Likewise.
10512 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10513 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10514 (tfile_write_raw_data, tfile_end): Likewise.
10515 (tfile_trace_file_writer_new): Likewise.
10516 (free_uploaded_tp): Make it extern.
10517 (free_uploaded_tsv): Make it extern.
10518 (_initialize_tracepoint): Move code to register command 'tsave'
10520 * tracepoint.h (stop_reason_names): Declare.
10521 (struct trace_frame_write_ops): Move it to tracefile.h.
10522 (struct trace_file_write_ops): Likewise.
10523 (struct trace_file_writer): Likewise.
10524 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10526 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10529 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10531 (get_cores_used_by_process): New parameter num_cores, use it.
10532 (linux_xfer_osdata_processes): Pass num_cores to it.
10533 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10536 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10538 * target.c (memory_xfer_partial): Fix length arg in call to
10539 breakpoint_xfer_memory.
10541 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10544 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10545 number comes after the + or - signs. Adjust length of register
10546 name to be extracted.
10548 2014-02-20 Tom Tromey <tromey@redhat.com>
10550 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10551 (ada_varobj_ops): Mark "extern".
10553 2014-02-20 Tom Tromey <tromey@redhat.com>
10555 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10557 2014-02-20 Doug Evans <xdje42@gmail.com>
10559 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10560 All callers updated.
10561 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10562 All callers updated.
10563 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10564 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10566 2014-02-20 lin zuojian <manjian2006@gmail.com>
10567 Joel Brobecker <brobecker@adacore.com>
10568 Doug Evans <xdje42@gmail.com>
10571 * dwarf2read.c (struct die_info): New member in_process.
10572 (reset_die_in_process): New function.
10573 (process_die): Set it at the start, reset when returning.
10574 (inherit_abstract_dies): Only call process_die if origin_child_die
10575 not already being processed.
10577 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10579 * windows-nat.c (handle_unload_dll): Add function documentation.
10580 (do_initial_windows_stuff): Add comment explaining why we wait
10581 until after inferior initialization has finished before
10582 processing all DLLs.
10584 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10586 * windows-nat.c (get_module_name): Delete.
10587 (windows_get_exec_module_filename): New function, mostly
10588 inspired from get_module_name.
10589 (windows_pid_to_exec_file): Replace call to get_module_name
10590 by call to windows_get_exec_module_filename.
10592 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10594 * windows-nat.c (handle_load_dll): Rewrite this function's
10595 introductory comment. Remove code using get_module_name
10596 to get the DLL's name.
10598 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10600 * windows-nat.c (get_windows_debug_event): Ignore
10601 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10602 if windows_initialization_done == 0.
10603 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10604 Adjust implementation to always load all DLLs.
10605 (do_initial_windows_stuff): Replace call to
10606 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10608 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10610 * windows-nat.c (_initialize_windows_nat): Deprecate the
10611 "dll-symbols" command. Turn the "add-shared-symbol-files"
10612 and "assf" aliases into commands, and deprecate them as well.
10613 * NEWS: Add entry explaining that "dll-symbols" and its two
10614 aliases are now deprecated.
10616 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10618 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10619 new-line in debug string. Remove trailing spaces.
10621 2014-02-19 Stan Shebs <stan@codesourcery.com>
10623 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10625 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10627 * NEWS: Add entry for the new feature
10628 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10631 2014-02-19 Stan Shebs <stan@codesourcery.com>
10633 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10635 2014-02-19 Pedro Alves <palves@redhat.com>
10637 * common/ptid.h (struct ptid): Mention that process_stratum
10638 targets should prefer ptid.lwp.
10640 2014-02-19 Pedro Alves <palves@redhat.com>
10642 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10643 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10644 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10645 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10646 store remote thread ids rather than ptid.tid.
10647 (_initialize_remote): Adjust.
10649 2014-02-19 Tom Tromey <tromey@redhat.com>
10651 * target.c (target_get_unwinder): Rewrite.
10652 (target_get_tailcall_unwinder): Rewrite.
10653 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10654 (record_btrace_to_get_tailcall_unwinder): New function.
10655 (init_record_btrace_ops): Update.
10656 * target.h (struct target_ops) <to_get_unwinder,
10657 to_get_tailcall_unwinder>: Now function pointers. Use
10658 TARGET_DEFAULT_RETURN.
10660 2014-02-19 Tom Tromey <tromey@redhat.com>
10662 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10664 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10666 2014-02-19 Tom Tromey <tromey@redhat.com>
10668 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10670 * target-delegates.c: Rebuild.
10671 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10672 TARGET_DEFAULT_FUNC.
10673 * target.c (default_target_decr_pc_after_break): Rename from
10674 forward_target_decr_pc_after_break. Simplify.
10675 (target_decr_pc_after_break): Rely on delegation.
10677 2014-02-19 Tom Tromey <tromey@redhat.com>
10679 * target.c (update_current_target): Do not INHERIT to_doc or
10680 to_magic. Do not de_fault to_open or to_close.
10682 2014-02-19 Tom Tromey <tromey@redhat.com>
10684 * gcore.h (objfile_find_memory_regions): Declare.
10685 * gcore.c (objfile_find_memory_regions): No longer static. Add
10687 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10688 * exec.c: Include gcore.h.
10689 (exec_set_find_memory_regions): Remove.
10690 (exec_find_memory_regions): Remove.
10691 (exec_do_find_memory_regions): Remove.
10692 (init_exec_ops): Update.
10693 * defs.h (exec_set_find_memory_regions): Remove.
10695 2014-02-19 Tom Tromey <tromey@redhat.com>
10697 * target-delegates.c: Rebuild.
10698 * target.h (struct target_ops) <to_extra_thread_info,
10699 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10700 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10701 not 0, in TARGET_DEFAULT_RETURN.
10703 2014-02-19 Tom Tromey <tromey@redhat.com>
10705 * target.c (complete_target_initialization): Remove casts. Use
10706 return_zero_has_execution.
10707 (return_zero): Add "ignore" argument.
10708 (return_zero_has_execution): New function.
10709 (init_dummy_target): Remove casts. Use
10710 return_zero_has_execution.
10712 2014-02-19 Tom Tromey <tromey@redhat.com>
10714 * target.c (update_current_target): Update comments. Do not
10715 INHERIT to_stratum.
10717 2014-02-19 Tom Tromey <tromey@redhat.com>
10719 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10721 * corelow.c (core_read_description): Delegate when needed.
10722 * remote.c (remote_read_description): Delegate when needed.
10723 * target-delegates.c: Rebuild.
10724 * target.c (target_read_description): Rewrite.
10725 * target.h (struct target_ops) <to_read_description>: Update
10726 comment. Use TARGET_DEFAULT_RETURN.
10728 2014-02-19 Tom Tromey <tromey@redhat.com>
10730 * target-delegates.c: Rebuild.
10731 * target.c (update_current_target): Don't inherit or default
10733 (find_default_run_target): Check against delegate_can_run.
10734 * target.h (struct target_ops) <to_can_run>: Use
10735 TARGET_DEFAULT_RETURN.
10737 2014-02-19 Tom Tromey <tromey@redhat.com>
10739 * target-delegates.c: Rebuild.
10740 * target.c (target_disconnect): Unconditionally delegate.
10741 * target.h (struct target_ops) <to_disconnect>: Use
10742 TARGET_DEFAULT_NORETURN.
10744 2014-02-19 Tom Tromey <tromey@redhat.com>
10746 * record.c (record_stop): Unconditionally delegate.
10747 * target-delegates.c: Rebuild.
10748 * target.c (target_stop_recording): Unconditionally delegate.
10749 * target.h (struct target_ops) <to_stop_recording>: Use
10750 TARGET_DEFAULT_IGNORE.
10752 2014-02-19 Tom Tromey <tromey@redhat.com>
10754 * target-delegates.c: Rebuild.
10755 * target.c (target_enable_btrace): Unconditionally delegate.
10756 * target.h (struct target_ops) <to_enable_btrace>: Use
10757 TARGET_DEFAULT_NORETURN.
10759 2014-02-19 Tom Tromey <tromey@redhat.com>
10761 * target-delegates.c: Rebuild.
10762 * target.c (target_read_btrace): Unconditionally delegate.
10763 * target.h (struct target_ops) <to_read_btrace>: Use
10764 TARGET_DEFAULT_NORETURN.
10766 2014-02-19 Tom Tromey <tromey@redhat.com>
10768 * target-delegates.c: Rebuild.
10769 * target.c (target_teardown_btrace): Unconditionally delegate.
10770 * target.h (struct target_ops) <to_teardown_btrace>: Use
10771 TARGET_DEFAULT_NORETURN.
10773 2014-02-19 Tom Tromey <tromey@redhat.com>
10775 * target-delegates.c: Rebuild.
10776 * target.c (target_disable_btrace): Unconditionally delegate.
10777 * target.h (struct target_ops) <to_disable_btrace>: Use
10778 TARGET_DEFAULT_NORETURN.
10780 2014-02-19 Tom Tromey <tromey@redhat.com>
10782 * target-delegates.c: Rebuild.
10783 * target.c (default_search_memory): New function.
10784 (simple_search_memory): Update comment.
10785 (target_search_memory): Unconditionally delegate.
10786 * target.h (struct target_ops) <to_search_memory>: Use
10787 TARGET_DEFAULT_FUNC.
10789 2014-02-19 Tom Tromey <tromey@redhat.com>
10791 * auxv.c (default_auxv_parse): No longer static.
10792 (target_auxv_parse): Unconditionally delegate.
10793 * auxv.h (default_auxv_parse): Declare.
10794 * target-delegates.c: Rebuild.
10795 * target.c: Include auxv.h.
10796 * target.h (struct target_ops) <to_auxv_parse>: Use
10797 TARGET_DEFAULT_FUNC.
10799 2014-02-19 Tom Tromey <tromey@redhat.com>
10801 * target-delegates.c: Rebuild.
10802 * target.c (target_memory_map): Unconditionally delegate.
10803 * target.h (struct target_ops) <to_memory_map>: Use
10804 TARGET_DEFAULT_RETURN.
10806 2014-02-19 Tom Tromey <tromey@redhat.com>
10808 * target-delegates.c: Rebuild.
10809 * target.c (target_thread_alive): Unconditionally delegate.
10810 * target.h (struct target_ops) <to_thread_alive>: Use
10811 TARGET_DEFAULT_RETURN.
10813 2014-02-19 Tom Tromey <tromey@redhat.com>
10815 * target-delegates.c: Rebuild.
10816 * target.c (target_save_record): Unconditionally delegate.
10817 * target.h (struct target_ops) <to_save_record>: Use
10818 TARGET_DEFAULT_NORETURN.
10820 2014-02-19 Tom Tromey <tromey@redhat.com>
10822 * target-delegates.c: Rebuild.
10823 * target.c (target_delete_record): Unconditionally delegate.
10824 * target.h (struct target_ops) <to_delete_record>: Use
10825 TARGET_DEFAULT_NORETURN.
10827 2014-02-19 Tom Tromey <tromey@redhat.com>
10829 * target-delegates.c: Rebuild.
10830 * target.c (target_record_is_replaying): Unconditionally
10832 * target.h (struct target_ops) <to_record_is_replaying>: Use
10833 TARGET_DEFAULT_RETURN.
10835 2014-02-19 Tom Tromey <tromey@redhat.com>
10837 * target-delegates.c: Rebuild.
10838 * target.c (target_goto_record_begin): Unconditionally delegate.
10839 * target.h (struct target_ops) <to_goto_record_begin>: Use
10840 TARGET_DEFAULT_NORETURN.
10842 2014-02-19 Tom Tromey <tromey@redhat.com>
10844 * target-delegates.c: Rebuild.
10845 * target.c (target_goto_record_end): Unconditionally delegate.
10846 * target.h (struct target_ops) <to_goto_record_end>: Use
10847 TARGET_DEFAULT_NORETURN.
10849 2014-02-19 Tom Tromey <tromey@redhat.com>
10851 * target-delegates.c: Rebuild.
10852 * target.c (target_goto_record): Unconditionally delegate.
10853 * target.h (struct target_ops) <to_goto_record>: Use
10854 TARGET_DEFAULT_NORETURN.
10856 2014-02-19 Tom Tromey <tromey@redhat.com>
10858 * target-delegates.c: Rebuild.
10859 * target.c (target_insn_history): Unconditionally delegate.
10860 * target.h (struct target_ops) <to_insn_history>: Use
10861 TARGET_DEFAULT_NORETURN.
10863 2014-02-19 Tom Tromey <tromey@redhat.com>
10865 * target-delegates.c: Rebuild.
10866 * target.c (target_insn_history_from): Unconditionally delegate.
10867 * target.h (struct target_ops) <to_insn_history_from>: Use
10868 TARGET_DEFAULT_NORETURN.
10870 2014-02-19 Tom Tromey <tromey@redhat.com>
10872 * target-delegates.c: Rebuild.
10873 * target.c (target_insn_history_range): Unconditionally delegate.
10874 * target.h (struct target_ops) <to_insn_history_range>: Use
10875 TARGET_DEFAULT_NORETURN.
10877 2014-02-19 Tom Tromey <tromey@redhat.com>
10879 * target-delegates.c: Rebuild.
10880 * target.c (target_call_history): Unconditionally delegate.
10881 * target.h (struct target_ops) <to_call_history>: Use
10882 TARGET_DEFAULT_NORETURN.
10884 2014-02-19 Tom Tromey <tromey@redhat.com>
10886 * target-delegates.c: Rebuild.
10887 * target.c (target_call_history_from): Unconditionally delegate.
10888 * target.h (struct target_ops) <to_call_history_from>: Use
10889 TARGET_DEFAULT_NORETURN.
10891 2014-02-19 Tom Tromey <tromey@redhat.com>
10893 * target-delegates.c: Rebuild.
10894 * target.c (target_call_history_range): Unconditionally delegate.
10895 * target.h (struct target_ops) <to_call_history_range>: Use
10896 TARGET_DEFAULT_NORETURN.
10898 2014-02-19 Tom Tromey <tromey@redhat.com>
10900 * target-delegates.c: Rebuild.
10901 * target.c (target_verify_memory): Unconditionally delegate.
10902 * target.h (struct target_ops) <to_verify_memory>: Use
10903 TARGET_DEFAULT_NORETURN.
10905 2014-02-19 Tom Tromey <tromey@redhat.com>
10907 * target-delegates.c: Rebuild.
10908 * target.c (target_core_of_thread): Unconditionally delegate.
10909 * target.h (struct target_ops) <to_core_of_thread>: Use
10910 TARGET_DEFAULT_RETURN.
10912 2014-02-19 Tom Tromey <tromey@redhat.com>
10914 * target-delegates.c: Rebuild.
10915 * target.c (target_flash_done): Unconditionally delegate.
10916 * target.h (struct target_ops) <to_flash_done>: Use
10917 TARGET_DEFAULT_NORETURN.
10919 2014-02-19 Tom Tromey <tromey@redhat.com>
10921 * target-delegates.c: Rebuild.
10922 * target.c (target_flash_erase): Unconditionally delegate.
10923 * target.h (struct target_ops) <to_flash_erase>: Use
10924 TARGET_DEFAULT_NORETURN.
10926 2014-02-19 Tom Tromey <tromey@redhat.com>
10928 * target-delegates.c: Rebuild.
10929 * target.c (target_get_section_table): Unconditionally delegate.
10930 * target.h (struct target_ops) <to_get_section_table>: Use
10931 TARGET_DEFAULT_RETURN.
10933 2014-02-19 Tom Tromey <tromey@redhat.com>
10935 * target-delegates.c: Rebuild.
10936 * target.c (target_pid_to_str): Unconditionally delegate.
10937 (init_dummy_target): Don't initialize to_pid_to_str.
10938 (default_pid_to_str): Rename from dummy_pid_to_str.
10939 * target.h (struct target_ops) <to_pid_to_str>: Use
10940 TARGET_DEFAULT_FUNC.
10942 2014-02-19 Tom Tromey <tromey@redhat.com>
10944 * target-delegates.c: Rebuild.
10945 * target.c (target_find_new_threads): Unconditionally delegate.
10946 * target.h (struct target_ops) <to_find_new_threads>: Use
10947 TARGET_DEFAULT_RETURN.
10949 2014-02-19 Tom Tromey <tromey@redhat.com>
10951 * target-delegates.c: Rebuild.
10952 * target.c (target_program_signals): Unconditionally delegate.
10953 * target.h (struct target_ops) <to_program_signals>: Use
10954 TARGET_DEFAULT_IGNORE.
10956 2014-02-19 Tom Tromey <tromey@redhat.com>
10958 * target-delegates.c: Rebuild.
10959 * target.c (target_pass_signals): Unconditionally delegate.
10960 * target.h (struct target_ops) <to_pass_signals>: Use
10961 TARGET_DEFAULT_IGNORE.
10963 2014-02-19 Tom Tromey <tromey@redhat.com>
10965 * target-delegates.c: Rebuild.
10966 * target.c (default_mourn_inferior): New function.
10967 (target_mourn_inferior): Unconditionally delegate.
10968 * target.h (struct target_ops) <to_mourn_inferior>: Use
10969 TARGET_DEFAULT_FUNC.
10971 2014-02-19 Tom Tromey <tromey@redhat.com>
10973 * target-delegates.c: Rebuild.
10974 * target.c (default_follow_fork): New function.
10975 (target_follow_fork): Unconditionally delegate.
10976 * target.h (struct target_ops) <to_follow_fork>: Use
10977 TARGET_DEFAULT_FUNC.
10979 2014-02-19 Tom Tromey <tromey@redhat.com>
10981 * target-delegates.c: Rebuild.
10982 * target.c (target_kill): Unconditionally delegate.
10983 * target.h (struct target_ops) <to_kill>: Use
10984 TARGET_DEFAULT_NORETURN.
10986 2014-02-19 Tom Tromey <tromey@redhat.com>
10988 * target-delegates.c: Rebuild.
10989 * target.c (target_masked_watch_num_registers): Unconditionally
10991 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10992 Use TARGET_DEFAULT_RETURN.
10994 2014-02-19 Tom Tromey <tromey@redhat.com>
10996 * target-delegates.c: Rebuild.
10997 * target.c (target_remove_mask_watchpoint): Unconditionally
10999 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11000 TARGET_DEFAULT_RETURN.
11002 2014-02-19 Tom Tromey <tromey@redhat.com>
11004 * target-delegates.c: Rebuild.
11005 * target.c (target_insert_mask_watchpoint): Unconditionally
11007 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11008 TARGET_DEFAULT_RETURN.
11010 2014-02-19 Tom Tromey <tromey@redhat.com>
11012 * target-delegates.c: Rebuild.
11013 * target.c (target_ranged_break_num_registers): Unconditionally
11015 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11016 Use TARGET_DEFAULT_RETURN.
11018 2014-02-19 Tom Tromey <tromey@redhat.com>
11020 * target-delegates.c: Rebuild.
11021 * target.c (target_fetch_registers): Unconditionally delegate.
11022 * target.h (struct target_ops) <to_fetch_registers>: Use
11023 TARGET_DEFAULT_NORETURN.
11025 2014-02-19 Tom Tromey <tromey@redhat.com>
11027 * target-delegates.c: Rebuild.
11028 * target.c (update_current_target): Don't inherit or default
11030 * target.h (struct target_ops) <to_stop>: Use
11031 TARGET_DEFAULT_IGNORE.
11033 2014-02-19 Tom Tromey <tromey@redhat.com>
11035 * target-delegates.c: Rebuild.
11036 * target.c (update_current_target): Don't inherit or default
11037 to_can_run_breakpoint_commands.
11038 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11039 Use TARGET_DEFAULT_RETURN.
11041 2014-02-19 Tom Tromey <tromey@redhat.com>
11043 * target-delegates.c: Rebuild.
11044 * target.c (update_current_target): Don't inherit or default
11045 to_supports_evaluation_of_breakpoint_conditions.
11046 * target.h (struct target_ops)
11047 <to_supports_evaluation_of_breakpoint_conditions>: Use
11048 TARGET_DEFAULT_RETURN.
11050 2014-02-19 Tom Tromey <tromey@redhat.com>
11052 * target-delegates.c: Rebuild.
11053 * target.c (update_current_target): Don't inherit or default
11054 to_augmented_libraries_svr4_read.
11055 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11056 Use TARGET_DEFAULT_RETURN.
11058 2014-02-19 Tom Tromey <tromey@redhat.com>
11060 * target-delegates.c: Rebuild.
11061 * target.c (update_current_target): Don't inherit or default
11063 * target.h (struct target_ops) <to_can_use_agent>: Use
11064 TARGET_DEFAULT_RETURN.
11066 2014-02-19 Tom Tromey <tromey@redhat.com>
11068 * target-delegates.c: Rebuild.
11069 * target.c (update_current_target): Don't inherit or default
11071 * target.h (struct target_ops) <to_use_agent>: Use
11072 TARGET_DEFAULT_NORETURN.
11074 2014-02-19 Tom Tromey <tromey@redhat.com>
11076 * target-delegates.c: Rebuild.
11077 * target.c (update_current_target): Don't inherit or default
11078 to_traceframe_info.
11079 (return_null): Remove.
11080 * target.h (struct target_ops) <to_traceframe_info>: Use
11081 TARGET_DEFAULT_RETURN.
11083 2014-02-19 Tom Tromey <tromey@redhat.com>
11085 * target-delegates.c: Rebuild.
11086 * target.c (update_current_target): Don't inherit or default
11087 to_static_tracepoint_markers_by_strid.
11088 * target.h (struct target_ops)
11089 <to_static_tracepoint_markers_by_strid>: Use
11090 TARGET_DEFAULT_NORETURN.
11092 2014-02-19 Tom Tromey <tromey@redhat.com>
11094 * target-delegates.c: Rebuild.
11095 * target.c (update_current_target): Don't inherit or default
11096 to_static_tracepoint_marker_at.
11097 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11098 Use TARGET_DEFAULT_RETURN.
11100 2014-02-19 Tom Tromey <tromey@redhat.com>
11102 * target-delegates.c: Rebuild.
11103 * target.c (update_current_target): Don't inherit or default
11104 to_set_permissions.
11105 * target.h (struct target_ops) <to_set_permissions>: Use
11106 TARGET_DEFAULT_IGNORE.
11108 2014-02-19 Tom Tromey <tromey@redhat.com>
11110 * target-delegates.c: Rebuild.
11111 * target.c (update_current_target): Don't inherit or default
11112 to_get_tib_address.
11113 * target.h (struct target_ops) <to_get_tib_address>: Use
11114 TARGET_DEFAULT_NORETURN.
11116 2014-02-19 Tom Tromey <tromey@redhat.com>
11118 * target-delegates.c: Rebuild.
11119 * target.c (update_current_target): Don't inherit or default
11120 to_set_trace_notes.
11121 * target.h (struct target_ops) <to_set_trace_notes>: Use
11122 TARGET_DEFAULT_RETURN.
11124 2014-02-19 Tom Tromey <tromey@redhat.com>
11126 * target-delegates.c: Rebuild.
11127 * target.c (update_current_target): Don't initialize
11128 to_set_trace_buffer_size.
11129 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11130 TARGET_DEFAULT_IGNORE.
11132 2014-02-19 Tom Tromey <tromey@redhat.com>
11134 * target-delegates.c: Rebuild.
11135 * target.c (update_current_target): Don't inherit or default
11136 to_set_circular_trace_buffer.
11137 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11138 TARGET_DEFAULT_IGNORE.
11140 2014-02-19 Tom Tromey <tromey@redhat.com>
11142 * target-delegates.c: Rebuild.
11143 * target.c (update_current_target): Don't inherit or default
11144 to_set_disconnected_tracing.
11145 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11146 TARGET_DEFAULT_IGNORE.
11148 2014-02-19 Tom Tromey <tromey@redhat.com>
11150 * target-delegates.c: Rebuild.
11151 * target.c (update_current_target): Don't inherit or default
11152 to_get_min_fast_tracepoint_insn_len.
11153 (return_minus_one): Remove.
11154 * target.h (struct target_ops)
11155 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11157 2014-02-19 Tom Tromey <tromey@redhat.com>
11159 * target-delegates.c: Rebuild.
11160 * target.c (update_current_target): Don't inherit or default
11161 to_get_raw_trace_data.
11162 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11163 TARGET_DEFAULT_NORETURN.
11165 2014-02-19 Tom Tromey <tromey@redhat.com>
11167 * target-delegates.c: Rebuild.
11168 * target.c (update_current_target): Don't inherit or default
11169 to_upload_trace_state_variables.
11170 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11171 Use TARGET_DEFAULT_RETURN.
11173 2014-02-19 Tom Tromey <tromey@redhat.com>
11175 * target-delegates.c: Rebuild.
11176 * target.c (update_current_target): Don't inherit or default
11177 to_upload_tracepoints.
11178 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11179 TARGET_DEFAULT_RETURN.
11181 2014-02-19 Tom Tromey <tromey@redhat.com>
11183 * target-delegates.c: Rebuild.
11184 * target.c (update_current_target): Don't inherit or default
11185 to_save_trace_data.
11186 * target.h (struct target_ops) <to_save_trace_data>: Use
11187 TARGET_DEFAULT_NORETURN.
11189 2014-02-19 Tom Tromey <tromey@redhat.com>
11191 * target-delegates.c: Rebuild.
11192 * target.c (update_current_target): Don't inherit or default
11193 to_get_trace_state_variable_value.
11194 * target.h (struct target_ops)
11195 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11197 2014-02-19 Tom Tromey <tromey@redhat.com>
11199 * target-delegates.c: Rebuild.
11200 * target.c (update_current_target): Don't inherit or default
11202 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11204 2014-02-19 Tom Tromey <tromey@redhat.com>
11206 * target-delegates.c: Rebuild.
11207 * target.c (update_current_target): Don't inherit or default
11209 * target.h (struct target_ops) <to_trace_stop>: Use
11210 TARGET_DEFAULT_NORETURN.
11212 2014-02-19 Tom Tromey <tromey@redhat.com>
11214 * target-delegates.c: Rebuild.
11215 * target.c (update_current_target): Don't inherit or default
11216 to_get_tracepoint_status.
11217 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11218 TARGET_DEFAULT_NORETURN.
11220 2014-02-19 Tom Tromey <tromey@redhat.com>
11222 * target-delegates.c: Rebuild.
11223 * target.c (update_current_target): Don't inherit or default
11224 to_get_trace_status.
11225 * target.h (struct target_ops) <to_get_trace_status>: Use
11226 TARGET_DEFAULT_RETURN.
11228 2014-02-19 Tom Tromey <tromey@redhat.com>
11230 * target-delegates.c: Rebuild.
11231 * target.c (update_current_target): Don't inherit or default
11233 * target.h (struct target_ops) <to_trace_start>: Use
11234 TARGET_DEFAULT_NORETURN.
11236 2014-02-19 Tom Tromey <tromey@redhat.com>
11238 * target-delegates.c: Rebuild.
11239 * target.c (update_current_target): Don't inherit or default
11240 to_trace_set_readonly_regions.
11241 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11242 Use TARGET_DEFAULT_NORETURN.
11244 2014-02-19 Tom Tromey <tromey@redhat.com>
11246 * target-delegates.c: Rebuild.
11247 * target.c (update_current_target): Don't inherit or default
11248 to_disable_tracepoint.
11249 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11250 TARGET_DEFAULT_NORETURN.
11252 2014-02-19 Tom Tromey <tromey@redhat.com>
11254 * target-delegates.c: Rebuild.
11255 * target.c (update_current_target): Don't inherit or default
11256 to_enable_tracepoint.
11257 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11258 TARGET_DEFAULT_NORETURN.
11260 2014-02-19 Tom Tromey <tromey@redhat.com>
11262 * target-delegates.c: Rebuild.
11263 * target.c (update_current_target): Don't inherit or default
11264 to_download_trace_state_variable.
11265 * target.h (struct target_ops) <to_download_trace_state_variable>:
11266 Use TARGET_DEFAULT_NORETURN.
11268 2014-02-19 Tom Tromey <tromey@redhat.com>
11270 * target-delegates.c: Rebuild.
11271 * target.c (update_current_target): Don't inherit or default
11272 to_can_download_tracepoint.
11273 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11274 TARGET_DEFAULT_RETURN.
11276 2014-02-19 Tom Tromey <tromey@redhat.com>
11278 * target-delegates.c: Rebuild.
11279 * target.c (update_current_target): Don't inherit or default
11280 to_download_tracepoint.
11281 * target.h (struct target_ops) <to_download_tracepoint>: Use
11282 TARGET_DEFAULT_NORETURN.
11284 2014-02-19 Tom Tromey <tromey@redhat.com>
11286 * target-delegates.c: Rebuild.
11287 * target.c (update_current_target): Don't inherit or default
11289 * target.h (struct target_ops) <to_trace_init>: Use
11290 TARGET_DEFAULT_RETURN.
11292 2014-02-19 Tom Tromey <tromey@redhat.com>
11294 * target-delegates.c: Rebuild.
11295 * target.c (update_current_target): Don't inherit or default
11296 to_supports_string_tracing.
11297 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11298 TARGET_DEFAULT_RETURN.
11300 2014-02-19 Tom Tromey <tromey@redhat.com>
11302 * target-delegates.c: Rebuild.
11303 * target.c (update_current_target): Don't inherit or default
11304 to_supports_enable_disable_tracepoint.
11305 * target.h (struct target_ops)
11306 <to_supports_enable_disable_tracepoint>: Use
11307 TARGET_DEFAULT_RETURN.
11309 2014-02-19 Tom Tromey <tromey@redhat.com>
11311 * target-delegates.c: Rebuild.
11312 * target.c (update_current_target): Don't inherit or default
11313 to_supports_multi_process.
11314 * target.h (struct target_ops) <to_supports_multi_process>: Use
11315 TARGET_DEFAULT_RETURN.
11317 2014-02-19 Tom Tromey <tromey@redhat.com>
11319 * target-delegates.c: Rebuild.
11320 * target.c (update_current_target): Don't inherit or default
11321 to_get_ada_task_ptid.
11322 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11323 TARGET_DEFAULT_FUNC.
11325 2014-02-19 Tom Tromey <tromey@redhat.com>
11327 * target-delegates.c: Rebuild.
11328 * target.c (update_current_target): Don't inherit or default
11329 to_thread_architecture.
11330 * target.h (struct target_ops) <to_thread_architecture>: Use
11331 TARGET_DEFAULT_FUNC.
11333 2014-02-19 Tom Tromey <tromey@redhat.com>
11335 * target-delegates.c: Rebuild.
11336 * target.c (update_current_target): Don't inherit or default
11337 to_execution_direction.
11338 * target.h (struct target_ops) <to_execution_direction>: Use
11339 TARGET_DEFAULT_FUNC.
11341 2014-02-19 Tom Tromey <tromey@redhat.com>
11343 * target-delegates.c: Rebuild.
11344 * target.c (update_current_target): Don't inherit or default
11345 to_can_execute_reverse.
11346 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11347 TARGET_DEFAULT_RETURN.
11348 (target_can_execute_reverse): Unconditionally delegate.
11350 2014-02-19 Tom Tromey <tromey@redhat.com>
11352 * target-delegates.c: Rebuild.
11353 * target.c (update_current_target): Don't inherit or default
11355 (dummy_goto_bookmark): Remove.
11356 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11357 * target.h (struct target_ops) <to_goto_bookmark>: Use
11358 TARGET_DEFAULT_NORETURN.
11360 2014-02-19 Tom Tromey <tromey@redhat.com>
11362 * target-delegates.c: Rebuild.
11363 * target.c (update_current_target): Don't inherit or default
11365 (dummy_get_bookmark): Remove.
11366 (init_dummy_target): Don't inherit or default to_get_bookmark.
11367 * target.h (struct target_ops) <to_get_bookmark>: Use
11368 TARGET_DEFAULT_NORETURN
11370 2014-02-19 Tom Tromey <tromey@redhat.com>
11372 * target-delegates.c: Rebuild.
11373 * target.c (update_current_target): Don't inherit or default
11374 to_make_corefile_notes.
11375 (init_dummy_target): Don't initialize to_make_corefile_notes.
11376 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11377 TARGET_DEFAULT_FUNC.
11379 2014-02-19 Tom Tromey <tromey@redhat.com>
11381 * target-delegates.c: Rebuild.
11382 * target.c (update_current_target): Don't inherit or default
11383 to_find_memory_regions.
11384 (init_dummy_target): Don't initialize to_find_memory_regions.
11385 * target.h (struct target_ops) <to_find_memory_regions>: Use
11386 TARGET_DEFAULT_FUNC.
11388 2014-02-19 Tom Tromey <tromey@redhat.com>
11390 * target-delegates.c: Rebuild.
11391 * target.c (update_current_target): Don't inherit or default
11393 * target.h (struct target_ops) <to_log_command>: Use
11394 TARGET_DEFAULT_IGNORE.
11395 (target_log_command): Unconditionally delegate.
11397 2014-02-19 Tom Tromey <tromey@redhat.com>
11399 * target-delegates.c: Rebuild.
11400 * target.c (update_current_target): Don't inherit or default
11401 to_pid_to_exec_file.
11402 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11403 TARGET_DEFAULT_RETURN.
11405 2014-02-19 Tom Tromey <tromey@redhat.com>
11407 * target-delegates.c: Rebuild.
11408 * target.c (update_current_target): Don't inherit or default
11410 (target_thread_name): Unconditionally delegate.
11411 * target.h (struct target_ops) <to_thread_name>: Use
11412 TARGET_DEFAULT_RETURN.
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_extra_thread_info.
11419 * target.h (struct target_ops) <to_extra_thread_info>: Use
11420 TARGET_DEFAULT_RETURN.
11422 2014-02-19 Tom Tromey <tromey@redhat.com>
11424 * target-delegates.c: Rebuild.
11425 * target.c (update_current_target): Don't inherit or default
11427 * target.h (struct target_ops) <to_has_exited>: Use
11428 TARGET_DEFAULT_RETURN..
11430 2014-02-19 Tom Tromey <tromey@redhat.com>
11432 * target-delegates.c: Rebuild.
11433 * target.c (update_current_target): Don't inherit or default
11434 to_set_syscall_catchpoint.
11435 (return_one): Remove.
11436 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11437 TARGET_DEFAULT_RETURN.
11439 2014-02-19 Tom Tromey <tromey@redhat.com>
11441 * target-delegates.c: Rebuild.
11442 * target.c (update_current_target): Don't inherit or default
11443 to_insert_exec_catchpoint.
11444 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11445 TARGET_DEFAULT_RETURN.
11447 2014-01-08 Tom Tromey <tromey@redhat.com>
11449 * target-delegates.c: Rebuild.
11450 * target.c (update_current_target): Don't inherit or default
11451 to_insert_exec_catchpoint.
11452 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11453 TARGET_DEFAULT_RETURN.
11455 2014-02-19 Tom Tromey <tromey@redhat.com>
11457 * target-delegates.c: Rebuild.
11458 * target.c (update_current_target): Don't inherit or default
11459 to_remove_vfork_catchpoint.
11460 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11461 TARGET_DEFAULT_RETURN.
11463 2014-02-19 Tom Tromey <tromey@redhat.com>
11465 * target-delegates.c: Rebuild.
11466 * target.c (update_current_target): Don't inherit or default
11467 to_insert_vfork_catchpoint.
11468 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11469 TARGET_DEFAULT_RETURN.
11471 2014-02-19 Tom Tromey <tromey@redhat.com>
11473 * target-delegates.c: Rebuild.
11474 * target.c (update_current_target): Don't inherit or default
11475 to_remove_fork_catchpoint.
11476 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11477 TARGET_DEFAULT_RETURN.
11479 2014-02-19 Tom Tromey <tromey@redhat.com>
11481 * target-delegates.c: Rebuild.
11482 * target.c (update_current_target): Don't inherit or default
11483 to_insert_fork_catchpoint.
11484 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11485 TARGET_DEFAULT_RETURN.
11487 2014-02-19 Tom Tromey <tromey@redhat.com>
11489 * target-delegates.c: Rebuild.
11490 * target.c (update_current_target): Don't inherit or default
11491 to_post_startup_inferior.
11492 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11493 TARGET_DEFAULT_IGNORE.
11495 2014-02-19 Tom Tromey <tromey@redhat.com>
11497 * target-delegates.c: Rebuild.
11498 * target.c (update_current_target): Don't inherit or default
11500 * target.h (struct target_ops) <to_load>: Use
11501 TARGET_DEFAULT_NORETURN.
11503 2014-02-19 Tom Tromey <tromey@redhat.com>
11505 * target-delegates.c: Rebuild.
11506 * target.c (update_current_target): Don't inherit or default
11508 * target.h (struct target_ops) <to_terminal_info>: Use
11509 TARGET_DEFAULT_FUNC.
11511 2014-02-19 Tom Tromey <tromey@redhat.com>
11513 * target-delegates.c: Rebuild.
11514 * target.c (update_current_target): Don't inherit or default
11515 to_terminal_save_ours.
11516 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11517 TARGET_DEFAULT_IGNORE.
11519 2014-02-19 Tom Tromey <tromey@redhat.com>
11521 * target-delegates.c: Rebuild.
11522 * target.c (update_current_target): Don't inherit or default
11524 * target.h (struct target_ops) <to_terminal_ours>: Use
11525 TARGET_DEFAULT_IGNORE.
11527 2014-02-19 Tom Tromey <tromey@redhat.com>
11529 * target-delegates.c: Rebuild.
11530 * target.c (update_current_target): Don't inherit or default
11531 to_terminal_ours_for_output.
11532 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11533 TARGET_DEFAULT_IGNORE.
11535 2014-02-19 Tom Tromey <tromey@redhat.com>
11537 * target-delegates.c: Rebuild.
11538 * target.c (update_current_target): Don't inherit or default
11539 to_terminal_inferior.
11540 * target.h (struct target_ops) <to_terminal_inferior>: Use
11541 TARGET_DEFAULT_IGNORE.
11543 2014-02-19 Tom Tromey <tromey@redhat.com>
11545 * target-delegates.c: Rebuild.
11546 * target.c (update_current_target): Don't inherit or default
11548 * target.h (struct target_ops) <to_terminal_init>: Use
11549 TARGET_DEFAULT_IGNORE.
11551 2014-02-19 Tom Tromey <tromey@redhat.com>
11553 * target-delegates.c: Rebuild.
11554 * target.c (update_current_target): Don't inherit or default
11555 to_can_accel_watchpoint_condition.
11556 * target.h (struct target_ops)
11557 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11559 2014-02-19 Tom Tromey <tromey@redhat.com>
11561 * target-delegates.c: Rebuild.
11562 * target.c (update_current_target): Don't inherit or default
11563 to_region_ok_for_hw_watchpoint.
11564 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11565 Use TARGET_DEFAULT_FUNC.
11567 2014-02-19 Tom Tromey <tromey@redhat.com>
11569 * target-delegates.c: Rebuild.
11570 * target.c (update_current_target): Don't inherit or default
11571 to_watchpoint_addr_within_range.
11572 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11573 Use TARGET_DEFAULT_FUNC.
11575 2014-02-19 Tom Tromey <tromey@redhat.com>
11577 * target-delegates.c: Rebuild.
11578 * target.c (update_current_target): Don't inherit or default
11579 to_remove_watchpoint.
11580 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11581 TARGET_DEFAULT_NORETURN.
11583 2014-02-19 Tom Tromey <tromey@redhat.com>
11585 * target-delegates.c: Rebuild.
11586 * target.c (update_current_target): Don't inherit or default
11587 to_insert_watchpoint.
11588 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11589 TARGET_DEFAULT_RETURN.
11591 2014-02-19 Tom Tromey <tromey@redhat.com>
11593 * target-delegates.c: Rebuild.
11594 * target.c (update_current_target): Don't inherit or default
11595 to_remove_hw_breakpoint.
11596 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11597 TARGET_DEFAULT_RETURN.
11599 2014-02-19 Tom Tromey <tromey@redhat.com>
11601 * target-delegates.c: Rebuild.
11602 * target.c (update_current_target): Don't inherit or default
11603 to_insert_hw_breakpoint.
11604 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11605 TARGET_DEFAULT_RETURN.
11607 2014-02-19 Tom Tromey <tromey@redhat.com>
11609 * target-delegates.c: Rebuild.
11610 * target.c (update_current_target): Don't inherit or default
11611 to_can_use_hw_breakpoint.
11612 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11613 TARGET_DEFAULT_RETURN.
11615 2014-02-19 Tom Tromey <tromey@redhat.com>
11617 * target-delegates.c: Rebuild.
11618 * target.c (update_current_target): Don't inherit or default
11620 * target.h (struct target_ops) <to_files_info>: Use
11621 TARGET_DEFAULT_IGNORE.
11623 2014-02-19 Tom Tromey <tromey@redhat.com>
11625 * target-delegates.c: Rebuild.
11626 * target.c (update_current_target): Don't inherit or default
11628 * target.h (struct target_ops) <to_store>: Use
11629 TARGET_DEFAULT_NORETURN.
11631 2014-02-19 Tom Tromey <tromey@redhat.com>
11633 * target-delegates.c: Rebuild.
11634 * target.c (update_current_target): Don't inherit or default
11636 * target.h (struct target_ops) <to_post_attach>: Use
11637 TARGET_DEFAULT_IGNORE.
11639 2014-02-19 Tom Tromey <tromey@redhat.com>
11641 * target-delegates.c: Rebuild.
11642 * target.c (update_current_target): Don't inherit or default
11644 (default_rcmd): New function.
11645 (do_monitor_command): Unconditionally delegate.
11646 * target.h (struct target_ops) <to_rmcd>: Use
11647 TARGET_DEFAULT_FUNC.
11649 2014-02-19 Tom Tromey <tromey@redhat.com>
11651 * target-delegates.c: Rebuild.
11652 * target.c (init_dummy_target): Don't initialize to_attach.
11653 (target_attach): Unconditionally delegate.
11654 * target.h (struct target_ops) <to_attach>: Use
11655 TARGET_DEFAULT_FUNC.
11657 2014-02-19 Tom Tromey <tromey@redhat.com>
11659 * target-delegates.c: Rebuild.
11660 * target.c (target_detach): Unconditionally delegate.
11661 (init_dummy_target): Don't initialize to_detach.
11662 * target.h (struct target_ops) <to_detach>: Use
11663 TARGET_DEFAULT_IGNORE.
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11667 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11669 (target_augmented_libraries_svr4_read): Add argument.
11670 * target.c (update_current_target): Update.
11671 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11674 2014-02-19 Tom Tromey <tromey@redhat.com>
11676 * target.h (struct target_ops) <to_call_history_range>: Add
11678 * target.c (target_call_history_range): Add argument.
11679 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11681 (record_btrace_call_history_from): Update.
11683 2014-02-19 Tom Tromey <tromey@redhat.com>
11685 * target.h (struct target_ops) <to_call_history_from>: Add
11687 * target.c (target_call_history_from): Add argument.
11688 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11691 2014-02-19 Tom Tromey <tromey@redhat.com>
11693 * target.h (struct target_ops) <to_call_history>: Add argument.
11694 * target.c (target_call_history): Add argument.
11695 * record-btrace.c (record_btrace_call_history): Add 'self'
11698 2014-02-19 Tom Tromey <tromey@redhat.com>
11700 * target.h (struct target_ops) <to_insn_history_range>: Add
11702 * target.c (target_insn_history_range): Add argument.
11703 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11705 (record_btrace_insn_history_from): Update.
11707 2014-02-19 Tom Tromey <tromey@redhat.com>
11709 * target.h (struct target_ops) <to_insn_history_from>: Add
11711 * target.c (target_insn_history_from): Add argument.
11712 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11715 2014-02-19 Tom Tromey <tromey@redhat.com>
11717 * target.h (struct target_ops) <to_insn_history>: Add argument.
11718 * target.c (target_insn_history): Add argument.
11719 * record-btrace.c (record_btrace_insn_history): Add 'self'
11722 2014-02-19 Tom Tromey <tromey@redhat.com>
11724 * target.h (struct target_ops) <to_goto_record>: Add argument.
11725 * target.c (target_goto_record): Add argument.
11726 * record-full.c (record_full_goto): Add 'self' argument.
11727 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11729 2014-02-19 Tom Tromey <tromey@redhat.com>
11731 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11732 * target.c (target_goto_record_end): Add argument.
11733 * record-full.c (record_full_goto_end): Add 'self' argument.
11734 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11736 2014-02-19 Tom Tromey <tromey@redhat.com>
11738 * target.h (struct target_ops) <to_goto_record_begin>: Add
11740 * target.c (target_goto_record_begin): Add argument.
11741 * record-full.c (record_full_goto_begin): Add 'self' argument.
11742 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11745 2014-02-19 Tom Tromey <tromey@redhat.com>
11747 * target.h (struct target_ops) <to_record_is_replaying>: Add
11749 * target.c (target_record_is_replaying): Add argument.
11750 * record-full.c (record_full_is_replaying): Add 'self' argument.
11751 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11753 (record_btrace_xfer_partial, record_btrace_store_registers)
11754 (record_btrace_prepare_to_store, record_btrace_resume)
11755 (record_btrace_wait, record_btrace_decr_pc_after_break)
11756 (record_btrace_find_new_threads, record_btrace_thread_alive):
11759 2014-02-19 Tom Tromey <tromey@redhat.com>
11761 * target.h (struct target_ops) <to_delete_record>: Add argument.
11762 * target.c (target_delete_record): Add argument.
11763 * record-full.c (record_full_delete): Add 'self' argument.
11765 2014-02-19 Tom Tromey <tromey@redhat.com>
11767 * target.h (struct target_ops) <to_save_record>: Add argument.
11768 * target.c (target_save_record): Add argument.
11769 * record-full.c (record_full_save): Add 'self' argument.
11770 (record_full_save): Add 'self' argument.
11772 2014-02-19 Tom Tromey <tromey@redhat.com>
11774 * target.h (struct target_ops) <to_info_record>: Add argument.
11775 * target.c (target_info_record): Add argument.
11776 * record.c (info_record_command): Add argument.
11777 * record-full.c (record_full_info): Add 'self' argument.
11778 * record-btrace.c (record_btrace_info): Add 'self' argument.
11780 2014-02-19 Tom Tromey <tromey@redhat.com>
11782 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11783 * target.c (target_stop_recording): Add argument.
11784 * record.c (record_stop): Add argument.
11785 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11788 2014-02-19 Tom Tromey <tromey@redhat.com>
11790 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11791 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11792 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11794 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11795 (_initialize_amd64_linux_nat): Use it.
11796 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11797 (_initialize_i386_linux_nat): Use it.
11799 2014-02-19 Tom Tromey <tromey@redhat.com>
11801 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11802 * target.c (target_teardown_btrace): Add argument.
11803 * remote.c (remote_teardown_btrace): Add 'self' argument.
11804 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11806 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11809 2014-02-19 Tom Tromey <tromey@redhat.com>
11811 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11812 * target.c (target_disable_btrace): Add argument.
11813 * remote.c (remote_disable_btrace): Add 'self' argument.
11814 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11816 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11819 2014-02-19 Tom Tromey <tromey@redhat.com>
11821 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11822 * target.c (target_enable_btrace): Add argument.
11823 * remote.c (remote_enable_btrace): Add 'self' argument.
11824 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11826 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11829 2014-02-19 Tom Tromey <tromey@redhat.com>
11831 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11832 (target_can_use_agent): Add argument.
11833 * target.c (update_current_target): Update.
11834 * remote.c (remote_can_use_agent): Add 'self' argument.
11835 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11837 2014-02-19 Tom Tromey <tromey@redhat.com>
11839 * target.h (struct target_ops) <to_use_agent>: Add argument.
11840 (target_use_agent): Add argument.
11841 * target.c (update_current_target): Update.
11842 * remote.c (remote_use_agent): Add 'self' argument.
11843 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11845 2014-02-19 Tom Tromey <tromey@redhat.com>
11847 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11848 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11849 (target_traceframe_info): Add argument.
11850 * target.c (update_current_target): Update.
11851 * remote.c (remote_traceframe_info): Add 'self' argument.
11852 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11854 2014-02-19 Tom Tromey <tromey@redhat.com>
11856 * target.h (target_static_tracepoint_markers_by_strid): Add
11858 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11860 * target.c (update_current_target): Update.
11861 * remote.c (struct target_ops)
11862 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11863 * linux-nat.c (struct target_ops)
11864 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11866 2014-02-19 Tom Tromey <tromey@redhat.com>
11868 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11870 (target_static_tracepoint_marker_at): Add argument.
11871 * target.c (update_current_target): Update.
11872 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11875 2014-02-19 Tom Tromey <tromey@redhat.com>
11877 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11878 (target_set_permissions): Add argument.
11879 * target.c (update_current_target): Update.
11880 * remote.c (remote_set_permissions): Add 'self' argument.
11881 (remote_start_remote): Update.
11883 2014-02-19 Tom Tromey <tromey@redhat.com>
11885 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11886 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11887 (target_get_tib_address): Add argument.
11888 * target.c (update_current_target): Update.
11889 * remote.c (remote_get_tib_address): Add 'self' argument.
11891 2014-02-19 Tom Tromey <tromey@redhat.com>
11893 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11894 (target_set_trace_notes): Add argument.
11895 * target.c (update_current_target): Update.
11896 * remote.c (remote_set_trace_notes): Add 'self' argument.
11898 2014-02-19 Tom Tromey <tromey@redhat.com>
11900 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11902 (target_set_trace_buffer_size): Add argument.
11903 * target.c (update_current_target): Update.
11904 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11906 2014-02-19 Tom Tromey <tromey@redhat.com>
11908 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11910 (target_set_circular_trace_buffer): Add argument.
11911 * target.c (update_current_target): Update.
11912 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11915 2014-02-19 Tom Tromey <tromey@redhat.com>
11917 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11919 (target_set_disconnected_tracing): Add argument.
11920 * target.c (update_current_target): Update.
11921 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11923 2014-02-19 Tom Tromey <tromey@redhat.com>
11925 * target.h (struct target_ops)
11926 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11927 (target_get_min_fast_tracepoint_insn_len): Add argument.
11928 * target.c (update_current_target): Update.
11929 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11932 2014-02-19 Tom Tromey <tromey@redhat.com>
11934 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11936 (target_get_raw_trace_data): Add argument.
11937 * target.c (update_current_target): Update.
11938 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11940 2014-02-19 Tom Tromey <tromey@redhat.com>
11942 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11944 (target_upload_trace_state_variables): Add argument.
11945 * target.c (update_current_target): Update.
11946 * remote.c (remote_upload_trace_state_variables): Add 'self'
11948 (remote_start_remote): Update.
11950 2014-02-19 Tom Tromey <tromey@redhat.com>
11952 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11954 (target_upload_tracepoints): Add argument.
11955 * target.c (update_current_target): Update.
11956 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11957 (remote_start_remote): Update.
11959 2014-02-19 Tom Tromey <tromey@redhat.com>
11961 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11962 (target_save_trace_data): Add argument.
11963 * target.c (update_current_target): Update.
11964 * remote.c (remote_save_trace_data): Add 'self' argument.
11966 2014-02-19 Tom Tromey <tromey@redhat.com>
11968 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11970 * target.h (struct target_ops)
11971 <to_get_trace_state_variable_value>: Add argument.
11972 (target_get_trace_state_variable_value): Add argument.
11973 * target.c (update_current_target): Update.
11974 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11976 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11978 2014-02-19 Tom Tromey <tromey@redhat.com>
11980 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11981 * target.h (struct target_ops) <to_trace_find>: Add argument.
11982 (target_trace_find): Add argument.
11983 * target.c (update_current_target): Update.
11984 * remote.c (remote_trace_find): Add 'self' argument.
11985 * ctf.c (ctf_trace_find): Add 'self' argument.
11987 2014-02-19 Tom Tromey <tromey@redhat.com>
11989 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11990 (target_trace_stop): Add argument.
11991 * target.c (update_current_target): Update.
11992 * remote.c (remote_trace_stop): Add 'self' argument.
11994 2014-02-19 Tom Tromey <tromey@redhat.com>
11996 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11997 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11999 (target_get_tracepoint_status): Add argument.
12000 * target.c (update_current_target): Update.
12001 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12003 2014-02-19 Tom Tromey <tromey@redhat.com>
12005 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12006 * target.h (struct target_ops) <to_get_trace_status>: Add
12008 (target_get_trace_status): Add argument.
12009 * target.c (update_current_target): Update.
12010 * remote.c (remote_get_trace_status): Add 'self' argument.
12011 (remote_start_remote, remote_can_download_tracepoint): Update.
12012 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12014 2014-02-19 Tom Tromey <tromey@redhat.com>
12016 * target.h (struct target_ops) <to_trace_start>: Add argument.
12017 (target_trace_start): Add argument.
12018 * target.c (update_current_target): Update.
12019 * remote.c (remote_trace_start): Add 'self' argument.
12021 2014-02-19 Tom Tromey <tromey@redhat.com>
12023 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12025 (target_trace_set_readonly_regions): Add argument.
12026 * target.c (update_current_target): Update.
12027 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12030 2014-02-19 Tom Tromey <tromey@redhat.com>
12032 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12034 (target_disable_tracepoint): Add argument.
12035 * target.c (update_current_target): Update.
12036 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12038 2014-02-19 Tom Tromey <tromey@redhat.com>
12040 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12042 (target_enable_tracepoint): Add argument.
12043 * target.c (update_current_target): Update.
12044 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12046 2014-02-19 Tom Tromey <tromey@redhat.com>
12048 * target.h (struct target_ops) <to_download_trace_state_variable>:
12050 (target_download_trace_state_variable): Add argument.
12051 * target.c (update_current_target): Update.
12052 * remote.c (remote_download_trace_state_variable): Add 'self'
12055 2014-02-19 Tom Tromey <tromey@redhat.com>
12057 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12059 (target_can_download_tracepoint): Add argument.
12060 * target.c (update_current_target): Update.
12061 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12063 2014-02-19 Tom Tromey <tromey@redhat.com>
12065 * target.h (struct target_ops) <to_download_tracepoint>: Add
12067 (target_download_tracepoint): Add argument.
12068 * target.c (update_current_target): Update.
12069 * remote.c (remote_download_tracepoint): Add 'self' argument.
12071 2014-02-19 Tom Tromey <tromey@redhat.com>
12073 * target.h (struct target_ops) <to_trace_init>: Add argument.
12074 (target_trace_init): Add argument.
12075 * target.c (update_current_target): Update.
12076 * remote.c (remote_trace_init): Add 'self' argument.
12078 2014-02-19 Tom Tromey <tromey@redhat.com>
12080 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12081 * target.c (target_fileio_readlink): Add argument.
12082 * remote.c (remote_hostio_readlink): Add 'self' argument.
12083 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12085 2014-02-19 Tom Tromey <tromey@redhat.com>
12087 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12088 * target.c (target_fileio_unlink): Add argument.
12089 * remote.c (remote_hostio_unlink): Add 'self' argument.
12090 (remote_file_delete): Update.
12091 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12093 2014-02-19 Tom Tromey <tromey@redhat.com>
12095 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12096 * target.c (target_fileio_close): Add argument.
12097 * remote.c (remote_hostio_close): Add 'self' argument.
12098 (remote_hostio_close_cleanup): Update.
12099 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12101 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12103 2014-02-19 Tom Tromey <tromey@redhat.com>
12105 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12106 * target.c (target_fileio_pread): Add argument.
12107 * remote.c (remote_hostio_pread): Add 'self' argument.
12108 (remote_bfd_iovec_pread, remote_file_get): Update.
12109 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12111 2014-02-19 Tom Tromey <tromey@redhat.com>
12113 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12114 * target.c (target_fileio_pwrite): Add argument.
12115 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12116 (remote_file_put): Update.
12117 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12119 2014-02-19 Tom Tromey <tromey@redhat.com>
12121 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12122 * target.c (target_fileio_open): Add argument.
12123 * remote.c (remote_hostio_open): Add 'self' argument.
12124 (remote_bfd_iovec_open): Add 'self' argument.
12125 (remote_file_put): Add 'self' argument.
12126 (remote_file_get): Add 'self' argument.
12127 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12129 2014-02-19 Tom Tromey <tromey@redhat.com>
12131 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12133 (target_can_run_breakpoint_commands): Add argument.
12134 * target.c (update_current_target): Update.
12135 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12137 (remote_insert_breakpoint): Add 'self' argument.
12138 (remote_insert_hw_breakpoint): Add 'self' argument.
12139 (remote_can_run_breakpoint_commands): Add 'self' argument.
12141 2014-02-19 Tom Tromey <tromey@redhat.com>
12143 * target.h (struct target_ops)
12144 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12145 (target_supports_evaluation_of_breakpoint_conditions): Add
12147 * target.c (update_current_target): Update.
12148 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12150 (remote_insert_breakpoint): Add 'self' argument.
12151 (remote_insert_hw_breakpoint): Add 'self' argument.
12152 (remote_supports_cond_breakpoints): Add 'self' argument.
12154 2014-02-19 Tom Tromey <tromey@redhat.com>
12156 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12158 (target_supports_string_tracing): Add argument.
12159 * target.c (update_current_target): Update.
12160 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12162 2014-02-19 Tom Tromey <tromey@redhat.com>
12164 * target.h (struct target_ops)
12165 <to_supports_disable_randomization>: Add argument.
12166 * target.c (find_default_supports_disable_randomization): Add
12168 (target_supports_disable_randomization): Add argument.
12169 (find_default_supports_disable_randomization): Add 'self'
12171 * remote.c (extended_remote_supports_disable_randomization): Add
12173 (remote_supports_disable_randomization): Add 'self' argument.
12174 (extended_remote_create_inferior): Update.
12175 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12178 2014-02-19 Tom Tromey <tromey@redhat.com>
12180 * target.h (struct target_ops)
12181 <to_supports_enable_disable_tracepoint>: Add argument.
12182 (target_supports_enable_disable_tracepoint): Add argument.
12183 * target.c (update_current_target): Update.
12184 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12187 2014-02-19 Tom Tromey <tromey@redhat.com>
12189 * target.h (struct target_ops) <to_supports_multi_process>: Add
12191 (target_supports_multi_process): Add argument.
12192 * target.c (update_current_target): Update.
12193 * remote.c (remote_supports_multi_process): Add 'self' argument.
12194 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12196 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12199 2014-02-19 Tom Tromey <tromey@redhat.com>
12201 * target.h (struct target_ops) <to_execution_direction>: Add
12203 (target_execution_direction): Add argument.
12204 * target.c (default_execution_direction): Add 'self' argument.
12205 * record-full.c (record_full_execution_direction): Add 'self'
12208 2014-02-19 Tom Tromey <tromey@redhat.com>
12210 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12212 (target_can_execute_reverse): Add argument.
12213 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12214 * record-full.c (record_full_can_execute_reverse): Add 'self'
12216 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12219 2014-02-19 Tom Tromey <tromey@redhat.com>
12221 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12222 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12224 (target_get_ada_task_ptid): Add argument.
12225 * target.c (update_current_target): Update.
12226 (default_get_ada_task_ptid): Add 'self' argument.
12227 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12228 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12229 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12231 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12233 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12235 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12237 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12238 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12241 2014-02-19 Tom Tromey <tromey@redhat.com>
12243 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12244 (target_goto_bookmark): Add argument.
12245 * target.c (dummy_goto_bookmark): Add 'self' argument.
12246 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12248 2014-02-19 Tom Tromey <tromey@redhat.com>
12250 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12251 (target_get_bookmark): Add argument.
12252 * target.c (dummy_get_bookmark): Add 'self' argument.
12253 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12255 2014-02-19 Tom Tromey <tromey@redhat.com>
12257 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12259 (target_make_corefile_notes): Add argument.
12260 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12261 * procfs.c (procfs_make_note_section): Add 'self' argument.
12262 (procfs_make_note_section): Add 'self' argument.
12263 (procfs_make_note_section): Add 'self' argument.
12264 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12266 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12267 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12268 * exec.c (exec_make_note_section): Add 'self' argument.
12269 (exec_make_note_section): Add 'self' argument.
12271 2014-02-19 Tom Tromey <tromey@redhat.com>
12273 * target.h (struct target_ops) <to_find_memory_regions>: Add
12275 (target_find_memory_regions): Add argument.
12276 * target.c (dummy_find_memory_regions): Add 'self' argument.
12277 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12278 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12279 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12280 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12281 * exec. (exec_do_find_memory_regions): New global.
12282 (exec_set_find_memory_regions): Rewrite.
12283 (exec_find_memory_regions): New function.
12284 (init_exec_ops): Use exec_find_memory_regions.
12286 2014-02-19 Tom Tromey <tromey@redhat.com>
12288 * target.h (struct target_ops) <to_supports_non_stop>: Add
12290 * target.c (find_default_supports_non_stop): Add argument.
12291 (target_supports_non_stop): Add argument.
12292 (find_default_supports_non_stop): Add 'self' argument.
12293 * remote.c (remote_supports_non_stop): Add 'self' argument.
12294 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12296 2014-02-19 Tom Tromey <tromey@redhat.com>
12298 * target.h (struct target_ops) <to_log_command>: Add argument.
12299 (target_log_command): Add argument.
12300 * serial.h (serial_log_command): Add 'self' argument.
12301 * serial.c (serial_log_command): Add 'self' argument.
12303 2014-02-19 Tom Tromey <tromey@redhat.com>
12305 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12306 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12308 (target_pid_to_exec_file): Add argument.
12309 * target.c (debug_to_pid_to_exec_file): Add argument.
12310 (update_current_target): Update.
12311 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12312 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12313 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12314 (linux_handle_extended_wait): Update.
12315 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12316 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12317 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12318 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12320 2014-02-19 Tom Tromey <tromey@redhat.com>
12322 * target.h (struct target_ops) <to_rcmd>: Add argument.
12323 (target_rcmd): Add argument.
12324 * target.c (debug_to_rcmd): Add argument.
12325 (update_current_target, do_monitor_command): Update.
12326 * remote.c (remote_rcmd): Add 'self' argument.
12327 * monitor.c (monitor_rcmd): Add 'self' argument.
12329 2014-02-19 Tom Tromey <tromey@redhat.com>
12331 * windows-nat.c (windows_stop): Add 'self' argument.
12332 * target.h (struct target_ops) <to_stop>: Add argument.
12333 * target.c (target_stop): Add argument.
12334 (debug_to_stop): Add argument.
12335 (update_current_target): Update.
12336 * remote.c (remote_stop): Add 'self' argument.
12337 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12338 (gdbsim_cntrl_c): Update.
12339 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12340 * procfs.c (procfs_stop): Add 'self' argument.
12341 * nto-procfs.c (procfs_stop): Add 'self' argument.
12342 * monitor.c (monitor_stop): Add 'self' argument.
12343 (monitor_open): Update.
12344 * linux-nat.c (linux_nat_stop): Add argument.
12345 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12346 * gnu-nat.c (gnu_stop): Add 'self' argument.
12347 * darwin-nat.c (darwin_stop): Add 'self' argument.
12349 2014-02-19 Tom Tromey <tromey@redhat.com>
12351 * target.h (struct target_ops) <to_thread_name>: Add argument.
12352 * target.c (target_thread_name): Add argument.
12353 (update_current_target): Update.
12354 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12356 2014-02-19 Tom Tromey <tromey@redhat.com>
12358 * target.h (struct target_ops) <to_extra_thread_info>: Add
12360 (target_extra_thread_info): Add argument.
12361 * target.c (update_current_target): Update.
12362 * remote.c (remote_threads_extra_info): Add 'self' argument.
12363 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12365 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12366 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12367 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12369 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12371 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12373 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12376 2014-02-19 Tom Tromey <tromey@redhat.com>
12378 * target.h (struct target_ops) <to_program_signals>: Add argument.
12379 * target.c (target_program_signals): Add argument.
12380 * remote.c (remote_program_signals): Add 'self' argument.
12382 2014-02-19 Tom Tromey <tromey@redhat.com>
12384 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12385 * target.c (target_pass_signals): Add argument.
12386 * remote.c (remote_pass_signals): Add 'self' argument.
12387 (remote_start_remote): Update.
12388 * procfs.c (procfs_pass_signals): Add 'self' argument.
12389 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12390 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12391 (linux_nat_create_inferior, linux_nat_attach): Update.
12393 2014-02-19 Tom Tromey <tromey@redhat.com>
12395 * windows-nat.c (windows_can_run): Add 'self' argument.
12396 * target.h (struct target_ops) <to_can_run>: Add argument.
12397 (target_can_run): Add argument.
12398 * target.c (debug_to_can_run): Add argument.
12399 (update_current_target): Update.
12400 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12401 * inf-child.c (inf_child_can_run): Add 'self' argument.
12402 * go32-nat.c (go32_can_run): Add 'self' argument.
12404 2014-02-19 Tom Tromey <tromey@redhat.com>
12406 * target.h (struct target_ops) <to_has_exited>: Add argument.
12407 (target_has_exited): Add argument.
12408 * target.c (debug_to_has_exited): Add argument.
12409 (update_current_target): Update.
12411 2014-02-19 Tom Tromey <tromey@redhat.com>
12413 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12415 (target_set_syscall_catchpoint): Add argument.
12416 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12418 * target.c (update_current_target): Update.
12420 2014-02-19 Tom Tromey <tromey@redhat.com>
12422 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12424 (target_remove_exec_catchpoint): Add argument.
12425 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12426 (update_current_target): Update.
12427 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12430 2014-02-19 Tom Tromey <tromey@redhat.com>
12432 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12434 (target_insert_exec_catchpoint): Add argument.
12435 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12436 (update_current_target): Update.
12437 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12440 2014-02-19 Tom Tromey <tromey@redhat.com>
12442 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12444 (target_remove_vfork_catchpoint): Add argument.
12445 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12446 (update_current_target): Update.
12447 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12450 2014-02-19 Tom Tromey <tromey@redhat.com>
12452 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12454 (target_insert_vfork_catchpoint): Add argument.
12455 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12456 (update_current_target): Update.
12457 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12460 2014-02-19 Tom Tromey <tromey@redhat.com>
12462 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12464 (target_remove_fork_catchpoint): Add argument.
12465 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12466 (update_current_target): Update.
12467 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12470 2014-02-19 Tom Tromey <tromey@redhat.com>
12472 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12474 (target_insert_fork_catchpoint): Add argument.
12475 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12476 (update_current_target): Update.
12477 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12480 2014-02-19 Tom Tromey <tromey@redhat.com>
12482 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12484 (target_post_startup_inferior): Add argument.
12485 * target.c (debug_to_post_startup_inferior): Add argument.
12486 (update_current_target): Update.
12487 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12489 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12491 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12493 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12495 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12497 (super_post_startup_inferior): Likewise.
12498 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12500 (super_post_startup_inferior): Likewise.
12501 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12502 Add 'self' argument.
12503 (super_post_startup_inferior): Likewise.
12505 2014-02-19 Tom Tromey <tromey@redhat.com>
12507 * target.h (struct target_ops) <to_load>: Add argument.
12508 * target.c (target_load): Add argument.
12509 (debug_to_load): Add argument.
12510 (update_current_target): Update.
12511 * remote.c (remote_load): Add 'self' argument.
12512 * remote-sim.c (gdbsim_load): Add 'self' argument.
12513 * remote-mips.c (mips_load): Add 'self' argument.
12514 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12515 * monitor.c (monitor_load): Add 'self' argument.
12516 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12518 2014-02-19 Tom Tromey <tromey@redhat.com>
12520 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12521 (target_terminal_info): Add argument.
12522 * target.c (debug_to_terminal_info): Add argument.
12523 (default_terminal_info): Likewise.
12524 * inflow.c (child_terminal_info): Add 'self' argument.
12525 * inferior.h (child_terminal_info): Add 'self' argument.
12526 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12528 2014-02-19 Tom Tromey <tromey@redhat.com>
12530 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12532 (target_terminal_save_ours): Add argument.
12533 * target.c (debug_to_terminal_save_ours): Add argument.
12534 (update_current_target): Update.
12535 * inflow.c (terminal_save_ours): Add 'self' argument.
12536 * inferior.h (terminal_save_ours): Add 'self' argument.
12538 2014-02-19 Tom Tromey <tromey@redhat.com>
12540 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12541 (target_terminal_ours): Add argument.
12542 * target.c (debug_to_terminal_ours): Add argument.
12543 (update_current_target): Update.
12544 * remote.c (remote_terminal_ours): Add 'self' argument.
12545 (remote_close): Update.
12546 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12547 * inflow.c (terminal_ours): Add 'self' argument.
12548 * inferior.h (terminal_ours): Add 'self' argument.
12549 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12551 2014-02-19 Pedro Alves <palves@redhat.com>
12552 Tom Tromey <tromey@redhat.com>
12554 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12556 (target_terminal_ours_for_output): Add argument.
12557 * target.c (debug_to_terminal_ours_for_output): Add argument.
12558 (update_current_target): Update.
12559 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12560 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12561 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12563 2014-02-19 Tom Tromey <tromey@redhat.com>
12565 * target.h (struct target_ops) <to_terminal_inferior>: Add
12567 * target.c (target_terminal_inferior): Add argument.
12568 (update_current_target): Update.
12569 * remote.c (remote_terminal_inferior): Add 'self' argument.
12570 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12571 * inflow.c (terminal_inferior): Add 'self' argument.
12572 * inferior.h (terminal_inferior): Add 'self' argument.
12573 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12574 (go32_terminal_inferior): Add 'self' argument.
12576 2014-02-19 Tom Tromey <tromey@redhat.com>
12578 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12579 (target_terminal_init): Add argument.
12580 * target.c (debug_to_terminal_init): Add argument.
12581 (update_current_target): Update.
12582 * inflow.c (terminal_init_inferior): Add 'self' argument.
12583 * inferior.h (terminal_init_inferior): Add 'self' argument.
12584 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12585 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12587 2014-02-19 Tom Tromey <tromey@redhat.com>
12589 * target.h (struct target_ops)
12590 <to_can_accel_watchpoint_condition>: Add argument.
12591 (target_can_accel_watchpoint_condition): Add argument.
12592 * target.c (debug_to_can_accel_watchpoint_condition): Add
12594 (update_current_target): Update.
12595 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12598 2014-02-19 Tom Tromey <tromey@redhat.com>
12600 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12602 (target_region_ok_for_hw_watchpoint): Add argument.
12603 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12604 (default_region_ok_for_hw_watchpoint): Add argument.
12605 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12606 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12608 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12610 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12612 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12614 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12616 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12618 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12619 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12621 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12622 Add 'self' argument.
12624 2014-02-19 Tom Tromey <tromey@redhat.com>
12626 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12628 (target_insert_watchpoint): Add argument.
12629 * target.c (debug_to_insert_watchpoint): Add argument.
12630 (update_current_target): Update.
12631 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12632 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12633 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12634 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12635 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12636 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12638 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12639 (procfs_insert_hw_watchpoint): Add 'self' argument.
12640 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12642 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12644 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12646 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12647 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12649 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12652 2014-02-19 Tom Tromey <tromey@redhat.com>
12654 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12656 (target_remove_watchpoint): Add argument.
12657 * target.c (debug_to_remove_watchpoint): Add argument.
12658 (update_current_target): Update.
12659 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12660 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12661 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12662 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12663 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12664 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12666 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12667 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12669 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12671 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12673 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12674 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12676 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12679 2014-02-19 Tom Tromey <tromey@redhat.com>
12681 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12683 (target_remove_hw_breakpoint): Add argument.
12684 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12685 (update_current_target): Update.
12686 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12687 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12689 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12690 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12692 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12695 2014-02-19 Tom Tromey <tromey@redhat.com>
12697 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12699 (target_insert_hw_breakpoint): Add argument.
12700 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12701 (update_current_target): Update.
12702 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12703 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12705 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12706 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12707 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12709 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12712 2014-02-19 Tom Tromey <tromey@redhat.com>
12714 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12716 (target_can_use_hardware_watchpoint): Add argument.
12717 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12718 (update_current_target): Update.
12719 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12721 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12723 * remote.c (remote_check_watch_resources): Add 'self' argument.
12724 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12725 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12727 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12728 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12730 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12732 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12734 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12736 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12738 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12740 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12741 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12743 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12746 2014-02-19 Tom Tromey <tromey@redhat.com>
12748 * target.h (struct target_ops) <to_post_attach>: Add argument.
12749 (target_post_attach): Add argument.
12750 * target.c (debug_to_post_attach): Add argument.
12751 (update_current_target): Update.
12752 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12753 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12754 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12755 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12756 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12758 2014-02-19 Tom Tromey <tromey@redhat.com>
12760 * windows-nat.c (windows_close): Add 'self' argument.
12761 * tracepoint.c (tfile_close): Add 'self' argument.
12762 * target.h (struct target_ops) <to_close>: Add argument.
12763 * target.c (target_close): Add argument.
12764 (update_current_target): Update.
12765 * remote.c (remote_close): Add 'self' argument.
12766 * remote-sim.c (gdbsim_close): Add 'self' argument.
12767 * remote-mips.c (mips_close): Add 'self' argument.
12768 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12769 * record-full.c (record_full_close): Add 'self' argument.
12770 * record-btrace.c (record_btrace_close): Add 'self' argument.
12771 * monitor.h (monitor_close): Add 'self' argument.
12772 * monitor.c (monitor_close): Add 'self' argument.
12773 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12774 * linux-nat.c (linux_nat_close): Add argument.
12775 * go32-nat.c (go32_close): Add 'self' argument.
12776 * exec.c (exec_close_1): Add 'self' argument.
12777 * ctf.c (ctf_close): Add 'self' argument.
12778 * corelow.c (core_close): Add 'self' argument.
12779 (core_close_cleanup): Update.
12780 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12781 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12783 2014-02-19 Tom Tromey <tromey@redhat.com>
12785 * remote.c (remote_load): New function.
12786 (init_remote_ops): Use it.
12788 2014-02-19 Tom Tromey <tromey@redhat.com>
12790 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12792 * common/linux-btrace.h (linux_supports_btrace): Update.
12793 * remote.c (remote_supports_btrace): Add "self" argument.
12794 * target-delegates.c: Rebuild.
12795 * target.c (target_supports_btrace): Remove.
12796 * target.h (struct target_ops) <to_supports_btrace>: Add
12797 target_ops argument.
12798 (target_supports_btrace): New define.
12800 2014-02-19 Tom Tromey <tromey@redhat.com>
12802 * record-full.c (record_full_beneath_to_resume_ops)
12803 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12804 (record_full_beneath_to_wait)
12805 (record_full_beneath_to_store_registers_ops)
12806 (record_full_beneath_to_store_registers)
12807 (record_full_beneath_to_xfer_partial_ops)
12808 (record_full_beneath_to_xfer_partial)
12809 (record_full_beneath_to_insert_breakpoint_ops)
12810 (record_full_beneath_to_insert_breakpoint)
12811 (record_full_beneath_to_remove_breakpoint_ops)
12812 (record_full_beneath_to_remove_breakpoint)
12813 (record_full_beneath_to_stopped_by_watchpoint)
12814 (record_full_beneath_to_stopped_data_address)
12815 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12816 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12817 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12818 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12819 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12820 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12821 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12822 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12823 (record_full_resume, record_full_wait_1)
12824 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12825 (record_full_store_registers, record_full_xfer_partial)
12826 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12827 (record_full_async, record_full_core_xfer_partial): Use target
12829 * target-delegates.c: Rebuild.
12830 * target.c (current_xfer_partial): Remove.
12831 (update_current_target): Do not INHERIT or de_fault
12832 to_insert_breakpoint, to_remove_breakpoint,
12833 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12834 to_is_async_p, to_async. Do not set to_xfer_partial field.
12835 (default_xfer_partial): Simplify.
12836 (current_xfer_partial): Remove.
12837 (target_wait, target_resume): Simplify.
12838 (find_default_can_async_p, find_default_is_async_p): Update.
12839 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12840 to_xfer_partial, to_stopped_by_watchpoint,
12841 to_stopped_data_address.
12842 (target_store_registers): Simplify.
12843 (forward_target_remove_breakpoint)
12844 (forward_target_insert_breakpoint): Remove.
12845 (target_remove_breakpoint, target_insert_breakpoint)
12846 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12847 * target.h (struct target_ops) <to_resume, to_wait,
12848 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12849 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12850 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12852 (forward_target_remove_breakpoint)
12853 (forward_target_insert_breakpoint): Remove.
12854 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12856 (record_btrace_insert_breakpoint): Delegate directly.
12858 2014-02-19 Tom Tromey <tromey@redhat.com>
12861 * target-delegates.c: New file.
12862 * target.c: Include target-delegates.c.
12863 (init_dummy_target): Call install_dummy_methods.
12864 (complete_target_initialization): Call install_delegators.
12865 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12866 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12867 * make-target-delegates: New file.
12869 2014-02-19 Tom Tromey <tromey@redhat.com>
12871 * record.c (find_record_target): Use find_target_at.
12872 * target.c (find_target_at): New function.
12873 * target.h (find_target_at): Declare.
12875 2014-02-19 Tom Tromey <tromey@redhat.com>
12877 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12878 Add 'ops' argument.
12879 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12881 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12882 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12884 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12886 * linux-nat.c (save_sigtrap): Update.
12887 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12888 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12889 (linux_nat_close): Update.
12890 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12892 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12894 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12895 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12896 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12897 (tmp_to_async): Add 'ops' argument.
12898 (record_full_stopped_by_watchpoint, record_full_async)
12899 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12901 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12902 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12903 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12904 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12905 (remote_is_async_p, remote_async): Add 'ops' argument.
12906 (remote_stopped_data_address): Update.
12907 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12908 * target.c (update_current_target)
12909 (find_default_can_async_p, find_default_is_async_p): Update.
12910 (init_dummy_target): Update.
12911 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12912 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12913 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12914 (target_can_async_p, target_is_async_p, target_async)
12915 (target_stopped_by_watchpoint): Update.
12917 2014-02-19 Yao Qi <yao@codesourcery.com>
12920 * gdbarch.sh: Remove startup_gdbarch.
12921 * gdbarch.c: Regenerated.
12922 * gdbarch.h: Likewise.
12924 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12926 * rl78-tdep.c (rl78_g10_register_name): New function.
12927 (rl78_return_value): Add g10 support.
12928 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12931 2014-02-17 Doug Evans <xdje42@gmail.com>
12933 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12934 (SUBDIR_GUILE_SRCS): Ditto.
12935 (scm-gsmob.o): Ditto.
12937 2014-02-17 Yao Qi <yao@codesourcery.com>
12939 * gnu-nat.c (ILL_RPC): Declare defined function.
12941 2014-02-17 Yao Qi <yao@codesourcery.com>
12943 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12944 mach_msg_type_number_t.
12945 (gnu_write_inferior): Likewise.
12947 2014-02-17 Yao Qi <yao@codesourcery.com>
12949 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12951 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12952 (inf_validate_procs, inf_signal): Likewise.
12953 (S_exception_raise_request): Likewise.
12954 (do_mach_notify_dead_name): Likewise.
12955 (steal_exc_port): Likewise.
12956 (gnu_read_inferior): Change 'copy_count''s type to
12957 mach_msg_type_number_t.
12958 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12961 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12963 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12964 flag. Adjust all users; in particular...
12965 (gnu_wait): ..., don't decrement its value in here...
12966 (gnu_create_inferior): ..., and instead set the flag in here,
12967 around the startup_inferior call, and call that one with
12968 START_INFERIOR_TRAPS_EXPECTED.
12970 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12971 (ILL_RPC): ... new macro.
12972 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12973 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12974 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12975 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12976 functions with ILL_RPC macro.
12977 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12978 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12979 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12980 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12981 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12982 (S_proc_getlogin_reply, S_proc_getsid_reply)
12983 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12984 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12985 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12986 (S_proc_getnports_reply, S_proc_is_important_reply)
12987 (S_proc_get_code_reply): New stub functions, generated with
12990 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12991 collected the type check structures.
12993 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12995 2014-02-14 Doug Evans <dje@google.com>
12997 * target.c (target_write_partial): Fix result type.
12999 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13001 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13002 the proper offsets to access fpregset_t.
13004 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13006 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13007 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13008 * h8300-tdep.c (setmachinelist): Remove global.
13009 * hppa-tdep.c (hppa_sigtramp): Remove global.
13010 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13011 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13012 * ravenscar-thread.c (update_target_observer): Remove global.
13013 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13015 2014-02-12 Tom Tromey <tromey@redhat.com>
13017 * common/rsp-low.c: Update comments.
13018 * common/rsp-low.h: Update comments.
13020 2014-02-12 Tom Tromey <tromey@redhat.com>
13022 * common/rsp-low.c (convert_ascii_to_int): Remove.
13023 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13025 2014-02-12 Tom Tromey <tromey@redhat.com>
13027 * common/rsp-low.h (unhexify): Don't declare.
13028 * common/rsp-low.c (unhexify): Remove.
13030 2014-02-12 Tom Tromey <tromey@redhat.com>
13032 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13033 * common/rsp-low.c (convert_int_to_ascii): Remove.
13035 2014-02-12 Tom Tromey <tromey@redhat.com>
13037 * common/rsp-low.h (hexify): Don't declare.
13038 * common/rsp-low.c (hexify): Remove.
13040 2014-02-12 Tom Tromey <tromey@redhat.com>
13042 * common/rsp-low.c (hexify): Never take strlen of argument.
13044 2014-02-12 Tom Tromey <tromey@redhat.com>
13046 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13047 * remote.c (extended_remote_run, remote_rcmd)
13048 (remote_download_trace_state_variable, remote_save_trace_data)
13049 (remote_set_trace_notes): Update.
13050 * tracepoint.c (encode_source_string, tfile_write_status)
13051 (tfile_write_uploaded_tsv): Update.
13053 2014-02-12 Tom Tromey <tromey@redhat.com>
13055 * tracepoint.c: Include rsp-low.h.
13056 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13057 * remote.c: Include rsp-low.h.
13058 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13059 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13060 (remote_unescape_input): Move to common/rsp-low.c.
13061 * common/rsp-low.h: New file.
13062 * common/rsp-low.c: New file.
13063 * Makefile.in (SFILES): Add common/rsp-low.c.
13064 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13065 (COMMON_OBS): Add rsp-low.o.
13066 (rsp-low.o): New target.
13068 2014-02-12 Tom Tromey <tromey@redhat.com>
13070 * utils.h: Include print-utils.h.
13071 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13072 (int_string, core_addr_to_string, core_addr_to_string_nz)
13073 (hex_string, hex_string_custom): Don't declare.
13074 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13075 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13076 (hex_string_custom, int_string, core_addr_to_string)
13077 (core_addr_to_string_nz, host_address_to_string): Move to
13078 common/print-utils.c.
13079 * common/print-utils.h: New file.
13080 * common/print-utils.c: New file
13081 * Makefile.in (SFILES): Add common/print-utils.c.
13082 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13083 (COMMON_OBS): Add print-utils.o.
13084 (print-utils.o): New target.
13086 2014-02-12 Tom Tromey <tromey@redhat.com>
13088 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13090 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13092 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13094 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13096 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13097 if a PT_IO ptrace request returns sucessfully but indicates that 0
13098 bytes were transferred.
13100 2014-02-12 Pedro Alves <palves@redhat.com>
13101 Kevin Buettner <kevinb@redhat.com>
13103 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13104 TYPE_INSTANCE_FLAG_CODE_SPACE.
13106 2014-02-12 Pedro Alves <palves@redhat.com>
13108 * h8300-tdep.c (pseudo_from_raw_register)
13109 (raw_from_pseudo_register): New functions.
13110 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13113 2014-02-12 Pedro Alves <palves@redhat.com>
13115 * h8300-tdep.c (h8300_register_sim_regno): New function.
13116 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13117 gdbarch_register_sim_regno hook.
13119 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13121 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13123 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13125 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13127 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13129 * obsd-tdep.h (obsd_init_abi): New prototype.
13130 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13131 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13132 (obsd_init_abi): New functions.
13133 * i386obsd-tdep.c: Include "obsd-tdep.h".
13134 (i386obsd_init_abi): Call obsd_init_abi.
13135 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13136 (amd64obsd_init_abi): Call obsd_init_abi.
13137 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13138 obsd-tdep.c to gdb_target_obs.
13140 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13142 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13143 double float arguments to 16-byte in the argument slots.
13145 2014-02-11 Doug Evans <xdje42@gmail.com>
13147 * configure.ac: Don't crash if pkg-config is not found and guile
13148 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13150 * configure: Regenerate.
13152 2014-02-11 Yao Qi <yao@codesourcery.com>
13154 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13155 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13156 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13157 * gnu-nat.c (gnu_xfer_memory): Likewise.
13158 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13159 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13160 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13161 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13163 2014-02-11 Yao Qi <yao@codesourcery.com>
13165 * target.h (enum target_xfer_error): Rename to ...
13166 (enum target_xfer_status): ... it. New. All users updated.
13167 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13169 (TARGET_XFER_STATUS_ERROR_P): New macro.
13170 (target_xfer_error_to_string): Remove declaration.
13171 (target_xfer_status_to_string): Declare.
13172 (target_xfer_partial_ftype): Adjust it.
13173 (struct target_ops) <to_xfer_partial>: Return
13174 target_xfer_status. Add argument xfered_len. Update
13176 * target.c (target_xfer_error_to_string): Rename to ...
13177 (target_xfer_status_to_string): ... it. New. All callers
13179 (target_read_live_memory): Likewise. Call target_xfer_partial
13180 instead of target_read.
13181 (memory_xfer_live_readonly_partial): Return
13182 target_xfer_status. Add argument xfered_len.
13183 (raw_memory_xfer_partial): Likewise.
13184 (memory_xfer_partial_1): Likewise.
13185 (memory_xfer_partial): Likewise.
13186 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13187 properly. Update debug message.
13188 (default_xfer_partial, current_xfer_partial): Likewise.
13189 (target_write_partial): Likewise.
13190 (target_read_partial): Likewise. All callers updated.
13191 (read_whatever_is_readable): Likewise.
13192 (target_write_with_progress): Likewise.
13193 (target_read_alloc_1): Likewise.
13195 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13196 * auxv.c (procfs_xfer_auxv): Likewise.
13197 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13198 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13199 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13200 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13201 * corefile.c (read_memory): Adjust.
13202 * corelow.c (core_xfer_partial): Likewise.
13203 * ctf.c (ctf_xfer_partial): Likewise.
13204 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13206 (darwin_xfer_partial): Likewise.
13207 * exec.c (section_table_xfer_memory_partial): Likewise. All
13209 (exec_xfer_partial): Likewise.
13210 * exec.h (section_table_xfer_memory_partial): Update
13212 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13214 (gnu_xfer_partial): Likewise.
13215 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13216 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13217 (ia64_hpux_xfer_solib_got): Likewise.
13218 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13219 type of 'partial_len' to ULONGEST.
13220 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13221 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13222 (linux_nat_xfer_partial): Likewise.
13223 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13224 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13225 * monitor.c (monitor_xfer_memory): Likewise.
13226 (monitor_xfer_partial): Likewise.
13227 * procfs.c (procfs_xfer_partial): Likewise.
13228 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13229 * record-full.c (record_full_xfer_partial): Likewise.
13230 (record_full_core_xfer_partial): Likewise.
13231 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13232 (gdbsim_xfer_partial): Likewise.
13233 * remote.c (remote_write_bytes_aux): Likewise. All callers
13235 (remote_write_bytes, remote_read_bytes): Likewise. All
13237 (remote_flash_erase): Likewise. All callers updated.
13238 (remote_write_qxfer): Likewise. All callers updated.
13239 (remote_read_qxfer): Likewise. All callers updated.
13240 (remote_xfer_partial): Likewise.
13241 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13242 (rs6000_xfer_shared_libraries): Likewise.
13243 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13244 (sol_thread_xfer_partial): Likewise.
13245 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13246 (sparc_xfer_partial): Likewise.
13247 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13249 (spu_xfer_partial): Likewise.
13250 * spu-multiarch.c (spu_xfer_partial): Likewise.
13251 * tracepoint.c (tfile_xfer_partial): Likewise.
13252 * windows-nat.c (windows_xfer_memory): Likewise.
13253 (windows_xfer_shared_libraries): Likewise.
13254 (windows_xfer_partial): Likewise.
13255 * valprint.c: Replace 'target_xfer_error' with
13256 'target_xfer_status' in comments.
13258 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13260 Checked in by Joel Brobecker <brobecker@adacore.com>.
13261 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13263 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13265 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13266 function parameters.
13268 2014-02-10 Will Newton <will.newton@linaro.org>
13270 * elfread.c (elf_rel_plt_read): Look for a .got section if
13271 looking up .got.plt fails.
13272 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13273 on address passed to elf_gnu_ifunc_record_cache.
13274 (elf_gnu_ifunc_resolve_addr): Likewise.
13275 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13277 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13279 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13280 (X_RETTURN): New macro.
13281 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13283 * sparc64-tdep.c (sparc64_init_abi): Hook
13284 sparc_in_function_epilogue_p.
13286 2014-02-10 Gary Benson <gbenson@redhat.com>
13288 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13289 Rename name_matcher to symbol_matcher.
13291 2014-02-10 Gary Benson <gbenson@redhat.com>
13293 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13294 Use expand_symtabs_file_matcher_ftype and
13295 expand_symtabs_symbol_matcher_ftype.
13297 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13299 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13300 (struct ada_symbol_cache): New.
13301 (ada_free_symbol_cache): Forward declare.
13302 (struct ada_pspace_data): New.
13303 (ada_pspace_data_handle): New static global.
13304 (get_ada_pspace_data, ada_pspace_data_cleanup)
13305 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13306 (cache_space, cache): Delete, now folded inside struct
13308 (ada_get_symbol_cache): New function.
13309 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13311 (_initialize_ada_language): Remove initialization of cache_space.
13312 Move call to observer_attach_inferior_exit up, grouping it
13313 with the other observer registrations inside this function.
13314 Rename command to be more general. Add call to
13315 register_program_space_data_with_cleanup.
13317 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13319 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13320 ada_new_objfile_observer.
13321 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13322 (_initialize_tasks): Update uses of ada_new_objfile_observer
13323 and ada_tasks_normal_stop_observer.
13325 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13327 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13328 returned by the 'Length attribute to integer.
13330 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13332 * ada-lang.c (_initialize_ada_language): Initialize
13333 cache_space obstack.
13335 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13337 * ada-lang.c (HASH_SIZE): New macro.
13338 (struct cache_entry): New type.
13339 (cache_space, cache): New static globals.
13340 (ada_clear_symbol_cache, find_entry): New functions.
13341 (lookup_cached_symbol, cache_symbol): Implement.
13342 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13343 (_initialize_ada_language): Attach ada_new_objfile_observer
13344 and ada_free_objfile_observer.
13346 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13348 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13349 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13350 struct block * parameter.
13351 (ada_lookup_symbol_list_worker): Constify local variable "block".
13352 Remove cast which is no longer necessary.
13354 2014-02-10 Doug Evans <xdje42@gmail.com>
13356 Add Guile as an extension language.
13357 * NEWS: Mention Guile scripting.
13358 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13359 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13360 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13361 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13362 (CLIBS): Add GUILE_LIBS.
13363 (install-guile): New rule.
13364 (guile.o): New rule.
13365 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13366 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13367 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13368 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13369 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13370 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13371 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13372 * configure.ac: New option --with-guile.
13373 * configure: Regenerate.
13374 * config.in: Regenerate.
13375 * auto-load.c: Remove #include "python/python.h". Add #include
13376 "gdb/section-scripts.h".
13377 (source_section_scripts): Handle Guile scripts.
13378 (_initialize_auto_load): Add name of Guile objfile script to
13379 scripts-directory help text.
13380 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13381 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13382 (struct breakpoint): New member scm_bp_object.
13383 * defs.h (enum command_control_type): New value guile_control.
13384 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13386 (show_user): Update comment.
13387 (_initialize_cli_cmds): Update help text for "show user". Update help
13388 text for max-user-call-depth.
13389 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13391 (multi_line_command_p): Add guile_control.
13392 (print_command_lines): Handle guile_control.
13393 (execute_control_command, recurse_read_control_structure): Ditto.
13394 (process_next_line): Recognize "guile" commands.
13395 * disasm.c (gdb_disassemble_info): Make non-static.
13396 * disasm.h: #include "dis-asm.h".
13397 (struct gdbarch): Add forward decl.
13398 (gdb_disassemble_info): Declare.
13399 * extension.c: #include "guile/guile.h".
13400 (extension_languages): Add guile.
13401 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13402 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13403 * gdbtypes.c (get_unsigned_type_max): New function.
13404 (get_signed_type_minmax): New function.
13405 * gdbtypes.h (get_unsigned_type_max): Declare.
13406 (get_signed_type_minmax): Declare.
13407 * guile/README: New file.
13408 * guile/guile-internal.h: New file.
13409 * guile/guile.c: New file.
13410 * guile/guile.h: New file.
13411 * guile/scm-arch.c: New file.
13412 * guile/scm-auto-load.c: New file.
13413 * guile/scm-block.c: New file.
13414 * guile/scm-breakpoint.c: New file.
13415 * guile/scm-disasm.c: New file.
13416 * guile/scm-exception.c: New file.
13417 * guile/scm-frame.c: New file.
13418 * guile/scm-gsmob.c: New file.
13419 * guile/scm-iterator.c: New file.
13420 * guile/scm-lazy-string.c: New file.
13421 * guile/scm-math.c: New file.
13422 * guile/scm-objfile.c: New file.
13423 * guile/scm-ports.c: New file.
13424 * guile/scm-pretty-print.c: New file.
13425 * guile/scm-safe-call.c: New file.
13426 * guile/scm-string.c: New file.
13427 * guile/scm-symbol.c: New file.
13428 * guile/scm-symtab.c: New file.
13429 * guile/scm-type.c: New file.
13430 * guile/scm-utils.c: New file.
13431 * guile/scm-value.c: New file.
13432 * guile/lib/gdb.scm: New file.
13433 * guile/lib/gdb/boot.scm: New file.
13434 * guile/lib/gdb/experimental.scm: New file.
13435 * guile/lib/gdb/init.scm: New file.
13436 * guile/lib/gdb/iterator.scm: New file.
13437 * guile/lib/gdb/printing.scm: New file.
13438 * guile/lib/gdb/types.scm: New file.
13439 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13440 (VPATH): Add $(GUILE_SRCDIR).
13441 (GUILE_DIR): New variable.
13442 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13443 (all): Add stamp-guile dependency.
13444 (stamp-guile): New rule.
13445 (clean-guile, install-guile, uninstall-guile): New rules.
13446 (install-only): Add install-guile dependency.
13447 (uninstall): Add uninstall-guile dependency.
13448 (clean): Add clean-guile dependency.
13450 2014-02-09 Doug Evans <xdje42@gmail.com>
13452 Revert this patch (which I approved, mea culpa).
13454 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13456 * Makefile.in (all-lib): Remove.
13457 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13459 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13461 Fix Python stack corruption.
13462 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13465 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13467 * Makefile.in (all-lib): Remove.
13468 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13470 2014-02-07 Doug Evans <dje@google.com>
13472 * extension-priv.h (extension_language_script_ops): Add comment.
13473 (extension_language_ops): Add comment.
13474 (active_ext_lang_state): Fix typo in comment.
13476 2014-02-07 Pedro Alves <palves@redhat.com>
13478 PR breakpoints/16292
13479 * infrun.c (handle_signal_stop) <signal arrives while stepping
13480 over a breakpoint>: Switch back to the stepping thread.
13482 2014-02-07 Yao Qi <yao@codesourcery.com>
13484 * target.c (target_xfer_partial): Return zero if LEN is zero.
13486 2014-02-07 Yao Qi <yao@codesourcery.com>
13488 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13489 (ld_so_xfer_auxv): Likewise.
13490 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13491 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13492 * corelow.c (core_xfer_partial): Likewise.
13493 * ctf.c (ctf_xfer_partial): Likewise.
13494 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13495 (darwin_xfer_partial): Likewise.
13496 * exec.c (exec_xfer_partial): Likewise.
13497 * gnu-nat.c (gnu_xfer_partial): Likewise.
13498 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13499 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13500 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13501 * linux-nat.c (linux_xfer_siginfo): Likewise.
13502 (linux_proc_xfer_spu): Likewise.
13503 * procfs.c (procfs_xfer_partial): Likewise.
13504 * record-full.c (record_full_xfer_partial): Likewise.
13505 (record_full_core_xfer_partial): Likewise.
13506 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13507 * remote.c (remote_write_qxfer): Likewise.
13508 (remote_write_qxfer, remote_read_qxfer): Likewise.
13509 (remote_xfer_partial): Likewise.
13510 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13511 (rs6000_xfer_shared_libraries): Likewise.
13512 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13513 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13514 (spu_xfer_partial): Likewise.
13515 * target.c (memory_xfer_partial_1): Likewise.
13516 * tracepoint.c (tfile_xfer_partial): Likewise.
13517 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13518 (windows_xfer_partial): Likewise.
13520 2014-02-07 Yao Qi <yao@codesourcery.com>
13522 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13524 (core_xfer_shared_libraries_aix): Likewise.
13525 * gdbarch.c, gdbarch.h: Regenerated.
13526 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13527 ULONGEST. Change 'len_avail' type to ULONGEST.
13528 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13529 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13531 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13533 2014-02-07 Yao Qi <yao@codesourcery.com>
13535 * corefile.c (memory_error): Get 'exception' from ERR and pass
13536 'exception' to throw_error.
13538 2014-02-06 Doug Evans <xdje42@gmail.com>
13540 * configure.ac (libpython checking): Remove all but python.o from
13541 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13542 * configure: Regenerate.
13544 * Makefile.in (SFILES): Add extension.c.
13545 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13546 (COMMON_OBS): Add extension.o.
13547 * extension.h: New file.
13548 * extension-priv.h: New file.
13549 * extension.c: New file.
13551 * python/python-internal.h: #include "extension.h".
13552 (gdbpy_auto_load_enabled): Declare.
13553 (gdbpy_apply_val_pretty_printer): Declare.
13554 (gdbpy_apply_frame_filter): Declare.
13555 (gdbpy_preserve_values): Declare.
13556 (gdbpy_breakpoint_cond_says_stop): Declare.
13557 (gdbpy_breakpoint_has_cond): Declare.
13558 (void source_python_script_for_objfile): Delete.
13559 * python/python.c: #include "extension-priv.h".
13560 Delete inclusion of "observer.h".
13561 (extension_language_python): Moved here and renamed from
13562 script_language_python in py-auto-load.c.
13563 Redefined to be of type extension_language_defn.
13564 (python_extension_script_ops): New global.
13565 (python_extension_ops): New global.
13566 (struct python_env): New member previous_active.
13567 (restore_python_env): Call restore_active_ext_lang.
13568 (ensure_python_env): Call set_active_ext_lang.
13569 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13571 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13573 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13575 (gdbpy_eval_from_control_command): Renamed from
13576 eval_python_from_control_command, made static. New arg extlang.
13577 (gdbpy_source_script) Renamed from source_python_script, made static.
13579 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13580 result to int. New arg extlang.
13581 (gdbpy_source_objfile_script): Renamed from
13582 source_python_script_for_objfile, made static. New arg extlang.
13583 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13584 static. New args extlang, extlang_printers. Change result type to
13586 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13587 static. New arg extlang. Rename arg printers to extlang_printers
13588 and change type to ext_lang_type_printers *.
13589 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13590 static. Replace argument arg with extlang, extlang_printers.
13591 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13592 (!HAVE_PYTHON, source_python_script): Delete.
13593 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13594 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13595 (!HAVE_PYTHON, start_type_printers): Delete.
13596 (!HAVE_PYTHON, apply_type_printers): Delete.
13597 (!HAVE_PYTHON, free_type_printers): Delete.
13598 (_initialize_python): Delete call to observer_attach_before_prompt.
13599 (finalize_python): Set/restore active extension language.
13600 (gdbpy_finish_initialization) Renamed from
13601 finish_python_initialization, made static. New arg extlang.
13602 (gdbpy_initialized): New function.
13603 * python/python.h: #include "extension.h". Delete #include
13604 "value.h", "mi/mi-cmds.h".
13605 (extension_language_python): Declare.
13606 (GDBPY_AUTO_FILE_NAME): Delete.
13607 (enum py_bt_status): Moved to extension.h and renamed to
13608 ext_lang_bt_status.
13609 (enum frame_filter_flags): Moved to extension.h.
13610 (enum py_frame_args): Moved to extension.h and renamed to
13611 ext_lang_frame_args.
13612 (finish_python_initialization): Delete.
13613 (eval_python_from_control_command): Delete.
13614 (source_python_script): Delete.
13615 (apply_val_pretty_printer): Delete.
13616 (apply_frame_filter): Delete.
13617 (preserve_python_values): Delete.
13618 (gdbpy_script_language_defn): Delete.
13619 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13620 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13622 * auto-load.c: #include "extension.h".
13623 (GDB_AUTO_FILE_NAME): Delete.
13624 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13625 (script_language_gdb): Delete, moved to extension.c and renamed to
13626 extension_language_gdb.
13627 (source_gdb_script_for_objfile): Delete.
13628 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13629 (loaded_script): Change type of language member to
13630 struct extension_language_defn *.
13631 (init_loaded_scripts_info): Initialize
13632 unsupported_script_warning_printed.
13633 (maybe_add_script): Make static. Change type of language arg to
13634 struct extension_language_defn *.
13635 (clear_section_scripts): Reset unsupported_script_warning_printed.
13636 (auto_load_objfile_script_1): Rewrite to use extension language API.
13637 (auto_load_objfile_script): Make public. Remove support-compiled-in
13638 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13639 (source_section_scripts): Rewrite to use extension language API.
13640 (load_auto_scripts_for_objfile): Rewrite to use
13641 auto_load_scripts_for_objfile.
13642 (collect_matching_scripts_data): Change type of language member to
13643 struct extension_language_defn *.
13644 (auto_load_info_scripts): Change type of language arg to
13645 struct extension_language_defn *.
13646 (unsupported_script_warning_print): New function.
13647 (script_not_found_warning_print): Make static.
13648 (_initialize_auto_load): Rewrite construction of scripts-directory
13650 * auto-load.h (struct objfile): Add forward decl.
13651 (struct script_language): Delete.
13652 (struct auto_load_pspace_info): Add forward decl.
13653 (struct extension_language_defn): Add forward decl.
13654 (maybe_add_script): Delete.
13655 (auto_load_objfile_script): Declare.
13656 (script_not_found_warning_print): Delete.
13657 (auto_load_info_scripts): Update prototype.
13658 (auto_load_gdb_scripts_enabled): Declare.
13659 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13660 auto_load_python_scripts_enabled and made public.
13661 (script_language_python): Delete, moved to python.c.
13662 (gdbpy_script_language_defn): Delete.
13663 (info_auto_load_python_scripts): Update to use
13664 extension_language_python.
13666 * breakpoint.c (condition_command): Replace call to
13667 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13668 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13669 with call to breakpoint_ext_lang_cond_says_stop.
13670 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13671 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13672 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13673 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13675 (local_setattro): Print name of extension language with existing
13678 * valprint.c (val_print, value_print): Update to call
13679 apply_ext_lang_val_pretty_printer.
13680 * cp-valprint.c (cp_print_value): Update call to
13681 apply_ext_lang_val_pretty_printer.
13682 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13683 (gdbpy_apply_val_pretty_printer): Renamed from
13684 apply_val_pretty_printer. New arg extlang.
13685 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13687 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13688 extension language API.
13689 * cli/cli-script.c (execute_control_command): Update to call
13690 eval_ext_lang_from_control_command.
13692 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13693 enum ext_lang_bt_status values. Update call to
13694 apply_ext_lang_frame_filter.
13695 (mi_cmd_stack_list_locals): Ditto.
13696 (mi_cmd_stack_list_args): Ditto.
13697 (mi_cmd_stack_list_variables): Ditto.
13698 * mi/mi-main.c: Delete #include "python/python-internal.h".
13699 Add #include "extension.h".
13700 (mi_cmd_list_features): Replace reference to python internal variable
13701 gdb_python_initialized with call to ext_lang_initialized_p.
13703 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13704 Update to use enum ext_lang_frame_args. Update to call
13705 apply_ext_lang_frame_filter.
13706 * python/py-framefilter.c (extract_sym): Update to use enum
13707 ext_lang_bt_status.
13708 (extract_value, py_print_type, py_print_value): Ditto.
13709 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13710 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13711 (py_print_frame): Ditto.
13712 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13713 New arg extlang. Update to use enum ext_lang_bt_status.
13715 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13716 finish_python_initialization. Replace with call to
13717 finish_ext_lang_initialization.
13719 * typeprint.c (do_free_global_table): Update to call
13720 free_ext_lang_type_printers.
13721 (create_global_typedef_table): Update to call
13722 start_ext_lang_type_printers.
13723 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13724 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13725 (type_print_options): Change type of global_printers from "void *"
13726 to "struct ext_lang_type_printers *".
13728 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13729 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13730 (gdbpy_preserve_values): Renamed from preserve_python_values.
13732 (!HAVE_PYTHON, preserve_python_values): Delete.
13734 * utils.c (quit_flag): Delete, moved to extension.c.
13735 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13738 * eval.c: Delete #include "python/python.h".
13739 * main.c: Delete #include "python/python.h".
13741 * defs.h: Update comment.
13743 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13747 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13749 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13752 2014-02-05 Yao Qi <yao@codesourcery.com>
13754 * remote.c (remote_pass_signals): Remove local 'buf' and use
13756 (remote_program_signals): Likewise.
13758 2014-02-05 Yao Qi <yao@codesourcery.com>
13760 * ctf.c: Include "inferior.h" and "gdbthread.h".
13761 (CTF_PID): A new macro.
13762 (ctf_open): Call inferior_appeared and add_thread_silent.
13763 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13764 (ctf_thread_alive): New function.
13765 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13767 2014-02-05 Yao Qi <yao@codesourcery.com>
13771 2013-05-24 Yao Qi <yao@codesourcery.com>
13773 * tracepoint.c (TFILE_PID): Remove.
13774 (tfile_open): Don't add thread and inferior.
13775 (tfile_close): Don't set 'inferior_ptid'. Don't call
13776 exit_inferior_silent.
13777 (tfile_thread_alive): Remove.
13778 (init_tfile_ops): Don't set field 'to_thread_alive' of
13781 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13783 * remote.c (remote_start_remote): Call remote_check_symbols even
13784 if only symbol-file (not file) has been given.
13786 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13788 * gdbarch.sh (skip_entrypoint): New callback.
13789 * gdbarch.c, gdbarch.h: Regenerate.
13790 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13791 * infrun.c (fill_in_stop_func): Likewise.
13792 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13793 (ppc_elfv2_elf_make_msymbol_special): New function.
13794 (ppc_elfv2_skip_entrypoint): Likewise.
13795 (ppc_linux_init_abi): Install them for ELFv2.
13797 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13799 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13800 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13801 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13802 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13803 structures returned in GPRs.
13805 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13807 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13808 offset to the stack parameter list for the ELFv2 ABI.
13810 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13812 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13813 set_gdbarch_convert_from_func_ptr_addr and
13814 set_gdbarch_elf_make_msymbol_special for ELFv1.
13815 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13816 function descriptors on ELFv1.
13817 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13818 set up r12 at function entry.
13820 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13822 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13823 (struct gdbarch_tdep): New member elf_abi.
13825 * rs6000-tdep.c: Include "elf/ppc64.h".
13826 (rs6000_gdbarch_init): Detect ELF ABI version.
13828 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13830 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13831 within a register pair holding a DFP 128-bit value on little-endian.
13832 (ppc64_sysv_abi_return_value_base): Likewise.
13833 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13834 (dfp_pseudo_register_write): Likewise.
13836 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13838 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13839 offset on little-endian when passing _Decimal32.
13840 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13842 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13844 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13845 of the overlapped FP register within the VSX register on little-
13847 (efpr_pseudo_register_write): Likewise.
13849 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13851 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13852 offset on little-endian when passing small structures.
13854 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13856 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13857 (struct ppc64_sysv_argpos): New data structure.
13858 (ppc64_sysv_abi_push_float): Remove.
13859 (ppc64_sysv_abi_push_val): New function.
13860 (ppc64_sysv_abi_push_integer): Likewise.
13861 (ppc64_sysv_abi_push_freg): Likewise.
13862 (ppc64_sysv_abi_push_vreg): Likewise.
13863 (ppc64_sysv_abi_push_param): Likewise.
13864 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13865 (ppc64_sysv_abi_return_value_base): New function.
13866 (ppc64_sysv_abi_return_value): Refactor to use it.
13868 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13870 * NEWS: Document new target powerpc64le-*-linux*.
13872 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13874 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13875 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13877 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13878 register set used in ELF core dumps. Add floating-point register set.
13880 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13882 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13883 dwarf2_to_gdb[] table using symbolic constants. Adjust
13884 penultimate entry from number representing the PC register
13885 to symbolic constant representing the MDR register. Add
13886 constant for the PC register to the end of the table.
13888 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13890 * bsd-kvm.c: Include <sys/param.h>
13892 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13894 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13896 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13898 * ada-lang.h (clear_ada_sym_cache): Delete.
13900 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13902 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13904 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13906 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13907 the sigreturn register save area only if the syscall is
13910 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13912 * valops.c (value_slice): Minor reformatting.
13914 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13916 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13918 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13920 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13921 New static globals.
13922 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13923 (ada_ignore_descriptive_types_p): New static global.
13924 (find_parallel_type_by_descriptive_type): Return immediately
13925 if ada_ignore_descriptive_types_p is set.
13926 (_initialize_ada_language): Register new commands "maintenance
13927 set ada", "maintenance show ada", "maintenance set ada
13928 ignore-descriptive-types" and "maintenance show ada
13929 ignore-descriptive-types".
13930 * NEWS: Add entry for new "maint ada set/show
13931 ignore-descriptive-types" commands.
13933 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13935 * record-btrace.c (record_btrace_close): Call btrace_teardown
13938 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13940 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13943 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13945 * ada-typeprint (type_is_full_subrange_of_target_type):
13947 (print_range): Add parameter bounds_prefered_p. If not set,
13948 try printing range types using the name of their base type.
13949 (print_range_type): Add parameter bounds_prefered_p.
13950 Use it in call to print_range.
13951 (print_array_type, ada_print_type): Update calls to print_range
13952 and print_range_type.
13954 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13956 * ada-typeprint.c (print_array_type, print_choices, print_range)
13957 (print_range_bound, print_dynamic_range_bound, print_range_type):
13958 Remove declaration.
13960 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13962 * ada-typeprint.c (print_range): Add missing empty line
13963 after local declaration.
13965 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13967 * ada-valprint.c (print_optional_low_bound): Get index_type's
13968 target type for as long as it is a TYPE_CODE_RANGE.
13970 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13972 * procfs.c (procfs_make_note_section): Remove assertion and
13973 associated comment.
13975 2014-01-24 Yao Qi <yao@codesourcery.com>
13977 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13978 * corelow.c (get_core_siginfo): Likewise.
13980 2014-01-24 Yao Qi <yao@codesourcery.com>
13982 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13983 ULONGEST. Don't check 'len' is negative.
13984 (remote_write_bytes): Change type of 'len' to ULONGEST.
13986 2014-01-23 Tom Tromey <tromey@redhat.com>
13989 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13990 Handle exception from frame.block.
13991 (FrameVars.fetch_frame_locals): Likewise.
13993 2014-01-23 Tom Tromey <tromey@redhat.com>
13996 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13997 on a NULL pointer. Move "goto error" to correct place.
13999 2014-01-23 Tom Tromey <tromey@redhat.com>
14002 * python/py-framefilter.c (apply_frame_filter): Call
14003 ensure_python_env after computing gdbarch.
14005 2014-01-23 Yao Qi <yao@codesourcery.com>
14007 * target.c (raw_memory_xfer_partial): Change argument type
14008 from void * to gdb_byte *.
14009 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14011 2014-01-22 Doug Evans <dje@google.com>
14013 New gdbserver option --debug-format=timestamp.
14014 * NEWS: Mention it.
14016 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14018 * syscalls/s390x-linux.xml: New file.
14019 * syscalls/s390-linux.xml: New file.
14020 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14021 (XML_SYSCALL_FILENAME_S390X): Likewise.
14022 (op_svc): New enum value for SVC opcode.
14023 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14024 (s390_linux_get_syscall_number): New function.
14025 (s390_gdbarch_init): Register '*get_syscall_number' and the
14026 syscall xml file name.
14027 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14028 "s390-linux.xml" and "s390x-linux.xml".
14029 * NEWS: Announce new feature.
14031 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14033 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14035 2014-01-22 Pedro Alves <palves@redhat.com>
14037 * xtensa-config.c: Include defs.h.
14039 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14041 * common/common-utils.h: Add "ARI:" comment beside __func__
14044 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14046 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14047 documentation a bit.
14049 2014-01-21 Roland McGrath <mcgrathr@google.com>
14051 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14052 * configure: Regenerate.
14053 * aclocal.m4: Regenerate.
14054 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14055 New substituted variables.
14056 (install-strip): New target.
14057 (INSTALL_SCRIPT): New substituted variable.
14058 (FLAGS_TO_PASS): Add it.
14059 (install-only): Use $(INSTALL_SCRIPT) rather than
14060 $(INSTALL_PROGRAM) for gcore.
14062 2014-01-20 Tom Tromey <tromey@redhat.com>
14064 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14067 2014-01-20 Tom Tromey <tromey@redhat.com>
14069 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14070 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14071 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14072 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14073 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14074 (struct cmd_list_element) <flags>: Remove.
14075 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14076 doc_allocated>: New fields.
14077 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14079 * maint.c (maintenance_do_deprecate): Update.
14080 * top.c (execute_command): Update.
14082 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14084 * xtensa-linux-nat.c: Include asm/ptrace.h.
14086 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14088 * Makefile.in (SFILES): Add d-support.c.
14089 (COMMON_OBS): Add d-support.o.
14090 * d-lang.h (d_parse_symbol): Add comment, now defined in
14092 * d-lang.c (parse_call_convention)
14093 (parse_attributes, parse_function_types)
14094 (parse_function_args, parse_type, parse_identifier)
14095 (call_convention_p, d_parse_symbol): Move functions to ...
14096 * d-support.c: ... New file.
14098 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14100 * d-lang.h (d_parse_symbol): Add declaration.
14101 * d-lang.c (extract_identifiers)
14102 (extract_type_info): Remove functions.
14103 (parse_call_convention, parse_attributes)
14104 (parse_function_types, parse_function_args)
14105 (parse_type, parse_identifier, call_convention_p)
14106 (d_parse_symbol): New functions.
14107 (d_demangle): Use d_parse_symbol to demangle D symbols.
14109 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14111 * d-lang.h (struct builtin_d_type): New data type.
14112 (builtin_d_type): Add declaration.
14113 * d-lang.c (d_language_arch_info, build_d_types)
14114 (builtin_d_type): New functions.
14115 (enum d_primitive_types): New data type.
14116 (d_language_defn): Change c_language_arch_info to
14117 d_language_arch_info.
14118 (d_type_data): New static variable.
14119 (_initialize_d_language): Initialize d_type_data.
14121 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14123 * d-lang.h (d_main_name): Add declaration.
14124 * d-lang.c (d_main_name): New function.
14125 * symtab.c (find_main_name): Add call to d_main_name.
14127 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14129 * d-lang.c (d_language_defn): Change macro_expansion_c to
14130 macro_expansion_no.
14132 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14134 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14136 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14138 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14139 gdb_exception" declaration.
14140 * remote.c (getpkt_or_notif_sane): Likewise.
14142 2014-01-17 Doug Evans <dje@google.com>
14144 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14145 function, contents of dirnames_to_char_ptr_vec_append moved here.
14146 (delim_string_to_char_ptr_vec): New function.
14147 (dirnames_to_char_ptr_vec_append): Rewrite.
14148 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14150 2014-01-17 Doug Evans <dje@google.com>
14152 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14154 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14155 #include "common-utils.h".
14156 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14157 * common/vec.h (VEC_ASSERT_PASS): Update.
14158 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14159 (MACH_CHECK_ERROR): Update.
14161 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14163 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14165 * gdbarch.h: Regenerate.
14167 2014-01-16 Tom Tromey <tromey@redhat.com>
14169 * value.c (struct value) <regnum>: Move earlier.
14171 2014-01-16 Tom Tromey <tromey@redhat.com>
14173 * remote.c (extended_remote_create_inferior): Rename from
14174 extended_remote_create_inferior_1. Add "ops" argument. Remove
14175 old implementation.
14177 2014-01-16 Pedro Alves <palves@redhat.com>
14179 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14180 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14183 2014-01-16 Doug Evans <dje@google.com>
14185 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14187 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14189 * btrace.h (btrace_thread_flag): New.
14190 (struct btrace_thread_info) <flags>: New.
14191 * record-btrace.c (record_btrace_resume_thread)
14192 (record_btrace_find_thread_to_move, btrace_step_no_history)
14193 (btrace_step_stopped, record_btrace_start_replaying)
14194 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14195 (record_btrace_find_resume_thread): New.
14196 (record_btrace_resume, record_btrace_wait): Extend.
14197 (record_btrace_can_execute_reverse): New.
14198 (record_btrace_open): Fail in non-stop mode.
14199 (record_btrace_set_replay): Split into this, ...
14200 (record_btrace_stop_replaying): ... this, ...
14201 (record_btrace_clear_histories): ... and this.
14202 (init_record_btrace_ops): Init to_can_execute_reverse.
14203 * NEWS: Announce it.
14205 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14207 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14208 (forward_target_decr_pc_after_break)
14209 (target_decr_pc_after_break): New.
14210 * target.c (forward_target_decr_pc_after_break)
14211 (target_decr_pc_after_break): New.
14212 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14213 instead of gdbarch_decr_pc_after_break.
14214 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14215 instead of gdbarch_decr_pc_after_break.
14216 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14217 instead of gdbarch_decr_pc_after_break.
14218 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14219 instead of gdbarch_decr_pc_after_break.
14220 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14221 instead of gdbarch_decr_pc_after_break.
14222 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14223 instead of gdbarch_decr_pc_after_break.
14225 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14227 * btrace.c: Include regcache.h.
14228 (btrace_add_pc): New.
14229 (btrace_enable): Call btrace_add_pc.
14230 (btrace_is_empty): New.
14231 * btrace.h (btrace_is_empty): New.
14232 * record-btrace.c (require_btrace, record_btrace_info): Call
14235 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14237 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14238 Support delta reads.
14239 (linux_disable_btrace): Change return type.
14240 * common/linux-btrace.h (linux_read_btrace): Change parameters
14241 and return type to allow error reporting. Update users.
14242 (linux_disable_btrace): Change return type. Update users.
14243 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14245 (btrace_error): New.
14246 (btrace_block) <begin>: Comment on BEGIN == 0.
14247 * btrace.c (btrace_compute_ftrace): Start from the end of
14249 (btrace_stitch_trace, btrace_clear_history): New.
14250 (btrace_fetch): Read delta trace, return if replaying.
14251 (btrace_clear): Move clear history code to btrace_clear_history.
14252 (parse_xml_btrace): Throw an error if parsing failed.
14253 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14254 and return type to allow error reporting.
14255 (target_read_btrace): Change parameters and return type to allow
14257 * target.c (target_read_btrace): Update.
14258 * remote.c (remote_read_btrace): Support delta reads. Pass
14260 * NEWS: Announce it.
14262 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14264 * record.h (record_btrace_frame_unwind)
14265 (record_btrace_tailcall_frame_unwind): New declarations.
14266 * dwarf2-frame: Include record.h
14267 (dwarf2_frame_cfa): Throw an error for btrace frames.
14268 * record-btrace.c: Include hashtab.h.
14269 (btrace_get_bfun_name): New.
14270 (btrace_call_history): Call btrace_get_bfun_name.
14271 (struct btrace_frame_cache): New.
14273 (bfcache_hash, bfcache_eq, bfcache_new): New.
14274 (btrace_get_frame_function): New.
14275 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14276 (record_btrace_frame_this_id): Compute own id.
14277 (record_btrace_frame_prev_register): Provide PC, throw_error
14278 for all other registers.
14279 (record_btrace_frame_sniffer): Detect btrace frames.
14280 (record_btrace_tailcall_frame_sniffer): New.
14281 (record_btrace_frame_dealloc_cache): New.
14282 (record_btrace_frame_unwind): Add new functions.
14283 (record_btrace_tailcall_frame_unwind): New.
14284 (_initialize_record_btrace): Allocate cache.
14285 * btrace.c (btrace_clear): Call reinit_frame_cache.
14286 * NEWS: Announce it.
14288 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14290 * record-btrace.c (record_btrace_set_replay)
14291 (record_btrace_goto_begin, record_btrace_goto_end)
14292 (record_btrace_goto): New.
14293 (init_record_btrace_ops): Initialize them.
14294 * NEWS: Announce it.
14296 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14298 * record-btrace.c (record_btrace_find_new_threads)
14299 (record_btrace_thread_alive): New.
14300 (init_record_btrace_ops): Initialize to_find_new_threads and
14303 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14305 * record-btrace.c (record_btrace_resume): New.
14306 (record_btrace_wait): New.
14307 (init_record_btrace_ops): Initialize to_wait and to_resume.
14309 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14311 * record-btrace.c (record_btrace_xfer_partial)
14312 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14313 (record_btrace_allow_memory_access): New.
14314 (init_record_btrace_ops): Initialize new methods.
14315 * target.c (raw_memory_xfer_partial): Bail out if target reports
14316 that this memory is not available.
14318 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14320 * target.h (target_ops) <to_insert_breakpoint>
14321 <to_remove_breakpoint>: Add target_ops parameter.
14322 (forward_target_insert_breakpoint): New.
14323 (forward_target_remove_breakpoint): New.
14324 (memory_remove_breakpoint, memory_insert_breakpoint):
14325 Add target_ops parameter.
14326 * target.c (target_insert_breakpoint): Split into this and ...
14327 (forward_target_insert_breakpoint): ... this.
14328 (target_remove_breakpoint): Split into this and ...
14329 (forward_target_remove_breakpoint): ... this.
14330 (debug_to_insert_breakpoint): Add target_ops parameter.
14331 Call forward_target_insert_breakpoint.
14332 (debug_to_remove_breakpoint): Add target_ops parameter.
14333 Call forward_target_remove_breakpoint.
14334 (update_current_target): Do not inherit or default to_insert_breakpoint
14335 and to_remove_breakpoint.
14336 * corelow.c (ignore): Add target_ops parameter.
14337 * exec.c (ignore): Add target_ops parameter.
14338 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14339 Add target_ops parameter.
14340 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14341 Add target_ops parameter.
14342 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14343 Add target_ops parameter.
14344 * record-full.c (record_full_beneath_to_insert_breakpoint)
14345 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14346 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14347 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14348 (record_full_core_remove_breakpoint): Add target_ops parameter.
14350 (record_full_beneath_to_insert_breakpoint_ops)
14351 (record_full_beneath_to_remove_breakpoint_ops)
14352 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14353 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14354 tmp_to_remove_breakpoint_ops,
14355 record_full_beneath_to_insert_breakpoint_ops, and
14356 record_full_beneath_to_remove_breakpoint_ops.
14357 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14358 (m32r_remove_breakpoint): Add target_ops parameter.
14359 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14360 Add target_ops parameter.
14361 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14362 Add target_ops parameter.
14364 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14365 Markus Metzger <markus.t.metzger@intel.com>
14367 * record-btrace.c: Include frame-unwind.h.
14368 (record_btrace_frame_unwind_stop_reason)
14369 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14370 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14372 (init_record_btrace_ops): Install it.
14374 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14376 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14379 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14381 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14384 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14386 * frame-unwind.c: Include target.h.
14387 (frame_unwind_try_unwinder): New function with code from ...
14388 (frame_unwind_find_by_frame): ... here. New variable
14389 unwinder_from_target, call also target_get_unwinder)
14390 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14391 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14392 * target.h (struct target_ops): New fields to_get_unwinder and
14393 to_get_tailcall_unwinder.
14394 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14396 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14398 * record-btrace.c (record_btrace_fetch_registers)
14399 (record_btrace_store_registers)
14400 (record_btrace_to_prepare_to_store): New.
14401 (init_record_btrace_ops): Add the above.
14403 2014-01-16 Tom Tromey <tromey@redhat.com>
14405 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14406 * target.h (struct target_ops) <to_prepare_to_store>: Add
14408 (target_prepare_to_store): Add argument.
14409 * target.c (debug_to_prepare_to_store): Add argument.
14410 (update_current_target): Update.
14411 * remote.c (remote_prepare_to_store): Add 'self' argument.
14412 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14413 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14414 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14415 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14417 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14418 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14419 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14420 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14421 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14423 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14425 * btrace.h (replay) <replay>: New.
14426 (btrace_is_replaying): New.
14427 * btrace.c (btrace_clear): Free replay iterator.
14428 (btrace_is_replaying): New.
14429 * record-btrace.c (record_btrace_is_replaying): New.
14430 (record_btrace_info): Print insn number if replaying.
14431 (record_btrace_insn_history): Start at replay position.
14432 (record_btrace_call_history): Start at replay position.
14433 (init_record_btrace_ops): Init to_record_is_replaying.
14435 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14437 * record-btrace.c (record_btrace_insn_history_range): Include
14439 (record_btrace_insn_history_from): Adjust range.
14440 (record_btrace_call_history_range): Include
14442 (record_btrace_call_history_from): Adjust range.
14443 * NEWS: Announce changes.
14445 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14447 * record.h (enum record_print_flag)
14448 <record_print_indent_calls>: New.
14449 * record.c (get_call_history_modifiers): Recognize /c modifier.
14450 (_initialize_record): Document /c modifier.
14451 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14452 Reorder fields. Optionally indent the function name. Update
14454 * NEWS: Announce changes.
14456 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14458 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14460 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14462 * btrace.c (ftrace_new_function): Start counting at one.
14463 * record-btrace.c (record_btrace_info): Adjust number of calls
14465 * NEWS: Announce it.
14467 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14469 * record-btrace.c (btrace_call_history_insn_range): Print
14470 insn range as [begin, end].
14472 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14474 * btrace.h (struct btrace_func_link): New.
14475 (enum btrace_function_flag): New.
14476 (struct btrace_inst): Rename to ...
14477 (struct btrace_insn): ...this. Update all users.
14478 (struct btrace_func) <ibegin, iend>: Remove.
14479 (struct btrace_func_link): New.
14480 (struct btrace_func): Rename to ...
14481 (struct btrace_function): ...this. Update all users.
14482 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14483 (number, level, flags>: New.
14484 (struct btrace_insn_iterator): Rename to ...
14485 (struct btrace_insn_history): ...this.
14487 (struct btrace_insn_iterator, btrace_call_iterator): New.
14488 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14489 (struct btrace_target_info) <begin, end, level>
14490 <insn_history, call_history>: New.
14491 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14492 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14493 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14494 (btrace_call_number, btrace_call_begin, btrace_call_end)
14495 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14496 (btrace_find_function_by_number, btrace_set_insn_history)
14497 (btrace_set_call_history): New.
14498 * btrace.c (btrace_init_insn_iterator)
14499 (btrace_init_func_iterator, compute_itrace): Remove.
14500 (ftrace_print_function_name, ftrace_print_filename)
14501 (ftrace_skip_file): Change
14502 parameter to const.
14503 (ftrace_init_func): Remove.
14504 (ftrace_debug): Use new btrace_function fields.
14505 (ftrace_function_switched): Also consider gaining and
14506 losing symbol information).
14507 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14508 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14509 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14511 (ftrace_new_function): Move. Remove debug print.
14512 (ftrace_update_lines, ftrace_update_insns): New.
14513 (ftrace_update_function): Check for call, ret, and jump.
14514 (compute_ftrace): Renamed to ...
14515 (btrace_compute_ftrace): ...this. Rewritten to compute call
14517 (btrace_fetch, btrace_clear): Updated.
14518 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14519 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14520 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14521 (btrace_call_number, btrace_call_begin, btrace_call_end)
14522 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14523 (btrace_find_function_by_number, btrace_set_insn_history)
14524 (btrace_set_call_history): New.
14525 * record-btrace.c (require_btrace): Use new btrace thread
14527 (record_btrace_info, btrace_insn_history)
14528 (record_btrace_insn_history, record_btrace_insn_history_range):
14529 Use new btrace thread info fields and new iterator.
14530 (btrace_func_history_src_line): Rename to ...
14531 (btrace_call_history_src_line): ...this. Use new btrace
14532 thread info fields.
14533 (btrace_func_history): Rename to ...
14534 (btrace_call_history): ...this. Use new btrace thread info
14535 fields and new iterator.
14536 (record_btrace_call_history, record_btrace_call_history_range):
14537 Use new btrace thread info fields and new iterator.
14539 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14541 * frame.h (frame_id_build_unavailable_stack_special): New.
14542 * frame.c (frame_id_build_unavailable_stack_special): New.
14544 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14546 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14547 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14548 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14550 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14551 (i386_insn_is_jump, i386_jmp_p): New.
14552 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14553 insn_is_jump to gdbarch.
14554 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14555 * gdbarch.h: Regenerated.
14556 * gdbarch.c: Regenerated.
14557 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14558 (default_insn_is_jump): New.
14559 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14560 (default_insn_is_jump): New.
14562 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14564 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14566 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14567 (btrace_read_type) <btrace_read_new>: Change to ...
14568 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14570 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14572 * common/linux-btrace.c (linux_read_btrace): Free trace from
14573 previous iteration.
14575 2014-01-15 Doug Evans <dje@google.com>
14577 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14580 2014-01-15 Tom Tromey <tromey@redhat.com>
14582 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14583 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14584 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14585 (set_objfile_main_name): New function.
14586 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14587 language_of_main>: New fields.
14588 (set_objfile_main_name): Declare.
14589 * symtab.c (find_main_name): Loop over objfiles to find the main
14591 (set_main_name): Now static.
14592 (get_main_info): Add comment.
14593 * symtab.h (set_main_name): Don't declare.
14595 2014-01-15 Tom Tromey <tromey@redhat.com>
14597 * symtab.c (main_progspace_key): New global.
14598 (struct main_info): New.
14599 (name_of_main, language_of_main): Remove.
14600 (get_main_info, main_info_cleanup): New function.
14601 (set_main_name, main_name, main_language): Use get_main_info.
14602 (_initialize_symtab): Initialize main_progspace_key.
14604 2014-01-15 Tom Tromey <tromey@redhat.com>
14606 * dbxread.c (process_one_symbol): Update.
14607 * dwarf2read.c (read_partial_die): Update.
14608 * symfile.c (set_initial_language): Call main_language.
14609 * symtab.c (language_of_main): Now static.
14610 (set_main_name): Add 'lang' parameter.
14611 (find_main_name): Update.
14612 (main_language): New function.
14613 (symtab_observer_executable_changed): Update.
14614 * symtab.h (set_main_name): Update.
14615 (language_of_main): Remove.
14616 (main_language): Declare.
14618 2014-01-15 Tom Tromey <tromey@redhat.com>
14620 * symfile.c (init_entry_point_info): Use new "initialized" field.
14622 * objfiles.h (struct entry_point) <initialized>: New field.
14623 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14624 (struct objfile) <ei>: ...here. Remove.
14625 * objfiles.c (entry_point_address_query): Update.
14627 2014-01-15 Tom Tromey <tromey@redhat.com>
14629 * objfiles.c (entry_point_address_query): Relocate entry point
14631 (objfile_relocate1): Do not relocate entry point address.
14632 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14633 <the_bfd_section_index>: New field.
14634 * symfile.c (init_entry_point_info): Find the entry point's
14637 2014-01-15 Tom Tromey <tromey@redhat.com>
14639 * solib-frv.c (enable_break): Use entry_point_address_query.
14641 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14643 * NEWS: Add note on improved process record-replay on
14644 arm*-linux* targets.
14646 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14648 * arm-tdep.c (enum arm_record_result): New enum.
14649 (arm_record_unsupported_insn): New function.
14650 (arm_record_coproc_data_proc): Removed.
14651 (thumb2_record_ld_st_multiple): New function.
14652 (thumb2_record_ld_st_dual_ex_tbb): New function.
14653 (thumb2_record_data_proc_sreg_mimm): New function.
14654 (thumb2_record_ps_dest_generic): New function.
14655 (thumb2_record_branch_misc_cntrl): New function.
14656 (thumb2_record_str_single_data): New function.
14657 (thumb2_record_ld_mem_hints): New function.
14658 (thumb2_record_ld_word): New function.
14659 (thumb2_record_lmul_lmla_div): New function.
14660 (thumb2_record_decode_insn_handler): New function.
14661 (decode_insn): Add thumb32 instruction handlers.
14663 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14665 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14666 (struct arm_linux_record_tdep): Declare.
14667 (arm_canonicalize_syscall): New function.
14668 (arm_all_but_pc_registers_record): New function.
14669 (arm_linux_syscall_record): New function.
14670 (arm_linux_init_abi): Add syscall recording constructs.
14671 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14672 decoding. (arm_record_coproc_data_proc): Update arm syscall
14674 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14675 <arm_syscall_record>: New field.
14676 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14679 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14681 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14682 register for push instruction recording.
14684 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14686 * arm-tdep.c (thumb_record_misc): Update to correct logical
14687 error while recording ldm, ldmia and pop instructions.
14689 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14691 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14693 2014-01-15 Pedro Alves <palves@redhat.com>
14695 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14696 (go32_resume, go32_fetch_registers, store_register)
14697 (go32_store_registers, go32_prepare_to_store)
14698 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14699 (go32_create_inferior, go32_can_run, go32_terminal_init)
14700 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14703 2014-01-15 Tom Tromey <tromey@redhat.com>
14705 * target.h (async_callback_ftype): New typedef.
14706 (struct target_ops) <to_async>: Use it.
14708 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14710 * python/py-value.c (get_field_type): Remove unnecessary curly
14711 braces for single-statement if block.
14713 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14715 * python/py-type.c (convert_field): Add missing empty line
14716 after declarations.
14718 2014-01-14 Doug Evans <dje@google.com>
14720 * symfile.h (expand_symtabs_matching): Renamed from
14721 expand_partial_symbol_names. Update prototype.
14722 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14723 * symfile.c (expand_symtabs_matching): Renamed from
14724 expand_partial_symbol_names. New args file_matcher, kind.
14725 Rename arg fun to symbol_matcher.
14726 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14727 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14728 ada_expand_partial_symbol_name.
14729 (ada_make_symbol_completion_list): Update to call
14730 expand_symtabs_matching.
14731 (ada_add_global_exceptions): Call expand_symtabs_matching.
14732 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14733 call map_symbol_filenames.
14734 * symtab.c (sources_info): Update to call map_symbol_filenames.
14735 (search_symbols): Call expand_symtabs_matching.
14736 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14737 (default_make_symbol_completion_list_break_on): Update to call
14738 expand_symtabs_matching.
14739 (make_source_files_completion_list): Update to call
14740 map_symbol_filenames.
14742 2014-01-14 Doug Evans <dje@google.com>
14744 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14745 (expand_symtabs_symbol_matcher_ftype): New typedef.
14746 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14747 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14748 * symfile.c (expand_partial_symbol_names): Update to use
14749 expand_symtabs_symbol_matcher_ftype.
14750 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14751 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14752 Arg name_matcher renamed to symbol_matcher.
14753 * psymtab.c (recursively_search_psymtabs): Update to use
14754 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14756 (expand_symtabs_matching_via_partial): Update to use
14757 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14758 Arg name_matcher renamed to symbol_matcher.
14760 2014-01-14 Doug Evans <dje@google.com>
14762 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14763 (map_partial_symbol_filenames): Ditto.
14764 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14765 (map_partial_symbol_filenames): Ditto.
14766 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14767 (map_partial_symbol_filenames): Ditto.
14768 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14769 (map_partial_symbol_filenames): Ditto.
14770 * symtab.c: Delete #include "psymtab.h".
14772 2014-01-14 Pedro Alves <palves@redhat.com>
14773 Tom Tromey <tromey@redhat.com>
14775 * infrun.c (use_displaced_stepping): Use find_record_target
14776 instead of RECORD_IS_USED.
14777 (adjust_pc_after_break): Use record_full_is_used instead of
14779 * record-btrace.c (record_btrace_open): Call record_preopen
14780 instead of checking RECORD_IS_USED.
14781 * record-full.c (record_full_shortname)
14782 (record_full_core_shortname): New globals.
14783 (record_full_is_used): New function.
14784 (find_full_open): Call record_preopen instead of checking
14786 (init_record_full_ops): Set the target's shortname to
14787 record_full_shortname.
14788 (init_record_full_core_ops): Set the target's shortname to
14789 record_full_core_shortname.
14790 * record-full.h (record_full_is_used): Declare.
14791 * record.c (find_record_target): Make extern.
14792 (record_preopen): New function.
14793 * record.h (RECORD_IS_USED): Delete macro.
14794 (find_record_target, record_preopen): Declare functions.
14796 2014-01-14 Yao Qi <yao@codesourcery.com>
14798 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14799 'len''s type to ULONGEST.
14800 (core_xfer_shared_libraries_aix): Likewise.
14801 * gdbarch.c, gdbarch.h: Regenerated.
14802 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14803 Change type of 'len' to ULONGEST.
14804 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14805 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14807 2014-01-14 Yao Qi <yao@codesourcery.com>
14809 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14810 type of 'len' to ULONGEST.
14811 (linux_xfer_osdata_processgroups): Likewise.
14812 (linux_xfer_osdata_threads): Likewise.
14813 (linux_xfer_osdata_fds): Likewise.
14814 (linux_xfer_osdata_isockets): Likewise.
14815 (linux_xfer_osdata_shm): Likewise.
14816 (linux_xfer_osdata_sem): Likewise.
14817 (linux_xfer_osdata_msg): Likewise.
14818 (linux_common_xfer_osdata): Likewise.
14819 (struct osdata_type) <getter>: Likewise.
14820 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14823 2014-01-14 Yao Qi <yao@codesourcery.com>
14825 * target.h (target_xfer_partial_ftype): Update.
14826 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14828 * aix-thread.c (aix_thread_xfer_partial): Change type of
14829 argument 'len' to ULONGEST.
14830 * auxv.c (procfs_xfer_auxv): Likewise.
14831 (ld_so_xfer_auxv): Likewise.
14832 (memory_xfer_auxv): Likewise.
14833 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14834 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14835 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14836 * corelow.c (core_xfer_partial): Likewise.
14837 * ctf.c (ctf_xfer_partial): Likewise.
14838 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14840 (darwin_read_dyld_info): Likewise.
14841 (darwin_xfer_partial): Likewise.
14842 * exec.c (section_table_xfer_memory_partial): Likewise.
14843 (exec_xfer_partial): Likewise.
14844 * exec.h (section_table_xfer_memory_partial): Update
14846 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14847 instead of plongest.
14848 (gnu_xfer_partial): Likewise.
14849 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14850 (ia64_hpux_xfer_solib_got): Likewise.
14851 (ia64_hpux_xfer_partial): Likewise.
14852 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14853 * inf-ptrace.c (inf_ptrace_xfer_partial):
14854 * inf-ttrace.c (inf_ttrace_xfer_partial):
14855 * linux-nat.c (linux_xfer_siginfo): Likewise.
14856 (linux_nat_xfer_partial): Likewise.
14857 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14858 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14859 * monitor.c (monitor_xfer_memory): Likewise.
14860 (monitor_xfer_partial): Likewise.
14861 * procfs.c (procfs_xfer_partial): Likewise.
14862 * record-full.c (record_full_xfer_partial): Likewise.
14863 (record_full_core_xfer_partial): Likewise.
14864 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14865 instead of plongest.
14866 (gdbsim_xfer_partial): Likewise.
14867 * remote.c (remote_xfer_partial): Likewise.
14868 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14869 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14871 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14872 (rs6000_xfer_shared_libraries): Likewise.
14873 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14874 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14875 (sparc_xfer_partial): Likewise.
14876 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14877 (spu_xfer_partial): Likewise.
14878 * spu-multiarch.c (spu_xfer_partial): Likewise.
14879 * target.c (target_read_live_memory): Likewise.
14880 (memory_xfer_live_readonly_partial): Likewise.
14881 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14882 (target_xfer_partial, default_xfer_partial): Likewise.
14883 (current_xfer_partial): Likewise.
14884 * tracepoint.c (tfile_xfer_partial): Likewise.
14885 * windows-nat.c (windows_xfer_memory): Likewise. Call
14886 pulongest instead of plongest.
14887 (windows_xfer_partial): Likewise.
14888 (windows_xfer_shared_libraries): Likewise.
14890 2014-01-14 Yao Qi <yao@codesourcery.com>
14892 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14893 target_xfer_partial_ftype.
14895 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14899 * valops.c (value_struct_elt_bitpos): New function
14900 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14901 object to 'None' if the field name is an empty string ("").
14902 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14903 attribute to look for a field when 'name' is 'None'.
14904 (get_field_type): New function
14906 2014-01-13 Doug Evans <dje@google.com>
14909 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14910 (try_open_dwop_file): Ditto.
14911 * gdb_bfd.c: #include "vec.h".
14912 (bfdp): New typedef.
14913 (struct gdb_bfd_data): New member included_bfds.
14914 (gdb_bfd_unref): Unref all included bfds.
14915 (gdb_bfd_record_inclusion): New function.
14916 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14918 2014-01-13 Tom Tromey <tromey@redhat.com>
14920 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14922 2014-01-13 Tom Tromey <tromey@redhat.com>
14924 * defs.h (use_windows): Remove.
14925 * gdb.c (main): Update.
14926 * main.c (captured_main, gdb_main): Update.
14927 * main.h (struct captured_main_args) <use_windows>: Remove.
14928 * top.c (use_windows): Remove.
14930 2014-01-13 Tom Tromey <tromey@redhat.com>
14932 * defs.h (deprecated_flush_hook): Remove.
14934 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14937 * linux-thread-db.c (try_thread_db_load): Add parameter
14938 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14939 (try_thread_db_load_from_pdir_1): Move it there from here.
14940 (try_thread_db_load_from_sdir): Update caller.
14941 (try_thread_db_load_from_dir): Move it there from here.
14943 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14945 * regformats/regdat.sh: Always rewrite the register file.
14947 2014-01-13 Pedro Alves <palves@redhat.com>
14949 * Makefile.in (CHECK_HEADERS): New variable.
14950 (check-headers:): New rule.
14952 2014-01-13 Tom Tromey <tromey@redhat.com>
14954 * cli/cli-setshow.c (do_set_command): Update.
14955 * defs.h (deprecated_set_hook): Remove.
14956 * top.c (deprecated_set_hook): Remove.
14958 2014-01-13 Pedro Alves <palves@redhat.com>
14960 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14961 the tracepoint if the PC is a pseudo-register.
14963 2014-01-13 Tom Tromey <tromey@redhat.com>
14965 * defs.h (XCALLOC): Remove.
14966 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14967 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14968 * dwarf2loc.c (allocate_piece_closure): Likewise.
14969 * elfread.c (elf_symfile_segments): Likewise.
14970 (elf_symfile_segments): Likewise.
14971 * gdbtypes.c (copy_type_recursive): Likewise.
14972 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14973 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14974 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14976 * mt-tdep.c (mt_gdbarch_init): Likewise.
14977 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14979 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14980 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14981 * registry.c (registry_alloc_data): Likewise.
14982 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14983 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14984 * serial.c (serial_fdopen_ops): Likewise.
14985 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14987 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14988 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14991 2014-01-13 Tom Tromey <tromey@redhat.com>
14993 * defs.h (XMALLOC): Remove.
14994 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14995 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14996 * cli-out.c (struct ui_out *): Likewise.
14997 * cli/cli-dump.c (add_dump_command): Likewise.
14998 (add_dump_command): Likewise.
14999 * complaints.c (get_complaints): Likewise.
15000 (find_complaint): Likewise.
15001 * dwarf2-frame.c (execute_cfa_program): Likewise.
15002 * dwarf2read.c (abbrev_table_read_table): Likewise.
15003 * gdbarch.sh: Likewise.
15004 * gdbarch.c: Rebuild.
15005 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15006 * interps.c (interp_new): Likewise.
15007 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15008 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15009 * mi/mi-console.c (mi_console_file_new): Likewise.
15010 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15011 * mi/mi-out.c (mi_out_new): Likewise.
15012 * mi/mi-parse.c (mi_parse): Likewise.
15013 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15014 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15015 * observer.c (xalloc_observer_list_node): Likewise.
15016 * regcache.c (regcache_xmalloc_1): Likewise.
15017 * reggroups.c (reggroup_new): Likewise.
15018 (_initialize_reggroup): Likewise.
15019 * registry.c (register_data_with_cleanup): Likewise.
15020 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15021 * ser-base.c (serial_ttystate): Likewise.
15022 * ser-mingw.c (make_pipe_state): Likewise.
15023 * ser-pipe.c (pipe_open): Likewise.
15024 * serial.c (serial_open): Likewise.
15025 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15026 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15027 (tui_alloc_win_info): Likewise.
15028 (tui_add_content_elements): Likewise.
15029 * tui/tui-file.c (tui_file_new): Likewise.
15030 * tui/tui-out.c (tui_out_new): Likewise.
15031 * ui-file.c (mem_file_new): Likewise.
15032 * ui-out.c (push_level): Likewise.
15033 (make_cleanup_ui_out_end): Likewise.
15034 (append_header_to_list): Likewise.
15035 (ui_out_new): Likewise.
15036 * user-regs.c (user_reg_add_builtin): Likewise.
15038 2014-01-13 Tom Tromey <tromey@redhat.com>
15040 * defs.h (XZALLOC): Remove.
15041 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15042 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15043 (get_ada_tasks_inferior_data): Likewise.
15044 * auto-load.c (get_auto_load_pspace_data): Likewise.
15045 * auxv.c (get_auxv_inferior_data): Likewise.
15046 * bfd-target.c (target_bfd_reopen): Likewise.
15047 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15048 (deprecated_insert_raw_breakpoint): Likewise.
15049 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15050 * corelow.c (core_open): Likewise.
15051 * darwin-nat.c (darwin_check_new_threads): Likewise.
15052 (darwin_attach_pid): Likewise.
15053 * dummy-frame.c (dummy_frame_push): Likewise.
15054 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15055 * dwarf2loc.c (allocate_piece_closure): Likewise.
15056 * elfread.c (elf_symfile_segments): Likewise.
15057 * eval.c (ptrmath_type_p): Likewise.
15058 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15059 * gdbtypes.c (alloc_type_arch): Likewise.
15060 (alloc_type_instance): Likewise.
15061 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15062 * inf-child.c (inf_child_can_use_agent): Likewise.
15063 * inflow.c (get_inflow_inferior_data): Likewise.
15064 * infrun.c (save_infcall_suspend_state): Likewise.
15065 * jit.c (jit_reader_load): Likewise.
15066 (get_jit_objfile_data): Likewise.
15067 (get_jit_program_space_data): Likewise.
15068 (jit_object_open_impl): Likewise.
15069 (jit_symtab_open_impl): Likewise.
15070 (jit_block_open_impl): Likewise.
15071 (jit_frame_sniffer): Likewise.
15072 * linux-fork.c (add_fork): Likewise.
15073 * maint.c (make_command_stats_cleanup): Likewise.
15074 * objfiles.c (get_objfile_pspace_data): Likewise.
15075 * opencl-lang.c (struct lval_closure): Likewise.
15076 * osdata.c (osdata_start_osdata): Likewise.
15077 * progspace.c (new_address_space): Likewise.
15078 (add_program_space): Likewise.
15079 * remote-sim.c (get_sim_inferior_data): Likewise.
15080 * sh-tdep.c (sh_gdbarch_init): Likewise.
15081 * skip.c (Ignore): Likewise.
15082 (skip_delete_command): Likewise.
15083 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15084 (library_list_start_library): Likewise.
15085 (solib_aix_current_sos): Likewise.
15086 * solib-darwin.c (get_darwin_info): Likewise.
15087 (darwin_current_sos): Likewise.
15088 * solib-dsbt.c (get_dsbt_info): Likewise.
15089 * solib-ia64-hpux.c (new_so_list): Likewise.
15090 (ia64_hpux_get_solib_linkage_addr): Likewise.
15091 * solib-spu.c (append_ocl_sos): Likewise.
15092 (spu_current_sos): Likewise.
15093 * solib-svr4.c (get_svr4_info): Likewise.
15094 (svr4_keep_data_in_core): Likewise.
15095 (library_list_start_library): Likewise.
15096 (svr4_default_sos): Likewise.
15097 (svr4_read_so_list): Likewise.
15098 * solib-target.c (library_list_start_library): Likewise.
15099 (solib_target_current_sos): Likewise.
15100 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15101 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15102 * symfile.c (default_symfile_segments): Likewise.
15103 * target-descriptions.c (tdesc_data_init): Likewise.
15104 (tdesc_create_reg): Likewise.
15105 (struct tdesc_type *): Likewise.
15106 (tdesc_create_vector): Likewise.
15107 (tdesc_set_struct_size): Likewise.
15108 (struct tdesc_type *): Likewise.
15109 (tdesc_free_feature): Likewise.
15110 (tdesc_create_feature): Likewise.
15111 * windows-nat.c (windows_add_thread): Likewise.
15112 (windows_make_so): Likewise.
15113 * xml-support.c (gdb_xml_body_text): Likewise.
15114 (gdb_xml_create_parser_and_cleanup): Likewise.
15115 (xml_process_xincludes): Likewise.
15116 * xml-syscall.c (allocate_syscalls_info): Likewise.
15117 (syscall_create_syscall_desc): Likewise.
15119 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15121 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15122 function, with code from i386_stap_parse_special_token.
15123 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15124 (i386_stap_parse_special_token): Move code to the two functions
15125 above; simplify it.
15127 2014-01-09 Pedro Alves <palves@redhat.com>
15128 Hui Zhu <hui@codesourcery.com>
15131 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15132 bp_err_string. Don't mark the location shlib_disabled if the
15133 error thrown wasn't a generic or memory error. Catch errors
15134 thrown while inserting breakpoints in overlayed code. Output
15135 error message of software breakpoints.
15136 * remote.c (remote_insert_breakpoint): If this breakpoint has
15137 target-side commands but this stub doesn't support Z0 packets,
15138 throw NOT_SUPPORTED_ERROR error.
15139 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15140 * target.h (target_insert_breakpoint): Extend comment.
15141 (target_insert_hw_breakpoint): Add comment.
15143 2014-01-08 Pedro Alves <palves@redhat.com>
15145 * remote.c (remote_add_thread): Add threads silently if starting
15147 (remote_notice_new_inferior): If in all-stop, and starting up,
15148 don't call notice_new_inferior.
15149 (get_current_thread): New function, factored out from ...
15150 (add_current_inferior_and_thread): ... this. Adjust.
15151 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15152 found any thread, then select the remote's current thread as GDB's
15153 current thread too.
15155 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15157 * NEWS: Create a new section for the next release branch.
15158 Rename the section of the current branch, now that it has
15161 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15163 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15164 * version.in: Bump version to 7.7.50.DATE-cvs.
15166 2014-01-08 Yao Qi <yao@codesourcery.com>
15168 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15169 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15170 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15172 2014-01-08 Yao Qi <yao@codesourcery.com>
15174 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15175 return value of bfd_get_filename to symbol_file_add_from_bfd.
15177 2014-01-08 Pierre Muller <muller@sourceware.org>
15180 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15181 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15182 to prim_record_mininal_symbol_and_info.
15183 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15184 in call to prim_record_minimal_symbol_and_info.
15185 (read_pe_exported_syms): Set index field of section_data.
15187 2014-01-07 Andrew Pinski <apinski@cavium.com>
15189 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15190 * features/aarch64.c: Regenerate.
15192 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15194 * target.c (return_null): Define.
15195 (update_current_target): Use it instead of return_zero for
15196 functions that return a pointer.
15198 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15200 * source.c (add_path): Fix check for duplicated paths in the previously
15203 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15205 * ada-lang.c: Remove duplicated include statements.
15206 * alphabsd-nat.c: Ditto.
15207 * amd64-darwin-tdep.c: Ditto.
15208 * amd64fbsd-nat.c: Ditto.
15209 * auto-load.c: Ditto.
15211 * breakpoint.c: Ditto.
15212 * dbxread.c: Ditto.
15213 * fork-child.c: Ditto.
15214 * gdb_usleep.c: Ditto.
15215 * i386-darwin-tdep.c: Ditto.
15216 * i386fbsd-nat.c: Ditto.
15218 * inferior.c: Ditto.
15219 * jv-lang.c: Ditto.
15220 * linux-nat.c: Ditto.
15221 * linux-tdep.c: Ditto.
15222 * m68kbsd-nat.c: Ditto.
15223 * m68klinux-nat.c: Ditto.
15224 * microblaze-tdep.c: Ditto.
15225 * mips-linux-tdep.c: Ditto.
15226 * mn10300-tdep.c: Ditto.
15227 * nto-tdep.c: Ditto.
15228 * opencl-lang.c: Ditto.
15230 * printcmd.c: Ditto.
15231 * regcache.c: Ditto.
15232 * remote-m32r-sdi.c: Ditto.
15234 * symfile.c: Ditto.
15236 * tilegx-linux-nat.c: Ditto.
15237 * tilegx-tdep.c: Ditto.
15238 * tracepoint.c: Ditto.
15240 * vaxbsd-nat.c: Ditto.
15241 * windows-nat.c: Ditto.
15242 * xtensa-tdep.c: Ditto.
15244 2014-01-07 Yao Qi <yao@codesourcery.com>
15246 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15248 2014-01-07 Yao Qi <yao@codesourcery.com>
15249 Joel Brobecker <brobecker@adacore.com>
15251 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15252 (pdc_write_regs): Likewise.
15253 (fetch_regs_kernel_thread): Likewise.
15254 (store_regs_kernel_thread): Likewise.
15256 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15258 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15259 tagged type objects to their actual type.
15261 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15263 * ada-valprint.c (print_field_values): Add "language" parameter.
15264 Update calls to print_field_values and print_variant_part.
15265 Pass new parameter "language" in call to val_print instead
15266 of "current_language". Replace call to ada_val_print by call
15268 (print_variant_part): Add "language" parameter.
15269 (ada_val_print_struct_union): Update call to print_field_values.
15271 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15273 * ada-valprint.c (ui_memcpy): Delete.
15274 (ada_print_floating): Update documentation. Add empty line
15275 between between function documentation and implementation.
15276 Delete variable "buffer". Use ui_file_xstrdup in place of
15277 ui_file_put. Minor adjustments following this change.
15279 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15281 * ada-valprint.c (ada_val_print_string): New function,
15282 extracted from ada_val_print_array.
15283 (ada_val_print_array): Replace extracted code by call
15284 to ada_val_print_string followed by a return. Move
15285 "else" branch to the function's top block.
15287 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15289 * ada-valprint.c (ada_val_print_array): Move implementation
15290 down. Rename parameter "offset" and "val" into "offset_aligned"
15291 and "original_value" respectively. Add parameter "offset".
15293 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15295 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15296 re-organizing the code. Change the "???" message printed
15297 when target type is a TYPE_CODE_UNDEF into
15298 "<ref to undefined type>".
15300 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15302 * ada-valprint.c (print_record): Delete, implementation inlined...
15303 (ada_val_print_struct_union): ... here. Remove call to
15304 ada_check_typedef in inlined implementation.
15306 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15308 * ada-valprint.c (ada_val_print_gnat_array): New function,
15309 extracted from ada_val_print_1;
15310 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15311 (ada_val_print_flt, ada_val_print_struct_union)
15312 (ada_val_print_ref): Likewise.
15313 (ada_val_print_1): Delete variables i and elttype.
15314 Replace extracted-out code by call to corresponding
15317 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15319 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15321 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15323 * ada-valprint.c (ada_val_print_1): Replace calls to
15324 ada_val_print_1 by calls to val_print.
15326 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15328 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15329 Update calls to self accordingly. Replace calls to c_val_print
15330 by calls to val_print.
15332 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15334 * ada-valprint.c (print_record): Delete declaration.
15335 (adjust_type_signedness, ada_val_print_1): Likewise.
15336 (ada_val_print): Move function implementation down.
15337 (print_variant_part, print_field_values, print_record):
15338 Move function implementation up.
15340 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15342 * python/py-type.c (typy_get_name): New function.
15343 (type_object_getset): Add entry for attribute "name".
15344 * NEWS: Add entry mentioning this new attribute.
15346 2014-01-07 Yao Qi <yao@codesourcery.com>
15348 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15351 2014-01-07 Yao Qi <yao@codesourcery.com>
15353 * gnu-nat.c (info_port_rights): Add qualifier const to
15356 2014-01-07 Yao Qi <yao@codesourcery.com>
15358 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15360 2014-01-07 Yao Qi <yao@codesourcery.com>
15362 * gnu-nat.c (make_inf) Update declaration.
15363 (make_inf): Make it static.
15364 (inf_set_traced): Likewise.
15365 (inf_port_to_thread, inf_task_died_status): Likewise.
15367 2014-01-07 Yao Qi <yao@codesourcery.com>
15369 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15371 2014-01-07 Yao Qi <yao@codesourcery.com>
15373 * gnu-nat.c (_initialize_gnu_nat): Declare.
15375 2014-01-07 Yao Qi <yao@codesourcery.com>
15377 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15379 (struct gdbarch_info) <byte_order>: Change type to
15381 <byte_order_for_code>: Likewise.
15382 * gdbarch.c, gdbarch.h: Regenerated.
15384 2014-01-06 Sasha Smundak <asmundak@google.com>
15386 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15388 2014-01-06 Tom Tromey <tromey@redhat.com>
15390 * doublest.c (convert_doublest_to_floatformat): Use const, not
15392 * somread.c (som_symtab_read): Likewise.
15394 2014-01-07 Hui Zhu <hui@codesourcery.com>
15396 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15397 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15398 (gdb_bfd_fopen): Ditto.
15399 (gdb_bfd_openr): Ditto.
15400 (gdb_bfd_openw): Ditto.
15401 (gdb_bfd_openr_iovec): Ditto.
15402 (gdb_bfd_fdopenr): Ditto.
15403 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15404 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15406 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15408 * symfile-mem.c (symbol_file_add_from_memory): Removed
15409 gdb_bfd_stash_filename.
15411 2014-01-03 Doug Evans <dje@google.com>
15413 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15416 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15418 Update year range in copyright notice of all files.
15420 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15422 * top.c (print_gdb_version): Set copyright year to 2014.
15424 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15426 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15428 For older changes see ChangeLog-2013.
15434 version-control: never