1 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
4 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
5 set_xml_syscall_file_name to provide gdbarch.
6 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
8 * breakpoint.c (print_it_catch_syscall): Adjust call to
9 get_syscall_by_number to provide gdbarch.
10 (print_one_catch_syscall): Likewise.
11 (print_mention_catch_syscall): Likewise.
12 (print_recreate_catch_syscall): Likewise.
13 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
14 and get_syscall_by_name to provide gdbarch.
15 (catch_syscall_completer): Adjust call to get_syscall_names to
17 * gdbarch.c: Regenerate.
18 * gdbarch.h: Likewise.
19 * gdbarch.sh: Forward declare "struct syscalls_info".
20 (xml_syscall_file): New variable.
21 (syscalls_info): Likewise.
22 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
23 set_xml_syscall_file_name to provide gdbarch.
24 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
25 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
26 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
27 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
28 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
29 * xml-syscall.c: Include gdbarch.h.
30 (set_xml_syscall_file_name): Accept gdbarch parameter.
31 (get_syscall_by_number): Likewise.
32 (get_syscall_by_name): Likewise.
33 (get_syscall_names): Likewise.
34 (my_gdb_datadir): Delete global variable.
35 (struct syscalls_info) <my_gdb_datadir>: New variable.
36 (struct syscalls_info) <sysinfo>: Rename variable to
38 (sysinfo): Delete global variable.
39 (have_initialized_sysinfo): Likewise.
40 (xml_syscall_file): Likewise.
41 (sysinfo_free_syscalls_desc): Rename to...
42 (syscalls_info_free_syscalls_desc): ... this.
43 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
44 code to the new layout of "struct syscalls_info".
45 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
47 (syscall_create_syscall_desc): Likewise.
48 (syscall_start_syscall): Likewise.
49 (syscall_parse_xml): Likewise.
50 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
51 (init_sysinfo): Rename to...
52 (init_syscalls_info): ...this. Add gdbarch as a parameter.
53 Adjust function to deal with gdbarch.
54 (xml_get_syscall_number): Delete parameter sysinfo. Accept
55 gdbarch as a parameter. Adjust code.
56 (xml_get_syscall_name): Likewise.
57 (xml_list_of_syscalls): Likewise.
58 (set_xml_syscall_file_name): Accept gdbarch as parameter.
59 (get_syscall_by_number): Likewise.
60 (get_syscall_by_name): Likewise.
61 (get_syscall_names): Likewise.
62 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
63 (get_syscall_by_number): Likewise.
64 (get_syscall_by_name): Likewise.
65 (get_syscall_names): Likewise.
67 2014-11-20 Doug Evans <xdje42@gmail.com>
69 Split struct symtab into two: struct symtab and compunit_symtab.
70 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
71 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
72 to "struct compunit_symtab *". All callers updated.
73 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
74 "struct symtab *" argument to "struct compunit_symtab *".
76 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
77 result to "struct compunit_symtab *". All callers updated.
78 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
79 Change result to "struct compunit_symtab *". All callers updated.
80 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
81 hange type to "struct compunit_symtab *". All uses updated.
82 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
83 Change type to "struct compunit_symtab *". All uses updated.
84 * buildsym.c (struct buildsym_compunit): New struct.
85 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
86 (buildsym_compunit): New static global.
87 (finish_block_internal): Update to fetch objfile from
89 (make_blockvector): Delete objfile argument.
90 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
91 debugformat, producer.
92 (start_buildsym_compunit): New function.
93 (free_buildsym_compunit): Renamed from free_subfiles_list.
95 (patch_subfile_names): Rewrite to use buildsym_compunit.
96 (get_compunit_symtab): New function.
97 (get_macro_table): Delete argument comp_dir. All callers updated.
98 (start_symtab): Change result to "struct compunit_symtab *".
99 All callers updated. Create the subfile of the main source file.
100 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
101 (reset_symtab_globals): Update.
102 (end_symtab_get_static_block): Update to use buildsym_compunit.
103 (end_symtab_without_blockvector): Rewrite.
104 (end_symtab_with_blockvector): Change result to
105 "struct compunit_symtab *". All callers updated.
106 Update to use buildsym_compunit. Don't set symtab->dirname,
107 instead set it in the compunit.
108 Explicitly make sure main symtab is first in its list.
109 Set debugformat, producer, blockvector, block_line_section, and
110 macrotable in the compunit.
111 (end_symtab_from_static_block): Change result to
112 "struct compunit_symtab *". All callers updated.
113 (end_symtab, end_expandable_symtab): Ditto.
114 (set_missing_symtab): Change symtab argument to
115 "struct compunit_symtab *". All callers updated.
116 (augment_type_symtab): Ditto.
117 (record_debugformat): Update to use buildsym_compunit.
118 (record_producer): Update to use buildsym_compunit.
119 * buildsym.h (struct subfile) <dirname>: Delete.
120 <producer, debugformat>: Delete.
121 <buildsym_compunit>: New member.
122 (get_compunit_symtab): Declare.
123 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
124 from primary_symtab. Change type to "struct compunit_symtab *".
126 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
128 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
129 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
130 symtab. Change type to "struct compunit_symtab *". All uses updated.
131 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
133 (dw2_find_last_source_symtab): Ditto.
134 (dw2_lookup_symbol): Ditto.
135 (recursively_find_pc_sect_compunit_symtab): Renamed from
136 recursively_find_pc_sect_symtab. Change result to
137 "struct compunit_symtab *". All callers updated.
138 (dw2_find_pc_sect_compunit_symtab): Renamed from
139 dw2_find_pc_sect_symtab. Change result to
140 "struct compunit_symtab *". All callers updated.
141 (get_compunit_symtab): Renamed from get_symtab. Change result to
142 "struct compunit_symtab *". All callers updated.
143 (recursively_compute_inclusions): Change type of immediate_parent
144 argument to "struct compunit_symtab *". All callers updated.
145 (compute_compunit_symtab_includes): Renamed from
146 compute_symtab_includes. All callers updated. Rewrite to compute
147 includes of compunit_symtabs and not symtabs.
148 (process_full_comp_unit): Update to work with struct compunit_symtab.
149 (process_full_type_unit): Ditto.
150 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
151 (dwarf_decode_lines): Remove special case handling of main subfile.
152 (macro_start_file): Delete argument comp_dir. All callers updated.
153 (dwarf_decode_macro_bytes): Ditto.
154 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
155 use struct compunit_symtab.
156 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
157 * jit.c (finalize_symtab): Build compunit_symtab.
158 * jv-lang.c (get_java_class_symtab): Change result to
159 "struct compunit_symtab *". All callers updated.
160 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
161 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
162 comp_dir. Change type to "struct compunit_symtab *".
164 (new_macro_table): Change comp_dir argument to cust,
165 "struct compunit_symtab *". All callers updated.
166 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
167 nr_primary_symtabs. All uses updated.
168 (count_symtabs_and_blocks): Update to handle compunits.
169 (report_command_stats): Update output, "primary symtabs" renamed to
171 * mdebugread.c (new_symtab): Change result to
172 "struct compunit_symtab *". All callers updated.
173 (parse_procedure): Change type of search_symtab argument to
174 "struct compunit_symtab *". All callers updated.
175 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
177 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
178 symtabs. Change type to "struct compunit_symtab *". All uses updated.
179 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
181 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
183 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
184 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
185 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
186 symtab. Change type to "struct compunit_symtab *". All uses updated.
187 * psymtab.c (psymtab_to_symtab): Change result type to
188 "struct compunit_symtab *". All callers updated.
189 (find_pc_sect_compunit_symtab_from_partial): Renamed from
190 find_pc_sect_symtab_from_partial. Change result type to
191 "struct compunit_symtab *". All callers updated.
192 (lookup_symbol_aux_psymtabs): Change result type to
193 "struct compunit_symtab *". All callers updated.
194 (find_last_source_symtab_from_partial): Ditto.
195 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
196 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
197 and macro_table from compunit.
198 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
199 type to "struct compunit_symtab *". All callers updated.
200 (debug_qf_lookup_symbol): Ditto.
201 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
202 debug_qf_find_pc_sect_symtab, change result type to
203 "struct compunit_symtab *". All callers updated.
204 * symfile.c (allocate_symtab): Delete objfile argument.
206 (allocate_compunit_symtab): New function.
207 (add_compunit_symtab_to_objfile): New function.
208 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
209 Change result type to "struct compunit_symtab *". All uses updated.
210 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
211 Change result type to "struct compunit_symtab *". All uses updated.
212 * symmisc.c (print_objfile_statistics): Compute blockvector count in
214 (dump_symtab_1): Update test for primary source symtab.
215 (maintenance_info_symtabs): Update to handle compunit symtabs.
216 (maintenance_check_symtabs): Ditto.
217 * symtab.c (set_primary_symtab): Delete.
218 (compunit_primary_filetab): New function.
219 (compunit_language): New function.
220 (iterate_over_some_symtabs): Change type of arguments "first",
221 "after_last" to "struct compunit_symtab *". All callers updated.
222 Update to loop over symtabs in each compunit.
223 (error_in_psymtab_expansion): Rename symtab argument to cust,
224 and change type to "struct compunit_symtab *". All callers updated.
225 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
226 Change result type to "struct compunit_symtab *". All callers updated.
227 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
228 Change result type to "struct compunit_symtab *". All callers updated.
229 (find_pc_sect_line): Only loop over symtabs within selected compunit
230 instead of all symtabs in the objfile.
231 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
232 <compunit_symtab> New member.
233 <block_line_section>: Moved to compunit_symtab.
234 <locations_valid>: Ditto.
235 <epilogue_unwind_valid>: Ditto.
236 <macro_table>: Ditto.
238 <debugformat>: Ditto.
241 <call_site_htab>: Ditto.
245 (SYMTAB_COMPUNIT): New macro.
246 (SYMTAB_BLOCKVECTOR): Update definition.
247 (SYMTAB_OBJFILE): Update definition.
248 (SYMTAB_DIRNAME): Update definition.
249 (struct compunit_symtab): New type. Common members among all source
250 symtabs within a compilation unit moved here. All uses updated.
251 (COMPUNIT_OBJFILE): New macro.
252 (COMPUNIT_FILETABS): New macro.
253 (COMPUNIT_DEBUGFORMAT): New macro.
254 (COMPUNIT_PRODUCER): New macro.
255 (COMPUNIT_DIRNAME): New macro.
256 (COMPUNIT_BLOCKVECTOR): New macro.
257 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
258 (COMPUNIT_LOCATIONS_VALID): New macro.
259 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
260 (COMPUNIT_CALL_SITE_HTAB): New macro.
261 (COMPUNIT_MACRO_TABLE): New macro.
262 (ALL_COMPUNIT_FILETABS): New macro.
263 (compunit_symtab_ptr): New typedef.
264 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
266 2014-11-20 Joel Brobecker <brobecker@adacore.com>
268 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
269 if the TYPE_CODE of range_type's base type does not match
270 the TYPE_CODE of encoding_type's base type.
272 2014-11-19 Joel Brobecker <brobecker@adacore.com>
274 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
277 2014-11-19 Joel Brobecker <brobecker@adacore.com>
279 * ada-lang.c (ada_is_redundant_range_encoding): New function.
280 (ada_is_redundant_index_type_desc): New function.
281 (to_fixed_array_type): Ignore parallel XA type if redundant.
283 2014-11-19 Joel Brobecker <brobecker@adacore.com>
285 * ada-lang.c (constrained_packed_array_type): Set the length
286 of the return array as if both bounds where zero if that
287 returned array's index type is dynamic.
289 2014-11-19 Yao Qi <yao@codesourcery.com>
291 * config/i386/go32.mh (CC): Remove.
293 2014-11-18 Doug Evans <xdje42@gmail.com>
295 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
298 2014-11-18 Doug Evans <xdje42@gmail.com>
300 * buildsym.c (buildsym_objfile): New static global.
301 (buildsym_comp_dir): New static global.
302 (finish_block_internal): Delete arg objfile. All callers updated.
303 (finish_block): Delete arg objfile. All callers updated.
304 (start_subfile): Delete arg dirname. All callers updated.
305 (patch_subfile_names): Update buildsym_comp_dir.
306 (get_macro_table): Delete arg objfile. All callers updated.
307 (start_symtab): New arg objfile. All callers updated.
308 Rename arg dirname to comp_dir.
309 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
310 (end_symtab_get_static_block): Delete arg objfile. All callers
312 (end_symtab_without_blockvector): Ditto.
313 (end_symtab_with_blockvector): Ditto.
314 (end_symtab_from_static_block): Ditto.
316 (end_expandable_symtab): Ditto.
317 (augment_type_symtab): Ditto.
318 * coffread.c (coff_start_symtab): New arg objfile. All callers
321 2014-11-18 Doug Evans <xdje42@gmail.com>
323 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
326 2014-11-18 Doug Evans <xdje42@gmail.com>
328 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
329 symtab.dirname updated to use it.
331 2014-11-18 Doug Evans <xdje42@gmail.com>
333 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
334 symtab.objfile updated to use it.
336 2014-11-18 Doug Evans <xdje42@gmail.com>
338 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
340 2014-11-18 Doug Evans <xdje42@gmail.com>
342 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
344 * findvar.c (default_read_var_value): Ditto.
345 * jv-lang.c (add_class_symtab_symbol): Ditto.
346 * parse.c (operator_check_standard): Ditto.
347 * printcmd.c (address_info): Ditto.
348 * symtab.c (fixup_symbol_section): Ditto.
349 (skip_prologue_sal): Ditto.
350 * tracepoint.c (scope_info): Ditto.
351 * valops.c (find_function_in_inferior): Ditto.
352 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
353 * python/py-symbol.c (set_symbol): Ditto.
355 2014-11-18 Doug Evans <xdje42@gmail.com>
357 * buildsym.c (main_subfile): New static global.
358 (free_subfiles_list): New function.
359 (start_symtab): Set main_subfile.
360 (restart_symtab): Replace init of subfiles, current_subfile with
361 call to free_subfiles_list.
362 (watch_main_source_file_lossage): Use main_subfile.
363 (reset_symtab_globals): Replace init of current_subfile with call
364 to free_subfiles_list.
365 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
366 functions, split out from ...
367 (end_symtab_from_static_block): ... here. Rewrite to call them.
369 2014-11-18 Doug Evans <xdje42@gmail.com>
371 The result of symtab expansion is always a primary symtab.
372 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
373 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
374 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
375 (psymtab_to_symtab): Add comment and assert.
376 (map_matching_symbols_psymtab): Remove unnecessary test for
379 2014-11-15 Doug Evans <xdje42@gmail.com>
382 * symtab.c (find_pc_line_symtab): New function.
383 * symtab.h (find_pc_line_symtab): Declare.
384 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
386 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
387 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
388 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
389 * tui/tui-win.c (make_visible_with_new_height): Ditto.
390 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
391 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
393 2014-11-15 Doug Evans <xdje42@gmail.com>
395 * symtab.c (expand_symtab_containing_pc): Renamed from
396 find_pc_sect_symtab_via_partial. All callers updated.
398 2014-11-15 Yao Qi <yao@codesourcery.com>
400 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
402 2014-11-14 Joel Brobecker <brobecker@adacore.com>
404 * common/common-defs.h: Move <stdarg.h> #include ahead of
407 2014-11-14 Pedro Alves <palves@redhat.com>
409 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
410 [!PHONY_ICONV] (gdb_iconv): New function.
411 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
413 2014-11-13 Doug Evans <dje@google.com>
416 * dwarf2read.c (find_slot_in_mapped_hash): Handle
417 "(anonymous namespace)".
419 2014-11-13 Doug Evans <dje@google.com>
421 * dwarf2read.c (update_enumeration_type_from_children): Avoid
424 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
426 * NEWS (maint set target-async): Fix typo.
428 2014-11-12 Pedro Alves <palves@redhat.com>
430 * infrun.c (enum infwait_states, infwait_state): Delete.
432 2014-11-12 Pedro Alves <palves@redhat.com>
434 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
435 Rewrite stepping over a permanent breakpoint.
436 (thread_still_needs_step_over, proceed): Don't set
437 stepping_over_breakpoint for permanent breakpoints.
438 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
439 single-step breakpoints out of the target on hardware step
441 (process_event_stop_test): If stepping a permanent breakpoint
442 doesn't hit the step-resume breakpoint, delete the step-resume
444 (switch_back_to_stepped_thread): Also check if the stepped thread
445 has advanced already on hardware step targets.
446 (currently_stepping): Return true if the thread stepped a
449 2014-11-12 Pedro Alves <palves@redhat.com>
451 Mark locations as permanent, not the whole breakpoint.
452 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
453 (mark_breakpoints_out): Don't mark permanent breakpoints as
455 (breakpoint_init_inferior): Use mark_breakpoints_out.
456 (breakpoint_here_p): Adjust.
457 (bpstat_stop_status, describe_other_breakpoints): Remove handling
458 of permanent breakpoints.
459 (make_breakpoint_permanent): Mark each location as permanent,
460 instead of marking the breakpoint.
461 (add_location_to_breakpoint): If the location is permanent, mark
462 it as such, and as inserted.
463 (init_breakpoint_sal): Don't make the breakpoint permanent here.
464 (bp_location_compare, update_global_location_list): Adjust.
465 (update_breakpoint_locations): Don't make the breakpoint permanent
467 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
469 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
470 (struct bp_location) <permanent>: New field.
471 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
472 reference to bp_permanent.
474 2014-11-12 Pedro Alves <palves@redhat.com>
476 * arch-utils.c (default_skip_permanent_breakpoint): New function.
477 * arch-utils.h (default_skip_permanent_breakpoint): New
479 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
480 Install default_skip_permanent_breakpoint as default method.
481 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
482 (i386_gdbarch_init): Don't install it.
483 * infrun.c (resume): Assume there's always a
484 gdbarch_skip_permanent_breakpoint implementation.
485 * gdbarch.h, gdbarch.c: Regenerate.
487 2014-11-11 Daniel Colascione <dancol@dancol.org>
489 Warn about cross-PID-namespace debugging.
490 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
491 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
492 * linux-thread-db.c (check_pid_namespace_match): New function.
493 (thread_db_inferior_created): Call it.
495 2014-11-10 Doug Evans <xdje42@gmail.com>
497 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
498 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
500 2014-11-10 Doug Evans <xdje42@gmail.com>
502 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
504 2014-11-10 Doug Evans <xdje42@gmail.com>
507 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
508 (lookup_static_symbol): Move definition to new location and rewrite.
509 (lookup_symbol_in_objfile): New function.
510 (lookup_symbol_global_iterator_cb): Call it.
512 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
514 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
516 2014-11-07 Pedro Alves <palves@redhat.com>
518 * infrun.c (process_event_stop_test) <subroutine check>: Don't
519 check if we did a "nexti" inside a prologue.
520 * symtab.c (in_prologue): Delete function.
521 * symtab.h (in_prologue): Delete declaration.
523 2014-11-06 Doug Evans <xdje42@gmail.com>
525 * symtab.h (lookup_global_symbol): Improve function comment.
527 2014-11-06 Doug Evans <xdje42@gmail.com>
529 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
531 * symtab.h (lookup_global_symbol): Update decl.
532 (lookup_static_symbol): Move decl to better location.
534 2014-11-06 Doug Evans <xdje42@gmail.com>
536 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
538 2014-11-06 Doug Evans <xdje42@gmail.com>
540 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
542 (lookup_symbol_in_all_objfiles): Renamed from
543 lookup_symbol_aux_symtabs. All callers updated.
544 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
546 (lookup_symbol_in_objfile_symtabs): Renamed from
547 lookup_symbol_aux_objfile. All callers updated.
549 2014-11-06 Doug Evans <xdje42@gmail.com>
551 * symtab.c (lookup_symbol_in_block): Renamed from
552 lookup_symbol_aux_block. All callers updated.
554 2014-11-06 Doug Evans <xdje42@gmail.com>
556 * symtab.c (lookup_static_symbol): Renamed from
557 lookup_static_symbol_aux. All callers updated.
558 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
561 2014-11-06 Doug Evans <xdje42@gmail.com>
563 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
564 * block.c (block_lookup_symbol): Use it.
565 * cp-support.c (make_symbol_overload_list_block): Use it.
566 * symtab.c (iterate_over_symbols): Use it.
568 2014-11-06 Doug Evans <xdje42@gmail.com>
570 * symtab.c (lookup_block_symbol): Moved to ...
571 * block.c (block_lookup_symbol): ... here and renamed.
573 * block.h (block_lookup_symbol): Declare.
574 * symtab.h (lookup_block_symbol): Delete.
576 2014-11-06 Doug Evans <xdje42@gmail.com>
578 * ada-lang.c (ada_make_symbol_completion_list): Use
579 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
580 * symtab.c (lookup_objfile_from_block): Ditto.
582 2014-11-06 Doug Evans <xdje42@gmail.com>
584 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
587 2014-11-06 Doug Evans <xdje42@gmail.com>
589 * objfiles.c (get_objfile_arch): Constify.
590 * objfiles.h (get_objfile_arch): Update prototype.
591 * solib.c (solib_global_lookup): Fetch arch from objfile,
594 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
596 * nios2-tdep.c (wild_insn): Delete.
597 (profiler_insn, irqentry_insn): Delete.
598 (nios2_match_sequence): Delete.
599 (nios2_analyze_prologue): Update comments. Remove matching
600 of obsolete profiler_insn and irqentry_insn sequences.
602 2014-11-05 Alan Modra <amodra@gmail.com>
604 * charset.c (convert_between_encodings): Shrink obstack using
606 * minsyms.c (install_minimal_symbols): Likewise.
607 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
608 to char* before doing pointer arithmetic.
610 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
612 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
614 2014-11-04 Pedro Alves <palves@redhat.com>
616 * breakpoint.c (breakpoint_thread_match): Delete function.
617 * breakpoint.h (breakpoint_thread_match): Delete declaration.
619 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
622 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
623 the method args also under EVAL_SKIP when evaluating method
624 calls under EVAL_SKIP.
626 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
628 * dwarf2loc.c (read_pieced_value): Do big endian
629 processing only if gdb_regnum is not -1.
630 (write_pieced_value): Ditto.
632 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
634 * arm-linux-tdep.c (arm_linux_init_abi): Use
635 info.byte_order_for_code to choose endianity of breakpoint
636 instructions snippets.
638 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
640 * arm-tdep.c (extract_arm_insn): Use
641 gdbarch_byte_order_for_code to read arm instruction.
643 2014-11-02 Doug Evans <xdje42@gmail.com>
645 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
647 2014-11-02 Doug Evans <xdje42@gmail.com>
649 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
650 main_subfile before returning.
652 2014-10-31 Doug Evans <xdje42@gmail.com>
654 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
655 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
657 2014-10-31 Doug Evans <xdje42@gmail.com>
659 * valops.c (value_cast_pointers): Fix whitespace.
660 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
663 2014-10-30 Doug Evans <dje@google.com>
665 * NEWS: Mention ability add attributes to gdb.Objfile and
666 gdb.Progspace objects.
667 * python/py-objfile.c (objfile_object): New member dict.
668 (objfpy_dealloc): Py_XDECREF dict.
669 (objfpy_initialize): Initialize dict.
670 (objfile_getset): Add __dict__.
671 (objfile_object_type): Set tp_dictoffset member.
672 * python/py-progspace.c (progspace_object): New member dict.
673 (pspy_dealloc): Py_XDECREF dict.
674 (pspy_initialize): Initialize dict.
675 (pspace_getset): Add __dict__.
676 (pspace_object_type): Set tp_dictoffset member.
678 2014-10-30 Yao Qi <yao@codesourcery.com>
680 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
681 replace '\\' with '\\\\'.
683 2014-10-29 Joel Brobecker <brobecker@adacore.com>
687 2014-10-29 Pedro Alves <palves@redhat.com>
690 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
691 instead of assuming a thread with a stepping range is always
694 2014-10-29 Pedro Alves <palves@redhat.com>
697 * event-top.c (change_line_handler): Call
698 gdb_rl_callback_handler_remove instead of
699 rl_callback_handler_remove.
700 (callback_handler_installed): New global.
701 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
702 (gdb_rl_callback_handler_reinstall): New functions.
703 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
704 gdb_rl_callback_handler_install instead of
705 rl_callback_handler_remove and rl_callback_handler_install.
706 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
707 instead of rl_callback_handler_remove.
708 * event-top.h (gdb_rl_callback_handler_remove)
709 (gdb_rl_callback_handler_install)
710 (gdb_rl_callback_handler_reinstall): New declarations.
711 * infrun.c (reinstall_readline_callback_handler_cleanup): New
713 (fetch_inferior_event): Install it.
714 * top.c (gdb_readline_wrapper_line) Call
715 gdb_rl_callback_handler_remove instead of
716 rl_callback_handler_remove.
717 (gdb_readline_wrapper_cleanup): Don't call
718 rl_callback_handler_install.
720 2014-10-29 Pedro Alves <palves@redhat.com>
722 * event-top.c (command_line_handler): Clear the first byte of
723 linebuffer, when it is first allocated.
725 2014-10-29 Pedro Alves <palves@redhat.com>
727 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
730 2014-10-29 Pedro Alves <palves@redhat.com>
734 * tui/tui-interp.c (tui_is_toplevel): Delete global.
735 (tui_allowed_p): Delete function.
736 * tui/tui.c: Include "interps.h".
737 (tui_enable): Don't use tui_allowed_p. Error out here with
738 detailed error messages if the TUI is the top level interpreter,
739 or if output is not a terminal. Use newterm instead of initscr,
740 and error out if initializing the terminal fails. Also error out if
741 the terminal doesn't support cursor addressing.
742 * tui/tui.h (tui_allowed_p): Delete declaration.
744 2014-10-29 Joel Brobecker <brobecker@adacore.com>
746 * arm-tdep.c (arm_skip_stack_protector): Return early if
747 address loaded by first "ldr" instruction does not have
748 a corresponding minimal symbol. Update comment.
750 2014-10-29 Yao Qi <yao@codesourcery.com>
752 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
753 loaded address correctly of ldr instruction.
755 2014-10-28 Pedro Alves <palves@redhat.com>
758 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
760 * infrun.c (resume) <stepping breakpoint instruction>: Set the
761 thread's stepped_breakpoint field. Skip if reverse debugging.
763 (init_thread_stepping_state, handle_signal_stop): Clear the
764 thread's stepped_breakpoint field.
766 2014-10-27 Pedro Alves <palves@redhat.com>
768 * remote.c (remote_thread_alive): New, factored out from ...
769 (remote_thread_alive): ... this.
770 (remote_update_thread_list): Bail out before deleting threads if
771 the target returned an empty list, and, the current thread has a
774 2014-10-27 Pedro Alves <palves@redhat.com>
776 * infrun.c (handle_signal_stop): Also skip handlers when a random
777 signal arrives while handling a "stepi" or a "nexti". Set the
778 thread's 'step_after_step_resume_breakpoint' flag.
780 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
782 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
783 (arm_record_ld_st_imm_offset): Reimplement to cover all
784 load/store cases for ARM opcode 010.
785 (arm_record_ld_st_multiple): Reimplement to cover all
786 load/store cases for ARM opcode 100.
788 2014-10-26 Doug Evans <xdje42@gmail.com>
790 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
792 2014-10-26 Doug Evans <xdje42@gmail.com>
794 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
795 parameter "kind" to "block_index".
796 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
798 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
800 2014-10-26 Doug Evans <xdje42@gmail.com>
802 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
804 2014-10-26 Doug Evans <xdje42@gmail.com>
806 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
809 2014-10-26 Doug Evans <xdje42@gmail.com>
811 * parser-defs.h (block_found): Move decl from here ...
812 * symtab.h (block_found): ... to here.
814 2014-10-26 Doug Evans <xdje42@gmail.com>
816 * symtab.h (struct field_of_this_result): Fix typo in comment.
817 (lookup_symbol_in_language): Move function comment here.
818 (lookup_symbol): Improve function comment.
819 (basic_lookup_symbol_nonlocal): Ditto.
820 (lookup_symbol_static, lookup_symbol_global): Ditto.
821 (lookup_symbol_aux_block): Ditto.
822 (lookup_language_this): Add function comment.
823 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
825 (lookup_block_symbol): Improve function comment.
826 (lookup_struct): Fix capitalization in function comment.
827 (lookup_transparent_type): Add function comment.
828 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
829 Improve function comment.
830 (lookup_objfile_from_block): Add function comment.
831 * symtab.c (lookup_symbol_in_language): Update function comment.
832 (lookup_symbol, lookup_language_this): Ditto.
833 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
834 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
835 (basic_lookup_symbol_nonlocal): Ditto.
836 (lookup_symbol_static, lookup_symbol_global): Ditto.
837 (lookup_transparent_type, lookup_block_symbol): Ditto.
839 2014-10-25 Doug Evans <xdje42@gmail.com>
841 * symtab.c (types_info): Delete forward decl.
842 (functions_info, variables_info, sources_info): Ditto.
843 (_initialize_symtab): Rewrite forward decl to use
844 initialize_file_ftype.
846 2014-10-25 Doug Evans <xdje42@gmail.com>
848 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
850 2014-10-25 Doug Evans <xdje42@gmail.com>
852 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
853 of local var child_die.
855 2014-10-24 Don Breazeal <donb@codesourcery.com>
857 * infrun.c (follow_fork_inferior): Update fork message printing
858 to use target_terminal_ours_for_output instead of
859 target_terminal_ours, to use _() for all format strings, to print
860 "vfork" instead of "fork" for vforks, and to add a detach message.
861 (handle_vfork_child_exec_or_exit): Update message printing to use
862 target_terminal_ours_for_output instead of target_terminal_ours, to
863 use _() for all format strings, and to fix some formatting.
865 2014-10-24 Pedro Alves <palves@redhat.com>
867 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
868 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
869 * config/vax/vax.mh: Delete.
870 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
871 obsolete configurations section.
872 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
873 * vax-nat.c: Delete file.
875 2014-10-24 Pedro Alves <palves@redhat.com>
877 * NEWS (Removed targets): Add OS/arch column.
879 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
881 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
882 on the arg type of a constructor only if it is of reference type.
884 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
886 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
887 accessors and constants from nios2 opcodes update.
888 (nios2_get_next_pc): Likewise.
890 2014-10-19 Doug Evans <xdje42@gmail.com>
892 * gdbthread.h (set_running): Fix comment.
893 (set_executing, finish_thread_state): Fix comment.
895 2014-10-18 Doug Evans <xdje42@gmail.com>
897 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
899 2014-10-17 Doug Evans <dje@google.com>
901 * NEWS: Mention new event gdb.clear_objfiles.
902 * python/py-event.h (emit_clear_objfiles_event): Clear
903 * python/py-events.h (events_object): New member clear_objfiles.
904 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
906 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
907 emit clear_objfiles event.
908 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
910 (emit_clear_objfiles_event): New function.
911 (clear_objfiles): New event.
912 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
914 * python/python.c (_initialize_python): Call
915 gdbpy_initialize_clear_objfiles_event.
917 2014-10-17 Doug Evans <dje@google.com>
919 * NEWS: Mention new gdb.Objfile.progspace attribute.
920 * python/py-objfile.c (objfpy_get_progspace): New function.
921 (objfile_getset): New entry for "progspace".
923 2014-10-17 Pedro Alves <palves@redhat.com>
926 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
927 returns a copy of the input.
928 (run_command_1, continue_command, step_1, jump_command)
929 (signal_command, until_command, advance_command, finish_command)
930 (attach_command): Adjust and install a cleanup to free the
933 2014-10-17 Pedro Alves <palves@redhat.com>
936 * infcmd.c (continue_1): If continuing all threads in the
937 foreground, make sure the inferior's terminal settings are put in
940 2014-10-17 Pedro Alves <palves@redhat.com>
943 * annotate.c (annotate_breakpoints_invalid): Use
944 target_terminal_our_for_output instead of target_terminal_ours.
945 Give back the terminal to the target.
946 (annotate_frames_invalid): Likewise.
948 2014-10-17 Pedro Alves <palves@redhat.com>
950 * target.c (enum terminal_state): New enum.
951 (terminal_state): New global.
952 (target_terminal_init): New function.
953 (target_terminal_inferior): Skip if inferior already owns the
955 (target_terminal_ours, target_terminal_ours_for_output): New
957 * target.h (target_terminal_init): Convert to function prototype.
958 (target_terminal_ours_for_output): Convert to function prototype
960 (target_terminal_ours): Convert to function prototype and tweak
962 * windows-nat.c (do_initial_windows_stuff): Call
963 target_terminal_init instead of child_terminal_init_with_pgrp.
965 2014-10-17 Pedro Alves <palves@redhat.com>
967 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
968 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
969 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
971 * NEWS: Mention that support for alpha*-*-osf* has been removed.
972 * ada-lang.h [__alpha__ && __osf__]
973 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
974 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
975 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
977 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
979 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
980 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
981 * configure: Regenerate.
982 * configure.ac: Remove references to osf.
983 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
984 section. Remove all other references to osf.
985 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
986 Remove all other references to osf.
987 * dec-thread.c: Delete file.
988 * defs.h (GDB_OSABI_OSF1): Delete.
989 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
991 * osabi.c (gdb_osabi_names): Delete "OSF/1".
992 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
994 (unconditionally_kill_inferior)
995 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
996 * solib-osf.c: Delete file.
998 2014-10-17 Pedro Alves <palves@redhat.com>
1000 * remote.c (clear_threads_listing_context): Move higher up, out of
1001 the HAVE_LIBEXPAT guard.
1003 2014-10-16 Tristan Gingold <gingold@adacore.com>
1005 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1006 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1009 2014-10-15 Pedro Alves <palves@redhat.com>
1011 * dec-thread.c (dec_thread_count_gdb_threads)
1012 (dec_thread_add_gdb_thread): Delete.
1013 (dec_thread_update_thread_list): Delete.
1014 (dec_thread_find_new_threads): Rename to ...
1015 (dec_thread_update_thread_list): ... this. Delete GDB-size
1016 threads that are no longer found in dec_thread_list.
1017 (resync_thread_list): Delete.
1018 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1021 2014-10-15 Pedro Alves <palves@redhat.com>
1023 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1024 * remote.c (remote_update_thread_list): Skip calling prune_threads
1025 if any thread listing method is supported, and instead walk over
1026 the set of remote threads listed, deleting those that are not
1027 found in GDB's thread list.
1029 2014-10-15 Pedro Alves <palves@redhat.com>
1031 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1032 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1033 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1034 (bsd_uthread_target): Adjust.
1035 * corelow.c (core_open): Adjust.
1036 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1037 (dec_thread_update_thread_list): New function.
1038 (init_dec_thread_ops): Adjust.
1039 * gdbthread.h (prune_threads): New declaration.
1040 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1041 (thread_db_update_thread_list): ... this. Call prune_threads.
1042 (init_thread_db_ops): Adjust.
1043 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1044 (procfs_update_thread_list): ... this. Call prune_threads.
1045 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1047 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1048 (obsd_update_thread_list): ... this. Call prune_threads.
1049 (obsd_add_target): Adjust.
1050 * procfs.c (procfs_target): Adjust.
1051 (procfs_notice_thread): Update comment.
1052 (procfs_find_new_threads): Rename to ...
1053 (procfs_update_thread_list): ... this. Call prune_threads.
1054 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1056 (ravenscar_wait): Adjust.
1057 (ravenscar_find_new_threads): Rename to ...
1058 (ravenscar_update_thread_list): ... this. Call prune_threads.
1059 (init_ravenscar_thread_ops): Adjust.
1060 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1061 (record_btrace_update_thread_list): ... this. Adjust comment.
1062 (init_record_btrace_ops): Adjust.
1063 * remote.c (remote_threads_info): Rename to ...
1064 (remote_update_thread_list): ... this. Call prune_threads.
1065 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1067 * sol-thread.c (check_for_thread_db): Adjust.
1068 (sol_find_new_threads_callback): Rename to ...
1069 (sol_update_thread_list_callback): ... this.
1070 (sol_find_new_threads): Rename to ...
1071 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1072 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1073 * target-delegates.c: Regenerate.
1074 * target.c (target_find_new_threads): Rename to ...
1075 (target_update_thread_list): ... this.
1076 * target.h (struct target_ops): Rename to_find_new_threads field
1077 to to_update_thread_list.
1078 (target_find_new_threads): Rename to ...
1079 (target_update_thread_list): ... this.
1080 * thread.c (prune_threads): Make extern.
1081 (update_thread_list): Adjust.
1083 2014-10-15 Pedro Alves <palves@redhat.com>
1085 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1086 Add describing comment. Return -1 if the qL packet is not
1088 (struct thread_item, thread_item_t): Move higher up in
1089 the file. Add comments.
1090 (struct threads_parsing_context): Move higher up in
1091 the file, add comments, and remote to ...
1092 (struct threads_listing_context): ... this.
1093 (remote_newthread_step): Don't add the thread to GDB's thread
1094 database here. Instead push it to the thread_listing_context
1096 (remote_find_new_threads): Rename to ...
1097 (remote_get_threads_with_ql): ... this. Add target_ops and
1098 targets_listing_context parameters. Pass down context.
1099 (start_thread): Adjust.
1100 (clear_threads_parsing_context): Rename to ...
1101 (clear_threads_listing_context): ... this.
1102 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1103 remote_threads_info.
1104 (remote_get_threads_with_qthreadinfo): Ditto.
1105 (remote_threads_info): Reimplement.
1107 2014-10-15 Pedro Alves <palves@redhat.com>
1109 * infrun.c (resume): Don't force displaced-stepping for all
1110 single-steps on software single-stepping archs.
1112 2014-10-15 Pedro Alves <palves@redhat.com>
1114 * breakpoint.c (single_step_breakpoints): Delete global.
1115 (insert_single_step_breakpoint): Adjust to store the breakpoint
1116 pointer in the current thread.
1117 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1118 (cancel_single_step_breakpoints): Delete functions.
1119 (breakpoint_has_location_inserted_here): Make extern.
1120 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1122 * breakpoint.h (breakpoint_has_location_inserted_here): New
1124 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1125 (cancel_single_step_breakpoints): Remove declarations.
1126 * gdbthread.h (struct thread_control_state)
1127 <single_step_breakpoints>: New field.
1128 (delete_single_step_breakpoints)
1129 (thread_has_single_step_breakpoints_set)
1130 (thread_has_single_step_breakpoint_here): New declarations.
1131 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1132 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1133 (singlestep_pc): Delete globals.
1134 (infrun_thread_ptid_changed): Remove references to removed
1136 (resume_cleanups): Delete the current thread's single-step
1138 (maybe_software_singlestep): Remove references to removed globals.
1139 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1140 delete_single_step_breakpoints.
1141 (init_wait_for_inferior): Remove references to removed globals.
1142 (delete_thread_infrun_breakpoints): Delete the thread's
1143 single-step breakpoints too.
1144 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1145 single-step breakpoints here.
1146 (delete_stopped_threads_single_step_breakpoints): New function.
1147 (adjust_pc_after_break): Adjust to use
1148 thread_has_single_step_breakpoints_set.
1149 (handle_inferior_event): Remove references to removed globals.
1150 Use delete_stopped_threads_single_step_breakpoints.
1151 (handle_signal_stop): Adjust to per-thread single-step
1152 breakpoints. Swap test order to do cheaper tests first.
1153 (switch_back_to_stepped_thread): Extend debug output. Remove
1154 references to removed globals.
1155 * record-full.c (record_full_wait_1): Adjust to per-thread
1156 single-step breakpoints.
1157 * thread.c (delete_single_step_breakpoints)
1158 (thread_has_single_step_breakpoints_set)
1159 (thread_has_single_step_breakpoint_here): New functions.
1160 (clear_thread_inferior_resources): Also delete the thread's
1161 single-step breakpoints.
1163 2014-10-15 Pedro Alves <palves@redhat.com>
1165 * thread.c (delete_thread_breakpoint): New function.
1166 (delete_step_resume_breakpoint)
1167 (delete_exception_resume_breakpoint): Use it.
1168 (delete_at_next_stop): New function.
1169 (clear_thread_inferior_resources): Use delete_at_next_stop.
1171 2014-10-15 Pedro Alves <palves@redhat.com>
1173 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1174 (breakpoint_inserted_here_p): ... here. Remove special case for
1175 software single-step breakpoints.
1176 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1177 (software_breakpoint_inserted_here_p): ... here. Remove special
1178 case for software single-step breakpoints.
1179 (bp_target_info_copy_insertion_state)
1180 (deprecated_insert_raw_breakpoint)
1181 (deprecated_remove_raw_breakpoint): Delete functions.
1182 * breakpoint.h (deprecated_insert_raw_breakpoint)
1183 (deprecated_remove_raw_breakpoint): Remove declarations.
1185 2014-10-15 Pedro Alves <palves@redhat.com>
1188 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1189 Delete array globals.
1190 (single_step_breakpoints): New global.
1191 (breakpoint_xfer_memory): Remove special handling for single-step
1193 (update_breakpoints_after_exec): Delete bp_single_step
1195 (detach_breakpoints): Remove special handling for single-step
1197 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1198 (bpstat_stop_status): Add comment.
1199 (bpstat_what, bptype_string, print_one_breakpoint_location)
1200 (adjust_breakpoint_address, init_bp_location): Handle
1202 (new_single_step_breakpoint): New function.
1203 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1204 handling for single-step breakpoints.
1205 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1206 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1208 (detach_single_step_breakpoints, find_single_step_breakpoint):
1210 (breakpoint_has_location_inserted_here): New function.
1211 (single_step_breakpoint_inserted_here_p): Rewrite.
1212 * breakpoint.h: Remove FIXME.
1213 (enum bptype) <bp_single_step>: New enum value.
1214 (insert_single_step_breakpoint): Update comment.
1215 * infrun.c (resume_cleanups)
1216 (delete_step_thread_step_resume_breakpoint): Remove single-step
1218 (fetch_inferior_event): Install a cleanup that removes infrun
1220 (switch_back_to_stepped_thread) <expect thread advanced also>:
1221 Clear step-over info.
1223 2014-10-15 Pedro Alves <palves@redhat.com>
1225 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1226 (delete_thread_infrun_breakpoints): New function, with parts
1227 salvaged from delete_step_resume_breakpoint_callback.
1228 (delete_step_thread_step_resume_breakpoint): Delete.
1229 (for_each_just_stopped_thread_callback_func): New typedef.
1230 (for_each_just_stopped_thread): New function.
1231 (delete_just_stopped_threads_infrun_breakpoints): New function.
1232 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1233 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1235 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1237 2014-10-15 Pedro Alves <palves@redhat.com>
1239 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1240 trying to step past a non-steppable watchpoint.
1241 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1243 * infrun.c (struct step_over_info): Add new field
1244 'nonsteppable_watchpoint_p' and adjust comments.
1245 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1247 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1248 (stepping_past_nonsteppable_watchpoint): New function.
1249 (step_over_info_valid_p): Also return true if stepping past a
1250 nonsteppable watchpoint.
1251 (proceed): Adjust call to set_step_over_info. Remove reference to
1253 (init_wait_for_inferior): Remove reference to init_infwait_state.
1254 (waiton_ptid): Delete global.
1255 (struct execution_control_state)
1256 <stepped_after_stopped_by_watchpoint>: Delete field.
1257 (wait_for_inferior, fetch_inferior_event): Always pass
1258 minus_one_ptid to target_wait.
1259 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1261 (init_infwait_state): Delete function.
1262 (handle_inferior_event): Remove infwait_state handling.
1263 (handle_signal_stop) <watchpoints handling>: Adjust after
1264 stepped_after_stopped_by_watchpoint removal. Don't remove
1265 breakpoints here nor set infwait_state. Set the thread's
1266 stepping_over_watchpoint flag, and call keep_going instead.
1267 (keep_going): Handle stepping_over_watchpoint. Adjust
1268 set_step_over_info calls.
1269 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1272 2014-10-15 Pedro Alves <palves@redhat.com>
1274 * infrun.c (step_over_info_valid_p): New function.
1275 (resume): Use step_over_info_valid_p instead of checking the
1276 threads's trap_expected flag.
1278 2014-10-15 Doug Evans <dje@google.com>
1279 Walfred Tedeschi <walfred.tedeschi@intel.com>
1282 * python/lib/gdb/__init__.py (packages): Add "printer".
1283 * python/lib/gdb/command/bound_registers.py: Moved to ...
1284 * python/lib/gdb/printer/bound_registers.py: ... here.
1285 Add printer to global set of builtin printers. Rename printer from
1286 "bound" to "mpx_bound128".
1287 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1288 registered as global "builtin" printer.
1289 (add_builtin_pretty_printer): New function.
1290 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1291 gdb/printer/__init__.py.
1293 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1295 * Makefile.in (SFILES): Remove d-support.c.
1296 (COMMON_OBS): Remove d-support.o.
1297 * d-lang.h (d_parse_symbol): Remove declaration.
1298 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1299 * d-support.c: Remove file.
1301 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1303 * gdb/infrun.c (process_event_stop_test): Apply
1304 gdbarch_addr_bits_remove to longjmp resume address.
1306 2014-10-15 Pedro Alves <palves@redhat.com>
1308 * regformats/microblaze.dat: Delete file.
1310 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1312 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1313 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1315 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1317 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1320 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1324 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1325 with qualified args.
1327 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1329 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1330 of the case where the second operand is a pointer.
1331 <BINOP_SUB>: Likewise.
1333 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1335 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1336 only if it is not NULL.
1337 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1338 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1339 (struct probe_ops) <clear_semaphore>: Likewise.
1340 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1342 (stop_tracing): Likewise, for clear_semaphore.
1344 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1346 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1347 using language_c, instead of current_language.
1349 2014-10-13 Doug Evans <dje@google.com>
1351 * python/py-objfile.c (objfpy_initialize): New function.
1352 (objfpy_new, objfile_to_objfile_object): Call it.
1353 * python/py-progspace.c (pspy_initialize): New function.
1354 (pspy_new, pspace_to_pspace_object): Call it.
1356 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1357 Jan Kratochvil <jan.kratochvil@redhat.com>
1359 Fix "save breakpoints" for "catch" command.
1360 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1363 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1365 Fix "save breakpoints" for "disable $bpnum" command.
1366 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1368 2014-10-10 Pedro Alves <palves@redhat.com>
1370 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1371 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1372 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1373 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1375 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1376 * configure.ac: Remove references to IRIX.
1377 * configure.host: Add *-*-irix* to the obsolete hosts section.
1378 Remove all other references to irix.
1379 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1382 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1384 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1385 isn't valid, release the tdesc arch data and return NULL.
1387 2014-10-10 Pedro Alves <palves@redhat.com>
1389 * linux-tdep.c: Include observer.h.
1390 (linux_inferior_data): New global.
1391 (struct linux_info): New structure.
1392 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1393 (get_linux_inferior_data): New functions.
1394 (linux_vsyscall_range): Rename to ...
1395 (linux_vsyscall_range_raw): ... this.
1396 (linux_vsyscall_range): New function; handles caching.
1397 (_initialize_linux_tdep): Register linux_inferior_data. Install
1398 inferior_exit and inferior_appeared observers.
1400 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1401 Pedro Alves <palves@redhat.com>
1404 * solib-svr4.c (svr4_read_so_list): Rename to ...
1405 (svr4_current_sos_1): ... this and change the function comment.
1406 (svr4_current_sos): New function.
1408 2014-10-10 Pedro Alves <palves@redhat.com>
1410 * arch-utils.c (default_vsyscall_range): New function.
1411 * arch-utils.h (default_vsyscall_range): New declaration.
1412 * gdbarch.sh (vsyscall_range): New hook.
1413 * gdbarch.h, gdbarch.c: Regenerate.
1414 * linux-tdep.c (linux_vsyscall_range): New function.
1415 (linux_init_abi): Install linux_vsyscall_range as
1416 vsyscall_range gdbarch hook.
1417 * memrange.c (address_in_mem_range): New function.
1418 * memrange.h (address_in_mem_range): New declaration.
1419 * symfile-mem.c (find_vdso_size): Delete function.
1420 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1422 2014-10-10 Pedro Alves <palves@redhat.com>
1424 * infrun.c (normal_stop): Fix typo in comment.
1426 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1429 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1430 typo when using logical AND to determine instruction type.
1432 2014-10-09 Yao Qi <yao@codesourcery.com>
1434 * infrun.c (handle_signal_stop): Remove local variable
1437 2014-10-08 Stan Shebs <stan@codesourcery.com>
1439 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1441 2014-10-08 Gary Benson <gbenson@redhat.com>
1443 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1445 2014-10-08 Gary Benson <gbenson@redhat.com>
1447 * common/common-defs.h: Include common-exceptions.h.
1448 * exceptions.h: Do not include common-exceptions.h.
1450 2014-10-08 Gary Benson <gbenson@redhat.com>
1452 * common/common-defs.h: Include cleanups.h.
1453 * common/common-exceptions.c: Do not include cleanups.h.
1454 * utils.h: Likewise.
1456 2014-10-08 Gary Benson <gbenson@redhat.com>
1458 * ada-lang.c: Do not include exceptions.h.
1459 * ada-valprint.c: Likewise.
1460 * amd64-tdep.c: Likewise.
1461 * auto-load.c: Likewise.
1462 * block.c: Likewise.
1463 * break-catch-throw.c: Likewise.
1464 * breakpoint.c: Likewise.
1465 * btrace.c: Likewise.
1466 * c-lang.c: Likewise.
1467 * cli/cli-cmds.c: Likewise.
1468 * cli/cli-interp.c: Likewise.
1469 * cli/cli-script.c: Likewise.
1470 * completer.c: Likewise.
1471 * corefile.c: Likewise.
1472 * corelow.c: Likewise.
1473 * cp-abi.c: Likewise.
1474 * cp-support.c: Likewise.
1475 * cp-valprint.c: Likewise.
1476 * darwin-nat.c: Likewise.
1477 * dwarf2-frame-tailcall.c: Likewise.
1478 * dwarf2-frame.c: Likewise.
1479 * dwarf2loc.c: Likewise.
1480 * dwarf2read.c: Likewise.
1482 * event-loop.c: Likewise.
1483 * event-top.c: Likewise.
1484 * f-valprint.c: Likewise.
1485 * frame-unwind.c: Likewise.
1486 * frame.c: Likewise.
1487 * gdbtypes.c: Likewise.
1488 * gnu-v2-abi.c: Likewise.
1489 * gnu-v3-abi.c: Likewise.
1490 * guile/scm-auto-load.c: Likewise.
1491 * guile/scm-breakpoint.c: Likewise.
1492 * guile/scm-cmd.c: Likewise.
1493 * guile/scm-frame.c: Likewise.
1494 * guile/scm-lazy-string.c: Likewise.
1495 * guile/scm-param.c: Likewise.
1496 * guile/scm-symbol.c: Likewise.
1497 * guile/scm-type.c: Likewise.
1498 * hppa-hpux-tdep.c: Likewise.
1499 * i386-tdep.c: Likewise.
1500 * inf-loop.c: Likewise.
1501 * infcall.c: Likewise.
1502 * infcmd.c: Likewise.
1503 * infrun.c: Likewise.
1504 * interps.c: Likewise.
1505 * interps.h: Likewise.
1507 * linespec.c: Likewise.
1508 * linux-nat.c: Likewise.
1509 * linux-thread-db.c: Likewise.
1510 * m32r-rom.c: Likewise.
1512 * memory-map.c: Likewise.
1513 * mi/mi-cmd-break.c: Likewise.
1514 * mi/mi-cmd-stack.c: Likewise.
1515 * mi/mi-interp.c: Likewise.
1516 * mi/mi-main.c: Likewise.
1517 * monitor.c: Likewise.
1518 * nto-procfs.c: Likewise.
1519 * objc-lang.c: Likewise.
1520 * p-valprint.c: Likewise.
1521 * parse.c: Likewise.
1522 * ppc-linux-tdep.c: Likewise.
1523 * printcmd.c: Likewise.
1524 * probe.c: Likewise.
1525 * python/py-auto-load.c: Likewise.
1526 * python/py-breakpoint.c: Likewise.
1527 * python/py-cmd.c: Likewise.
1528 * python/py-finishbreakpoint.c: Likewise.
1529 * python/py-frame.c: Likewise.
1530 * python/py-framefilter.c: Likewise.
1531 * python/py-function.c: Likewise.
1532 * python/py-gdb-readline.c: Likewise.
1533 * python/py-inferior.c: Likewise.
1534 * python/py-infthread.c: Likewise.
1535 * python/py-lazy-string.c: Likewise.
1536 * python/py-linetable.c: Likewise.
1537 * python/py-param.c: Likewise.
1538 * python/py-prettyprint.c: Likewise.
1539 * python/py-symbol.c: Likewise.
1540 * python/py-type.c: Likewise.
1541 * python/py-value.c: Likewise.
1542 * python/python-internal.h: Likewise.
1543 * python/python.c: Likewise.
1544 * record-btrace.c: Likewise.
1545 * record-full.c: Likewise.
1546 * regcache.c: Likewise.
1547 * remote-fileio.c: Likewise.
1548 * remote-mips.c: Likewise.
1549 * remote.c: Likewise.
1550 * rs6000-aix-tdep.c: Likewise.
1551 * rs6000-nat.c: Likewise.
1553 * solib-darwin.c: Likewise.
1554 * solib-dsbt.c: Likewise.
1555 * solib-frv.c: Likewise.
1556 * solib-ia64-hpux.c: Likewise.
1557 * solib-spu.c: Likewise.
1558 * solib-svr4.c: Likewise.
1559 * solib.c: Likewise.
1560 * spu-tdep.c: Likewise.
1561 * stack.c: Likewise.
1562 * stap-probe.c: Likewise.
1563 * symfile-mem.c: Likewise.
1564 * symmisc.c: Likewise.
1565 * target.c: Likewise.
1566 * thread.c: Likewise.
1568 * tracepoint.c: Likewise.
1569 * tui/tui-interp.c: Likewise.
1570 * typeprint.c: Likewise.
1571 * utils.c: Likewise.
1572 * valarith.c: Likewise.
1573 * valops.c: Likewise.
1574 * valprint.c: Likewise.
1575 * value.c: Likewise.
1576 * varobj.c: Likewise.
1577 * windows-nat.c: Likewise.
1578 * xml-support.c: Likewise.
1580 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1582 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1584 (extended_mips16_next_pc): Update accordingly.
1586 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1588 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1590 (micromips_instruction_is_compact_branch): Likewise.
1591 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1592 or a compact jump, reaching a jump delay slot, or seeing a
1593 second non-prologue instruction.
1594 (micromips_scan_prologue): Also terminate scanning upon seeing a
1595 compact branch or jump, or reaching a branch or jump delay slot.
1596 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1597 or jump delay slot, or seeing a second non-prologue instruction.
1598 (mips32_instruction_has_delay_slot): Retain instruction
1599 examination code only, update arguments accordingly and move
1600 instruction fetch pieces to...
1601 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1602 (micromips_instruction_has_delay_slot): Likewise and to...
1603 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1604 (mips16_instruction_has_delay_slot): Likewise and to...
1605 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1606 (mips_single_step_through_delay): Update accordingly.
1607 (mips_adjust_breakpoint_address): Likewise.
1609 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1611 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1612 !mustbe32 also return 1 for 32-bit instructions.
1613 (mips16_instruction_has_delay_slot): Likewise. Add an
1614 explanatory comment.
1616 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1618 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1621 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1623 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1625 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1626 for the breakpoint's address. Don't preinitialize `placed_size'.
1627 (insert_bp_location): Set `reqstd_address' rather than
1629 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1630 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1632 (bkpt_remove_location): Likewise.
1633 (deprecated_insert_raw_breakpoint): Likewise.
1634 (deprecated_remove_raw_breakpoint): Likewise.
1635 (find_single_step_breakpoint): Likewise.
1636 * mem-break.c (default_memory_insert_breakpoint): Use
1637 `reqstd_address' for the breakpoint's address. Don't set
1638 `placed_address' or `placed_size' if breakpoint contents couldn't
1639 have been determined.
1640 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1641 the breakpoint's address.
1642 (remote_insert_hw_breakpoint): Likewise. Don't set
1643 `placed_address' or `placed_size' if breakpoint couldn't have been
1645 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1646 `reqstd_address' for the breakpoint's address.
1647 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1648 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1649 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1650 * microblaze-linux-tdep.c
1651 (microblaze_linux_memory_remove_breakpoint): Likewise.
1652 * monitor.c (monitor_insert_breakpoint): Likewise.
1653 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1654 (procfs_insert_hw_breakpoint): Likewise.
1655 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1656 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1657 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1658 * remote-mips.c (mips_insert_breakpoint): Likewise.
1659 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1661 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1663 * valops.c (value_assign): Check for bit field assignments
1664 before calling architecture-specific register value
1665 conversion functions.
1667 2014-10-03 Pierre Muller <muller@sourceware.org>
1669 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1671 2014-10-02 Pedro Alves <palves@redhat.com>
1673 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1674 threads_are_executing.
1675 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1677 * gdbthread.h (threads_are_executing): Declare.
1678 (handle_signal_stop) <random signals>: Don't print about the
1679 signal here if stopping.
1680 (end_stepping_range): Don't notify observers here.
1681 (normal_stop): Update the thread list. If stopped by a random
1682 signal or a stepping range ended, notify observers.
1683 * thread.c (threads_executing): New global.
1684 (init_thread_list): Clear 'threads_executing'.
1685 (set_executing): Set or clear 'threads_executing'.
1686 (threads_are_executing): New function.
1687 (update_threads_executing): New function.
1688 (update_thread_list): Use it.
1690 2014-10-02 Pedro Alves <palves@redhat.com>
1692 PR breakpoints/17431
1693 * breakpoint.c (update_breakpoints_after_exec): Don't create
1694 overlay, longjmp, std terminate nor exception breakpoints here.
1696 2014-10-02 Pedro Alves <palves@redhat.com>
1698 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1700 * inferior.c (find_inferior_for_program_space): Give preference to
1701 the current inferior.
1702 * inferior.h (find_inferior_for_program_space): Update comment.
1703 * progspace.c (switch_to_program_space_and_thread): Prefer the
1704 current inferior if it's bound to the program space requested. If
1705 the inferior found doesn't have a PID yet, don't bother looking up
1707 * progspace.h (switch_to_program_space_and_thread): Adjust
1709 * thread.c (any_thread_of_process, any_live_thread_of_process):
1710 Give preference to the current thread.
1712 2014-10-01 Pedro Alves <palves@redhat.com>
1714 * breakpoint.c (insert_bp_location): Error out if inserting a
1715 software breakpoint at a read-only address.
1716 * target.c (memory_xfer_check_region): New function, factored out
1718 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1720 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1721 against the memory region attributes.
1723 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1725 * NEWS: Announce new exit-code field in -list-thread-groups
1727 * inferior.c (exit_inferior_1): Don't clear exit code.
1728 (inferior_appeared): Clear exit code.
1729 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1732 2014-10-01 Pedro Alves <palves@redhat.com>
1734 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1735 GENERATED" along with emacs/vi read-only markers.
1736 * regformats/aarch64.dat: Regenerate.
1737 * regformats/arm-with-iwmmxt.dat: Regenerate.
1738 * regformats/arm-with-neon.dat: Regenerate.
1739 * regformats/arm-with-vfpv2.dat: Regenerate.
1740 * regformats/arm-with-vfpv3.dat: Regenerate.
1741 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1742 * regformats/i386/amd64-avx.dat: Regenerate.
1743 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1744 * regformats/i386/amd64-avx512.dat: Regenerate.
1745 * regformats/i386/amd64-linux.dat: Regenerate.
1746 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1747 * regformats/i386/amd64-mpx.dat: Regenerate.
1748 * regformats/i386/amd64.dat: Regenerate.
1749 * regformats/i386/i386-avx-linux.dat: Regenerate.
1750 * regformats/i386/i386-avx.dat: Regenerate.
1751 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1752 * regformats/i386/i386-avx512.dat: Regenerate.
1753 * regformats/i386/i386-linux.dat: Regenerate.
1754 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1755 * regformats/i386/i386-mmx.dat: Regenerate.
1756 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1757 * regformats/i386/i386-mpx.dat: Regenerate.
1758 * regformats/i386/i386.dat: Regenerate.
1759 * regformats/i386/x32-avx-linux.dat: Regenerate.
1760 * regformats/i386/x32-avx.dat: Regenerate.
1761 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1762 * regformats/i386/x32-avx512.dat: Regenerate.
1763 * regformats/i386/x32-linux.dat: Regenerate.
1764 * regformats/i386/x32.dat: Regenerate.
1765 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1766 * regformats/mips-dsp-linux.dat: Regenerate.
1767 * regformats/mips-linux.dat: Regenerate.
1768 * regformats/mips64-dsp-linux.dat: Regenerate.
1769 * regformats/mips64-linux.dat: Regenerate.
1770 * regformats/nios2-linux.dat: Regenerate.
1771 * regformats/rs6000/powerpc-32.dat: Regenerate.
1772 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1773 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1774 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1775 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1776 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1777 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1778 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1779 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1780 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1781 * regformats/s390-linux32.dat: Regenerate.
1782 * regformats/s390-linux32v1.dat: Regenerate.
1783 * regformats/s390-linux32v2.dat: Regenerate.
1784 * regformats/s390-linux64.dat: Regenerate.
1785 * regformats/s390-linux64v1.dat: Regenerate.
1786 * regformats/s390-linux64v2.dat: Regenerate.
1787 * regformats/s390-te-linux64.dat: Regenerate.
1788 * regformats/s390x-linux64.dat: Regenerate.
1789 * regformats/s390x-linux64v1.dat: Regenerate.
1790 * regformats/s390x-linux64v2.dat: Regenerate.
1791 * regformats/s390x-te-linux64.dat: Regenerate.
1792 * regformats/tic6x-c62x-linux.dat: Regenerate.
1793 * regformats/tic6x-c62x.dat: Regenerate.
1794 * regformats/tic6x-c64x-linux.dat: Regenerate.
1795 * regformats/tic6x-c64x.dat: Regenerate.
1796 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1797 * regformats/tic6x-c64xp.dat: Regenerate.
1799 2014-10-01 Pedro Alves <palves@redhat.com>
1801 * features/Makefile: Update comments.
1802 (XMLTOC): List all xml files we build C files from.
1803 (clean-cfiles): New rule.
1805 2014-10-01 Pedro Alves <palves@redhat.com>
1807 * features/i386/amd64-avx512-linux.c: Regenerate.
1808 * features/i386/amd64-avx512.c: Regenerate.
1809 * features/i386/x32-avx512-linux.c: Regenerate.
1810 * features/i386/x32-avx512.c: Regenerate.
1812 2014-10-01 Pedro Alves <palves@redhat.com>
1814 * features/Makefile (WHICH): Remove arm-with-m,
1815 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1817 2014-10-01 Pedro Alves <palves@redhat.com>
1819 * features/Makefile (clean): New rule.
1821 2014-10-01 Pedro Alves <palves@redhat.com>
1823 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1824 (zmm14h): Add missing end quotes.
1826 2014-10-01 Pedro Alves <palves@redhat.com>
1828 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1829 * features/aarch64.c: Regenerate.
1831 2014-09-30 Don Breazeal <donb@codesourcery.com>
1833 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1834 code so as to work with follow_fork_inferior.
1835 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1836 (inf_ttrace_create_inferior): Remove reference to
1837 inf_ttrace_vfork_ppid.
1838 (inf_ttrace_attach): Ditto.
1839 (inf_ttrace_detach): Ditto.
1840 (inf_ttrace_kill): Use current_inferior instead of
1841 inf_ttrace_vfork_ppid.
1842 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1843 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1844 inferior away from the parent.
1845 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1847 (follow_fork_inferior): New function.
1848 (follow_inferior_reset_breakpoints): Make function static.
1849 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1850 * linux-nat.c (linux_child_follow_fork): Move target-independent
1851 code to infrun.c:follow_fork_inferior.
1853 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1855 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1856 * gdbarch.c: Regenerate.
1857 * gdbarch.h: Likewise.
1858 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1859 gdbarch method 'regset_from_core_section'.
1860 (get_core_register_section): Remove handling for the case that
1861 regset == NULL and regset_from_core_section is defined.
1862 (get_core_registers): Drop check for deleted method.
1863 * procfs.c (procfs_do_thread_registers): Adjust comment.
1865 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1867 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1868 (linux_nat_make_corefile_notes): Remove.
1869 (linux_target_install_ops): Do not set target method
1870 'make_corefile_notes'.
1871 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1873 (linux_corefile_thread_callback): Instead of args->collect, call
1874 linux_collect_thread_registers.
1875 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1876 NULL unless there is a regset iterator.
1877 (linux_make_corefile_notes_1): Remove.
1878 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1879 by linux_make_corefile_notes.
1880 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1882 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1884 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1885 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1887 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1889 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1891 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1892 (xtensa_iterate_over_regset_sections): New.
1893 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1895 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1897 * vax-tdep.c (vax_regset_from_core_section): Remove.
1898 (vax_iterate_over_regset_sections): New.
1899 (vax_gdbarch_init): Adjust gdbarch initialization.
1901 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1903 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1904 (tilegx_regset_from_core_section): Remove.
1905 (tilegx_iterate_over_regset_sections): New.
1906 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1908 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1910 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1911 (sparc_iterate_over_regset_sections): New.
1912 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1913 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1915 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1916 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1917 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1918 target method 'make_corefile_notes'.
1920 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1922 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1923 'sizeof_gregset' and 'sizeof_fpregset'.
1924 * sh-tdep.c (sh_regset_from_core_section): Remove.
1925 (sh_iterate_over_regset_sections): New.
1926 (sh_gdbarch_init): Adjust gdbarch initialization.
1927 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1929 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1932 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1934 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1935 (score7_linux_iterate_over_regset_sections): New.
1936 (score_gdbarch_init): Adjust gdbarch initialization.
1938 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1940 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1942 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1943 method 'make_corefile_notes'.
1944 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1945 (ppcfbsd_regset_from_core_section): Remove.
1946 (ppcfbsd_iterate_over_regset_sections): New.
1947 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1949 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1950 (ppcnbsd_iterate_over_regset_sections): New.
1951 (ppcnbsd_init_abi): Adjust.
1952 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1953 (ppcobsd_iterate_over_regset_sections): New.
1954 (ppcobsd_init_abi): Adjust.
1955 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1956 (rs6000_aix_iterate_over_regset_sections): New.
1957 (rs6000_aix_init_osabi): Adjust.
1959 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1961 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1962 (nios2_regset_from_core_section): Remove.
1963 (nios2_iterate_over_regset_sections): New.
1964 (nios2_linux_init_abi): Adjust gdbarch initialization.
1966 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1968 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1969 (am33_iterate_over_regset_sections): New.
1970 (am33_linux_init_osabi): Adjust gdbarch initialization.
1972 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1974 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1975 (mips_linux_iterate_over_regset_sections): New.
1976 (mips_linux_init_abi): Adjust gdbarch initialization.
1977 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1978 (mips64obsd_iterate_over_regset_sections): New.
1979 (mips64obsd_init_abi): Adjust.
1980 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1981 (mipsnbsd_iterate_over_regset_sections): New.
1982 (mipsnbsd_init_abi): Adjust.
1984 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1986 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1987 (m88k_iterate_over_regset_sections): New.
1988 (m88k_gdbarch_init): Adjust gdbarch initialization.
1990 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1992 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1993 (ia64_linux_iterate_over_regset_sections): New.
1994 (ia64_linux_init_abi): Adjust gdbarch initialization.
1996 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1998 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1999 (m68kbsd_iterate_over_regset_sections): New.
2000 (m68kbsd_init_abi): Adjust gdbarch initialization.
2001 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2002 (m68k_linux_iterate_over_regset_sections): New.
2003 (m68k_linux_init_abi): Adjust gdbarch initialization.
2005 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2007 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2008 (m32r_linux_regset_from_core_section): Remove.
2009 (m32r_linux_iterate_over_regset_sections): New.
2010 (m32r_linux_init_abi): Adjust gdbarch initialization.
2012 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2014 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2015 (amd64obsd_iterate_over_regset_sections): New.
2016 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2017 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2019 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2020 regset_from_core_section initialization.
2021 * i386-tdep.c (i386_regset_from_core_section): Remove.
2022 (i386_iterate_over_regset_sections): New.
2023 (i386_gdbarch_init): Adjust gdbarch initialization.
2024 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2025 (i386_iterate_over_regset_sections): New prototype.
2026 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2028 (i386obsd_aout_iterate_over_regset_sections): New.
2029 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2030 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2032 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2033 (amd64fbsd_init_abi): Call fbsd_init_abi.
2034 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2035 (i386fbsd4_init_abi): Call fbsd_init_abi.
2036 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2037 target method 'make_corefile_notes'.
2038 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2040 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2042 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2043 (hppa_hpux_iterate_over_regset_sections): New.
2044 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2045 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2046 (hppa_linux_iterate_over_regset_sections): New.
2047 (hppa_linux_init_abi): Adjust.
2048 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2049 (hppanbsd_iterate_over_regset_sections): New.
2050 (hppanbsd_init_abi): Adjust.
2051 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2052 (hppaobsd_iterate_over_regset_sections): New.
2053 (hppaobsd_init_abi): Adjust.
2055 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2057 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2058 (frv_linux_iterate_over_regset_sections): New.
2059 (frv_linux_init_abi): Adjust gdbarch initialization.
2061 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2063 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2064 (armbsd_iterate_over_regset_sections): New prototype.
2065 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2066 (armbsd_iterate_over_regset_sections): New.
2067 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2070 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2072 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2073 (alpha_linux_iterate_over_regset_sections): New.
2074 (alpha_linux_init_abi): Adjust gdbarch initialization.
2075 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2077 (alphanbsd_iterate_over_regset_sections): New prototype.
2079 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2081 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2083 (aarch64_linux_iterate_over_regset_sections): New.
2084 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2086 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2088 * fbsd-tdep.c: New file.
2089 * fbsd-tdep.h: New file.
2090 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2091 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2092 (ALLDEPFILES): Add fbsd-tdep.c.
2094 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2096 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2098 * gdbarch.h: Regenerate.
2099 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2101 (get_core_register_section): Add parameter 'regset' and use it, if
2102 set. Add parameter 'min_size' and verify the bfd section size
2104 (get_core_registers_cb): Add parameter 'regset' and pass it to
2105 get_core_register section. For the "standard" register sections
2106 ".reg" and ".reg2", set an appropriate default for human_name.
2107 (get_core_registers): Don't abort when the gdbarch has an iterator
2108 but no regset_from_core_section. Add NULL/0 for parameters
2109 'regset'/'min_size' in calls to get_core_register_section.
2110 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2111 'regset' and use it instead of calling the
2112 regset_from_core_section gdbarch method.
2113 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2114 * i386-tdep.c (i386_supply_xstateregset)
2115 (i386_collect_xstateregset, i386_xstateregset): Moved to
2117 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2119 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2120 core file support only if the regset iterator hasn't been set.
2121 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2122 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2123 Moved from i386-tdep.c and renamed to *_linux*.
2124 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2125 each callback invocation. Allow any .reg-xstate size when reading
2127 * amd64-tdep.c (amd64_supply_xstateregset)
2128 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2130 (amd64_regset_from_core_section): Remove.
2131 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2132 install an amd64-specific regset_from_core_section gdbarch method.
2133 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2134 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2135 Moved from amd64-tdep.c and renamed to *_linux*.
2136 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2137 to each callback invocation. Allow any .reg-xstate size when
2138 reading from a core file.
2139 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2140 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2141 each callback invocation.
2142 (arm_linux_init_abi): No longer set the regset_from_core_section
2144 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2145 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2146 each callback invocation.
2147 (ppc_linux_init_abi): No longer set the regset_from_core_section
2149 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2150 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2151 (s390_regset_from_core_section): Remove.
2152 (s390_iterate_over_regset_sections): Add regset parameter to each
2153 callback invocation.
2154 (s390_gdbarch_init): No longer set the regset_from_core_section
2155 gdbarch method. Drop initialization of deleted tdep fields.
2157 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2159 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2160 (amd64_linux_iterate_over_regset_sections): New.
2161 (amd64_linux_init_abi_common): Don't install the regset section
2162 list, but the new iterator in gdbarch.
2163 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2164 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2165 (arm_linux_iterate_over_regset_sections): ...here. New function.
2166 (arm_linux_init_abi): Set iterator instead of section list.
2167 * corelow.c (get_core_registers_cb): New function, logic moved
2169 (get_core_registers): ...loop body here. Use new iterator method
2170 instead of walking through the regset section list.
2171 * gdbarch.sh: Remove 'core_regset_sections'. New method
2172 'iterate_over_regset_sections'. New typedef
2173 'iterate_over_regset_sections_cb'.
2174 * gdbarch.c: Regenerate.
2175 * gdbarch.h: Likewise.
2176 * i386-linux-tdep.c (i386_linux_regset_sections)
2177 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2179 (i386_linux_iterate_over_regset_sections): New.
2180 (i386_linux_init_abi): Don't choose a regset section list, but
2181 install new iterator in gdbarch.
2182 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2183 (linux_collect_regset_section_cb): New function, logic moved
2185 (linux_collect_thread_registers): ...loop body here. Use iterator
2186 method instead of walking through list.
2187 (linux_make_corefile_notes_1): Check for presence of iterator
2188 method instead of regset section list.
2189 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2190 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2191 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2192 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2193 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2194 (ppc_linux_init_abi): Don't choose from above regset section
2195 lists, but install new iterator in gdbarch.
2196 * regset.h (struct core_regset_section): Remove.
2197 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2198 have_linux_v1, have_linux_v2, and have_tdb.
2199 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2200 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2201 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2202 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2203 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2204 (s390_iterate_over_regset_sections): ...here. New function. Use
2206 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2207 regset section lists, but install new iterator.
2209 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2211 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2213 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2215 * progspace.c (print_program_space): Don't prune program spaces
2216 before printing them.
2218 2014-09-25 Pedro Alves <palves@redhat.com>
2220 * infrun.c (user_visible_resume_ptid): Don't check
2221 singlestep_breakpoints_inserted_p.
2223 2014-09-25 Pedro Alves <palves@redhat.com>
2225 * breakpoint.c (should_be_inserted): Add debug output.
2227 2014-09-25 Pedro Alves <palves@redhat.com>
2229 * infrun.c (stepping_past_instruction_at)
2230 (clear_exit_convenience_vars): Point at infrun.h instead of
2232 (handle_signal_stop): Fix typo.
2234 2014-09-24 Yao Qi <yao@codesourcery.com>
2236 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2239 2014-09-22 Gary Benson <gbenson@redhat.com>
2241 * target.c (target_stop): Updated comment.
2243 2014-09-22 Gary Benson <gbenson@redhat.com>
2245 * target/target.h (target_stop_ptid): Renamed as...
2246 (target_stop_and_wait): New function. Updated comment.
2248 (target_continue_ptid): Renamed as...
2249 (target_continue_no_signal): New function. Updated comment.
2252 2014-09-22 Pedro Alves <palves@redhat.com>
2254 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2256 * breakpoint.c (enum ugll_insert_mode): New enum.
2257 (always_inserted_mode): Now a plain boolean.
2258 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2259 (breakpoints_always_inserted_mode): Delete.
2260 (breakpoints_should_be_inserted_now): New function.
2261 (insert_breakpoints): Pass UGLL_INSERT to
2262 update_global_location_list instead of calling
2263 insert_breakpoint_locations manually.
2264 (create_solib_event_breakpoint_1): New, factored out from ...
2265 (create_solib_event_breakpoint): ... this.
2266 (create_and_insert_solib_event_breakpoint): Use
2267 create_solib_event_breakpoint_1 instead of calling
2268 insert_breakpoint_locations manually.
2269 (update_global_location_list): Change parameter type from boolean
2270 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2271 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2272 (update_global_location_list_nothrow): Change parameter type from
2273 boolean to enum ugll_insert_mode.
2274 (_initialize_breakpoint): "breakpoint always-inserted" option is
2275 now a boolean command. Update help text.
2276 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2277 (breakpoints_should_be_inserted_now): New declaration.
2278 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2279 Remove breakpoints_always_inserted_mode check.
2280 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2281 * remote.c (remote_start_remote): Likewise.
2283 2014-09-22 Pedro Alves <palves@redhat.com>
2285 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2286 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2287 Instead, pass UGLL_INSERT to update_global_location_list.
2288 (update_global_location_list): Change parameter type from boolean
2289 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2290 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2291 (create_solib_event_breakpoint_1): New, factored out from ...
2292 (create_solib_event_breakpoint): ... this.
2293 (create_and_insert_solib_event_breakpoint): Use
2294 create_solib_event_breakpoint_1 instead of calling
2295 insert_breakpoint_locations manually.
2296 (update_global_location_list): Handle UGLL_INSERT.
2298 2014-09-22 Pedro Alves <palves@redhat.com>
2300 * breakpoint.c (enum ugll_insert_mode): New enum.
2301 (update_global_location_list)
2302 (update_global_location_list_nothrow): Change parameter type from
2303 boolean to enum ugll_insert_mode. All callers adjusted.
2305 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2307 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2308 SystemTap support in GDB.
2310 2014-09-19 Don Breazeal <donb@codesourcery.com>
2312 * linux-nat.c (linux_handle_extended_wait): Call
2313 linux_ptrace_get_extended_event.
2314 (wait_lwp): Call linux_is_extended_waitstatus.
2315 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2316 and linux_is_extended_waitstatus.
2317 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2318 linux_ptrace_get_extended_event.
2319 (linux_ptrace_get_extended_event): New function.
2320 (linux_is_extended_waitstatus): New function.
2321 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2322 (linux_is_extended_waitstatus): New declarations.
2324 2014-09-19 Yao Qi <yao@codesourcery.com>
2326 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2327 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2328 comments. Callers update.
2329 (dwarf_decode_lines): Likewise.
2330 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2331 comments. Skip the line table if 'lowpc' is greater than
2332 'address'. Don't check
2333 dwarf2_per_objfile->has_section_at_zero.
2335 2014-09-18 Doug Evans <dje@google.com>
2337 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2338 * python/py-symtab.c (stpy_get_producer): New function.
2339 (symtab_object_getset): Add "producer" attribute.
2341 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
2344 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2345 (do_captured_read_memory_integer): Remove.
2346 (safe_read_memory_integer): Use target_read_memory directly instead
2347 of catching errors in do_captured_read_memory_integer.
2349 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2351 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2354 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2356 * objc-lang.c (find_implementation_from_class): Remove dead code.
2358 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2361 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2362 "fprintf_unfiltered (gdb_stdlog...)".
2364 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2366 PR breakpoints/12526
2367 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2369 * breakpoint.c (watch_command_1): Use these fields to retain
2370 bitfield information.
2371 (extract_bitfield_from_watchpoint_value): New function.
2372 (watchpoint_check): Use it.
2373 (update_watchpoint): Use it. Optimize the address and length of a
2374 HW watchpoint pointing to a bitfield.
2375 * value.h (unpack_value_bitfield): New prototype.
2376 * value.c (unpack_value_bitfield): Make extern.
2378 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2380 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2382 * gnu-nat.c (inf_threads): New function.
2383 * gnu-nat.h (inf_threads_ftype): New typedef.
2384 (inf_threads): New declaration.
2385 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2386 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2387 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2388 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2389 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2390 (i386_gnu_dr_get_control): New functions.
2391 (reg_addr): New structure.
2392 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2393 i386 debugging register hooks.
2394 * NEWS: Mention this.
2396 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2398 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2399 vector data transfer instructions.
2400 (arm_record_coproc_data_proc): Updated.
2402 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2404 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2405 arm_record_exreg_ld_st_insn.
2406 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2409 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2411 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2412 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2413 processing instructions.
2415 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2417 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2418 for advance SIMD struct ld/st insn.
2419 (thumb2_record_decode_insn_handler): Replace stub handler with
2420 thumb2_record_asimd_struct_ld_st.
2422 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2424 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2425 for asimd, vfp and coprocessor insns.
2426 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2427 and coprocessor insns.
2428 (thumb2_record_coproc_insn): New function.
2429 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2431 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2434 2014-09-13 Doug Evans <xdje42@gmail.com>
2436 * NEWS: Mention new "queue-signal" command.
2437 * infcmd.c (queue_signal_command): New function.
2438 (_initialize_infcmd): Add new queue-signal command.
2440 2014-09-13 Doug Evans <xdje42@gmail.com>
2442 * linux-nat.c (wait_lwp): Add debugging printf.
2443 (linux_nat_wait_1): Ditto.
2445 2014-09-12 Pedro Alves <palves@redhat.com>
2447 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2448 (create_and_insert_solib_event_breakpoint): New functions.
2449 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2450 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2451 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2452 (remove_dbx_link_breakpoint): Delete function.
2453 (insert_dbx_link_bpt_in_file): Use
2454 create_and_insert_solib_event_breakpoint instead of
2455 deprecated_insert_raw_breakpoint.
2456 (procfs_wait): Don't check whether we hit __dbx_link here.
2457 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2459 * solib-irix.c (base_breakpoint): Delete global.
2460 (disable_break): Delete function.
2461 (enable_break): Use create_solib_event_breakpoint
2462 instead of deprecated_insert_raw_breakpoint.
2463 (irix_solib_handle_event): New function.
2464 (irix_solib_create_inferior_hook): Don't run the target or disable
2465 the mapping-complete breakpoint here.
2466 (_initialize_irix_solib): Install irix_solib_handle_event as
2467 so_ops->handle_event hook.
2469 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2470 Ulrich Weigand <uweigand@de.ibm.com>
2473 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2474 instead of read_memory_unsigned_integer.
2476 2014-09-12 Gary Benson <gbenson@redhat.com>
2478 * nat/linux-waitpid.c: Include common-defs.h.
2479 [GDBSERVER]: Add FIXME comment.
2480 [!GDBSERVER]: Don't include defs.h or signal.h.
2481 (linux_debug) [!GDBSERVER]: Remove empty block.
2483 2014-09-12 Gary Benson <gbenson@redhat.com>
2485 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2486 Don't include defs.h or server.h.
2488 2014-09-12 Gary Benson <gbenson@redhat.com>
2490 * nat/linux-btrace.c: Include common-defs.h.
2491 Don't include defs.h, server.h or gdbthread.h.
2492 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2494 2014-09-12 Gary Benson <gbenson@redhat.com>
2496 * common/agent.c: Include common-defs.h.
2497 Don't include defs.h or server.h.
2498 * common/buffer.c: Likewise.
2499 * common/common-debug.c: Likewise.
2500 * common/common-utils.c: Likewise.
2501 * common/errors.c: Likewise.
2502 * common/filestuff.c: Likewise.
2503 * common/format.c: Likewise.
2504 * common/gdb_vecs.c: Likewise.
2505 * common/print-utils.c: Likewise.
2506 * common/ptid.c: Likewise.
2507 * common/rsp-low.c: Likewise.
2508 * common/signals.c: Likewise.
2509 * common/vec.c: Likewise.
2510 * common/xml-utils.c: Likewise.
2511 * nat/linux-osdata.c: Likewise.
2512 * nat/linux-procfs.c: Likewise.
2513 * nat/linux-ptrace.c: Likewise.
2514 * nat/mips-linux-watch.c: Likewise.
2515 * target/waitstatus.c: Likewise.
2517 2014-09-12 Tom Tromey <tromey@redhat.com>
2518 Gary Benson <gbenson@redhat.com>
2520 * common/common-regcache.h: New file.
2521 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2522 * regcache.h: Include common-regcache.h.
2523 (regcache_read_pc): Don't declare.
2524 * regcache.c (get_thread_regcache_for_ptid): New function.
2525 * nat/linux-btrace.c: Don't include regcache.h.
2526 Include common-regcache.h.
2527 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2529 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2531 * regcache.h (struct regset): Declare.
2533 2014-09-11 Pedro Alves <palves@redhat.com>
2536 * main.c: Include "infrun.h".
2537 (catch_command_errors, catch_command_errors_const): Wait for the
2538 foreground command to complete.
2539 * top.c (maybe_wait_sync_command_done): New function, factored out
2541 (maybe_wait_sync_command_done): ... here.
2542 * top.h (maybe_wait_sync_command_done): New declaration.
2544 2014-09-11 Tom Tromey <tromey@redhat.com>
2545 Gary Benson <gbenson@redhat.com>
2547 * common/symbol.h: New file.
2548 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2549 * minsyms.c (find_minimal_symbol_address): New function.
2550 * common/agent.c: Include common/symbol.h.
2551 [!GDBSERVER]: Don't include objfiles.h.
2552 (agent_look_up_symbols): Use find_minimal_symbol_address.
2554 2014-09-11 Gary Benson <gbenson@redhat.com>
2556 * target/target.h (target_stop_ptid, target_continue_ptid):
2558 * target.c (target_stop_ptid, target_continue_ptid): New
2560 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2561 (agent_run_command): Always use target_stop_ptid and
2562 target_continue_ptid.
2564 2014-09-11 Tom Tromey <tromey@redhat.com>
2565 Gary Benson <gbenson@redhat.com>
2567 * target/target.h: New file.
2568 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2569 * target.h: Include target/target.h.
2570 (target_read_memory, target_write_memory): Don't declare.
2571 * target.c (target_read_uint32): New function.
2572 * common/agent.c: Include target/target.h.
2573 [!GDBSERVER]: Don't include target.h.
2574 (helper_thread_id): Type changed to uint32_t.
2575 (agent_get_helper_thread_id): Use target_read_uint32.
2576 (agent_run_command): Always use target_read_memory and
2577 target_write_memory.
2578 (agent_capability): Type changed to uint32_t.
2579 (agent_capability_check): Use target_read_uint32.
2581 2014-09-11 Gary Benson <gbenson@redhat.com>
2583 * common/common-debug.h (show_debug_regs): Declare.
2584 * common/common-debug.c (show_debug_regs): Define.
2585 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2586 all uses with show_debug_regs. Replace all uses that considered
2587 debug_hw_points as a multi-value integer with straight boolean
2589 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2590 with show_debug_regs.
2591 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2592 all uses with show_debug_regs.
2593 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2594 uses with show_debug_regs.
2596 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2598 * findvar.c (address_from_register): Handle targets requiring
2599 a special conversion routine even for plain pointer types.
2601 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2603 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2604 (store_register): Do not call exec_one_dummy_insn.
2606 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2608 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2609 dereference it first. Use value_enclosing_type instead of
2611 (ada_array_length): Likewise.
2613 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2615 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2616 Adjust function implementation and documentation accordingly.
2617 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2618 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2619 Update call to ada_value_ptr_subscript.
2621 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2623 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2624 instead of VAL's type.
2626 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2628 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2630 2014-09-09 Doug Evans <xdje42@gmail.com>
2633 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2634 last parameter to pkg-config, not first.
2635 * configure.ac: Pass --with-guile provided pkg-config path to
2636 GDB_GUILE_PROGRAM_NAMES.
2637 * configure: Regenerate.
2639 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2641 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2644 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2646 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2647 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2648 the list of sections determining GDB_OSABI_IRIX.
2650 2014-09-09 James Hogan <james.hogan@imgtec.com>
2652 * MAINTAINERS (Write After Approval): Add "James Hogan".
2654 2014-09-09 James Hogan <james.hogan@imgtec.com>
2656 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2658 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2660 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2662 2014-09-08 Doug Evans <xdje42@gmail.com>
2665 * guile.c: #include <signal.h>.
2666 (_initialize_guile): Block SIGCHLD while initializing Guile.
2668 Replaces the following, which is reverted.
2670 2014-07-26 Doug Evans <xdje42@gmail.com>
2673 * configure.ac: Add check for header gc/gc.h.
2674 Add check for function setenv.
2675 * configure: Regenerate.
2676 * config.in: Regenerate.
2677 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2679 2014-09-08 Doug Evans <xdje42@gmail.com>
2681 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2682 with named constant. Fix style of pointer comparison.
2683 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2685 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2688 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2689 decide whether we display the command on "show user".
2690 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2691 printing command name.
2692 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2693 * cli/cli-decode.c (cli_user_command_p): Create helper function
2694 to verify whether cmd_list_element is a user-defined command.
2696 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2699 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2700 Fix goto out of TRY_CATCH.
2702 2014-09-06 Doug Evans <xdje42@gmail.com>
2703 Tom Tromey <tromey@redhat.com>
2706 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2707 $_any_caller_matches.
2708 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2709 * python/lib/gdb/function/caller_is.py: New file.
2711 2014-09-06 Doug Evans <xdje42@gmail.com>
2713 * infcmd.c (program_info): Fix typo.
2715 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2718 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2719 'number'. New variable 'has_digit'. Rewrite code to deal with
2720 subexpressions on SDT probes.
2722 2014-09-04 Pedro Alves <palves@redhat.com>
2724 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2725 the input is only one character long.
2727 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2730 * f-valprint.c (f_val_print): Specify the correct print option to
2731 use when printing integer values.
2733 2014-09-04 Gary Benson <gbenson@redhat.com>
2735 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2736 Remove code to cope with LWPs wrapped as PIDs.
2737 Add assertions to ensure no wrapped LWPs are passed.
2739 2014-09-04 Pedro Alves <palves@redhat.com>
2741 * value.c (value_ranges_copy_adjusted): New function, factored out
2743 (value_contents_copy_raw): ... here.
2744 (unpack_value_bits_as_long_1): Rename back to ...
2745 (unpack_bits_as_long): ... this. Remove 'original_value' and
2746 'result' parameters. Change return type to LONGEST.
2747 (unpack_value_bits_as_long): Delete.
2748 (unpack_value_field_as_long_1): Delete.
2749 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2750 (unpack_value_bitfield): New function.
2751 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2752 (value_fetch_lazy): Use unpack_value_bitfield.
2753 * value.h (unpack_value_bits_as_long): Delete declaration.
2755 2014-09-03 Sasha Smundak <asmundak@google.com>
2757 * python/py-frame.c (frapy_read_register): New function.
2759 2014-09-03 James Hogan <james.hogan@imgtec.com>
2761 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2762 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2764 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2767 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2769 (add_cmd): Set "completer_handle_brkchars" to NULL.
2770 * cli/cli-decode.h (struct cmd_list_element)
2771 <completer_handle_brkchars>: New field.
2772 * command.h (completer_ftype_void): New typedef.
2773 (set_cmd_completer_handle_brkchars): New prototype.
2774 * completer.c (set_gdb_completion_word_break_characters): New
2776 (complete_line_internal): Call "completer_handle_brkchars"
2777 callback from command.
2778 * completer.h: Include "command.h".
2779 (set_gdb_completion_word_break_characters): New prototype.
2780 * python/py-cmd.c (cmdpy_completer_helper): New function.
2781 (cmdpy_completer_handle_brkchars): New function.
2782 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2783 (cmdpy_init): Set completer_handle_brkchars to
2784 cmdpy_completer_handle_brkchars.
2786 2014-09-03 Gary Benson <gbenson@redhat.com>
2788 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2789 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2790 Loop conditions changed to equivalent form.
2791 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2792 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2793 ALL_DEBUG_ADDRESS_REGISTERS.
2795 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2797 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2800 2014-09-02 Doug Evans <dje@google.com>
2802 * typeprint.c (find_global_typedef): Fix comment.
2804 2014-09-02 Gary Benson <gbenson@redhat.com>
2806 * i386-nat.h: Renamed as...
2807 * x86-nat.h: New file. All type, function and variable name
2808 prefixes changed from "i386_" to "x86_". All references updated.
2809 * i386-nat.c: Renamed as...
2810 * x86-nat.c: New file. All type, function and variable name
2811 prefixes changed from "i386_" to "x86_". All references updated.
2812 * common/i386-xstate.h: Renamed as...
2813 * common/x86-xstate.h: New file. All type, function and variable
2814 name prefixes changed from "i386_" to "x86_". All references
2816 * nat/i386-cpuid.h: Renamed as...
2817 * nat/x86-cpuid.h: New file. All type, function and variable name
2818 prefixes changed from "i386_" to "x86_". All references updated.
2819 * nat/i386-gcc-cpuid.h: Renamed as...
2820 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2821 name prefixes changed from "i386_" to "x86_". All references
2823 * nat/i386-dregs.h: Renamed as...
2824 * nat/x86-dregs.h: New file. All type, function and variable name
2825 prefixes changed from "i386_" to "x86_". All references updated.
2826 * nat/i386-dregs.c: Renamed as...
2827 * nat/x86-dregs.c: New file. All type, function and variable name
2828 prefixes changed from "i386_" to "x86_". All references updated.
2830 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2832 * varobj.c (_initialize_varobj): Move to the end of file.
2834 2014-08-29 Gary Benson <gbenson@redhat.com>
2836 * common/common-exceptions.h: New file.
2837 * common/common-exceptions.c: Likewise.
2838 * Makefile.in (SFILES): Add common/common-exceptions.c.
2839 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2840 (COMMON_OBS): Add common-exceptions.o.
2841 (common-exceptions.o): New rule.
2842 * exceptions.h (common-exceptions.h): Include.
2843 (gdb_setjmp.h): Do not include.
2844 (return_reason): Moved to common-exceptions.h.
2845 (enum return_reason): Likewise.
2846 (RETURN_MASK): Likewise.
2847 (typedef return_mask): Likewise.
2848 (enum errors): Likewise.
2849 (struct gdb_exception): Likewise.
2850 (exceptions_state_mc_init): Likewise.
2851 (exceptions_state_mc_action_iter): Likewise.
2852 (exceptions_state_mc_action_iter_1): Likewise.
2853 (TRY_CATCH): Likewise.
2854 (throw_exception): Likewise.
2855 (throw_verror): Likewise.
2856 (throw_vquit): Likewise.
2857 (throw_error): Likewise.
2858 (throw_quit): Likewise.
2859 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2860 (enum catcher_action): Likewise.
2861 (struct catcher): Likewise.
2862 (current_catcher): Likewise.
2863 (catcher_list_size): Likewise.
2864 (exceptions_state_mc_init): Likewise.
2865 (catcher_pop): Likewise.
2866 (exceptions_state_mc): Likewise.
2867 (exceptions_state_mc_action_iter): Likewise.
2868 (exceptions_state_mc_action_iter_1): Likewise.
2869 (throw_exception): Likewise.
2870 (exception_messages): Likewise.
2871 (exception_messages_size): Likewise.
2872 (throw_it): Likewise.
2873 (throw_verror): Likewise.
2874 (throw_vquit): Likewise.
2875 (throw_error): Likewise.
2876 (throw_quit): Likewise.
2877 (prepare_to_throw_exception): New function.
2879 2014-08-29 Gary Benson <gbenson@redhat.com>
2881 * common/gdb_setjmp.h: New file.
2882 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2883 * configure.ac: Move sigsetjmp check...
2884 * common/common.m4: ...here.
2885 * configure: Regenerate.
2886 * cp-support.c (SIGJMP_BUF): Delete.
2887 (SIGSETJMP): Likewise.
2888 (SIGLONGJMP): Likewise.
2889 * exceptions.h (gdb_setjmp.h): Include.
2890 (setjmp.h): Do not include.
2891 (EXCEPTIONS_SIGJMP_BUF): Delete.
2892 (EXCEPTIONS_SIGSETJMP): Likewise.
2893 (EXCEPTIONS_SIGLONGJMP): Likewise.
2894 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2896 * exceptions.c: Likewise.
2898 2014-08-29 Gary Benson <gbenson@redhat.com>
2900 * cleanups.h: Moved to...
2901 * common/cleanups.h: New file.
2902 * cleanups.c: Moved to...
2903 * common/cleanups.c: New file. Include common-defs.h and
2904 cleanups.h. Do not include defs.h.
2905 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2906 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2907 (cleanups.o): New rule.
2909 2014-08-29 Gary Benson <gbenson@redhat.com>
2911 * common/errors.h (internal_warning): New declaration.
2912 (internal_vwarning): Likewise.
2913 * common/errors.c (internal_warning): New function.
2914 * utils.h (internal_warning): Don't declare.
2915 (internal_vwarning): Likewise.
2916 * utils.c (internal_warning): Removed.
2918 2014-08-29 Gary Benson <gbenson@redhat.com>
2920 * main.c (captured_main): Use warning during startup.
2921 Prefix startup warning messages with command name.
2923 2014-08-29 Gary Benson <gbenson@redhat.com>
2925 * main.c (captured_main): Handle usage errors with error.
2927 2014-08-29 Gary Benson <gbenson@redhat.com>
2929 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2930 exit pair with a call to error. Wrap the message with _().
2932 2014-08-29 Gary Benson <gbenson@redhat.com>
2934 * main.c (captured_main): Replace a fprintf/exit
2935 pair with a call to error. Wrap the message with _().
2937 2014-08-29 Gary Benson <gbenson@redhat.com>
2939 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2940 pairs with calls to error. Wrap the message with _().
2942 2014-08-29 Gary Benson <gbenson@redhat.com>
2944 * utils.c (vwarning): Protect calls to target_terminal_ours
2947 2014-08-29 Gary Benson <gbenson@redhat.com>
2949 * exceptions.c (print_flush): Protect calls to
2950 target_terminal_ours and wrap_here.
2952 2014-08-29 Gary Benson <gbenson@redhat.com>
2954 * utils.h (filtered_printing_initialized): New declaration.
2955 * utils.c (abort_with_message): New function.
2956 (internal_vproblem): Use abort_with_message for first level
2957 recursive internal problems, and if gdb_stderr is not set up.
2958 Protect calls to target_terminal_ours, begin_line and query.
2960 2014-08-28 Doug Evans <dje@google.com>
2962 * symtab.c (in_prologue): Move definition to better spot.
2963 (skip_prologue_using_sal): Ditto.
2965 2014-08-28 Doug Evans <dje@google.com>
2967 * symtab.c (find_function_start_sal): Move definition to better spot.
2969 2014-08-28 Yao Qi <yao@codesourcery.com>
2971 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2972 found_stack_adjust in forward scan. Remove condition check
2973 on found_stack_adjust which is always true. Indent the code.
2975 2014-08-28 Yao Qi <yao@codesourcery.com>
2977 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2978 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2979 (dwarf_decode_lines): Remove argument
2980 want_line_info. Remove condition check on want_line_info.
2983 2014-08-27 Doug Evans <dje@google.com>
2985 * dwarf2read.c (dwarf_record_line): Fix typo.
2987 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2989 * target.h (struct target_ops::to_terminal_save_ours): Remove
2991 (target_terminal_save_ours): Remove macro.
2992 * target-delegates.c: Regenerate.
2993 * inf-child.c (inf_child_target): Don't set the nonexistent
2994 field to_terminal_save_ours.
2995 * inferior.h (child_terminal_save_ours): Remove declaration.
2996 * terminal.h (gdb_save_tty_state): New declaration.
2997 * inflow.c (child_terminal_save_ours): Rename to ...
2998 (gdb_save_tty_state): ... this.
2999 * tui/tui.c: Include terminal.h.
3000 (tui_enable): Use gdb_save_tty_state instead of
3001 target_terminal_save_ours.
3002 (tui_disable): Likewise.
3004 2014-08-25 Doug Evans <dje@google.com>
3006 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3007 Pass NULL instead of 0 for context pointer.
3009 2014-08-25 Yao Qi <yao@codesourcery.com>
3011 * dwarf2read.c: Fix grammatical error.
3013 2014-08-24 Yao Qi <yao@codesourcery.com>
3015 * dwarf2read.c (scan_partial_symbols): Update comments.
3016 Rename argument 'need_pc' with 'set_addrmap'.
3017 (add_partial_namespace): Rename argument 'need_pc' with
3019 (add_partial_module): Likewise.
3020 (add_partial_subprogram): Likewise. Update comments.
3021 (dwarf2_name): Fix typo.
3023 2014-08-22 Doug Evans <dje@google.com>
3026 * dwarf2read.c (dwarf_record_line_p): New function.
3027 (dwarf_decode_lines_1): Ignore subsequent line number entries
3028 for the same line if any entry had a non-zero discriminator.
3030 2014-08-22 Doug Evans <dje@google.com>
3032 * buildsym.h (record_line_ftype): New typedef.
3033 (record_line): Use it.
3034 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3035 (dwarf_decode_lines_1): Call them.
3037 2014-08-22 Yao Qi <yao@codesourcery.com>
3039 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3040 (ctf_end): Remove code.
3042 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3044 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3045 (linux_make_corefile_notes): call update_thread_list, protected against
3048 2014-08-21 Pedro Alves <palves@redhat.com>
3050 * infcmd.c (attach_command): Remove comment.
3052 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3054 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3055 unsigned LONGEST to ULONGEST.
3057 2014-08-20 Pedro Alves <palves@redhat.com>
3059 * Makefile.in (check-read1): New rule.
3061 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3063 * value.c (value_from_contents_and_address): Strip resolved_type's
3064 typedef layers before checking its TYPE_DATA_LOCATION.
3066 2014-08-20 Pedro Alves <palves@redhat.com>
3068 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3070 2014-08-20 Yao Qi <yao@codesourcery.com>
3072 * amd64-tdep.c (amd64_classify): Add a blank line after the
3073 example. Move "*/" to a new line.
3074 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3075 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3076 * dwarf2read.c (psymtab_include_file_name): Likewise.
3078 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3079 Pedro Alves <palves@redhat.com>
3083 * ada-lang.c (coerce_unspec_val_to_type): Use
3084 value_contents_copy_raw.
3085 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3086 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3087 * cp-valprint.c (cp_print_value_fields): Let the common printing
3088 code handle optimized out values.
3089 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3090 * d-valprint.c (dynamic_array_type): Use
3091 value_bits_any_optimized_out.
3092 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3093 check_any_valid fields.
3094 (check_pieced_value_bits): Delete and inline ...
3095 (check_pieced_synthetic_pointer): ... here.
3096 (check_pieced_value_validity): Delete.
3097 (check_pieced_value_invalid): Delete.
3098 (pieced_value_funcs): Remove check_validity and check_any_valid
3100 (read_pieced_value): Use mark_value_bits_optimized_out.
3101 (write_pieced_value): Switch to use
3102 mark_value_bytes_optimized_out.
3103 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3104 of assuming the whole value is optimized out.
3105 * findvar.c (read_frame_register_value): Remove special handling
3106 of optimized out registers.
3107 (value_from_register): Use mark_value_bytes_optimized_out.
3108 * frame-unwind.c (frame_unwind_got_optimized): Use
3109 mark_value_bytes_optimized_out.
3110 * jv-valprint.c (java_value_print): Adjust.
3111 (java_print_value_fields): Let the common printing code handle
3112 optimized out values.
3113 * mips-tdep.c (mips_print_register): Remove special handling of
3114 optimized out registers.
3115 * opencl-lang.c (lval_func_check_validity): Delete.
3116 (lval_func_check_any_valid): Delete.
3117 (opencl_value_funcs): Remove check_validity and check_any_valid
3119 * p-valprint.c (pascal_object_print_value_fields): Let the common
3120 printing code handle optimized out values.
3121 * stack.c (read_frame_arg): Remove special handling of optimized
3122 out values. Fetch both VAL and ENTRYVAL before comparing
3123 contents. Adjust to value_available_contents_eq rename.
3124 * valprint.c (valprint_check_validity)
3125 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3126 (val_print_array_elements): Adjust.
3127 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3128 (value_bits_any_optimized_out): New function.
3129 (value_entirely_covered_by_range_vector): New function, factored
3130 out from value_entirely_unavailable.
3131 (value_entirely_unavailable): Reimplement.
3132 (value_entirely_optimized_out): New function.
3133 (insert_into_bit_range_vector): New function, factored out from
3134 mark_value_bits_unavailable.
3135 (mark_value_bits_unavailable): Reimplement.
3136 (struct ranges_and_idx): New struct.
3137 (find_first_range_overlap_and_match): New function, factored out
3138 from value_available_contents_bits_eq.
3139 (value_available_contents_bits_eq): Rename to ...
3140 (value_contents_bits_eq): ... this. Check both unavailable
3141 contents and optimized out contents.
3142 (value_available_contents_eq): Rename to ...
3143 (value_contents_eq): ... this.
3144 (allocate_value_lazy): Remove reference to the old optimized_out
3146 (allocate_optimized_out_value): Use
3147 mark_value_bytes_optimized_out.
3148 (require_not_optimized_out): Adjust to check whether the
3149 optimized_out vec is empty.
3150 (ranges_copy_adjusted): New function, factored out from
3151 value_contents_copy_raw.
3152 (value_contents_copy_raw): Also copy the optimized out ranges.
3153 Assert the destination ranges aren't optimized out.
3154 (value_contents_copy): Update comment, remove call to
3155 require_not_optimized_out.
3156 (value_contents_equal): Adjust to check whether the optimized_out
3158 (set_value_optimized_out, value_optimized_out_const): Delete.
3159 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3161 (value_entirely_optimized_out, value_bits_valid): Delete.
3162 (value_copy): Take a VEC copy of the 'optimized_out' field.
3163 (value_primitive_field): Remove special handling of optimized out.
3164 (value_fetch_lazy): Assert that lazy values have no unavailable
3165 regions. Use value_bits_any_optimized_out. Remove some special
3166 handling for optimized out values.
3167 * value.h: Add intro comment about <optimized out> and
3169 (struct lval_funcs): Remove check_validity and check_any_valid
3171 (set_value_optimized_out, value_optimized_out_const): Remove.
3172 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3174 (value_bits_any_optimized_out): New declaration.
3175 (value_bits_valid): Delete declaration.
3176 (value_available_contents_eq): Rename to ...
3177 (value_contents_eq): ... this, and extend comments.
3179 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3181 Fix -fsanitize=address on unreadable inferior strings.
3182 * valprint.c (val_print_string): Fix access before BUFFER.
3184 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3186 * target.c (target_struct_size): Remove.
3187 (target_struct_allocsize): Remove.
3188 (DEFAULT_ALLOCSIZE): Remove.
3189 (target_ops_p): New typedef.
3190 (DEF_VEC_P (target_ops_p)): New vector type.
3191 (target_structs): Change type to VEC (target_ops_p).
3192 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3193 (find_default_run_target): Rewrite for loop following changes to
3196 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3198 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3199 Adjust code accordingly. Adjust function description comment.
3201 2014-08-19 Yao Qi <yao@codesourcery.com>
3203 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3206 2014-08-19 Alan Modra <amodra@gmail.com>
3208 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3209 * config.in: Regenerate.
3210 * configure: Regenerate.
3212 2014-08-19 Tom Tromey <tromey@redhat.com>
3213 Gary Benson <gbenson@redhat.com>
3215 * common/common-debug.h: New file.
3216 * common/common-debug.c: Likewise.
3217 * debug.c: Likewise.
3218 * Makefile.in (SFILES): Add common/common-debug.c.
3219 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3220 (COMMON_OBS): Add common-debug.o and debug.o.
3221 (common-debug.o): New rule.
3222 * common/common-defs.h: Include common-debug.h.
3223 * common/agent.c (debug_agent_printf): New function.
3224 (DEBUG_AGENT): Redefine.
3225 * nat/i386-dregs.c (debug_printf): Undefine.
3227 2014-08-19 Gary Benson <gbenson@redhat.com>
3229 * common/common-defs.h: Include print-utils.h.
3230 * utils.h: Do not include print-utils.h.
3232 2014-08-19 Tom Tromey <tromey@redhat.com>
3233 Gary Benson <gbenson@redhat.com>
3235 * common/common-types.h: New file.
3236 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3237 * common/common-defs.h: Include common-types.h.
3238 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3241 2014-08-19 Tom Tromey <tromey@redhat.com>
3242 Gary Benson <gbenson@redhat.com>
3244 * common/errors.h: New file.
3245 * common/errors.c: Likewise.
3246 * Makefile.in (SFILES): Add common/errors.c.
3247 (HFILES_NO_SRCDIR): Add common/errors.h.
3248 (COMMON_OBS): Add errors.o.
3249 (errors.o): New rule.
3250 * common/common-defs.h: Include errors.h.
3251 * utils.h (perror_with_name, error, verror, warning, vwarning):
3253 * common/common-utils.h: (malloc_failure, internal_error):
3256 2014-08-19 Gary Benson <gbenson@redhat.com>
3258 * utils.c (internal_vproblem): Always print the message.
3260 2014-08-18 Doug Evans <dje@google.com>
3262 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3264 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3266 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3267 Return 0 if TYPE is dynamic.
3268 (print_range): Add handling of dynamic ranges.
3270 2014-08-18 Keven Boell <keven.boell@intel.com>
3271 Joel Brobecker <brobecker@adacore.com>
3273 * gdbtypes.h (struct main_type): Add field "data_location".
3274 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3275 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3276 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3277 a dynamic data location.
3278 (resolve_dynamic_type): Add DW_AT_data_location handling.
3279 (copy_recursive, copy_type): Copy the data_location information
3281 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3282 * value.c (value_from_contents_and_address): Add
3283 DW_AT_data_location handling.
3285 2014-08-18 Keven Boell <keven.boell@intel.com>
3286 Joel Brobecker <brobecker@adacore.com>
3288 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3289 field "get_object_address".
3290 * dwarf2expr.c (execute_stack_op): Add handling for
3291 DW_OP_push_object_address.
3292 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3293 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3294 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3295 (dwarf_expr_get_obj_addr): New function.
3296 (dwarf_expr_ctx_funcs): Add get_object_address field.
3297 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3298 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3299 (dwarf2_evaluate_property): Add parameter "address". Use it.
3300 (needs_get_obj_addr): New function.
3301 (needs_frame_ctx_funcs): Add get_object_address field.
3302 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3303 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3304 (resolve_dynamic_array): Likewise.
3306 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3308 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3309 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3310 fixed value for records and unions for which some GNAT encodings
3313 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3315 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3316 rewrite to avoid "else if" and "else" constructs. Should be
3317 a no-op in practice.
3319 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3321 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3324 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3327 * eval.c: Update all calls to find_overload_match.
3328 * valarith.c: Likewise.
3329 (value_user_defined_cpp_op, value_user_defined_op): New
3330 argument NOSIDE. Update all callers.
3331 * valops.c (find_overload_match): New argument NOSIDE.
3332 * value.h (find_overload_match): Update signature.
3334 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3336 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3337 'items' methods instead of 'iteritems' method on dictionaries.
3339 2014-08-15 Doug Evans <dje@google.com>
3341 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3344 2014-08-15 Doug Evans <dje@google.com>
3346 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3348 2014-08-15 Doug Evans <dje@google.com>
3350 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3352 2014-08-15 Doug Evans <dje@google.com>
3354 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3357 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3359 * dcache.h: Include target.h, to avoid compile time warnings.
3361 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3363 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3364 frame_info" partial declaration.
3365 * gdbarch.h: Regenerate.
3367 2014-08-15 Yao Qi <yao@codesourcery.com>
3369 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3370 Add parameter 'decode_for_pst_p'. Callers update.
3372 2014-08-13 Yao Qi <yao@codesourcery.com>
3375 * configure.ac: Use local variable 'pos'.
3376 * configure: Regenerated.
3378 2014-08-11 Doug Evans <dje@google.com>
3380 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3381 message, it is redundant with "Reading symbols from ..." message.
3383 2014-08-10 Doug Evans <xdje42@gmail.com>
3385 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3387 2014-08-09 Yao Qi <yao@codesourcery.com>
3390 * remote.c (remote_xfer_partial): Remove dead code.
3392 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3394 * ia64-linux-tdep.c: Include "regset.h".
3395 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3396 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3397 (ia64_linux_supply_fpregset): New function.
3398 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3399 (ia64_linux_regset_from_core_section): New function.
3400 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3403 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3405 * m68klinux-tdep.c: Include "regset.h".
3406 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3407 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3408 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3409 (m68k_linux_regset_from_core_section): New function.
3410 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3413 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3415 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3416 function. Move logic to...
3417 (tilegx_linux_regmap): ... this new register map.
3418 (tilegx_linux_regset): Refer to register map, replace supply
3419 method by regcache_supply_regset, and add collect method.
3420 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3421 TILEGX_FIRST_EASY_REGNUM.
3423 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3425 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3426 that calls regcache_supply_regset and handles the EPC register
3427 separately. Move main logic to...
3428 (score7_linux_gregmap): ... this new register map.
3429 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3430 (score7_linux_gregset): Refer to register map. Add collect method.
3431 (score7_linux_regset_from_core_section): Replace
3432 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3433 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3434 (struct regset): Delete unused forward declaraction.
3435 (struct pt_regs): Delete structure definition.
3436 (elf_gregset_t): Delete typedef.
3438 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3440 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3441 (nios2_core_regset): Add collect method.
3443 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3445 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3446 platform-independent and don't write to read-only input buffer.
3447 (m32r_linux_collect_gregset): New function.
3448 (m32r_linux_gregset): Add collect method.
3450 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3452 * hppa-linux-tdep.c (greg_map): Rename to...
3453 (hppa_linux_gregmap): ... this. Also convert to
3454 regcache_map_entry format.
3455 (hppa_linux_supply_regset): Delete function.
3456 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3457 (hppa_linux_fpregmap): ... this new register map.
3458 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3459 register map, replace supply method by regcache_supply_regset, and
3460 add collect method regcache_collect_regset.
3462 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3464 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3465 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3466 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3467 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3468 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3469 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3470 (frv_linux_supply_gregset): Replace main logic by call to
3471 regcache_supply_regset, but keep clearing gr32-gr63.
3472 (frv_linux_supply_fpregset): Delete function.
3473 (frv_linux_gregset): Refer to appropriate register map and add
3474 regcache_collect_regset as the collect method.
3475 (frv_linux_fpregset): Likewise. Also exchange the supply method
3476 by regcache_supply_regset.
3478 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3480 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3481 by call to alpha_supply_int_regs.
3482 (alpha_linux_collect_gregset): New function.
3483 (alpha_linux_supply_fpregset): Replace logic by call to
3484 alpha_supply_fp_regs.
3485 (alpha_linux_collect_fpregset): New function.
3486 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3488 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3490 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3491 by call to regcache_collect_regset.
3492 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3493 instead of aarch64_linux_supply_gregset/_fpregset.
3494 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3495 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3496 header file instead.
3497 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3498 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3499 functions. Move logic to ...
3500 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3502 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3503 refer to new register maps, replace *_regset_from_core by
3504 regcache_supply_regset, and also use regcache_collect_regset.
3505 * aarch64-linux-tdep.h: Include "regset.h".
3506 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3508 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3509 macros, moved from C source file.
3510 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3511 variable declarations.
3513 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3515 * s390-linux-nat.c: Include "regset.h".
3516 (regmap_gregset): Delete macro.
3517 (s390_64_regmap_gregset): New register map for
3518 regcache_supply/_collect_regset.
3519 (s390_64_gregset): New regset.
3520 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3521 (regmap_fpregset): Delete macro.
3522 (s390_native_supply, s390_native_collect): Delete functions.
3523 (supply_gregset, fill_gregset): Replace s390-specific regmap
3524 handling by a call to regcache_supply/_collect_regset.
3525 (supply_fpregset, fill_fpregset): Call regcache_supply/
3526 _collect_regset instead of s390_native_supply/_collect.
3527 (fetch_regset, store_regset): Likewise. Also change the last
3528 parameter to a regset instead of a regmap.
3529 (s390_linux_fetch_inferior_registers)
3530 (390_linux_store_inferior_registers): Adjust last parameter in
3531 calls to fetch_regset and store_regset.
3532 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3533 (s390_gregmap): ... this. Also make static const and convert to
3534 regcache_map_entry format.
3535 (s390x_regmap_gregset): Delete.
3536 (s390_regmap_fpregset): Rename to...
3537 (s390_fpregmap): ... this. Make static const and convert to
3538 regcache_map_entry format.
3539 (s390_regmap_upper, s390_regmap_last_break)
3540 (s390x_regmap_last_break, s390_regmap_system_call)
3541 (s390_regmap_tdb): Likewise.
3542 (s390_supply_regset, s390_collect_regset): Remove functions.
3543 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3545 (s390_gregset, s390_fpregset, s390_upper_regset)
3546 (s390_last_break_regset, s390x_last_break_regset)
3547 (s390_system_call_regset, s390_tdb_regset): Make global and
3548 replace s390_supply/_collect_regset by regcache_supply/
3550 (s390x_gregset): Delete.
3551 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3552 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3553 (s390_regmap_fpregset, s390_regmap_last_break)
3554 (s390x_regmap_last_break, s390_regmap_system_call)
3555 (s390_regmap_tdb): Delete global variable declarations.
3556 (s390_gregset, s390_fpregset, s390_last_break_regset)
3557 (s390x_last_break_regset, s390_system_call_regset)
3558 (s390_tdb_regset): New global variable declarations.
3560 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3562 * regcache.c: Include "regset.h".
3563 (regcache_transfer_regset): New local function.
3564 (regcache_supply_regset, regcache_collect_regset): New functions.
3565 * regcache.h (struct regcache_map_entry): New structure.
3566 (REGCACHE_MAP_SKIP): New enum value.
3567 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3569 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3571 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3572 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3573 (ppc_linux_collect_gregset ): Likewise.
3574 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3575 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3576 (ppc_collect_vrregset): Likewise.
3577 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3580 2014-08-07 Yao Qi <yao@codesourcery.com>
3582 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3583 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3584 * remote.c (remote_read_bytes): Likewise.
3586 2014-08-07 Yao Qi <yao@codesourcery.com>
3588 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3590 2014-08-07 Yao Qi <yao@codesourcery.com>
3593 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3594 TARGET_XFER_OK instead of 0.
3596 2014-08-07 Gary Benson <gbenson@redhat.com>
3598 * common/common-defs.h: Include errno.h.
3599 * defs.h: Do not include errno.h.
3600 * ada-typeprint.c: Likewise.
3601 * c-typeprint.c: Likewise.
3602 * core-regset.c: Likewise.
3603 * corefile.c: Likewise.
3604 * corelow.c: Likewise.
3605 * event-loop.c: Likewise.
3606 * f-typeprint.c: Likewise.
3607 * gnu-nat.c: Likewise.
3608 * go32-nat.c: Likewise.
3609 * i386gnu-nat.c: Likewise.
3610 * m2-typeprint.c: Likewise.
3611 * nat/linux-btrace.c: Likewise.
3612 * p-typeprint.c: Likewise.
3613 * procfs.c: Likewise.
3614 * remote-sim.c: Likewise.
3615 * rs6000-nat.c: Likewise.
3616 * target.c: Likewise.
3617 * typeprint.c: Likewise.
3618 * ui-file.c: Likewise.
3619 * valops.c: Likewise.
3620 * valprint.c: Likewise.
3622 2014-08-07 Gary Benson <gbenson@redhat.com>
3624 * common/common-defs.h: Include string.h.
3625 * aarch64-tdep.c: Do not include string.h.
3626 * ada-exp.y: Likewise.
3627 * ada-lang.c: Likewise.
3628 * ada-lex.l: Likewise.
3629 * ada-typeprint.c: Likewise.
3630 * ada-valprint.c: Likewise.
3631 * aix-thread.c: Likewise.
3632 * alpha-linux-tdep.c: Likewise.
3633 * alpha-mdebug-tdep.c: Likewise.
3634 * alpha-nat.c: Likewise.
3635 * alpha-osf1-tdep.c: Likewise.
3636 * alpha-tdep.c: Likewise.
3637 * alphanbsd-tdep.c: Likewise.
3638 * amd64-dicos-tdep.c: Likewise.
3639 * amd64-linux-tdep.c: Likewise.
3640 * amd64-nat.c: Likewise.
3641 * amd64-sol2-tdep.c: Likewise.
3642 * amd64fbsd-tdep.c: Likewise.
3643 * amd64obsd-tdep.c: Likewise.
3644 * arch-utils.c: Likewise.
3645 * arm-linux-nat.c: Likewise.
3646 * arm-linux-tdep.c: Likewise.
3647 * arm-tdep.c: Likewise.
3648 * arm-wince-tdep.c: Likewise.
3649 * armbsd-tdep.c: Likewise.
3650 * armnbsd-nat.c: Likewise.
3651 * armnbsd-tdep.c: Likewise.
3652 * armobsd-tdep.c: Likewise.
3653 * avr-tdep.c: Likewise.
3654 * ax-gdb.c: Likewise.
3655 * ax-general.c: Likewise.
3656 * bcache.c: Likewise.
3657 * bfin-tdep.c: Likewise.
3658 * breakpoint.c: Likewise.
3659 * build-id.c: Likewise.
3660 * buildsym.c: Likewise.
3661 * c-exp.y: Likewise.
3662 * c-lang.c: Likewise.
3663 * c-typeprint.c: Likewise.
3664 * c-valprint.c: Likewise.
3665 * charset.c: Likewise.
3666 * cli-out.c: Likewise.
3667 * cli/cli-cmds.c: Likewise.
3668 * cli/cli-decode.c: Likewise.
3669 * cli/cli-dump.c: Likewise.
3670 * cli/cli-interp.c: Likewise.
3671 * cli/cli-logging.c: Likewise.
3672 * cli/cli-script.c: Likewise.
3673 * cli/cli-setshow.c: Likewise.
3674 * cli/cli-utils.c: Likewise.
3675 * coffread.c: Likewise.
3676 * common/agent.c: Likewise.
3677 * common/buffer.c: Likewise.
3678 * common/buffer.h: Likewise.
3679 * common/common-utils.c: Likewise.
3680 * common/filestuff.c: Likewise.
3681 * common/filestuff.c: Likewise.
3682 * common/format.c: Likewise.
3683 * common/print-utils.c: Likewise.
3684 * common/rsp-low.c: Likewise.
3685 * common/signals.c: Likewise.
3686 * common/vec.h: Likewise.
3687 * common/xml-utils.c: Likewise.
3688 * core-regset.c: Likewise.
3689 * corefile.c: Likewise.
3690 * corelow.c: Likewise.
3691 * cp-abi.c: Likewise.
3692 * cp-name-parser.y: Likewise.
3693 * cp-support.c: Likewise.
3694 * cp-valprint.c: Likewise.
3695 * cris-tdep.c: Likewise.
3696 * d-exp.y: Likewise.
3697 * darwin-nat.c: Likewise.
3698 * dbxread.c: Likewise.
3699 * dcache.c: Likewise.
3700 * demangle.c: Likewise.
3701 * dicos-tdep.c: Likewise.
3702 * disasm.c: Likewise.
3703 * doublest.c: Likewise.
3704 * dsrec.c: Likewise.
3705 * dummy-frame.c: Likewise.
3706 * dwarf2-frame.c: Likewise.
3707 * dwarf2loc.c: Likewise.
3708 * dwarf2read.c: Likewise.
3709 * elfread.c: Likewise.
3710 * environ.c: Likewise.
3712 * event-loop.c: Likewise.
3713 * exceptions.c: Likewise.
3715 * expprint.c: Likewise.
3716 * f-exp.y: Likewise.
3717 * f-lang.c: Likewise.
3718 * f-typeprint.c: Likewise.
3719 * f-valprint.c: Likewise.
3720 * fbsd-nat.c: Likewise.
3721 * findcmd.c: Likewise.
3722 * findvar.c: Likewise.
3723 * fork-child.c: Likewise.
3724 * frame.c: Likewise.
3725 * frv-linux-tdep.c: Likewise.
3726 * frv-tdep.c: Likewise.
3728 * gdb_bfd.c: Likewise.
3729 * gdbarch.c: Likewise.
3730 * gdbarch.sh: Likewise.
3731 * gdbtypes.c: Likewise.
3732 * gnu-nat.c: Likewise.
3733 * gnu-v2-abi.c: Likewise.
3734 * gnu-v3-abi.c: Likewise.
3735 * go-exp.y: Likewise.
3736 * go-lang.c: Likewise.
3737 * go32-nat.c: Likewise.
3738 * guile/guile.c: Likewise.
3739 * guile/scm-auto-load.c: Likewise.
3740 * hppa-hpux-tdep.c: Likewise.
3741 * hppa-linux-nat.c: Likewise.
3742 * hppanbsd-tdep.c: Likewise.
3743 * hppaobsd-tdep.c: Likewise.
3744 * i386-cygwin-tdep.c: Likewise.
3745 * i386-dicos-tdep.c: Likewise.
3746 * i386-linux-tdep.c: Likewise.
3747 * i386-nto-tdep.c: Likewise.
3748 * i386-sol2-tdep.c: Likewise.
3749 * i386-tdep.c: Likewise.
3750 * i386bsd-tdep.c: Likewise.
3751 * i386gnu-nat.c: Likewise.
3752 * i386nbsd-tdep.c: Likewise.
3753 * i386obsd-tdep.c: Likewise.
3754 * i387-tdep.c: Likewise.
3755 * ia64-libunwind-tdep.c: Likewise.
3756 * ia64-linux-nat.c: Likewise.
3757 * inf-child.c: Likewise.
3758 * inf-ptrace.c: Likewise.
3759 * inf-ttrace.c: Likewise.
3760 * infcall.c: Likewise.
3761 * infcmd.c: Likewise.
3762 * inflow.c: Likewise.
3763 * infrun.c: Likewise.
3764 * interps.c: Likewise.
3765 * iq2000-tdep.c: Likewise.
3766 * irix5-nat.c: Likewise.
3767 * jv-exp.y: Likewise.
3768 * jv-lang.c: Likewise.
3769 * jv-typeprint.c: Likewise.
3770 * jv-valprint.c: Likewise.
3771 * language.c: Likewise.
3772 * linux-fork.c: Likewise.
3773 * linux-nat.c: Likewise.
3774 * lm32-tdep.c: Likewise.
3775 * m2-exp.y: Likewise.
3776 * m2-typeprint.c: Likewise.
3777 * m32c-tdep.c: Likewise.
3778 * m32r-linux-nat.c: Likewise.
3779 * m32r-linux-tdep.c: Likewise.
3780 * m32r-rom.c: Likewise.
3781 * m32r-tdep.c: Likewise.
3782 * m68hc11-tdep.c: Likewise.
3783 * m68k-tdep.c: Likewise.
3784 * m68kbsd-tdep.c: Likewise.
3785 * m68klinux-nat.c: Likewise.
3786 * m68klinux-tdep.c: Likewise.
3787 * m88k-tdep.c: Likewise.
3788 * machoread.c: Likewise.
3789 * macrocmd.c: Likewise.
3791 * mdebugread.c: Likewise.
3792 * mem-break.c: Likewise.
3793 * memattr.c: Likewise.
3794 * memory-map.c: Likewise.
3795 * mep-tdep.c: Likewise.
3796 * mi/mi-cmd-break.c: Likewise.
3797 * mi/mi-cmd-disas.c: Likewise.
3798 * mi/mi-cmd-env.c: Likewise.
3799 * mi/mi-cmd-stack.c: Likewise.
3800 * mi/mi-cmd-var.c: Likewise.
3801 * mi/mi-cmds.c: Likewise.
3802 * mi/mi-console.c: Likewise.
3803 * mi/mi-getopt.c: Likewise.
3804 * mi/mi-interp.c: Likewise.
3805 * mi/mi-main.c: Likewise.
3806 * mi/mi-parse.c: Likewise.
3807 * microblaze-rom.c: Likewise.
3808 * microblaze-tdep.c: Likewise.
3809 * mingw-hdep.c: Likewise.
3810 * minidebug.c: Likewise.
3811 * minsyms.c: Likewise.
3812 * mips-irix-tdep.c: Likewise.
3813 * mips-linux-tdep.c: Likewise.
3814 * mips-tdep.c: Likewise.
3815 * mips64obsd-tdep.c: Likewise.
3816 * mipsnbsd-tdep.c: Likewise.
3817 * mipsread.c: Likewise.
3818 * mn10300-linux-tdep.c: Likewise.
3819 * mn10300-tdep.c: Likewise.
3820 * monitor.c: Likewise.
3821 * moxie-tdep.c: Likewise.
3822 * mt-tdep.c: Likewise.
3823 * nat/linux-btrace.c: Likewise.
3824 * nat/linux-osdata.c: Likewise.
3825 * nat/linux-procfs.c: Likewise.
3826 * nat/linux-ptrace.c: Likewise.
3827 * nat/linux-waitpid.c: Likewise.
3828 * nbsd-tdep.c: Likewise.
3829 * nios2-linux-tdep.c: Likewise.
3830 * nto-procfs.c: Likewise.
3831 * nto-tdep.c: Likewise.
3832 * objc-lang.c: Likewise.
3833 * objfiles.c: Likewise.
3834 * opencl-lang.c: Likewise.
3835 * osabi.c: Likewise.
3836 * osdata.c: Likewise.
3837 * p-exp.y: Likewise.
3838 * p-lang.c: Likewise.
3839 * p-typeprint.c: Likewise.
3840 * parse.c: Likewise.
3841 * posix-hdep.c: Likewise.
3842 * ppc-linux-nat.c: Likewise.
3843 * ppc-sysv-tdep.c: Likewise.
3844 * ppcfbsd-tdep.c: Likewise.
3845 * ppcnbsd-tdep.c: Likewise.
3846 * ppcobsd-tdep.c: Likewise.
3847 * printcmd.c: Likewise.
3848 * procfs.c: Likewise.
3849 * prologue-value.c: Likewise.
3850 * python/py-auto-load.c: Likewise.
3851 * python/py-gdb-readline.c: Likewise.
3852 * ravenscar-thread.c: Likewise.
3853 * regcache.c: Likewise.
3854 * registry.c: Likewise.
3855 * remote-fileio.c: Likewise.
3856 * remote-m32r-sdi.c: Likewise.
3857 * remote-mips.c: Likewise.
3858 * remote-notif.c: Likewise.
3859 * remote-sim.c: Likewise.
3860 * remote.c: Likewise.
3861 * reverse.c: Likewise.
3862 * rs6000-aix-tdep.c: Likewise.
3863 * ser-base.c: Likewise.
3864 * ser-go32.c: Likewise.
3865 * ser-mingw.c: Likewise.
3866 * ser-pipe.c: Likewise.
3867 * ser-tcp.c: Likewise.
3868 * ser-unix.c: Likewise.
3869 * serial.c: Likewise.
3870 * sh-tdep.c: Likewise.
3871 * sh64-tdep.c: Likewise.
3872 * shnbsd-tdep.c: Likewise.
3874 * sol-thread.c: Likewise.
3875 * solib-dsbt.c: Likewise.
3876 * solib-frv.c: Likewise.
3877 * solib-osf.c: Likewise.
3878 * solib-som.c: Likewise.
3879 * solib-spu.c: Likewise.
3880 * solib-target.c: Likewise.
3881 * solib.c: Likewise.
3882 * somread.c: Likewise.
3883 * source.c: Likewise.
3884 * sparc-nat.c: Likewise.
3885 * sparc-sol2-tdep.c: Likewise.
3886 * sparc-tdep.c: Likewise.
3887 * sparc64-tdep.c: Likewise.
3888 * sparc64fbsd-tdep.c: Likewise.
3889 * sparc64nbsd-tdep.c: Likewise.
3890 * sparcnbsd-tdep.c: Likewise.
3891 * spu-linux-nat.c: Likewise.
3892 * spu-multiarch.c: Likewise.
3893 * spu-tdep.c: Likewise.
3894 * stabsread.c: Likewise.
3895 * stack.c: Likewise.
3896 * std-regs.c: Likewise.
3897 * symfile.c: Likewise.
3898 * symmisc.c: Likewise.
3899 * symtab.c: Likewise.
3900 * target.c: Likewise.
3901 * thread.c: Likewise.
3902 * tilegx-linux-nat.c: Likewise.
3903 * tilegx-tdep.c: Likewise.
3905 * tracepoint.c: Likewise.
3906 * tui/tui-command.c: Likewise.
3907 * tui/tui-data.c: Likewise.
3908 * tui/tui-disasm.c: Likewise.
3909 * tui/tui-file.c: Likewise.
3910 * tui/tui-layout.c: Likewise.
3911 * tui/tui-out.c: Likewise.
3912 * tui/tui-regs.c: Likewise.
3913 * tui/tui-source.c: Likewise.
3914 * tui/tui-stack.c: Likewise.
3915 * tui/tui-win.c: Likewise.
3916 * tui/tui-windata.c: Likewise.
3917 * tui/tui-winsource.c: Likewise.
3918 * typeprint.c: Likewise.
3919 * ui-file.c: Likewise.
3920 * ui-out.c: Likewise.
3921 * user-regs.c: Likewise.
3922 * utils.c: Likewise.
3923 * v850-tdep.c: Likewise.
3924 * valarith.c: Likewise.
3925 * valops.c: Likewise.
3926 * valprint.c: Likewise.
3927 * value.c: Likewise.
3928 * varobj.c: Likewise.
3929 * vax-tdep.c: Likewise.
3930 * vaxnbsd-tdep.c: Likewise.
3931 * vaxobsd-tdep.c: Likewise.
3932 * windows-nat.c: Likewise.
3933 * xcoffread.c: Likewise.
3934 * xml-support.c: Likewise.
3935 * xstormy16-tdep.c: Likewise.
3936 * xtensa-linux-nat.c: Likewise.
3938 2014-08-07 Gary Benson <gbenson@redhat.com>
3940 * common/common-defs.h: Include gdb_assert.h.
3941 * aarch64-tdep.c: Do not include gdb_assert.h.
3942 * addrmap.c: Likewise.
3943 * aix-thread.c: Likewise.
3944 * alpha-linux-tdep.c: Likewise.
3945 * alpha-mdebug-tdep.c: Likewise.
3946 * alphanbsd-tdep.c: Likewise.
3947 * amd64-nat.c: Likewise.
3948 * amd64-tdep.c: Likewise.
3949 * amd64bsd-nat.c: Likewise.
3950 * amd64fbsd-nat.c: Likewise.
3951 * amd64fbsd-tdep.c: Likewise.
3952 * amd64nbsd-nat.c: Likewise.
3953 * amd64nbsd-tdep.c: Likewise.
3954 * amd64obsd-nat.c: Likewise.
3955 * amd64obsd-tdep.c: Likewise.
3956 * arch-utils.c: Likewise.
3957 * arm-tdep.c: Likewise.
3958 * armbsd-tdep.c: Likewise.
3960 * bcache.c: Likewise.
3961 * bfin-tdep.c: Likewise.
3962 * blockframe.c: Likewise.
3963 * breakpoint.c: Likewise.
3964 * bsd-kvm.c: Likewise.
3965 * bsd-uthread.c: Likewise.
3966 * buildsym.c: Likewise.
3967 * c-exp.y: Likewise.
3968 * c-lang.c: Likewise.
3969 * charset.c: Likewise.
3970 * cleanups.c: Likewise.
3971 * cli-out.c: Likewise.
3972 * cli/cli-decode.c: Likewise.
3973 * cli/cli-dump.c: Likewise.
3974 * cli/cli-logging.c: Likewise.
3975 * cli/cli-script.c: Likewise.
3976 * cli/cli-utils.c: Likewise.
3977 * coffread.c: Likewise.
3978 * common/common-utils.c: Likewise.
3979 * common/queue.h: Likewise.
3980 * common/signals.c: Likewise.
3981 * common/vec.h: Likewise.
3982 * complaints.c: Likewise.
3983 * completer.c: Likewise.
3984 * corelow.c: Likewise.
3985 * cp-abi.c: Likewise.
3986 * cp-name-parser.y: Likewise.
3987 * cp-namespace.c: Likewise.
3988 * cp-support.c: Likewise.
3989 * cris-tdep.c: Likewise.
3990 * dbxread.c: Likewise.
3991 * dictionary.c: Likewise.
3992 * doublest.c: Likewise.
3993 * dsrec.c: Likewise.
3994 * dummy-frame.c: Likewise.
3995 * dwarf2-frame-tailcall.c: Likewise.
3996 * dwarf2-frame.c: Likewise.
3997 * dwarf2expr.c: Likewise.
3998 * dwarf2loc.c: Likewise.
3999 * dwarf2read.c: Likewise.
4001 * event-loop.c: Likewise.
4002 * exceptions.c: Likewise.
4003 * expprint.c: Likewise.
4004 * f-valprint.c: Likewise.
4005 * fbsd-nat.c: Likewise.
4006 * findvar.c: Likewise.
4007 * frame-unwind.c: Likewise.
4008 * frame.c: Likewise.
4009 * frv-tdep.c: Likewise.
4010 * gcore.c: Likewise.
4011 * gdb-dlfcn.c: Likewise.
4012 * gdb_bfd.c: Likewise.
4013 * gdbarch.c: Likewise.
4014 * gdbarch.sh: Likewise.
4015 * gdbtypes.c: Likewise.
4016 * gnu-nat.c: Likewise.
4017 * gnu-v3-abi.c: Likewise.
4018 * go-lang.c: Likewise.
4019 * guile/scm-exception.c: Likewise.
4020 * guile/scm-gsmob.c: Likewise.
4021 * guile/scm-lazy-string.c: Likewise.
4022 * guile/scm-math.c: Likewise.
4023 * guile/scm-pretty-print.c: Likewise.
4024 * guile/scm-safe-call.c: Likewise.
4025 * guile/scm-utils.c: Likewise.
4026 * guile/scm-value.c: Likewise.
4027 * h8300-tdep.c: Likewise.
4028 * hppa-hpux-nat.c: Likewise.
4029 * hppa-tdep.c: Likewise.
4030 * hppanbsd-tdep.c: Likewise.
4031 * hppaobsd-tdep.c: Likewise.
4032 * i386-darwin-nat.c: Likewise.
4033 * i386-darwin-tdep.c: Likewise.
4034 * i386-nto-tdep.c: Likewise.
4035 * i386-tdep.c: Likewise.
4036 * i386bsd-nat.c: Likewise.
4037 * i386fbsd-tdep.c: Likewise.
4038 * i386gnu-nat.c: Likewise.
4039 * i386nbsd-tdep.c: Likewise.
4040 * i386obsd-tdep.c: Likewise.
4041 * i387-tdep.c: Likewise.
4042 * ia64-libunwind-tdep.c: Likewise.
4043 * ia64-tdep.c: Likewise.
4044 * inf-ptrace.c: Likewise.
4045 * inf-ttrace.c: Likewise.
4046 * infcall.c: Likewise.
4047 * infcmd.c: Likewise.
4048 * infrun.c: Likewise.
4049 * inline-frame.c: Likewise.
4050 * interps.c: Likewise.
4051 * jv-lang.c: Likewise.
4052 * jv-typeprint.c: Likewise.
4053 * linux-fork.c: Likewise.
4054 * linux-nat.c: Likewise.
4055 * linux-thread-db.c: Likewise.
4056 * m32c-tdep.c: Likewise.
4057 * m32r-linux-nat.c: Likewise.
4058 * m32r-tdep.c: Likewise.
4059 * m68k-tdep.c: Likewise.
4060 * m68kbsd-nat.c: Likewise.
4061 * m68kbsd-tdep.c: Likewise.
4062 * m88k-tdep.c: Likewise.
4063 * machoread.c: Likewise.
4064 * macroexp.c: Likewise.
4065 * macrotab.c: Likewise.
4066 * maint.c: Likewise.
4067 * mdebugread.c: Likewise.
4068 * memory-map.c: Likewise.
4069 * mep-tdep.c: Likewise.
4070 * mi/mi-common.c: Likewise.
4071 * microblaze-tdep.c: Likewise.
4072 * mingw-hdep.c: Likewise.
4073 * mips-linux-nat.c: Likewise.
4074 * mips-linux-tdep.c: Likewise.
4075 * mips-tdep.c: Likewise.
4076 * mips64obsd-tdep.c: Likewise.
4077 * mipsnbsd-tdep.c: Likewise.
4078 * mn10300-linux-tdep.c: Likewise.
4079 * mn10300-tdep.c: Likewise.
4080 * moxie-tdep.c: Likewise.
4081 * mt-tdep.c: Likewise.
4082 * nat/linux-btrace.c: Likewise.
4083 * nat/linux-osdata.c: Likewise.
4084 * nat/linux-ptrace.c: Likewise.
4085 * nat/mips-linux-watch.c: Likewise.
4086 * nios2-linux-tdep.c: Likewise.
4087 * nios2-tdep.c: Likewise.
4088 * objc-lang.c: Likewise.
4089 * objfiles.c: Likewise.
4090 * obsd-nat.c: Likewise.
4091 * opencl-lang.c: Likewise.
4092 * osabi.c: Likewise.
4093 * parse.c: Likewise.
4094 * ppc-linux-nat.c: Likewise.
4095 * ppc-sysv-tdep.c: Likewise.
4096 * ppcfbsd-nat.c: Likewise.
4097 * ppcfbsd-tdep.c: Likewise.
4098 * ppcnbsd-nat.c: Likewise.
4099 * ppcnbsd-tdep.c: Likewise.
4100 * ppcobsd-nat.c: Likewise.
4101 * ppcobsd-tdep.c: Likewise.
4102 * printcmd.c: Likewise.
4103 * procfs.c: Likewise.
4104 * prologue-value.c: Likewise.
4105 * psymtab.c: Likewise.
4106 * python/py-lazy-string.c: Likewise.
4107 * python/py-value.c: Likewise.
4108 * regcache.c: Likewise.
4109 * reggroups.c: Likewise.
4110 * registry.c: Likewise.
4111 * remote-sim.c: Likewise.
4112 * remote.c: Likewise.
4113 * rs6000-aix-tdep.c: Likewise.
4114 * rs6000-tdep.c: Likewise.
4115 * s390-linux-tdep.c: Likewise.
4116 * score-tdep.c: Likewise.
4117 * ser-base.c: Likewise.
4118 * ser-mingw.c: Likewise.
4119 * sh-tdep.c: Likewise.
4120 * sh64-tdep.c: Likewise.
4121 * solib-darwin.c: Likewise.
4122 * solib-spu.c: Likewise.
4123 * solib-svr4.c: Likewise.
4124 * source.c: Likewise.
4125 * sparc-nat.c: Likewise.
4126 * sparc-sol2-tdep.c: Likewise.
4127 * sparc-tdep.c: Likewise.
4128 * sparc64-sol2-tdep.c: Likewise.
4129 * sparc64-tdep.c: Likewise.
4130 * sparc64fbsd-tdep.c: Likewise.
4131 * sparc64nbsd-tdep.c: Likewise.
4132 * sparc64obsd-tdep.c: Likewise.
4133 * sparcnbsd-tdep.c: Likewise.
4134 * sparcobsd-tdep.c: Likewise.
4135 * spu-multiarch.c: Likewise.
4136 * spu-tdep.c: Likewise.
4137 * stabsread.c: Likewise.
4138 * stack.c: Likewise.
4139 * symfile.c: Likewise.
4140 * symtab.c: Likewise.
4141 * target-descriptions.c: Likewise.
4142 * target-memory.c: Likewise.
4143 * target.c: Likewise.
4144 * tic6x-linux-tdep.c: Likewise.
4145 * tic6x-tdep.c: Likewise.
4146 * tilegx-linux-nat.c: Likewise.
4147 * tilegx-tdep.c: Likewise.
4149 * tramp-frame.c: Likewise.
4150 * tui/tui-out.c: Likewise.
4151 * tui/tui-winsource.c: Likewise.
4152 * ui-out.c: Likewise.
4153 * user-regs.c: Likewise.
4154 * utils.c: Likewise.
4155 * v850-tdep.c: Likewise.
4156 * valops.c: Likewise.
4157 * value.c: Likewise.
4158 * varobj.c: Likewise.
4159 * vax-nat.c: Likewise.
4160 * xml-syscall.c: Likewise.
4161 * xml-tdesc.c: Likewise.
4162 * xstormy16-tdep.c: Likewise.
4163 * xtensa-linux-nat.c: Likewise.
4164 * xtensa-tdep.c: Likewise.
4166 2014-08-07 Gary Benson <gbenson@redhat.com>
4168 * common/common-defs.h: Include common-utils.h.
4169 * defs.h: Do not include common-utils.h.
4170 * common/gdb_assert.h: Likewise.
4171 * darwin-nat.h: Likewise.
4172 * nat/linux-btrace.c: Likewise.
4173 * target/waitstatus.h: Likewise.
4175 2014-08-07 Gary Benson <gbenson@redhat.com>
4177 * common/common-defs.h: Include ptid.h.
4178 * defs.h: Do not include ptid.h.
4179 * inferior.h: Likewise.
4180 * infrun.h: Likewise.
4181 * nat/linux-btrace.h: Likewise.
4182 * nat/linux-osdata.h: Likewise.
4183 * target/waitstatus.h: Likewise.
4185 2014-08-07 Gary Benson <gbenson@redhat.com>
4187 * common/common-defs.h: Include gdb_locale.h.
4188 * defs.h: Do not include gdb_locale.h.
4190 2014-08-07 Gary Benson <gbenson@redhat.com>
4192 * common/common-defs.h: Include gdb/signals.h.
4193 * defs.h: Do not include gdb/signals.h.
4195 2014-08-07 Gary Benson <gbenson@redhat.com>
4197 * common/common-defs.h: Include pathmax.h.
4198 * defs.h: Do not include pathmax.h.
4200 2014-08-07 Gary Benson <gbenson@redhat.com>
4202 * common/common-defs.h: Include libiberty.h.
4203 * defs.h: Do not include libiberty.h.
4204 * common/queue.h: Likewise.
4205 * cp-name-parser.y: Likewise.
4206 * mi/mi-cmd-catch.c: Likewise.
4207 * python/python.c: Likewise.
4209 2014-08-07 Gary Benson <gbenson@redhat.com>
4211 * common/common-defs.h: Include ansidecl.h.
4212 * defs.h: Do not include ansidecl.h.
4213 * common/buffer.h: Likewise.
4214 * common/common-utils.h: Likewise.
4216 2014-08-07 Gary Benson <gbenson@redhat.com>
4218 * common/common-defs.h: Include stddef.h.
4219 * defs.h: Do not include stddef.h.
4220 * common/common-utils.h: Likewise.
4221 * amd64fbsd-nat.c: Likewise.
4222 * bcache.c: Likewise.
4223 * charset.c: Likewise.
4224 * common/buffer.h: Likewise.
4225 * common/vec.h: Likewise.
4226 * i386bsd-nat.c: Likewise.
4227 * nat/linux-btrace.h: Likewise.
4228 * ppcfbsd-nat.c: Likewise.
4229 * ppcnbsd-tdep.h: Likewise.
4230 * ppcobsd-nat.c: Likewise.
4231 * ppcobsd-tdep.h: Likewise.
4232 * python/py-gdb-readline.c: Likewise.
4234 2014-08-07 Gary Benson <gbenson@redhat.com>
4236 * common/common-defs.h: Include stdarg.h.
4237 * defs.h: Do not include stdarg.h.
4238 * ada-lang.c: Likewise.
4239 * common/common-utils.h: Likewise.
4240 * guile/scm-string.c: Likewise.
4241 * guile/scm-utils.c: Likewise.
4242 * m32c-tdep.c: Likewise.
4244 2014-08-07 Gary Benson <gbenson@redhat.com>
4246 * common/common-defs.h: Include stdlib.h.
4247 * defs.h: Do not include stdlib.h.
4248 * addrmap.c: Likewise.
4249 * bcache.c: Likewise.
4250 * common/buffer.c: Likewise.
4251 * common/common-utils.c: Likewise.
4252 * cp-name-parser.y: Likewise.
4253 * go32-nat.c: Likewise.
4254 * mn10300-linux-tdep.c: Likewise.
4255 * nat/linux-osdata.c: Likewise.
4256 * tui/tui.c: Likewise.
4257 * windows-nat.c: Likewise.
4259 2014-08-07 Gary Benson <gbenson@redhat.com>
4261 * common/common-defs.h: Include stdio.h.
4262 * defs.h: Do not include stdio.h.
4263 * ada-lang.c: Likewise.
4264 * common/buffer.c: Likewise.
4265 * common/common-utils.c: Likewise.
4266 * cp-name-parser.y: Likewise.
4267 * gnu-nat.c: Likewise.
4268 * go32-nat.c: Likewise.
4269 * i386gnu-nat.c: Likewise.
4270 * proc-api.c: Likewise.
4271 * proc-events.c: Likewise.
4272 * proc-flags.c: Likewise.
4273 * proc-why.c: Likewise.
4274 * python/python-internal.h: Likewise.
4275 * target-memory.c: Likewise.
4276 * tui/tui-io.c: Likewise.
4277 * tui/tui.c: Likewise.
4279 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4281 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4282 (scan_dyntag_auxv): Same.
4284 2014-08-06 Yao Qi <yao@codesourcery.com>
4286 * amd64-linux-nat.c: Remove duplicated include
4288 * i386-linux-nat.c: Likewise.
4290 2014-08-06 Yao Qi <yao@codesourcery.com>
4292 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4293 operand" with "Special opcode" in comments.
4295 2014-08-05 Gary Benson <gbenson@redhat.com>
4297 * interps.c (initialize_interps): Remove prototype.
4298 (interpreter_initialized): Remove static global.
4299 (interp_add): Do not call initialize_interps.
4300 (initialize_interps): Remove function.
4302 2014-08-05 Gary Benson <gbenson@redhat.com>
4304 * utils.c (vwarning): Remove spurious va_end.
4306 2014-08-05 Alan Modra <amodra@gmail.com>
4308 * charset.c (convert_between_encodings): Cast result of obstack_base.
4309 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4310 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4311 (read_unwind_info): Use size_t for some locals.
4312 * jit.c (finalize_symtab): Likewise.
4313 * utils.c (hashtab_obstack_allocate): Likewise.
4314 * symmisc.c (print_objfile_statistics): Update format strings.
4316 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4318 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4319 (Changes in GDB 7.8): ... here.
4321 2014-08-04 Tom Tromey <tromey@redhat.com>
4323 * target.c (set_targetdebug): New function.
4324 (initialize_targets): Pass set_targetdebug when creating "set
4327 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4329 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4330 if detecting a variable-sized field that is not the last field.
4331 Fix struct type length computation.
4333 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4335 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4338 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4340 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4341 Remove "+ 8" offset in computation of CHAIN_VMA.
4343 2014-07-31 Doug Evans <dje@google.com>
4345 * inflow.c (child_terminal_inferior): Add comment.
4346 (child_terminal_ours_for_output): Add comment.
4347 (child_terminal_ours): Add comment.
4348 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4349 (linux_nat_terminal_ours): Add comment.
4351 2014-07-31 Gary Benson <gbenson@redhat.com>
4353 * common/btrace-common.h: Do not include defs.h or server.h.
4354 * nat/mips-linux-watch.h: Likewise.
4355 * gdb-dlfcn.h: Do not include defs.h.
4356 * tracefile.h: Likewise.
4358 2014-07-30 Roland McGrath <mcgrathr@google.com>
4360 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4362 2014-07-30 Tom Tromey <tromey@redhat.com>
4364 * bsd-kvm.c (bsd_kvm_open): Constify.
4365 * corelow.c (core_open): Constify.
4366 * ctf.c (ctf_open): Constify.
4367 * dbug-rom.c (dbug_open): Constify.
4368 * exec.c (exec_open): Constify.
4369 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4370 * microblaze-rom.c (picobug_open): Constify.
4371 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4373 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4374 * record-btrace.c (record_btrace_open): Constify.
4375 * record-full.c (record_full_core_open_1, record_full_open_1)
4376 (record_full_open): Constify.
4377 * remote-m32r-sdi.c (m32r_open): Constify.
4378 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4379 (rockhopper_open, lsi_open): Constify.
4380 * remote-sim.c (gdbsim_open): Constify.
4381 * remote.c (remote_open, extended_remote_open, remote_open_1):
4383 * target.h (struct target_ops) <to_open>: Make "arg" const.
4384 * tracefile-tfile.c (tfile_open): Constify.
4386 2014-07-30 Tom Tromey <tromey@redhat.com>
4388 * breakpoint.c (map_breakpoint_numbers): Update.
4389 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4390 (get_number_const): New function.
4391 (get_number): Rewrite using get_number_const.
4392 (init_number_or_range): Make "string" const.
4393 (number_is_in_list): Make "list" const.
4394 * cli/cli-utils.h (get_number_const): Declare.
4395 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4396 (init_number_or_range, number_is_in_list): Update.
4397 * printcmd.c (map_display_numbers): Update.
4398 * value.c (value_from_history_ref): Constify.
4399 * value.h (value_from_history_ref): Update.
4401 2014-07-30 Tom Tromey <tromey@redhat.com>
4403 * corefile.c (hook_type, call_extra_exec_file_hooks)
4404 (specify_exec_file_hook): Constify.
4405 * exec.c (exec_file_attach): Make "filename" const.
4406 * gdbcore.h (deprecated_exec_file_display_hook)
4407 (specify_exec_file_hook, exec_file_attach): Constify.
4408 * main.c (captured_main): Use catch_command_errors_const.
4410 2014-07-30 Tom Tromey <tromey@redhat.com>
4412 * target.c (open_target): New function.
4413 (add_target_with_completer, add_deprecated_target_alias): Use
4414 set_cmd_sfunc, set_cmd_context.
4415 (debug_to_open): Remove.
4416 (setup_target_debug): Update.
4418 2014-07-30 Yao Qi <yao@codesourcery.com>
4420 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4422 * parse.c (exp_iterate): Update comments.
4424 2014-07-30 Gary Benson <gbenson@redhat.com>
4426 * common/common-defs.h: New file.
4427 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4428 * defs.h: Include common-defs.h.
4429 Do not include config.h or build-gnulib/config.h.
4431 2014-07-30 Gary Benson <gbenson@redhat.com>
4433 * common/common-utils.h: Do not include config.h.
4434 * nat/linux-btrace.h: Likewise.
4436 2014-07-30 Gary Benson <gbenson@redhat.com>
4438 * btrace.c: Include defs.h.
4439 * common/ptid.c: Include defs.h or server.h as appropriate.
4440 * nat/mips-linux-watch.c: Likewise.
4442 2014-07-29 Tom Tromey <tromey@redhat.com>
4444 * target.c (target_is_pushed): Simplify.
4446 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4450 2014-07-29 Yao Qi <yao@codesourcery.com>
4453 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4455 2014-07-28 Doug Evans <xdje42@gmail.com>
4458 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4459 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4462 2014-07-28 Will Newton <will.newton@linaro.org>
4464 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4465 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4466 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4467 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4468 (THUMB2_EABI_SYSCALL): Likewise.
4469 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4471 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4472 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4474 2014-07-27 Doug Evans <xdje42@gmail.com>
4476 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4478 2014-07-27 Doug Evans <xdje42@gmail.com>
4480 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4482 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4483 Doug Evans <xdje42@gmail.com>
4486 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4487 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4488 * configure.ac: Try to use guild to compile an scm file, if it fails
4489 then disable guile support.
4490 * configure: Regenerate.
4491 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4493 (GUILE_COMPILED_FILES): New variable.
4494 (GUILE_FILES) Update.
4495 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4496 (stamp-guile): Compile scm files.
4497 * guile/guile.c (boot_guile_support): New function.
4498 (standard_throw_args_p): New function.
4499 (print_standard_throw_error, print_throw_error): New functions.
4500 (handle_boot_error): New function.
4501 (initialize_scheme_side): Rewrite to call boot_guile_support.
4502 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4503 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4505 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4506 Doug Evans <xdje42@gmail.com>
4509 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4510 * guile/lib/gdb/support.scm: New file.
4511 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4512 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4514 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4516 (%assert-type): Ditto, and renamed to assert-type.
4517 (%exception-print-style): Delete.
4519 2014-07-26 Doug Evans <xdje42@gmail.com>
4522 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4523 * configure: Regenerate.
4524 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4526 (PYTHON_FILES): New variable.
4527 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4528 (GUILE_FILES): New variable.
4529 (stamp-python, install-python, uninstall-python): Handle empty
4531 (stamp-guile, install-guile, uninstall-guile): Ditto.
4533 2014-07-26 Doug Evans <xdje42@gmail.com>
4536 * guile/lib/gdb.scm (pretty-printers): Export.
4537 (set-pretty-printers!): Export.
4538 * guile/lib/gdb/printing.scm (gdb module): Update.
4539 (prepend-pretty-printer!, append-pretty-printer!): Update.
4540 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4541 (pretty_printer_list_var): Delete.
4542 (pretty_printer_list): New static global.
4543 (gdbscm_pretty_printers): New function.
4544 (gdbscm_set_pretty_printers_x): New function.
4545 (ppscm_find_pretty_printer_from_gdb): Update.
4546 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4547 (gdbscm_initialize_pretty_printers): Update.
4549 2014-07-26 Doug Evans <xdje42@gmail.com>
4552 * configure.ac: Add check for header gc/gc.h.
4553 Add check for function setenv.
4554 * configure: Regenerate.
4555 * config.in: Regenerate.
4556 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4558 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4560 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4561 variation in gdbarch matching.
4563 2014-07-25 Tom Tromey <tromey@redhat.com>
4565 * exec.c (using_exec_ops): Remove.
4566 (exec_close_1): Update. Remove extraneous block, reindent.
4567 (add_target_sections): Use target_is_pushed.
4569 2014-07-25 Pedro Alves <palves@redhat.com>
4571 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4572 * monitor.c (monitor_create_inferior): Likewise.
4573 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4574 * remote-sim.c (gdbsim_create_inferior): Likewise.
4575 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4576 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4577 * windows-nat.c (do_initial_windows_stuff): Likewise.
4579 2014-07-25 Pedro Alves <palves@redhat.com>
4581 * NEWS: Mention signal passing and "signal" command changes.
4582 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4584 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4586 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4587 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4588 (jump_command): Adjust clear_proceed_status call.
4589 (signal_command): Warn if other thread that are resumed have
4590 signals that will be delivered. Adjust clear_proceed_status call.
4591 (until_next_command, finish_command)
4592 (proceed_after_attach_callback, attach_command_post_wait)
4593 (attach_command): Adjust clear_proceed_status call.
4594 * infrun.c (proceed_after_vfork_done): Likewise.
4595 (proceed_after_attach_callback): Adjust comment.
4596 (clear_proceed_status_thread): Clear stop_signal if not in pass
4598 (clear_proceed_status_callback): Delete.
4599 (clear_proceed_status): New 'step' parameter. Only clear the
4600 proceed status of threads the command being prepared is about to
4602 (proceed): If passed in an explicit signal, override stop_signal
4603 with it. Don't pass the last stop signal to the thread we're
4605 (init_wait_for_inferior): Adjust clear_proceed_status call.
4606 (switch_back_to_stepped_thread): Clear the signal if it should not
4608 * infrun.h (clear_proceed_status): New 'step' parameter.
4609 (user_visible_resume_ptid): Add comment.
4610 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4611 signal is in pass state.
4612 * remote.c (append_pending_thread_resumptions): Likewise.
4613 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4615 2014-07-25 Tom Tromey <tromey@redhat.com>
4617 * target.h (target_stopped_data_address)
4618 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4621 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4623 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4625 (avr_pointer_to_address): Likewise.
4627 2014-07-24 Tom Tromey <tromey@redhat.com>
4629 * monitor.c (compile_pattern): Update.
4630 * target.h (struct target_ops) <to_shortname, to_longname,
4633 2014-07-24 Tom Tromey <tromey@redhat.com>
4635 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4636 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4637 (add_info_alias, add_com): Make "doc" const.
4638 (print_doc_line): Make "str" const.
4639 (delete_cmd): Update.
4640 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4641 (print_doc_line): Update.
4642 * cli/cli-script.c (document_command): Update.
4643 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4644 (add_com, add_info, add_info_alias): Update.
4645 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4646 * python/py-cmd.c (cmdpy_destroyer): Update.
4648 2014-07-24 Tom Tromey <tromey@redhat.com>
4650 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4651 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4652 (help_cmd_list): Constify.
4653 (lookup_cmd): Update.
4654 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4656 (help_cmd_list, apropos_cmd): Update.
4657 * cli/cli-script.c (show_user): Update.
4658 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4659 * cli/cli-setshow.h (cmd_show_list): Update.
4660 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4661 (cmd_show_list): Update.
4662 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4663 * python/py-cmd.c (cmdpy_destroyer): Update.
4665 2014-07-24 Tom Tromey <tromey@redhat.com>
4667 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4668 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4670 * command.h (deprecate_cmd): Update.
4671 * maint.c (maintenance_do_deprecate): Add casts.
4673 2014-07-24 Tom Tromey <tromey@redhat.com>
4675 * cli/cli-decode.c (help_cmd): Make parameter "const".
4676 * cli/cli-decode.h (help_cmd): Update.
4678 2014-07-24 Tom Tromey <tromey@redhat.com>
4680 * stack.c (up_silently_base, down_silently_base): Make argument
4683 2014-07-24 Tom Tromey <tromey@redhat.com>
4685 * solib.c (solib_add): Make "pattern" const.
4686 * solib.h (solib_add): Update.
4688 2014-07-24 Tom Tromey <tromey@redhat.com>
4690 * remote.c (remote_serial_open, print_packet, putpkt)
4691 (putpkt_binary): Constify.
4692 * remote.h (putpkt): Update.
4694 2014-07-24 Tom Tromey <tromey@redhat.com>
4696 * monitor.c (monitor_open): Make "args" const.
4697 * monitor.h (monitor_open): Update.
4699 2014-07-24 Tom Tromey <tromey@redhat.com>
4701 * maint.c (match_bfd_flags): Make "string" const.
4702 (print_bfd_section_info): Remove casts.
4703 (print_objfile_section_info): Make "string" const.
4705 2014-07-24 Tom Tromey <tromey@redhat.com>
4707 * inf-child.c (inf_child_open_target): Make "arg" const.
4708 * inf-child.h (inf_child_open_target): Update.
4710 2014-07-24 Tom Tromey <tromey@redhat.com>
4712 * environ.c (unset_in_environ): Make "var" const.
4713 * environ.h (unset_in_environ): Update.
4715 2014-07-24 Tom Tromey <tromey@redhat.com>
4717 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4719 (scan_filename_with_cleanup): Likewise.
4720 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4721 Make arguments const.
4722 (restore_command): Update.
4724 2014-07-24 Pedro Alves <palves@redhat.com>
4726 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4728 2014-07-24 Tom Tromey <tromey@redhat.com>
4729 Gary Benson <gbenson@redhat.com>
4731 * nat/linux-ptrace.c (additional_flags): New global.
4732 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4733 additional_flags; don't check GDBSERVER.
4734 (linux_ptrace_set_additional_flags): New function.
4735 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4737 * linux-nat.c (_initialize_linux_nat): Call
4738 linux_ptrace_set_additional_flags.
4740 2014-07-24 Tom Tromey <tromey@redhat.com>
4742 * make-target-delegates (munge_type, write_debugmethod): New
4744 (debug_names): New global.
4745 ($TARGET_DEBUG_PRINTER): New global.
4746 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4748 Write debug methods. Generate init_debug_target.
4749 * target-debug.h: New file.
4750 * target-delegates.c: Rebuild.
4751 * target.c: Include target-debug.h.
4752 (debug_target): Hoist definition.
4753 (target_kill, target_get_section_table, target_memory_map)
4754 (target_flash_erase, target_flash_done, target_detach)
4755 (target_disconnect, target_wait, target_resume)
4756 (target_pass_signals, target_program_signals, target_follow_fork)
4757 (target_mourn_inferior, target_search_memory)
4758 (target_thread_address_space, target_close)
4759 (target_find_new_threads, target_core_of_thread)
4760 (target_verify_memory, target_insert_mask_watchpoint)
4761 (target_remove_mask_watchpoint): Remove targetdebug code.
4762 (debug_to_post_attach, debug_to_prepare_to_store)
4763 (debug_to_files_info, debug_to_insert_breakpoint)
4764 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4765 (debug_to_region_ok_for_hw_watchpoint)
4766 (debug_to_can_accel_watchpoint_condition)
4767 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4768 (debug_to_watchpoint_addr_within_range)
4769 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4770 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4771 (debug_to_terminal_init, debug_to_terminal_inferior)
4772 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4773 (debug_to_terminal_save_ours, debug_to_terminal_info)
4774 (debug_to_load, debug_to_post_startup_inferior)
4775 (debug_to_insert_fork_catchpoint)
4776 (debug_to_remove_fork_catchpoint)
4777 (debug_to_insert_vfork_catchpoint)
4778 (debug_to_remove_vfork_catchpoint)
4779 (debug_to_insert_exec_catchpoint)
4780 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4781 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4782 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4783 (setup_target_debug): Call init_debug_target.
4784 * target.h (TARGET_DEBUG_PRINTER): New macro.
4785 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4786 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4788 2014-07-24 Gary Benson <gbenson@redhat.com>
4790 * exceptions.h (throw_vfatal): Renamed to...
4791 (throw_vquit): New declaration.
4792 (throw_quit): Likewise.
4793 * exceptions.c (throw_vfatal): Renamed to...
4794 (throw_vquit): New function.
4795 (throw_quit): Likewise.
4796 (throw_error): Call throw_verror rather than throw_it.
4797 * utils.h (vfatal): Removed.
4799 * utils.c (vfatal): Removed.
4801 (internal_verror): Replaced call to fatal with call to throw_quit.
4802 (quit): Replaced calls to fatal with calls to throw_quit.
4804 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4806 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4809 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4811 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4812 less than zero in conditional expression.
4814 2014-07-23 Tom Tromey <tromey@redhat.com>
4816 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4817 ($INTRO_PART): Don't match whitespace.
4818 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4820 ($METHOD): Add $METHOD_TRAILER.
4822 (scan_target_h): New sub.
4823 Change main loop not to collect state.
4824 * target-delegates.c: Rebuild.
4826 2014-07-23 Gary Benson <gbenson@redhat.com>
4828 * cp-support.c (gdb_demangle): Fix build on systems without
4831 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4833 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4834 for reference entry value target data value.
4836 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4838 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4839 value_available_contents_eq.
4841 2014-07-22 Pedro Alves <palves@redhat.com>
4843 * value.c (allocate_optimized_out_value): Don't mark value as
4846 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4848 * MAINTAINERS (Write After Approval): Update my email address.
4850 2014-07-20 Doug Evans <dje@google.com>
4853 * remote.c (putpkt_binary): Add text to error message.
4855 2014-07-20 Yao Qi <yao@codesourcery.com>
4857 * eval.c: Remove "Chill" from comments.
4858 * gdbtypes.h: Likewise.
4859 * symtab.h: Likewise.
4861 2014-07-20 Yao Qi <yao@codesourcery.com>
4863 * std-operator.def: Update comments to TERNOP_SLICE.
4865 2014-07-20 Yao Qi <yao@codesourcery.com>
4867 * std-operator.def: Remove BINOP_RANGE.
4868 * breakpoint.c (watchpoint_exp_is_const): Update.
4869 * expprint.c (dump_subexp_body_standard): Likewise.
4870 * eval.c (init_array_element): Remove dead code.
4871 (evaluate_subexp_standard): Likewise.
4873 2014-07-20 Yao Qi <yao@codesourcery.com>
4875 * std-operator.def: Remove BINOP_IN.
4876 * breakpoint.c (watchpoint_exp_is_const): Update.
4877 * eval.c (evaluate_subexp_standard): Likewise.
4878 * expprint.c (dump_subexp_body_standard): Likewise.
4880 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4882 * microblaze-tdep.c (microblaze_register_names): Add
4883 the rshr and rslr register names.
4884 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4885 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4886 Use of tdesc_numbered_register. Use of
4887 microblaze_register_g_packet_guesses. Use of
4888 tdesc_use_registers. Use of set_gdbarch_register_type.
4889 (microblaze_register_g_packet_guesses): New.
4890 * microblaze-tdep.h (microblaze_reg_num): Add
4891 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4892 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4893 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4894 * features/microblaze-core.xml: New file.
4895 * features/microblaze-stack-protect.xml: New file.
4896 * features/microblaze-with-stack-protect.c: New file.
4897 * features/microblaze-with-stack-protect.xml: New file.
4898 * features/microblaze.xml: New file.
4899 * features/microblaze.c: New file.
4900 * features/Makefile (microblaze-with-stack-protect): Add
4901 microblaze-with-stack-protect microblaze and microblaze-expedite.
4902 * regformats/microblaze-with-stack-protect.dat: New file.
4903 * regformats/microblaze.dat: New file.
4904 * doc/gdb.texinfo (MicroBlaze Features): Added.
4906 2014-07-18 Tom Tromey <tromey@redhat.com>
4908 * exec.c (exec_ops): Now static.
4909 * exec.h (exec_ops): Don't declare.
4911 2014-07-18 Tom Tromey <tromey@redhat.com>
4913 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4914 to find_target_beneath.
4915 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4916 find_target_beneath.
4917 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4919 2014-07-18 Tom Tromey <tromey@redhat.com>
4922 * utils.c (quit): Use target_supports_terminal_ours.
4923 * target.h (target_supports_terminal_ours): Declare.
4924 * target.c (target_supports_delete_record): Don't check
4925 to_delete_record against NULL.
4926 (target_supports_terminal_ours): New function.
4928 2014-07-18 Tom Tromey <tromey@redhat.com>
4931 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4932 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4933 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4934 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4935 * windows-nat.c (windows_xfer_partial): Always delegate.
4936 * record-btrace.c (record_btrace_xfer_partial): Simplify
4938 (record_btrace_fetch_registers, record_btrace_store_registers)
4939 (record_btrace_prepare_to_store, record_btrace_resume)
4940 (record_btrace_wait, record_btrace_find_new_threads)
4941 (record_btrace_thread_alive): Likewise.
4942 * procfs.c (procfs_xfer_partial): Always delegate.
4943 * corelow.c (core_xfer_partial): Always delegate.
4944 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4946 2014-07-18 Tom Tromey <tromey@redhat.com>
4948 * exec.c (exec_make_note_section): Move earlier.
4950 2014-07-17 Doug Evans <dje@google.com>
4953 * maint.c (count_symtabs_and_blocks): Handle NULL
4954 current_program_space.
4955 (report_command_stats): Check global enabled flag in addition to
4956 recorded enabled flag.
4957 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4959 2014-07-16 Pedro Alves <palves@redhat.com>
4961 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4963 2014-07-16 Tom Tromey <tromey@redhat.com>
4965 * target.h (struct target_ops) <to_delete_record>: Reformat
4968 2014-07-16 Tom Tromey <tromey@redhat.com>
4970 * target-delegates.c: Rebuild.
4972 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4974 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4975 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4976 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4977 (avr_pointer_to_address): Likewise.
4978 (avr_address_class_type_flags): New function.
4979 (avr_address_class_type_flags_to_name): Likewise.
4980 (avr_address_class_name_to_type_flags): Likewise.
4981 (avr_gdbarch_init): Set address_class_type_flags,
4982 address_class_type_flags_to_name and
4983 address_class_name_to_type_flags.
4985 2014-07-15 Pedro Alves <palves@redhat.com>
4987 * linux-nat.c (kill_callback): Save errno and work with saved
4990 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4992 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4994 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4996 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4997 breakpoint support correctly.
4999 2014-07-14 Pedro Alves <palves@redhat.com>
5001 * utils.c (prompt_for_continue): Call target_terminal_ours.
5003 2014-07-14 Pedro Alves <palves@redhat.com>
5005 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5006 catch_errors. Don't re-enable stdin or notify observers where,
5008 (fetch_inferior_event_wrapper): Delete.
5010 2014-07-14 Pedro Alves <palves@redhat.com>
5013 * top.c: Include "inf-loop.h".
5014 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5016 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5018 (gdb_readline_wrapper): Store whether the target is async, and
5021 2014-07-14 Pedro Alves <palves@redhat.com>
5024 * top.c (gdb_readline_wrapper_line): Tweak comment.
5025 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5026 the input handler callback.
5028 2014-07-14 Pedro Alves <palves@redhat.com>
5031 * main.c: Include event-top.h.
5032 (handle_command_errors): New function.
5033 (catch_command_errors, catch_command_errors_const): Use it.
5035 2014-07-14 Pedro Alves <palves@redhat.com>
5037 * exceptions.c (catch_command_errors, catch_command_errors_const):
5039 * exceptions.h (catch_command_errors_ftype)
5040 (catch_command_errors_const_ftype): Moved to main.c.
5041 (catch_command_errors, catch_command_errors_const): Delete
5043 * main.c (catch_command_errors_ftype)
5044 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5045 (catch_command_errors, catch_command_errors_const)): Moved here
5046 from exceptions.c and make static.
5048 2014-07-14 Pedro Alves <palves@redhat.com>
5050 * exceptions.c (print_any_exception): Delete.
5051 (catch_exceptions_with_msg): Use exception_print instead of
5052 print_any_exception.
5053 (catch_errors): Use exception_fprintf instead of
5054 print_any_exception.
5055 (catch_command_errors, catch_command_errors_const): Use
5056 exception_print instead of print_any_exception.
5058 2014-07-14 Pedro Alves <palves@redhat.com>
5060 * infcall.c (run_inferior_call): Set 'sync_execution' while
5061 running the inferior call.
5063 2014-07-14 Pedro Alves <palves@redhat.com>
5065 * value.c (value_contents_equal): Delete function.
5066 * value.h (value_contents_equal): Delete declaration.
5068 2014-07-14 Tom Tromey <tromey@redhat.com>
5071 * gdbtypes.c (is_dynamic_type_internal): New function, from
5073 (is_dynamic_type): Rewrite.
5074 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5075 (resolve_dynamic_struct): Likewise.
5076 (resolve_dynamic_type_internal): New function, from
5077 resolve_dynamic_type.
5078 (resolve_dynamic_type): Rewrite.
5080 2014-07-14 Tom Tromey <tromey@redhat.com>
5082 * target.c (target_require_runnable): Also check record_stratum.
5085 2014-07-11 Yao Qi <yao@codesourcery.com>
5087 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5088 thumb_instruction_restores_sp return true.
5090 2014-07-11 Yao Qi <yao@codesourcery.com>
5092 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5093 (thumb_in_function_epilogue_p): Call
5094 thumb_instruction_restores_sp.
5096 2014-07-11 Yao Qi <yao@codesourcery.com>
5098 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5100 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5102 2014-07-11 Gary Benson <gbenson@redhat.com>
5104 * amd64-linux-nat.c (gdbcore.h): Remove include.
5105 (regset.h): Likewise.
5106 (nat/linux-btrace.h): Likewise.
5107 (btrace.h): Likewise.
5108 (gdb_assert.h): Likewise.
5109 (string.h): Likewise.
5110 (sys/uio.h): Likewise.
5111 (sys/debugreg.h): Likewise.
5112 (sys/syscall.h): Likewise.
5113 (sys/procfs.h): Likewise.
5114 (sys/user.h): Likewise.
5115 (asm/ptrace.h): Likewise.
5116 (i386-nat.h): Likewise.
5117 * i386-linux-nat.c (i386-nat.h): Likewise.
5118 (regset.h): Likewise.
5119 (target.h): Likewise.
5120 (linux-nat.h): Likewise.
5121 (nat/linux-btrace.h): Likewise.
5122 (btrace.h): Likewise.
5123 (gdb_assert.h): Likewise.
5124 (string.h): Likewise.
5125 (sys/uio.h): Likewise.
5126 (sys/user.h): Likewise.
5127 (sys/procfs.h): Likewise.
5128 (sys/reg.h): Likewise.
5129 (sys/debugreg.h): Likewise.
5130 (ORIG_EAX): Remove definition.
5132 2014-07-11 Gary Benson <gbenson@redhat.com>
5134 * i386-linux-nat.h: New file.
5135 * x86-linux-nat.h: Likewise.
5136 * x86-linux-nat.c: Likewise.
5137 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5138 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5139 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5140 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5141 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5142 (PTRACE_SETREGSET): Likewise.
5143 (arch_lwp_info): Now in x86-linux-nat.c.
5144 (have_ptrace_getregset): Now in x86-linux-nat.h.
5145 (x86_linux_dr_get): Now in x86-linux-nat.c.
5146 (x86_linux_dr_set): Likewise.
5147 (x86_linux_dr_get_addr): Likewise.
5148 (x86_linux_dr_get_control): Likewise.
5149 (x86_linux_dr_get_status): Likewise.
5150 (update_debug_registers_callback): Likewise.
5151 (x86_linux_dr_set_control): Likewise.
5152 (x86_linux_dr_set_addr): Likewise.
5153 (x86_linux_prepare_to_resume): Likewise.
5154 (x86_linux_new_thread): Likewise.
5155 (x86_linux_new_fork): Likewise.
5156 (x86_linux_get_thread_area): Likewise.
5157 (super_post_startup_inferior): Likewise.
5158 (x86_linux_child_post_startup_inferior): Likewise.
5159 (AMD64_LINUX_USER64_CS): Likewise.
5160 (AMD64_LINUX_X32_DS): Likewise.
5161 (x86_linux_read_description): Likewise.
5162 (x86_linux_enable_btrace): Likewise.
5163 (x86_linux_disable_btrace): Likewise.
5164 (x86_linux_teardown_btrace): Likewise.
5165 (x86_linux_read_btrace): Likewise.
5166 (x86_linux_create_target): Likewise.
5167 (x86_linux_add_target): Likewise.
5168 * i386-linux-nat.c (x86-linux-nat.h): New include.
5169 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5170 (PTRACE_SETREGSET): Likewise.
5171 (arch_lwp_info): Now in x86-linux-nat.c.
5172 (have_ptrace_getregset): Now in x86-linux-nat.h.
5173 (x86_linux_dr_get): Now in x86-linux-nat.c.
5174 (x86_linux_dr_set): Likewise.
5175 (x86_linux_dr_get_addr): Likewise.
5176 (x86_linux_dr_get_control): Likewise.
5177 (x86_linux_dr_get_status): Likewise.
5178 (update_debug_registers_callback): Likewise.
5179 (x86_linux_dr_set_control): Likewise.
5180 (x86_linux_dr_set_addr): Likewise.
5181 (x86_linux_prepare_to_resume): Likewise.
5182 (x86_linux_new_thread): Likewise.
5183 (x86_linux_new_fork): Likewise.
5184 (x86_linux_get_thread_area): Likewise.
5185 (super_post_startup_inferior): Likewise.
5186 (x86_linux_child_post_startup_inferior): Likewise.
5187 (AMD64_LINUX_USER64_CS): Likewise.
5188 (AMD64_LINUX_X32_DS): Likewise.
5189 (x86_linux_read_description): Likewise.
5190 (x86_linux_enable_btrace): Likewise.
5191 (x86_linux_disable_btrace): Likewise.
5192 (x86_linux_teardown_btrace): Likewise.
5193 (x86_linux_read_btrace): Likewise.
5194 (x86_linux_create_target): Likewise.
5195 (x86_linux_add_target): Likewise.
5197 2014-07-11 Gary Benson <gbenson@redhat.com>
5199 * amd64-linux-nat.c: Comment and whitespace changes.
5200 * i386-linux-nat.c: Comment and whitespace changes.
5202 2014-07-11 Gary Benson <gbenson@redhat.com>
5204 * amd64-linux-nat.c (x86_linux_create_target): New function.
5205 (x86_linux_add_target): Likewise.
5206 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5207 * i386-linux-nat.c (x86_linux_create_target): New function.
5208 (x86_linux_add_target): Likewise.
5209 (_initialize_i386_linux_nat): Delegate to the above new functions.
5211 2014-07-11 Gary Benson <gbenson@redhat.com>
5213 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5214 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5215 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5216 (ps_get_thread_area): Delegate to the above.
5218 2014-07-11 Gary Benson <gbenson@redhat.com>
5220 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5221 x86_linux_read_description. All uses updated. amd64-specific
5222 code conditionalized. Conditionalized i386-specific code added.
5223 Redundant cast removed.
5224 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5225 x86_linux_read_description. All uses updated. i386-specific
5226 code conditionalized. Conditionalized amd64-specific code added.
5227 One sizeof replaced with the actual type it is describing.
5229 2014-07-11 Gary Benson <gbenson@redhat.com>
5231 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5232 x86_linux_dr_get. All uses updated.
5233 (amd64_linux_dr_set): Renamed to
5234 x86_linux_dr_set. All uses updated.
5235 (amd64_linux_dr_get_addr): Renamed to
5236 x86_linux_dr_get_addr. All uses updated.
5237 (amd64_linux_dr_get_control): Renamed to
5238 x86_linux_dr_get_control. All uses updated.
5239 (amd64_linux_dr_get_status): Renamed to
5240 x86_linux_dr_get_status. All uses updated.
5241 (amd64_linux_dr_set_control): Renamed to
5242 x86_linux_dr_set_control. All uses updated.
5243 (amd64_linux_dr_set_addr): Renamed to
5244 x86_linux_dr_set_addr. All uses updated.
5245 (amd64_linux_prepare_to_resume): Renamed to
5246 x86_linux_prepare_to_resume. All uses updated.
5247 (amd64_linux_new_thread): Renamed to
5248 x86_linux_new_thread. All uses updated.
5249 (amd64_linux_new_fork): Renamed to
5250 x86_linux_new_fork. All uses updated.
5251 (amd64_linux_child_post_startup_inferior): Renamed to
5252 x86_linux_child_post_startup_inferior. All uses updated.
5253 (amd64_linux_enable_btrace): Renamed to
5254 x86_linux_enable_btrace. All uses updated.
5255 (amd64_linux_disable_btrace): Renamed to
5256 x86_linux_disable_btrace. All uses updated.
5257 (amd64_linux_teardown_btrace): Renamed to
5258 x86_linux_teardown_btrace. All uses updated.
5259 (amd64_linux_read_btrace): Renamed to
5260 x86_linux_read_btrace. All uses updated.
5261 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5262 x86_linux_dr_get. All uses updated.
5263 (i386_linux_dr_set): Renamed to
5264 x86_linux_dr_set. All uses updated.
5265 (i386_linux_dr_get_addr): Renamed to
5266 x86_linux_dr_get_addr. All uses updated.
5267 (i386_linux_dr_get_control): Renamed to
5268 x86_linux_dr_get_control. All uses updated.
5269 (i386_linux_dr_get_status): Renamed to
5270 x86_linux_dr_get_status. All uses updated.
5271 (i386_linux_dr_set_control): Renamed to
5272 x86_linux_dr_set_control. All uses updated.
5273 (i386_linux_dr_set_addr): Renamed to
5274 x86_linux_dr_set_addr. All uses updated.
5275 (i386_linux_prepare_to_resume): Renamed to
5276 x86_linux_prepare_to_resume. All uses updated.
5277 (i386_linux_new_thread): Renamed to
5278 x86_linux_new_thread. All uses updated.
5279 (i386_linux_new_fork): Renamed to
5280 x86_linux_new_fork. All uses updated.
5281 (i386_linux_child_post_startup_inferior): Renamed to
5282 x86_linux_child_post_startup_inferior. All uses updated.
5283 (i386_linux_enable_btrace): Renamed to
5284 x86_linux_enable_btrace. All uses updated.
5285 (i386_linux_disable_btrace): Renamed to
5286 x86_linux_disable_btrace. All uses updated.
5287 (i386_linux_teardown_btrace): Renamed to
5288 x86_linux_teardown_btrace. All uses updated.
5289 (i386_linux_read_btrace): Renamed to
5290 x86_linux_read_btrace. All uses updated.
5292 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5294 * remote.c (extended_remote_post_attach): New function.
5295 (init_extended_remote_ops): Install it as to_post_attach method.
5297 2014-07-09 Pedro Alves <palves@redhat.com>
5299 * infcmd.c (attach_command_post_wait): Don't call
5300 target_terminal_inferior here.
5301 (attach_command): Call it here instead.
5303 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5305 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5307 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5308 from varobj.c, with additional checks.
5309 (c_varobj_ops): Fill in is_path_expr_parent field.
5310 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5311 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5313 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5315 (varobj_default_is_path_expr_parent): New function.
5316 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5317 (varobj_default_is_path_expr_parent): Declare new function.
5319 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5321 * infcmd.c (finish_backward): Turn internal error into normal error.
5323 2014-07-07 Pedro Alves <palves@redhat.com>
5326 * remote.c (async_handle_remote_sigint)
5327 (async_handle_remote_sigint_twice): Call
5328 gdb_call_async_signal_handler instead of
5329 mark_async_signal_handler.
5331 2014-07-07 Tom Tromey <tromey@redhat.com>
5333 * target-delegates.c: Rebuild.
5334 * target.c (target_info_record): Remove.
5335 * record.c (info_record_command): Unconditionally call
5337 * target.h (struct target_ops) <to_info_record>: Use
5338 TARGET_DEFAULT_IGNORE.
5339 (target_info_record): Remove.
5341 2014-07-07 Tom Tromey <tromey@redhat.com>
5343 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5344 TARGET_DEFAULT_NORETURN.
5345 * target.c (generic_tls_error): New function.
5346 (target_translate_tls_address): Don't search target stack.
5347 * target-delegates.c: Rebuild.
5348 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5350 * linux-thread-db.c (thread_db_get_thread_local_address):
5351 Unconditionally call beneath target.
5353 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5355 * cli/cli-logging.c (pop_output_files): Assign targerr to
5358 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5360 * MAINTAINERS (Write After Approval): Update my email address.
5362 2014-07-02 Gary Benson <gbenson@redhat.com>
5364 * proc-service.c (ps_xfer_memory): Update comment.
5365 (ps_pstop): Remove unused function.
5366 (ps_pcontinue): Likewise.
5367 (ps_lstop): Likewise.
5368 (ps_lcontinue): Likewise.
5369 (ps_lgetxregsize): Likewise.
5370 (ps_lgetxregs): Likewise.
5371 (ps_lsetxregs): Likewise.
5372 (ps_plog): Likewise.
5373 (ps_ptread): Likewise.
5374 (ps_ptwrite): Likewise.
5376 2014-07-01 Mark Wielaard <mjw@redhat.com>
5378 * dwarf2read.c (add_array_cv_type): New function.
5379 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5380 (read_tag_volatile_type): Likewise.
5382 2014-07-01 Tom Tromey <tromey@redhat.com>
5384 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5385 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5386 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5387 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5388 * command.h (cmd_cfunc_ftype): Move earlier.
5389 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5390 (add_com, add_info): Use cmd_cfunc_ftype.
5392 2014-06-30 Tom Tromey <tromey@redhat.com>
5394 * symtab.c (operator_chars): Make parameters and return type
5396 (file_matches): Make "files" const.
5397 (struct search_symbols_data) <files>: Now const.
5398 (search_symbols): Make "regexp" and "files" parameters const.
5400 (symtab_symbol_info): Remove cast.
5401 (rbreak_command): Update.
5402 * symtab.h (search_symbols): Update.
5404 2014-06-27 Yao Qi <yao@codesourcery.com>
5406 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5407 Change parameter type to 'struct thread_info *'. Caller
5409 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5411 * dummy-frame.c (struct dummy_frame_id): New.
5412 (dummy_frame_id_eq): New function.
5413 (struct dummy_frame) <id>: Change its type to 'struct
5415 (dummy_frame_push): Add parameter ptid and save it in
5417 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5419 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5421 (lookup_dummy_frame): Change parameter type to 'struct
5422 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5423 instead of frame_id_eq.
5424 (dummy_frame_pop): Add parameter ptid. Callers updated.
5425 Update comments. Compose dummy_frame_id and pass it to
5427 (dummy_frame_discard): Add parameter ptid.
5428 (dummy_frame_sniffer): Compose dummy_frame_id and call
5429 dummy_frame_id_eq instead of frame_id_eq.
5430 (fprint_dummy_frames): Print ptid.
5431 * dummy-frame.h: Remove comments.
5432 (dummy_frame_push): Add ptid in declaration.
5433 (dummy_frame_pop, dummy_frame_discard): Likewise.
5435 2014-06-26 Tom Tromey <tromey@redhat.com>
5437 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5438 * command.h (error_no_arg): Update.
5440 2014-06-26 Tom Tromey <tromey@redhat.com>
5442 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5443 (do_show_command): Make "arg" const.
5444 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5446 2014-06-26 Tom Tromey <tromey@redhat.com>
5448 * record-full.c (record_full_get_bookmark): Make "args" const.
5449 (record_full_goto_bookmark): Make "raw_bookmark" const.
5450 * record.c (record_goto): New function.
5451 (cmd_record_goto): Use it. Now static.
5452 * record.h (record_goto): Declare.
5453 (cmd_record_goto): Remove declaration.
5454 * target-delegates.c: Rebuild.
5455 * target.h (struct target_ops) <to_get_bookmark,
5456 to_goto_bookmark>: Make parameter const.
5458 2014-06-26 Tom Tromey <tromey@redhat.com>
5460 * defs.h (generic_load): Update.
5461 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5462 * monitor.c (monitor_load): Make "args" const.
5463 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5464 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5466 (mips_load): Make "file" const.
5467 * remote-sim.c (gdbsim_load): Make "args" const.
5468 * remote.c (remote_load): Make "name" const.
5469 * symfile.c (generic_load): Make "args" const.
5470 * target-delegates.c: Rebuild.
5471 * target.c (target_load): Make "arg" const.
5472 (debug_to_load): Make "args" const.
5473 * target.h (struct target_ops) <to_load>: Make parameter const.
5474 (target_load): Update.
5476 2014-06-26 Tom Tromey <tromey@redhat.com>
5479 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5480 (dwarf2_physname, read_partial_die)
5481 (guess_partial_die_structure_name, fixup_partial_die)
5482 (guess_full_die_structure_name, anonymous_struct_prefix)
5483 (dwarf2_name): Use per-BFD obstack.
5485 2014-06-26 Yao Qi <yao@codesourcery.com>
5487 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5488 dummyframe and this_id into inner block below.
5490 2014-06-26 Yao Qi <yao@codesourcery.com>
5492 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5493 with "signal_pass[0]" in the initialization of signal_pass.
5495 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5497 * record-btrace.c (record_btrace_generating_corefile)
5498 (record_btrace_prepare_to_generate_core)
5499 (record_btrace_done_generating_core): New.
5500 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5501 (record_btrace_store_registers, record_btrace_prepare_to_store):
5502 Forward request when generating a core file.
5503 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5504 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5505 to_done_generating_core.
5507 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5509 * target.h (target_ops) <to_prepare_to_generate_core>
5510 <to_done_generating_core>: New.
5511 (target_prepare_to_generate_core, target_done_generating_core): New.
5512 * target.c (target_prepare_to_generate_core)
5513 (target_done_generating_core): New.
5514 * target-delegates.c: Regenerate.
5515 * gcore.c: (write_gcore_file): Rename to ...
5516 (write_gcore_file_1): ...this.
5517 (write_gcore_file): Call target_prepare_to_generate_core
5518 and target_done_generating_core.
5520 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5522 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5523 * gcore.c (write_gcore_file): Free memory returned from
5524 make_corefile_notes.
5525 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5526 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5528 2014-06-24 Yao Qi <yao@codesourcery.com>
5530 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5531 (arm_linux_init_abi): Set skip_trampoline_code with
5532 gdbarch_skip_trampoline_code instead of
5533 find_solib_trampoline_target.
5535 2014-06-24 Yao Qi <yao@codesourcery.com>
5537 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5538 arm_skip_bx_reg returns non-zero.
5540 2014-06-24 Yao Qi <yao@codesourcery.com>
5542 * arm-tdep.c (arm_skip_bx_reg): New function.
5543 (arm_skip_stub): Call arm_skip_bx_reg.
5545 2014-06-23 Don Breazeal <donb@codesourcery.com>
5547 * MAINTAINERS: Add myself as write-after-approval maintainer.
5549 2014-06-23 Pedro Alves <palves@redhat.com>
5551 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5552 DR_CONTROL before setting DR0..DR3.
5553 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5554 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5555 bits of DR_CONTROL related to the debug register slot being
5556 disabled. If all slots are vacant, clear local slowdown as well,
5557 and assert DR_CONTROL is 0.
5559 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5561 * python/lib/gdb/command/xmethods.py
5562 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5563 current progspace only if the string "progspace" matches LOCUS_RE.
5565 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5567 Fix --with-system-readline with readline-6.3 patch 5.
5568 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5569 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5572 2014-06-20 Tom Tromey <tromey@redhat.com>
5574 * dwarf2read.c (dw2_get_real_path): Use correct type in
5576 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5578 2014-06-20 Gary Benson <gbenson@redhat.com>
5580 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5581 * common/glibc_thread_db.h: Likewise.
5582 * common/i386-cpuid.h: Likewise.
5583 * common/i386-gcc-cpuid.h: Likewise.
5584 * common/linux-btrace.h: Likewise.
5585 * common/linux-osdata.h: Likewise.
5586 * common/linux-procfs.h: Likewise.
5587 * common/linux-ptrace.h: Likewise.
5588 * common/mips-linux-watch.h: Likewise.
5589 * common/linux-btrace.c: Moved to nat.
5590 * common/linux-osdata.c: Likewise.
5591 * common/linux-procfs.c: Likewise.
5592 * common/linux-ptrace.c: Likewise.
5593 * common/mips-linux-watch.c: Likewise.
5594 * nat/gdb_thread_db.h: Moved from common.
5595 * nat/glibc_thread_db.h: Likewise.
5596 * nat/i386-cpuid.h: Likewise.
5597 * nat/i386-gcc-cpuid.h: Likewise.
5598 * nat/linux-btrace.c: Likewise.
5599 * nat/linux-btrace.h: Likewise.
5600 * nat/linux-osdata.c: Likewise.
5601 * nat/linux-osdata.h: Likewise.
5602 * nat/linux-procfs.c: Likewise.
5603 * nat/linux-procfs.h: Likewise.
5604 * nat/linux-ptrace.c: Likewise.
5605 * nat/linux-ptrace.h: Likewise.
5606 * nat/mips-linux-watch.c: Likewise.
5607 * nat/mips-linux-watch.h: Likewise.
5608 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5609 (object file files): Reordered.
5610 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5611 of glibc_thread_db.h.
5613 2014-06-20 Gary Benson <gbenson@redhat.com>
5615 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5616 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5617 (i386_dr_low): Likewise.
5618 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5619 (i386_dr_low_set_addr): Likewise.
5620 (i386_dr_low_get_addr): Likewise.
5621 (i386_dr_low_can_set_control): Likewise.
5622 (i386_dr_low_set_control): Likewise.
5623 (i386_dr_low_get_control): Likewise.
5624 (i386_dr_low_get_status): Likewise.
5625 (i386_get_debug_register_length): Likewise.
5626 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5627 (i386_dr_low): Likewise.
5628 * nat/i386-dregs.c (i386-low.h): Remove include.
5629 (i386-nat.h): Likewise.
5630 (nat/i386-dregs.h): New include.
5631 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5632 (i386_dr_low_set_addr): Likewise.
5633 (i386_dr_low_get_addr): Likewise.
5634 (i386_dr_low_can_set_control): Likewise.
5635 (i386_dr_low_set_control): Likewise.
5636 (i386_dr_low_get_control): Likewise.
5637 (i386_dr_low_get_status): Likewise.
5638 (i386_get_debug_register_length): Likewise.
5639 (debug_hw_points): Likewise.
5641 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5643 * Makefile.in (SFILES): Add d-exp.y.
5644 (YYFILES): Add d-exp.c.
5645 (YYOBJ): Add d-exp.o.
5646 (local-maintainer-clean): Delete d-exp.c.
5647 * d-exp.y: New file.
5648 * d-lang.h (d_parse): New declaration.
5649 (d_error): New declaration.
5650 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5651 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5652 PREC_ORDER operators.
5653 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5655 2014-06-19 Yao Qi <yao@codesourcery.com>
5657 * gdbthread.h (any_running): Remove the declaration.
5658 * thread.c (any_running): Remove.
5660 2014-06-19 Yao Qi <yao@codesourcery.com>
5662 * gdbthread.h (struct thread_info) <state>: Change its type to
5663 'enum thread_state'. Update comments.
5665 2014-06-19 Pedro Alves <palves@redhat.com>
5667 * gdbthread.h (ALL_THREADS): Delete.
5668 (ALL_NON_EXITED_THREADS): New macro.
5669 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5670 instead of ALL_THREADS.
5671 * infrun.c (find_thread_needs_step_over)
5672 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5673 instead of ALL_THREADS.
5674 * record-btrace.c (record_btrace_open)
5675 (record_btrace_stop_recording, record_btrace_close)
5676 (record_btrace_is_replaying, record_btrace_resume)
5677 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5678 * remote.c (append_pending_thread_resumptions): Likewise.
5679 * thread.c (thread_apply_all_command): Likewise.
5681 2014-06-19 Gary Benson <gbenson@redhat.com>
5683 * i386-nat.c (i386_stopped_by_watchpoint):
5684 Use i386_dr_stopped_by_watchpoint.
5685 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5686 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5688 2014-06-19 Gary Benson <gbenson@redhat.com>
5690 * nat/i386-dregs.c: New file.
5691 * Makefile.in (i386-dregs.o): New rule.
5692 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5693 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5694 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5695 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5696 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5697 * config/i386/go32.mh (NATDEPFILES): Likewise.
5698 * config/i386/linux.mh (NATDEPFILES): Likewise.
5699 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5700 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5701 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5702 * i386-nat.h (debug_hw_points): New declaration.
5703 * i386-nat.c (breakpoint.h): Remove include.
5704 (command.h): Likewise.
5705 (target.h): Likewise.
5706 (gdb_assert.h): Likewise.
5707 (debug_hw_points): Made nonstatic.
5708 (debug_printf): Now in i386-dregs.c.
5709 (TARGET_HAS_DR_LEN_8): Likewise.
5710 (DR_CONTROL_SHIFT): Likewise.
5711 (DR_CONTROL_SIZE): Likewise.
5712 (DR_RW_EXECUTE): Likewise.
5713 (DR_RW_WRITE): Likewise.
5714 (DR_RW_READ): Likewise.
5715 (DR_RW_IORW): Likewise.
5716 (DR_LEN_1): Likewise.
5717 (DR_LEN_2): Likewise.
5718 (DR_LEN_4): Likewise.
5719 (DR_LEN_8): Likewise.
5720 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5721 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5722 (DR_ENABLE_SIZE): Likewise.
5723 (DR_LOCAL_SLOWDOWN): Likewise.
5724 (DR_GLOBAL_SLOWDOWN): Likewise.
5725 (DR_CONTROL_RESERVED): Likewise.
5726 (I386_DR_CONTROL_MASK): Likewise.
5727 (I386_DR_VACANT): Likewise.
5728 (I386_DR_LOCAL_ENABLE): Likewise.
5729 (I386_DR_GLOBAL_ENABLE): Likewise.
5730 (I386_DR_DISABLE): Likewise.
5731 (I386_DR_SET_RW_LEN): Likewise.
5732 (I386_DR_GET_RW_LEN): Likewise.
5733 (I386_DR_WATCH_HIT): Likewise.
5734 (i386_wp_op_t): Likewise.
5735 (i386_show_dr): Likewise.
5736 (i386_length_and_rw_bits): Likewise.
5737 (i386_insert_aligned_watchpoint): Likewise.
5738 (i386_remove_aligned_watchpoint): Likewise.
5739 (i386_handle_nonaligned_watchpoint): Likewise.
5740 (i386_update_inferior_debug_regs): Likewise.
5741 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5742 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5743 (i386_region_ok_for_watchpoint):
5744 Use i386_dr_region_ok_for_watchpoint.
5745 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5747 2014-06-19 Gary Benson <gbenson@redhat.com>
5749 * i386-nat.c (i386_insert_hw_breakpoint): Use
5750 i386_insert_watchpoint.
5751 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5753 2014-06-19 Gary Benson <gbenson@redhat.com>
5755 * i386-nat.c (i386_dr_show): Renamed to
5756 i386_show_dr and made static. All uses updated.
5757 (i386_dr_length_and_rw_bits): Renamed to
5758 i386_length_and_rw_bits and made static.
5760 (i386_dr_insert_aligned_watchpoint): Renamed to
5761 i386_insert_aligned_watchpoint and made static.
5763 (i386_dr_remove_aligned_watchpoint): Renamed to
5764 i386_remove_aligned_watchpoint and made static.
5766 (i386_dr_update_inferior_debug_regs): Renamed to
5767 i386_update_inferior_debug_regs and made static.
5769 * nat/i386-dregs.h (i386_dr_show): Removed.
5770 (i386_dr_length_and_rw_bits): Likewise.
5771 (i386_dr_insert_aligned_watchpoint): Likewise.
5772 (i386_dr_remove_aligned_watchpoint): Likewise.
5773 (i386_dr_update_inferior_debug_regs): Likewise.
5775 2014-06-19 Gary Benson <gbenson@redhat.com>
5777 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5778 * configure: Regenerate.
5779 * config.in: Likewise.
5780 * main.c (signal.h): New include.
5781 (setup_alternate_signal_stack): New function.
5782 (captured_main): Call the above.
5783 * cp-support.c (signal.h): New include.
5784 (catch_demangler_crashes): New flag.
5785 (SIGJMP_BUF): New define.
5786 (SIGSETJMP): Likewise.
5787 (SIGLONGJMP): Likewise.
5788 (gdb_demangle_jmp_buf): New static global.
5789 (gdb_demangle_attempt_core_dump): Likewise.
5790 (gdb_demangle_signal_handler): New function.
5791 (gdb_demangle): If catch_demangler_crashes is set, install the
5792 above signal handler before calling bfd_demangle, and restore
5793 the original signal handler afterwards. Display the offending
5794 symbol and call demangler_warning the first time a segmentation
5796 (_initialize_cp_support): New maint set/show command.
5798 2014-06-19 Gary Benson <gbenson@redhat.com>
5800 * utils.h (resource_limit_kind): New enum.
5801 (can_dump_core): New declaration.
5802 (warn_cant_dump_core): Likewise.
5803 (dump_core): Likewise.
5804 * utils.c (dump_core): Made nonstatic. Added new
5805 parameter "limit_kind".
5806 (can_dump_core): Made nonstatic. Moved printing code to...
5807 (warn_cant_dump_core): New function.
5808 (can_dump_core_warn): Likewise.
5809 (internal_vproblem): Replace calls to can_dump_core with
5810 calls to can_dump_core_warn. Supply new argument to each.
5812 2014-06-19 Gary Benson <gbenson@redhat.com>
5814 * utils.h (demangler_vwarning): New declaration.
5815 (demangler_warning): Likewise.
5816 * utils.c (struct internal_problem)
5817 <user_settable_should_quit>: New field.
5818 <user_settable_should_dump_core>: Likewise
5819 (internal_error_problem): Add values for above new fields.
5820 (internal_warning_problem): Likewise.
5821 (demangler_warning_problem): New static global.
5822 (demangler_vwarning): New function.
5823 (demangler_warning): Likewise.
5824 (add_internal_problem_command): Selectively add commands.
5825 (_initialize_utils): New internal problem command.
5826 * maint.c (maintenance_demangler_warning): New function.
5827 (_initialize_maint_cmds): New command.
5829 2014-06-18 Tom Tromey <tromey@redhat.com>
5831 * f-valprint.c (info_common_command_for_block): Update.
5832 * symtab.h (struct general_symbol_info) <common_block>: Now
5835 2014-06-18 Tom Tromey <tromey@redhat.com>
5837 * symtab.h (struct symtab) <blockvector>: Now const.
5838 * ada-lang.c (ada_add_global_exceptions): Update.
5839 * buildsym.c (augment_type_symtab): Update.
5840 * dwarf2read.c (dw2_lookup_symbol): Update.
5841 * jit.c (finalize_symtab): Update.
5842 * jv-lang.c (add_class_symtab_symbol): Update.
5843 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5845 * objfiles.c (objfile_relocate1): Update.
5846 * psymtab.c (lookup_symbol_aux_psymtabs)
5847 (maintenance_check_psymtabs): Update.
5848 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5850 * spu-tdep.c (spu_catch_start): Update.
5851 * symmisc.c (dump_symtab_1): Update.
5852 * symtab.c (lookup_global_symbol_from_objfile)
5853 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5854 (basic_lookup_transparent_type_quick)
5855 (basic_lookup_transparent_type, find_pc_sect_symtab)
5856 (find_pc_sect_line, search_symbols): Update.
5857 * block.c (find_block_in_blockvector): Make "bl" const.
5858 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5860 (blockvector_contains_pc): Make "bv" const.
5861 (block_for_pc_sect): Update.
5862 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5863 (blockvector_contains_pc): Update.
5864 * breakpoint.c (resolve_sal_pc): Update.
5865 * inline-frame.c (block_starting_point_at): Update.
5867 2014-06-18 Tom Tromey <tromey@redhat.com>
5869 * completer.c (complete_line): Make "line_buffer" const.
5870 * completer.h (complete_line): Update.
5872 2014-06-18 Tom Tromey <tromey@redhat.com>
5874 * symtab.c (add_macro_name): Remove unneeded cast.
5876 2014-06-18 Tom Tromey <tromey@redhat.com>
5878 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5879 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5881 2014-06-18 Tom Tromey <tromey@redhat.com>
5883 * probe.c (info_probes_for_ops): Make "arg" const.
5884 * probe.h (info_probes_for_ops): Update.
5886 2014-06-18 Tom Tromey <tromey@redhat.com>
5888 * varobj.c (varobj_create): Update.
5889 * valops.c (value_of_this): Update.
5890 * tracepoint.c (add_local_symbols, scope_info): Update.
5891 * symtab.h (struct general_symbol_info) <block>: Now const.
5892 * symtab.c (skip_prologue_sal)
5893 (default_make_symbol_completion_list_break_on)
5894 (skip_prologue_using_sal): Update.
5895 * stack.h (iterate_over_block_locals)
5896 (iterate_over_block_local_vars): Update.
5897 * stack.c (print_frame_args): Update.
5898 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5900 (get_selected_block): Make return type const.
5901 * python/py-frame.c (frapy_block): Update.
5902 * python/py-block.c (gdbpy_block_for_pc): Update.
5903 * p-exp.y (%union) <bval>: Now const.
5904 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5905 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5906 * m2-exp.y (%union) <bval>: Now const.
5907 * linespec.c (get_current_search_block): Make return type const.
5908 (create_sals_line_offset, find_label_symbols): Update.
5909 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5911 (block_starting_point_at): Make "block" const.
5912 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5913 (check_exception_resume): Update.
5914 * guile/scm-frame.c (gdbscm_frame_block): Update.
5915 * guile/scm-block.c (gdbscm_lookup_block): Update.
5916 * frame.h (get_frame_block): Update.
5917 (get_selected_block): Make return type const.
5918 * frame.c (frame_id_inner): Update.
5919 * f-valprint.c (info_common_command_for_block)
5920 (info_common_command): Update.
5921 * dwarf2loc.c (dwarf2_find_location_expression)
5922 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5923 (locexpr_describe_location_piece): Update.
5924 * c-exp.y (%union) <bval>: Now const.
5925 * breakpoint.c (resolve_sal_pc): Update.
5926 * blockframe.c (get_frame_block):Make return type const.
5927 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5928 (block_innermost_frame): Update.
5929 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5930 (block_for_pc, block_for_pc_sect): Update.
5931 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5933 (block_for_pc_sect, block_for_pc): Make return type const.
5934 * ax-gdb.c (gen_expr): Update.
5935 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5936 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5937 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5938 (ada_read_var_value): Update.
5939 * ada-exp.y (struct name_info) <block>: Now const.
5941 (block_lookup): Constify.
5943 2014-06-18 Gary Benson <gbenson@redhat.com>
5945 * nat/i386-dregs.h: New file.
5946 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5947 * i386-nat.h (i386-dregs.h): New include.
5948 (DR_FIRSTADDR): Now in i386-dregs.h.
5949 (DR_LASTADDR): Likewise.
5950 (DR_NADDR): Likewise.
5951 (DR_STATUS): Likewise.
5952 (DR_CONTROL): Likewise.
5953 (i386_debug_reg_state): Likewise.
5954 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5956 2014-06-18 Don Breazeal <donb@codesourcery.com>
5958 * breakpoint.c (set_longjmp_breakpoint): Call
5959 momentary_breakpoint_from_master with additional argument.
5960 (set_longjmp_breakpoint_for_call_dummy): Call
5961 momentary_breakpoint_from_master with additional argument.
5962 (set_std_terminate_breakpoint): Call
5963 momentary_breakpoint_from_master with additional argument.
5964 (momentary_breakpoint_from_master): Add argument to function
5965 definition and use it to initialize structure member flag.
5966 (clone_momentary_breakpoint): Call
5967 momentary_breakpoint_from_master with additional argument.
5968 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5969 member flags set in momentary_breakpoint_from_master.
5971 2014-06-18 Gary Benson <gbenson@redhat.com>
5973 * i386-nat.c (i386_show_dr): Renamed to
5974 i386_dr_show and made nonstatic. All uses updated.
5975 (i386_length_and_rw_bits): Renamed to
5976 i386_dr_length_and_rw_bits and made nonstatic.
5978 (i386_insert_aligned_watchpoint): Renamed to
5979 i386_dr_insert_aligned_watchpoint and made nonstatic.
5981 (i386_remove_aligned_watchpoint): Renamed to
5982 i386_dr_remove_aligned_watchpoint and made nonstatic.
5984 (i386_update_inferior_debug_regs): Renamed to
5985 i386_dr_update_inferior_debug_regs and made nonstatic.
5988 2014-06-18 Gary Benson <gbenson@redhat.com>
5990 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5991 (i386_dr_low_can_set_control): Likewise.
5992 (i386_dr_low_set_addr): Likewise.
5993 (i386_dr_low_set_control): Likewise.
5994 (i386_dr_low_get_addr): Likewise.
5995 (i386_dr_low_get_status): Likewise.
5996 (i386_dr_low_get_control): Likewise.
5997 (i386_insert_aligned_watchpoint): Use new macros.
5998 (i386_update_inferior_debug_regs): Likewise.
5999 (i386_stopped_data_address): Likewise.
6001 2014-06-18 Gary Benson <gbenson@redhat.com>
6003 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6004 New parameter. All uses updated.
6006 2014-06-18 Gary Benson <gbenson@redhat.com>
6008 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6011 2014-06-18 Gary Benson <gbenson@redhat.com>
6013 * i386-nat.c (debug_printf): New macro.
6014 (i386_get_debug_register_length): Likewise.
6015 (TARGET_HAS_DR_LEN_8): Use above macro.
6016 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6017 and printf_unfiltered. Use phex to format values.
6019 2014-06-18 Gary Benson <gbenson@redhat.com>
6021 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6024 2014-06-18 Gary Benson <gbenson@redhat.com>
6026 * i386-nat.c: Comment changes.
6028 2014-06-18 Gary Benson <gbenson@redhat.com>
6030 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6032 2014-06-18 Gary Benson <gbenson@redhat.com>
6034 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6035 (i386_insert_aligned_watchpoint): Likewise.
6036 (i386_remove_aligned_watchpoint): Likewise.
6037 (i386_handle_nonaligned_watchpoint): Likewise.
6039 2014-06-18 Gary Benson <gbenson@redhat.com>
6041 * i386-nat.c: Whitespace changes.
6043 2014-06-17 Samuel Bronson <naesten@gmail.com>
6045 * MAINTAINERS: Update Roland McGrath's email address.
6046 Thanks to Sergio Durigan Junior for pointing out that he left
6047 Red Hat a while ago, and giving me a current address.
6049 2014-06-17 Tom Tromey <tromey@redhat.com>
6051 * utils.h (savestring): Remove declaration.
6053 2014-06-17 Tom Tromey <tromey@redhat.com>
6055 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6057 2014-06-16 Keith Seitz <keiths@redhat.com>
6060 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6061 to update the varobj if inferior_ptid is null_ptid.
6063 2014-06-16 Tom Tromey <tromey@redhat.com>
6065 * target.h (struct target_ops) <to_info_proc>: Make parameter
6067 (target_info_proc): Update.
6068 * target.c (target_info_proc): Make "args" const.
6069 * procfs.c (procfs_info_proc): Update.
6070 * linux-tdep.c (linux_info_proc): Update.
6071 (linux_core_info_proc_mappings): Make "args" const.
6072 (linux_core_info_proc): Update.
6073 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6074 * gdbarch.c: Rebuild.
6075 * gdbarch.h: Rebuild.
6076 * corelow.c (core_info_proc): Update.
6078 2014-06-16 Tom Tromey <tromey@redhat.com>
6080 * target.h (struct target_ops) <to_disconnect>: Make parameter
6082 (target_disconnect): Update.
6083 * target.c (target_disconnect): Make "args" const.
6084 * target-delegates.c: Rebuild.
6085 * remote.c (remote_disconnect): Update.
6086 * record.h (record_disconnect): Update.
6087 * record.c (record_disconnect): Update.
6088 * inf-child.c (inf_child_disconnect): Update.
6090 2014-06-16 Tom Tromey <tromey@redhat.com>
6092 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6093 * target.c (debug_to_rcmd, default_rcmd): Update.
6094 * target-delegates.c: Rebuild.
6095 * remote.c (remote_rcmd): Update.
6096 * monitor.c (monitor_rcmd): Update.
6098 2014-06-16 Pedro Alves <palves@redhat.com>
6100 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6101 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6102 have OBJF_SHARED set.
6103 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6104 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6105 instead of OBJF_USERLOADED.
6106 * objfiles.h (OBJF_SHARED): Update comment.
6107 (userloaded_objfile_contains_address_p): Rename to ...
6108 (shared_objfile_contains_address_p): ... this, and update
6110 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6112 (remove_symbol_file_command): Skip objfiles that don't have
6115 2014-06-16 Tom Tromey <tromey@redhat.com>
6117 * minsyms.h (prim_record_minimal_symbol)
6118 (prim_record_minimal_symbol_and_info): Update comments.
6120 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6122 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6123 or --without-guile, according to how GDB was built.
6125 2014-06-13 Tom Tromey <tromey@redhat.com>
6127 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6129 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6131 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6133 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6134 help_list.Pass all_commands, not -1, to help_list.
6135 * cli/cli-dump.c (dump_command, append_command)
6136 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6137 (binary_dump_command, binary_append_command): Pass all_commands,
6138 not -1, to help_list.
6139 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6141 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6143 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6145 * top.c (set_history): Pass all_commands, not -1, to help_list.
6146 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6147 all_commands, not -1, to help_list.
6148 * symfile.c (overlay_command): Pass all_commands, not -1, to
6150 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6152 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6154 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6156 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6157 not -1, to help_list.
6158 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6159 not -1, to help_list.
6160 * maint.c (maintenance_command, maintenance_info_command)
6161 (maintenance_print_command, maintenance_set_cmd): Pass
6162 all_commands, not -1, to help_list.
6163 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6165 * language.c (set_check): Pass all_commands, not -1, to help_list.
6166 * infcmd.c (unset_command): Pass all_commands, not -1, to
6168 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6170 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6172 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6174 * breakpoint.c (save_command): Pass all_commands, not -1, to
6176 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6177 all_commands, not -1, to help_list.
6179 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6181 * regcache.c (struct register_to_invalidate): New structure.
6182 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6184 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6186 2014-06-12 Yao Qi <yao@codesourcery.com>
6188 * varobj.c (varobj_get_num_children): Call
6189 varobj_is_dynamic_p.
6190 (varobj_list_children): Likewise.
6191 (varobj_update): Likewise. Update comments.
6193 2014-06-12 Yao Qi <yao@codesourcery.com>
6195 * varobj.c (varobj_pretty_printed_p): Rename to ...
6196 (varobj_is_dynamic_p): ... this. New function.
6197 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6198 (varobj_is_dynamic_p): Declare.
6199 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6200 (mi_print_value_p, varobj_update_one): Likewise.
6202 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6203 Yao Qi <yao@codesourcery.com>
6205 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6206 (varobj_get_iterator): Wrap up code for pretty-printer by
6207 "#if HAVE_PYTHON" and "#endif".
6208 (update_dynamic_varobj_children): Likewise.
6210 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6211 Yao Qi <yao@codesourcery.com>
6213 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6214 gdb_python_initialized is false. Move some code from varobj.c.
6215 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6216 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6217 (struct varobj_item): Moved to varobj-iter.h".
6218 (varobj_clear_saved_item): New function.
6219 (update_dynamic_varobj_children): Move python-related code to
6221 (free_variable): Call varobj_clear_saved_item and
6224 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6225 Yao Qi <yao@codesourcery.com>
6227 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6228 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6229 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6230 (py-varobj.o): New rule.
6231 * python/py-varobj.c: New file.
6232 * python/python-internal.h (py_varobj_get_iterator): Declare.
6233 * varobj-iter.h: New file.
6234 * varobj.c: Include "varobj-iter.h"
6235 (struct varobj) <child_iter>: Change its type from "PyObject *"
6236 to "struct varobj_iter *".
6237 <saved_item>: Likewise.
6238 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6239 [HAVE_PYTHON] (varobj_get_iterator): New function.
6240 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6241 python-specific code to python/py-varobj.c.
6242 (install_visualizer): Call varobj_iter_delete instead of
6244 * varobj.h (varobj_ensure_python_env): Declare.
6246 2014-06-12 Yao Qi <yao@codesourcery.com>
6248 * varobj.c (struct varobj_item): New structure.
6249 (create_child_with_value): Update declaration.
6250 (varobj_add_child): Replace arguments 'name' and 'value' with
6251 'item'. All callers updated.
6252 (install_dynamic_child): Likewise.
6253 (update_dynamic_varobj_children): Likewise.
6254 (varobj_add_child): Likewise.
6255 (create_child_with_value): Likewise.
6257 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6259 * NEWS: Create a new section for the next release branch.
6260 Rename the section of the current branch, now that it has
6263 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6265 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6266 * version.in: Bump version to 7.8.50.DATE-cvs.
6268 2014-06-11 Pedro Alves <palves@redhat.com>
6271 * ser-mingw.c (net_windows_socket_check_pending): New function.
6272 (net_windows_select_thread): Ignore spurious wakeups. Use
6273 net_windows_socket_check_pending.
6274 (net_windows_wait_handle): Check for pending events with
6275 ioctlsocket, through net_windows_socket_check_pending, instead of
6276 checking the socket's event.
6278 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6280 * python/python-internal.h (gdb_PyObject_GetAttrString)
6281 (gdb_PyObject_HasAttrString): New inline function definitions.
6282 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6283 char * of the second argument to PyObject_GetAttrString.
6285 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6287 * serial.c (serial_write): Fix index of character to be printed
6288 in call to serial_logchar when serial debug traces are enabled.
6290 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6292 * gdbtypes (resolve_dynamic_range): Add function description.
6294 2014-06-09 Pedro Alves <palves@redhat.com>
6296 * linux-nat.c (linux_child_follow_fork): Initialize status with
6297 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6298 inner block. Only pass the signal to PTRACE_DETACH if in pass
6301 2014-06-09 Gary Benson <gbenson@redhat.com>
6303 * common/signals.c (gdb_signal_from_host): Reorder to separate
6304 the always-available ANSI-standard signals from the signals that
6306 (do_gdb_signal_to_host): Likewise.
6307 * proc-events.c (signal_table): Likewise.
6309 2014-06-08 Hui Zhu <hui@codesourcery.com>
6311 * common/linux-ptrace.c (linux_disable_event_reporting): New
6313 * common/linux-ptrace.h (linux_disable_event_reporting): New
6315 * linux-nat.c (linux_child_follow_fork): Do a single step before
6318 2014-06-07 Keith Seitz <keiths@redhat.com>
6322 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6323 from symbol_matches_domain in symtab.c. All local callers
6324 of symbol_matches_domain updated.
6325 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6326 search STRUCT_DOMAIN.
6327 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6328 independently. standard_lookup will do that automatically.
6329 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6330 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6331 (cp_lookup_symbol_in_namespace): Likewise.
6332 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6333 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6334 may return a STRUCT_DOMAIN match.
6335 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6336 * cp-support.c: Include language.h.
6337 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6339 * psymtab.c (match_partial_symbol): Compare the requested
6340 domain with the symbol's domain directly.
6341 (lookup_partial_symbol): Likewise.
6342 * symtab.c (lookup_symbol_in_language): Explain when/why
6343 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6344 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6345 appropriate languages.
6346 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6347 and moved to ada-lang.c
6348 (lookup_block_symbol): Explain that this function only returns
6349 symbol matching the requested DOMAIN.
6350 Compare the requested domain with the symbol's domain directly.
6351 (iterate_over_symbols): Compare the requested domain with the
6352 symbol's domain directly.
6353 * symtab.h (symbol_matches_domain): Remove.
6355 2014-06-06 Doug Evans <xdje42@gmail.com>
6357 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6358 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6359 (gdbscm_guile_version_is_at_least): Declare.
6360 (gdbscm_scm_string_to_int): Declare.
6361 * guile/guile.c (gdbscm_guile_major_version): New global.
6362 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6363 (guile_datadir): New static global.
6364 (gdbscm_guile_data_directory): New function.
6365 (initialize_scheme_side): Update.
6366 (misc_guile_functions): Add guile-data-directory.
6367 (initialize_gdb_module): Fetch guile version number.
6368 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6369 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6370 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6371 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6373 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6374 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6375 * guile/scm-value.c (gdbscm_value_to_string): Only call
6376 scm_port_conversion_strategy if Guile version >= 2.0.6.
6378 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6380 * main.c (print_gdb_help): Add -q and --silent.
6382 2014-06-06 Gary Benson <gbenson@redhat.com>
6384 * common/signals.c: Remove preprocessor conditionals for
6385 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6386 SIGSEGV and SIGTERM.
6387 * proc-events.c: Likewise.
6389 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6391 * symfile.c (symfile_free_objfile): Remove restriction to
6393 * symfile-mem.c (symbol_file_add_from_memory): Call
6394 add_target_sections_of_objfile.
6396 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6398 * guile/scm-value.c (gdbscm_history_append_x): Use
6399 'vlscm_get_value_smob_arg_unsafe' instead of
6400 'vlscm_scm_to_value'.
6402 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6405 * utils.c (printchar): Don't escape at all if quoter is NUL.
6406 Update function documentation to clarify effect of parameter
6408 * remote.c (escape_buffer): Pass '\\' as the quoter to
6409 fputstrn_unfiltered.
6410 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6411 generate the output.
6412 (mi_solib_unloaded): Same.
6414 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6416 * development.sh: Delete.
6417 * Makefile.in (config.status): Adjust dependency on development.sh.
6418 * configure.ac: Adjust development.sh source call.
6419 * configure: Regenerate.
6421 2014-06-04 Doug Evans <xdje42@gmail.com>
6423 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6424 is_scheme_bkpt, spec.
6425 (bpscm_make_breakpoint_smob): Initialize new members.
6426 (gdbscm_create_breakpoint_x): Split into two ...
6427 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6428 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6429 (scheme_function breakpoint_functions): Update.
6430 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6431 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6432 register-breakpoint!.
6434 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6437 * mem-break.c (z_type_supported): Return zero if
6438 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6440 2014-06-04 Tom Tromey <tromey@redhat.com>
6442 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6443 value_from_contents_and_address_unresolved.
6444 (ada_template_to_fixed_record_type_1): Likewise.
6445 (ada_which_variant_applies): Likewise.
6446 * value.h (value_from_contents_and_address_unresolved): Declare.
6447 * value.c (value_from_contents_and_address_unresolved): New
6449 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6450 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6451 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6453 2014-06-04 Tom Tromey <tromey@redhat.com>
6455 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6457 2014-06-04 Tom Tromey <tromey@redhat.com>
6459 * procfs.c (procfs_attach): Make "args" const.
6460 * windows-nat.c (windows_attach): Make "args" const.
6461 * nto-procfs.c (procfs_attach): Make "args" const.
6462 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6463 * go32-nat.c (go32_attach): Make "args" const.
6464 * gnu-nat.c (gnu_attach): Make "args" const.
6465 * darwin-nat.c (darwin_attach): Make "args" const.
6466 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6467 * linux-nat.c (linux_nat_attach): Make "args" const.
6468 * remote.c (extended_remote_attach_1, extended_remote_attach):
6470 * target.h (struct target_ops) <to_attach>: Make "args" const.
6471 (find_default_attach): Likewise.
6472 * utils.c (parse_pid_to_attach): Make "args" const.
6473 * utils.h (parse_pid_to_attach): Update.
6475 2014-06-04 Tom Tromey <tromey@redhat.com>
6477 * target-delegates.c: Rebuild.
6478 * target.c (default_thread_address_space): New function.
6479 (target_thread_address_space): Simplify.
6480 * target.h (struct target_ops) <to_thread_address_space>: Add
6481 TARGET_DEFAULT_FUNC.
6483 2014-06-04 Doug Evans <xdje42@gmail.com>
6485 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6487 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6489 * record-btrace.c: Include event-loop.h and inf-loop.h.
6490 (record_btrace_resume_exec_dir)
6491 (record_btrace_async_inferior_event_handler)
6492 (record_btrace_handle_async_inferior_event): New.
6493 (record_btrace_open): Create async event handler.
6494 (record_btrace_close): Delete async event handler.
6495 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6496 Mark async event handler.
6497 (record_btrace_execution_direction): New.
6498 (init_record_btrace_ops): Initialize to_execution_direction.
6500 2014-06-03 Doug Evans <xdje42@gmail.com>
6502 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6503 (gdbscm_make_parameter): Ditto.
6505 2014-06-03 Doug Evans <dje@google.com>
6507 * exec.c (exec_close_1): Call clear_section_table instead of
6508 resize_section_table.
6509 (clear_section_table): New function.
6510 (resize_section_table): Make static. Rename arg num_added to
6512 * exec.h (clear_section_table): Declare.
6513 (resize_section_table): Delete.
6514 * progspace.c (release_program_space): Call clear_section_table
6515 instead of resize_section_table.
6517 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6519 * NEWS (Python Scripting): Add entry about the new xmethods
6522 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6524 * python/py-xmethods.c: New file.
6525 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6526 (objfpy_dealloc): XDECREF on the new xmethods field.
6527 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6529 (objfpy_get_xmethods): New function.
6530 (objfile_getset): New entry 'xmethods'.
6531 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6532 (pspy_dealloc): XDECREF on the new xmethods field.
6533 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6535 (pspy_get_xmethods): New function.
6536 (pspace_getset): New entry 'xmethods'.
6537 * python/python-internal.h: Add declarations for new functions.
6538 * python/python.c (_initialize_python): Invoke
6539 gdbpy_initialize_xmethods.
6540 * python/lib/gdb/__init__.py (xmethods): New
6542 * python/lib/gdb/xmethod.py: New file.
6543 * python/lib/gdb/command/xmethods.py: New file.
6545 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6547 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6548 best match method returned by find_overload_match is an xmethod.
6549 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6550 the best matching operator returned by find_overload_match is an
6552 * valops.c: #include "extension.h".
6553 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6554 Return void. The list of matching source methods is returned in
6555 "fn_list" and a vector of matching debug method workers is
6556 returned in "xm_worker_vec". Update all callers.
6557 (value_find_oload_method_list): Likewise.
6558 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6559 non-NULL, then the index of the best matching method in this
6560 vector is returned. Update all callers.
6561 (find_overload_match): Include xmethods while performing overload
6564 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6566 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6567 * extension-priv.h (struct extension_language_ops): Add the
6569 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6570 get_matching_xmethod_workers, get_xmethod_argtypes,
6571 invoke_xmethod, free_xmethod_worker,
6572 free_xmethod_worker_vec): New functions.
6573 * extension.h: #include "common/vec.h".
6574 New function declarations.
6575 (struct xmethod_worker): New struct.
6576 (VEC (xmethod_worker_ptr)): New vector type.
6577 (xmethod_worker_ptr): New typedef.
6578 (xmethod_worker_vec): Likewise.
6579 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6581 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6582 (struct builtin_type): New field "xmethod".
6583 * valarith.c (value_ptradd): Assert that the value argument is not
6585 * valops.c (value_must_coerce_to_target): Return 0 for
6586 lval_xcallable values.
6587 * value.c (struct value): New field XM_WORKER in the field
6589 (value_address, value_raw_address): Return 0 for lval_xcallable
6591 (set_value_address): Assert that the value is not an
6593 (value_free): Free the associated xmethod worker when freeing
6594 lval_xcallable values.
6595 (set_value_component_location): Assert that the WHOLE value is not
6597 (value_of_xmethod, call_xmethod): New functions.
6598 * value.h: Declare "struct xmethod_worker".
6599 Declare new functions value_of_xmethod, call_xmethod.
6601 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6602 Pedro Alves <palves@redhat.com>
6604 PR breakpoints/17000
6605 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6606 New function, extracted from software_breakpoint_inserted_here_p.
6607 (software_breakpoint_inserted_here_p): Replace factored out code
6608 by call to find_non_raw_software_breakpoint_inserted_here.
6609 (bp_target_info_copy_insertion_state): New function.
6610 (bkpt_insert_location): Handle the case of a single-step
6611 breakpoint already inserted at the same address.
6612 (bkpt_remove_location): Handle the case of a single-step
6613 breakpoint still inserted at the same address.
6614 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6615 breakpoint already inserted at the same address.
6616 (deprecated_remove_raw_breakpoint): Handle the case of a
6617 non-raw breakpoint still inserted at the same address.
6618 (find_single_step_breakpoint): New function, extracted from
6619 single_step_breakpoint_inserted_here_p.
6620 (find_single_step_breakpoint): New function,
6621 factored out from single_step_breakpoint_inserted_here_p.
6622 (single_step_breakpoint_inserted_here_p): Reimplement.
6624 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6626 Pushed by Joel Brobecker <brobecker@adacore.com>
6627 * source.c (show_substitute_path_command): Fix display of matching
6630 2014-06-03 Gary Benson <gbenson@redhat.com>
6632 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6634 2014-06-02 Doug Evans <xdje42@gmail.com>
6636 Add parameter support for Guile.
6637 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6638 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6639 (scm-param.o): New rule.
6640 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6641 (gdbscm_misc_error): Declare.
6642 (gdbscm_canonicalize_command_name): Declare.
6643 (gdbscm_scm_to_host_string): Declare.
6644 (gdbscm_scm_from_host_string): Declare.
6645 (gdbscm_initialize_parameters): Declare.
6646 * guile/guile.c (initialize_gdb_module): Call
6647 gdbscm_initialize_parameters.
6648 * guile/lib/gdb.scm: Export parameter symbols.
6649 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6650 cmdscm_canonicalize_name and made public. All callers updated.
6651 * guile/scm-exception.c (gdbscm_misc_error): New function.
6652 * guile/scm-param.c: New file.
6653 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6654 (gdbscm_scm_to_host_string): New function.
6655 (gdbscm_scm_from_host_string): New function.
6656 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6658 2014-06-02 Doug Evans <xdje42@gmail.com>
6660 Add command support for Guile.
6661 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6662 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6663 (scm-cmd.o): New rule.
6664 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6665 (gdbscm_user_error_p): Declare.
6666 (gdbscm_parse_command_name): Declare.
6667 (gdbscm_valid_command_class_p): Declare.
6668 (gdbscm_initialize_commands): Declare.
6669 * guile/guile.c (initialize_gdb_module): Call
6670 gdbscm_initialize_commands.
6671 * guile/lib/gdb.scm: Export command symbols.
6672 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6673 (throw-user-error): New function.
6674 * guile/scm-cmd.c: New file.
6675 * guile/scm-exception.c (user_error_symbol): New static global.
6676 (gdbscm_user_error_p): New function.
6677 (gdbscm_initialize_exceptions): Set user_error_symbol.
6678 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6680 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6682 * top.c (command_loop): Handle comments here...
6683 (command_line_input): ... not here.
6685 2014-06-02 Doug Evans <xdje42@gmail.com>
6687 Add progspace support for Guile.
6688 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6689 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6690 (scm-progspace.o): New rule.
6691 * guile/guile-internal.h (pspace_smob): New typedef.
6692 (psscm_pspace_smob_pretty_printers): Declare.
6693 (psscm_pspace_smob_from_pspace): Declare.
6694 (psscm_scm_from_pspace): Declare.
6695 * guile/guile.c (initialize_gdb_module): Call
6696 gdbscm_initialize_pspaces.
6697 * guile/lib/gdb.scm: Export progspace symbols.
6698 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6700 (append-pretty-printer!): Ditto.
6701 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6703 * guile/scm-progspace.c: New file.
6705 2014-06-03 Alan Modra <amodra@gmail.com>
6707 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6708 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6710 2014-06-02 Doug Evans <dje@google.com>
6712 Add support for skeletonless type units.
6713 * dwarf2read.c (struct dwarf2_per_objfile): New member
6714 n_allocated_type_units.
6715 (struct dwarf2_per_objfile) <tu_stats>: New member
6716 nr_all_type_units_reallocs.
6717 (create_signatured_type_table_from_index): Initialize
6718 n_allocated_type_units
6719 (create_all_type_units): Ditto.
6720 (add_type_unit): Move up in file. New arg slot.
6721 All callers updated. Increase space for all_type_units more
6723 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6724 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6725 (lookup_dwp_signatured_type): Ditto.
6726 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6727 All callers updated.
6728 (build_type_psymtabs_1): Leave type_unit_groups as
6729 NULL if no TUs present.
6730 (print_tu_stats): New function.
6731 (process_skeletonless_type_unit): New function.
6732 (process_dwo_file_for_skeletonless_type_units): New
6734 (process_skeletonless_type_units): New function.
6735 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6736 Call print tu_stats if debugging enabled.
6738 2014-06-02 Pedro Alves <palves@redhat.com>
6740 * breakpoint.c (build_target_command_list): Don't build a command
6741 list if we have any duplicate location that isn't a dprintf.
6743 2014-06-02 Pedro Alves <palves@redhat.com>
6745 * breakpoint.c (dprintf_breakpoint_hit): New function.
6746 (initialize_breakpoint_ops): Install it as dprintf's
6747 breakpoint_hit method.
6749 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6751 * source.c (substitute_path_rule_matches): Simplify using
6752 filename_ncmp instead of FILENAME_CMP.
6754 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6756 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6758 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6760 * configure.ac: When Guile is available, check for the
6761 availability of 'scm_new_smob'.
6762 * configure, config.h.in: Regenerate.
6763 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6766 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6768 * frame.c (struct frame_info): Add stop_string field.
6769 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6770 (get_prev_frame_always): Old content moved into
6771 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6772 TRY_CATCH, handle MEMORY_ERROR exceptions.
6773 (frame_stop_reason_string): New function definition.
6774 * frame.h (unwind_stop_reason_to_string): Extend comment to
6775 mention frame_stop_reason_string.
6776 (frame_stop_reason_string): New function declaration.
6777 * stack.c (frame_info): Switch to frame_stop_reason_string.
6778 (backtrace_command_1): Switch to frame_stop_reason_string.
6779 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6780 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6781 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6783 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6785 * frame.c (frame_stop_reason_string): Rename to ...
6786 (unwind_stop_reason_to_string): this.
6787 * frame.h (frame_stop_reason_string): Rename to ...
6788 (unwind_stop_reason_to_string): this.
6789 * stack.c (frame_info): Update call to frame_stop_reason_string.
6790 (backtrace_command_1): Likewise.
6791 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6792 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6794 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6796 * frame.c (remove_prev_frame): New function.
6797 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6800 2014-05-29 Pedro Alves <palves@redhat.com>
6802 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6803 and make it const. When a single-step decays to a continue,
6804 clear 'step', not 'hw_step'. Pass whether the caller wanted
6805 to step to user_visible_resume_ptid, not what we ask the
6808 2014-05-29 Pedro Alves <palves@redhat.com>
6810 * infrun.c (process_event_stop_test, handle_step_into_function)
6811 (handle_step_into_function_backward): Adjust.
6812 Don't set the even thread's stop_step and call stop_waiting before
6813 calling end_stepping_range. Instead do that ...
6814 (end_stepping_range): ... here. Take an ecs pointer parameter.
6816 2014-05-29 Pedro Alves <palves@redhat.com>
6818 * infrun.c (stop_stepping): Rename to ...
6819 (stop_waiting): ... this.
6820 (proceed): Update comment.
6821 (process_event_stop_test, handle_inferior_event)
6822 (handle_signal_stop, handle_step_into_function)
6823 (handle_step_into_function_backward): Update.
6825 2014-05-29 Pedro Alves <palves@redhat.com>
6827 * infcall.c (run_inferior_call): Don't check whether the current
6828 thread is running after the proceed call.
6830 2014-05-29 Pedro Alves <palves@redhat.com>
6831 Tom Tromey <tromey@redhat.com>
6833 * NEWS: Mention "maint set target-async", "set mi-async", and that
6834 background execution commands are now always available.
6835 * target.h (target_async_permitted): Update comment.
6836 * target.c (target_async_permitted, target_async_permitted_1):
6838 (set_target_async_command): Rename to ...
6839 (maint_set_target_async_command): ... this.
6840 (show_target_async_command): Rename to ...
6841 (maint_show_target_async_command): ... this.
6842 (_initialize_target): Adjust.
6843 * infcmd.c (prepare_execution_command): Make extern.
6844 * inferior.h (prepare_execution_command): Declare.
6845 * infrun.c (set_observer_mode): Leave target async alone.
6846 * mi/mi-interp.c (mi_interpreter_init): Install
6847 mi_on_sync_execution_done as sync_execution_done observer.
6848 (mi_on_sync_execution_done): New function.
6849 (mi_execute_command_input_handler): Don't print the prompt if we
6850 just started a synchronous command with an async target.
6851 (mi_on_resume): Check sync_execution before printing prompt.
6852 * mi/mi-main.h (mi_async_p): Declare.
6853 * mi/mi-main.c: Include gdbcmd.h.
6854 (mi_async_p): New function.
6855 (mi_async, mi_async_1): New globals.
6856 (set_mi_async_command, show_mi_async_command, mi_async): New
6858 (exec_continue): Call prepare_execution_command.
6859 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6860 (mi_execute_async_cli_command): Use mi_async_p.
6861 (_initialize_mi_main): Install "set mi-async". Make
6862 "target-async" a deprecated alias.
6864 2014-05-29 Pedro Alves <palves@redhat.com>
6866 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6867 (_initialize_cli_interp): Adjust.
6868 * event-loop.c: Include "observer.h".
6869 (start_event_loop): Notify 'command_error' observers instead of
6870 calling display_gdb_prompt. Remove FIXME comment.
6871 * event-top.c (display_gdb_prompt): Remove call into the
6873 * inf-loop.c: Include "observer.h".
6874 (inferior_event_handler): Notify 'command_error' observers instead
6875 of calling display_gdb_prompt.
6876 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6877 observers instead of calling display_gdb_prompt.
6878 * interps.c (interp_set): Don't call display_gdb_prompt.
6879 (current_interp_display_prompt_p): Delete.
6880 * interps.h (interp_prompt_p): Delete declaration.
6881 (interp_prompt_p_ftype): Delete.
6882 (struct interp_procs) <prompt_proc_p>: Delete field.
6883 (current_interp_display_prompt_p): Delete declaration.
6884 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6885 (_initialize_mi_interp): Adjust.
6886 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6887 'command_error' observers.
6888 (tui_on_sync_execution_done, tui_on_command_error): New
6890 (tui_display_prompt_p): Delete.
6891 (_initialize_tui_interp): Adjust.
6893 2014-05-29 Pedro Alves <palves@redhat.com>
6896 * cli/cli-interp.c: Include infrun.h and observer.h.
6897 (cli_uiout, cli_interp): New globals.
6898 (cli_on_signal_received, cli_on_end_stepping_range)
6899 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6901 (cli_interpreter_init): Install them as 'end_stepping_range',
6902 'signal_received' 'signal_exited', 'exited' and 'no_history'
6904 (_initialize_cli_interp): Remove cli_interp local.
6905 * infrun.c (handle_inferior_event): Call the several stop reason
6906 observers instead of printing the stop reason directly.
6907 (end_stepping_range): New function.
6908 (print_end_stepping_range_reason, print_signal_exited_reason)
6909 (print_exited_reason, print_signal_received_reason)
6910 (print_no_history_reason): Make static, and add an uiout
6911 parameter. Print to that instead of to CURRENT_UIOUT.
6912 * infrun.h (print_end_stepping_range_reason)
6913 (print_signal_exited_reason, print_exited_reason)
6914 (print_signal_received_reason print_no_history_reason): New
6916 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6918 <cli_uiout>: New field.
6919 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6920 uiout for CLI output. Install 'signal_received',
6921 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6923 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6924 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6925 (mi_on_no_history): New functions.
6926 (ui_out_free_cleanup): Delete function.
6927 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6928 instead use the one already stored in the MI interpreter data.
6929 (mi_ui_out): Adjust.
6930 * tui/tui-interp.c: Include infrun.h and observer.h.
6931 (tui_interp): New global.
6932 (tui_on_signal_received, tui_on_end_stepping_range)
6933 (tui_on_signal_exited, tui_on_exited)
6934 (tui_on_no_history): New functions.
6935 (tui_init): Install them as 'end_stepping_range',
6936 'signal_received' 'signal_exited', 'exited' and 'no_history'
6938 (_initialize_tui_interp): Delete tui_interp local.
6940 2014-05-29 Pedro Alves <palves@redhat.com>
6943 * linux-nat.c (linux_nat_resume_callback): Rename the second
6944 parameter to 'except'. Skip LP if it points to EXCEPT.
6945 (linux_nat_resume): Don't mark the event lwp as not stopped
6946 before resuming sibling lwps. Instead ask
6947 linux_nat_resume_callback to skip the event lwp. Mark it as not
6948 stopped after actually resuming it.
6949 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6951 (wait_lwp): Mark the lwp as stopped here.
6952 (stop_wait_callback): Mark the lwp as not stopped right after
6953 resuming it. Don't mark lwps as stopped here.
6954 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6955 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6957 2014-05-29 Pedro Alves <palves@redhat.com>
6960 * infrun.c (resume): Determine how much to resume depending on
6961 whether the caller wanted a step, not whether we can hardware step
6962 the target. Mark all threads that we intend to run as running,
6963 unless we're calling an inferior function.
6964 (normal_stop): If the thread is running an infcall, don't finish
6966 * target.c (target_resume): Don't mark threads as running here.
6968 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6970 * serial.c (_initialize_serial): Remove support for
6971 the "set remotebaud" and "show remotebaud" commands.
6972 * NEWS: Add entry documenting the removal of that command.
6974 2014-05-28 Yao Qi <yao@codesourcery.com>
6976 * charset.c: Fix typo in comments.
6978 2014-05-27 Gary Benson <gbenson@redhat.com>
6980 * utils.c (internal_vproblem): Prompt for a bug report.
6982 2014-05-26 Andy Wingo <wingo@igalia.com>
6984 * guile/scm-arch.c (arscm_mark_arch_smob):
6985 * guile/scm-block.c (bkscm_mark_block_smob)
6986 (bkscm_mark_block_syms_progress_smob):
6987 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6988 * guile/scm-exception.c (exscm_mark_exception_smob):
6989 * guile/scm-frame.c (frscm_mark_frame_smob):
6990 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6991 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6992 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6993 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6994 (ppscm_mark_pretty_printer_worker_smob):
6995 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6996 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6997 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6998 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7000 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7003 2014-05-26 Andy Wingo <wingo@igalia.com>
7004 Doug Evans <xdje42@gmail.com>
7006 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7007 empty_base_class. All uses updated.
7008 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7009 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7011 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7012 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7013 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7014 (gdbscm_gsmob_has_property_p, add_property_name)
7015 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7016 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7017 (gdb-object-has-property?, gdb-object-properties): Remove.
7018 (gdb-object-kind): Renamed from gsmob-kind.
7020 2014-05-26 Andy Wingo <wingo@igalia.com>
7022 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7023 * configure: Regenerate.
7025 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7027 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7029 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7031 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7032 (replay_memory_access_read_only, replay_memory_access_read_write)
7033 (replay_memory_access_types, replay_memory_access)
7034 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7035 (cmd_set_record_btrace, cmd_show_record_btrace)
7036 (cmd_show_replay_memory_access): New.
7037 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7038 (record_btrace_remove_breakpoint): Replace
7039 record_btrace_allow_memory_access with replay_memory_access.
7040 (_initialize_record_btrace): Add commands.
7041 * NEWS: Announce it.
7043 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7045 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7047 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7049 * MAINTAINERS (Write After Approval): Move self back from
7052 2014-05-22 Pedro Alves <palves@redhat.com>
7054 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7055 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7056 (disable_randomization, enum exec_direction_kind)
7057 (execution_direction, stop_registers, start_remote)
7058 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7059 (wait_for_inferior, normal_stop, get_last_target_status)
7060 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7061 (insert_step_resume_breakpoint_at_sal)
7062 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7063 (set_step_info, print_stop_event, signal_stop_state)
7064 (signal_print_state, signal_pass_state, signal_stop_update)
7065 (signal_print_update, signal_pass_update)
7066 (update_signals_program_target, clear_exit_convenience_vars)
7067 (displaced_step_dump_bytes, update_observer_mode)
7068 (signal_catch_update, gdb_signal_from_command): Move
7070 * infrun.h: ... to this new file.
7071 * amd64-tdep.c: Include infrun.h.
7072 * annotate.c: Include infrun.h.
7073 * arch-utils.c: Include infrun.h.
7074 * arm-linux-tdep.c: Include infrun.h.
7075 * arm-tdep.c: Include infrun.h.
7076 * break-catch-sig.c: Include infrun.h.
7077 * breakpoint.c: Include infrun.h.
7078 * common/agent.c: Include infrun.h instead of inferior.h.
7079 * corelow.c: Include infrun.h.
7080 * event-top.c: Include infrun.h.
7081 * go32-nat.c: Include infrun.h.
7082 * i386-tdep.c: Include infrun.h.
7083 * inf-loop.c: Include infrun.h.
7084 * infcall.c: Include infrun.h.
7085 * infcmd.c: Include infrun.h.
7086 * infrun.c: Include infrun.h.
7087 * linux-fork.c: Include infrun.h.
7088 * linux-nat.c: Include infrun.h.
7089 * linux-thread-db.c: Include infrun.h.
7090 * monitor.c: Include infrun.h.
7091 * nto-tdep.c: Include infrun.h.
7092 * procfs.c: Include infrun.h.
7093 * record-btrace.c: Include infrun.h.
7094 * record-full.c: Include infrun.h.
7095 * remote-m32r-sdi.c: Include infrun.h.
7096 * remote-mips.c: Include infrun.h.
7097 * remote-notif.c: Include infrun.h.
7098 * remote-sim.c: Include infrun.h.
7099 * remote.c: Include infrun.h.
7100 * reverse.c: Include infrun.h.
7101 * rs6000-tdep.c: Include infrun.h.
7102 * s390-linux-tdep.c: Include infrun.h.
7103 * solib-irix.c: Include infrun.h.
7104 * solib-osf.c: Include infrun.h.
7105 * solib-svr4.c: Include infrun.h.
7106 * target.c: Include infrun.h.
7107 * top.c: Include infrun.h.
7108 * windows-nat.c: Include infrun.h.
7109 * mi/mi-interp.c: Include infrun.h.
7110 * mi/mi-main.c: Include infrun.h.
7111 * python/py-threadevent.c: Include infrun.h.
7113 2014-05-22 Pedro Alves <palves@redhat.com>
7115 * infrun.c (handle_inferior_event): Store the exit code for
7116 --return-child-result here, instead of ...
7117 (print_exited_reason): ... here.
7119 2014-05-21 Pedro Alves <palves@redhat.com>
7122 * gdbthread.h (struct thread_control_state): New field
7124 * infrun.c (follow_fork): Copy the new thread control field to the
7126 (clear_proceed_status_thread): Clear the new thread control field.
7127 (proceed): Set the new thread control field.
7128 * interps.h (command_interp): Declare.
7129 * interps.c (command_interpreter): New global.
7130 (command_interp): New function.
7131 (interp_exec): Set `command_interpreter' while here.
7132 * cli-out.c (cli_uiout_dtor): New function.
7133 (cli_ui_out_impl): Install it.
7134 * mi/mi-interp.c: Include cli-out.h.
7135 (mi_cmd_interpreter_exec): Add comment.
7136 (restore_current_uiout_cleanup): New function.
7137 (ui_out_free_cleanup): New function.
7138 (mi_on_normal_stop): If finishing an execution command started by
7139 a CLI command, or any kind of breakpoint-like event triggered,
7140 print the stop event to the output (CLI) stream.
7141 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7143 2014-05-21 Pedro Alves <palves@redhat.com>
7145 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7146 current source line having changed.
7147 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7148 * infrun.c (normal_stop): Adjust call to
7149 set_current_sal_from_frame.
7150 * source.c (clear_lines_listed_range): New function.
7151 (set_current_source_symtab_and_line, identify_source_line): Clear
7152 the lines listed range.
7153 (line_info): Handle the first "info line" after the current source
7154 line having changed.
7155 * stack.c (print_stack_frame): Remove center handling.
7156 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7159 2014-05-21 Pedro Alves <palves@redhat.com>
7161 * inf-child.c (inf_child_mourn_inferior): New function.
7162 * inf-child.h (inf_child_mourn_inferior): New declaration.
7163 * darwin-nat.c (darwin_mourn_inferior): Use
7164 inf_child_mourn_inferior.
7165 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7166 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7167 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7168 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7169 * windows-nat.c (windows_mourn_inferior): Likewise.
7171 2014-05-21 Doug Evans <xdje42@gmail.com>
7173 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7175 2014-05-21 Doug Evans <xdje42@gmail.com>
7177 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7178 (gdbscm_out_of_range_error): Ditto.
7179 (gdbscm_memory_error): Ditto.
7180 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7181 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7182 (gdbscm_out_of_range_error): Update.
7183 (gdbscm_memory_error): Update.
7184 (gdbscm_scm_to_target_string_unsafe): Delete.
7186 2014-05-21 Pedro Alves <palves@redhat.com>
7188 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7190 (inf_child_open_target): New function.
7191 (inf_child_open): Use inf_child_open_target to push the target
7192 instead of erroring out.
7193 (inf_child_disconnect, inf_child_close)
7194 (inf_child_maybe_unpush_target): New functions.
7195 (inf_child_target): Install inf_child_disconnect and
7196 inf_child_close. Store a pointer to the returned object.
7197 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7199 * target.c (auto_connect_native_target): New global.
7200 (show_default_run_target): New function.
7201 (find_default_run_target): Return NULL if automatically connecting
7202 to the native target is disabled.
7203 (_initialize_target): Install set/show auto-connect-native-target.
7204 * NEWS: Mention "set auto-connect-native-target", and "target
7206 * linux-nat.c (super_close): New global.
7207 (linux_nat_close): Call super_close.
7208 (linux_nat_add_target): Store a pointer to the base class's
7210 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7211 inf_child_maybe_unpush.
7212 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7214 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7215 the inferior. Use inf_child_maybe_unpush_target.
7216 (inf_ttrace_attach): Don't push the target if it is already
7218 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7219 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7220 after mourning the inferior. Use inf_child_maybe_unpush_target.
7221 (darwin_attach_pid): Don't push the target if it is already
7223 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7224 mourning the inferior. Use inf_child_maybe_unpush_target.
7225 (gnu_detach): Use inf_child_maybe_unpush_target.
7226 * go32-nat.c (go32_create_inferior): Don't push the target if it
7228 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7229 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7230 (procfs_open): Rename to ...
7231 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7232 comments. Can target_preopen before changing node. Call
7233 inf_child_open_target to push the target explicitly.
7234 (procfs_attach): Don't push the target if it is already pushed.
7235 (procfs_detach): Use inf_child_maybe_unpush_target.
7236 (procfs_create_inferior): Don't push the target if it is already
7238 (nto_native_ops): New global.
7239 (procfs_open): Reimplement.
7240 (procfs_native_open): New function.
7241 (init_procfs_targets): Install procfs_native_open as to_open of
7242 "target native". Store a pointer to the "native" target in
7244 * procfs.c (procfs_attach): Don't push the target if it is already
7246 (procfs_detach): Use inf_child_maybe_unpush_target.
7247 (procfs_mourn_inferior): Only unpush the target after mourning the
7248 inferior. Use inf_child_maybe_unpush_target.
7249 (procfs_init_inferior): Don't push the target if it is already
7251 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7252 if it is already pushed.
7254 2014-05-21 Pedro Alves <palves@redhat.com>
7256 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7257 and "procfs" targets are now called "native" instead.
7259 2014-05-21 Pedro Alves <palves@redhat.com>
7261 * go32-nat.c (go32_open): Delete.
7262 (go32_target): Don't override the to_open method.
7264 2014-05-21 Pedro Alves <palves@redhat.com>
7266 * nto-procfs.c (procfs_can_run): New function.
7267 (nto_procfs_ops): New global.
7268 (init_procfs_targets): New, based on procfs_target. Install
7269 "target native" in addition to "target procfs".
7270 (_initialize_procfs): Call init_procfs_targets instead of adding
7273 2014-05-21 Pedro Alves <palves@redhat.com>
7275 * windows-nat.c (windows_target): Don't override to_shortname,
7276 to_longname or to_doc.
7278 2014-05-21 Pedro Alves <palves@redhat.com>
7280 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7283 2014-05-21 Pedro Alves <palves@redhat.com>
7285 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7286 to_shortname, to_longname or to_doc.
7288 2014-05-21 Pedro Alves <palves@redhat.com>
7290 * go32-nat.c (go32_target): Don't override to_shortname,
7291 to_longname or to_doc.
7293 2014-05-21 Pedro Alves <palves@redhat.com>
7295 * inf-child.c (inf_child_open): Remove mention of "child".
7296 (inf_child_target): Rename target to "native" instead of "child".
7298 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7300 * Makefile.in (SFILES): Delete "regset.c".
7301 (COMMON_OBS): Delete "regset.o".
7303 * regset.h (regset_alloc): Delete prototype.
7305 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7307 * sparc-linux-tdep.c (sparc32_linux_gregset)
7308 (sparc32_linux_fpregset): New static regset structures.
7309 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7310 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7312 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7313 (sparc64_linux_fpregset): New static regset structures.
7314 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7315 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7316 New static regset structures.
7317 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7318 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7319 New static regset structures.
7320 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7321 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7322 New static regset structures.
7323 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7324 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7325 New static regset structures.
7326 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7328 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7330 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7331 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7332 register maps ("regmaps") from "*regset" to "*regmap". Do this
7333 for all regmap types and variables.
7334 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7335 (sparc32_linux_supply_core_gregset)
7336 (sparc32_linux_collect_core_gregset)
7337 (sparc32_linux_supply_core_fpregset)
7338 (sparc32_linux_collect_core_fpregset): Likewise.
7339 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7340 (sparc_gregmap, sparc_fpregmap): ... these.
7341 (sparc_supply_gregset, sparc_collect_gregset)
7342 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7343 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7344 (_initialize_sparc_nat): Rename regmaps.
7345 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7346 (sparc_gregmap, sparc_fpregmap): ... these.
7347 (sparc_supply_gregset, sparc_collect_gregset)
7348 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7349 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7351 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7352 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7354 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7356 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7357 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7358 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7360 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7361 (sparc32_bsd_fpregset): Rename to...
7362 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7363 (sparc32_bsd_fpregmap): ... these.
7364 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7365 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7366 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7367 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7368 (struct sparc_gregmap, struct sparc_fpregmap)
7369 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7370 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7371 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7372 (sparc32_supply_regset, sparc32_collect_gregset)
7373 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7375 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7376 (sparc64_linux_ptrace_gregmap): ... this.
7377 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7378 (_initialize_sparc64_linux_nat): Rename regmaps.
7379 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7380 (sparc64_linux_core_gregmap): ... this.
7381 (sparc64_linux_supply_core_gregset)
7382 (sparc64_linux_collect_core_gregset)
7383 (sparc64_linux_supply_core_fpregset)
7384 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7385 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7386 (sparc64_sol2_fpregset): Rename to...
7387 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7388 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7389 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7391 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7392 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7393 (sparc64_bsd_fpregset): Rename to...
7394 (struct sparc_gregmap, sparc64_sol2_gregmap)
7395 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7396 (sparc64_bsd_fpregmap): ... these.
7397 (sparc64_supply_gregset, sparc64_collect_gregset)
7398 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7400 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7401 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7402 (sparc64fbsd_gregmap): ... this.
7403 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7404 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7406 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7407 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7408 (sparc64nbsd_collect_fpregset): Likewise.
7409 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7410 (sparc64nbsd_gregmap): ... this.
7411 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7413 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7414 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7415 (sparc64obsd_gregmap): ... this.
7416 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7418 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7419 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7420 (sparc32nbsd_gregmap): ... this.
7421 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7424 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7426 * score-tdep.c (score7_linux_gregset): New static regset
7428 (score7_linux_regset_from_core_section): Remove dynamic regset
7430 (score_gdbarch_init): Drop allocation of tdep structure.
7431 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7433 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7435 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7437 (am33_regset_from_core_section): Remove dynamic regset
7440 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7442 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7443 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7445 (mips_linux_regset_from_core_section): Remove dynamic regset
7447 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7448 'gregset64', 'fpregset', and 'fpregset64'.
7449 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7450 deleted tdep fields.
7452 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7454 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7456 (amd64_regset_from_core_section): Remove dynamic regset
7458 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7460 (amd64obsd_regset_from_core_section): Remove dynamic regset
7462 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7464 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7465 x86-common regset supply function.
7466 * i386-tdep.c (i386_collect_gregset): Make static.
7467 (i386_gregset): New global regset structure.
7468 (i386_fpregset, i386_xstateregset): New static regset structures.
7469 (i386_regset_from_core_section): Remove dynamic regset
7471 (i386_gdbarch_init): Remove initialization of tdep fields
7472 'gregset', 'fpregset', and 'xstateregset'.
7473 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7474 'fpregset', and 'xstateregset'.
7475 (i386_collect_gregset): Remove prototype.
7476 (i386_gregset): New declaration.
7477 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7479 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7482 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7484 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7485 (arm_linux_vfpregset): New static regset structures.
7486 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7488 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7489 and 'vfpregset' fields.
7491 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7493 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7494 (aarch64_linux_fpregset): New static regset structures.
7495 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7496 of regset structures.
7497 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7500 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7502 * regset.h (struct regset): Remove gdbarch field.
7503 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7504 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7505 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7507 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7508 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7509 (ppc32_linux_vsxregset): Likewise.
7510 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7511 via the regcache instead of the regset.
7512 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7513 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7514 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7515 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7518 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7520 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7521 Constify structures.
7522 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7523 (alphanbsd_aout_gregset): Likewise.
7524 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7525 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7527 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7528 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7530 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7531 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7532 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7533 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7534 * m88k-tdep.c (m88k_gregset): Likewise.
7535 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7536 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7537 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7538 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7539 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7540 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7541 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7542 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7543 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7545 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7546 * sh-tdep.h (sh_corefile_gregset): Likewise.
7547 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7548 * vax-tdep.c (vax_gregset): Likewise.
7550 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7552 Fix TLS access for -static -pthread.
7553 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7554 (try_thread_db_load_1): Initialize it.
7555 (thread_db_get_thread_local_address): Call it if LM is zero.
7556 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7557 * target.h (struct target_ops) (to_get_thread_local_address): Add
7558 load_module_addr comment.
7560 2014-05-21 Pedro Alves <palves@redhat.com>
7562 * dcache.c (dcache_read_memory_partial): If reading the cache line
7563 fails, fallback to reading just the memory the caller wanted.
7565 2014-05-20 Doug Evans <dje@google.com>
7567 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7568 instead of get_current_arch.
7570 2014-05-20 Pedro Alves <palves@redhat.com>
7572 * NEWS: Mention that compare-sections now works with all targets.
7574 * remote.c (PACKET_qCRC): New enum value.
7575 (remote_verify_memory): Don't send qCRC if the target has no
7576 execution. Use packet_support/packet_ok. If the target doesn't
7577 support the qCRC packet, fallback to a deep memory copy.
7578 (compare_sections_command): Say "target image" instead of "remote
7580 (_initialize_remote): Add PACKET_qCRC to the list of config
7581 packets that have no associated command. Extend comment.
7582 * target.c (simple_verify_memory, default_verify_memory): New
7584 * target.h (struct target_ops) <to_verify_memory>: Default to
7585 default_verify_memory.
7586 (simple_verify_memory): New declaration.
7587 * target-delegates.c: Regenerate.
7589 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7591 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7593 2014-05-20 Hui Zhu <hui@codesourcery.com>
7594 Yao Qi <yao@codesourcery.com>
7597 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7598 and change address of sp and pc.
7600 2014-05-19 Tom Tromey <tromey@redhat.com>
7602 * gdbtypes.c (rank_function): Use XNEWVEC.
7603 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7605 2014-05-19 Doug Evans <dje@google.com>
7607 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7608 build_type_unit_groups and moved closer to only caller. Remove
7609 arguments. All references updated. Remove outdated .gdb_index
7611 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7612 build_type_psymtabs_1.
7614 2014-05-19 Doug Evans <dje@google.com>
7616 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7617 n_type_unit_groups, all_type_unit_groups. All uses removed.
7618 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7619 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7620 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7621 (add_type_unit_group_to_table): Delete.
7623 2014-05-19 Doug Evans <dje@google.com>
7625 * eval.c (evaluate_subexp_standard): Add some comments.
7627 2014-05-17 Doug Evans <xdje42@gmail.com>
7629 * progspace.c (remove_program_space): Delete, unused.
7630 * progspace.h (remove_program_space): Ditto.
7632 2014-05-17 Doug Evans <xdje42@gmail.com>
7634 * inferior.c (prune_inferiors): Fix comment.
7635 (remove_inferior_command): Call prune_program_spaces.
7637 2014-05-16 Doug Evans <dje@google.com>
7639 New command line option -D.
7641 * main.c (set_gdb_data_directory): New function.
7642 (captured_main): Recognize -D. Flag error for --data-directory "".
7643 Call set_gdb_data_directory.
7644 (print_gdb_help): Print --data-directory, -D.
7645 * main.h (set_gdb_data_directory): Declare.
7646 * top.c (staged_gdb_datadir): New static global.
7647 (set_gdb_datadir): Call set_gdb_data_directory
7648 (show_gdb_datadir): New function.
7649 (init_main): Update init of data-directory parameter.
7651 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7653 Import the "dirfd" gnulib module.
7654 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7655 * gnulib/aclocal.m4: Update.
7656 * gnulib/config.in: Update.
7657 * gnulib/configure: Update.
7658 * gnulib/import/Makefile.am: Update.
7659 * gnulib/import/Makefile.in: Update.
7660 * gnulib/import/dirfd.c: New.
7661 * gnulib/import/m4/dirfd.m4: New.
7662 * gnulib/import/m4/gnulib-cache.m4: Update.
7663 * gnulib/import/m4/gnulib-comp.m4: Update.
7665 2014-05-16 Pierre Muller <muller@sourceware.org>
7666 Yao Qi <yao@codesourcery.com>
7668 * valprint.c (print_wchar): Move the code on checking whether
7669 W is a printable wide char to the default branch of switch
7670 statement below. Call wchar_printable instead of gdb_iswprint.
7672 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7674 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7675 ldr.w and ldrd instructions.
7677 2014-05-15 Doug Evans <dje@google.com>
7679 * dwarf2read.c (read_structure_type): Delete outdated comments.
7681 2014-05-14 Tom Tromey <tromey@redhat.com>
7683 * macrocmd.c (print_macro_definition): Reindent.
7685 2014-05-13 Doug Evans <xdje42@gmail.com>
7687 * python/py-cmd.c (cmdpy_completer): Add comment.
7688 (completers): Make const.
7690 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7692 * infrun.c (resume): Remove should_resume (unused). Move up
7693 declaration of resume_ptid.
7695 2014-05-13 Tom Tromey <tromey@redhat.com>
7697 * language.h (unop_type_check): Remove.
7698 (binop_type_check): Don't declare.
7700 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7702 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7703 call to regcache_raw_collect.
7705 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7707 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7708 mi_console->quote as the quoting character.
7710 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7712 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7714 2014-04-29 Tom Tromey <tromey@redhat.com>
7716 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7717 "show debug varobj".
7719 2014-05-07 Kyle McMartin <kyle@redhat.com>
7721 Pushed by Joel Brobecker <brobecker@adacore.com>.
7722 * aarch64-tdep.c (aarch64_software_single_step): New function.
7723 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7724 with aarch64_software_single_step.
7726 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7730 2014-05-05 Keith Seitz <keiths@redhat.com>
7732 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7733 variable or history value is successfully parsed.
7735 2014-05-05 Yao Qi <yao@codesourcery.com>
7736 Pedro Alves <palves@redhat.com>
7738 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7739 address of blocks that intersects the requested range. Trim
7740 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7742 * ctf.c (ctf_xfer_partial): Likewise.
7744 2014-05-05 Yao Qi <yao@codesourcery.com>
7746 * printcmd.c (display_command): Remove the check to
7747 target_has_execution.
7749 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7751 * ppcobsd-nat.c: Include "obsd-nat.h".
7752 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7754 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7756 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7758 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7759 and 16-bit signed and unsigned arguments. Update comment.
7760 (stap_parse_probe_arguments): Extend code to handle such
7761 arguments. Use warning instead of complaint to notify about
7762 unrecognized bitness.
7764 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7766 PR breakpoints/16889
7767 * stap-probe.c (stap_parse_probe_arguments): Simplify
7768 check for non-prefixed probes (i.e., probes whose
7769 arguments do not start with "N@"). Always set the
7770 argument type to a sane value.
7772 2014-05-01 David Taylor <dtaylor@emc.com>
7774 * remote.c (compare_sections_command): Add -r option to compare
7775 all loadable read-only sections.
7777 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7779 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7780 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7782 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7783 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7784 Remove unused CORE_ADDR argument. Update all callers.
7786 2014-04-29 Pedro Alves <palves@redhat.com>
7788 * remote.c (struct packet_config) <detect>: Extend comment.
7789 (add_packet_config_cmd): Don't set the config's detect or support
7791 (init_all_packet_configs): Also initialize the config's 'detect'
7793 (reset_all_packet_configs_support): New function.
7794 (remote_open_1): Call reset_all_packet_configs_support instead of
7795 init_all_packet_configs.
7796 (_initialize_remote): Initialize all packet configs. Assert that
7797 all packets have an associated command, except a few known
7800 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7802 * dwarf2read.c (read_subrange_type): Handle dynamic
7803 DW_AT_lower_bound attributes.
7805 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7807 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7808 dynamic bounds before computing its upper bound.
7809 (ada_discrete_type_low_bound): Same as above with the lower bound.
7811 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7813 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7814 range types. Adjust the array handling implementation to
7815 take advantage of this change.
7816 (resolve_dynamic_range): New function, mostly extracted from
7817 resolve_dynamic_bounds.
7818 (resolve_dynamic_array): New function, mostly extracted from
7819 resolve_dynamic_bounds.
7820 (resolve_dynamic_bounds): Delete.
7821 (resolve_dynamic_type): Reimplement. Add handling of
7822 TYPE_CODE_RANGE types.
7824 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7826 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7827 handling of parallel ___XA types.
7829 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7831 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7832 unnecessary second call to static_unwrap_type.
7834 2014-04-27 Hui Zhu <hui@codesourcery.com>
7836 * stack.c (print_frame_info): Call do_gdb_disassembly with
7837 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7839 2014-04-26 Doug Evans <xdje42@gmail.com>
7841 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7843 2014-04-25 Pedro Alves <palves@redhat.com>
7846 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7847 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7848 and newline from built string.
7849 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7850 (linux_ptrace_attach_fail_reason): ... this.
7851 * linux-nat.c (linux_nat_attach): Adjust to use
7852 linux_ptrace_attach_fail_reason.
7854 2014-04-25 Pedro Alves <palves@redhat.com>
7856 * remote.c (struct remote_state): Remove multi_process_aware,
7857 non_stop_aware, cond_tracepoints, cond_breakpoints,
7858 breakpoint_commands, fast_tracepoints, static_tracepoints,
7859 install_in_trace, disconnected_tracing,
7860 enable_disable_tracepoints, string_tracing, and
7861 augmented_libraries_svr4_read fields.
7862 (remote_multi_process_p): Move further below in the file.
7863 (struct packet_config): Add comments.
7864 (update_packet_config): Delete function.
7865 (show_packet_config_cmd): Use packet_config_support.
7866 (add_packet_config_cmd): Use NULL as set callback.
7867 (packet_ok): "set remote foo-packet"-style commands no longer
7868 change config->supported -- adjust.
7869 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7870 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7871 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7872 (PACKET_QNonStop, PACKET_multiprocess_feature)
7873 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7874 (PACKET_DisconnectedTracing_feature)
7875 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7876 (set_remote_protocol_packet_cmd): Delete function.
7877 (packet_config_support, packet_support): New functions.
7878 (set_remote_protocol_Z_packet_cmd): Don't call
7879 update_packet_config.
7880 (remote_query_attached, remote_pass_signals)
7881 (remote_program_signals, remote_threads_info)
7882 (remote_threads_extra_info, remote_start_remote): Use
7884 (remote_start_remote): Use packet_config_support and
7886 (init_all_packet_configs): Set all packets to unknown support,
7887 instead of calling update_packet_config.
7888 (remote_check_symbols): Use packet_support.
7889 (remote_supported_packet): Unconditionally set the packet config's
7891 (remote_multi_process_feature, remote_non_stop_feature)
7892 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7893 (remote_breakpoint_commands_feature)
7894 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7895 (remote_install_in_trace_feature)
7896 (remote_disconnected_tracing_feature)
7897 (remote_enable_disable_tracepoint_feature)
7898 (remote_string_tracing_feature)
7899 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7900 (remote_protocol_features): Adjust to use remote_supported_packet
7901 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7902 "ConditionalTracepoints", "ConditionalBreakpoints",
7903 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7904 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7905 "EnableDisableTracepoints", and "tracenz".
7906 (remote_query_supported): Use packet_support.
7907 (remote_open_1): Adjust.
7908 (extended_remote_attach_1): Use packet_support. Switch on the
7909 result of packet_ok instead of checking whether the packet ended
7911 (remote_vcont_resume): Use packet_support.
7912 (remote_resume, remote_stop_ns, fetch_register_using_p)
7913 (remote_prepare_to_store, store_register_using_P)
7914 (check_binary_download, remote_write_bytes): Use packet_support.
7915 (remote_vkill): Use packet_support. Switch on the result of
7916 packet_ok instead of checking whether the packet ended up
7918 (extended_remote_supports_disable_randomization): Use
7920 (extended_remote_run): Switch on the result of packet_ok instead
7921 of checking whether the packet ended up disabled.
7922 (remote_insert_breakpoint, remote_remove_breakpoint)
7923 (remote_insert_watchpoint, remote_remove_watchpoint)
7924 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7926 (remote_search_memory): Use packet_config_support.
7927 (remote_get_thread_local_address, remote_get_tib_address)
7928 (remote_hostio_send_command, remote_can_execute_reverse): Use
7930 (remote_supports_cond_tracepoints)
7931 (remote_supports_cond_breakpoints)
7932 (remote_supports_fast_tracepoints)
7933 (remote_supports_static_tracepoints)
7934 (remote_supports_install_in_trace)
7935 (remote_supports_enable_disable_tracepoint)
7936 (remote_supports_string_tracing)
7937 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7938 the packet config says the feature is enabled or disabled.
7939 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7940 (remote_get_trace_status): Use packet_support.
7941 (remote_set_disconnected_tracing): Adjust to check whether the
7942 feature is enabled with packet_support.
7943 (remote_set_trace_buffer_size, remote_use_agent)
7944 (remote_can_use_agent, remote_supports_btrace): Use
7946 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7947 Use packet_config_support.
7948 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7949 the packet config says the feature is enabled or disabled.
7950 (set_range_stepping): Use packet_support.
7952 2014-04-25 Tom Tromey <tromey@redhat.com>
7954 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7957 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7959 * NEWS: Mention support for C99 variable length arrays.
7961 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7963 * ada-lang.c (standard_exc): Expand introductory comment.
7965 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7966 Walfred Tedeschi <walfred.tedeschi@intel.com>
7968 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7970 (amd64_linux_read_description): Add code to handle AVX512 xstate
7971 mask and return respective tdesc.
7972 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7973 and features/i386/x32-avx512-linux.c.
7974 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7975 (amd64_linux_core_read_description): Add code to handle AVX512
7976 xstate mask and return respective tdesc.
7977 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7978 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7980 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7981 (tdesc_amd64_avx512_linux): New prototype.
7982 (tdesc_x32_avx512_linux): Likewise.
7983 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7984 features/i386/x32-avx512.c.
7985 (amd64_ymm_avx512_names): New register names for pseudo
7987 (amd64_ymmh_avx512_names): New register names for raw registers
7989 (amd64_k_names): New register names for K registers.
7990 (amd64_zmmh_names): New register names for ZMM raw registers.
7991 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7992 (amd64_xmm_avx512_names): New register names for XMM16-31
7994 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7996 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7997 if feature is present.
7998 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7999 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8000 (AMD64_NUM_REGS): Adjust to new number of registers.
8001 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8002 registers supplied via XSTATE by AVX512 registers.
8003 (i386_linux_read_description): Add case for AVX512.
8004 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8005 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8006 (i386_linux_core_read_description): Add case for AVX512.
8007 (i386_linux_init_abi): Install supported register note section
8009 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8011 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8012 registers to be number of zmm7h + 1.
8013 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8014 * i386-tdep.c: Include features/i386/i386-avx512.c.
8015 (i386_zmm_names): Add ZMM pseudo register names array.
8016 (i386_zmmh_names): Add ZMM raw register names array.
8017 (i386_k_names): Add K raw register names array.
8018 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8019 registers. AVX512 has 16 more ZMM registers than there are YMM
8021 (i386_zmmh_regnum_p): Add function to look up register number of
8023 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8024 (i386_k_regnum_p): Likewise for K raw registers.
8025 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8026 registers added by AVX512.
8027 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8028 registers added by AVX512.
8029 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8031 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8032 (i386_pseudo_register_name): Add ZMM pseudo registers.
8033 (i386_zmm_type): Construct and return vector registers type for ZMM
8035 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8036 ZMM0-31 pseudo registers and K registers.
8037 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8038 and YMM16-31 registers from register cache.
8039 (i386_pseudo_register_write): Add code to write K, ZMM and
8041 (i386_register_reggroup_p): Add code to include/exclude AVX512
8042 registers in/from respective register groups.
8043 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8044 registers if feature is present in xcr0.
8045 (i386_gdbarch_init): Add code to initialize AVX512 feature
8046 variables in tdep structure, wire in pseudo registers and call
8047 initialize_tdesc_i386_avx512.
8048 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8050 (i386_regnum): Add AVX512 registers.
8051 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8052 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8053 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8054 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8056 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8057 (i386_ymm_avx512_regnum_p): Likewise.
8058 (i386_k_regnum_p): Likewise.
8059 (i386_zmm_regnum_p): Likewise.
8060 (i386_zmmh_regnum_p): Likewise.
8061 * i387-tdep.c : Update year in copyright notice.
8062 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8064 (XSAVE_YMM_AVX512_ADDR): New macro.
8065 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8067 (XSAVE_XMM_AVX512_ADDR): New macro.
8068 (xsave_avx512_k_offset): New table for K register offsets in
8070 (XSAVE_AVX512_K_ADDR): New macro.
8071 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8073 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8074 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8076 (i387_collect_xsave): Add code to collect AVX512 registers from
8078 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8079 of XMM16-31 registers.
8080 (I387_NUM_K_REGS): New define for number of K registers.
8081 (I387_K0_REGNUM): New define for K0 register number.
8082 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8083 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8084 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8086 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8087 (I387_XMM16_REGNUM): New define for XMM16 register number.
8088 (I387_YMM0_REGNUM): New define for YMM0 register number.
8089 (I387_KEND_REGNUM): New define for last K register number.
8090 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8091 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8093 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8095 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8097 * features/Makefile: Add AVX512 related files.
8098 * features/i386/32bit-avx512.xml: New file.
8099 * features/i386/64bit-avx512.xml: Likewise.
8100 * features/i386/amd64-avx512-linux.c: Likewise.
8101 * features/i386/amd64-avx512-linux.xml: Likewise.
8102 * features/i386/amd64-avx512.c: Likewise.
8103 * features/i386/amd64-avx512.xml: Likewise.
8104 * features/i386/i386-avx512-linux.c: Likewise.
8105 * features/i386/i386-avx512-linux.xml: Likewise.
8106 * features/i386/i386-avx512.c: Likewise.
8107 * features/i386/i386-avx512.xml: Likewise.
8108 * features/i386/x32-avx512-linux.c: Likewise.
8109 * features/i386/x32-avx512-linux.xml: Likewise.
8110 * features/i386/x32-avx512.c: Likewise.
8111 * features/i386/x32-avx512.xml: Likewise.
8112 * regformats/i386/amd64-avx512-linux.dat: New file.
8113 * regformats/i386/amd64-avx512.dat: Likewise.
8114 * regformats/i386/i386-avx512-linux.dat: Likewise.
8115 * regformats/i386/i386-avx512.dat: Likewise.
8116 * regformats/i386/x32-avx512-linux.dat: Likewise.
8117 * regformats/i386/x32-avx512.dat: Likewise.
8118 * NEWS: Add note about new support for AVX512.
8121 2014-04-23 Pedro Alves <palves@redhat.com>
8123 * breakpoint.c (insert_bp_location): Tolerate errors if the
8124 breakpoint is set in a user-loaded objfile.
8125 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8126 location is marked shlib_disabled. If the breakpoint is set in a
8127 user-loaded objfile is a GDB-side memory breakpoint, validate it
8128 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8129 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8131 * mem-break.c (memory_validate_breakpoint): New function.
8132 * objfiles.c (userloaded_objfile_contains_address_p): New
8134 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8135 * target.h (memory_validate_breakpoint): New declaration.
8137 2014-04-23 Pedro Alves <palves@redhat.com>
8139 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8140 the breakpoint is set in a shared library, only suppress
8141 errors for software breakpoints, not hardware breakpoints.
8143 2014-04-22 Pedro Alves <palves@redhat.com>
8145 * infrun.c (schedlock_applies): New function, factored out from
8146 find_thread_needs_step_over.
8147 (find_thread_needs_step_over): Use it.
8148 (switch_back_to_stepped_thread): Always clear trap_expected if the
8149 step over is finished. Return early if scheduler locking applies.
8150 Look for the stepping thread and a potential step-over thread with
8152 (currently_stepping_or_nexting_callback): Delete.
8154 2014-04-22 Nick Clifton <nickc@redhat.com>
8156 * NEWS: Mention that ARM sim now supports tracing.
8158 2014-04-22 Yao Qi <yao@codesourcery.com>
8160 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8162 * tracefile.c (tracefile_fetch_registers): ... it. New
8164 * tracefile.h (tracefile_fetch_registers): Declare.
8165 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8166 tracefile_fetch_registers.
8168 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8171 * windows-nat.c (thread_rec): Don't display a warning when
8172 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8173 fails for any reason, set th->suspended to -1, so that we don't
8174 try to resume such a thread. Also, don't return NULL in these
8175 cases, to avoid completely ruin the session due to "PC register is
8176 not available" error.
8177 (do_windows_fetch_inferior_registers): Check errors in
8178 GetThreadContext call.
8179 (windows_continue): Accept an additional argument KILLED; if not
8180 zero, ignore errors in the SetThreadContext call, since the
8181 inferior was killed and is shutting down.
8182 (windows_resume, get_windows_debug_event)
8183 (windows_create_inferior, windows_mourn_inferior)
8184 (windows_kill_inferior): All callers of windows_continue changed
8185 to adjust to its new calling sequence.
8187 2014-04-19 Yao Qi <yao@codesourcery.com>
8189 * ctf.c (ctf_open): Call post_create_inferior.
8191 2014-04-19 Yao Qi <yao@codesourcery.com>
8193 * ctf.c (handle_id): New static variable.
8194 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8195 value. Get the declaration of event "register" and get length
8196 of field "contents".
8198 2014-04-19 Yao Qi <yao@codesourcery.com>
8200 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8202 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8204 * valops.c (oload_method_static): Remove unnecessary argument
8205 METHOD. Update all callers.
8207 2014-04-18 Pedro alves <palves@redhat.com>
8208 Tom Tromey <tromey@redhat.com>
8211 * frame.c (get_prev_frame_1): Rename to ...
8212 (get_prev_frame_always): ... this, and make extern. Adjust.
8213 (skip_artificial_frames): Use get_prev_frame_always.
8214 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8215 (get_frame_unwind_stop_reason): Adjust to rename.
8216 * frame.h (get_prev_frame_always): Declare.
8217 * inline-frame.c: Include frame.h.
8218 (inline_frame_this_id): Use get_prev_frame_always.
8220 2014-04-18 Tristan Gingold <gingold@adacore.com>
8222 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8223 code by using bfd_mach_o_get_base_address.
8225 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8227 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8228 (spu_ax_pseudo_register_collect): New function.
8229 (spu_ax_pseudo_register_push_stack): Likewise.
8230 (spu_dwarf_reg_to_regnum): Likewise.
8231 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8233 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8235 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8236 Replace FRAME argument with FRAME_ID.
8237 * gdbarch.c, gdbarch.h: Regenerate.
8238 * findvar.c (default_value_from_register): Add GDBARCH argument;
8239 replace FRAME by FRAME_ID. No longer call get_frame_id.
8240 (value_from_register): Update call to gdbarch_value_from_register.
8241 * value.h (default_value_from_register): Update prototype.
8242 * s390-linux-tdep.c (s390_value_from_register): Update interface
8243 and call to default_value_from_register.
8244 * spu-tdep.c (spu_value_from_register): Likewise.
8246 * findvar.c (address_from_register): Remove TYPE argument.
8247 Do not call value_from_register; use gdbarch_value_from_register
8248 with null_frame_id instead.
8249 * value.h (address_from_register): Update prototype.
8250 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8251 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8252 address_from_register interface change.
8254 2014-04-17 Yao Qi <yao@codesourcery.com>
8256 * gdbtypes.h: Update comments to link to types and macros'
8259 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8261 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8263 2014-04-16 Keith Seitz <keiths@redhat.com>
8266 * dwarf2read.c (skip_one_die): Check that all relative-offset
8267 sibling DIEs fall within range of the current reader's buffer.
8268 (read_partial_die): Likewise.
8270 2014-04-16 Keith Seitz <keiths@redhat.com>
8273 * cp-namespace.c (lookup_symbol_file): If the type name of
8274 `this' is NULL, return immediately.
8276 2014-04-14 Keith Seitz <keiths@redhat.com>
8279 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8280 from symbol_matches_domain in symtab.c. All local callers
8281 of symbol_matches_domain updated.
8282 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8283 search STRUCT_DOMAIN.
8284 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8285 independently. standard_lookup will do that automatically.
8286 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8287 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8288 (cp_lookup_symbol_in_namespace): Likewise.
8289 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8290 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8291 may return a STRUCT_DOMAIN match.
8292 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8293 * cp-support.c: Include language.h.
8294 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8296 * psymtab.c (match_partial_symbol): Compare the requested
8297 domain with the symbol's domain directly.
8298 (lookup_partial_symbol): Likewise.
8299 * symtab.c (lookup_symbol_in_language): Explain when/why
8300 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8301 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8302 appropriate languages.
8303 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8304 and moved to ada-lang.c
8305 (lookup_block_symbol): Explain that this function only returns
8306 symbol matching the requested DOMAIN.
8307 Compare the requested domain with the symbol's domain directly.
8308 (iterate_over_symbols): Compare the requested domain with the
8309 symbol's domain directly.
8310 * symtab.h (symbol_matches_domain): Remove.
8312 2014-04-14 Tom Tromey <tromey@redhat.com>
8315 * c-exp.y (type_aggregate_p): New function.
8316 (qualified_name, classify_inner_name): Use it.
8317 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8318 and TYPE_TARGET_TYPE of an enum type.
8319 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8321 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8322 handle TYPE_DECLARED_CLASS.
8323 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8325 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8326 * valops.c (enum_constant_from_type): New function.
8327 (value_aggregate_elt): Use it.
8328 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8331 2014-04-14 Tom Tromey <tromey@redhat.com>
8333 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8334 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8336 * value.h (value_aggregate_elt): Update.
8338 2014-04-14 Tom Tromey <tromey@redhat.com>
8340 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8342 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8344 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8345 (evaluate_subexp_standard): Pass noside argument.
8346 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8347 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8348 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8349 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8350 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8352 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8354 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8355 points to a constant blob.
8357 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8359 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8360 property and store it as the high bound and flag the range accordingly.
8361 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8362 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8363 * gdbtypes.h (enum range_flags): New enum.
8364 (struct range_bounds): Add flags member.
8366 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8368 * c-typeprint.c (c_type_print_varspec_suffix): Added
8369 check for not yet resolved high bound. If unresolved, print
8370 "variable length" string to the console instead of random
8373 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8375 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8377 (ada_template_to_fixed_record_type_1): Likewise.
8378 (ada_to_fixed_type_1): Likewise.
8379 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8380 (cp_print_value): Likewise.
8381 * d-valprint.c (dynamic_array_type): Likewise.
8382 * findvar.c (address_of_variable): Likewise.
8383 * jv-valprint.c (java_value_print): Likewise.
8384 * valops.c (value_ind): Likewise.
8385 * value.c (coerce_ref): Likewise.
8387 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8389 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8390 value and retrieve the dynamic type size.
8392 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8394 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8395 passed to sizeof is dynamic evaluate the argument to compute the length.
8397 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8398 Joel Brobecker <brobecker@adacore.com>
8400 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8401 (dwarf2_evaluate_property): New function.
8402 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8403 * dwarf2read.c (attr_to_dynamic_prop): New function.
8404 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8406 * gdbtypes.c: Include dwarf2loc.h.
8407 (is_dynamic_type): New function.
8408 (resolve_dynamic_type): New function.
8409 (resolve_dynamic_bounds): New function.
8410 (get_type_length): New function.
8411 (check_typedef): Use get_type_length to compute type length.
8412 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8413 (TYPE_LOW_BOUND_KIND): New macro.
8414 (is_dynamic_type): New function prototype.
8415 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8416 to resolve dynamic properties of the type. Update comment.
8417 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8419 2014-04-14 Richard Henderson <rth@redhat.com>
8421 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8423 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8424 Doug Evans <xdje42@gmail.com>
8426 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8427 dereference TYPE_CODE_REF values.
8429 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8431 Revert the following changes due to regressions:
8433 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8434 (dwarf2_evaluate_property): New function.
8435 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8436 * dwarf2read.c (attr_to_dynamic_prop): New function.
8437 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8439 * gdbtypes.c: Include dwarf2loc.h.
8440 (is_dynamic_type): New function.
8441 (resolve_dynamic_type): New function.
8442 (resolve_dynamic_bounds): New function.
8443 (get_type_length): New function.
8444 (check_typedef): Use get_type_length to compute type length.
8445 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8446 (TYPE_LOW_BOUND_KIND): New macro.
8447 (is_dynamic_type): New function prototype.
8448 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8449 to resolve dynamic properties of the type. Update comment.
8450 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8452 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8453 passed to sizeof is dynamic evaluate the argument to compute the length.
8455 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8456 value and retrieve the dynamic type size.
8458 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8459 (ada_template_to_fixed_record_type_1): Likewise.
8460 (ada_to_fixed_type_1): Likewise.
8461 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8462 (cp_print_value): Likewise.
8463 * d-valprint.c (dynamic_array_type): Likewise.
8464 * eval.c (evaluate_subexp_with_coercion): Likewise.
8465 * findvar.c (address_of_variable): Likewise.
8466 * jv-valprint.c (java_value_print): Likewise.
8467 * valops.c (value_ind): Likewise.
8468 * value.c (coerce_ref): Likewise.
8470 * c-typeprint.c (c_type_print_varspec_suffix): Added
8471 check for not yet resolved high bound. If unresolved, print
8472 "variable length" string to the console instead of random
8475 * 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 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8483 points to a constant blob.
8485 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8486 (evaluate_subexp_standard): Pass noside argument.
8487 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8488 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8489 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8490 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8491 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8493 2014-04-11 Keith Seitz <keiths@redhat.com>
8496 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8497 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8500 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8502 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8503 (evaluate_subexp_standard): Pass noside argument.
8504 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8505 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8506 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8507 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8508 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8510 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8512 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8513 points to a constant blob.
8515 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8517 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8518 property and store it as the high bound and flag the range accordingly.
8519 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8520 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8521 * gdbtypes.h (enum range_flags): New enum.
8522 (struct range_bounds): Add flags member.
8524 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8526 * c-typeprint.c (c_type_print_varspec_suffix): Added
8527 check for not yet resolved high bound. If unresolved, print
8528 "variable length" string to the console instead of random
8531 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8533 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8534 (ada_template_to_fixed_record_type_1): Likewise.
8535 (ada_to_fixed_type_1): Likewise.
8536 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8537 (cp_print_value): Likewise.
8538 * d-valprint.c (dynamic_array_type): Likewise.
8539 * eval.c (evaluate_subexp_with_coercion): Likewise.
8540 * findvar.c (address_of_variable): Likewise.
8541 * jv-valprint.c (java_value_print): Likewise.
8542 * valops.c (value_ind): Likewise.
8543 * value.c (coerce_ref): Likewise.
8545 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8547 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8548 value and retrieve the dynamic type size.
8550 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8552 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8553 passed to sizeof is dynamic evaluate the argument to compute the length.
8555 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8557 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8558 (dwarf2_evaluate_property): New function.
8559 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8560 * dwarf2read.c (attr_to_dynamic_prop): New function.
8561 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8563 * gdbtypes.c: Include dwarf2loc.h.
8564 (is_dynamic_type): New function.
8565 (resolve_dynamic_type): New function.
8566 (resolve_dynamic_bounds): New function.
8567 (get_type_length): New function.
8568 (check_typedef): Use get_type_length to compute type length.
8569 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8570 (TYPE_LOW_BOUND_KIND): New macro.
8571 (is_dynamic_type): New function prototype.
8572 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8573 to resolve dynamic properties of the type. Update comment.
8574 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8576 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8578 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8579 declaring high/low bounds and change uses accordingly. Call
8580 create_range_type instead of create_static_range_type.
8581 * gdbtypes.c (create_range_type): New function.
8582 (create_range_type): Convert bounds into struct bound_prop and pass
8583 them to create_range_type.
8584 * gdbtypes.h (struct bound_prop): New struct.
8585 (create_range_type): New function prototype.
8586 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8587 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8588 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8590 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8592 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8594 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8595 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8596 * ada-lang.c: All uses of create_range_type updated.
8597 * coffread.c: All uses of create_range_type updated.
8598 * dwarf2read.c: All uses of create_range_type updated.
8599 * f-exp.y: All uses of create_range_type updated.
8600 * m2-valprint.c: All uses of create_range_type updated.
8601 * mdebugread.c: All uses of create_range_type updated.
8602 * stabsread.c: All uses of create_range_type updated.
8603 * valops.c: All uses of create_range_type updated.
8604 * valprint.c: All uses of create_range_type updated.
8606 2014-04-10 Pedro Alves <palves@redhat.com>
8608 * breakpoint.c (single_step_breakpoints)
8609 (single_step_gdbarch): Move up in the file.
8610 (one_breakpoint_xfer_memory): New function, factored out from ...
8611 (breakpoint_xfer_memory): ... here. Also process single-step
8614 2014-04-09 Tristan Gingold <gingold@adacore.com>
8616 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8618 (darwin_decode_exception_message): Free port only after use.
8620 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8622 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8623 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8624 when setting the size of call_length.
8626 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8628 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8629 dereference TYPE_CODE_REF values.
8631 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8633 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8634 end of warning message.
8636 2014-04-03 Doug Evans <dje@google.com>
8638 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8639 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8641 2014-04-02 Alan Modra <amodra@gmail.com>
8643 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8644 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8645 (struct symbol_file_add_from_memory_args): Add size field.
8646 (find_vdso_size): New function.
8647 (add_vsyscall_page): Attempt to find vdso size.
8649 2014-04-01 Doug Evans <dje@google.com>
8651 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8653 2014-04-01 Tristan Gingold <gingold@adacore.com>
8655 * darwin-nat.c (darwin_encode_reply): Add prototype.
8656 (darwin_decode_exception_message): Reply to unknown inferiors.
8657 (darwin_decode_message): Handle message by id. Ignore message
8658 to unknown inferior.
8659 (darwin_wait): Discard unknown messages, add debug trace.
8661 2014-03-31 Doug Evans <dje@google.com>
8663 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8666 2014-03-31 Doug Evans <dje@google.com>
8668 New option "set print symbol-loading".
8670 * solib.c (solib_read_symbols): Only print symbol loading messages
8672 (solib_add): If symbol loading is in "brief" mode, notify user
8673 symbols are being loaded.
8674 (reload_shared_libraries_1): Ditto.
8675 * symfile.c (print_symbol_loading_off): New static global.
8676 (print_symbol_loading_brief): New static global.
8677 (print_symbol_loading_full): New static global.
8678 (print_symbol_loading_enums): New static global.
8679 (print_symbol_loading): New static global.
8680 (print_symbol_loading_p): New function.
8681 (symbol_file_add_with_addrs): Only print symbol loading messages
8683 (_initialize_symfile): Register "print symbol-loading" set/show
8685 * symfile.h (print_symbol_loading_p): Declare.
8687 2014-03-30 Doug Evans <xdje42@gmail.com>
8689 * infrun.c (set_last_target_status): New function.
8690 (handle_inferior_event): Call it.
8692 2014-03-30 Doug Evans <xdje42@gmail.com>
8694 * inferior.h (enum stop_kind): Improve comment.
8696 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8698 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8699 a reference, strip the reference layer before calling
8700 the lang_ops value_has_mutated callback.
8702 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8704 Remove some globals from our parser.
8705 * language.c (unk_lang_parser): Add "struct parser_state"
8707 * language.h (struct language_defn) <la_parser>: Likewise.
8708 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8709 (initialize_expout): Add "struct parser_state" argument.
8710 Rewrite function to use the parser state.
8711 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8712 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8713 write_exp_elt_longcst, write_exp_elt_dblcst,
8714 write_exp_elt_decfloatcst, write_exp_elt_type,
8715 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8716 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8717 write_dollar_variable): Likewise.
8718 (parse_exp_in_context_1): Use parser state.
8719 (insert_type_address_space): Add "struct parser_state" argument.
8721 (increase_expout_size): New function.
8722 * parser-defs.h: Forward declare "struct language_defn" and
8723 "struct parser_state".
8724 (expout, expout_size, expout_ptr): Remove extern declarations.
8725 (parse_gdbarch, parse_language): Rewrite macro declarations to
8726 accept the parser state.
8727 (struct parser_state): New struct.
8728 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8729 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8730 write_exp_elt_decfloatcst, write_exp_elt_type,
8731 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8732 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8733 write_exp_msymbol, write_dollar_variable,
8734 mark_struct_expression, insert_type_address_space): Add "struct
8735 parser_state" argument.
8736 (increase_expout_size): New function.
8737 * utils.c (do_clear_parser_state): New function.
8738 (make_cleanup_clear_parser_state): Likewise.
8739 * utils.h (make_cleanup_clear_parser_state): New function
8741 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8742 Update calls to write_exp* in order to pass the parser state.
8743 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8744 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8745 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8746 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8747 * stap-probe.c (stap_parse_register_operand): Likewise.
8748 (stap_parse_single_operand): Likewise.
8749 (stap_parse_argument_1): Likewise.
8750 (stap_parse_argument): Use parser state.
8751 * stap-probe.h: Include "parser-defs.h".
8752 (struct stap_parse_info) <pstate>: New field.
8753 * c-exp.y (parse_type): Rewrite to use parser state.
8754 (yyparse): Redefine to c_parse_internal.
8755 (pstate): New global variable.
8756 (parse_number): Add "struct parser_state" argument.
8757 (write_destructor_name): Likewise.
8758 (type_exp): Update calls to write_exp* and similars in order to
8760 (exp1, exp, variable, qualified_name, space_identifier,
8761 typename, typebase): Likewise.
8762 (write_destructor_name, parse_number, lex_one_token,
8763 classify_name, classify_inner_name, c_parse): Add "struct
8764 parser_state" argument. Update function to use parser state.
8765 * c-lang.h: Forward declare "struct parser_state".
8766 (c_parse): Add "struct parser_state" argument.
8767 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8768 (yyparse): Redefine macro to ada_parse_internal.
8769 (pstate): New variable.
8770 (write_int, write_object_renaming, write_var_or_type,
8771 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8772 type_int, type_long, type_long_long, type_float, type_double,
8773 type_long_double, type_char, type_boolean, type_system_address):
8774 Add "struct parser_state" argument.
8775 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8776 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8777 var_or_type, aggregate, aggregate_component_list,
8778 positional_list, others, component_group,
8779 component_associations): Update calls to write_exp* and similar
8780 functions in order to use parser state.
8781 (ada_parse, write_var_from_sym, write_int,
8782 write_exp_op_with_string, write_object_renaming,
8783 find_primitive_type, write_selectors, write_ambiguous_var,
8784 write_var_or_type, write_name_assoc, type_int, type_long,
8785 type_long_long, type_float, type_double, type_long_double,
8786 type_char, type_boolean, type_system_address): Add "struct
8787 parser_state" argument. Adjust function to use parser state.
8788 * ada-lang.c (parse): Likewise.
8789 * ada-lang.h: Forward declare "struct parser_state".
8790 (ada_parse): Add "struct parser_state" argument.
8791 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8792 calls to both functions.
8793 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8795 (yyparse): Redefine macro to f_parse_internal.
8796 (pstate): New variable.
8797 (parse_number): Add "struct parser_state" argument.
8798 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8799 and similars in order to use parser state.
8800 (parse_number): Adjust code to use parser state.
8802 (f_parse): New function.
8803 * f-lang.h: Forward declare "struct parser_state".
8804 (f_parse): Add "struct parser_state" argument.
8805 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8807 (yyparse): Redefine macro for java_parse_internal.
8808 (pstate): New variable.
8809 (push_expression_name, push_expression_name, insert_exp): Add
8810 "struct parser_state" argument.
8811 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8812 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8813 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8814 PostIncrementExpression, PostDecrementExpression,
8815 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8816 UnaryExpressionNotPlusMinus, CastExpression,
8817 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8818 RelationalExpression, EqualityExpression, AndExpression,
8819 ExclusiveOrExpression, InclusiveOrExpression,
8820 ConditionalAndExpression, ConditionalOrExpression,
8821 ConditionalExpression, Assignment, LeftHandSide): Update
8822 calls to write_exp* and similars in order to use parser state.
8823 (parse_number): Ajust code to use parser state.
8825 (java_parse): New function.
8826 (push_variable): Add "struct parser_state" argument. Adjust
8827 code to user parser state.
8828 (push_fieldnames, push_qualified_expression_name,
8829 push_expression_name, insert_exp): Likewise.
8830 * jv-lang.h: Forward declare "struct parser_state".
8831 (java_parse): Add "struct parser_state" argument.
8832 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8834 (yyparse): Redefine macro to m2_parse_internal.
8835 (pstate): New variable.
8836 (type_exp, exp, fblock, variable, type): Update calls to
8837 write_exp* and similars to use parser state.
8839 (m2_parse): New function.
8840 * m2-lang.h: Forward declare "struct parser_state".
8841 (m2_parse): Add "struct parser_state" argument.
8842 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8843 * objc-lang.h: Forward declare "struct parser_state".
8844 (end_msglist): Add "struct parser_state" argument.
8845 * p-exp.y (parse_type): Rewrite macro to use parser state.
8846 (yyparse): Redefine macro to pascal_parse_internal.
8847 (pstate): New variable.
8848 (parse_number): Add "struct parser_state" argument.
8849 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8850 write_exp* and similars in order to use parser state.
8851 (parse_number, yylex): Adjust code to use parser state.
8852 (pascal_parse): New function.
8853 * p-lang.h: Forward declare "struct parser_state".
8854 (pascal_parse): Add "struct parser_state" argument.
8855 * go-exp.y (parse_type): Rewrite macro to use parser state.
8856 (yyparse): Redefine macro to go_parse_internal.
8857 (pstate): New variable.
8858 (parse_number): Add "struct parser_state" argument.
8859 (type_exp, exp1, exp, variable, type): Update calls to
8860 write_exp* and similars in order to use parser state.
8861 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8862 to use parser state.
8863 (go_parse): Likewise.
8864 * go-lang.h: Forward declare "struct parser_state".
8865 (go_parse): Add "struct parser_state" argument.
8867 2014-03-27 Doug Evans <dje@google.com>
8869 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8871 2014-03-27 Doug Evans <dje@google.com>
8873 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8874 Remove argument abbrev_section. All callers updated.
8876 2014-03-27 Doug Evans <dje@google.com>
8878 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8879 addr_base, ranges_base.
8881 2014-03-26 Keith Seitz <keiths@redhat.com>
8883 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8884 types, not VAR_DOMAIN.
8886 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8888 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8890 * features/nios2-linux.c: Regenerated.
8891 * features/nios2.c: Regenerated.
8893 2014-03-25 Pedro Alves <palves@redhat.com>
8895 * cli/cli-script.c (script_from_file): Force the interpreter to
8898 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8900 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8901 small stack allocation.
8903 2014-03-24 Tristan Gingold <gingold@adacore.com>
8905 * darwin-nat.c (exc_server): Remove unused prototype.
8906 (darwin_dump_message): Correctly display data on x86_64.
8907 (darwin_encode_reply): Fix style.
8908 Add comments and fix indentation.
8910 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8912 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8914 2014-03-22 Doug Evans <xdje42@gmail.com>
8916 * infcmd.c: Whitespace fixes.
8917 (interrupt_command): Merge two function comments into one.
8919 2014-03-22 Doug Evans <xdje42@gmail.com>
8921 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8924 2014-03-22 Yao Qi <yao@codesourcery.com>
8926 * remote.c (target_read_live_memory): Remove.
8927 (memory_xfer_live_readonly_partial): Rename it to
8928 remote_xfer_live_readonly_partial. Remove argument 'object'.
8929 All callers updated. Call remote_read_bytes_1
8930 instead of target_read_live_memory.
8931 * tracepoint.c (set_traceframe_number): Remove.
8932 (make_cleanup_restore_traceframe_number): Likewise .
8933 * tracepoint.h (set_traceframe_number): Remove declaration.
8934 (make_cleanup_restore_traceframe_number): Likewise.
8936 2014-03-22 Yao Qi <yao@codesourcery.com>
8938 * remote.c (remote_read_bytes): Move code on reading from the
8940 (remote_read_bytes_1): ... here. New function.
8942 2014-03-22 Yao Qi <yao@codesourcery.com>
8944 * ctf.c (ctf_xfer_partial): Check the return value of
8945 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8946 return TARGET_XFER_UNAVAILABLE.
8947 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8948 * target.c (target_read_live_memory): Move it to remote.c.
8949 (memory_xfer_live_readonly_partial): Likewise.
8950 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8951 * remote.c (target_read_live_memory): Moved from target.c.
8952 (memory_xfer_live_readonly_partial): Likewise.
8953 (remote_read_bytes): Factored out from
8954 memory_xfer_partial_1.
8956 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8958 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8961 2014-03-21 Pedro Alves <palves@redhat.com>
8963 * infrun.c (normal_stop): Extend comment.
8965 2014-03-21 Hui Zhu <hui@codesourcery.com>
8966 Pedro Alves <palves@redhat.com>
8968 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8970 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8971 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8972 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8974 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8976 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8977 `z' formatted output modifier.
8979 2014-03-20 Tom Tromey <tromey@redhat.com>
8980 Sergio Durigan Junior <sergiodj@redhat.com>
8982 * probe.c (parse_probes): Turn assert into an ordinary error.
8983 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8984 exceptions when parsing probes. Rearrange the code for clarity.
8986 2014-03-20 Tom Tromey <tromey@redhat.com>
8989 * top.c (execute_command): Only dispatch events if the command
8992 2014-03-20 Tom Tromey <tromey@redhat.com>
8995 * infcall.c: Include event-top.h.
8996 (run_inferior_call): Call async_disable_stdin if needed.
8998 2014-03-20 Pedro Alves <palves@redhat.com>
9000 * infrun.c (prepare_to_proceed): Delete.
9001 (thread_still_needs_step_over): New function.
9002 (find_thread_needs_step_over): New function.
9003 (proceed): If the current thread needs a step-over, set its
9004 steping_over_breakpoint flag. Adjust to use
9005 find_thread_needs_step_over instead of prepare_to_proceed.
9006 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9007 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9009 (switch_back_to_stepped_thread): Step over breakpoints of all
9010 threads not the stepping thread, before switching back to the
9013 2014-03-20 Pedro Alves <palves@redhat.com>
9015 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9017 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9018 * infrun.c (saved_singlestep_ptid)
9019 (stepping_past_singlestep_breakpoint): Delete.
9020 (resume): Remove stepping_past_singlestep_breakpoint handling.
9021 (proceed): Store the prev_pc of the stepping thread too.
9022 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9024 (enum infwait_states): Delete infwait_thread_hop_state.
9025 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9027 (handle_inferior_event): Adjust.
9028 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9029 handling and the thread-hop code. Before removing single-step
9030 breakpoints, check whether the thread hit a single-step breakpoint
9031 of another thread. If it did, the trap is not a random signal.
9032 (switch_back_to_stepped_thread): If the event thread hit a
9033 single-step breakpoint, unblock it before switching to the
9034 stepping thread. Handle the case of the stepped thread having
9036 (keep_going): Handle the case of the current thread moving past a
9037 single-step breakpoint.
9039 2014-03-20 Pedro Alves <palves@redhat.com>
9042 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9043 are being stepped over.
9044 (breakpoint_address_match): Make extern.
9045 * breakpoint.h (breakpoint_address_match): New declaration.
9046 * inferior.h (stepping_past_instruction_at): New declaration.
9047 * infrun.c (struct step_over_info): New type.
9048 (step_over_info): New global.
9049 (set_step_over_info, clear_step_over_info)
9050 (stepping_past_instruction_at): New functions.
9051 (handle_inferior_event): Clear the step-over info when
9052 trap_expected is cleared.
9053 (resume): Remove now stale comment.
9054 (clear_proceed_status): Clear step-over info.
9055 (proceed): Adjust step-over handling to set or clear the step-over
9056 info instead of removing all breakpoints.
9057 (handle_signal_stop): When setting up a thread-hop, don't remove
9059 (stop_stepping): Clear step-over info.
9060 (keep_going): Adjust step-over handling to set or clear step-over
9061 info and then always inserting breakpoints, instead of removing
9062 all breakpoints when stepping over one.
9064 2014-03-20 Pedro Alves <palves@redhat.com>
9066 * infrun.c (previous_inferior_ptid): Adjust comment.
9067 (deferred_step_ptid): Delete.
9068 (infrun_thread_ptid_changed, prepare_to_proceed)
9069 (init_wait_for_inferior): Adjust.
9070 (handle_signal_stop): Delete deferred_step_ptid handling.
9072 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9075 * defs.h (sync_quit_force_run): New declaration.
9076 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9077 * event-top.c (async_sigterm_handler): New declaration.
9078 (async_sigterm_token): New variable.
9079 (async_init_signals): Create also async_sigterm_token.
9080 (async_sigterm_handler): New function.
9081 (sync_quit_force_run): New variable.
9082 (handle_sigterm): Replace quit_force call by other calls.
9083 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9085 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9087 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9088 offset into SPE pseudo registers.
9090 2014-03-18 Pedro Alves <palves@redhat.com>
9093 * inferior.h (print_stop_event): Declare.
9094 * infrun.c (print_stop_event): New, factored out from ...
9095 (normal_stop): ... this.
9096 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9097 of bpstat_print/print_stack_frame.
9099 2014-03-17 Tom Tromey <tromey@redhat.com>
9101 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9103 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9105 * ada-lang.c (decode_constrained_packed_array): Perform a
9106 minimal coercion for reference with coerce_ref instead of
9109 2014-03-17 Tristan Gingold <gingold@adacore.com>
9111 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9112 (darwin_solib_create_inferior_hook): Emit a warning if version
9115 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9117 * python/py-value.c (get_field_flag): Cast flag_name argument to
9118 PyObject_GetAttrString to support Python 2.4.
9120 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9122 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9123 (Global Maintainers): Remove Jan Kratochvil.
9125 2014-03-14 Pedro Alves <palves@redhat.com>
9127 * inferior.h (terminal_ours_for_output): Rename to ...
9128 (child_terminal_ours_for_output): ... this.
9129 (terminal_save_ours): Rename to ...
9130 (child_terminal_save_ours): ... this.
9131 (terminal_ours): Rename to ...
9132 (child_terminal_ours): ... this.
9133 (terminal_inferior): Rename to ...
9134 (child_terminal_inferior): ... this.
9135 (terminal_init_inferior): Rename to ...
9136 (child_terminal_init_inferior): ... this.
9137 (terminal_init_inferior_with_pgrp): Rename to ...
9138 (child_terminal_init_inferior_with_pgrp): ... this.
9139 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9140 (child_terminal_init_with_pgrp): ... this.
9141 (terminal_save_ours): Rename to ...
9142 (child_terminal_save_ours): ... this.
9143 (terminal_init_inferior): Rename to ...
9144 (child_terminal_init): ... this. Adjust.
9145 (terminal_inferior): Rename to ...
9146 (child_terminal_inferior): ... this.
9147 (terminal_ours_for_output): Rename to ...
9148 (child_terminal_ours_for_output): ... this. Adjust.
9149 (terminal_ours): Rename to ...
9150 (child_terminal_ours): ... this.
9151 (terminal_ours_1): Rename to ...
9152 (child_terminal_ours_1): ... this. Adjust.
9153 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9154 * windows-nat.c (do_initial_windows_stuff): Adjust.
9155 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9156 (gnu_terminal_init): ... this. Adjust.
9157 (gnu_target): Adjust.
9158 * inf-child.c (inf_child_target): Adjust.
9160 2014-03-13 Doug Evans <xdje42@gmail.com>
9163 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9166 2014-03-13 Doug Evans <xdje42@gmail.com>
9168 * value.c (record_latest_value): Call release_value_or_incref
9169 instead of release_value.
9171 2014-03-13 Pedro Alves <palves@redhat.com>
9173 * procfs.c (procfs_target): Don't override to_shortname,
9174 to_longname or to_doc.
9176 2014-03-13 Pedro Alves <palves@redhat.com>
9178 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9179 Unix in user visible strings.
9181 2014-03-12 Stan Shebs <stan@codesourcery.com>
9183 * gdbtypes.h: Annotate comments for Doxygen, add a page
9184 block comment with some general info.
9186 2014-03-12 Pedro Alves <palves@redhat.com>
9188 * infcmd.c (prepare_execution_command): New function, factored out
9189 from several execution commands.
9190 (run_command_1, continue_command, step_1, jump_command)
9191 (signal_command, until_command, advance_command, finish_command)
9192 (attach_command): Use prepare_execution_command.
9194 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9196 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9199 (struct arm_linux_thread_points): Removed.
9200 (struct arm_linux_process_info): New.
9201 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9202 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9203 (arm_linux_find_breakpoints_by_tid): Removed.
9204 (struct arch_lwp_info): New.
9205 (arm_linux_find_process_pid): New functions.
9206 (arm_linux_add_process): New functions.
9207 (arm_linux_process_info_get): New functions.
9208 (arm_linux_forget_process): New function.
9209 (arm_linux_get_debug_reg_state): New function.
9210 (struct update_registers_data): New.
9211 (update_registers_callback): New function.
9212 (arm_linux_insert_hw_breakpoint1): Updated.
9213 (arm_linux_remove_hw_breakpoint1): Updated.
9214 (arm_linux_insert_hw_breakpoint): Updated.
9215 (arm_linux_remove_hw_breakpoint): Updated.
9216 (arm_linux_insert_watchpoint): Updated.
9217 (arm_linux_remove_watchpoint): Updated.
9218 (arm_linux_new_thread): Updated.
9219 (arm_linux_prepare_to_resume): New function.
9220 (arm_linux_new_fork): New function.
9221 (_initialize_arm_linux_nat): Updated.
9223 2014-03-12 Pedro Alves <palves@redhat.com>
9225 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9227 2014-03-12 Tom Tromey <tromey@redhat.com>
9229 * inf-child.c (return_zero): New function.
9230 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9231 * aix-thread.c (aix_thread_inferior_created): New function.
9232 (aix_thread_attach): Remove.
9233 (init_aix_thread_ops): Don't set to_attach.
9234 (_initialize_aix_thread): Register inferior_created observer.
9235 * corelow.c (init_core_ops): Don't set to_attach or
9237 * exec.c (init_exec_ops): Don't set to_attach or
9239 * infcmd.c (run_command_1): Use find_run_target. Make direct
9241 (attach_command): Use find_attach_target. Make direct target
9243 * record-btrace.c (init_record_btrace_ops): Don't set
9245 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9247 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9248 set to_create_inferior.
9249 * target.c (complete_target_initialization): Add assertion.
9250 (target_create_inferior): Remove.
9251 (find_default_attach, find_default_create_inferior): Remove.
9252 (find_attach_target, find_run_target): New functions.
9253 (find_default_is_async_p, find_default_can_async_p)
9254 (target_supports_non_stop, target_attach): Remove.
9255 (init_dummy_target): Don't set to_create_inferior or
9256 to_supports_non_stop.
9257 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9258 TARGET_DEFAULT_FUNC.
9259 <to_create_inferior>: Add comment.
9260 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9261 TARGET_DEFAULT_RETURN.
9262 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9263 (find_attach_target, find_run_target): Declare.
9264 (target_create_inferior): Remove.
9265 (target_has_execution_1): Update comment.
9266 (target_supports_non_stop): Remove.
9267 * target-delegates.c: Rebuild.
9269 2014-03-12 Pedro Alves <palves@redhat.com>
9271 * inf-child.h: Update comment to not mention Unix.
9273 2014-03-12 Pedro Alves <palves@redhat.com>
9275 * inf-child.c: Update top comment to not mention Unix. Add
9276 generic comment describing how this target is meant to be used.
9277 (inf_child_post_attach, inf_child_post_startup_inferior)
9278 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9281 2014-03-12 Pedro Alves <palves@redhat.com>
9283 * nto-procfs.c: Include inf-child.h.
9284 (procfs_ops): Delete global.
9285 (procfs_can_run): Delete method.
9286 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9287 target pointer instead of referencing procfs_ops.
9288 (procfs_prepare_to_store): Delete.
9289 (init_procfs_ops): Delete function.
9290 (procfs_target): New function, based on init_procfs_ops, but
9291 inherit inf_child_target.
9292 (_initialize_procfs): Use procfs_target.
9294 2014-03-12 Pedro Alves <palves@redhat.com>
9296 * windows-nat.c: Include inf-child.h.
9297 (windows_ops): Delete global.
9298 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9300 (init_windows_ops): Delete function.
9301 (windows_target): New function, based on init_windows_ops, but
9302 inherit inf_child_target.
9303 (_initialize_windows_nat): Use windows_target. Install x86
9304 specific target methods here.
9306 2014-03-10 Doug Evans <xdje42@gmail.com>
9308 * guile/guile.c (call_initialize_gdb_module): New function.
9309 (initialize_guile): Replace call to scm_init_guile with call to
9312 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9314 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9315 in call to TYPE_CODE macro.
9317 2014-03-10 Jerome Guitton <guitton@adacore.com>
9319 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9320 Resolve tagged types to full view.
9322 2014-03-10 Hui Zhu <hui@codesourcery.com>
9324 * target.h (target_insert_breakpoint): Remove "hardware" from its
9327 2014-03-07 Doug Evans <dje@google.com>
9329 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9331 2014-03-07 Doug Evans <dje@google.com>
9333 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9334 Remove unused local comp_dir_attr. Assert exactly one of
9335 stub_comp_unit_die, stub_comp_dir is non-NULL.
9337 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9339 * target.h (complete_target_initialization, add_target):
9342 2014-03-07 Pedro Alves <palves@redhat.com>
9344 * go32-nat.c: Include inf-child.h.
9345 (go32_ops): Delete global.
9346 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9348 (go32_create_inferior): Push the passed in target pointer instead
9349 of referencing go32_ops.
9350 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9351 (go32_target): New function, based on init_go32_ops, but inherit
9353 (_initialize_go32_nat): Use go32_target. Move parts of
9356 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9358 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9359 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9360 SYMBOL_VALUE_ADDRESS.
9361 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9363 2014-03-06 Yao Qi <yao@codesourcery.com>
9365 * breakpoint.c (get_tracepoint_by_number): Remove argument
9366 optional_p. All callers updated. Adjust comments. Update
9368 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9370 2014-03-06 Yao Qi <yao@codesourcery.com>
9372 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9373 early if get_number returns zero. Use 'p' instead of 'args'.
9375 2014-03-06 Yao Qi <yao@codesourcery.com>
9377 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9380 2014-03-06 Yao Qi <yao@codesourcery.com>
9382 PR breakpoints/16508
9383 * tracepoint.c (check_trace_running): New function.
9384 (trace_find_command): Move code to check_trace_running and
9385 call check_trace_running.
9386 (trace_find_pc_command): Likewise.
9387 (trace_find_tracepoint_command): Likewise.
9388 (trace_find_line_command): Likewise.
9389 (trace_find_range_command): Likewise.
9390 * tracepoint.h (check_trace_running): Likewise.
9391 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9393 2014-03-06 Yao Qi <yao@codesourcery.com>
9395 * target.h (struct target_ops) <to_traceframe_info>: Use
9396 TARGET_DEFAULT_NORETURN (tcomplain ()).
9397 * target-delegates.c: Regenerated.
9399 2014-03-05 Pedro Alves <palves@redhat.com>
9402 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9403 void. Update comment.
9404 (dcache_xfer_memory): Delete.
9405 (dcache_read_memory_partial): New, based on the read bits of
9407 (dcache_update): Add status parameter. Use ULONGEST for len, and
9408 adjust. Discard cache lines if the reason for the update was
9410 * dcache.h (dcache_xfer_memory): Delete declaration.
9411 (dcache_read_memory_partial): New declaration.
9412 (dcache_update): Update prototype.
9413 * target.c (raw_memory_xfer_partial): Update the dcache here.
9414 (memory_xfer_partial_1): Don't handle dcache writes here.
9416 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9418 * remote-sim.c (gdbsim_load): Add const to prog.
9420 2014-03-03 Tom Tromey <tromey@redhat.com>
9422 * elfread.c (probe_key): Change to bfd_data.
9423 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9424 now per-BFD, not per-objfile.
9425 * stap-probe.c (stap_probe_destroy): Update comment.
9426 (handle_stap_probe): Allocate on the per-BFD obstack.
9428 2014-03-03 Tom Tromey <tromey@redhat.com>
9430 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9431 * breakpoint.c (create_longjmp_master_breakpoint): Use
9433 (add_location_to_breakpoint, bkpt_probe_insert_location)
9434 (bkpt_probe_remove_location): Update.
9435 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9436 * elfread.c (elf_symfile_relocate_probe): Remove.
9437 (elf_probe_fns): Update.
9438 (insert_exception_resume_breakpoint): Change type of "probe"
9439 parameter to bound_probe.
9440 (check_exception_resume): Update.
9441 * objfiles.c (objfile_relocate1): Don't relocate probes.
9442 * probe.c (bound_probe_s): New typedef.
9443 (parse_probes): Use get_probe_address. Set sal's objfile.
9444 (find_probe_by_pc): Return a bound_probe.
9445 (collect_probes): Return a VEC(bound_probe_s).
9446 (compare_probes): Update.
9447 (gen_ui_out_table_header_info): Change type of "probes"
9449 (info_probes_for_ops): Update.
9450 (get_probe_address): New function.
9451 (probe_safe_evaluate_at_pc): Update.
9452 * probe.h (struct probe_ops) <get_probe_address>: New field.
9453 <set_semaphore, clear_semaphore>: Add objfile parameter.
9454 (struct probe) <objfile>: Remove field.
9456 <address>: Update comment.
9457 (struct bound_probe): New.
9458 (find_probe_by_pc): Return a bound_probe.
9459 (get_probe_address): Declare.
9460 * solib-svr4.c (struct probe_and_action) <address>: New field.
9461 (hash_probe_and_action, equal_probe_and_action): Update.
9462 (register_solib_event_probe): Add address parameter.
9463 (solib_event_probe_at): Update.
9464 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9466 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9467 (stap_get_probe_address): New function.
9468 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9469 (compile_probe_arg): Update.
9470 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9472 (handle_stap_probe): Don't relocate the probe.
9473 (stap_relocate): Remove.
9474 (stap_gen_info_probes_table_values): Update.
9475 (stap_probe_ops): Remove stap_relocate.
9476 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9477 (debug_sym_probe_fns): Update.
9478 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9479 * symtab.c (init_sal): Use memset.
9480 * symtab.h (struct symtab_and_line) <objfile>: New field.
9481 * tracepoint.c (start_tracing, stop_tracing): Update.
9483 2014-03-03 Tom Tromey <tromey@redhat.com>
9485 * probe.h (parse_probes, find_probe_by_pc)
9486 (find_probes_in_objfile): Fix comments.
9488 2014-03-02 Doug Evans <xdje42@gmail.com>
9490 * infrun.c (handle_signal_stop): Replace test for
9491 TARGET_WAITKIND_STOPPED with an assert.
9493 2014-03-02 Doug Evans <xdje42@gmail.com>
9495 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9497 2014-03-02 Doug Evans <xdje42@gmail.com>
9499 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9501 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9503 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9505 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9507 * i386obsd-nat.c: Include "obsd-nat.h".
9508 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9510 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9512 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9514 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9516 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9518 * mips64obsd-nat.c: Include "obsd-nath".
9519 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9521 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9523 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9525 * amd64obsd-nat.c: Include "obsd-nat,h.
9526 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9528 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9530 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9532 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9533 (find_overload_match): Update call to find_oload_champ.
9534 (find_oload_champ_namespace_loop): Likewise
9536 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9538 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9540 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9541 * config/sparc/obsd64.mh: New file.
9542 * sparc64obsd-nat.c: New file.
9544 * obsd-nat.h: New file.
9545 * obsd-nat.c: New file.
9546 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9547 (ALLDEPFILES): Add obsd-nat.c.
9549 2014-02-28 Tom Tromey <tromey@redhat.com>
9551 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9552 * cli-out.h (cli_ui_out_impl): Now const.
9553 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9554 * ui-out.c (struct ui_out) <impl>: Now const.
9555 (default_ui_out_impl): Now const.
9556 (ui_out_new): Make 'impl' parameter const.
9557 * ui-out.h (ui_out_new): Update.
9559 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9561 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9563 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9565 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9567 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9569 Additional PR 8882 fix.
9570 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9572 2014-02-27 Pedro Alves <palves@redhat.com>
9574 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9577 2014-02-27 Pedro Alves <palves@redhat.com>
9580 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9581 * nat/linux-waitpid.c: Include string.h.
9582 (status_to_str): Moved here and made extern.
9583 * nat/linux-waitpid.h (status_to_str): New declaration.
9585 2014-02-27 Hui Zhu <hui@codesourcery.com>
9588 * infrun.c (ptid_match): Move ...
9589 * common/ptid.c (ptid_match): ... here.
9590 * inferior.h (ptid_match): Move ...
9591 * common/ptid.h (ptid_match): ... here.
9593 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9595 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9596 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9599 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9601 * obsd-tdep.c (obsd_auxv_parse): New function.
9602 (obsd_init_abi): Set auxv_parse.
9604 * gdbarch.sh (auxv_parse): New.
9605 * gdbarch.h: Regenerated.
9606 * gdbarch.c: Regenerated.
9607 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9609 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9611 * guile/scm-value.c (gdbscm_history_append_x): New function.
9612 (value_functions): Add it.
9614 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9616 * dwarf2read.c (attr_value_as_address): New function.
9617 (dwarf2_find_base_address, read_call_site_scope): Use
9618 attr_value_as_address in place of DW_ADDR.
9619 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9620 the low and high addresses. Slight rework of the handling
9621 of the high pc being a constant form, and limit it to
9622 DWARF verson 4 or higher.
9623 (dwarf2_record_block_ranges): Likewise.
9624 (read_partial_die): Likewise.
9625 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9627 2014-02-26 Tom Tromey <tromey@redhat.com>
9629 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9631 2014-02-26 Tom Tromey <tromey@redhat.com>
9633 * elfread.c (elf_read_minimal_symbols): Return early if
9634 minimal symbols have already been read. Add "ei" parameter.
9635 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9636 * minsyms.c (prim_record_minimal_symbol_full): Update.
9637 * objfiles.h (struct objstats) <n_minsyms>: Move...
9638 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9639 * symmisc.c (print_objfile_statistics): Update.
9641 2014-02-26 Tom Tromey <tromey@redhat.com>
9643 * elfread.c (elf_read_minimal_symbols): New function, from
9645 (elf_symfile_read): Call it.
9647 2014-02-26 Tom Tromey <tromey@redhat.com>
9649 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9650 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9651 (lookup_minimal_symbol_solib_trampoline)
9652 (lookup_minimal_symbol_by_pc_section_1)
9653 (lookup_minimal_symbol_and_objfile): Update.
9654 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9655 Don't allocate a minimal symbol if minsyms have already been read.
9656 (build_minimal_symbol_hash_tables): Update.
9657 (install_minimal_symbols): Do nothing if minsyms already read.
9658 Use the per-BFD obstack.
9659 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9660 * objfiles.c (allocate_objfile): Call
9661 terminate_minimal_symbol_table later.
9662 (have_minimal_symbols): Update.
9663 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9664 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9665 Move from struct objfile.
9666 <minsyms_read>: New field.
9667 (struct objfile) <msymbols, minimal_symbol_count,
9668 msymbol_hash, msymbol_demangled_hash>: Move.
9669 (ALL_OBJFILE_MSYMBOLS): Update.
9670 * symfile.c (read_symbols): Set minsyms_read.
9671 (reread_symbols): Update.
9672 * symmisc.c (dump_objfile, dump_msymbols): Update.
9674 2014-02-26 Tom Tromey <tromey@redhat.com>
9676 * minsyms.c (msymbols_sort): Remove.
9677 * minsyms.h (msymbols_sort): Remove.
9678 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9679 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9680 * elfread.c (elf_symtab_read): Don't add section offsets.
9681 * xcoffread.c (record_minimal_symbol): Don't add section offset
9682 to minimal symbol address.
9683 * somread.c (text_offset, data_offset): Remove.
9684 (som_symtab_read): Don't add section offsets to minimal symbol
9686 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9687 Don't add section offsets to minimal symbols.
9688 * coffread.c (coff_symtab_read): Don't add section offsets
9689 to minimal symbol addresses.
9690 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9691 to minimal symbol addresses.
9692 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9693 section offset to minimal symbol addresses.
9694 * mdebugread.c (parse_partial_symbols): Don't add section
9695 offset to minimal symbol addresses.
9696 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9697 offset to minimal symbol addresses.
9699 2014-02-26 Tom Tromey <tromey@redhat.com>
9701 * ada-lang.c (ada_main_name): Update.
9702 (ada_add_standard_exceptions): Update.
9703 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9704 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9705 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9706 * auxv.c (ld_so_xfer_auxv): Update.
9707 * avr-tdep.c (avr_scan_prologue): Update.
9708 * ax-gdb.c (gen_var_ref): Update.
9709 * blockframe.c (get_pc_function_start)
9710 (find_pc_partial_function_gnu_ifunc): Update.
9711 * breakpoint.c (create_overlay_event_breakpoint)
9712 (create_longjmp_master_breakpoint)
9713 (create_std_terminate_master_breakpoint)
9714 (create_exception_master_breakpoint): Update.
9715 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9716 * c-valprint.c (c_val_print): Update.
9717 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9718 * common/agent.c (agent_look_up_symbols): Update.
9719 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9720 * dwarf2loc.c (call_site_to_target_addr): Update.
9721 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9722 * elfread.c (elf_gnu_ifunc_record_cache)
9723 (elf_gnu_ifunc_resolve_by_got): Update.
9724 * findvar.c (default_read_var_value): Update.
9725 * frame.c (inside_main_func): Update.
9726 * frv-tdep.c (frv_frame_this_id): Update.
9727 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9728 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9730 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9731 (hppa_hpux_find_dummy_bpaddr): Update.
9732 * hppa-tdep.c (hppa_symbol_address): Update.
9733 * infcmd.c (until_next_command): Update.
9734 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9736 * linespec.c (minsym_found, add_minsym): Update.
9737 * linux-nat.c (get_signo): Update.
9738 * linux-thread-db.c (inferior_has_bug): Update.
9739 * m32c-tdep.c (m32c_return_value)
9740 (m32c_m16c_address_to_pointer): Update.
9741 * m32r-tdep.c (m32r_frame_this_id): Update.
9742 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9743 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9744 * maint.c (maintenance_translate_address): Update.
9745 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9746 (frob_address): New function.
9747 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9748 frob_address. Rename parameter to "pc_in".
9749 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9751 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9753 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9754 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9755 * objc-lang.c (find_objc_msgsend): Update.
9756 * objfiles.c (objfile_relocate1): Update.
9757 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9758 * p-valprint.c (pascal_val_print): Update.
9759 * parse.c (write_exp_msymbol): Update.
9760 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9761 (ppc_elfv2_skip_entrypoint): Update.
9762 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9763 * printcmd.c (build_address_symbolic, msym_info)
9764 (address_info): Update.
9765 * proc-service.c (ps_pglobal_lookup): Update.
9766 * psymtab.c (find_pc_sect_psymtab_closer)
9767 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9768 Change msymbol parameter to bound_minimal_symbol.
9769 * ravenscar-thread.c (get_running_thread_id): Update.
9770 * remote.c (remote_check_symbols): Update.
9771 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9773 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9774 * solib-dsbt.c (lm_base): Update.
9775 * solib-frv.c (lm_base, main_got): Update.
9776 * solib-irix.c (locate_base): Update.
9777 * solib-som.c (som_solib_create_inferior_hook)
9778 (link_map_start): Update.
9779 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9780 * solib-svr4.c (elf_locate_base, enable_break): Update.
9781 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9782 (flush_ea_cache): Update.
9783 * stabsread.c (define_symbol, scan_file_globals): Update.
9784 * stack.c (find_frame_funname): Update.
9785 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9786 (debug_qf_find_pc_sect_symtab): Update.
9787 * symfile.c (simple_read_overlay_table)
9788 (simple_overlay_update): Update.
9789 * symfile.h (struct quick_symbol_functions)
9790 <find_pc_sect_symtab>: Change type of msymbol to
9791 bound_minimal_symbol.
9792 * symmisc.c (dump_msymbols): Update.
9793 * symtab.c (find_pc_sect_symtab_via_partial)
9794 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9795 (search_symbols, print_msymbol_info): Update.
9796 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9797 (MSYMBOL_VALUE_ADDRESS): Redefine.
9798 (BMSYMBOL_VALUE_ADDRESS): New macro.
9799 * tracepoint.c (scope_info): Update.
9800 * tui/tui-disasm.c (tui_find_disassembly_address)
9801 (tui_get_begin_asm_address): Update.
9802 * valops.c (find_function_in_inferior): Update.
9803 * value.c (value_static_field, value_fn_field): Update.
9805 2014-02-26 Tom Tromey <tromey@redhat.com>
9807 * ada-lang.c (ada_update_initial_language): Update.
9808 (ada_main_name, ada_has_this_exception_support): Update.
9809 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9810 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9811 * arm-tdep.c (arm_skip_stub): Update.
9812 * auxv.c (ld_so_xfer_auxv): Update.
9813 * avr-tdep.c (avr_scan_prologue): Update.
9814 * ax-gdb.c (gen_var_ref): Update.
9815 * breakpoint.c (struct breakpoint_objfile_data)
9816 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9817 type to bound_minimal_symbol.
9818 (create_overlay_event_breakpoint)
9819 (create_longjmp_master_breakpoint)
9820 (create_std_terminate_master_breakpoint)
9821 (create_exception_master_breakpoint): Update.
9822 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9823 * c-exp.y (classify_name): Update.
9824 * coffread.c (coff_symfile_read): Update.
9825 * common/agent.c (agent_look_up_symbols): Update.
9826 * d-lang.c (d_main_name): Update.
9827 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9828 * dec-thread.c (enable_dec_thread): Update.
9829 * dwarf2loc.c (call_site_to_target_addr): Update.
9830 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9831 * eval.c (evaluate_subexp_standard): Update.
9832 * findvar.c (struct minsym_lookup_data) <result>: Change type
9833 to bound_minimal_symbol.
9835 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9836 * frame.c (inside_main_func): Update.
9837 * frv-tdep.c (frv_frame_this_id): Update.
9838 * gcore.c (call_target_sbrk): Update.
9839 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9840 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9842 * go-lang.c (go_main_name): Update.
9843 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9844 (hppa_hpux_find_import_stub_for_addr): Update.
9845 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9846 Update. Change return type.
9847 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9849 * jit.c (jit_breakpoint_re_set_internal): Update.
9850 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9852 * linux-nat.c (get_signo): Update.
9853 * linux-thread-db.c (inferior_has_bug): Update
9854 * m32c-tdep.c (m32c_return_value)
9855 (m32c_m16c_address_to_pointer): Update.
9856 * m32r-tdep.c (m32r_frame_this_id): Update.
9857 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9858 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9859 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9860 lookup_minimal_symbol. Change return type.
9861 (lookup_minimal_symbol): Remove.
9862 (lookup_bound_minimal_symbol): Update.
9863 (lookup_minimal_symbol_text): Change return type.
9864 (lookup_minimal_symbol_solib_trampoline): Change return type.
9865 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9866 (lookup_minimal_symbol_solib_trampoline): Change return type.
9867 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9868 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9869 (value_nsstring, find_imps): Update.
9870 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9871 * p-lang.c (pascal_main_name): Update.
9872 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9873 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9874 * proc-service.c (ps_pglobal_lookup): Update.
9875 * ravenscar-thread.c (get_running_thread_msymbol): Change
9877 (has_ravenscar_runtime, get_running_thread_id): Update.
9878 * remote.c (remote_check_symbols): Update.
9879 * sol-thread.c (ps_pglobal_lookup): Update.
9880 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9881 * solib-dsbt.c (lm_base): Update.
9882 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9884 * solib-irix.c (locate_base): Update.
9885 * solib-som.c (som_solib_create_inferior_hook)
9886 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9888 * solib-spu.c (spu_enable_break): Update.
9889 * solib-svr4.c (elf_locate_base, enable_break): Update.
9890 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9891 (flush_ea_cache): Update.
9892 * stabsread.c (define_symbol): Update.
9893 * symfile.c (simple_read_overlay_table): Update.
9894 * symtab.c (find_pc_sect_line): Update.
9895 * tracepoint.c (scope_info): Update.
9896 * tui-disasm.c (tui_get_begin_asm_address): Update.
9897 * value.c (value_static_field): Update.
9899 2014-02-26 Tom Tromey <tromey@redhat.com>
9901 * minsyms.c (prim_record_minimal_symbol_full): Use
9902 SET_MSYMBOL_VALUE_ADDRESS.
9903 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9904 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9905 SET_MSYMBOL_VALUE_ADDRESS.
9906 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9907 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9909 2014-02-26 Tom Tromey <tromey@redhat.com>
9911 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9912 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9913 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9914 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9915 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9916 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9917 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9918 * ada-lang.c (ada_main_name): Update.
9919 (ada_lookup_simple_minsym): Update.
9920 (ada_make_symbol_completion_list): Update.
9921 (ada_add_standard_exceptions): Update.
9922 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9923 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9924 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9925 * arm-tdep.c (skip_prologue_function): Update.
9926 (arm_skip_stack_protector, arm_skip_stub): Update.
9927 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9928 (arm_wince_skip_main_prologue): Update.
9929 * auxv.c (ld_so_xfer_auxv): Update.
9930 * avr-tdep.c (avr_scan_prologue): Update.
9931 * ax-gdb.c (gen_var_ref): Update.
9932 * block.c (call_site_for_pc): Update.
9933 * blockframe.c (get_pc_function_start): Update.
9934 (find_pc_partial_function_gnu_ifunc): Update.
9935 * breakpoint.c (create_overlay_event_breakpoint): Update.
9936 (create_longjmp_master_breakpoint): Update.
9937 (create_std_terminate_master_breakpoint): Update.
9938 (create_exception_master_breakpoint): Update.
9939 (resolve_sal_pc): Update.
9940 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9941 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9943 * c-valprint.c (c_val_print): Update.
9944 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9945 * coffread.c (coff_symfile_read): Update.
9946 * common/agent.c (agent_look_up_symbols): Update.
9947 * dbxread.c (find_stab_function_addr): Update.
9948 (end_psymtab): Update.
9949 * dwarf2loc.c (call_site_to_target_addr): Update.
9950 (func_verify_no_selftailcall): Update.
9951 (tailcall_dump): Update.
9952 (call_site_find_chain_1): Update.
9953 (dwarf_expr_reg_to_entry_parameter): Update.
9954 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9955 (elf_gnu_ifunc_resolve_by_got): Update.
9956 * f-valprint.c (info_common_command): Update.
9957 * findvar.c (read_var_value): Update.
9958 * frame.c (get_prev_frame_1): Update.
9959 (inside_main_func): Update.
9960 * frv-tdep.c (frv_skip_main_prologue): Update.
9961 (frv_frame_this_id): Update.
9962 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9963 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9964 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9965 (gnuv3_skip_trampoline): Update.
9966 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9967 (hppa64_hpux_in_solib_call_trampoline): Update.
9968 (hppa_hpux_skip_trampoline_code): Update.
9969 (hppa64_hpux_search_dummy_call_sequence): Update.
9970 (hppa_hpux_find_import_stub_for_addr): Update.
9971 (hppa_hpux_find_dummy_bpaddr): Update.
9972 * hppa-tdep.c (hppa_symbol_address)
9973 (hppa_lookup_stub_minimal_symbol): Update.
9974 * i386-tdep.c (i386_skip_main_prologue): Update.
9975 (i386_pe_skip_trampoline_code): Update.
9976 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9977 * infcall.c (get_function_name): Update.
9978 * infcmd.c (until_next_command): Update.
9979 * jit.c (jit_breakpoint_re_set_internal): Update.
9980 (jit_inferior_init): Update.
9981 * linespec.c (minsym_found): Update.
9982 (add_minsym): Update.
9983 * linux-fork.c (info_checkpoints_command): Update.
9984 * linux-nat.c (get_signo): Update.
9985 * linux-thread-db.c (inferior_has_bug): Update.
9986 * m32c-tdep.c (m32c_return_value): Update.
9987 (m32c_m16c_address_to_pointer): Update.
9988 (m32c_m16c_pointer_to_address): Update.
9989 * m32r-tdep.c (m32r_frame_this_id): Update.
9990 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9991 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9992 * maint.c (maintenance_translate_address): Update.
9993 * minsyms.c (add_minsym_to_hash_table): Update.
9994 (add_minsym_to_demangled_hash_table): Update.
9995 (msymbol_objfile): Update.
9996 (lookup_minimal_symbol): Update.
9997 (iterate_over_minimal_symbols): Update.
9998 (lookup_minimal_symbol_text): Update.
9999 (lookup_minimal_symbol_by_pc_name): Update.
10000 (lookup_minimal_symbol_solib_trampoline): Update.
10001 (lookup_minimal_symbol_by_pc_section_1): Update.
10002 (lookup_minimal_symbol_and_objfile): Update.
10003 (prim_record_minimal_symbol_full): Update.
10004 (compare_minimal_symbols): Update.
10005 (compact_minimal_symbols): Update.
10006 (build_minimal_symbol_hash_tables): Update.
10007 (install_minimal_symbols): Update.
10008 (terminate_minimal_symbol_table): Update.
10009 (find_solib_trampoline_target): Update.
10010 (minimal_symbol_upper_bound): Update.
10011 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10012 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10013 (mips_skip_pic_trampoline_code): Update.
10014 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10015 * objc-lang.c (selectors_info): Update.
10016 (classes_info): Update.
10017 (find_methods): Update.
10018 (find_imps): Update.
10019 (find_objc_msgsend): Update.
10020 * objfiles.c (objfile_relocate1): Update.
10021 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10022 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10023 * p-valprint.c (pascal_val_print): Update.
10024 * parse.c (write_exp_msymbol): Update.
10025 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10026 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10027 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10028 * printcmd.c (build_address_symbolic): Update.
10029 (sym_info): Update.
10030 (address_info): Update.
10031 * proc-service.c (ps_pglobal_lookup): Update.
10032 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10033 (find_pc_sect_psymtab): Update.
10034 * python/py-framefilter.c (py_print_frame): Update.
10035 * ravenscar-thread.c (get_running_thread_id): Update.
10036 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10038 * remote.c (remote_check_symbols): Update.
10039 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10040 (rs6000_skip_trampoline_code): Update.
10041 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10042 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10043 * solib-dsbt.c (lm_base): Update.
10044 * solib-frv.c (lm_base): Update.
10045 (main_got): Update.
10046 * solib-irix.c (locate_base): Update.
10047 * solib-som.c (som_solib_create_inferior_hook): Update.
10048 (som_solib_desire_dynamic_linker_symbols): Update.
10049 (link_map_start): Update.
10050 * solib-spu.c (spu_enable_break): Update.
10051 (ocl_enable_break): Update.
10052 * solib-svr4.c (elf_locate_base): Update.
10053 (enable_break): Update.
10054 * spu-tdep.c (spu_get_overlay_table): Update.
10055 (spu_catch_start): Update.
10056 (flush_ea_cache): Update.
10057 * stabsread.c (define_symbol): Update.
10058 (scan_file_globals): Update.
10059 * stack.c (find_frame_funname): Update.
10060 (frame_info): Update.
10061 * symfile.c (simple_read_overlay_table): Update.
10062 (simple_overlay_update): Update.
10063 * symmisc.c (dump_msymbols): Update.
10064 * symtab.c (fixup_section): Update.
10065 (find_pc_sect_line): Update.
10066 (skip_prologue_sal): Update.
10067 (search_symbols): Update.
10068 (print_msymbol_info): Update.
10069 (rbreak_command): Update.
10070 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10071 (completion_list_objc_symbol): Update.
10072 (default_make_symbol_completion_list_break_on): Update.
10073 * tracepoint.c (scope_info): Update.
10074 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10075 (tui_get_begin_asm_address): Update.
10076 * valops.c (find_function_in_inferior): Update.
10077 * value.c (value_static_field): Update.
10078 (value_fn_field): Update.
10080 2014-02-26 Tom Tromey <tromey@redhat.com>
10082 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10083 bound minimal symbols. Move code that knows about minsym
10085 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10087 * minsyms.h (minimal_symbol_upper_bound): Declare.
10088 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10089 minimal_symbol_upper_bound.
10091 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10093 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10094 Use the type's name if its basic type does not have a tag.
10096 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10098 * dwarf2read.c (read_subrange_type): Add comment.
10100 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10102 * dwarf2read.c (update_enumeration_type_from_children): New
10103 function, mostly extracted from process_structure_scope.
10104 (read_enumeration_type): Call update_enumeration_type_from_children.
10105 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10106 and flag_flag_enum fields.
10108 2014-02-26 Pedro Alves <palves@redhat.com>
10110 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10111 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10112 to_xfer_partial method.
10114 2014-02-26 Pedro Alves <palves@redhat.com>
10116 * target.c (complete_target_initialization): Don't install
10117 default_xfer_partial as to_xfer_partial hook.
10118 (nomemory): Delete.
10119 (update_current_target): Don't INHERIT nor de_fault
10120 deprecated_xfer_memory. Delete de_fault macro.
10121 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10122 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10123 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10126 2014-02-26 Pedro Alves <palves@redhat.com>
10128 * go32-nat.c (my_write_child): New function.
10129 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10130 (go32_xfer_partial): New function.
10131 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10132 Instead install a to_xfer_partial hook.
10134 2014-02-26 Pedro Alves <palves@redhat.com>
10136 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10137 to_xfer_partial helper. Rewrite.
10138 (procfs_xfer_partial): New function.
10139 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10140 Install a to_xfer_partial hook.
10142 2014-02-26 Pedro Alves <palves@redhat.com>
10144 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10145 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10146 (m32r_xfer_partial): New function.
10147 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10148 Install a to_xfer_partial hook.
10150 2014-02-26 Pedro Alves <palves@redhat.com>
10152 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10154 (mips_xfer_partial): New function.
10155 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10156 hook. Install a to_xfer_partial hook.
10158 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10160 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10161 * gdbtypes.c (create_array_type_with_stride): New function,
10162 renaming create_array_type, but with an added parameter
10163 called "bit_stride".
10164 (create_array_type): Re-implement using
10165 create_array_type_with_stride.
10166 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10167 and DW_AT_bit_stride attributes.
10169 2014-02-26 Pedro Alves <palves@redhat.com>
10171 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10172 task-specific breakpoints.
10174 2014-02-25 Pedro Alves <palves@redhat.com>
10176 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10177 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10179 2014-02-25 Stan Shebs <stan@codesourcery.com>
10181 * defs.h: Annotate comments for Doxygen.
10183 2014-02-25 Tom Tromey <tromey@redhat.com>
10185 * target.h (target_ignore): Don't declare.
10186 * target.c (target_ignore): Remove.
10188 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10191 * auto-load.c (auto_load_objfile_script_1): Change filename to
10194 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10196 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10197 documentation. Adjust prototype to match the target_ops
10198 to_xfer_partial method. Adjust implementation accordingly.
10200 2014-02-25 Hui Zhu <hui@codesourcery.com>
10202 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10203 to_traceframe_info.
10205 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10207 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10208 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10209 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10210 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10211 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10212 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10213 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10214 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10216 (rl78_register_type): Use a data pointer type for SP and
10217 new pseudo registers mentioned above. Use a 16 bit integer
10218 type for all other register pairs.
10219 (rl78_register_name, rl78_g10_register_name): Update for
10220 new pseudo registers.
10221 (rl78_pseudo_register_read): Likewise.
10222 (rl78_pseudo_register_write): Likewise.
10223 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10224 to the newly added pseudo registers.
10226 2014-02-24 Doug Evans <dje@google.com>
10228 * value.c (record_latest_value): Fix comment.
10229 * printcmd.c (print_command_1): Remove code to handle -1 return from
10230 record_latest_value.
10232 2014-02-24 Pedro Alves <palves@redhat.com>
10234 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10235 deprecated_xfer_memory hook.
10236 (procfs_xfer_partial): Call procfs_xfer_memory instead
10237 of the deprecated_xfer_memory target hook.
10238 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10241 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10243 * windows-nat.c (windows_xfer_shared_libraries): Return
10244 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10245 requested object is TARGET_OBJECT_LIBRARIES.
10247 2014-02-24 Yao Qi <yao@codesourcery.com>
10249 * target.h (enum target_xfer_status)
10250 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10251 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10253 * corefile.c (memory_error_message): User updated.
10254 * exec.c (section_table_read_available_memory): Likewise.
10255 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10256 * target.c (target_xfer_status_to_string): Likewise.
10257 (raw_memory_xfer_partial): Likewise.
10258 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10259 * valops.c (read_value_memory): Likewise.
10260 * exec.h: Update comments.
10262 2014-02-24 Yao Qi <yao@codesourcery.com>
10264 * target.c (target_xfer_status_to_string): Rename argument err
10266 * target.h (target_xfer_status_to_string): Update declaration.
10267 Replace target_xfer_error_to_string with
10268 target_xfer_status_to_string in comment.
10270 2014-02-24 Yao Qi <yao@codesourcery.com>
10272 * mips-linux-nat.c (super_close): Update its type.
10273 (mips_linux_close): Pass 'self' to super_close.
10275 2014-02-24 Yao Qi <yao@codesourcery.com>
10277 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10278 * corefile.c (read_memory): Adjusted.
10279 * target.c (target_write_with_progress): Adjusted.
10281 2014-02-23 Yao Qi <yao@codesourcery.com>
10283 Revert two patches:
10285 2013-10-25 Yao Qi <yao@codesourcery.com>
10287 * remote.c (remote_traceframe_info): Return early if
10288 traceframe is not selected.
10290 2013-07-19 Yao Qi <yao@codesourcery.com>
10292 * target.c (update_current_target): Change the default action
10293 of 'to_traceframe_info' from tcomplain to return_zero.
10294 * target.h (struct target_ops) <to_traceframe_info>: Add more
10297 2014-02-23 Yao Qi <yao@codesourcery.com>
10299 * valops.c (read_value_memory): Rewrite it. Call
10300 target_xfer_partial in a loop.
10301 * exec.h (section_table_available_memory): Remove declaration.
10302 Move comments to ...
10303 * exec.c (section_table_available_memory): ... here. Make it
10306 2014-02-23 Yao Qi <yao@codesourcery.com>
10308 * exec.c (section_table_read_available_memory): New function.
10309 * exec.h (section_table_read_available_memory): Declare.
10310 * ctf.c (ctf_xfer_partial): Call
10311 section_table_read_available_memory.
10312 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10314 2014-02-23 Yao Qi <yao@codesourcery.com>
10316 * ctf.c (ctf_xfer_partial): Move code to ...
10317 * exec.c (exec_read_partial_read_only): ... it. New function.
10318 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10319 * tracefile.c: Include "exec.h".
10320 * exec.h (exec_read_partial_read_only): Declare.
10322 2014-02-23 Yao Qi <yao@codesourcery.com>
10324 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10325 (tfile_has_memory): Remove.
10326 (init_tfile_ops): Don't set fields to_has_all_memory and
10327 to_has_memory of tfile_ops.
10328 * tracefile.c (tracefile_has_all_memory): New function.
10329 (tracefile_has_memory): New function.
10330 (init_tracefile_ops): Initialize fields to_has_all_memory and
10331 to_has_memory of 'ops'.
10333 2014-02-23 Yao Qi <yao@codesourcery.com>
10335 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10336 (ctf_thread_alive, ctf_get_trace_status): Remove.
10337 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10338 init_tracefile_ops.
10339 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10340 (tfile_has_stack, tfile_has_registers): Remove.
10341 (tfile_thread_alive): Remove.
10342 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10343 init_tracefile_ops.
10344 * tracefile.c (tracefile_has_stack): New function.
10345 (tracefile_has_registers): New function.
10346 (tracefile_thread_alive): New function.
10347 (tracefile_get_trace_status): New function.
10348 (init_tracefile_ops): New function.
10349 * tracefile.h (init_tracefile_ops): Declare.
10351 2014-02-23 Yao Qi <yao@codesourcery.com>
10353 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10354 (O_LARGEFILE): Likewise.
10355 (tfile_ops): Likewise.
10356 (TRACE_HEADER_SIZE): Likewise.
10357 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10358 (cur_data_size): Likewise.
10359 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10360 (tfile_close, tfile_files_info): Likewise.
10361 (tfile_get_trace_status): Likewise.
10362 (tfile_get_tracepoint_status): Likewise.
10363 (tfile_get_traceframe_address): Likewise.
10364 (tfile_trace_find, match_blocktype): Likewise.
10365 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10366 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10367 (tfile_get_trace_state_variable_value): Likewise.
10368 (tfile_has_all_memory, tfile_has_memory): Likewise.
10369 (tfile_has_stack, tfile_has_registers): Likewise.
10370 (tfile_thread_alive, build_traceframe_info): Likewise.
10371 (tfile_traceframe_info, init_tfile_ops): Likewise.
10372 (_initialize_tracepoint): Don't call init_tfile_ops
10373 and add_target_with_completer.
10374 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10375 exec.h, completer.h and filenames.h.
10376 (_initialize_tracefile_tfile): New function.
10378 2014-02-23 Yao Qi <yao@codesourcery.com>
10380 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10382 (HFILES_NO_SRCDIR): Add tracefile.h.
10383 * ctf.c: Include "tracefile.h".
10384 * tracefile.h: New file.
10385 * tracefile.c: New file
10386 * tracefile-tfile.c: New file.
10387 * tracepoint.c: Include "tracefile.h".
10388 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10389 (stop_reason_names): Add const.
10390 (trace_file_writer_xfree): Move it to tracefile.c.
10391 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10392 (trace_save_ctf): Likewise.
10393 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10394 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10395 (tfile_write_header, tfile_write_regblock_type): Likewise.
10396 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10397 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10398 (tfile_write_raw_data, tfile_end): Likewise.
10399 (tfile_trace_file_writer_new): Likewise.
10400 (free_uploaded_tp): Make it extern.
10401 (free_uploaded_tsv): Make it extern.
10402 (_initialize_tracepoint): Move code to register command 'tsave'
10404 * tracepoint.h (stop_reason_names): Declare.
10405 (struct trace_frame_write_ops): Move it to tracefile.h.
10406 (struct trace_file_write_ops): Likewise.
10407 (struct trace_file_writer): Likewise.
10408 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10410 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10413 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10415 (get_cores_used_by_process): New parameter num_cores, use it.
10416 (linux_xfer_osdata_processes): Pass num_cores to it.
10417 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10420 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10422 * target.c (memory_xfer_partial): Fix length arg in call to
10423 breakpoint_xfer_memory.
10425 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10428 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10429 number comes after the + or - signs. Adjust length of register
10430 name to be extracted.
10432 2014-02-20 Tom Tromey <tromey@redhat.com>
10434 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10435 (ada_varobj_ops): Mark "extern".
10437 2014-02-20 Tom Tromey <tromey@redhat.com>
10439 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10441 2014-02-20 Doug Evans <xdje42@gmail.com>
10443 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10444 All callers updated.
10445 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10446 All callers updated.
10447 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10448 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10450 2014-02-20 lin zuojian <manjian2006@gmail.com>
10451 Joel Brobecker <brobecker@adacore.com>
10452 Doug Evans <xdje42@gmail.com>
10455 * dwarf2read.c (struct die_info): New member in_process.
10456 (reset_die_in_process): New function.
10457 (process_die): Set it at the start, reset when returning.
10458 (inherit_abstract_dies): Only call process_die if origin_child_die
10459 not already being processed.
10461 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10463 * windows-nat.c (handle_unload_dll): Add function documentation.
10464 (do_initial_windows_stuff): Add comment explaining why we wait
10465 until after inferior initialization has finished before
10466 processing all DLLs.
10468 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10470 * windows-nat.c (get_module_name): Delete.
10471 (windows_get_exec_module_filename): New function, mostly
10472 inspired from get_module_name.
10473 (windows_pid_to_exec_file): Replace call to get_module_name
10474 by call to windows_get_exec_module_filename.
10476 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10478 * windows-nat.c (handle_load_dll): Rewrite this function's
10479 introductory comment. Remove code using get_module_name
10480 to get the DLL's name.
10482 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10484 * windows-nat.c (get_windows_debug_event): Ignore
10485 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10486 if windows_initialization_done == 0.
10487 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10488 Adjust implementation to always load all DLLs.
10489 (do_initial_windows_stuff): Replace call to
10490 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10492 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10494 * windows-nat.c (_initialize_windows_nat): Deprecate the
10495 "dll-symbols" command. Turn the "add-shared-symbol-files"
10496 and "assf" aliases into commands, and deprecate them as well.
10497 * NEWS: Add entry explaining that "dll-symbols" and its two
10498 aliases are now deprecated.
10500 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10502 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10503 new-line in debug string. Remove trailing spaces.
10505 2014-02-19 Stan Shebs <stan@codesourcery.com>
10507 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10509 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10511 * NEWS: Add entry for the new feature
10512 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10515 2014-02-19 Stan Shebs <stan@codesourcery.com>
10517 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10519 2014-02-19 Pedro Alves <palves@redhat.com>
10521 * common/ptid.h (struct ptid): Mention that process_stratum
10522 targets should prefer ptid.lwp.
10524 2014-02-19 Pedro Alves <palves@redhat.com>
10526 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10527 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10528 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10529 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10530 store remote thread ids rather than ptid.tid.
10531 (_initialize_remote): Adjust.
10533 2014-02-19 Tom Tromey <tromey@redhat.com>
10535 * target.c (target_get_unwinder): Rewrite.
10536 (target_get_tailcall_unwinder): Rewrite.
10537 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10538 (record_btrace_to_get_tailcall_unwinder): New function.
10539 (init_record_btrace_ops): Update.
10540 * target.h (struct target_ops) <to_get_unwinder,
10541 to_get_tailcall_unwinder>: Now function pointers. Use
10542 TARGET_DEFAULT_RETURN.
10544 2014-02-19 Tom Tromey <tromey@redhat.com>
10546 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10548 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10550 2014-02-19 Tom Tromey <tromey@redhat.com>
10552 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10554 * target-delegates.c: Rebuild.
10555 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10556 TARGET_DEFAULT_FUNC.
10557 * target.c (default_target_decr_pc_after_break): Rename from
10558 forward_target_decr_pc_after_break. Simplify.
10559 (target_decr_pc_after_break): Rely on delegation.
10561 2014-02-19 Tom Tromey <tromey@redhat.com>
10563 * target.c (update_current_target): Do not INHERIT to_doc or
10564 to_magic. Do not de_fault to_open or to_close.
10566 2014-02-19 Tom Tromey <tromey@redhat.com>
10568 * gcore.h (objfile_find_memory_regions): Declare.
10569 * gcore.c (objfile_find_memory_regions): No longer static. Add
10571 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10572 * exec.c: Include gcore.h.
10573 (exec_set_find_memory_regions): Remove.
10574 (exec_find_memory_regions): Remove.
10575 (exec_do_find_memory_regions): Remove.
10576 (init_exec_ops): Update.
10577 * defs.h (exec_set_find_memory_regions): Remove.
10579 2014-02-19 Tom Tromey <tromey@redhat.com>
10581 * target-delegates.c: Rebuild.
10582 * target.h (struct target_ops) <to_extra_thread_info,
10583 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10584 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10585 not 0, in TARGET_DEFAULT_RETURN.
10587 2014-02-19 Tom Tromey <tromey@redhat.com>
10589 * target.c (complete_target_initialization): Remove casts. Use
10590 return_zero_has_execution.
10591 (return_zero): Add "ignore" argument.
10592 (return_zero_has_execution): New function.
10593 (init_dummy_target): Remove casts. Use
10594 return_zero_has_execution.
10596 2014-02-19 Tom Tromey <tromey@redhat.com>
10598 * target.c (update_current_target): Update comments. Do not
10599 INHERIT to_stratum.
10601 2014-02-19 Tom Tromey <tromey@redhat.com>
10603 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10605 * corelow.c (core_read_description): Delegate when needed.
10606 * remote.c (remote_read_description): Delegate when needed.
10607 * target-delegates.c: Rebuild.
10608 * target.c (target_read_description): Rewrite.
10609 * target.h (struct target_ops) <to_read_description>: Update
10610 comment. Use TARGET_DEFAULT_RETURN.
10612 2014-02-19 Tom Tromey <tromey@redhat.com>
10614 * target-delegates.c: Rebuild.
10615 * target.c (update_current_target): Don't inherit or default
10617 (find_default_run_target): Check against delegate_can_run.
10618 * target.h (struct target_ops) <to_can_run>: Use
10619 TARGET_DEFAULT_RETURN.
10621 2014-02-19 Tom Tromey <tromey@redhat.com>
10623 * target-delegates.c: Rebuild.
10624 * target.c (target_disconnect): Unconditionally delegate.
10625 * target.h (struct target_ops) <to_disconnect>: Use
10626 TARGET_DEFAULT_NORETURN.
10628 2014-02-19 Tom Tromey <tromey@redhat.com>
10630 * record.c (record_stop): Unconditionally delegate.
10631 * target-delegates.c: Rebuild.
10632 * target.c (target_stop_recording): Unconditionally delegate.
10633 * target.h (struct target_ops) <to_stop_recording>: Use
10634 TARGET_DEFAULT_IGNORE.
10636 2014-02-19 Tom Tromey <tromey@redhat.com>
10638 * target-delegates.c: Rebuild.
10639 * target.c (target_enable_btrace): Unconditionally delegate.
10640 * target.h (struct target_ops) <to_enable_btrace>: Use
10641 TARGET_DEFAULT_NORETURN.
10643 2014-02-19 Tom Tromey <tromey@redhat.com>
10645 * target-delegates.c: Rebuild.
10646 * target.c (target_read_btrace): Unconditionally delegate.
10647 * target.h (struct target_ops) <to_read_btrace>: Use
10648 TARGET_DEFAULT_NORETURN.
10650 2014-02-19 Tom Tromey <tromey@redhat.com>
10652 * target-delegates.c: Rebuild.
10653 * target.c (target_teardown_btrace): Unconditionally delegate.
10654 * target.h (struct target_ops) <to_teardown_btrace>: Use
10655 TARGET_DEFAULT_NORETURN.
10657 2014-02-19 Tom Tromey <tromey@redhat.com>
10659 * target-delegates.c: Rebuild.
10660 * target.c (target_disable_btrace): Unconditionally delegate.
10661 * target.h (struct target_ops) <to_disable_btrace>: Use
10662 TARGET_DEFAULT_NORETURN.
10664 2014-02-19 Tom Tromey <tromey@redhat.com>
10666 * target-delegates.c: Rebuild.
10667 * target.c (default_search_memory): New function.
10668 (simple_search_memory): Update comment.
10669 (target_search_memory): Unconditionally delegate.
10670 * target.h (struct target_ops) <to_search_memory>: Use
10671 TARGET_DEFAULT_FUNC.
10673 2014-02-19 Tom Tromey <tromey@redhat.com>
10675 * auxv.c (default_auxv_parse): No longer static.
10676 (target_auxv_parse): Unconditionally delegate.
10677 * auxv.h (default_auxv_parse): Declare.
10678 * target-delegates.c: Rebuild.
10679 * target.c: Include auxv.h.
10680 * target.h (struct target_ops) <to_auxv_parse>: Use
10681 TARGET_DEFAULT_FUNC.
10683 2014-02-19 Tom Tromey <tromey@redhat.com>
10685 * target-delegates.c: Rebuild.
10686 * target.c (target_memory_map): Unconditionally delegate.
10687 * target.h (struct target_ops) <to_memory_map>: Use
10688 TARGET_DEFAULT_RETURN.
10690 2014-02-19 Tom Tromey <tromey@redhat.com>
10692 * target-delegates.c: Rebuild.
10693 * target.c (target_thread_alive): Unconditionally delegate.
10694 * target.h (struct target_ops) <to_thread_alive>: Use
10695 TARGET_DEFAULT_RETURN.
10697 2014-02-19 Tom Tromey <tromey@redhat.com>
10699 * target-delegates.c: Rebuild.
10700 * target.c (target_save_record): Unconditionally delegate.
10701 * target.h (struct target_ops) <to_save_record>: Use
10702 TARGET_DEFAULT_NORETURN.
10704 2014-02-19 Tom Tromey <tromey@redhat.com>
10706 * target-delegates.c: Rebuild.
10707 * target.c (target_delete_record): Unconditionally delegate.
10708 * target.h (struct target_ops) <to_delete_record>: Use
10709 TARGET_DEFAULT_NORETURN.
10711 2014-02-19 Tom Tromey <tromey@redhat.com>
10713 * target-delegates.c: Rebuild.
10714 * target.c (target_record_is_replaying): Unconditionally
10716 * target.h (struct target_ops) <to_record_is_replaying>: Use
10717 TARGET_DEFAULT_RETURN.
10719 2014-02-19 Tom Tromey <tromey@redhat.com>
10721 * target-delegates.c: Rebuild.
10722 * target.c (target_goto_record_begin): Unconditionally delegate.
10723 * target.h (struct target_ops) <to_goto_record_begin>: Use
10724 TARGET_DEFAULT_NORETURN.
10726 2014-02-19 Tom Tromey <tromey@redhat.com>
10728 * target-delegates.c: Rebuild.
10729 * target.c (target_goto_record_end): Unconditionally delegate.
10730 * target.h (struct target_ops) <to_goto_record_end>: Use
10731 TARGET_DEFAULT_NORETURN.
10733 2014-02-19 Tom Tromey <tromey@redhat.com>
10735 * target-delegates.c: Rebuild.
10736 * target.c (target_goto_record): Unconditionally delegate.
10737 * target.h (struct target_ops) <to_goto_record>: Use
10738 TARGET_DEFAULT_NORETURN.
10740 2014-02-19 Tom Tromey <tromey@redhat.com>
10742 * target-delegates.c: Rebuild.
10743 * target.c (target_insn_history): Unconditionally delegate.
10744 * target.h (struct target_ops) <to_insn_history>: Use
10745 TARGET_DEFAULT_NORETURN.
10747 2014-02-19 Tom Tromey <tromey@redhat.com>
10749 * target-delegates.c: Rebuild.
10750 * target.c (target_insn_history_from): Unconditionally delegate.
10751 * target.h (struct target_ops) <to_insn_history_from>: Use
10752 TARGET_DEFAULT_NORETURN.
10754 2014-02-19 Tom Tromey <tromey@redhat.com>
10756 * target-delegates.c: Rebuild.
10757 * target.c (target_insn_history_range): Unconditionally delegate.
10758 * target.h (struct target_ops) <to_insn_history_range>: Use
10759 TARGET_DEFAULT_NORETURN.
10761 2014-02-19 Tom Tromey <tromey@redhat.com>
10763 * target-delegates.c: Rebuild.
10764 * target.c (target_call_history): Unconditionally delegate.
10765 * target.h (struct target_ops) <to_call_history>: Use
10766 TARGET_DEFAULT_NORETURN.
10768 2014-02-19 Tom Tromey <tromey@redhat.com>
10770 * target-delegates.c: Rebuild.
10771 * target.c (target_call_history_from): Unconditionally delegate.
10772 * target.h (struct target_ops) <to_call_history_from>: Use
10773 TARGET_DEFAULT_NORETURN.
10775 2014-02-19 Tom Tromey <tromey@redhat.com>
10777 * target-delegates.c: Rebuild.
10778 * target.c (target_call_history_range): Unconditionally delegate.
10779 * target.h (struct target_ops) <to_call_history_range>: Use
10780 TARGET_DEFAULT_NORETURN.
10782 2014-02-19 Tom Tromey <tromey@redhat.com>
10784 * target-delegates.c: Rebuild.
10785 * target.c (target_verify_memory): Unconditionally delegate.
10786 * target.h (struct target_ops) <to_verify_memory>: Use
10787 TARGET_DEFAULT_NORETURN.
10789 2014-02-19 Tom Tromey <tromey@redhat.com>
10791 * target-delegates.c: Rebuild.
10792 * target.c (target_core_of_thread): Unconditionally delegate.
10793 * target.h (struct target_ops) <to_core_of_thread>: Use
10794 TARGET_DEFAULT_RETURN.
10796 2014-02-19 Tom Tromey <tromey@redhat.com>
10798 * target-delegates.c: Rebuild.
10799 * target.c (target_flash_done): Unconditionally delegate.
10800 * target.h (struct target_ops) <to_flash_done>: Use
10801 TARGET_DEFAULT_NORETURN.
10803 2014-02-19 Tom Tromey <tromey@redhat.com>
10805 * target-delegates.c: Rebuild.
10806 * target.c (target_flash_erase): Unconditionally delegate.
10807 * target.h (struct target_ops) <to_flash_erase>: Use
10808 TARGET_DEFAULT_NORETURN.
10810 2014-02-19 Tom Tromey <tromey@redhat.com>
10812 * target-delegates.c: Rebuild.
10813 * target.c (target_get_section_table): Unconditionally delegate.
10814 * target.h (struct target_ops) <to_get_section_table>: Use
10815 TARGET_DEFAULT_RETURN.
10817 2014-02-19 Tom Tromey <tromey@redhat.com>
10819 * target-delegates.c: Rebuild.
10820 * target.c (target_pid_to_str): Unconditionally delegate.
10821 (init_dummy_target): Don't initialize to_pid_to_str.
10822 (default_pid_to_str): Rename from dummy_pid_to_str.
10823 * target.h (struct target_ops) <to_pid_to_str>: Use
10824 TARGET_DEFAULT_FUNC.
10826 2014-02-19 Tom Tromey <tromey@redhat.com>
10828 * target-delegates.c: Rebuild.
10829 * target.c (target_find_new_threads): Unconditionally delegate.
10830 * target.h (struct target_ops) <to_find_new_threads>: Use
10831 TARGET_DEFAULT_RETURN.
10833 2014-02-19 Tom Tromey <tromey@redhat.com>
10835 * target-delegates.c: Rebuild.
10836 * target.c (target_program_signals): Unconditionally delegate.
10837 * target.h (struct target_ops) <to_program_signals>: Use
10838 TARGET_DEFAULT_IGNORE.
10840 2014-02-19 Tom Tromey <tromey@redhat.com>
10842 * target-delegates.c: Rebuild.
10843 * target.c (target_pass_signals): Unconditionally delegate.
10844 * target.h (struct target_ops) <to_pass_signals>: Use
10845 TARGET_DEFAULT_IGNORE.
10847 2014-02-19 Tom Tromey <tromey@redhat.com>
10849 * target-delegates.c: Rebuild.
10850 * target.c (default_mourn_inferior): New function.
10851 (target_mourn_inferior): Unconditionally delegate.
10852 * target.h (struct target_ops) <to_mourn_inferior>: Use
10853 TARGET_DEFAULT_FUNC.
10855 2014-02-19 Tom Tromey <tromey@redhat.com>
10857 * target-delegates.c: Rebuild.
10858 * target.c (default_follow_fork): New function.
10859 (target_follow_fork): Unconditionally delegate.
10860 * target.h (struct target_ops) <to_follow_fork>: Use
10861 TARGET_DEFAULT_FUNC.
10863 2014-02-19 Tom Tromey <tromey@redhat.com>
10865 * target-delegates.c: Rebuild.
10866 * target.c (target_kill): Unconditionally delegate.
10867 * target.h (struct target_ops) <to_kill>: Use
10868 TARGET_DEFAULT_NORETURN.
10870 2014-02-19 Tom Tromey <tromey@redhat.com>
10872 * target-delegates.c: Rebuild.
10873 * target.c (target_masked_watch_num_registers): Unconditionally
10875 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10876 Use TARGET_DEFAULT_RETURN.
10878 2014-02-19 Tom Tromey <tromey@redhat.com>
10880 * target-delegates.c: Rebuild.
10881 * target.c (target_remove_mask_watchpoint): Unconditionally
10883 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10884 TARGET_DEFAULT_RETURN.
10886 2014-02-19 Tom Tromey <tromey@redhat.com>
10888 * target-delegates.c: Rebuild.
10889 * target.c (target_insert_mask_watchpoint): Unconditionally
10891 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10892 TARGET_DEFAULT_RETURN.
10894 2014-02-19 Tom Tromey <tromey@redhat.com>
10896 * target-delegates.c: Rebuild.
10897 * target.c (target_ranged_break_num_registers): Unconditionally
10899 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10900 Use TARGET_DEFAULT_RETURN.
10902 2014-02-19 Tom Tromey <tromey@redhat.com>
10904 * target-delegates.c: Rebuild.
10905 * target.c (target_fetch_registers): Unconditionally delegate.
10906 * target.h (struct target_ops) <to_fetch_registers>: Use
10907 TARGET_DEFAULT_NORETURN.
10909 2014-02-19 Tom Tromey <tromey@redhat.com>
10911 * target-delegates.c: Rebuild.
10912 * target.c (update_current_target): Don't inherit or default
10914 * target.h (struct target_ops) <to_stop>: Use
10915 TARGET_DEFAULT_IGNORE.
10917 2014-02-19 Tom Tromey <tromey@redhat.com>
10919 * target-delegates.c: Rebuild.
10920 * target.c (update_current_target): Don't inherit or default
10921 to_can_run_breakpoint_commands.
10922 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10923 Use TARGET_DEFAULT_RETURN.
10925 2014-02-19 Tom Tromey <tromey@redhat.com>
10927 * target-delegates.c: Rebuild.
10928 * target.c (update_current_target): Don't inherit or default
10929 to_supports_evaluation_of_breakpoint_conditions.
10930 * target.h (struct target_ops)
10931 <to_supports_evaluation_of_breakpoint_conditions>: Use
10932 TARGET_DEFAULT_RETURN.
10934 2014-02-19 Tom Tromey <tromey@redhat.com>
10936 * target-delegates.c: Rebuild.
10937 * target.c (update_current_target): Don't inherit or default
10938 to_augmented_libraries_svr4_read.
10939 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10940 Use TARGET_DEFAULT_RETURN.
10942 2014-02-19 Tom Tromey <tromey@redhat.com>
10944 * target-delegates.c: Rebuild.
10945 * target.c (update_current_target): Don't inherit or default
10947 * target.h (struct target_ops) <to_can_use_agent>: Use
10948 TARGET_DEFAULT_RETURN.
10950 2014-02-19 Tom Tromey <tromey@redhat.com>
10952 * target-delegates.c: Rebuild.
10953 * target.c (update_current_target): Don't inherit or default
10955 * target.h (struct target_ops) <to_use_agent>: Use
10956 TARGET_DEFAULT_NORETURN.
10958 2014-02-19 Tom Tromey <tromey@redhat.com>
10960 * target-delegates.c: Rebuild.
10961 * target.c (update_current_target): Don't inherit or default
10962 to_traceframe_info.
10963 (return_null): Remove.
10964 * target.h (struct target_ops) <to_traceframe_info>: Use
10965 TARGET_DEFAULT_RETURN.
10967 2014-02-19 Tom Tromey <tromey@redhat.com>
10969 * target-delegates.c: Rebuild.
10970 * target.c (update_current_target): Don't inherit or default
10971 to_static_tracepoint_markers_by_strid.
10972 * target.h (struct target_ops)
10973 <to_static_tracepoint_markers_by_strid>: Use
10974 TARGET_DEFAULT_NORETURN.
10976 2014-02-19 Tom Tromey <tromey@redhat.com>
10978 * target-delegates.c: Rebuild.
10979 * target.c (update_current_target): Don't inherit or default
10980 to_static_tracepoint_marker_at.
10981 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10982 Use TARGET_DEFAULT_RETURN.
10984 2014-02-19 Tom Tromey <tromey@redhat.com>
10986 * target-delegates.c: Rebuild.
10987 * target.c (update_current_target): Don't inherit or default
10988 to_set_permissions.
10989 * target.h (struct target_ops) <to_set_permissions>: Use
10990 TARGET_DEFAULT_IGNORE.
10992 2014-02-19 Tom Tromey <tromey@redhat.com>
10994 * target-delegates.c: Rebuild.
10995 * target.c (update_current_target): Don't inherit or default
10996 to_get_tib_address.
10997 * target.h (struct target_ops) <to_get_tib_address>: Use
10998 TARGET_DEFAULT_NORETURN.
11000 2014-02-19 Tom Tromey <tromey@redhat.com>
11002 * target-delegates.c: Rebuild.
11003 * target.c (update_current_target): Don't inherit or default
11004 to_set_trace_notes.
11005 * target.h (struct target_ops) <to_set_trace_notes>: Use
11006 TARGET_DEFAULT_RETURN.
11008 2014-02-19 Tom Tromey <tromey@redhat.com>
11010 * target-delegates.c: Rebuild.
11011 * target.c (update_current_target): Don't initialize
11012 to_set_trace_buffer_size.
11013 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11014 TARGET_DEFAULT_IGNORE.
11016 2014-02-19 Tom Tromey <tromey@redhat.com>
11018 * target-delegates.c: Rebuild.
11019 * target.c (update_current_target): Don't inherit or default
11020 to_set_circular_trace_buffer.
11021 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11022 TARGET_DEFAULT_IGNORE.
11024 2014-02-19 Tom Tromey <tromey@redhat.com>
11026 * target-delegates.c: Rebuild.
11027 * target.c (update_current_target): Don't inherit or default
11028 to_set_disconnected_tracing.
11029 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11030 TARGET_DEFAULT_IGNORE.
11032 2014-02-19 Tom Tromey <tromey@redhat.com>
11034 * target-delegates.c: Rebuild.
11035 * target.c (update_current_target): Don't inherit or default
11036 to_get_min_fast_tracepoint_insn_len.
11037 (return_minus_one): Remove.
11038 * target.h (struct target_ops)
11039 <to_get_min_fast_tracepoint_insn_len>: 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_get_raw_trace_data.
11046 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11047 TARGET_DEFAULT_NORETURN.
11049 2014-02-19 Tom Tromey <tromey@redhat.com>
11051 * target-delegates.c: Rebuild.
11052 * target.c (update_current_target): Don't inherit or default
11053 to_upload_trace_state_variables.
11054 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11055 Use TARGET_DEFAULT_RETURN.
11057 2014-02-19 Tom Tromey <tromey@redhat.com>
11059 * target-delegates.c: Rebuild.
11060 * target.c (update_current_target): Don't inherit or default
11061 to_upload_tracepoints.
11062 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11063 TARGET_DEFAULT_RETURN.
11065 2014-02-19 Tom Tromey <tromey@redhat.com>
11067 * target-delegates.c: Rebuild.
11068 * target.c (update_current_target): Don't inherit or default
11069 to_save_trace_data.
11070 * target.h (struct target_ops) <to_save_trace_data>: Use
11071 TARGET_DEFAULT_NORETURN.
11073 2014-02-19 Tom Tromey <tromey@redhat.com>
11075 * target-delegates.c: Rebuild.
11076 * target.c (update_current_target): Don't inherit or default
11077 to_get_trace_state_variable_value.
11078 * target.h (struct target_ops)
11079 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11081 2014-02-19 Tom Tromey <tromey@redhat.com>
11083 * target-delegates.c: Rebuild.
11084 * target.c (update_current_target): Don't inherit or default
11086 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11088 2014-02-19 Tom Tromey <tromey@redhat.com>
11090 * target-delegates.c: Rebuild.
11091 * target.c (update_current_target): Don't inherit or default
11093 * target.h (struct target_ops) <to_trace_stop>: Use
11094 TARGET_DEFAULT_NORETURN.
11096 2014-02-19 Tom Tromey <tromey@redhat.com>
11098 * target-delegates.c: Rebuild.
11099 * target.c (update_current_target): Don't inherit or default
11100 to_get_tracepoint_status.
11101 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11102 TARGET_DEFAULT_NORETURN.
11104 2014-02-19 Tom Tromey <tromey@redhat.com>
11106 * target-delegates.c: Rebuild.
11107 * target.c (update_current_target): Don't inherit or default
11108 to_get_trace_status.
11109 * target.h (struct target_ops) <to_get_trace_status>: Use
11110 TARGET_DEFAULT_RETURN.
11112 2014-02-19 Tom Tromey <tromey@redhat.com>
11114 * target-delegates.c: Rebuild.
11115 * target.c (update_current_target): Don't inherit or default
11117 * target.h (struct target_ops) <to_trace_start>: Use
11118 TARGET_DEFAULT_NORETURN.
11120 2014-02-19 Tom Tromey <tromey@redhat.com>
11122 * target-delegates.c: Rebuild.
11123 * target.c (update_current_target): Don't inherit or default
11124 to_trace_set_readonly_regions.
11125 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11126 Use TARGET_DEFAULT_NORETURN.
11128 2014-02-19 Tom Tromey <tromey@redhat.com>
11130 * target-delegates.c: Rebuild.
11131 * target.c (update_current_target): Don't inherit or default
11132 to_disable_tracepoint.
11133 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11134 TARGET_DEFAULT_NORETURN.
11136 2014-02-19 Tom Tromey <tromey@redhat.com>
11138 * target-delegates.c: Rebuild.
11139 * target.c (update_current_target): Don't inherit or default
11140 to_enable_tracepoint.
11141 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11142 TARGET_DEFAULT_NORETURN.
11144 2014-02-19 Tom Tromey <tromey@redhat.com>
11146 * target-delegates.c: Rebuild.
11147 * target.c (update_current_target): Don't inherit or default
11148 to_download_trace_state_variable.
11149 * target.h (struct target_ops) <to_download_trace_state_variable>:
11150 Use TARGET_DEFAULT_NORETURN.
11152 2014-02-19 Tom Tromey <tromey@redhat.com>
11154 * target-delegates.c: Rebuild.
11155 * target.c (update_current_target): Don't inherit or default
11156 to_can_download_tracepoint.
11157 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11158 TARGET_DEFAULT_RETURN.
11160 2014-02-19 Tom Tromey <tromey@redhat.com>
11162 * target-delegates.c: Rebuild.
11163 * target.c (update_current_target): Don't inherit or default
11164 to_download_tracepoint.
11165 * target.h (struct target_ops) <to_download_tracepoint>: Use
11166 TARGET_DEFAULT_NORETURN.
11168 2014-02-19 Tom Tromey <tromey@redhat.com>
11170 * target-delegates.c: Rebuild.
11171 * target.c (update_current_target): Don't inherit or default
11173 * target.h (struct target_ops) <to_trace_init>: Use
11174 TARGET_DEFAULT_RETURN.
11176 2014-02-19 Tom Tromey <tromey@redhat.com>
11178 * target-delegates.c: Rebuild.
11179 * target.c (update_current_target): Don't inherit or default
11180 to_supports_string_tracing.
11181 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11182 TARGET_DEFAULT_RETURN.
11184 2014-02-19 Tom Tromey <tromey@redhat.com>
11186 * target-delegates.c: Rebuild.
11187 * target.c (update_current_target): Don't inherit or default
11188 to_supports_enable_disable_tracepoint.
11189 * target.h (struct target_ops)
11190 <to_supports_enable_disable_tracepoint>: Use
11191 TARGET_DEFAULT_RETURN.
11193 2014-02-19 Tom Tromey <tromey@redhat.com>
11195 * target-delegates.c: Rebuild.
11196 * target.c (update_current_target): Don't inherit or default
11197 to_supports_multi_process.
11198 * target.h (struct target_ops) <to_supports_multi_process>: Use
11199 TARGET_DEFAULT_RETURN.
11201 2014-02-19 Tom Tromey <tromey@redhat.com>
11203 * target-delegates.c: Rebuild.
11204 * target.c (update_current_target): Don't inherit or default
11205 to_get_ada_task_ptid.
11206 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11207 TARGET_DEFAULT_FUNC.
11209 2014-02-19 Tom Tromey <tromey@redhat.com>
11211 * target-delegates.c: Rebuild.
11212 * target.c (update_current_target): Don't inherit or default
11213 to_thread_architecture.
11214 * target.h (struct target_ops) <to_thread_architecture>: Use
11215 TARGET_DEFAULT_FUNC.
11217 2014-02-19 Tom Tromey <tromey@redhat.com>
11219 * target-delegates.c: Rebuild.
11220 * target.c (update_current_target): Don't inherit or default
11221 to_execution_direction.
11222 * target.h (struct target_ops) <to_execution_direction>: Use
11223 TARGET_DEFAULT_FUNC.
11225 2014-02-19 Tom Tromey <tromey@redhat.com>
11227 * target-delegates.c: Rebuild.
11228 * target.c (update_current_target): Don't inherit or default
11229 to_can_execute_reverse.
11230 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11231 TARGET_DEFAULT_RETURN.
11232 (target_can_execute_reverse): Unconditionally delegate.
11234 2014-02-19 Tom Tromey <tromey@redhat.com>
11236 * target-delegates.c: Rebuild.
11237 * target.c (update_current_target): Don't inherit or default
11239 (dummy_goto_bookmark): Remove.
11240 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11241 * target.h (struct target_ops) <to_goto_bookmark>: Use
11242 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
11249 (dummy_get_bookmark): Remove.
11250 (init_dummy_target): Don't inherit or default to_get_bookmark.
11251 * target.h (struct target_ops) <to_get_bookmark>: Use
11252 TARGET_DEFAULT_NORETURN
11254 2014-02-19 Tom Tromey <tromey@redhat.com>
11256 * target-delegates.c: Rebuild.
11257 * target.c (update_current_target): Don't inherit or default
11258 to_make_corefile_notes.
11259 (init_dummy_target): Don't initialize to_make_corefile_notes.
11260 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11261 TARGET_DEFAULT_FUNC.
11263 2014-02-19 Tom Tromey <tromey@redhat.com>
11265 * target-delegates.c: Rebuild.
11266 * target.c (update_current_target): Don't inherit or default
11267 to_find_memory_regions.
11268 (init_dummy_target): Don't initialize to_find_memory_regions.
11269 * target.h (struct target_ops) <to_find_memory_regions>: Use
11270 TARGET_DEFAULT_FUNC.
11272 2014-02-19 Tom Tromey <tromey@redhat.com>
11274 * target-delegates.c: Rebuild.
11275 * target.c (update_current_target): Don't inherit or default
11277 * target.h (struct target_ops) <to_log_command>: Use
11278 TARGET_DEFAULT_IGNORE.
11279 (target_log_command): Unconditionally delegate.
11281 2014-02-19 Tom Tromey <tromey@redhat.com>
11283 * target-delegates.c: Rebuild.
11284 * target.c (update_current_target): Don't inherit or default
11285 to_pid_to_exec_file.
11286 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11287 TARGET_DEFAULT_RETURN.
11289 2014-02-19 Tom Tromey <tromey@redhat.com>
11291 * target-delegates.c: Rebuild.
11292 * target.c (update_current_target): Don't inherit or default
11294 (target_thread_name): Unconditionally delegate.
11295 * target.h (struct target_ops) <to_thread_name>: Use
11296 TARGET_DEFAULT_RETURN.
11298 2014-02-19 Tom Tromey <tromey@redhat.com>
11300 * target-delegates.c: Rebuild.
11301 * target.c (update_current_target): Don't inherit or default
11302 to_extra_thread_info.
11303 * target.h (struct target_ops) <to_extra_thread_info>: Use
11304 TARGET_DEFAULT_RETURN.
11306 2014-02-19 Tom Tromey <tromey@redhat.com>
11308 * target-delegates.c: Rebuild.
11309 * target.c (update_current_target): Don't inherit or default
11311 * target.h (struct target_ops) <to_has_exited>: Use
11312 TARGET_DEFAULT_RETURN..
11314 2014-02-19 Tom Tromey <tromey@redhat.com>
11316 * target-delegates.c: Rebuild.
11317 * target.c (update_current_target): Don't inherit or default
11318 to_set_syscall_catchpoint.
11319 (return_one): Remove.
11320 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11321 TARGET_DEFAULT_RETURN.
11323 2014-02-19 Tom Tromey <tromey@redhat.com>
11325 * target-delegates.c: Rebuild.
11326 * target.c (update_current_target): Don't inherit or default
11327 to_insert_exec_catchpoint.
11328 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11329 TARGET_DEFAULT_RETURN.
11331 2014-01-08 Tom Tromey <tromey@redhat.com>
11333 * target-delegates.c: Rebuild.
11334 * target.c (update_current_target): Don't inherit or default
11335 to_insert_exec_catchpoint.
11336 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11337 TARGET_DEFAULT_RETURN.
11339 2014-02-19 Tom Tromey <tromey@redhat.com>
11341 * target-delegates.c: Rebuild.
11342 * target.c (update_current_target): Don't inherit or default
11343 to_remove_vfork_catchpoint.
11344 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11345 TARGET_DEFAULT_RETURN.
11347 2014-02-19 Tom Tromey <tromey@redhat.com>
11349 * target-delegates.c: Rebuild.
11350 * target.c (update_current_target): Don't inherit or default
11351 to_insert_vfork_catchpoint.
11352 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11353 TARGET_DEFAULT_RETURN.
11355 2014-02-19 Tom Tromey <tromey@redhat.com>
11357 * target-delegates.c: Rebuild.
11358 * target.c (update_current_target): Don't inherit or default
11359 to_remove_fork_catchpoint.
11360 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11361 TARGET_DEFAULT_RETURN.
11363 2014-02-19 Tom Tromey <tromey@redhat.com>
11365 * target-delegates.c: Rebuild.
11366 * target.c (update_current_target): Don't inherit or default
11367 to_insert_fork_catchpoint.
11368 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11369 TARGET_DEFAULT_RETURN.
11371 2014-02-19 Tom Tromey <tromey@redhat.com>
11373 * target-delegates.c: Rebuild.
11374 * target.c (update_current_target): Don't inherit or default
11375 to_post_startup_inferior.
11376 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11377 TARGET_DEFAULT_IGNORE.
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
11384 * target.h (struct target_ops) <to_load>: Use
11385 TARGET_DEFAULT_NORETURN.
11387 2014-02-19 Tom Tromey <tromey@redhat.com>
11389 * target-delegates.c: Rebuild.
11390 * target.c (update_current_target): Don't inherit or default
11392 * target.h (struct target_ops) <to_terminal_info>: Use
11393 TARGET_DEFAULT_FUNC.
11395 2014-02-19 Tom Tromey <tromey@redhat.com>
11397 * target-delegates.c: Rebuild.
11398 * target.c (update_current_target): Don't inherit or default
11399 to_terminal_save_ours.
11400 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11401 TARGET_DEFAULT_IGNORE.
11403 2014-02-19 Tom Tromey <tromey@redhat.com>
11405 * target-delegates.c: Rebuild.
11406 * target.c (update_current_target): Don't inherit or default
11408 * target.h (struct target_ops) <to_terminal_ours>: Use
11409 TARGET_DEFAULT_IGNORE.
11411 2014-02-19 Tom Tromey <tromey@redhat.com>
11413 * target-delegates.c: Rebuild.
11414 * target.c (update_current_target): Don't inherit or default
11415 to_terminal_ours_for_output.
11416 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11417 TARGET_DEFAULT_IGNORE.
11419 2014-02-19 Tom Tromey <tromey@redhat.com>
11421 * target-delegates.c: Rebuild.
11422 * target.c (update_current_target): Don't inherit or default
11423 to_terminal_inferior.
11424 * target.h (struct target_ops) <to_terminal_inferior>: Use
11425 TARGET_DEFAULT_IGNORE.
11427 2014-02-19 Tom Tromey <tromey@redhat.com>
11429 * target-delegates.c: Rebuild.
11430 * target.c (update_current_target): Don't inherit or default
11432 * target.h (struct target_ops) <to_terminal_init>: Use
11433 TARGET_DEFAULT_IGNORE.
11435 2014-02-19 Tom Tromey <tromey@redhat.com>
11437 * target-delegates.c: Rebuild.
11438 * target.c (update_current_target): Don't inherit or default
11439 to_can_accel_watchpoint_condition.
11440 * target.h (struct target_ops)
11441 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11443 2014-02-19 Tom Tromey <tromey@redhat.com>
11445 * target-delegates.c: Rebuild.
11446 * target.c (update_current_target): Don't inherit or default
11447 to_region_ok_for_hw_watchpoint.
11448 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11449 Use TARGET_DEFAULT_FUNC.
11451 2014-02-19 Tom Tromey <tromey@redhat.com>
11453 * target-delegates.c: Rebuild.
11454 * target.c (update_current_target): Don't inherit or default
11455 to_watchpoint_addr_within_range.
11456 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11457 Use TARGET_DEFAULT_FUNC.
11459 2014-02-19 Tom Tromey <tromey@redhat.com>
11461 * target-delegates.c: Rebuild.
11462 * target.c (update_current_target): Don't inherit or default
11463 to_remove_watchpoint.
11464 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11465 TARGET_DEFAULT_NORETURN.
11467 2014-02-19 Tom Tromey <tromey@redhat.com>
11469 * target-delegates.c: Rebuild.
11470 * target.c (update_current_target): Don't inherit or default
11471 to_insert_watchpoint.
11472 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11473 TARGET_DEFAULT_RETURN.
11475 2014-02-19 Tom Tromey <tromey@redhat.com>
11477 * target-delegates.c: Rebuild.
11478 * target.c (update_current_target): Don't inherit or default
11479 to_remove_hw_breakpoint.
11480 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11481 TARGET_DEFAULT_RETURN.
11483 2014-02-19 Tom Tromey <tromey@redhat.com>
11485 * target-delegates.c: Rebuild.
11486 * target.c (update_current_target): Don't inherit or default
11487 to_insert_hw_breakpoint.
11488 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11489 TARGET_DEFAULT_RETURN.
11491 2014-02-19 Tom Tromey <tromey@redhat.com>
11493 * target-delegates.c: Rebuild.
11494 * target.c (update_current_target): Don't inherit or default
11495 to_can_use_hw_breakpoint.
11496 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11497 TARGET_DEFAULT_RETURN.
11499 2014-02-19 Tom Tromey <tromey@redhat.com>
11501 * target-delegates.c: Rebuild.
11502 * target.c (update_current_target): Don't inherit or default
11504 * target.h (struct target_ops) <to_files_info>: Use
11505 TARGET_DEFAULT_IGNORE.
11507 2014-02-19 Tom Tromey <tromey@redhat.com>
11509 * target-delegates.c: Rebuild.
11510 * target.c (update_current_target): Don't inherit or default
11512 * target.h (struct target_ops) <to_store>: Use
11513 TARGET_DEFAULT_NORETURN.
11515 2014-02-19 Tom Tromey <tromey@redhat.com>
11517 * target-delegates.c: Rebuild.
11518 * target.c (update_current_target): Don't inherit or default
11520 * target.h (struct target_ops) <to_post_attach>: Use
11521 TARGET_DEFAULT_IGNORE.
11523 2014-02-19 Tom Tromey <tromey@redhat.com>
11525 * target-delegates.c: Rebuild.
11526 * target.c (update_current_target): Don't inherit or default
11528 (default_rcmd): New function.
11529 (do_monitor_command): Unconditionally delegate.
11530 * target.h (struct target_ops) <to_rmcd>: Use
11531 TARGET_DEFAULT_FUNC.
11533 2014-02-19 Tom Tromey <tromey@redhat.com>
11535 * target-delegates.c: Rebuild.
11536 * target.c (init_dummy_target): Don't initialize to_attach.
11537 (target_attach): Unconditionally delegate.
11538 * target.h (struct target_ops) <to_attach>: Use
11539 TARGET_DEFAULT_FUNC.
11541 2014-02-19 Tom Tromey <tromey@redhat.com>
11543 * target-delegates.c: Rebuild.
11544 * target.c (target_detach): Unconditionally delegate.
11545 (init_dummy_target): Don't initialize to_detach.
11546 * target.h (struct target_ops) <to_detach>: Use
11547 TARGET_DEFAULT_IGNORE.
11549 2014-02-19 Tom Tromey <tromey@redhat.com>
11551 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11553 (target_augmented_libraries_svr4_read): Add argument.
11554 * target.c (update_current_target): Update.
11555 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11558 2014-02-19 Tom Tromey <tromey@redhat.com>
11560 * target.h (struct target_ops) <to_call_history_range>: Add
11562 * target.c (target_call_history_range): Add argument.
11563 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11565 (record_btrace_call_history_from): Update.
11567 2014-02-19 Tom Tromey <tromey@redhat.com>
11569 * target.h (struct target_ops) <to_call_history_from>: Add
11571 * target.c (target_call_history_from): Add argument.
11572 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11575 2014-02-19 Tom Tromey <tromey@redhat.com>
11577 * target.h (struct target_ops) <to_call_history>: Add argument.
11578 * target.c (target_call_history): Add argument.
11579 * record-btrace.c (record_btrace_call_history): Add 'self'
11582 2014-02-19 Tom Tromey <tromey@redhat.com>
11584 * target.h (struct target_ops) <to_insn_history_range>: Add
11586 * target.c (target_insn_history_range): Add argument.
11587 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11589 (record_btrace_insn_history_from): Update.
11591 2014-02-19 Tom Tromey <tromey@redhat.com>
11593 * target.h (struct target_ops) <to_insn_history_from>: Add
11595 * target.c (target_insn_history_from): Add argument.
11596 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11599 2014-02-19 Tom Tromey <tromey@redhat.com>
11601 * target.h (struct target_ops) <to_insn_history>: Add argument.
11602 * target.c (target_insn_history): Add argument.
11603 * record-btrace.c (record_btrace_insn_history): Add 'self'
11606 2014-02-19 Tom Tromey <tromey@redhat.com>
11608 * target.h (struct target_ops) <to_goto_record>: Add argument.
11609 * target.c (target_goto_record): Add argument.
11610 * record-full.c (record_full_goto): Add 'self' argument.
11611 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11613 2014-02-19 Tom Tromey <tromey@redhat.com>
11615 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11616 * target.c (target_goto_record_end): Add argument.
11617 * record-full.c (record_full_goto_end): Add 'self' argument.
11618 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11620 2014-02-19 Tom Tromey <tromey@redhat.com>
11622 * target.h (struct target_ops) <to_goto_record_begin>: Add
11624 * target.c (target_goto_record_begin): Add argument.
11625 * record-full.c (record_full_goto_begin): Add 'self' argument.
11626 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11629 2014-02-19 Tom Tromey <tromey@redhat.com>
11631 * target.h (struct target_ops) <to_record_is_replaying>: Add
11633 * target.c (target_record_is_replaying): Add argument.
11634 * record-full.c (record_full_is_replaying): Add 'self' argument.
11635 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11637 (record_btrace_xfer_partial, record_btrace_store_registers)
11638 (record_btrace_prepare_to_store, record_btrace_resume)
11639 (record_btrace_wait, record_btrace_decr_pc_after_break)
11640 (record_btrace_find_new_threads, record_btrace_thread_alive):
11643 2014-02-19 Tom Tromey <tromey@redhat.com>
11645 * target.h (struct target_ops) <to_delete_record>: Add argument.
11646 * target.c (target_delete_record): Add argument.
11647 * record-full.c (record_full_delete): Add 'self' argument.
11649 2014-02-19 Tom Tromey <tromey@redhat.com>
11651 * target.h (struct target_ops) <to_save_record>: Add argument.
11652 * target.c (target_save_record): Add argument.
11653 * record-full.c (record_full_save): Add 'self' argument.
11654 (record_full_save): Add 'self' argument.
11656 2014-02-19 Tom Tromey <tromey@redhat.com>
11658 * target.h (struct target_ops) <to_info_record>: Add argument.
11659 * target.c (target_info_record): Add argument.
11660 * record.c (info_record_command): Add argument.
11661 * record-full.c (record_full_info): Add 'self' argument.
11662 * record-btrace.c (record_btrace_info): Add 'self' argument.
11664 2014-02-19 Tom Tromey <tromey@redhat.com>
11666 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11667 * target.c (target_stop_recording): Add argument.
11668 * record.c (record_stop): Add argument.
11669 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11672 2014-02-19 Tom Tromey <tromey@redhat.com>
11674 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11675 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11676 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11678 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11679 (_initialize_amd64_linux_nat): Use it.
11680 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11681 (_initialize_i386_linux_nat): Use it.
11683 2014-02-19 Tom Tromey <tromey@redhat.com>
11685 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11686 * target.c (target_teardown_btrace): Add argument.
11687 * remote.c (remote_teardown_btrace): Add 'self' argument.
11688 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11690 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11693 2014-02-19 Tom Tromey <tromey@redhat.com>
11695 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11696 * target.c (target_disable_btrace): Add argument.
11697 * remote.c (remote_disable_btrace): Add 'self' argument.
11698 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11700 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11703 2014-02-19 Tom Tromey <tromey@redhat.com>
11705 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11706 * target.c (target_enable_btrace): Add argument.
11707 * remote.c (remote_enable_btrace): Add 'self' argument.
11708 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11710 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11713 2014-02-19 Tom Tromey <tromey@redhat.com>
11715 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11716 (target_can_use_agent): Add argument.
11717 * target.c (update_current_target): Update.
11718 * remote.c (remote_can_use_agent): Add 'self' argument.
11719 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11721 2014-02-19 Tom Tromey <tromey@redhat.com>
11723 * target.h (struct target_ops) <to_use_agent>: Add argument.
11724 (target_use_agent): Add argument.
11725 * target.c (update_current_target): Update.
11726 * remote.c (remote_use_agent): Add 'self' argument.
11727 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11729 2014-02-19 Tom Tromey <tromey@redhat.com>
11731 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11732 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11733 (target_traceframe_info): Add argument.
11734 * target.c (update_current_target): Update.
11735 * remote.c (remote_traceframe_info): Add 'self' argument.
11736 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11738 2014-02-19 Tom Tromey <tromey@redhat.com>
11740 * target.h (target_static_tracepoint_markers_by_strid): Add
11742 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11744 * target.c (update_current_target): Update.
11745 * remote.c (struct target_ops)
11746 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11747 * linux-nat.c (struct target_ops)
11748 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11750 2014-02-19 Tom Tromey <tromey@redhat.com>
11752 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11754 (target_static_tracepoint_marker_at): Add argument.
11755 * target.c (update_current_target): Update.
11756 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11759 2014-02-19 Tom Tromey <tromey@redhat.com>
11761 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11762 (target_set_permissions): Add argument.
11763 * target.c (update_current_target): Update.
11764 * remote.c (remote_set_permissions): Add 'self' argument.
11765 (remote_start_remote): Update.
11767 2014-02-19 Tom Tromey <tromey@redhat.com>
11769 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11770 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11771 (target_get_tib_address): Add argument.
11772 * target.c (update_current_target): Update.
11773 * remote.c (remote_get_tib_address): Add 'self' argument.
11775 2014-02-19 Tom Tromey <tromey@redhat.com>
11777 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11778 (target_set_trace_notes): Add argument.
11779 * target.c (update_current_target): Update.
11780 * remote.c (remote_set_trace_notes): Add 'self' argument.
11782 2014-02-19 Tom Tromey <tromey@redhat.com>
11784 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11786 (target_set_trace_buffer_size): Add argument.
11787 * target.c (update_current_target): Update.
11788 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11790 2014-02-19 Tom Tromey <tromey@redhat.com>
11792 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11794 (target_set_circular_trace_buffer): Add argument.
11795 * target.c (update_current_target): Update.
11796 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11799 2014-02-19 Tom Tromey <tromey@redhat.com>
11801 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11803 (target_set_disconnected_tracing): Add argument.
11804 * target.c (update_current_target): Update.
11805 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11807 2014-02-19 Tom Tromey <tromey@redhat.com>
11809 * target.h (struct target_ops)
11810 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11811 (target_get_min_fast_tracepoint_insn_len): Add argument.
11812 * target.c (update_current_target): Update.
11813 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11816 2014-02-19 Tom Tromey <tromey@redhat.com>
11818 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11820 (target_get_raw_trace_data): Add argument.
11821 * target.c (update_current_target): Update.
11822 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11824 2014-02-19 Tom Tromey <tromey@redhat.com>
11826 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11828 (target_upload_trace_state_variables): Add argument.
11829 * target.c (update_current_target): Update.
11830 * remote.c (remote_upload_trace_state_variables): Add 'self'
11832 (remote_start_remote): Update.
11834 2014-02-19 Tom Tromey <tromey@redhat.com>
11836 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11838 (target_upload_tracepoints): Add argument.
11839 * target.c (update_current_target): Update.
11840 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11841 (remote_start_remote): Update.
11843 2014-02-19 Tom Tromey <tromey@redhat.com>
11845 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11846 (target_save_trace_data): Add argument.
11847 * target.c (update_current_target): Update.
11848 * remote.c (remote_save_trace_data): Add 'self' argument.
11850 2014-02-19 Tom Tromey <tromey@redhat.com>
11852 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11854 * target.h (struct target_ops)
11855 <to_get_trace_state_variable_value>: Add argument.
11856 (target_get_trace_state_variable_value): Add argument.
11857 * target.c (update_current_target): Update.
11858 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11860 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11862 2014-02-19 Tom Tromey <tromey@redhat.com>
11864 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11865 * target.h (struct target_ops) <to_trace_find>: Add argument.
11866 (target_trace_find): Add argument.
11867 * target.c (update_current_target): Update.
11868 * remote.c (remote_trace_find): Add 'self' argument.
11869 * ctf.c (ctf_trace_find): Add 'self' argument.
11871 2014-02-19 Tom Tromey <tromey@redhat.com>
11873 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11874 (target_trace_stop): Add argument.
11875 * target.c (update_current_target): Update.
11876 * remote.c (remote_trace_stop): Add 'self' argument.
11878 2014-02-19 Tom Tromey <tromey@redhat.com>
11880 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11881 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11883 (target_get_tracepoint_status): Add argument.
11884 * target.c (update_current_target): Update.
11885 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11887 2014-02-19 Tom Tromey <tromey@redhat.com>
11889 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11890 * target.h (struct target_ops) <to_get_trace_status>: Add
11892 (target_get_trace_status): Add argument.
11893 * target.c (update_current_target): Update.
11894 * remote.c (remote_get_trace_status): Add 'self' argument.
11895 (remote_start_remote, remote_can_download_tracepoint): Update.
11896 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11898 2014-02-19 Tom Tromey <tromey@redhat.com>
11900 * target.h (struct target_ops) <to_trace_start>: Add argument.
11901 (target_trace_start): Add argument.
11902 * target.c (update_current_target): Update.
11903 * remote.c (remote_trace_start): Add 'self' argument.
11905 2014-02-19 Tom Tromey <tromey@redhat.com>
11907 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11909 (target_trace_set_readonly_regions): Add argument.
11910 * target.c (update_current_target): Update.
11911 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11914 2014-02-19 Tom Tromey <tromey@redhat.com>
11916 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11918 (target_disable_tracepoint): Add argument.
11919 * target.c (update_current_target): Update.
11920 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11922 2014-02-19 Tom Tromey <tromey@redhat.com>
11924 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11926 (target_enable_tracepoint): Add argument.
11927 * target.c (update_current_target): Update.
11928 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11930 2014-02-19 Tom Tromey <tromey@redhat.com>
11932 * target.h (struct target_ops) <to_download_trace_state_variable>:
11934 (target_download_trace_state_variable): Add argument.
11935 * target.c (update_current_target): Update.
11936 * remote.c (remote_download_trace_state_variable): Add 'self'
11939 2014-02-19 Tom Tromey <tromey@redhat.com>
11941 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11943 (target_can_download_tracepoint): Add argument.
11944 * target.c (update_current_target): Update.
11945 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11947 2014-02-19 Tom Tromey <tromey@redhat.com>
11949 * target.h (struct target_ops) <to_download_tracepoint>: Add
11951 (target_download_tracepoint): Add argument.
11952 * target.c (update_current_target): Update.
11953 * remote.c (remote_download_tracepoint): Add 'self' argument.
11955 2014-02-19 Tom Tromey <tromey@redhat.com>
11957 * target.h (struct target_ops) <to_trace_init>: Add argument.
11958 (target_trace_init): Add argument.
11959 * target.c (update_current_target): Update.
11960 * remote.c (remote_trace_init): Add 'self' argument.
11962 2014-02-19 Tom Tromey <tromey@redhat.com>
11964 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11965 * target.c (target_fileio_readlink): Add argument.
11966 * remote.c (remote_hostio_readlink): Add 'self' argument.
11967 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11969 2014-02-19 Tom Tromey <tromey@redhat.com>
11971 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11972 * target.c (target_fileio_unlink): Add argument.
11973 * remote.c (remote_hostio_unlink): Add 'self' argument.
11974 (remote_file_delete): Update.
11975 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11977 2014-02-19 Tom Tromey <tromey@redhat.com>
11979 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11980 * target.c (target_fileio_close): Add argument.
11981 * remote.c (remote_hostio_close): Add 'self' argument.
11982 (remote_hostio_close_cleanup): Update.
11983 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11985 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11987 2014-02-19 Tom Tromey <tromey@redhat.com>
11989 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11990 * target.c (target_fileio_pread): Add argument.
11991 * remote.c (remote_hostio_pread): Add 'self' argument.
11992 (remote_bfd_iovec_pread, remote_file_get): Update.
11993 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11995 2014-02-19 Tom Tromey <tromey@redhat.com>
11997 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11998 * target.c (target_fileio_pwrite): Add argument.
11999 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12000 (remote_file_put): Update.
12001 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12003 2014-02-19 Tom Tromey <tromey@redhat.com>
12005 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12006 * target.c (target_fileio_open): Add argument.
12007 * remote.c (remote_hostio_open): Add 'self' argument.
12008 (remote_bfd_iovec_open): Add 'self' argument.
12009 (remote_file_put): Add 'self' argument.
12010 (remote_file_get): Add 'self' argument.
12011 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12013 2014-02-19 Tom Tromey <tromey@redhat.com>
12015 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12017 (target_can_run_breakpoint_commands): Add argument.
12018 * target.c (update_current_target): Update.
12019 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12021 (remote_insert_breakpoint): Add 'self' argument.
12022 (remote_insert_hw_breakpoint): Add 'self' argument.
12023 (remote_can_run_breakpoint_commands): Add 'self' argument.
12025 2014-02-19 Tom Tromey <tromey@redhat.com>
12027 * target.h (struct target_ops)
12028 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12029 (target_supports_evaluation_of_breakpoint_conditions): Add
12031 * target.c (update_current_target): Update.
12032 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12034 (remote_insert_breakpoint): Add 'self' argument.
12035 (remote_insert_hw_breakpoint): Add 'self' argument.
12036 (remote_supports_cond_breakpoints): Add 'self' argument.
12038 2014-02-19 Tom Tromey <tromey@redhat.com>
12040 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12042 (target_supports_string_tracing): Add argument.
12043 * target.c (update_current_target): Update.
12044 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12046 2014-02-19 Tom Tromey <tromey@redhat.com>
12048 * target.h (struct target_ops)
12049 <to_supports_disable_randomization>: Add argument.
12050 * target.c (find_default_supports_disable_randomization): Add
12052 (target_supports_disable_randomization): Add argument.
12053 (find_default_supports_disable_randomization): Add 'self'
12055 * remote.c (extended_remote_supports_disable_randomization): Add
12057 (remote_supports_disable_randomization): Add 'self' argument.
12058 (extended_remote_create_inferior): Update.
12059 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12062 2014-02-19 Tom Tromey <tromey@redhat.com>
12064 * target.h (struct target_ops)
12065 <to_supports_enable_disable_tracepoint>: Add argument.
12066 (target_supports_enable_disable_tracepoint): Add argument.
12067 * target.c (update_current_target): Update.
12068 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12071 2014-02-19 Tom Tromey <tromey@redhat.com>
12073 * target.h (struct target_ops) <to_supports_multi_process>: Add
12075 (target_supports_multi_process): Add argument.
12076 * target.c (update_current_target): Update.
12077 * remote.c (remote_supports_multi_process): Add 'self' argument.
12078 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12080 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12083 2014-02-19 Tom Tromey <tromey@redhat.com>
12085 * target.h (struct target_ops) <to_execution_direction>: Add
12087 (target_execution_direction): Add argument.
12088 * target.c (default_execution_direction): Add 'self' argument.
12089 * record-full.c (record_full_execution_direction): Add 'self'
12092 2014-02-19 Tom Tromey <tromey@redhat.com>
12094 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12096 (target_can_execute_reverse): Add argument.
12097 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12098 * record-full.c (record_full_can_execute_reverse): Add 'self'
12100 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12103 2014-02-19 Tom Tromey <tromey@redhat.com>
12105 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12106 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12108 (target_get_ada_task_ptid): Add argument.
12109 * target.c (update_current_target): Update.
12110 (default_get_ada_task_ptid): Add 'self' argument.
12111 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12112 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12113 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12115 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12117 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12119 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12121 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12122 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12125 2014-02-19 Tom Tromey <tromey@redhat.com>
12127 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12128 (target_goto_bookmark): Add argument.
12129 * target.c (dummy_goto_bookmark): Add 'self' argument.
12130 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12132 2014-02-19 Tom Tromey <tromey@redhat.com>
12134 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12135 (target_get_bookmark): Add argument.
12136 * target.c (dummy_get_bookmark): Add 'self' argument.
12137 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12139 2014-02-19 Tom Tromey <tromey@redhat.com>
12141 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12143 (target_make_corefile_notes): Add argument.
12144 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12145 * procfs.c (procfs_make_note_section): Add 'self' argument.
12146 (procfs_make_note_section): Add 'self' argument.
12147 (procfs_make_note_section): Add 'self' argument.
12148 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12150 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12151 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12152 * exec.c (exec_make_note_section): Add 'self' argument.
12153 (exec_make_note_section): Add 'self' argument.
12155 2014-02-19 Tom Tromey <tromey@redhat.com>
12157 * target.h (struct target_ops) <to_find_memory_regions>: Add
12159 (target_find_memory_regions): Add argument.
12160 * target.c (dummy_find_memory_regions): Add 'self' argument.
12161 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12162 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12163 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12164 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12165 * exec. (exec_do_find_memory_regions): New global.
12166 (exec_set_find_memory_regions): Rewrite.
12167 (exec_find_memory_regions): New function.
12168 (init_exec_ops): Use exec_find_memory_regions.
12170 2014-02-19 Tom Tromey <tromey@redhat.com>
12172 * target.h (struct target_ops) <to_supports_non_stop>: Add
12174 * target.c (find_default_supports_non_stop): Add argument.
12175 (target_supports_non_stop): Add argument.
12176 (find_default_supports_non_stop): Add 'self' argument.
12177 * remote.c (remote_supports_non_stop): Add 'self' argument.
12178 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12180 2014-02-19 Tom Tromey <tromey@redhat.com>
12182 * target.h (struct target_ops) <to_log_command>: Add argument.
12183 (target_log_command): Add argument.
12184 * serial.h (serial_log_command): Add 'self' argument.
12185 * serial.c (serial_log_command): Add 'self' argument.
12187 2014-02-19 Tom Tromey <tromey@redhat.com>
12189 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12190 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12192 (target_pid_to_exec_file): Add argument.
12193 * target.c (debug_to_pid_to_exec_file): Add argument.
12194 (update_current_target): Update.
12195 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12196 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12197 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12198 (linux_handle_extended_wait): Update.
12199 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12200 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12201 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12202 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12204 2014-02-19 Tom Tromey <tromey@redhat.com>
12206 * target.h (struct target_ops) <to_rcmd>: Add argument.
12207 (target_rcmd): Add argument.
12208 * target.c (debug_to_rcmd): Add argument.
12209 (update_current_target, do_monitor_command): Update.
12210 * remote.c (remote_rcmd): Add 'self' argument.
12211 * monitor.c (monitor_rcmd): Add 'self' argument.
12213 2014-02-19 Tom Tromey <tromey@redhat.com>
12215 * windows-nat.c (windows_stop): Add 'self' argument.
12216 * target.h (struct target_ops) <to_stop>: Add argument.
12217 * target.c (target_stop): Add argument.
12218 (debug_to_stop): Add argument.
12219 (update_current_target): Update.
12220 * remote.c (remote_stop): Add 'self' argument.
12221 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12222 (gdbsim_cntrl_c): Update.
12223 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12224 * procfs.c (procfs_stop): Add 'self' argument.
12225 * nto-procfs.c (procfs_stop): Add 'self' argument.
12226 * monitor.c (monitor_stop): Add 'self' argument.
12227 (monitor_open): Update.
12228 * linux-nat.c (linux_nat_stop): Add argument.
12229 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12230 * gnu-nat.c (gnu_stop): Add 'self' argument.
12231 * darwin-nat.c (darwin_stop): Add 'self' argument.
12233 2014-02-19 Tom Tromey <tromey@redhat.com>
12235 * target.h (struct target_ops) <to_thread_name>: Add argument.
12236 * target.c (target_thread_name): Add argument.
12237 (update_current_target): Update.
12238 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12240 2014-02-19 Tom Tromey <tromey@redhat.com>
12242 * target.h (struct target_ops) <to_extra_thread_info>: Add
12244 (target_extra_thread_info): Add argument.
12245 * target.c (update_current_target): Update.
12246 * remote.c (remote_threads_extra_info): Add 'self' argument.
12247 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12249 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12250 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12251 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12253 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12255 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12257 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12260 2014-02-19 Tom Tromey <tromey@redhat.com>
12262 * target.h (struct target_ops) <to_program_signals>: Add argument.
12263 * target.c (target_program_signals): Add argument.
12264 * remote.c (remote_program_signals): Add 'self' argument.
12266 2014-02-19 Tom Tromey <tromey@redhat.com>
12268 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12269 * target.c (target_pass_signals): Add argument.
12270 * remote.c (remote_pass_signals): Add 'self' argument.
12271 (remote_start_remote): Update.
12272 * procfs.c (procfs_pass_signals): Add 'self' argument.
12273 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12274 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12275 (linux_nat_create_inferior, linux_nat_attach): Update.
12277 2014-02-19 Tom Tromey <tromey@redhat.com>
12279 * windows-nat.c (windows_can_run): Add 'self' argument.
12280 * target.h (struct target_ops) <to_can_run>: Add argument.
12281 (target_can_run): Add argument.
12282 * target.c (debug_to_can_run): Add argument.
12283 (update_current_target): Update.
12284 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12285 * inf-child.c (inf_child_can_run): Add 'self' argument.
12286 * go32-nat.c (go32_can_run): Add 'self' argument.
12288 2014-02-19 Tom Tromey <tromey@redhat.com>
12290 * target.h (struct target_ops) <to_has_exited>: Add argument.
12291 (target_has_exited): Add argument.
12292 * target.c (debug_to_has_exited): Add argument.
12293 (update_current_target): Update.
12295 2014-02-19 Tom Tromey <tromey@redhat.com>
12297 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12299 (target_set_syscall_catchpoint): Add argument.
12300 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12302 * target.c (update_current_target): Update.
12304 2014-02-19 Tom Tromey <tromey@redhat.com>
12306 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12308 (target_remove_exec_catchpoint): Add argument.
12309 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12310 (update_current_target): Update.
12311 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12314 2014-02-19 Tom Tromey <tromey@redhat.com>
12316 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12318 (target_insert_exec_catchpoint): Add argument.
12319 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12320 (update_current_target): Update.
12321 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12324 2014-02-19 Tom Tromey <tromey@redhat.com>
12326 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12328 (target_remove_vfork_catchpoint): Add argument.
12329 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12330 (update_current_target): Update.
12331 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12334 2014-02-19 Tom Tromey <tromey@redhat.com>
12336 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12338 (target_insert_vfork_catchpoint): Add argument.
12339 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12340 (update_current_target): Update.
12341 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12344 2014-02-19 Tom Tromey <tromey@redhat.com>
12346 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12348 (target_remove_fork_catchpoint): Add argument.
12349 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12350 (update_current_target): Update.
12351 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12354 2014-02-19 Tom Tromey <tromey@redhat.com>
12356 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12358 (target_insert_fork_catchpoint): Add argument.
12359 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12360 (update_current_target): Update.
12361 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12364 2014-02-19 Tom Tromey <tromey@redhat.com>
12366 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12368 (target_post_startup_inferior): Add argument.
12369 * target.c (debug_to_post_startup_inferior): Add argument.
12370 (update_current_target): Update.
12371 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12373 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12375 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12377 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12379 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12381 (super_post_startup_inferior): Likewise.
12382 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12384 (super_post_startup_inferior): Likewise.
12385 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12386 Add 'self' argument.
12387 (super_post_startup_inferior): Likewise.
12389 2014-02-19 Tom Tromey <tromey@redhat.com>
12391 * target.h (struct target_ops) <to_load>: Add argument.
12392 * target.c (target_load): Add argument.
12393 (debug_to_load): Add argument.
12394 (update_current_target): Update.
12395 * remote.c (remote_load): Add 'self' argument.
12396 * remote-sim.c (gdbsim_load): Add 'self' argument.
12397 * remote-mips.c (mips_load): Add 'self' argument.
12398 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12399 * monitor.c (monitor_load): Add 'self' argument.
12400 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12402 2014-02-19 Tom Tromey <tromey@redhat.com>
12404 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12405 (target_terminal_info): Add argument.
12406 * target.c (debug_to_terminal_info): Add argument.
12407 (default_terminal_info): Likewise.
12408 * inflow.c (child_terminal_info): Add 'self' argument.
12409 * inferior.h (child_terminal_info): Add 'self' argument.
12410 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12412 2014-02-19 Tom Tromey <tromey@redhat.com>
12414 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12416 (target_terminal_save_ours): Add argument.
12417 * target.c (debug_to_terminal_save_ours): Add argument.
12418 (update_current_target): Update.
12419 * inflow.c (terminal_save_ours): Add 'self' argument.
12420 * inferior.h (terminal_save_ours): Add 'self' argument.
12422 2014-02-19 Tom Tromey <tromey@redhat.com>
12424 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12425 (target_terminal_ours): Add argument.
12426 * target.c (debug_to_terminal_ours): Add argument.
12427 (update_current_target): Update.
12428 * remote.c (remote_terminal_ours): Add 'self' argument.
12429 (remote_close): Update.
12430 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12431 * inflow.c (terminal_ours): Add 'self' argument.
12432 * inferior.h (terminal_ours): Add 'self' argument.
12433 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12435 2014-02-19 Pedro Alves <palves@redhat.com>
12436 Tom Tromey <tromey@redhat.com>
12438 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12440 (target_terminal_ours_for_output): Add argument.
12441 * target.c (debug_to_terminal_ours_for_output): Add argument.
12442 (update_current_target): Update.
12443 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12444 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12445 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12447 2014-02-19 Tom Tromey <tromey@redhat.com>
12449 * target.h (struct target_ops) <to_terminal_inferior>: Add
12451 * target.c (target_terminal_inferior): Add argument.
12452 (update_current_target): Update.
12453 * remote.c (remote_terminal_inferior): Add 'self' argument.
12454 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12455 * inflow.c (terminal_inferior): Add 'self' argument.
12456 * inferior.h (terminal_inferior): Add 'self' argument.
12457 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12458 (go32_terminal_inferior): Add 'self' argument.
12460 2014-02-19 Tom Tromey <tromey@redhat.com>
12462 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12463 (target_terminal_init): Add argument.
12464 * target.c (debug_to_terminal_init): Add argument.
12465 (update_current_target): Update.
12466 * inflow.c (terminal_init_inferior): Add 'self' argument.
12467 * inferior.h (terminal_init_inferior): Add 'self' argument.
12468 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12469 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12471 2014-02-19 Tom Tromey <tromey@redhat.com>
12473 * target.h (struct target_ops)
12474 <to_can_accel_watchpoint_condition>: Add argument.
12475 (target_can_accel_watchpoint_condition): Add argument.
12476 * target.c (debug_to_can_accel_watchpoint_condition): Add
12478 (update_current_target): Update.
12479 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12482 2014-02-19 Tom Tromey <tromey@redhat.com>
12484 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12486 (target_region_ok_for_hw_watchpoint): Add argument.
12487 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12488 (default_region_ok_for_hw_watchpoint): Add argument.
12489 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12490 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12492 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12494 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12496 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12498 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12500 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12502 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12503 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12505 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12506 Add 'self' argument.
12508 2014-02-19 Tom Tromey <tromey@redhat.com>
12510 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12512 (target_insert_watchpoint): Add argument.
12513 * target.c (debug_to_insert_watchpoint): Add argument.
12514 (update_current_target): Update.
12515 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12516 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12517 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12518 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12519 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12520 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12522 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12523 (procfs_insert_hw_watchpoint): Add 'self' argument.
12524 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12526 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12528 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12530 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12531 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12533 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12536 2014-02-19 Tom Tromey <tromey@redhat.com>
12538 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12540 (target_remove_watchpoint): Add argument.
12541 * target.c (debug_to_remove_watchpoint): Add argument.
12542 (update_current_target): Update.
12543 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12544 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12545 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12546 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12547 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12548 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12550 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12551 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12553 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12555 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12557 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12558 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12560 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12563 2014-02-19 Tom Tromey <tromey@redhat.com>
12565 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12567 (target_remove_hw_breakpoint): Add argument.
12568 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12569 (update_current_target): Update.
12570 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12571 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12573 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12574 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12576 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12579 2014-02-19 Tom Tromey <tromey@redhat.com>
12581 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12583 (target_insert_hw_breakpoint): Add argument.
12584 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12585 (update_current_target): Update.
12586 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12587 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12589 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12590 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12591 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12593 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12596 2014-02-19 Tom Tromey <tromey@redhat.com>
12598 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12600 (target_can_use_hardware_watchpoint): Add argument.
12601 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12602 (update_current_target): Update.
12603 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12605 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12607 * remote.c (remote_check_watch_resources): Add 'self' argument.
12608 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12609 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12611 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12612 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12614 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12616 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12618 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12620 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12622 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12624 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12625 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12627 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12630 2014-02-19 Tom Tromey <tromey@redhat.com>
12632 * target.h (struct target_ops) <to_post_attach>: Add argument.
12633 (target_post_attach): Add argument.
12634 * target.c (debug_to_post_attach): Add argument.
12635 (update_current_target): Update.
12636 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12637 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12638 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12639 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12640 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12642 2014-02-19 Tom Tromey <tromey@redhat.com>
12644 * windows-nat.c (windows_close): Add 'self' argument.
12645 * tracepoint.c (tfile_close): Add 'self' argument.
12646 * target.h (struct target_ops) <to_close>: Add argument.
12647 * target.c (target_close): Add argument.
12648 (update_current_target): Update.
12649 * remote.c (remote_close): Add 'self' argument.
12650 * remote-sim.c (gdbsim_close): Add 'self' argument.
12651 * remote-mips.c (mips_close): Add 'self' argument.
12652 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12653 * record-full.c (record_full_close): Add 'self' argument.
12654 * record-btrace.c (record_btrace_close): Add 'self' argument.
12655 * monitor.h (monitor_close): Add 'self' argument.
12656 * monitor.c (monitor_close): Add 'self' argument.
12657 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12658 * linux-nat.c (linux_nat_close): Add argument.
12659 * go32-nat.c (go32_close): Add 'self' argument.
12660 * exec.c (exec_close_1): Add 'self' argument.
12661 * ctf.c (ctf_close): Add 'self' argument.
12662 * corelow.c (core_close): Add 'self' argument.
12663 (core_close_cleanup): Update.
12664 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12665 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12667 2014-02-19 Tom Tromey <tromey@redhat.com>
12669 * remote.c (remote_load): New function.
12670 (init_remote_ops): Use it.
12672 2014-02-19 Tom Tromey <tromey@redhat.com>
12674 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12676 * common/linux-btrace.h (linux_supports_btrace): Update.
12677 * remote.c (remote_supports_btrace): Add "self" argument.
12678 * target-delegates.c: Rebuild.
12679 * target.c (target_supports_btrace): Remove.
12680 * target.h (struct target_ops) <to_supports_btrace>: Add
12681 target_ops argument.
12682 (target_supports_btrace): New define.
12684 2014-02-19 Tom Tromey <tromey@redhat.com>
12686 * record-full.c (record_full_beneath_to_resume_ops)
12687 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12688 (record_full_beneath_to_wait)
12689 (record_full_beneath_to_store_registers_ops)
12690 (record_full_beneath_to_store_registers)
12691 (record_full_beneath_to_xfer_partial_ops)
12692 (record_full_beneath_to_xfer_partial)
12693 (record_full_beneath_to_insert_breakpoint_ops)
12694 (record_full_beneath_to_insert_breakpoint)
12695 (record_full_beneath_to_remove_breakpoint_ops)
12696 (record_full_beneath_to_remove_breakpoint)
12697 (record_full_beneath_to_stopped_by_watchpoint)
12698 (record_full_beneath_to_stopped_data_address)
12699 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12700 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12701 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12702 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12703 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12704 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12705 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12706 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12707 (record_full_resume, record_full_wait_1)
12708 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12709 (record_full_store_registers, record_full_xfer_partial)
12710 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12711 (record_full_async, record_full_core_xfer_partial): Use target
12713 * target-delegates.c: Rebuild.
12714 * target.c (current_xfer_partial): Remove.
12715 (update_current_target): Do not INHERIT or de_fault
12716 to_insert_breakpoint, to_remove_breakpoint,
12717 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12718 to_is_async_p, to_async. Do not set to_xfer_partial field.
12719 (default_xfer_partial): Simplify.
12720 (current_xfer_partial): Remove.
12721 (target_wait, target_resume): Simplify.
12722 (find_default_can_async_p, find_default_is_async_p): Update.
12723 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12724 to_xfer_partial, to_stopped_by_watchpoint,
12725 to_stopped_data_address.
12726 (target_store_registers): Simplify.
12727 (forward_target_remove_breakpoint)
12728 (forward_target_insert_breakpoint): Remove.
12729 (target_remove_breakpoint, target_insert_breakpoint)
12730 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12731 * target.h (struct target_ops) <to_resume, to_wait,
12732 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12733 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12734 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12736 (forward_target_remove_breakpoint)
12737 (forward_target_insert_breakpoint): Remove.
12738 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12740 (record_btrace_insert_breakpoint): Delegate directly.
12742 2014-02-19 Tom Tromey <tromey@redhat.com>
12745 * target-delegates.c: New file.
12746 * target.c: Include target-delegates.c.
12747 (init_dummy_target): Call install_dummy_methods.
12748 (complete_target_initialization): Call install_delegators.
12749 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12750 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12751 * make-target-delegates: New file.
12753 2014-02-19 Tom Tromey <tromey@redhat.com>
12755 * record.c (find_record_target): Use find_target_at.
12756 * target.c (find_target_at): New function.
12757 * target.h (find_target_at): Declare.
12759 2014-02-19 Tom Tromey <tromey@redhat.com>
12761 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12762 Add 'ops' argument.
12763 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12765 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12766 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12768 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12770 * linux-nat.c (save_sigtrap): Update.
12771 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12772 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12773 (linux_nat_close): Update.
12774 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12776 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12778 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12779 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12780 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12781 (tmp_to_async): Add 'ops' argument.
12782 (record_full_stopped_by_watchpoint, record_full_async)
12783 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12785 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12786 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12787 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12788 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12789 (remote_is_async_p, remote_async): Add 'ops' argument.
12790 (remote_stopped_data_address): Update.
12791 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12792 * target.c (update_current_target)
12793 (find_default_can_async_p, find_default_is_async_p): Update.
12794 (init_dummy_target): Update.
12795 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12796 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12797 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12798 (target_can_async_p, target_is_async_p, target_async)
12799 (target_stopped_by_watchpoint): Update.
12801 2014-02-19 Yao Qi <yao@codesourcery.com>
12804 * gdbarch.sh: Remove startup_gdbarch.
12805 * gdbarch.c: Regenerated.
12806 * gdbarch.h: Likewise.
12808 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12810 * rl78-tdep.c (rl78_g10_register_name): New function.
12811 (rl78_return_value): Add g10 support.
12812 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12815 2014-02-17 Doug Evans <xdje42@gmail.com>
12817 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12818 (SUBDIR_GUILE_SRCS): Ditto.
12819 (scm-gsmob.o): Ditto.
12821 2014-02-17 Yao Qi <yao@codesourcery.com>
12823 * gnu-nat.c (ILL_RPC): Declare defined function.
12825 2014-02-17 Yao Qi <yao@codesourcery.com>
12827 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12828 mach_msg_type_number_t.
12829 (gnu_write_inferior): Likewise.
12831 2014-02-17 Yao Qi <yao@codesourcery.com>
12833 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12835 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12836 (inf_validate_procs, inf_signal): Likewise.
12837 (S_exception_raise_request): Likewise.
12838 (do_mach_notify_dead_name): Likewise.
12839 (steal_exc_port): Likewise.
12840 (gnu_read_inferior): Change 'copy_count''s type to
12841 mach_msg_type_number_t.
12842 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12845 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12847 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12848 flag. Adjust all users; in particular...
12849 (gnu_wait): ..., don't decrement its value in here...
12850 (gnu_create_inferior): ..., and instead set the flag in here,
12851 around the startup_inferior call, and call that one with
12852 START_INFERIOR_TRAPS_EXPECTED.
12854 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12855 (ILL_RPC): ... new macro.
12856 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12857 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12858 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12859 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12860 functions with ILL_RPC macro.
12861 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12862 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12863 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12864 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12865 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12866 (S_proc_getlogin_reply, S_proc_getsid_reply)
12867 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12868 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12869 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12870 (S_proc_getnports_reply, S_proc_is_important_reply)
12871 (S_proc_get_code_reply): New stub functions, generated with
12874 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12875 collected the type check structures.
12877 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12879 2014-02-14 Doug Evans <dje@google.com>
12881 * target.c (target_write_partial): Fix result type.
12883 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12885 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12886 the proper offsets to access fpregset_t.
12888 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12890 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12891 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12892 * h8300-tdep.c (setmachinelist): Remove global.
12893 * hppa-tdep.c (hppa_sigtramp): Remove global.
12894 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12895 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12896 * ravenscar-thread.c (update_target_observer): Remove global.
12897 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12899 2014-02-12 Tom Tromey <tromey@redhat.com>
12901 * common/rsp-low.c: Update comments.
12902 * common/rsp-low.h: Update comments.
12904 2014-02-12 Tom Tromey <tromey@redhat.com>
12906 * common/rsp-low.c (convert_ascii_to_int): Remove.
12907 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12909 2014-02-12 Tom Tromey <tromey@redhat.com>
12911 * common/rsp-low.h (unhexify): Don't declare.
12912 * common/rsp-low.c (unhexify): Remove.
12914 2014-02-12 Tom Tromey <tromey@redhat.com>
12916 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12917 * common/rsp-low.c (convert_int_to_ascii): Remove.
12919 2014-02-12 Tom Tromey <tromey@redhat.com>
12921 * common/rsp-low.h (hexify): Don't declare.
12922 * common/rsp-low.c (hexify): Remove.
12924 2014-02-12 Tom Tromey <tromey@redhat.com>
12926 * common/rsp-low.c (hexify): Never take strlen of argument.
12928 2014-02-12 Tom Tromey <tromey@redhat.com>
12930 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12931 * remote.c (extended_remote_run, remote_rcmd)
12932 (remote_download_trace_state_variable, remote_save_trace_data)
12933 (remote_set_trace_notes): Update.
12934 * tracepoint.c (encode_source_string, tfile_write_status)
12935 (tfile_write_uploaded_tsv): Update.
12937 2014-02-12 Tom Tromey <tromey@redhat.com>
12939 * tracepoint.c: Include rsp-low.h.
12940 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12941 * remote.c: Include rsp-low.h.
12942 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12943 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12944 (remote_unescape_input): Move to common/rsp-low.c.
12945 * common/rsp-low.h: New file.
12946 * common/rsp-low.c: New file.
12947 * Makefile.in (SFILES): Add common/rsp-low.c.
12948 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12949 (COMMON_OBS): Add rsp-low.o.
12950 (rsp-low.o): New target.
12952 2014-02-12 Tom Tromey <tromey@redhat.com>
12954 * utils.h: Include print-utils.h.
12955 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12956 (int_string, core_addr_to_string, core_addr_to_string_nz)
12957 (hex_string, hex_string_custom): Don't declare.
12958 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12959 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12960 (hex_string_custom, int_string, core_addr_to_string)
12961 (core_addr_to_string_nz, host_address_to_string): Move to
12962 common/print-utils.c.
12963 * common/print-utils.h: New file.
12964 * common/print-utils.c: New file
12965 * Makefile.in (SFILES): Add common/print-utils.c.
12966 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12967 (COMMON_OBS): Add print-utils.o.
12968 (print-utils.o): New target.
12970 2014-02-12 Tom Tromey <tromey@redhat.com>
12972 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12974 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12976 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12978 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12980 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12981 if a PT_IO ptrace request returns sucessfully but indicates that 0
12982 bytes were transferred.
12984 2014-02-12 Pedro Alves <palves@redhat.com>
12985 Kevin Buettner <kevinb@redhat.com>
12987 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12988 TYPE_INSTANCE_FLAG_CODE_SPACE.
12990 2014-02-12 Pedro Alves <palves@redhat.com>
12992 * h8300-tdep.c (pseudo_from_raw_register)
12993 (raw_from_pseudo_register): New functions.
12994 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12997 2014-02-12 Pedro Alves <palves@redhat.com>
12999 * h8300-tdep.c (h8300_register_sim_regno): New function.
13000 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13001 gdbarch_register_sim_regno hook.
13003 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13005 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13007 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13009 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13011 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13013 * obsd-tdep.h (obsd_init_abi): New prototype.
13014 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13015 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13016 (obsd_init_abi): New functions.
13017 * i386obsd-tdep.c: Include "obsd-tdep.h".
13018 (i386obsd_init_abi): Call obsd_init_abi.
13019 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13020 (amd64obsd_init_abi): Call obsd_init_abi.
13021 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13022 obsd-tdep.c to gdb_target_obs.
13024 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13026 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13027 double float arguments to 16-byte in the argument slots.
13029 2014-02-11 Doug Evans <xdje42@gmail.com>
13031 * configure.ac: Don't crash if pkg-config is not found and guile
13032 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13034 * configure: Regenerate.
13036 2014-02-11 Yao Qi <yao@codesourcery.com>
13038 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13039 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13040 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13041 * gnu-nat.c (gnu_xfer_memory): Likewise.
13042 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13043 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13044 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13045 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13047 2014-02-11 Yao Qi <yao@codesourcery.com>
13049 * target.h (enum target_xfer_error): Rename to ...
13050 (enum target_xfer_status): ... it. New. All users updated.
13051 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13053 (TARGET_XFER_STATUS_ERROR_P): New macro.
13054 (target_xfer_error_to_string): Remove declaration.
13055 (target_xfer_status_to_string): Declare.
13056 (target_xfer_partial_ftype): Adjust it.
13057 (struct target_ops) <to_xfer_partial>: Return
13058 target_xfer_status. Add argument xfered_len. Update
13060 * target.c (target_xfer_error_to_string): Rename to ...
13061 (target_xfer_status_to_string): ... it. New. All callers
13063 (target_read_live_memory): Likewise. Call target_xfer_partial
13064 instead of target_read.
13065 (memory_xfer_live_readonly_partial): Return
13066 target_xfer_status. Add argument xfered_len.
13067 (raw_memory_xfer_partial): Likewise.
13068 (memory_xfer_partial_1): Likewise.
13069 (memory_xfer_partial): Likewise.
13070 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13071 properly. Update debug message.
13072 (default_xfer_partial, current_xfer_partial): Likewise.
13073 (target_write_partial): Likewise.
13074 (target_read_partial): Likewise. All callers updated.
13075 (read_whatever_is_readable): Likewise.
13076 (target_write_with_progress): Likewise.
13077 (target_read_alloc_1): Likewise.
13079 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13080 * auxv.c (procfs_xfer_auxv): Likewise.
13081 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13082 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13083 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13084 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13085 * corefile.c (read_memory): Adjust.
13086 * corelow.c (core_xfer_partial): Likewise.
13087 * ctf.c (ctf_xfer_partial): Likewise.
13088 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13090 (darwin_xfer_partial): Likewise.
13091 * exec.c (section_table_xfer_memory_partial): Likewise. All
13093 (exec_xfer_partial): Likewise.
13094 * exec.h (section_table_xfer_memory_partial): Update
13096 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13098 (gnu_xfer_partial): Likewise.
13099 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13100 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13101 (ia64_hpux_xfer_solib_got): Likewise.
13102 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13103 type of 'partial_len' to ULONGEST.
13104 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13105 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13106 (linux_nat_xfer_partial): Likewise.
13107 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13108 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13109 * monitor.c (monitor_xfer_memory): Likewise.
13110 (monitor_xfer_partial): Likewise.
13111 * procfs.c (procfs_xfer_partial): Likewise.
13112 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13113 * record-full.c (record_full_xfer_partial): Likewise.
13114 (record_full_core_xfer_partial): Likewise.
13115 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13116 (gdbsim_xfer_partial): Likewise.
13117 * remote.c (remote_write_bytes_aux): Likewise. All callers
13119 (remote_write_bytes, remote_read_bytes): Likewise. All
13121 (remote_flash_erase): Likewise. All callers updated.
13122 (remote_write_qxfer): Likewise. All callers updated.
13123 (remote_read_qxfer): Likewise. All callers updated.
13124 (remote_xfer_partial): Likewise.
13125 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13126 (rs6000_xfer_shared_libraries): Likewise.
13127 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13128 (sol_thread_xfer_partial): Likewise.
13129 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13130 (sparc_xfer_partial): Likewise.
13131 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13133 (spu_xfer_partial): Likewise.
13134 * spu-multiarch.c (spu_xfer_partial): Likewise.
13135 * tracepoint.c (tfile_xfer_partial): Likewise.
13136 * windows-nat.c (windows_xfer_memory): Likewise.
13137 (windows_xfer_shared_libraries): Likewise.
13138 (windows_xfer_partial): Likewise.
13139 * valprint.c: Replace 'target_xfer_error' with
13140 'target_xfer_status' in comments.
13142 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13144 Checked in by Joel Brobecker <brobecker@adacore.com>.
13145 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13147 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13149 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13150 function parameters.
13152 2014-02-10 Will Newton <will.newton@linaro.org>
13154 * elfread.c (elf_rel_plt_read): Look for a .got section if
13155 looking up .got.plt fails.
13156 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13157 on address passed to elf_gnu_ifunc_record_cache.
13158 (elf_gnu_ifunc_resolve_addr): Likewise.
13159 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13161 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13163 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13164 (X_RETTURN): New macro.
13165 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13167 * sparc64-tdep.c (sparc64_init_abi): Hook
13168 sparc_in_function_epilogue_p.
13170 2014-02-10 Gary Benson <gbenson@redhat.com>
13172 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13173 Rename name_matcher to symbol_matcher.
13175 2014-02-10 Gary Benson <gbenson@redhat.com>
13177 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13178 Use expand_symtabs_file_matcher_ftype and
13179 expand_symtabs_symbol_matcher_ftype.
13181 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13183 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13184 (struct ada_symbol_cache): New.
13185 (ada_free_symbol_cache): Forward declare.
13186 (struct ada_pspace_data): New.
13187 (ada_pspace_data_handle): New static global.
13188 (get_ada_pspace_data, ada_pspace_data_cleanup)
13189 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13190 (cache_space, cache): Delete, now folded inside struct
13192 (ada_get_symbol_cache): New function.
13193 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13195 (_initialize_ada_language): Remove initialization of cache_space.
13196 Move call to observer_attach_inferior_exit up, grouping it
13197 with the other observer registrations inside this function.
13198 Rename command to be more general. Add call to
13199 register_program_space_data_with_cleanup.
13201 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13203 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13204 ada_new_objfile_observer.
13205 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13206 (_initialize_tasks): Update uses of ada_new_objfile_observer
13207 and ada_tasks_normal_stop_observer.
13209 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13211 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13212 returned by the 'Length attribute to integer.
13214 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13216 * ada-lang.c (_initialize_ada_language): Initialize
13217 cache_space obstack.
13219 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13221 * ada-lang.c (HASH_SIZE): New macro.
13222 (struct cache_entry): New type.
13223 (cache_space, cache): New static globals.
13224 (ada_clear_symbol_cache, find_entry): New functions.
13225 (lookup_cached_symbol, cache_symbol): Implement.
13226 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13227 (_initialize_ada_language): Attach ada_new_objfile_observer
13228 and ada_free_objfile_observer.
13230 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13232 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13233 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13234 struct block * parameter.
13235 (ada_lookup_symbol_list_worker): Constify local variable "block".
13236 Remove cast which is no longer necessary.
13238 2014-02-10 Doug Evans <xdje42@gmail.com>
13240 Add Guile as an extension language.
13241 * NEWS: Mention Guile scripting.
13242 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13243 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13244 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13245 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13246 (CLIBS): Add GUILE_LIBS.
13247 (install-guile): New rule.
13248 (guile.o): New rule.
13249 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13250 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13251 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13252 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13253 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13254 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13255 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13256 * configure.ac: New option --with-guile.
13257 * configure: Regenerate.
13258 * config.in: Regenerate.
13259 * auto-load.c: Remove #include "python/python.h". Add #include
13260 "gdb/section-scripts.h".
13261 (source_section_scripts): Handle Guile scripts.
13262 (_initialize_auto_load): Add name of Guile objfile script to
13263 scripts-directory help text.
13264 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13265 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13266 (struct breakpoint): New member scm_bp_object.
13267 * defs.h (enum command_control_type): New value guile_control.
13268 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13270 (show_user): Update comment.
13271 (_initialize_cli_cmds): Update help text for "show user". Update help
13272 text for max-user-call-depth.
13273 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13275 (multi_line_command_p): Add guile_control.
13276 (print_command_lines): Handle guile_control.
13277 (execute_control_command, recurse_read_control_structure): Ditto.
13278 (process_next_line): Recognize "guile" commands.
13279 * disasm.c (gdb_disassemble_info): Make non-static.
13280 * disasm.h: #include "dis-asm.h".
13281 (struct gdbarch): Add forward decl.
13282 (gdb_disassemble_info): Declare.
13283 * extension.c: #include "guile/guile.h".
13284 (extension_languages): Add guile.
13285 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13286 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13287 * gdbtypes.c (get_unsigned_type_max): New function.
13288 (get_signed_type_minmax): New function.
13289 * gdbtypes.h (get_unsigned_type_max): Declare.
13290 (get_signed_type_minmax): Declare.
13291 * guile/README: New file.
13292 * guile/guile-internal.h: New file.
13293 * guile/guile.c: New file.
13294 * guile/guile.h: New file.
13295 * guile/scm-arch.c: New file.
13296 * guile/scm-auto-load.c: New file.
13297 * guile/scm-block.c: New file.
13298 * guile/scm-breakpoint.c: New file.
13299 * guile/scm-disasm.c: New file.
13300 * guile/scm-exception.c: New file.
13301 * guile/scm-frame.c: New file.
13302 * guile/scm-gsmob.c: New file.
13303 * guile/scm-iterator.c: New file.
13304 * guile/scm-lazy-string.c: New file.
13305 * guile/scm-math.c: New file.
13306 * guile/scm-objfile.c: New file.
13307 * guile/scm-ports.c: New file.
13308 * guile/scm-pretty-print.c: New file.
13309 * guile/scm-safe-call.c: New file.
13310 * guile/scm-string.c: New file.
13311 * guile/scm-symbol.c: New file.
13312 * guile/scm-symtab.c: New file.
13313 * guile/scm-type.c: New file.
13314 * guile/scm-utils.c: New file.
13315 * guile/scm-value.c: New file.
13316 * guile/lib/gdb.scm: New file.
13317 * guile/lib/gdb/boot.scm: New file.
13318 * guile/lib/gdb/experimental.scm: New file.
13319 * guile/lib/gdb/init.scm: New file.
13320 * guile/lib/gdb/iterator.scm: New file.
13321 * guile/lib/gdb/printing.scm: New file.
13322 * guile/lib/gdb/types.scm: New file.
13323 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13324 (VPATH): Add $(GUILE_SRCDIR).
13325 (GUILE_DIR): New variable.
13326 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13327 (all): Add stamp-guile dependency.
13328 (stamp-guile): New rule.
13329 (clean-guile, install-guile, uninstall-guile): New rules.
13330 (install-only): Add install-guile dependency.
13331 (uninstall): Add uninstall-guile dependency.
13332 (clean): Add clean-guile dependency.
13334 2014-02-09 Doug Evans <xdje42@gmail.com>
13336 Revert this patch (which I approved, mea culpa).
13338 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13340 * Makefile.in (all-lib): Remove.
13341 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13343 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13345 Fix Python stack corruption.
13346 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13349 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13351 * Makefile.in (all-lib): Remove.
13352 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13354 2014-02-07 Doug Evans <dje@google.com>
13356 * extension-priv.h (extension_language_script_ops): Add comment.
13357 (extension_language_ops): Add comment.
13358 (active_ext_lang_state): Fix typo in comment.
13360 2014-02-07 Pedro Alves <palves@redhat.com>
13362 PR breakpoints/16292
13363 * infrun.c (handle_signal_stop) <signal arrives while stepping
13364 over a breakpoint>: Switch back to the stepping thread.
13366 2014-02-07 Yao Qi <yao@codesourcery.com>
13368 * target.c (target_xfer_partial): Return zero if LEN is zero.
13370 2014-02-07 Yao Qi <yao@codesourcery.com>
13372 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13373 (ld_so_xfer_auxv): Likewise.
13374 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13375 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13376 * corelow.c (core_xfer_partial): Likewise.
13377 * ctf.c (ctf_xfer_partial): Likewise.
13378 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13379 (darwin_xfer_partial): Likewise.
13380 * exec.c (exec_xfer_partial): Likewise.
13381 * gnu-nat.c (gnu_xfer_partial): Likewise.
13382 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13383 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13384 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13385 * linux-nat.c (linux_xfer_siginfo): Likewise.
13386 (linux_proc_xfer_spu): Likewise.
13387 * procfs.c (procfs_xfer_partial): Likewise.
13388 * record-full.c (record_full_xfer_partial): Likewise.
13389 (record_full_core_xfer_partial): Likewise.
13390 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13391 * remote.c (remote_write_qxfer): Likewise.
13392 (remote_write_qxfer, remote_read_qxfer): Likewise.
13393 (remote_xfer_partial): Likewise.
13394 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13395 (rs6000_xfer_shared_libraries): Likewise.
13396 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13397 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13398 (spu_xfer_partial): Likewise.
13399 * target.c (memory_xfer_partial_1): Likewise.
13400 * tracepoint.c (tfile_xfer_partial): Likewise.
13401 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13402 (windows_xfer_partial): Likewise.
13404 2014-02-07 Yao Qi <yao@codesourcery.com>
13406 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13408 (core_xfer_shared_libraries_aix): Likewise.
13409 * gdbarch.c, gdbarch.h: Regenerated.
13410 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13411 ULONGEST. Change 'len_avail' type to ULONGEST.
13412 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13413 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13415 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13417 2014-02-07 Yao Qi <yao@codesourcery.com>
13419 * corefile.c (memory_error): Get 'exception' from ERR and pass
13420 'exception' to throw_error.
13422 2014-02-06 Doug Evans <xdje42@gmail.com>
13424 * configure.ac (libpython checking): Remove all but python.o from
13425 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13426 * configure: Regenerate.
13428 * Makefile.in (SFILES): Add extension.c.
13429 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13430 (COMMON_OBS): Add extension.o.
13431 * extension.h: New file.
13432 * extension-priv.h: New file.
13433 * extension.c: New file.
13435 * python/python-internal.h: #include "extension.h".
13436 (gdbpy_auto_load_enabled): Declare.
13437 (gdbpy_apply_val_pretty_printer): Declare.
13438 (gdbpy_apply_frame_filter): Declare.
13439 (gdbpy_preserve_values): Declare.
13440 (gdbpy_breakpoint_cond_says_stop): Declare.
13441 (gdbpy_breakpoint_has_cond): Declare.
13442 (void source_python_script_for_objfile): Delete.
13443 * python/python.c: #include "extension-priv.h".
13444 Delete inclusion of "observer.h".
13445 (extension_language_python): Moved here and renamed from
13446 script_language_python in py-auto-load.c.
13447 Redefined to be of type extension_language_defn.
13448 (python_extension_script_ops): New global.
13449 (python_extension_ops): New global.
13450 (struct python_env): New member previous_active.
13451 (restore_python_env): Call restore_active_ext_lang.
13452 (ensure_python_env): Call set_active_ext_lang.
13453 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13455 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13457 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13459 (gdbpy_eval_from_control_command): Renamed from
13460 eval_python_from_control_command, made static. New arg extlang.
13461 (gdbpy_source_script) Renamed from source_python_script, made static.
13463 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13464 result to int. New arg extlang.
13465 (gdbpy_source_objfile_script): Renamed from
13466 source_python_script_for_objfile, made static. New arg extlang.
13467 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13468 static. New args extlang, extlang_printers. Change result type to
13470 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13471 static. New arg extlang. Rename arg printers to extlang_printers
13472 and change type to ext_lang_type_printers *.
13473 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13474 static. Replace argument arg with extlang, extlang_printers.
13475 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13476 (!HAVE_PYTHON, source_python_script): Delete.
13477 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13478 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13479 (!HAVE_PYTHON, start_type_printers): Delete.
13480 (!HAVE_PYTHON, apply_type_printers): Delete.
13481 (!HAVE_PYTHON, free_type_printers): Delete.
13482 (_initialize_python): Delete call to observer_attach_before_prompt.
13483 (finalize_python): Set/restore active extension language.
13484 (gdbpy_finish_initialization) Renamed from
13485 finish_python_initialization, made static. New arg extlang.
13486 (gdbpy_initialized): New function.
13487 * python/python.h: #include "extension.h". Delete #include
13488 "value.h", "mi/mi-cmds.h".
13489 (extension_language_python): Declare.
13490 (GDBPY_AUTO_FILE_NAME): Delete.
13491 (enum py_bt_status): Moved to extension.h and renamed to
13492 ext_lang_bt_status.
13493 (enum frame_filter_flags): Moved to extension.h.
13494 (enum py_frame_args): Moved to extension.h and renamed to
13495 ext_lang_frame_args.
13496 (finish_python_initialization): Delete.
13497 (eval_python_from_control_command): Delete.
13498 (source_python_script): Delete.
13499 (apply_val_pretty_printer): Delete.
13500 (apply_frame_filter): Delete.
13501 (preserve_python_values): Delete.
13502 (gdbpy_script_language_defn): Delete.
13503 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13504 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13506 * auto-load.c: #include "extension.h".
13507 (GDB_AUTO_FILE_NAME): Delete.
13508 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13509 (script_language_gdb): Delete, moved to extension.c and renamed to
13510 extension_language_gdb.
13511 (source_gdb_script_for_objfile): Delete.
13512 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13513 (loaded_script): Change type of language member to
13514 struct extension_language_defn *.
13515 (init_loaded_scripts_info): Initialize
13516 unsupported_script_warning_printed.
13517 (maybe_add_script): Make static. Change type of language arg to
13518 struct extension_language_defn *.
13519 (clear_section_scripts): Reset unsupported_script_warning_printed.
13520 (auto_load_objfile_script_1): Rewrite to use extension language API.
13521 (auto_load_objfile_script): Make public. Remove support-compiled-in
13522 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13523 (source_section_scripts): Rewrite to use extension language API.
13524 (load_auto_scripts_for_objfile): Rewrite to use
13525 auto_load_scripts_for_objfile.
13526 (collect_matching_scripts_data): Change type of language member to
13527 struct extension_language_defn *.
13528 (auto_load_info_scripts): Change type of language arg to
13529 struct extension_language_defn *.
13530 (unsupported_script_warning_print): New function.
13531 (script_not_found_warning_print): Make static.
13532 (_initialize_auto_load): Rewrite construction of scripts-directory
13534 * auto-load.h (struct objfile): Add forward decl.
13535 (struct script_language): Delete.
13536 (struct auto_load_pspace_info): Add forward decl.
13537 (struct extension_language_defn): Add forward decl.
13538 (maybe_add_script): Delete.
13539 (auto_load_objfile_script): Declare.
13540 (script_not_found_warning_print): Delete.
13541 (auto_load_info_scripts): Update prototype.
13542 (auto_load_gdb_scripts_enabled): Declare.
13543 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13544 auto_load_python_scripts_enabled and made public.
13545 (script_language_python): Delete, moved to python.c.
13546 (gdbpy_script_language_defn): Delete.
13547 (info_auto_load_python_scripts): Update to use
13548 extension_language_python.
13550 * breakpoint.c (condition_command): Replace call to
13551 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13552 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13553 with call to breakpoint_ext_lang_cond_says_stop.
13554 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13555 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13556 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13557 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13559 (local_setattro): Print name of extension language with existing
13562 * valprint.c (val_print, value_print): Update to call
13563 apply_ext_lang_val_pretty_printer.
13564 * cp-valprint.c (cp_print_value): Update call to
13565 apply_ext_lang_val_pretty_printer.
13566 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13567 (gdbpy_apply_val_pretty_printer): Renamed from
13568 apply_val_pretty_printer. New arg extlang.
13569 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13571 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13572 extension language API.
13573 * cli/cli-script.c (execute_control_command): Update to call
13574 eval_ext_lang_from_control_command.
13576 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13577 enum ext_lang_bt_status values. Update call to
13578 apply_ext_lang_frame_filter.
13579 (mi_cmd_stack_list_locals): Ditto.
13580 (mi_cmd_stack_list_args): Ditto.
13581 (mi_cmd_stack_list_variables): Ditto.
13582 * mi/mi-main.c: Delete #include "python/python-internal.h".
13583 Add #include "extension.h".
13584 (mi_cmd_list_features): Replace reference to python internal variable
13585 gdb_python_initialized with call to ext_lang_initialized_p.
13587 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13588 Update to use enum ext_lang_frame_args. Update to call
13589 apply_ext_lang_frame_filter.
13590 * python/py-framefilter.c (extract_sym): Update to use enum
13591 ext_lang_bt_status.
13592 (extract_value, py_print_type, py_print_value): Ditto.
13593 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13594 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13595 (py_print_frame): Ditto.
13596 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13597 New arg extlang. Update to use enum ext_lang_bt_status.
13599 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13600 finish_python_initialization. Replace with call to
13601 finish_ext_lang_initialization.
13603 * typeprint.c (do_free_global_table): Update to call
13604 free_ext_lang_type_printers.
13605 (create_global_typedef_table): Update to call
13606 start_ext_lang_type_printers.
13607 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13608 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13609 (type_print_options): Change type of global_printers from "void *"
13610 to "struct ext_lang_type_printers *".
13612 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13613 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13614 (gdbpy_preserve_values): Renamed from preserve_python_values.
13616 (!HAVE_PYTHON, preserve_python_values): Delete.
13618 * utils.c (quit_flag): Delete, moved to extension.c.
13619 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13622 * eval.c: Delete #include "python/python.h".
13623 * main.c: Delete #include "python/python.h".
13625 * defs.h: Update comment.
13627 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13631 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13633 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13636 2014-02-05 Yao Qi <yao@codesourcery.com>
13638 * remote.c (remote_pass_signals): Remove local 'buf' and use
13640 (remote_program_signals): Likewise.
13642 2014-02-05 Yao Qi <yao@codesourcery.com>
13644 * ctf.c: Include "inferior.h" and "gdbthread.h".
13645 (CTF_PID): A new macro.
13646 (ctf_open): Call inferior_appeared and add_thread_silent.
13647 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13648 (ctf_thread_alive): New function.
13649 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13651 2014-02-05 Yao Qi <yao@codesourcery.com>
13655 2013-05-24 Yao Qi <yao@codesourcery.com>
13657 * tracepoint.c (TFILE_PID): Remove.
13658 (tfile_open): Don't add thread and inferior.
13659 (tfile_close): Don't set 'inferior_ptid'. Don't call
13660 exit_inferior_silent.
13661 (tfile_thread_alive): Remove.
13662 (init_tfile_ops): Don't set field 'to_thread_alive' of
13665 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13667 * remote.c (remote_start_remote): Call remote_check_symbols even
13668 if only symbol-file (not file) has been given.
13670 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13672 * gdbarch.sh (skip_entrypoint): New callback.
13673 * gdbarch.c, gdbarch.h: Regenerate.
13674 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13675 * infrun.c (fill_in_stop_func): Likewise.
13676 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13677 (ppc_elfv2_elf_make_msymbol_special): New function.
13678 (ppc_elfv2_skip_entrypoint): Likewise.
13679 (ppc_linux_init_abi): Install them for ELFv2.
13681 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13683 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13684 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13685 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13686 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13687 structures returned in GPRs.
13689 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13691 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13692 offset to the stack parameter list for the ELFv2 ABI.
13694 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13696 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13697 set_gdbarch_convert_from_func_ptr_addr and
13698 set_gdbarch_elf_make_msymbol_special for ELFv1.
13699 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13700 function descriptors on ELFv1.
13701 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13702 set up r12 at function entry.
13704 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13706 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13707 (struct gdbarch_tdep): New member elf_abi.
13709 * rs6000-tdep.c: Include "elf/ppc64.h".
13710 (rs6000_gdbarch_init): Detect ELF ABI version.
13712 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13714 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13715 within a register pair holding a DFP 128-bit value on little-endian.
13716 (ppc64_sysv_abi_return_value_base): Likewise.
13717 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13718 (dfp_pseudo_register_write): Likewise.
13720 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13722 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13723 offset on little-endian when passing _Decimal32.
13724 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13726 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13728 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13729 of the overlapped FP register within the VSX register on little-
13731 (efpr_pseudo_register_write): Likewise.
13733 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13735 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13736 offset on little-endian when passing small structures.
13738 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13740 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13741 (struct ppc64_sysv_argpos): New data structure.
13742 (ppc64_sysv_abi_push_float): Remove.
13743 (ppc64_sysv_abi_push_val): New function.
13744 (ppc64_sysv_abi_push_integer): Likewise.
13745 (ppc64_sysv_abi_push_freg): Likewise.
13746 (ppc64_sysv_abi_push_vreg): Likewise.
13747 (ppc64_sysv_abi_push_param): Likewise.
13748 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13749 (ppc64_sysv_abi_return_value_base): New function.
13750 (ppc64_sysv_abi_return_value): Refactor to use it.
13752 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13754 * NEWS: Document new target powerpc64le-*-linux*.
13756 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13758 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13759 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13761 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13762 register set used in ELF core dumps. Add floating-point register set.
13764 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13766 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13767 dwarf2_to_gdb[] table using symbolic constants. Adjust
13768 penultimate entry from number representing the PC register
13769 to symbolic constant representing the MDR register. Add
13770 constant for the PC register to the end of the table.
13772 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13774 * bsd-kvm.c: Include <sys/param.h>
13776 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13778 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13780 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13782 * ada-lang.h (clear_ada_sym_cache): Delete.
13784 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13786 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13788 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13790 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13791 the sigreturn register save area only if the syscall is
13794 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13796 * valops.c (value_slice): Minor reformatting.
13798 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13800 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13802 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13804 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13805 New static globals.
13806 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13807 (ada_ignore_descriptive_types_p): New static global.
13808 (find_parallel_type_by_descriptive_type): Return immediately
13809 if ada_ignore_descriptive_types_p is set.
13810 (_initialize_ada_language): Register new commands "maintenance
13811 set ada", "maintenance show ada", "maintenance set ada
13812 ignore-descriptive-types" and "maintenance show ada
13813 ignore-descriptive-types".
13814 * NEWS: Add entry for new "maint ada set/show
13815 ignore-descriptive-types" commands.
13817 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13819 * record-btrace.c (record_btrace_close): Call btrace_teardown
13822 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13824 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13827 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13829 * ada-typeprint (type_is_full_subrange_of_target_type):
13831 (print_range): Add parameter bounds_prefered_p. If not set,
13832 try printing range types using the name of their base type.
13833 (print_range_type): Add parameter bounds_prefered_p.
13834 Use it in call to print_range.
13835 (print_array_type, ada_print_type): Update calls to print_range
13836 and print_range_type.
13838 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13840 * ada-typeprint.c (print_array_type, print_choices, print_range)
13841 (print_range_bound, print_dynamic_range_bound, print_range_type):
13842 Remove declaration.
13844 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13846 * ada-typeprint.c (print_range): Add missing empty line
13847 after local declaration.
13849 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13851 * ada-valprint.c (print_optional_low_bound): Get index_type's
13852 target type for as long as it is a TYPE_CODE_RANGE.
13854 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13856 * procfs.c (procfs_make_note_section): Remove assertion and
13857 associated comment.
13859 2014-01-24 Yao Qi <yao@codesourcery.com>
13861 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13862 * corelow.c (get_core_siginfo): Likewise.
13864 2014-01-24 Yao Qi <yao@codesourcery.com>
13866 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13867 ULONGEST. Don't check 'len' is negative.
13868 (remote_write_bytes): Change type of 'len' to ULONGEST.
13870 2014-01-23 Tom Tromey <tromey@redhat.com>
13873 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13874 Handle exception from frame.block.
13875 (FrameVars.fetch_frame_locals): Likewise.
13877 2014-01-23 Tom Tromey <tromey@redhat.com>
13880 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13881 on a NULL pointer. Move "goto error" to correct place.
13883 2014-01-23 Tom Tromey <tromey@redhat.com>
13886 * python/py-framefilter.c (apply_frame_filter): Call
13887 ensure_python_env after computing gdbarch.
13889 2014-01-23 Yao Qi <yao@codesourcery.com>
13891 * target.c (raw_memory_xfer_partial): Change argument type
13892 from void * to gdb_byte *.
13893 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13895 2014-01-22 Doug Evans <dje@google.com>
13897 New gdbserver option --debug-format=timestamp.
13898 * NEWS: Mention it.
13900 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13902 * syscalls/s390x-linux.xml: New file.
13903 * syscalls/s390-linux.xml: New file.
13904 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13905 (XML_SYSCALL_FILENAME_S390X): Likewise.
13906 (op_svc): New enum value for SVC opcode.
13907 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13908 (s390_linux_get_syscall_number): New function.
13909 (s390_gdbarch_init): Register '*get_syscall_number' and the
13910 syscall xml file name.
13911 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13912 "s390-linux.xml" and "s390x-linux.xml".
13913 * NEWS: Announce new feature.
13915 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13917 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13919 2014-01-22 Pedro Alves <palves@redhat.com>
13921 * xtensa-config.c: Include defs.h.
13923 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13925 * common/common-utils.h: Add "ARI:" comment beside __func__
13928 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13930 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13931 documentation a bit.
13933 2014-01-21 Roland McGrath <mcgrathr@google.com>
13935 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13936 * configure: Regenerate.
13937 * aclocal.m4: Regenerate.
13938 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13939 New substituted variables.
13940 (install-strip): New target.
13941 (INSTALL_SCRIPT): New substituted variable.
13942 (FLAGS_TO_PASS): Add it.
13943 (install-only): Use $(INSTALL_SCRIPT) rather than
13944 $(INSTALL_PROGRAM) for gcore.
13946 2014-01-20 Tom Tromey <tromey@redhat.com>
13948 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13951 2014-01-20 Tom Tromey <tromey@redhat.com>
13953 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13954 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13955 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13956 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13957 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13958 (struct cmd_list_element) <flags>: Remove.
13959 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13960 doc_allocated>: New fields.
13961 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13963 * maint.c (maintenance_do_deprecate): Update.
13964 * top.c (execute_command): Update.
13966 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13968 * xtensa-linux-nat.c: Include asm/ptrace.h.
13970 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13972 * Makefile.in (SFILES): Add d-support.c.
13973 (COMMON_OBS): Add d-support.o.
13974 * d-lang.h (d_parse_symbol): Add comment, now defined in
13976 * d-lang.c (parse_call_convention)
13977 (parse_attributes, parse_function_types)
13978 (parse_function_args, parse_type, parse_identifier)
13979 (call_convention_p, d_parse_symbol): Move functions to ...
13980 * d-support.c: ... New file.
13982 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13984 * d-lang.h (d_parse_symbol): Add declaration.
13985 * d-lang.c (extract_identifiers)
13986 (extract_type_info): Remove functions.
13987 (parse_call_convention, parse_attributes)
13988 (parse_function_types, parse_function_args)
13989 (parse_type, parse_identifier, call_convention_p)
13990 (d_parse_symbol): New functions.
13991 (d_demangle): Use d_parse_symbol to demangle D symbols.
13993 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13995 * d-lang.h (struct builtin_d_type): New data type.
13996 (builtin_d_type): Add declaration.
13997 * d-lang.c (d_language_arch_info, build_d_types)
13998 (builtin_d_type): New functions.
13999 (enum d_primitive_types): New data type.
14000 (d_language_defn): Change c_language_arch_info to
14001 d_language_arch_info.
14002 (d_type_data): New static variable.
14003 (_initialize_d_language): Initialize d_type_data.
14005 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14007 * d-lang.h (d_main_name): Add declaration.
14008 * d-lang.c (d_main_name): New function.
14009 * symtab.c (find_main_name): Add call to d_main_name.
14011 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14013 * d-lang.c (d_language_defn): Change macro_expansion_c to
14014 macro_expansion_no.
14016 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14018 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14020 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14022 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14023 gdb_exception" declaration.
14024 * remote.c (getpkt_or_notif_sane): Likewise.
14026 2014-01-17 Doug Evans <dje@google.com>
14028 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14029 function, contents of dirnames_to_char_ptr_vec_append moved here.
14030 (delim_string_to_char_ptr_vec): New function.
14031 (dirnames_to_char_ptr_vec_append): Rewrite.
14032 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14034 2014-01-17 Doug Evans <dje@google.com>
14036 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14038 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14039 #include "common-utils.h".
14040 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14041 * common/vec.h (VEC_ASSERT_PASS): Update.
14042 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14043 (MACH_CHECK_ERROR): Update.
14045 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14047 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14049 * gdbarch.h: Regenerate.
14051 2014-01-16 Tom Tromey <tromey@redhat.com>
14053 * value.c (struct value) <regnum>: Move earlier.
14055 2014-01-16 Tom Tromey <tromey@redhat.com>
14057 * remote.c (extended_remote_create_inferior): Rename from
14058 extended_remote_create_inferior_1. Add "ops" argument. Remove
14059 old implementation.
14061 2014-01-16 Pedro Alves <palves@redhat.com>
14063 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14064 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14067 2014-01-16 Doug Evans <dje@google.com>
14069 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14071 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14073 * btrace.h (btrace_thread_flag): New.
14074 (struct btrace_thread_info) <flags>: New.
14075 * record-btrace.c (record_btrace_resume_thread)
14076 (record_btrace_find_thread_to_move, btrace_step_no_history)
14077 (btrace_step_stopped, record_btrace_start_replaying)
14078 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14079 (record_btrace_find_resume_thread): New.
14080 (record_btrace_resume, record_btrace_wait): Extend.
14081 (record_btrace_can_execute_reverse): New.
14082 (record_btrace_open): Fail in non-stop mode.
14083 (record_btrace_set_replay): Split into this, ...
14084 (record_btrace_stop_replaying): ... this, ...
14085 (record_btrace_clear_histories): ... and this.
14086 (init_record_btrace_ops): Init to_can_execute_reverse.
14087 * NEWS: Announce it.
14089 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14091 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14092 (forward_target_decr_pc_after_break)
14093 (target_decr_pc_after_break): New.
14094 * target.c (forward_target_decr_pc_after_break)
14095 (target_decr_pc_after_break): New.
14096 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14097 instead of gdbarch_decr_pc_after_break.
14098 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14099 instead of gdbarch_decr_pc_after_break.
14100 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14101 instead of gdbarch_decr_pc_after_break.
14102 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14103 instead of gdbarch_decr_pc_after_break.
14104 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14105 instead of gdbarch_decr_pc_after_break.
14106 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14107 instead of gdbarch_decr_pc_after_break.
14109 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14111 * btrace.c: Include regcache.h.
14112 (btrace_add_pc): New.
14113 (btrace_enable): Call btrace_add_pc.
14114 (btrace_is_empty): New.
14115 * btrace.h (btrace_is_empty): New.
14116 * record-btrace.c (require_btrace, record_btrace_info): Call
14119 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14121 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14122 Support delta reads.
14123 (linux_disable_btrace): Change return type.
14124 * common/linux-btrace.h (linux_read_btrace): Change parameters
14125 and return type to allow error reporting. Update users.
14126 (linux_disable_btrace): Change return type. Update users.
14127 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14129 (btrace_error): New.
14130 (btrace_block) <begin>: Comment on BEGIN == 0.
14131 * btrace.c (btrace_compute_ftrace): Start from the end of
14133 (btrace_stitch_trace, btrace_clear_history): New.
14134 (btrace_fetch): Read delta trace, return if replaying.
14135 (btrace_clear): Move clear history code to btrace_clear_history.
14136 (parse_xml_btrace): Throw an error if parsing failed.
14137 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14138 and return type to allow error reporting.
14139 (target_read_btrace): Change parameters and return type to allow
14141 * target.c (target_read_btrace): Update.
14142 * remote.c (remote_read_btrace): Support delta reads. Pass
14144 * NEWS: Announce it.
14146 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14148 * record.h (record_btrace_frame_unwind)
14149 (record_btrace_tailcall_frame_unwind): New declarations.
14150 * dwarf2-frame: Include record.h
14151 (dwarf2_frame_cfa): Throw an error for btrace frames.
14152 * record-btrace.c: Include hashtab.h.
14153 (btrace_get_bfun_name): New.
14154 (btrace_call_history): Call btrace_get_bfun_name.
14155 (struct btrace_frame_cache): New.
14157 (bfcache_hash, bfcache_eq, bfcache_new): New.
14158 (btrace_get_frame_function): New.
14159 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14160 (record_btrace_frame_this_id): Compute own id.
14161 (record_btrace_frame_prev_register): Provide PC, throw_error
14162 for all other registers.
14163 (record_btrace_frame_sniffer): Detect btrace frames.
14164 (record_btrace_tailcall_frame_sniffer): New.
14165 (record_btrace_frame_dealloc_cache): New.
14166 (record_btrace_frame_unwind): Add new functions.
14167 (record_btrace_tailcall_frame_unwind): New.
14168 (_initialize_record_btrace): Allocate cache.
14169 * btrace.c (btrace_clear): Call reinit_frame_cache.
14170 * NEWS: Announce it.
14172 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14174 * record-btrace.c (record_btrace_set_replay)
14175 (record_btrace_goto_begin, record_btrace_goto_end)
14176 (record_btrace_goto): New.
14177 (init_record_btrace_ops): Initialize them.
14178 * NEWS: Announce it.
14180 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14182 * record-btrace.c (record_btrace_find_new_threads)
14183 (record_btrace_thread_alive): New.
14184 (init_record_btrace_ops): Initialize to_find_new_threads and
14187 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14189 * record-btrace.c (record_btrace_resume): New.
14190 (record_btrace_wait): New.
14191 (init_record_btrace_ops): Initialize to_wait and to_resume.
14193 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14195 * record-btrace.c (record_btrace_xfer_partial)
14196 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14197 (record_btrace_allow_memory_access): New.
14198 (init_record_btrace_ops): Initialize new methods.
14199 * target.c (raw_memory_xfer_partial): Bail out if target reports
14200 that this memory is not available.
14202 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14204 * target.h (target_ops) <to_insert_breakpoint>
14205 <to_remove_breakpoint>: Add target_ops parameter.
14206 (forward_target_insert_breakpoint): New.
14207 (forward_target_remove_breakpoint): New.
14208 (memory_remove_breakpoint, memory_insert_breakpoint):
14209 Add target_ops parameter.
14210 * target.c (target_insert_breakpoint): Split into this and ...
14211 (forward_target_insert_breakpoint): ... this.
14212 (target_remove_breakpoint): Split into this and ...
14213 (forward_target_remove_breakpoint): ... this.
14214 (debug_to_insert_breakpoint): Add target_ops parameter.
14215 Call forward_target_insert_breakpoint.
14216 (debug_to_remove_breakpoint): Add target_ops parameter.
14217 Call forward_target_remove_breakpoint.
14218 (update_current_target): Do not inherit or default to_insert_breakpoint
14219 and to_remove_breakpoint.
14220 * corelow.c (ignore): Add target_ops parameter.
14221 * exec.c (ignore): Add target_ops parameter.
14222 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14223 Add target_ops parameter.
14224 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14225 Add target_ops parameter.
14226 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14227 Add target_ops parameter.
14228 * record-full.c (record_full_beneath_to_insert_breakpoint)
14229 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14230 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14231 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14232 (record_full_core_remove_breakpoint): Add target_ops parameter.
14234 (record_full_beneath_to_insert_breakpoint_ops)
14235 (record_full_beneath_to_remove_breakpoint_ops)
14236 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14237 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14238 tmp_to_remove_breakpoint_ops,
14239 record_full_beneath_to_insert_breakpoint_ops, and
14240 record_full_beneath_to_remove_breakpoint_ops.
14241 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14242 (m32r_remove_breakpoint): Add target_ops parameter.
14243 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14244 Add target_ops parameter.
14245 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14246 Add target_ops parameter.
14248 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14249 Markus Metzger <markus.t.metzger@intel.com>
14251 * record-btrace.c: Include frame-unwind.h.
14252 (record_btrace_frame_unwind_stop_reason)
14253 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14254 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14256 (init_record_btrace_ops): Install it.
14258 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14260 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14263 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14265 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14268 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14270 * frame-unwind.c: Include target.h.
14271 (frame_unwind_try_unwinder): New function with code from ...
14272 (frame_unwind_find_by_frame): ... here. New variable
14273 unwinder_from_target, call also target_get_unwinder)
14274 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14275 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14276 * target.h (struct target_ops): New fields to_get_unwinder and
14277 to_get_tailcall_unwinder.
14278 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14280 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14282 * record-btrace.c (record_btrace_fetch_registers)
14283 (record_btrace_store_registers)
14284 (record_btrace_to_prepare_to_store): New.
14285 (init_record_btrace_ops): Add the above.
14287 2014-01-16 Tom Tromey <tromey@redhat.com>
14289 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14290 * target.h (struct target_ops) <to_prepare_to_store>: Add
14292 (target_prepare_to_store): Add argument.
14293 * target.c (debug_to_prepare_to_store): Add argument.
14294 (update_current_target): Update.
14295 * remote.c (remote_prepare_to_store): Add 'self' argument.
14296 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14297 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14298 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14299 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14301 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14302 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14303 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14304 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14305 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14307 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14309 * btrace.h (replay) <replay>: New.
14310 (btrace_is_replaying): New.
14311 * btrace.c (btrace_clear): Free replay iterator.
14312 (btrace_is_replaying): New.
14313 * record-btrace.c (record_btrace_is_replaying): New.
14314 (record_btrace_info): Print insn number if replaying.
14315 (record_btrace_insn_history): Start at replay position.
14316 (record_btrace_call_history): Start at replay position.
14317 (init_record_btrace_ops): Init to_record_is_replaying.
14319 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14321 * record-btrace.c (record_btrace_insn_history_range): Include
14323 (record_btrace_insn_history_from): Adjust range.
14324 (record_btrace_call_history_range): Include
14326 (record_btrace_call_history_from): Adjust range.
14327 * NEWS: Announce changes.
14329 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14331 * record.h (enum record_print_flag)
14332 <record_print_indent_calls>: New.
14333 * record.c (get_call_history_modifiers): Recognize /c modifier.
14334 (_initialize_record): Document /c modifier.
14335 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14336 Reorder fields. Optionally indent the function name. Update
14338 * NEWS: Announce changes.
14340 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14342 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14344 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14346 * btrace.c (ftrace_new_function): Start counting at one.
14347 * record-btrace.c (record_btrace_info): Adjust number of calls
14349 * NEWS: Announce it.
14351 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14353 * record-btrace.c (btrace_call_history_insn_range): Print
14354 insn range as [begin, end].
14356 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14358 * btrace.h (struct btrace_func_link): New.
14359 (enum btrace_function_flag): New.
14360 (struct btrace_inst): Rename to ...
14361 (struct btrace_insn): ...this. Update all users.
14362 (struct btrace_func) <ibegin, iend>: Remove.
14363 (struct btrace_func_link): New.
14364 (struct btrace_func): Rename to ...
14365 (struct btrace_function): ...this. Update all users.
14366 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14367 (number, level, flags>: New.
14368 (struct btrace_insn_iterator): Rename to ...
14369 (struct btrace_insn_history): ...this.
14371 (struct btrace_insn_iterator, btrace_call_iterator): New.
14372 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14373 (struct btrace_target_info) <begin, end, level>
14374 <insn_history, call_history>: New.
14375 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14376 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14377 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14378 (btrace_call_number, btrace_call_begin, btrace_call_end)
14379 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14380 (btrace_find_function_by_number, btrace_set_insn_history)
14381 (btrace_set_call_history): New.
14382 * btrace.c (btrace_init_insn_iterator)
14383 (btrace_init_func_iterator, compute_itrace): Remove.
14384 (ftrace_print_function_name, ftrace_print_filename)
14385 (ftrace_skip_file): Change
14386 parameter to const.
14387 (ftrace_init_func): Remove.
14388 (ftrace_debug): Use new btrace_function fields.
14389 (ftrace_function_switched): Also consider gaining and
14390 losing symbol information).
14391 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14392 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14393 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14395 (ftrace_new_function): Move. Remove debug print.
14396 (ftrace_update_lines, ftrace_update_insns): New.
14397 (ftrace_update_function): Check for call, ret, and jump.
14398 (compute_ftrace): Renamed to ...
14399 (btrace_compute_ftrace): ...this. Rewritten to compute call
14401 (btrace_fetch, btrace_clear): Updated.
14402 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14403 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14404 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14405 (btrace_call_number, btrace_call_begin, btrace_call_end)
14406 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14407 (btrace_find_function_by_number, btrace_set_insn_history)
14408 (btrace_set_call_history): New.
14409 * record-btrace.c (require_btrace): Use new btrace thread
14411 (record_btrace_info, btrace_insn_history)
14412 (record_btrace_insn_history, record_btrace_insn_history_range):
14413 Use new btrace thread info fields and new iterator.
14414 (btrace_func_history_src_line): Rename to ...
14415 (btrace_call_history_src_line): ...this. Use new btrace
14416 thread info fields.
14417 (btrace_func_history): Rename to ...
14418 (btrace_call_history): ...this. Use new btrace thread info
14419 fields and new iterator.
14420 (record_btrace_call_history, record_btrace_call_history_range):
14421 Use new btrace thread info fields and new iterator.
14423 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14425 * frame.h (frame_id_build_unavailable_stack_special): New.
14426 * frame.c (frame_id_build_unavailable_stack_special): New.
14428 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14430 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14431 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14432 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14434 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14435 (i386_insn_is_jump, i386_jmp_p): New.
14436 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14437 insn_is_jump to gdbarch.
14438 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14439 * gdbarch.h: Regenerated.
14440 * gdbarch.c: Regenerated.
14441 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14442 (default_insn_is_jump): New.
14443 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14444 (default_insn_is_jump): New.
14446 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14448 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14450 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14451 (btrace_read_type) <btrace_read_new>: Change to ...
14452 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14454 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14456 * common/linux-btrace.c (linux_read_btrace): Free trace from
14457 previous iteration.
14459 2014-01-15 Doug Evans <dje@google.com>
14461 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14464 2014-01-15 Tom Tromey <tromey@redhat.com>
14466 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14467 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14468 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14469 (set_objfile_main_name): New function.
14470 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14471 language_of_main>: New fields.
14472 (set_objfile_main_name): Declare.
14473 * symtab.c (find_main_name): Loop over objfiles to find the main
14475 (set_main_name): Now static.
14476 (get_main_info): Add comment.
14477 * symtab.h (set_main_name): Don't declare.
14479 2014-01-15 Tom Tromey <tromey@redhat.com>
14481 * symtab.c (main_progspace_key): New global.
14482 (struct main_info): New.
14483 (name_of_main, language_of_main): Remove.
14484 (get_main_info, main_info_cleanup): New function.
14485 (set_main_name, main_name, main_language): Use get_main_info.
14486 (_initialize_symtab): Initialize main_progspace_key.
14488 2014-01-15 Tom Tromey <tromey@redhat.com>
14490 * dbxread.c (process_one_symbol): Update.
14491 * dwarf2read.c (read_partial_die): Update.
14492 * symfile.c (set_initial_language): Call main_language.
14493 * symtab.c (language_of_main): Now static.
14494 (set_main_name): Add 'lang' parameter.
14495 (find_main_name): Update.
14496 (main_language): New function.
14497 (symtab_observer_executable_changed): Update.
14498 * symtab.h (set_main_name): Update.
14499 (language_of_main): Remove.
14500 (main_language): Declare.
14502 2014-01-15 Tom Tromey <tromey@redhat.com>
14504 * symfile.c (init_entry_point_info): Use new "initialized" field.
14506 * objfiles.h (struct entry_point) <initialized>: New field.
14507 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14508 (struct objfile) <ei>: ...here. Remove.
14509 * objfiles.c (entry_point_address_query): Update.
14511 2014-01-15 Tom Tromey <tromey@redhat.com>
14513 * objfiles.c (entry_point_address_query): Relocate entry point
14515 (objfile_relocate1): Do not relocate entry point address.
14516 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14517 <the_bfd_section_index>: New field.
14518 * symfile.c (init_entry_point_info): Find the entry point's
14521 2014-01-15 Tom Tromey <tromey@redhat.com>
14523 * solib-frv.c (enable_break): Use entry_point_address_query.
14525 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14527 * NEWS: Add note on improved process record-replay on
14528 arm*-linux* targets.
14530 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14532 * arm-tdep.c (enum arm_record_result): New enum.
14533 (arm_record_unsupported_insn): New function.
14534 (arm_record_coproc_data_proc): Removed.
14535 (thumb2_record_ld_st_multiple): New function.
14536 (thumb2_record_ld_st_dual_ex_tbb): New function.
14537 (thumb2_record_data_proc_sreg_mimm): New function.
14538 (thumb2_record_ps_dest_generic): New function.
14539 (thumb2_record_branch_misc_cntrl): New function.
14540 (thumb2_record_str_single_data): New function.
14541 (thumb2_record_ld_mem_hints): New function.
14542 (thumb2_record_ld_word): New function.
14543 (thumb2_record_lmul_lmla_div): New function.
14544 (thumb2_record_decode_insn_handler): New function.
14545 (decode_insn): Add thumb32 instruction handlers.
14547 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14549 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14550 (struct arm_linux_record_tdep): Declare.
14551 (arm_canonicalize_syscall): New function.
14552 (arm_all_but_pc_registers_record): New function.
14553 (arm_linux_syscall_record): New function.
14554 (arm_linux_init_abi): Add syscall recording constructs.
14555 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14556 decoding. (arm_record_coproc_data_proc): Update arm syscall
14558 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14559 <arm_syscall_record>: New field.
14560 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14563 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14565 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14566 register for push instruction recording.
14568 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14570 * arm-tdep.c (thumb_record_misc): Update to correct logical
14571 error while recording ldm, ldmia and pop instructions.
14573 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14575 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14577 2014-01-15 Pedro Alves <palves@redhat.com>
14579 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14580 (go32_resume, go32_fetch_registers, store_register)
14581 (go32_store_registers, go32_prepare_to_store)
14582 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14583 (go32_create_inferior, go32_can_run, go32_terminal_init)
14584 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14587 2014-01-15 Tom Tromey <tromey@redhat.com>
14589 * target.h (async_callback_ftype): New typedef.
14590 (struct target_ops) <to_async>: Use it.
14592 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14594 * python/py-value.c (get_field_type): Remove unnecessary curly
14595 braces for single-statement if block.
14597 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14599 * python/py-type.c (convert_field): Add missing empty line
14600 after declarations.
14602 2014-01-14 Doug Evans <dje@google.com>
14604 * symfile.h (expand_symtabs_matching): Renamed from
14605 expand_partial_symbol_names. Update prototype.
14606 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14607 * symfile.c (expand_symtabs_matching): Renamed from
14608 expand_partial_symbol_names. New args file_matcher, kind.
14609 Rename arg fun to symbol_matcher.
14610 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14611 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14612 ada_expand_partial_symbol_name.
14613 (ada_make_symbol_completion_list): Update to call
14614 expand_symtabs_matching.
14615 (ada_add_global_exceptions): Call expand_symtabs_matching.
14616 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14617 call map_symbol_filenames.
14618 * symtab.c (sources_info): Update to call map_symbol_filenames.
14619 (search_symbols): Call expand_symtabs_matching.
14620 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14621 (default_make_symbol_completion_list_break_on): Update to call
14622 expand_symtabs_matching.
14623 (make_source_files_completion_list): Update to call
14624 map_symbol_filenames.
14626 2014-01-14 Doug Evans <dje@google.com>
14628 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14629 (expand_symtabs_symbol_matcher_ftype): New typedef.
14630 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14631 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14632 * symfile.c (expand_partial_symbol_names): Update to use
14633 expand_symtabs_symbol_matcher_ftype.
14634 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14635 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14636 Arg name_matcher renamed to symbol_matcher.
14637 * psymtab.c (recursively_search_psymtabs): Update to use
14638 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14640 (expand_symtabs_matching_via_partial): Update to use
14641 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14642 Arg name_matcher renamed to symbol_matcher.
14644 2014-01-14 Doug Evans <dje@google.com>
14646 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14647 (map_partial_symbol_filenames): Ditto.
14648 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14649 (map_partial_symbol_filenames): Ditto.
14650 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14651 (map_partial_symbol_filenames): Ditto.
14652 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14653 (map_partial_symbol_filenames): Ditto.
14654 * symtab.c: Delete #include "psymtab.h".
14656 2014-01-14 Pedro Alves <palves@redhat.com>
14657 Tom Tromey <tromey@redhat.com>
14659 * infrun.c (use_displaced_stepping): Use find_record_target
14660 instead of RECORD_IS_USED.
14661 (adjust_pc_after_break): Use record_full_is_used instead of
14663 * record-btrace.c (record_btrace_open): Call record_preopen
14664 instead of checking RECORD_IS_USED.
14665 * record-full.c (record_full_shortname)
14666 (record_full_core_shortname): New globals.
14667 (record_full_is_used): New function.
14668 (find_full_open): Call record_preopen instead of checking
14670 (init_record_full_ops): Set the target's shortname to
14671 record_full_shortname.
14672 (init_record_full_core_ops): Set the target's shortname to
14673 record_full_core_shortname.
14674 * record-full.h (record_full_is_used): Declare.
14675 * record.c (find_record_target): Make extern.
14676 (record_preopen): New function.
14677 * record.h (RECORD_IS_USED): Delete macro.
14678 (find_record_target, record_preopen): Declare functions.
14680 2014-01-14 Yao Qi <yao@codesourcery.com>
14682 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14683 'len''s type to ULONGEST.
14684 (core_xfer_shared_libraries_aix): Likewise.
14685 * gdbarch.c, gdbarch.h: Regenerated.
14686 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14687 Change type of 'len' to ULONGEST.
14688 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14689 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14691 2014-01-14 Yao Qi <yao@codesourcery.com>
14693 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14694 type of 'len' to ULONGEST.
14695 (linux_xfer_osdata_processgroups): Likewise.
14696 (linux_xfer_osdata_threads): Likewise.
14697 (linux_xfer_osdata_fds): Likewise.
14698 (linux_xfer_osdata_isockets): Likewise.
14699 (linux_xfer_osdata_shm): Likewise.
14700 (linux_xfer_osdata_sem): Likewise.
14701 (linux_xfer_osdata_msg): Likewise.
14702 (linux_common_xfer_osdata): Likewise.
14703 (struct osdata_type) <getter>: Likewise.
14704 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14707 2014-01-14 Yao Qi <yao@codesourcery.com>
14709 * target.h (target_xfer_partial_ftype): Update.
14710 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14712 * aix-thread.c (aix_thread_xfer_partial): Change type of
14713 argument 'len' to ULONGEST.
14714 * auxv.c (procfs_xfer_auxv): Likewise.
14715 (ld_so_xfer_auxv): Likewise.
14716 (memory_xfer_auxv): Likewise.
14717 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14718 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14719 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14720 * corelow.c (core_xfer_partial): Likewise.
14721 * ctf.c (ctf_xfer_partial): Likewise.
14722 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14724 (darwin_read_dyld_info): Likewise.
14725 (darwin_xfer_partial): Likewise.
14726 * exec.c (section_table_xfer_memory_partial): Likewise.
14727 (exec_xfer_partial): Likewise.
14728 * exec.h (section_table_xfer_memory_partial): Update
14730 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14731 instead of plongest.
14732 (gnu_xfer_partial): Likewise.
14733 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14734 (ia64_hpux_xfer_solib_got): Likewise.
14735 (ia64_hpux_xfer_partial): Likewise.
14736 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14737 * inf-ptrace.c (inf_ptrace_xfer_partial):
14738 * inf-ttrace.c (inf_ttrace_xfer_partial):
14739 * linux-nat.c (linux_xfer_siginfo): Likewise.
14740 (linux_nat_xfer_partial): Likewise.
14741 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14742 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14743 * monitor.c (monitor_xfer_memory): Likewise.
14744 (monitor_xfer_partial): Likewise.
14745 * procfs.c (procfs_xfer_partial): Likewise.
14746 * record-full.c (record_full_xfer_partial): Likewise.
14747 (record_full_core_xfer_partial): Likewise.
14748 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14749 instead of plongest.
14750 (gdbsim_xfer_partial): Likewise.
14751 * remote.c (remote_xfer_partial): Likewise.
14752 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14753 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14755 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14756 (rs6000_xfer_shared_libraries): Likewise.
14757 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14758 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14759 (sparc_xfer_partial): Likewise.
14760 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14761 (spu_xfer_partial): Likewise.
14762 * spu-multiarch.c (spu_xfer_partial): Likewise.
14763 * target.c (target_read_live_memory): Likewise.
14764 (memory_xfer_live_readonly_partial): Likewise.
14765 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14766 (target_xfer_partial, default_xfer_partial): Likewise.
14767 (current_xfer_partial): Likewise.
14768 * tracepoint.c (tfile_xfer_partial): Likewise.
14769 * windows-nat.c (windows_xfer_memory): Likewise. Call
14770 pulongest instead of plongest.
14771 (windows_xfer_partial): Likewise.
14772 (windows_xfer_shared_libraries): Likewise.
14774 2014-01-14 Yao Qi <yao@codesourcery.com>
14776 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14777 target_xfer_partial_ftype.
14779 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14783 * valops.c (value_struct_elt_bitpos): New function
14784 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14785 object to 'None' if the field name is an empty string ("").
14786 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14787 attribute to look for a field when 'name' is 'None'.
14788 (get_field_type): New function
14790 2014-01-13 Doug Evans <dje@google.com>
14793 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14794 (try_open_dwop_file): Ditto.
14795 * gdb_bfd.c: #include "vec.h".
14796 (bfdp): New typedef.
14797 (struct gdb_bfd_data): New member included_bfds.
14798 (gdb_bfd_unref): Unref all included bfds.
14799 (gdb_bfd_record_inclusion): New function.
14800 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14802 2014-01-13 Tom Tromey <tromey@redhat.com>
14804 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14806 2014-01-13 Tom Tromey <tromey@redhat.com>
14808 * defs.h (use_windows): Remove.
14809 * gdb.c (main): Update.
14810 * main.c (captured_main, gdb_main): Update.
14811 * main.h (struct captured_main_args) <use_windows>: Remove.
14812 * top.c (use_windows): Remove.
14814 2014-01-13 Tom Tromey <tromey@redhat.com>
14816 * defs.h (deprecated_flush_hook): Remove.
14818 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14821 * linux-thread-db.c (try_thread_db_load): Add parameter
14822 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14823 (try_thread_db_load_from_pdir_1): Move it there from here.
14824 (try_thread_db_load_from_sdir): Update caller.
14825 (try_thread_db_load_from_dir): Move it there from here.
14827 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14829 * regformats/regdat.sh: Always rewrite the register file.
14831 2014-01-13 Pedro Alves <palves@redhat.com>
14833 * Makefile.in (CHECK_HEADERS): New variable.
14834 (check-headers:): New rule.
14836 2014-01-13 Tom Tromey <tromey@redhat.com>
14838 * cli/cli-setshow.c (do_set_command): Update.
14839 * defs.h (deprecated_set_hook): Remove.
14840 * top.c (deprecated_set_hook): Remove.
14842 2014-01-13 Pedro Alves <palves@redhat.com>
14844 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14845 the tracepoint if the PC is a pseudo-register.
14847 2014-01-13 Tom Tromey <tromey@redhat.com>
14849 * defs.h (XCALLOC): Remove.
14850 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14851 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14852 * dwarf2loc.c (allocate_piece_closure): Likewise.
14853 * elfread.c (elf_symfile_segments): Likewise.
14854 (elf_symfile_segments): Likewise.
14855 * gdbtypes.c (copy_type_recursive): Likewise.
14856 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14857 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14858 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14860 * mt-tdep.c (mt_gdbarch_init): Likewise.
14861 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14863 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14864 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14865 * registry.c (registry_alloc_data): Likewise.
14866 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14867 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14868 * serial.c (serial_fdopen_ops): Likewise.
14869 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14871 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14872 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14875 2014-01-13 Tom Tromey <tromey@redhat.com>
14877 * defs.h (XMALLOC): Remove.
14878 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14879 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14880 * cli-out.c (struct ui_out *): Likewise.
14881 * cli/cli-dump.c (add_dump_command): Likewise.
14882 (add_dump_command): Likewise.
14883 * complaints.c (get_complaints): Likewise.
14884 (find_complaint): Likewise.
14885 * dwarf2-frame.c (execute_cfa_program): Likewise.
14886 * dwarf2read.c (abbrev_table_read_table): Likewise.
14887 * gdbarch.sh: Likewise.
14888 * gdbarch.c: Rebuild.
14889 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14890 * interps.c (interp_new): Likewise.
14891 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14892 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14893 * mi/mi-console.c (mi_console_file_new): Likewise.
14894 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14895 * mi/mi-out.c (mi_out_new): Likewise.
14896 * mi/mi-parse.c (mi_parse): Likewise.
14897 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14898 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14899 * observer.c (xalloc_observer_list_node): Likewise.
14900 * regcache.c (regcache_xmalloc_1): Likewise.
14901 * reggroups.c (reggroup_new): Likewise.
14902 (_initialize_reggroup): Likewise.
14903 * registry.c (register_data_with_cleanup): Likewise.
14904 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14905 * ser-base.c (serial_ttystate): Likewise.
14906 * ser-mingw.c (make_pipe_state): Likewise.
14907 * ser-pipe.c (pipe_open): Likewise.
14908 * serial.c (serial_open): Likewise.
14909 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14910 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14911 (tui_alloc_win_info): Likewise.
14912 (tui_add_content_elements): Likewise.
14913 * tui/tui-file.c (tui_file_new): Likewise.
14914 * tui/tui-out.c (tui_out_new): Likewise.
14915 * ui-file.c (mem_file_new): Likewise.
14916 * ui-out.c (push_level): Likewise.
14917 (make_cleanup_ui_out_end): Likewise.
14918 (append_header_to_list): Likewise.
14919 (ui_out_new): Likewise.
14920 * user-regs.c (user_reg_add_builtin): Likewise.
14922 2014-01-13 Tom Tromey <tromey@redhat.com>
14924 * defs.h (XZALLOC): Remove.
14925 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14926 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14927 (get_ada_tasks_inferior_data): Likewise.
14928 * auto-load.c (get_auto_load_pspace_data): Likewise.
14929 * auxv.c (get_auxv_inferior_data): Likewise.
14930 * bfd-target.c (target_bfd_reopen): Likewise.
14931 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14932 (deprecated_insert_raw_breakpoint): Likewise.
14933 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14934 * corelow.c (core_open): Likewise.
14935 * darwin-nat.c (darwin_check_new_threads): Likewise.
14936 (darwin_attach_pid): Likewise.
14937 * dummy-frame.c (dummy_frame_push): Likewise.
14938 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14939 * dwarf2loc.c (allocate_piece_closure): Likewise.
14940 * elfread.c (elf_symfile_segments): Likewise.
14941 * eval.c (ptrmath_type_p): Likewise.
14942 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14943 * gdbtypes.c (alloc_type_arch): Likewise.
14944 (alloc_type_instance): Likewise.
14945 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14946 * inf-child.c (inf_child_can_use_agent): Likewise.
14947 * inflow.c (get_inflow_inferior_data): Likewise.
14948 * infrun.c (save_infcall_suspend_state): Likewise.
14949 * jit.c (jit_reader_load): Likewise.
14950 (get_jit_objfile_data): Likewise.
14951 (get_jit_program_space_data): Likewise.
14952 (jit_object_open_impl): Likewise.
14953 (jit_symtab_open_impl): Likewise.
14954 (jit_block_open_impl): Likewise.
14955 (jit_frame_sniffer): Likewise.
14956 * linux-fork.c (add_fork): Likewise.
14957 * maint.c (make_command_stats_cleanup): Likewise.
14958 * objfiles.c (get_objfile_pspace_data): Likewise.
14959 * opencl-lang.c (struct lval_closure): Likewise.
14960 * osdata.c (osdata_start_osdata): Likewise.
14961 * progspace.c (new_address_space): Likewise.
14962 (add_program_space): Likewise.
14963 * remote-sim.c (get_sim_inferior_data): Likewise.
14964 * sh-tdep.c (sh_gdbarch_init): Likewise.
14965 * skip.c (Ignore): Likewise.
14966 (skip_delete_command): Likewise.
14967 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14968 (library_list_start_library): Likewise.
14969 (solib_aix_current_sos): Likewise.
14970 * solib-darwin.c (get_darwin_info): Likewise.
14971 (darwin_current_sos): Likewise.
14972 * solib-dsbt.c (get_dsbt_info): Likewise.
14973 * solib-ia64-hpux.c (new_so_list): Likewise.
14974 (ia64_hpux_get_solib_linkage_addr): Likewise.
14975 * solib-spu.c (append_ocl_sos): Likewise.
14976 (spu_current_sos): Likewise.
14977 * solib-svr4.c (get_svr4_info): Likewise.
14978 (svr4_keep_data_in_core): Likewise.
14979 (library_list_start_library): Likewise.
14980 (svr4_default_sos): Likewise.
14981 (svr4_read_so_list): Likewise.
14982 * solib-target.c (library_list_start_library): Likewise.
14983 (solib_target_current_sos): Likewise.
14984 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14985 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14986 * symfile.c (default_symfile_segments): Likewise.
14987 * target-descriptions.c (tdesc_data_init): Likewise.
14988 (tdesc_create_reg): Likewise.
14989 (struct tdesc_type *): Likewise.
14990 (tdesc_create_vector): Likewise.
14991 (tdesc_set_struct_size): Likewise.
14992 (struct tdesc_type *): Likewise.
14993 (tdesc_free_feature): Likewise.
14994 (tdesc_create_feature): Likewise.
14995 * windows-nat.c (windows_add_thread): Likewise.
14996 (windows_make_so): Likewise.
14997 * xml-support.c (gdb_xml_body_text): Likewise.
14998 (gdb_xml_create_parser_and_cleanup): Likewise.
14999 (xml_process_xincludes): Likewise.
15000 * xml-syscall.c (allocate_syscalls_info): Likewise.
15001 (syscall_create_syscall_desc): Likewise.
15003 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15005 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15006 function, with code from i386_stap_parse_special_token.
15007 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15008 (i386_stap_parse_special_token): Move code to the two functions
15009 above; simplify it.
15011 2014-01-09 Pedro Alves <palves@redhat.com>
15012 Hui Zhu <hui@codesourcery.com>
15015 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15016 bp_err_string. Don't mark the location shlib_disabled if the
15017 error thrown wasn't a generic or memory error. Catch errors
15018 thrown while inserting breakpoints in overlayed code. Output
15019 error message of software breakpoints.
15020 * remote.c (remote_insert_breakpoint): If this breakpoint has
15021 target-side commands but this stub doesn't support Z0 packets,
15022 throw NOT_SUPPORTED_ERROR error.
15023 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15024 * target.h (target_insert_breakpoint): Extend comment.
15025 (target_insert_hw_breakpoint): Add comment.
15027 2014-01-08 Pedro Alves <palves@redhat.com>
15029 * remote.c (remote_add_thread): Add threads silently if starting
15031 (remote_notice_new_inferior): If in all-stop, and starting up,
15032 don't call notice_new_inferior.
15033 (get_current_thread): New function, factored out from ...
15034 (add_current_inferior_and_thread): ... this. Adjust.
15035 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15036 found any thread, then select the remote's current thread as GDB's
15037 current thread too.
15039 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15041 * NEWS: Create a new section for the next release branch.
15042 Rename the section of the current branch, now that it has
15045 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15047 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15048 * version.in: Bump version to 7.7.50.DATE-cvs.
15050 2014-01-08 Yao Qi <yao@codesourcery.com>
15052 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15053 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15054 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15056 2014-01-08 Yao Qi <yao@codesourcery.com>
15058 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15059 return value of bfd_get_filename to symbol_file_add_from_bfd.
15061 2014-01-08 Pierre Muller <muller@sourceware.org>
15064 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15065 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15066 to prim_record_mininal_symbol_and_info.
15067 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15068 in call to prim_record_minimal_symbol_and_info.
15069 (read_pe_exported_syms): Set index field of section_data.
15071 2014-01-07 Andrew Pinski <apinski@cavium.com>
15073 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15074 * features/aarch64.c: Regenerate.
15076 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15078 * target.c (return_null): Define.
15079 (update_current_target): Use it instead of return_zero for
15080 functions that return a pointer.
15082 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15084 * source.c (add_path): Fix check for duplicated paths in the previously
15087 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15089 * ada-lang.c: Remove duplicated include statements.
15090 * alphabsd-nat.c: Ditto.
15091 * amd64-darwin-tdep.c: Ditto.
15092 * amd64fbsd-nat.c: Ditto.
15093 * auto-load.c: Ditto.
15095 * breakpoint.c: Ditto.
15096 * dbxread.c: Ditto.
15097 * fork-child.c: Ditto.
15098 * gdb_usleep.c: Ditto.
15099 * i386-darwin-tdep.c: Ditto.
15100 * i386fbsd-nat.c: Ditto.
15102 * inferior.c: Ditto.
15103 * jv-lang.c: Ditto.
15104 * linux-nat.c: Ditto.
15105 * linux-tdep.c: Ditto.
15106 * m68kbsd-nat.c: Ditto.
15107 * m68klinux-nat.c: Ditto.
15108 * microblaze-tdep.c: Ditto.
15109 * mips-linux-tdep.c: Ditto.
15110 * mn10300-tdep.c: Ditto.
15111 * nto-tdep.c: Ditto.
15112 * opencl-lang.c: Ditto.
15114 * printcmd.c: Ditto.
15115 * regcache.c: Ditto.
15116 * remote-m32r-sdi.c: Ditto.
15118 * symfile.c: Ditto.
15120 * tilegx-linux-nat.c: Ditto.
15121 * tilegx-tdep.c: Ditto.
15122 * tracepoint.c: Ditto.
15124 * vaxbsd-nat.c: Ditto.
15125 * windows-nat.c: Ditto.
15126 * xtensa-tdep.c: Ditto.
15128 2014-01-07 Yao Qi <yao@codesourcery.com>
15130 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15132 2014-01-07 Yao Qi <yao@codesourcery.com>
15133 Joel Brobecker <brobecker@adacore.com>
15135 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15136 (pdc_write_regs): Likewise.
15137 (fetch_regs_kernel_thread): Likewise.
15138 (store_regs_kernel_thread): Likewise.
15140 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15142 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15143 tagged type objects to their actual type.
15145 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15147 * ada-valprint.c (print_field_values): Add "language" parameter.
15148 Update calls to print_field_values and print_variant_part.
15149 Pass new parameter "language" in call to val_print instead
15150 of "current_language". Replace call to ada_val_print by call
15152 (print_variant_part): Add "language" parameter.
15153 (ada_val_print_struct_union): Update call to print_field_values.
15155 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15157 * ada-valprint.c (ui_memcpy): Delete.
15158 (ada_print_floating): Update documentation. Add empty line
15159 between between function documentation and implementation.
15160 Delete variable "buffer". Use ui_file_xstrdup in place of
15161 ui_file_put. Minor adjustments following this change.
15163 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15165 * ada-valprint.c (ada_val_print_string): New function,
15166 extracted from ada_val_print_array.
15167 (ada_val_print_array): Replace extracted code by call
15168 to ada_val_print_string followed by a return. Move
15169 "else" branch to the function's top block.
15171 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15173 * ada-valprint.c (ada_val_print_array): Move implementation
15174 down. Rename parameter "offset" and "val" into "offset_aligned"
15175 and "original_value" respectively. Add parameter "offset".
15177 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15179 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15180 re-organizing the code. Change the "???" message printed
15181 when target type is a TYPE_CODE_UNDEF into
15182 "<ref to undefined type>".
15184 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15186 * ada-valprint.c (print_record): Delete, implementation inlined...
15187 (ada_val_print_struct_union): ... here. Remove call to
15188 ada_check_typedef in inlined implementation.
15190 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15192 * ada-valprint.c (ada_val_print_gnat_array): New function,
15193 extracted from ada_val_print_1;
15194 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15195 (ada_val_print_flt, ada_val_print_struct_union)
15196 (ada_val_print_ref): Likewise.
15197 (ada_val_print_1): Delete variables i and elttype.
15198 Replace extracted-out code by call to corresponding
15201 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15203 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15205 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15207 * ada-valprint.c (ada_val_print_1): Replace calls to
15208 ada_val_print_1 by calls to val_print.
15210 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15212 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15213 Update calls to self accordingly. Replace calls to c_val_print
15214 by calls to val_print.
15216 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15218 * ada-valprint.c (print_record): Delete declaration.
15219 (adjust_type_signedness, ada_val_print_1): Likewise.
15220 (ada_val_print): Move function implementation down.
15221 (print_variant_part, print_field_values, print_record):
15222 Move function implementation up.
15224 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15226 * python/py-type.c (typy_get_name): New function.
15227 (type_object_getset): Add entry for attribute "name".
15228 * NEWS: Add entry mentioning this new attribute.
15230 2014-01-07 Yao Qi <yao@codesourcery.com>
15232 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15235 2014-01-07 Yao Qi <yao@codesourcery.com>
15237 * gnu-nat.c (info_port_rights): Add qualifier const to
15240 2014-01-07 Yao Qi <yao@codesourcery.com>
15242 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15244 2014-01-07 Yao Qi <yao@codesourcery.com>
15246 * gnu-nat.c (make_inf) Update declaration.
15247 (make_inf): Make it static.
15248 (inf_set_traced): Likewise.
15249 (inf_port_to_thread, inf_task_died_status): Likewise.
15251 2014-01-07 Yao Qi <yao@codesourcery.com>
15253 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15255 2014-01-07 Yao Qi <yao@codesourcery.com>
15257 * gnu-nat.c (_initialize_gnu_nat): Declare.
15259 2014-01-07 Yao Qi <yao@codesourcery.com>
15261 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15263 (struct gdbarch_info) <byte_order>: Change type to
15265 <byte_order_for_code>: Likewise.
15266 * gdbarch.c, gdbarch.h: Regenerated.
15268 2014-01-06 Sasha Smundak <asmundak@google.com>
15270 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15272 2014-01-06 Tom Tromey <tromey@redhat.com>
15274 * doublest.c (convert_doublest_to_floatformat): Use const, not
15276 * somread.c (som_symtab_read): Likewise.
15278 2014-01-07 Hui Zhu <hui@codesourcery.com>
15280 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15281 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15282 (gdb_bfd_fopen): Ditto.
15283 (gdb_bfd_openr): Ditto.
15284 (gdb_bfd_openw): Ditto.
15285 (gdb_bfd_openr_iovec): Ditto.
15286 (gdb_bfd_fdopenr): Ditto.
15287 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15288 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15290 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15292 * symfile-mem.c (symbol_file_add_from_memory): Removed
15293 gdb_bfd_stash_filename.
15295 2014-01-03 Doug Evans <dje@google.com>
15297 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15300 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15302 Update year range in copyright notice of all files.
15304 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15306 * top.c (print_gdb_version): Set copyright year to 2014.
15308 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15310 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15312 For older changes see ChangeLog-2013.
15318 version-control: never