1 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
4 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
5 modifier from "struct gdbarch" when compiling without Expat (XML)
7 (get_syscall_by_number): Likewise.
8 (get_syscall_by_name): Likewise.
9 (get_syscall_names): Likewise.
11 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
14 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
15 set_xml_syscall_file_name to provide gdbarch.
16 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
17 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
18 * breakpoint.c (print_it_catch_syscall): Adjust call to
19 get_syscall_by_number to provide gdbarch.
20 (print_one_catch_syscall): Likewise.
21 (print_mention_catch_syscall): Likewise.
22 (print_recreate_catch_syscall): Likewise.
23 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
24 and get_syscall_by_name to provide gdbarch.
25 (catch_syscall_completer): Adjust call to get_syscall_names to
27 * gdbarch.c: Regenerate.
28 * gdbarch.h: Likewise.
29 * gdbarch.sh: Forward declare "struct syscalls_info".
30 (xml_syscall_file): New variable.
31 (syscalls_info): Likewise.
32 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
33 set_xml_syscall_file_name to provide gdbarch.
34 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
35 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
36 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
37 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
38 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
39 * xml-syscall.c: Include gdbarch.h.
40 (set_xml_syscall_file_name): Accept gdbarch parameter.
41 (get_syscall_by_number): Likewise.
42 (get_syscall_by_name): Likewise.
43 (get_syscall_names): Likewise.
44 (my_gdb_datadir): Delete global variable.
45 (struct syscalls_info) <my_gdb_datadir>: New variable.
46 (struct syscalls_info) <sysinfo>: Rename variable to
48 (sysinfo): Delete global variable.
49 (have_initialized_sysinfo): Likewise.
50 (xml_syscall_file): Likewise.
51 (sysinfo_free_syscalls_desc): Rename to...
52 (syscalls_info_free_syscalls_desc): ... this.
53 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
54 code to the new layout of "struct syscalls_info".
55 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
57 (syscall_create_syscall_desc): Likewise.
58 (syscall_start_syscall): Likewise.
59 (syscall_parse_xml): Likewise.
60 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
61 (init_sysinfo): Rename to...
62 (init_syscalls_info): ...this. Add gdbarch as a parameter.
63 Adjust function to deal with gdbarch.
64 (xml_get_syscall_number): Delete parameter sysinfo. Accept
65 gdbarch as a parameter. Adjust code.
66 (xml_get_syscall_name): Likewise.
67 (xml_list_of_syscalls): Likewise.
68 (set_xml_syscall_file_name): Accept gdbarch as parameter.
69 (get_syscall_by_number): Likewise.
70 (get_syscall_by_name): Likewise.
71 (get_syscall_names): Likewise.
72 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
73 (get_syscall_by_number): Likewise.
74 (get_syscall_by_name): Likewise.
75 (get_syscall_names): Likewise.
77 2014-11-20 Doug Evans <xdje42@gmail.com>
79 Split struct symtab into two: struct symtab and compunit_symtab.
80 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
81 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
82 to "struct compunit_symtab *". All callers updated.
83 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
84 "struct symtab *" argument to "struct compunit_symtab *".
86 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
87 result to "struct compunit_symtab *". All callers updated.
88 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
89 Change result to "struct compunit_symtab *". All callers updated.
90 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
91 hange type to "struct compunit_symtab *". All uses updated.
92 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
93 Change type to "struct compunit_symtab *". All uses updated.
94 * buildsym.c (struct buildsym_compunit): New struct.
95 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
96 (buildsym_compunit): New static global.
97 (finish_block_internal): Update to fetch objfile from
99 (make_blockvector): Delete objfile argument.
100 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
101 debugformat, producer.
102 (start_buildsym_compunit): New function.
103 (free_buildsym_compunit): Renamed from free_subfiles_list.
105 (patch_subfile_names): Rewrite to use buildsym_compunit.
106 (get_compunit_symtab): New function.
107 (get_macro_table): Delete argument comp_dir. All callers updated.
108 (start_symtab): Change result to "struct compunit_symtab *".
109 All callers updated. Create the subfile of the main source file.
110 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
111 (reset_symtab_globals): Update.
112 (end_symtab_get_static_block): Update to use buildsym_compunit.
113 (end_symtab_without_blockvector): Rewrite.
114 (end_symtab_with_blockvector): Change result to
115 "struct compunit_symtab *". All callers updated.
116 Update to use buildsym_compunit. Don't set symtab->dirname,
117 instead set it in the compunit.
118 Explicitly make sure main symtab is first in its list.
119 Set debugformat, producer, blockvector, block_line_section, and
120 macrotable in the compunit.
121 (end_symtab_from_static_block): Change result to
122 "struct compunit_symtab *". All callers updated.
123 (end_symtab, end_expandable_symtab): Ditto.
124 (set_missing_symtab): Change symtab argument to
125 "struct compunit_symtab *". All callers updated.
126 (augment_type_symtab): Ditto.
127 (record_debugformat): Update to use buildsym_compunit.
128 (record_producer): Update to use buildsym_compunit.
129 * buildsym.h (struct subfile) <dirname>: Delete.
130 <producer, debugformat>: Delete.
131 <buildsym_compunit>: New member.
132 (get_compunit_symtab): Declare.
133 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
134 from primary_symtab. Change type to "struct compunit_symtab *".
136 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
138 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
139 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
140 symtab. Change type to "struct compunit_symtab *". All uses updated.
141 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
143 (dw2_find_last_source_symtab): Ditto.
144 (dw2_lookup_symbol): Ditto.
145 (recursively_find_pc_sect_compunit_symtab): Renamed from
146 recursively_find_pc_sect_symtab. Change result to
147 "struct compunit_symtab *". All callers updated.
148 (dw2_find_pc_sect_compunit_symtab): Renamed from
149 dw2_find_pc_sect_symtab. Change result to
150 "struct compunit_symtab *". All callers updated.
151 (get_compunit_symtab): Renamed from get_symtab. Change result to
152 "struct compunit_symtab *". All callers updated.
153 (recursively_compute_inclusions): Change type of immediate_parent
154 argument to "struct compunit_symtab *". All callers updated.
155 (compute_compunit_symtab_includes): Renamed from
156 compute_symtab_includes. All callers updated. Rewrite to compute
157 includes of compunit_symtabs and not symtabs.
158 (process_full_comp_unit): Update to work with struct compunit_symtab.
159 (process_full_type_unit): Ditto.
160 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
161 (dwarf_decode_lines): Remove special case handling of main subfile.
162 (macro_start_file): Delete argument comp_dir. All callers updated.
163 (dwarf_decode_macro_bytes): Ditto.
164 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
165 use struct compunit_symtab.
166 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
167 * jit.c (finalize_symtab): Build compunit_symtab.
168 * jv-lang.c (get_java_class_symtab): Change result to
169 "struct compunit_symtab *". All callers updated.
170 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
171 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
172 comp_dir. Change type to "struct compunit_symtab *".
174 (new_macro_table): Change comp_dir argument to cust,
175 "struct compunit_symtab *". All callers updated.
176 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
177 nr_primary_symtabs. All uses updated.
178 (count_symtabs_and_blocks): Update to handle compunits.
179 (report_command_stats): Update output, "primary symtabs" renamed to
181 * mdebugread.c (new_symtab): Change result to
182 "struct compunit_symtab *". All callers updated.
183 (parse_procedure): Change type of search_symtab argument to
184 "struct compunit_symtab *". All callers updated.
185 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
187 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
188 symtabs. Change type to "struct compunit_symtab *". All uses updated.
189 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
191 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
193 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
194 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
195 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
196 symtab. Change type to "struct compunit_symtab *". All uses updated.
197 * psymtab.c (psymtab_to_symtab): Change result type to
198 "struct compunit_symtab *". All callers updated.
199 (find_pc_sect_compunit_symtab_from_partial): Renamed from
200 find_pc_sect_symtab_from_partial. Change result type to
201 "struct compunit_symtab *". All callers updated.
202 (lookup_symbol_aux_psymtabs): Change result type to
203 "struct compunit_symtab *". All callers updated.
204 (find_last_source_symtab_from_partial): Ditto.
205 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
206 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
207 and macro_table from compunit.
208 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
209 type to "struct compunit_symtab *". All callers updated.
210 (debug_qf_lookup_symbol): Ditto.
211 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
212 debug_qf_find_pc_sect_symtab, change result type to
213 "struct compunit_symtab *". All callers updated.
214 * symfile.c (allocate_symtab): Delete objfile argument.
216 (allocate_compunit_symtab): New function.
217 (add_compunit_symtab_to_objfile): New function.
218 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
219 Change result type to "struct compunit_symtab *". All uses updated.
220 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
221 Change result type to "struct compunit_symtab *". All uses updated.
222 * symmisc.c (print_objfile_statistics): Compute blockvector count in
224 (dump_symtab_1): Update test for primary source symtab.
225 (maintenance_info_symtabs): Update to handle compunit symtabs.
226 (maintenance_check_symtabs): Ditto.
227 * symtab.c (set_primary_symtab): Delete.
228 (compunit_primary_filetab): New function.
229 (compunit_language): New function.
230 (iterate_over_some_symtabs): Change type of arguments "first",
231 "after_last" to "struct compunit_symtab *". All callers updated.
232 Update to loop over symtabs in each compunit.
233 (error_in_psymtab_expansion): Rename symtab argument to cust,
234 and change type to "struct compunit_symtab *". All callers updated.
235 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
236 Change result type to "struct compunit_symtab *". All callers updated.
237 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
238 Change result type to "struct compunit_symtab *". All callers updated.
239 (find_pc_sect_line): Only loop over symtabs within selected compunit
240 instead of all symtabs in the objfile.
241 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
242 <compunit_symtab> New member.
243 <block_line_section>: Moved to compunit_symtab.
244 <locations_valid>: Ditto.
245 <epilogue_unwind_valid>: Ditto.
246 <macro_table>: Ditto.
248 <debugformat>: Ditto.
251 <call_site_htab>: Ditto.
255 (SYMTAB_COMPUNIT): New macro.
256 (SYMTAB_BLOCKVECTOR): Update definition.
257 (SYMTAB_OBJFILE): Update definition.
258 (SYMTAB_DIRNAME): Update definition.
259 (struct compunit_symtab): New type. Common members among all source
260 symtabs within a compilation unit moved here. All uses updated.
261 (COMPUNIT_OBJFILE): New macro.
262 (COMPUNIT_FILETABS): New macro.
263 (COMPUNIT_DEBUGFORMAT): New macro.
264 (COMPUNIT_PRODUCER): New macro.
265 (COMPUNIT_DIRNAME): New macro.
266 (COMPUNIT_BLOCKVECTOR): New macro.
267 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
268 (COMPUNIT_LOCATIONS_VALID): New macro.
269 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
270 (COMPUNIT_CALL_SITE_HTAB): New macro.
271 (COMPUNIT_MACRO_TABLE): New macro.
272 (ALL_COMPUNIT_FILETABS): New macro.
273 (compunit_symtab_ptr): New typedef.
274 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
276 2014-11-20 Joel Brobecker <brobecker@adacore.com>
278 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
279 if the TYPE_CODE of range_type's base type does not match
280 the TYPE_CODE of encoding_type's base type.
282 2014-11-19 Joel Brobecker <brobecker@adacore.com>
284 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
287 2014-11-19 Joel Brobecker <brobecker@adacore.com>
289 * ada-lang.c (ada_is_redundant_range_encoding): New function.
290 (ada_is_redundant_index_type_desc): New function.
291 (to_fixed_array_type): Ignore parallel XA type if redundant.
293 2014-11-19 Joel Brobecker <brobecker@adacore.com>
295 * ada-lang.c (constrained_packed_array_type): Set the length
296 of the return array as if both bounds where zero if that
297 returned array's index type is dynamic.
299 2014-11-19 Yao Qi <yao@codesourcery.com>
301 * config/i386/go32.mh (CC): Remove.
303 2014-11-18 Doug Evans <xdje42@gmail.com>
305 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
308 2014-11-18 Doug Evans <xdje42@gmail.com>
310 * buildsym.c (buildsym_objfile): New static global.
311 (buildsym_comp_dir): New static global.
312 (finish_block_internal): Delete arg objfile. All callers updated.
313 (finish_block): Delete arg objfile. All callers updated.
314 (start_subfile): Delete arg dirname. All callers updated.
315 (patch_subfile_names): Update buildsym_comp_dir.
316 (get_macro_table): Delete arg objfile. All callers updated.
317 (start_symtab): New arg objfile. All callers updated.
318 Rename arg dirname to comp_dir.
319 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
320 (end_symtab_get_static_block): Delete arg objfile. All callers
322 (end_symtab_without_blockvector): Ditto.
323 (end_symtab_with_blockvector): Ditto.
324 (end_symtab_from_static_block): Ditto.
326 (end_expandable_symtab): Ditto.
327 (augment_type_symtab): Ditto.
328 * coffread.c (coff_start_symtab): New arg objfile. All callers
331 2014-11-18 Doug Evans <xdje42@gmail.com>
333 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
336 2014-11-18 Doug Evans <xdje42@gmail.com>
338 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
339 symtab.dirname updated to use it.
341 2014-11-18 Doug Evans <xdje42@gmail.com>
343 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
344 symtab.objfile updated to use it.
346 2014-11-18 Doug Evans <xdje42@gmail.com>
348 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
350 2014-11-18 Doug Evans <xdje42@gmail.com>
352 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
354 * findvar.c (default_read_var_value): Ditto.
355 * jv-lang.c (add_class_symtab_symbol): Ditto.
356 * parse.c (operator_check_standard): Ditto.
357 * printcmd.c (address_info): Ditto.
358 * symtab.c (fixup_symbol_section): Ditto.
359 (skip_prologue_sal): Ditto.
360 * tracepoint.c (scope_info): Ditto.
361 * valops.c (find_function_in_inferior): Ditto.
362 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
363 * python/py-symbol.c (set_symbol): Ditto.
365 2014-11-18 Doug Evans <xdje42@gmail.com>
367 * buildsym.c (main_subfile): New static global.
368 (free_subfiles_list): New function.
369 (start_symtab): Set main_subfile.
370 (restart_symtab): Replace init of subfiles, current_subfile with
371 call to free_subfiles_list.
372 (watch_main_source_file_lossage): Use main_subfile.
373 (reset_symtab_globals): Replace init of current_subfile with call
374 to free_subfiles_list.
375 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
376 functions, split out from ...
377 (end_symtab_from_static_block): ... here. Rewrite to call them.
379 2014-11-18 Doug Evans <xdje42@gmail.com>
381 The result of symtab expansion is always a primary symtab.
382 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
383 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
384 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
385 (psymtab_to_symtab): Add comment and assert.
386 (map_matching_symbols_psymtab): Remove unnecessary test for
389 2014-11-15 Doug Evans <xdje42@gmail.com>
392 * symtab.c (find_pc_line_symtab): New function.
393 * symtab.h (find_pc_line_symtab): Declare.
394 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
396 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
397 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
398 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
399 * tui/tui-win.c (make_visible_with_new_height): Ditto.
400 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
401 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
403 2014-11-15 Doug Evans <xdje42@gmail.com>
405 * symtab.c (expand_symtab_containing_pc): Renamed from
406 find_pc_sect_symtab_via_partial. All callers updated.
408 2014-11-15 Yao Qi <yao@codesourcery.com>
410 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
412 2014-11-14 Joel Brobecker <brobecker@adacore.com>
414 * common/common-defs.h: Move <stdarg.h> #include ahead of
417 2014-11-14 Pedro Alves <palves@redhat.com>
419 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
420 [!PHONY_ICONV] (gdb_iconv): New function.
421 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
423 2014-11-13 Doug Evans <dje@google.com>
426 * dwarf2read.c (find_slot_in_mapped_hash): Handle
427 "(anonymous namespace)".
429 2014-11-13 Doug Evans <dje@google.com>
431 * dwarf2read.c (update_enumeration_type_from_children): Avoid
434 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
436 * NEWS (maint set target-async): Fix typo.
438 2014-11-12 Pedro Alves <palves@redhat.com>
440 * infrun.c (enum infwait_states, infwait_state): Delete.
442 2014-11-12 Pedro Alves <palves@redhat.com>
444 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
445 Rewrite stepping over a permanent breakpoint.
446 (thread_still_needs_step_over, proceed): Don't set
447 stepping_over_breakpoint for permanent breakpoints.
448 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
449 single-step breakpoints out of the target on hardware step
451 (process_event_stop_test): If stepping a permanent breakpoint
452 doesn't hit the step-resume breakpoint, delete the step-resume
454 (switch_back_to_stepped_thread): Also check if the stepped thread
455 has advanced already on hardware step targets.
456 (currently_stepping): Return true if the thread stepped a
459 2014-11-12 Pedro Alves <palves@redhat.com>
461 Mark locations as permanent, not the whole breakpoint.
462 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
463 (mark_breakpoints_out): Don't mark permanent breakpoints as
465 (breakpoint_init_inferior): Use mark_breakpoints_out.
466 (breakpoint_here_p): Adjust.
467 (bpstat_stop_status, describe_other_breakpoints): Remove handling
468 of permanent breakpoints.
469 (make_breakpoint_permanent): Mark each location as permanent,
470 instead of marking the breakpoint.
471 (add_location_to_breakpoint): If the location is permanent, mark
472 it as such, and as inserted.
473 (init_breakpoint_sal): Don't make the breakpoint permanent here.
474 (bp_location_compare, update_global_location_list): Adjust.
475 (update_breakpoint_locations): Don't make the breakpoint permanent
477 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
479 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
480 (struct bp_location) <permanent>: New field.
481 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
482 reference to bp_permanent.
484 2014-11-12 Pedro Alves <palves@redhat.com>
486 * arch-utils.c (default_skip_permanent_breakpoint): New function.
487 * arch-utils.h (default_skip_permanent_breakpoint): New
489 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
490 Install default_skip_permanent_breakpoint as default method.
491 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
492 (i386_gdbarch_init): Don't install it.
493 * infrun.c (resume): Assume there's always a
494 gdbarch_skip_permanent_breakpoint implementation.
495 * gdbarch.h, gdbarch.c: Regenerate.
497 2014-11-11 Daniel Colascione <dancol@dancol.org>
499 Warn about cross-PID-namespace debugging.
500 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
501 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
502 * linux-thread-db.c (check_pid_namespace_match): New function.
503 (thread_db_inferior_created): Call it.
505 2014-11-10 Doug Evans <xdje42@gmail.com>
507 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
508 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
510 2014-11-10 Doug Evans <xdje42@gmail.com>
512 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
514 2014-11-10 Doug Evans <xdje42@gmail.com>
517 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
518 (lookup_static_symbol): Move definition to new location and rewrite.
519 (lookup_symbol_in_objfile): New function.
520 (lookup_symbol_global_iterator_cb): Call it.
522 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
524 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
526 2014-11-07 Pedro Alves <palves@redhat.com>
528 * infrun.c (process_event_stop_test) <subroutine check>: Don't
529 check if we did a "nexti" inside a prologue.
530 * symtab.c (in_prologue): Delete function.
531 * symtab.h (in_prologue): Delete declaration.
533 2014-11-06 Doug Evans <xdje42@gmail.com>
535 * symtab.h (lookup_global_symbol): Improve function comment.
537 2014-11-06 Doug Evans <xdje42@gmail.com>
539 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
541 * symtab.h (lookup_global_symbol): Update decl.
542 (lookup_static_symbol): Move decl to better location.
544 2014-11-06 Doug Evans <xdje42@gmail.com>
546 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
548 2014-11-06 Doug Evans <xdje42@gmail.com>
550 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
552 (lookup_symbol_in_all_objfiles): Renamed from
553 lookup_symbol_aux_symtabs. All callers updated.
554 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
556 (lookup_symbol_in_objfile_symtabs): Renamed from
557 lookup_symbol_aux_objfile. All callers updated.
559 2014-11-06 Doug Evans <xdje42@gmail.com>
561 * symtab.c (lookup_symbol_in_block): Renamed from
562 lookup_symbol_aux_block. All callers updated.
564 2014-11-06 Doug Evans <xdje42@gmail.com>
566 * symtab.c (lookup_static_symbol): Renamed from
567 lookup_static_symbol_aux. All callers updated.
568 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
571 2014-11-06 Doug Evans <xdje42@gmail.com>
573 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
574 * block.c (block_lookup_symbol): Use it.
575 * cp-support.c (make_symbol_overload_list_block): Use it.
576 * symtab.c (iterate_over_symbols): Use it.
578 2014-11-06 Doug Evans <xdje42@gmail.com>
580 * symtab.c (lookup_block_symbol): Moved to ...
581 * block.c (block_lookup_symbol): ... here and renamed.
583 * block.h (block_lookup_symbol): Declare.
584 * symtab.h (lookup_block_symbol): Delete.
586 2014-11-06 Doug Evans <xdje42@gmail.com>
588 * ada-lang.c (ada_make_symbol_completion_list): Use
589 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
590 * symtab.c (lookup_objfile_from_block): Ditto.
592 2014-11-06 Doug Evans <xdje42@gmail.com>
594 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
597 2014-11-06 Doug Evans <xdje42@gmail.com>
599 * objfiles.c (get_objfile_arch): Constify.
600 * objfiles.h (get_objfile_arch): Update prototype.
601 * solib.c (solib_global_lookup): Fetch arch from objfile,
604 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
606 * nios2-tdep.c (wild_insn): Delete.
607 (profiler_insn, irqentry_insn): Delete.
608 (nios2_match_sequence): Delete.
609 (nios2_analyze_prologue): Update comments. Remove matching
610 of obsolete profiler_insn and irqentry_insn sequences.
612 2014-11-05 Alan Modra <amodra@gmail.com>
614 * charset.c (convert_between_encodings): Shrink obstack using
616 * minsyms.c (install_minimal_symbols): Likewise.
617 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
618 to char* before doing pointer arithmetic.
620 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
622 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
624 2014-11-04 Pedro Alves <palves@redhat.com>
626 * breakpoint.c (breakpoint_thread_match): Delete function.
627 * breakpoint.h (breakpoint_thread_match): Delete declaration.
629 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
632 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
633 the method args also under EVAL_SKIP when evaluating method
634 calls under EVAL_SKIP.
636 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
638 * dwarf2loc.c (read_pieced_value): Do big endian
639 processing only if gdb_regnum is not -1.
640 (write_pieced_value): Ditto.
642 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
644 * arm-linux-tdep.c (arm_linux_init_abi): Use
645 info.byte_order_for_code to choose endianity of breakpoint
646 instructions snippets.
648 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
650 * arm-tdep.c (extract_arm_insn): Use
651 gdbarch_byte_order_for_code to read arm instruction.
653 2014-11-02 Doug Evans <xdje42@gmail.com>
655 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
657 2014-11-02 Doug Evans <xdje42@gmail.com>
659 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
660 main_subfile before returning.
662 2014-10-31 Doug Evans <xdje42@gmail.com>
664 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
665 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
667 2014-10-31 Doug Evans <xdje42@gmail.com>
669 * valops.c (value_cast_pointers): Fix whitespace.
670 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
673 2014-10-30 Doug Evans <dje@google.com>
675 * NEWS: Mention ability add attributes to gdb.Objfile and
676 gdb.Progspace objects.
677 * python/py-objfile.c (objfile_object): New member dict.
678 (objfpy_dealloc): Py_XDECREF dict.
679 (objfpy_initialize): Initialize dict.
680 (objfile_getset): Add __dict__.
681 (objfile_object_type): Set tp_dictoffset member.
682 * python/py-progspace.c (progspace_object): New member dict.
683 (pspy_dealloc): Py_XDECREF dict.
684 (pspy_initialize): Initialize dict.
685 (pspace_getset): Add __dict__.
686 (pspace_object_type): Set tp_dictoffset member.
688 2014-10-30 Yao Qi <yao@codesourcery.com>
690 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
691 replace '\\' with '\\\\'.
693 2014-10-29 Joel Brobecker <brobecker@adacore.com>
697 2014-10-29 Pedro Alves <palves@redhat.com>
700 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
701 instead of assuming a thread with a stepping range is always
704 2014-10-29 Pedro Alves <palves@redhat.com>
707 * event-top.c (change_line_handler): Call
708 gdb_rl_callback_handler_remove instead of
709 rl_callback_handler_remove.
710 (callback_handler_installed): New global.
711 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
712 (gdb_rl_callback_handler_reinstall): New functions.
713 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
714 gdb_rl_callback_handler_install instead of
715 rl_callback_handler_remove and rl_callback_handler_install.
716 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
717 instead of rl_callback_handler_remove.
718 * event-top.h (gdb_rl_callback_handler_remove)
719 (gdb_rl_callback_handler_install)
720 (gdb_rl_callback_handler_reinstall): New declarations.
721 * infrun.c (reinstall_readline_callback_handler_cleanup): New
723 (fetch_inferior_event): Install it.
724 * top.c (gdb_readline_wrapper_line) Call
725 gdb_rl_callback_handler_remove instead of
726 rl_callback_handler_remove.
727 (gdb_readline_wrapper_cleanup): Don't call
728 rl_callback_handler_install.
730 2014-10-29 Pedro Alves <palves@redhat.com>
732 * event-top.c (command_line_handler): Clear the first byte of
733 linebuffer, when it is first allocated.
735 2014-10-29 Pedro Alves <palves@redhat.com>
737 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
740 2014-10-29 Pedro Alves <palves@redhat.com>
744 * tui/tui-interp.c (tui_is_toplevel): Delete global.
745 (tui_allowed_p): Delete function.
746 * tui/tui.c: Include "interps.h".
747 (tui_enable): Don't use tui_allowed_p. Error out here with
748 detailed error messages if the TUI is the top level interpreter,
749 or if output is not a terminal. Use newterm instead of initscr,
750 and error out if initializing the terminal fails. Also error out if
751 the terminal doesn't support cursor addressing.
752 * tui/tui.h (tui_allowed_p): Delete declaration.
754 2014-10-29 Joel Brobecker <brobecker@adacore.com>
756 * arm-tdep.c (arm_skip_stack_protector): Return early if
757 address loaded by first "ldr" instruction does not have
758 a corresponding minimal symbol. Update comment.
760 2014-10-29 Yao Qi <yao@codesourcery.com>
762 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
763 loaded address correctly of ldr instruction.
765 2014-10-28 Pedro Alves <palves@redhat.com>
768 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
770 * infrun.c (resume) <stepping breakpoint instruction>: Set the
771 thread's stepped_breakpoint field. Skip if reverse debugging.
773 (init_thread_stepping_state, handle_signal_stop): Clear the
774 thread's stepped_breakpoint field.
776 2014-10-27 Pedro Alves <palves@redhat.com>
778 * remote.c (remote_thread_alive): New, factored out from ...
779 (remote_thread_alive): ... this.
780 (remote_update_thread_list): Bail out before deleting threads if
781 the target returned an empty list, and, the current thread has a
784 2014-10-27 Pedro Alves <palves@redhat.com>
786 * infrun.c (handle_signal_stop): Also skip handlers when a random
787 signal arrives while handling a "stepi" or a "nexti". Set the
788 thread's 'step_after_step_resume_breakpoint' flag.
790 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
792 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
793 (arm_record_ld_st_imm_offset): Reimplement to cover all
794 load/store cases for ARM opcode 010.
795 (arm_record_ld_st_multiple): Reimplement to cover all
796 load/store cases for ARM opcode 100.
798 2014-10-26 Doug Evans <xdje42@gmail.com>
800 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
802 2014-10-26 Doug Evans <xdje42@gmail.com>
804 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
805 parameter "kind" to "block_index".
806 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
808 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
810 2014-10-26 Doug Evans <xdje42@gmail.com>
812 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
814 2014-10-26 Doug Evans <xdje42@gmail.com>
816 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
819 2014-10-26 Doug Evans <xdje42@gmail.com>
821 * parser-defs.h (block_found): Move decl from here ...
822 * symtab.h (block_found): ... to here.
824 2014-10-26 Doug Evans <xdje42@gmail.com>
826 * symtab.h (struct field_of_this_result): Fix typo in comment.
827 (lookup_symbol_in_language): Move function comment here.
828 (lookup_symbol): Improve function comment.
829 (basic_lookup_symbol_nonlocal): Ditto.
830 (lookup_symbol_static, lookup_symbol_global): Ditto.
831 (lookup_symbol_aux_block): Ditto.
832 (lookup_language_this): Add function comment.
833 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
835 (lookup_block_symbol): Improve function comment.
836 (lookup_struct): Fix capitalization in function comment.
837 (lookup_transparent_type): Add function comment.
838 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
839 Improve function comment.
840 (lookup_objfile_from_block): Add function comment.
841 * symtab.c (lookup_symbol_in_language): Update function comment.
842 (lookup_symbol, lookup_language_this): Ditto.
843 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
844 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
845 (basic_lookup_symbol_nonlocal): Ditto.
846 (lookup_symbol_static, lookup_symbol_global): Ditto.
847 (lookup_transparent_type, lookup_block_symbol): Ditto.
849 2014-10-25 Doug Evans <xdje42@gmail.com>
851 * symtab.c (types_info): Delete forward decl.
852 (functions_info, variables_info, sources_info): Ditto.
853 (_initialize_symtab): Rewrite forward decl to use
854 initialize_file_ftype.
856 2014-10-25 Doug Evans <xdje42@gmail.com>
858 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
860 2014-10-25 Doug Evans <xdje42@gmail.com>
862 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
863 of local var child_die.
865 2014-10-24 Don Breazeal <donb@codesourcery.com>
867 * infrun.c (follow_fork_inferior): Update fork message printing
868 to use target_terminal_ours_for_output instead of
869 target_terminal_ours, to use _() for all format strings, to print
870 "vfork" instead of "fork" for vforks, and to add a detach message.
871 (handle_vfork_child_exec_or_exit): Update message printing to use
872 target_terminal_ours_for_output instead of target_terminal_ours, to
873 use _() for all format strings, and to fix some formatting.
875 2014-10-24 Pedro Alves <palves@redhat.com>
877 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
878 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
879 * config/vax/vax.mh: Delete.
880 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
881 obsolete configurations section.
882 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
883 * vax-nat.c: Delete file.
885 2014-10-24 Pedro Alves <palves@redhat.com>
887 * NEWS (Removed targets): Add OS/arch column.
889 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
891 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
892 on the arg type of a constructor only if it is of reference type.
894 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
896 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
897 accessors and constants from nios2 opcodes update.
898 (nios2_get_next_pc): Likewise.
900 2014-10-19 Doug Evans <xdje42@gmail.com>
902 * gdbthread.h (set_running): Fix comment.
903 (set_executing, finish_thread_state): Fix comment.
905 2014-10-18 Doug Evans <xdje42@gmail.com>
907 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
909 2014-10-17 Doug Evans <dje@google.com>
911 * NEWS: Mention new event gdb.clear_objfiles.
912 * python/py-event.h (emit_clear_objfiles_event): Clear
913 * python/py-events.h (events_object): New member clear_objfiles.
914 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
916 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
917 emit clear_objfiles event.
918 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
920 (emit_clear_objfiles_event): New function.
921 (clear_objfiles): New event.
922 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
924 * python/python.c (_initialize_python): Call
925 gdbpy_initialize_clear_objfiles_event.
927 2014-10-17 Doug Evans <dje@google.com>
929 * NEWS: Mention new gdb.Objfile.progspace attribute.
930 * python/py-objfile.c (objfpy_get_progspace): New function.
931 (objfile_getset): New entry for "progspace".
933 2014-10-17 Pedro Alves <palves@redhat.com>
936 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
937 returns a copy of the input.
938 (run_command_1, continue_command, step_1, jump_command)
939 (signal_command, until_command, advance_command, finish_command)
940 (attach_command): Adjust and install a cleanup to free the
943 2014-10-17 Pedro Alves <palves@redhat.com>
946 * infcmd.c (continue_1): If continuing all threads in the
947 foreground, make sure the inferior's terminal settings are put in
950 2014-10-17 Pedro Alves <palves@redhat.com>
953 * annotate.c (annotate_breakpoints_invalid): Use
954 target_terminal_our_for_output instead of target_terminal_ours.
955 Give back the terminal to the target.
956 (annotate_frames_invalid): Likewise.
958 2014-10-17 Pedro Alves <palves@redhat.com>
960 * target.c (enum terminal_state): New enum.
961 (terminal_state): New global.
962 (target_terminal_init): New function.
963 (target_terminal_inferior): Skip if inferior already owns the
965 (target_terminal_ours, target_terminal_ours_for_output): New
967 * target.h (target_terminal_init): Convert to function prototype.
968 (target_terminal_ours_for_output): Convert to function prototype
970 (target_terminal_ours): Convert to function prototype and tweak
972 * windows-nat.c (do_initial_windows_stuff): Call
973 target_terminal_init instead of child_terminal_init_with_pgrp.
975 2014-10-17 Pedro Alves <palves@redhat.com>
977 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
978 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
979 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
981 * NEWS: Mention that support for alpha*-*-osf* has been removed.
982 * ada-lang.h [__alpha__ && __osf__]
983 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
984 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
985 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
987 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
989 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
990 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
991 * configure: Regenerate.
992 * configure.ac: Remove references to osf.
993 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
994 section. Remove all other references to osf.
995 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
996 Remove all other references to osf.
997 * dec-thread.c: Delete file.
998 * defs.h (GDB_OSABI_OSF1): Delete.
999 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1001 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1002 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1004 (unconditionally_kill_inferior)
1005 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1006 * solib-osf.c: Delete file.
1008 2014-10-17 Pedro Alves <palves@redhat.com>
1010 * remote.c (clear_threads_listing_context): Move higher up, out of
1011 the HAVE_LIBEXPAT guard.
1013 2014-10-16 Tristan Gingold <gingold@adacore.com>
1015 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1016 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1019 2014-10-15 Pedro Alves <palves@redhat.com>
1021 * dec-thread.c (dec_thread_count_gdb_threads)
1022 (dec_thread_add_gdb_thread): Delete.
1023 (dec_thread_update_thread_list): Delete.
1024 (dec_thread_find_new_threads): Rename to ...
1025 (dec_thread_update_thread_list): ... this. Delete GDB-size
1026 threads that are no longer found in dec_thread_list.
1027 (resync_thread_list): Delete.
1028 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1031 2014-10-15 Pedro Alves <palves@redhat.com>
1033 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1034 * remote.c (remote_update_thread_list): Skip calling prune_threads
1035 if any thread listing method is supported, and instead walk over
1036 the set of remote threads listed, deleting those that are not
1037 found in GDB's thread list.
1039 2014-10-15 Pedro Alves <palves@redhat.com>
1041 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1042 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1043 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1044 (bsd_uthread_target): Adjust.
1045 * corelow.c (core_open): Adjust.
1046 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1047 (dec_thread_update_thread_list): New function.
1048 (init_dec_thread_ops): Adjust.
1049 * gdbthread.h (prune_threads): New declaration.
1050 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1051 (thread_db_update_thread_list): ... this. Call prune_threads.
1052 (init_thread_db_ops): Adjust.
1053 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1054 (procfs_update_thread_list): ... this. Call prune_threads.
1055 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1057 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1058 (obsd_update_thread_list): ... this. Call prune_threads.
1059 (obsd_add_target): Adjust.
1060 * procfs.c (procfs_target): Adjust.
1061 (procfs_notice_thread): Update comment.
1062 (procfs_find_new_threads): Rename to ...
1063 (procfs_update_thread_list): ... this. Call prune_threads.
1064 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1066 (ravenscar_wait): Adjust.
1067 (ravenscar_find_new_threads): Rename to ...
1068 (ravenscar_update_thread_list): ... this. Call prune_threads.
1069 (init_ravenscar_thread_ops): Adjust.
1070 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1071 (record_btrace_update_thread_list): ... this. Adjust comment.
1072 (init_record_btrace_ops): Adjust.
1073 * remote.c (remote_threads_info): Rename to ...
1074 (remote_update_thread_list): ... this. Call prune_threads.
1075 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1077 * sol-thread.c (check_for_thread_db): Adjust.
1078 (sol_find_new_threads_callback): Rename to ...
1079 (sol_update_thread_list_callback): ... this.
1080 (sol_find_new_threads): Rename to ...
1081 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1082 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1083 * target-delegates.c: Regenerate.
1084 * target.c (target_find_new_threads): Rename to ...
1085 (target_update_thread_list): ... this.
1086 * target.h (struct target_ops): Rename to_find_new_threads field
1087 to to_update_thread_list.
1088 (target_find_new_threads): Rename to ...
1089 (target_update_thread_list): ... this.
1090 * thread.c (prune_threads): Make extern.
1091 (update_thread_list): Adjust.
1093 2014-10-15 Pedro Alves <palves@redhat.com>
1095 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1096 Add describing comment. Return -1 if the qL packet is not
1098 (struct thread_item, thread_item_t): Move higher up in
1099 the file. Add comments.
1100 (struct threads_parsing_context): Move higher up in
1101 the file, add comments, and remote to ...
1102 (struct threads_listing_context): ... this.
1103 (remote_newthread_step): Don't add the thread to GDB's thread
1104 database here. Instead push it to the thread_listing_context
1106 (remote_find_new_threads): Rename to ...
1107 (remote_get_threads_with_ql): ... this. Add target_ops and
1108 targets_listing_context parameters. Pass down context.
1109 (start_thread): Adjust.
1110 (clear_threads_parsing_context): Rename to ...
1111 (clear_threads_listing_context): ... this.
1112 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1113 remote_threads_info.
1114 (remote_get_threads_with_qthreadinfo): Ditto.
1115 (remote_threads_info): Reimplement.
1117 2014-10-15 Pedro Alves <palves@redhat.com>
1119 * infrun.c (resume): Don't force displaced-stepping for all
1120 single-steps on software single-stepping archs.
1122 2014-10-15 Pedro Alves <palves@redhat.com>
1124 * breakpoint.c (single_step_breakpoints): Delete global.
1125 (insert_single_step_breakpoint): Adjust to store the breakpoint
1126 pointer in the current thread.
1127 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1128 (cancel_single_step_breakpoints): Delete functions.
1129 (breakpoint_has_location_inserted_here): Make extern.
1130 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1132 * breakpoint.h (breakpoint_has_location_inserted_here): New
1134 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1135 (cancel_single_step_breakpoints): Remove declarations.
1136 * gdbthread.h (struct thread_control_state)
1137 <single_step_breakpoints>: New field.
1138 (delete_single_step_breakpoints)
1139 (thread_has_single_step_breakpoints_set)
1140 (thread_has_single_step_breakpoint_here): New declarations.
1141 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1142 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1143 (singlestep_pc): Delete globals.
1144 (infrun_thread_ptid_changed): Remove references to removed
1146 (resume_cleanups): Delete the current thread's single-step
1148 (maybe_software_singlestep): Remove references to removed globals.
1149 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1150 delete_single_step_breakpoints.
1151 (init_wait_for_inferior): Remove references to removed globals.
1152 (delete_thread_infrun_breakpoints): Delete the thread's
1153 single-step breakpoints too.
1154 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1155 single-step breakpoints here.
1156 (delete_stopped_threads_single_step_breakpoints): New function.
1157 (adjust_pc_after_break): Adjust to use
1158 thread_has_single_step_breakpoints_set.
1159 (handle_inferior_event): Remove references to removed globals.
1160 Use delete_stopped_threads_single_step_breakpoints.
1161 (handle_signal_stop): Adjust to per-thread single-step
1162 breakpoints. Swap test order to do cheaper tests first.
1163 (switch_back_to_stepped_thread): Extend debug output. Remove
1164 references to removed globals.
1165 * record-full.c (record_full_wait_1): Adjust to per-thread
1166 single-step breakpoints.
1167 * thread.c (delete_single_step_breakpoints)
1168 (thread_has_single_step_breakpoints_set)
1169 (thread_has_single_step_breakpoint_here): New functions.
1170 (clear_thread_inferior_resources): Also delete the thread's
1171 single-step breakpoints.
1173 2014-10-15 Pedro Alves <palves@redhat.com>
1175 * thread.c (delete_thread_breakpoint): New function.
1176 (delete_step_resume_breakpoint)
1177 (delete_exception_resume_breakpoint): Use it.
1178 (delete_at_next_stop): New function.
1179 (clear_thread_inferior_resources): Use delete_at_next_stop.
1181 2014-10-15 Pedro Alves <palves@redhat.com>
1183 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1184 (breakpoint_inserted_here_p): ... here. Remove special case for
1185 software single-step breakpoints.
1186 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1187 (software_breakpoint_inserted_here_p): ... here. Remove special
1188 case for software single-step breakpoints.
1189 (bp_target_info_copy_insertion_state)
1190 (deprecated_insert_raw_breakpoint)
1191 (deprecated_remove_raw_breakpoint): Delete functions.
1192 * breakpoint.h (deprecated_insert_raw_breakpoint)
1193 (deprecated_remove_raw_breakpoint): Remove declarations.
1195 2014-10-15 Pedro Alves <palves@redhat.com>
1198 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1199 Delete array globals.
1200 (single_step_breakpoints): New global.
1201 (breakpoint_xfer_memory): Remove special handling for single-step
1203 (update_breakpoints_after_exec): Delete bp_single_step
1205 (detach_breakpoints): Remove special handling for single-step
1207 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1208 (bpstat_stop_status): Add comment.
1209 (bpstat_what, bptype_string, print_one_breakpoint_location)
1210 (adjust_breakpoint_address, init_bp_location): Handle
1212 (new_single_step_breakpoint): New function.
1213 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1214 handling for single-step breakpoints.
1215 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1216 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1218 (detach_single_step_breakpoints, find_single_step_breakpoint):
1220 (breakpoint_has_location_inserted_here): New function.
1221 (single_step_breakpoint_inserted_here_p): Rewrite.
1222 * breakpoint.h: Remove FIXME.
1223 (enum bptype) <bp_single_step>: New enum value.
1224 (insert_single_step_breakpoint): Update comment.
1225 * infrun.c (resume_cleanups)
1226 (delete_step_thread_step_resume_breakpoint): Remove single-step
1228 (fetch_inferior_event): Install a cleanup that removes infrun
1230 (switch_back_to_stepped_thread) <expect thread advanced also>:
1231 Clear step-over info.
1233 2014-10-15 Pedro Alves <palves@redhat.com>
1235 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1236 (delete_thread_infrun_breakpoints): New function, with parts
1237 salvaged from delete_step_resume_breakpoint_callback.
1238 (delete_step_thread_step_resume_breakpoint): Delete.
1239 (for_each_just_stopped_thread_callback_func): New typedef.
1240 (for_each_just_stopped_thread): New function.
1241 (delete_just_stopped_threads_infrun_breakpoints): New function.
1242 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1243 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1245 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1247 2014-10-15 Pedro Alves <palves@redhat.com>
1249 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1250 trying to step past a non-steppable watchpoint.
1251 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1253 * infrun.c (struct step_over_info): Add new field
1254 'nonsteppable_watchpoint_p' and adjust comments.
1255 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1257 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1258 (stepping_past_nonsteppable_watchpoint): New function.
1259 (step_over_info_valid_p): Also return true if stepping past a
1260 nonsteppable watchpoint.
1261 (proceed): Adjust call to set_step_over_info. Remove reference to
1263 (init_wait_for_inferior): Remove reference to init_infwait_state.
1264 (waiton_ptid): Delete global.
1265 (struct execution_control_state)
1266 <stepped_after_stopped_by_watchpoint>: Delete field.
1267 (wait_for_inferior, fetch_inferior_event): Always pass
1268 minus_one_ptid to target_wait.
1269 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1271 (init_infwait_state): Delete function.
1272 (handle_inferior_event): Remove infwait_state handling.
1273 (handle_signal_stop) <watchpoints handling>: Adjust after
1274 stepped_after_stopped_by_watchpoint removal. Don't remove
1275 breakpoints here nor set infwait_state. Set the thread's
1276 stepping_over_watchpoint flag, and call keep_going instead.
1277 (keep_going): Handle stepping_over_watchpoint. Adjust
1278 set_step_over_info calls.
1279 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1282 2014-10-15 Pedro Alves <palves@redhat.com>
1284 * infrun.c (step_over_info_valid_p): New function.
1285 (resume): Use step_over_info_valid_p instead of checking the
1286 threads's trap_expected flag.
1288 2014-10-15 Doug Evans <dje@google.com>
1289 Walfred Tedeschi <walfred.tedeschi@intel.com>
1292 * python/lib/gdb/__init__.py (packages): Add "printer".
1293 * python/lib/gdb/command/bound_registers.py: Moved to ...
1294 * python/lib/gdb/printer/bound_registers.py: ... here.
1295 Add printer to global set of builtin printers. Rename printer from
1296 "bound" to "mpx_bound128".
1297 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1298 registered as global "builtin" printer.
1299 (add_builtin_pretty_printer): New function.
1300 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1301 gdb/printer/__init__.py.
1303 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1305 * Makefile.in (SFILES): Remove d-support.c.
1306 (COMMON_OBS): Remove d-support.o.
1307 * d-lang.h (d_parse_symbol): Remove declaration.
1308 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1309 * d-support.c: Remove file.
1311 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1313 * gdb/infrun.c (process_event_stop_test): Apply
1314 gdbarch_addr_bits_remove to longjmp resume address.
1316 2014-10-15 Pedro Alves <palves@redhat.com>
1318 * regformats/microblaze.dat: Delete file.
1320 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1322 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1323 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1325 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1327 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1330 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1334 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1335 with qualified args.
1337 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1339 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1340 of the case where the second operand is a pointer.
1341 <BINOP_SUB>: Likewise.
1343 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1345 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1346 only if it is not NULL.
1347 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1348 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1349 (struct probe_ops) <clear_semaphore>: Likewise.
1350 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1352 (stop_tracing): Likewise, for clear_semaphore.
1354 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1356 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1357 using language_c, instead of current_language.
1359 2014-10-13 Doug Evans <dje@google.com>
1361 * python/py-objfile.c (objfpy_initialize): New function.
1362 (objfpy_new, objfile_to_objfile_object): Call it.
1363 * python/py-progspace.c (pspy_initialize): New function.
1364 (pspy_new, pspace_to_pspace_object): Call it.
1366 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1367 Jan Kratochvil <jan.kratochvil@redhat.com>
1369 Fix "save breakpoints" for "catch" command.
1370 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1373 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1375 Fix "save breakpoints" for "disable $bpnum" command.
1376 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1378 2014-10-10 Pedro Alves <palves@redhat.com>
1380 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1381 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1382 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1383 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1385 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1386 * configure.ac: Remove references to IRIX.
1387 * configure.host: Add *-*-irix* to the obsolete hosts section.
1388 Remove all other references to irix.
1389 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1392 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1394 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1395 isn't valid, release the tdesc arch data and return NULL.
1397 2014-10-10 Pedro Alves <palves@redhat.com>
1399 * linux-tdep.c: Include observer.h.
1400 (linux_inferior_data): New global.
1401 (struct linux_info): New structure.
1402 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1403 (get_linux_inferior_data): New functions.
1404 (linux_vsyscall_range): Rename to ...
1405 (linux_vsyscall_range_raw): ... this.
1406 (linux_vsyscall_range): New function; handles caching.
1407 (_initialize_linux_tdep): Register linux_inferior_data. Install
1408 inferior_exit and inferior_appeared observers.
1410 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1411 Pedro Alves <palves@redhat.com>
1414 * solib-svr4.c (svr4_read_so_list): Rename to ...
1415 (svr4_current_sos_1): ... this and change the function comment.
1416 (svr4_current_sos): New function.
1418 2014-10-10 Pedro Alves <palves@redhat.com>
1420 * arch-utils.c (default_vsyscall_range): New function.
1421 * arch-utils.h (default_vsyscall_range): New declaration.
1422 * gdbarch.sh (vsyscall_range): New hook.
1423 * gdbarch.h, gdbarch.c: Regenerate.
1424 * linux-tdep.c (linux_vsyscall_range): New function.
1425 (linux_init_abi): Install linux_vsyscall_range as
1426 vsyscall_range gdbarch hook.
1427 * memrange.c (address_in_mem_range): New function.
1428 * memrange.h (address_in_mem_range): New declaration.
1429 * symfile-mem.c (find_vdso_size): Delete function.
1430 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1432 2014-10-10 Pedro Alves <palves@redhat.com>
1434 * infrun.c (normal_stop): Fix typo in comment.
1436 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1439 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1440 typo when using logical AND to determine instruction type.
1442 2014-10-09 Yao Qi <yao@codesourcery.com>
1444 * infrun.c (handle_signal_stop): Remove local variable
1447 2014-10-08 Stan Shebs <stan@codesourcery.com>
1449 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1451 2014-10-08 Gary Benson <gbenson@redhat.com>
1453 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1455 2014-10-08 Gary Benson <gbenson@redhat.com>
1457 * common/common-defs.h: Include common-exceptions.h.
1458 * exceptions.h: Do not include common-exceptions.h.
1460 2014-10-08 Gary Benson <gbenson@redhat.com>
1462 * common/common-defs.h: Include cleanups.h.
1463 * common/common-exceptions.c: Do not include cleanups.h.
1464 * utils.h: Likewise.
1466 2014-10-08 Gary Benson <gbenson@redhat.com>
1468 * ada-lang.c: Do not include exceptions.h.
1469 * ada-valprint.c: Likewise.
1470 * amd64-tdep.c: Likewise.
1471 * auto-load.c: Likewise.
1472 * block.c: Likewise.
1473 * break-catch-throw.c: Likewise.
1474 * breakpoint.c: Likewise.
1475 * btrace.c: Likewise.
1476 * c-lang.c: Likewise.
1477 * cli/cli-cmds.c: Likewise.
1478 * cli/cli-interp.c: Likewise.
1479 * cli/cli-script.c: Likewise.
1480 * completer.c: Likewise.
1481 * corefile.c: Likewise.
1482 * corelow.c: Likewise.
1483 * cp-abi.c: Likewise.
1484 * cp-support.c: Likewise.
1485 * cp-valprint.c: Likewise.
1486 * darwin-nat.c: Likewise.
1487 * dwarf2-frame-tailcall.c: Likewise.
1488 * dwarf2-frame.c: Likewise.
1489 * dwarf2loc.c: Likewise.
1490 * dwarf2read.c: Likewise.
1492 * event-loop.c: Likewise.
1493 * event-top.c: Likewise.
1494 * f-valprint.c: Likewise.
1495 * frame-unwind.c: Likewise.
1496 * frame.c: Likewise.
1497 * gdbtypes.c: Likewise.
1498 * gnu-v2-abi.c: Likewise.
1499 * gnu-v3-abi.c: Likewise.
1500 * guile/scm-auto-load.c: Likewise.
1501 * guile/scm-breakpoint.c: Likewise.
1502 * guile/scm-cmd.c: Likewise.
1503 * guile/scm-frame.c: Likewise.
1504 * guile/scm-lazy-string.c: Likewise.
1505 * guile/scm-param.c: Likewise.
1506 * guile/scm-symbol.c: Likewise.
1507 * guile/scm-type.c: Likewise.
1508 * hppa-hpux-tdep.c: Likewise.
1509 * i386-tdep.c: Likewise.
1510 * inf-loop.c: Likewise.
1511 * infcall.c: Likewise.
1512 * infcmd.c: Likewise.
1513 * infrun.c: Likewise.
1514 * interps.c: Likewise.
1515 * interps.h: Likewise.
1517 * linespec.c: Likewise.
1518 * linux-nat.c: Likewise.
1519 * linux-thread-db.c: Likewise.
1520 * m32r-rom.c: Likewise.
1522 * memory-map.c: Likewise.
1523 * mi/mi-cmd-break.c: Likewise.
1524 * mi/mi-cmd-stack.c: Likewise.
1525 * mi/mi-interp.c: Likewise.
1526 * mi/mi-main.c: Likewise.
1527 * monitor.c: Likewise.
1528 * nto-procfs.c: Likewise.
1529 * objc-lang.c: Likewise.
1530 * p-valprint.c: Likewise.
1531 * parse.c: Likewise.
1532 * ppc-linux-tdep.c: Likewise.
1533 * printcmd.c: Likewise.
1534 * probe.c: Likewise.
1535 * python/py-auto-load.c: Likewise.
1536 * python/py-breakpoint.c: Likewise.
1537 * python/py-cmd.c: Likewise.
1538 * python/py-finishbreakpoint.c: Likewise.
1539 * python/py-frame.c: Likewise.
1540 * python/py-framefilter.c: Likewise.
1541 * python/py-function.c: Likewise.
1542 * python/py-gdb-readline.c: Likewise.
1543 * python/py-inferior.c: Likewise.
1544 * python/py-infthread.c: Likewise.
1545 * python/py-lazy-string.c: Likewise.
1546 * python/py-linetable.c: Likewise.
1547 * python/py-param.c: Likewise.
1548 * python/py-prettyprint.c: Likewise.
1549 * python/py-symbol.c: Likewise.
1550 * python/py-type.c: Likewise.
1551 * python/py-value.c: Likewise.
1552 * python/python-internal.h: Likewise.
1553 * python/python.c: Likewise.
1554 * record-btrace.c: Likewise.
1555 * record-full.c: Likewise.
1556 * regcache.c: Likewise.
1557 * remote-fileio.c: Likewise.
1558 * remote-mips.c: Likewise.
1559 * remote.c: Likewise.
1560 * rs6000-aix-tdep.c: Likewise.
1561 * rs6000-nat.c: Likewise.
1563 * solib-darwin.c: Likewise.
1564 * solib-dsbt.c: Likewise.
1565 * solib-frv.c: Likewise.
1566 * solib-ia64-hpux.c: Likewise.
1567 * solib-spu.c: Likewise.
1568 * solib-svr4.c: Likewise.
1569 * solib.c: Likewise.
1570 * spu-tdep.c: Likewise.
1571 * stack.c: Likewise.
1572 * stap-probe.c: Likewise.
1573 * symfile-mem.c: Likewise.
1574 * symmisc.c: Likewise.
1575 * target.c: Likewise.
1576 * thread.c: Likewise.
1578 * tracepoint.c: Likewise.
1579 * tui/tui-interp.c: Likewise.
1580 * typeprint.c: Likewise.
1581 * utils.c: Likewise.
1582 * valarith.c: Likewise.
1583 * valops.c: Likewise.
1584 * valprint.c: Likewise.
1585 * value.c: Likewise.
1586 * varobj.c: Likewise.
1587 * windows-nat.c: Likewise.
1588 * xml-support.c: Likewise.
1590 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1592 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1594 (extended_mips16_next_pc): Update accordingly.
1596 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1598 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1600 (micromips_instruction_is_compact_branch): Likewise.
1601 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1602 or a compact jump, reaching a jump delay slot, or seeing a
1603 second non-prologue instruction.
1604 (micromips_scan_prologue): Also terminate scanning upon seeing a
1605 compact branch or jump, or reaching a branch or jump delay slot.
1606 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1607 or jump delay slot, or seeing a second non-prologue instruction.
1608 (mips32_instruction_has_delay_slot): Retain instruction
1609 examination code only, update arguments accordingly and move
1610 instruction fetch pieces to...
1611 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1612 (micromips_instruction_has_delay_slot): Likewise and to...
1613 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1614 (mips16_instruction_has_delay_slot): Likewise and to...
1615 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1616 (mips_single_step_through_delay): Update accordingly.
1617 (mips_adjust_breakpoint_address): Likewise.
1619 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1621 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1622 !mustbe32 also return 1 for 32-bit instructions.
1623 (mips16_instruction_has_delay_slot): Likewise. Add an
1624 explanatory comment.
1626 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1628 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1631 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1633 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1635 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1636 for the breakpoint's address. Don't preinitialize `placed_size'.
1637 (insert_bp_location): Set `reqstd_address' rather than
1639 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1640 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1642 (bkpt_remove_location): Likewise.
1643 (deprecated_insert_raw_breakpoint): Likewise.
1644 (deprecated_remove_raw_breakpoint): Likewise.
1645 (find_single_step_breakpoint): Likewise.
1646 * mem-break.c (default_memory_insert_breakpoint): Use
1647 `reqstd_address' for the breakpoint's address. Don't set
1648 `placed_address' or `placed_size' if breakpoint contents couldn't
1649 have been determined.
1650 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1651 the breakpoint's address.
1652 (remote_insert_hw_breakpoint): Likewise. Don't set
1653 `placed_address' or `placed_size' if breakpoint couldn't have been
1655 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1656 `reqstd_address' for the breakpoint's address.
1657 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1658 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1659 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1660 * microblaze-linux-tdep.c
1661 (microblaze_linux_memory_remove_breakpoint): Likewise.
1662 * monitor.c (monitor_insert_breakpoint): Likewise.
1663 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1664 (procfs_insert_hw_breakpoint): Likewise.
1665 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1666 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1667 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1668 * remote-mips.c (mips_insert_breakpoint): Likewise.
1669 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1671 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1673 * valops.c (value_assign): Check for bit field assignments
1674 before calling architecture-specific register value
1675 conversion functions.
1677 2014-10-03 Pierre Muller <muller@sourceware.org>
1679 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1681 2014-10-02 Pedro Alves <palves@redhat.com>
1683 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1684 threads_are_executing.
1685 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1687 * gdbthread.h (threads_are_executing): Declare.
1688 (handle_signal_stop) <random signals>: Don't print about the
1689 signal here if stopping.
1690 (end_stepping_range): Don't notify observers here.
1691 (normal_stop): Update the thread list. If stopped by a random
1692 signal or a stepping range ended, notify observers.
1693 * thread.c (threads_executing): New global.
1694 (init_thread_list): Clear 'threads_executing'.
1695 (set_executing): Set or clear 'threads_executing'.
1696 (threads_are_executing): New function.
1697 (update_threads_executing): New function.
1698 (update_thread_list): Use it.
1700 2014-10-02 Pedro Alves <palves@redhat.com>
1702 PR breakpoints/17431
1703 * breakpoint.c (update_breakpoints_after_exec): Don't create
1704 overlay, longjmp, std terminate nor exception breakpoints here.
1706 2014-10-02 Pedro Alves <palves@redhat.com>
1708 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1710 * inferior.c (find_inferior_for_program_space): Give preference to
1711 the current inferior.
1712 * inferior.h (find_inferior_for_program_space): Update comment.
1713 * progspace.c (switch_to_program_space_and_thread): Prefer the
1714 current inferior if it's bound to the program space requested. If
1715 the inferior found doesn't have a PID yet, don't bother looking up
1717 * progspace.h (switch_to_program_space_and_thread): Adjust
1719 * thread.c (any_thread_of_process, any_live_thread_of_process):
1720 Give preference to the current thread.
1722 2014-10-01 Pedro Alves <palves@redhat.com>
1724 * breakpoint.c (insert_bp_location): Error out if inserting a
1725 software breakpoint at a read-only address.
1726 * target.c (memory_xfer_check_region): New function, factored out
1728 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1730 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1731 against the memory region attributes.
1733 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1735 * NEWS: Announce new exit-code field in -list-thread-groups
1737 * inferior.c (exit_inferior_1): Don't clear exit code.
1738 (inferior_appeared): Clear exit code.
1739 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1742 2014-10-01 Pedro Alves <palves@redhat.com>
1744 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1745 GENERATED" along with emacs/vi read-only markers.
1746 * regformats/aarch64.dat: Regenerate.
1747 * regformats/arm-with-iwmmxt.dat: Regenerate.
1748 * regformats/arm-with-neon.dat: Regenerate.
1749 * regformats/arm-with-vfpv2.dat: Regenerate.
1750 * regformats/arm-with-vfpv3.dat: Regenerate.
1751 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1752 * regformats/i386/amd64-avx.dat: Regenerate.
1753 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1754 * regformats/i386/amd64-avx512.dat: Regenerate.
1755 * regformats/i386/amd64-linux.dat: Regenerate.
1756 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1757 * regformats/i386/amd64-mpx.dat: Regenerate.
1758 * regformats/i386/amd64.dat: Regenerate.
1759 * regformats/i386/i386-avx-linux.dat: Regenerate.
1760 * regformats/i386/i386-avx.dat: Regenerate.
1761 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1762 * regformats/i386/i386-avx512.dat: Regenerate.
1763 * regformats/i386/i386-linux.dat: Regenerate.
1764 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1765 * regformats/i386/i386-mmx.dat: Regenerate.
1766 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1767 * regformats/i386/i386-mpx.dat: Regenerate.
1768 * regformats/i386/i386.dat: Regenerate.
1769 * regformats/i386/x32-avx-linux.dat: Regenerate.
1770 * regformats/i386/x32-avx.dat: Regenerate.
1771 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1772 * regformats/i386/x32-avx512.dat: Regenerate.
1773 * regformats/i386/x32-linux.dat: Regenerate.
1774 * regformats/i386/x32.dat: Regenerate.
1775 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1776 * regformats/mips-dsp-linux.dat: Regenerate.
1777 * regformats/mips-linux.dat: Regenerate.
1778 * regformats/mips64-dsp-linux.dat: Regenerate.
1779 * regformats/mips64-linux.dat: Regenerate.
1780 * regformats/nios2-linux.dat: Regenerate.
1781 * regformats/rs6000/powerpc-32.dat: Regenerate.
1782 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1783 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1784 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1785 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1786 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1787 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1788 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1789 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1790 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1791 * regformats/s390-linux32.dat: Regenerate.
1792 * regformats/s390-linux32v1.dat: Regenerate.
1793 * regformats/s390-linux32v2.dat: Regenerate.
1794 * regformats/s390-linux64.dat: Regenerate.
1795 * regformats/s390-linux64v1.dat: Regenerate.
1796 * regformats/s390-linux64v2.dat: Regenerate.
1797 * regformats/s390-te-linux64.dat: Regenerate.
1798 * regformats/s390x-linux64.dat: Regenerate.
1799 * regformats/s390x-linux64v1.dat: Regenerate.
1800 * regformats/s390x-linux64v2.dat: Regenerate.
1801 * regformats/s390x-te-linux64.dat: Regenerate.
1802 * regformats/tic6x-c62x-linux.dat: Regenerate.
1803 * regformats/tic6x-c62x.dat: Regenerate.
1804 * regformats/tic6x-c64x-linux.dat: Regenerate.
1805 * regformats/tic6x-c64x.dat: Regenerate.
1806 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1807 * regformats/tic6x-c64xp.dat: Regenerate.
1809 2014-10-01 Pedro Alves <palves@redhat.com>
1811 * features/Makefile: Update comments.
1812 (XMLTOC): List all xml files we build C files from.
1813 (clean-cfiles): New rule.
1815 2014-10-01 Pedro Alves <palves@redhat.com>
1817 * features/i386/amd64-avx512-linux.c: Regenerate.
1818 * features/i386/amd64-avx512.c: Regenerate.
1819 * features/i386/x32-avx512-linux.c: Regenerate.
1820 * features/i386/x32-avx512.c: Regenerate.
1822 2014-10-01 Pedro Alves <palves@redhat.com>
1824 * features/Makefile (WHICH): Remove arm-with-m,
1825 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1827 2014-10-01 Pedro Alves <palves@redhat.com>
1829 * features/Makefile (clean): New rule.
1831 2014-10-01 Pedro Alves <palves@redhat.com>
1833 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1834 (zmm14h): Add missing end quotes.
1836 2014-10-01 Pedro Alves <palves@redhat.com>
1838 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1839 * features/aarch64.c: Regenerate.
1841 2014-09-30 Don Breazeal <donb@codesourcery.com>
1843 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1844 code so as to work with follow_fork_inferior.
1845 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1846 (inf_ttrace_create_inferior): Remove reference to
1847 inf_ttrace_vfork_ppid.
1848 (inf_ttrace_attach): Ditto.
1849 (inf_ttrace_detach): Ditto.
1850 (inf_ttrace_kill): Use current_inferior instead of
1851 inf_ttrace_vfork_ppid.
1852 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1853 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1854 inferior away from the parent.
1855 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1857 (follow_fork_inferior): New function.
1858 (follow_inferior_reset_breakpoints): Make function static.
1859 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1860 * linux-nat.c (linux_child_follow_fork): Move target-independent
1861 code to infrun.c:follow_fork_inferior.
1863 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1865 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1866 * gdbarch.c: Regenerate.
1867 * gdbarch.h: Likewise.
1868 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1869 gdbarch method 'regset_from_core_section'.
1870 (get_core_register_section): Remove handling for the case that
1871 regset == NULL and regset_from_core_section is defined.
1872 (get_core_registers): Drop check for deleted method.
1873 * procfs.c (procfs_do_thread_registers): Adjust comment.
1875 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1877 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1878 (linux_nat_make_corefile_notes): Remove.
1879 (linux_target_install_ops): Do not set target method
1880 'make_corefile_notes'.
1881 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1883 (linux_corefile_thread_callback): Instead of args->collect, call
1884 linux_collect_thread_registers.
1885 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1886 NULL unless there is a regset iterator.
1887 (linux_make_corefile_notes_1): Remove.
1888 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1889 by linux_make_corefile_notes.
1890 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1892 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1894 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1895 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1897 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1899 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1901 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1902 (xtensa_iterate_over_regset_sections): New.
1903 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1905 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1907 * vax-tdep.c (vax_regset_from_core_section): Remove.
1908 (vax_iterate_over_regset_sections): New.
1909 (vax_gdbarch_init): Adjust gdbarch initialization.
1911 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1913 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1914 (tilegx_regset_from_core_section): Remove.
1915 (tilegx_iterate_over_regset_sections): New.
1916 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1918 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1920 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1921 (sparc_iterate_over_regset_sections): New.
1922 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1923 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1925 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1926 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1927 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1928 target method 'make_corefile_notes'.
1930 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1932 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1933 'sizeof_gregset' and 'sizeof_fpregset'.
1934 * sh-tdep.c (sh_regset_from_core_section): Remove.
1935 (sh_iterate_over_regset_sections): New.
1936 (sh_gdbarch_init): Adjust gdbarch initialization.
1937 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1939 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1942 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1944 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1945 (score7_linux_iterate_over_regset_sections): New.
1946 (score_gdbarch_init): Adjust gdbarch initialization.
1948 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1950 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1952 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1953 method 'make_corefile_notes'.
1954 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1955 (ppcfbsd_regset_from_core_section): Remove.
1956 (ppcfbsd_iterate_over_regset_sections): New.
1957 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1959 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1960 (ppcnbsd_iterate_over_regset_sections): New.
1961 (ppcnbsd_init_abi): Adjust.
1962 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1963 (ppcobsd_iterate_over_regset_sections): New.
1964 (ppcobsd_init_abi): Adjust.
1965 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1966 (rs6000_aix_iterate_over_regset_sections): New.
1967 (rs6000_aix_init_osabi): Adjust.
1969 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1971 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1972 (nios2_regset_from_core_section): Remove.
1973 (nios2_iterate_over_regset_sections): New.
1974 (nios2_linux_init_abi): Adjust gdbarch initialization.
1976 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1978 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1979 (am33_iterate_over_regset_sections): New.
1980 (am33_linux_init_osabi): Adjust gdbarch initialization.
1982 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1984 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1985 (mips_linux_iterate_over_regset_sections): New.
1986 (mips_linux_init_abi): Adjust gdbarch initialization.
1987 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1988 (mips64obsd_iterate_over_regset_sections): New.
1989 (mips64obsd_init_abi): Adjust.
1990 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1991 (mipsnbsd_iterate_over_regset_sections): New.
1992 (mipsnbsd_init_abi): Adjust.
1994 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1996 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1997 (m88k_iterate_over_regset_sections): New.
1998 (m88k_gdbarch_init): Adjust gdbarch initialization.
2000 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2002 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2003 (ia64_linux_iterate_over_regset_sections): New.
2004 (ia64_linux_init_abi): Adjust gdbarch initialization.
2006 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2008 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2009 (m68kbsd_iterate_over_regset_sections): New.
2010 (m68kbsd_init_abi): Adjust gdbarch initialization.
2011 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2012 (m68k_linux_iterate_over_regset_sections): New.
2013 (m68k_linux_init_abi): Adjust gdbarch initialization.
2015 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2017 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2018 (m32r_linux_regset_from_core_section): Remove.
2019 (m32r_linux_iterate_over_regset_sections): New.
2020 (m32r_linux_init_abi): Adjust gdbarch initialization.
2022 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2024 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2025 (amd64obsd_iterate_over_regset_sections): New.
2026 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2027 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2029 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2030 regset_from_core_section initialization.
2031 * i386-tdep.c (i386_regset_from_core_section): Remove.
2032 (i386_iterate_over_regset_sections): New.
2033 (i386_gdbarch_init): Adjust gdbarch initialization.
2034 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2035 (i386_iterate_over_regset_sections): New prototype.
2036 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2038 (i386obsd_aout_iterate_over_regset_sections): New.
2039 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2040 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2042 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2043 (amd64fbsd_init_abi): Call fbsd_init_abi.
2044 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2045 (i386fbsd4_init_abi): Call fbsd_init_abi.
2046 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2047 target method 'make_corefile_notes'.
2048 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2050 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2052 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2053 (hppa_hpux_iterate_over_regset_sections): New.
2054 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2055 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2056 (hppa_linux_iterate_over_regset_sections): New.
2057 (hppa_linux_init_abi): Adjust.
2058 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2059 (hppanbsd_iterate_over_regset_sections): New.
2060 (hppanbsd_init_abi): Adjust.
2061 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2062 (hppaobsd_iterate_over_regset_sections): New.
2063 (hppaobsd_init_abi): Adjust.
2065 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2067 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2068 (frv_linux_iterate_over_regset_sections): New.
2069 (frv_linux_init_abi): Adjust gdbarch initialization.
2071 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2073 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2074 (armbsd_iterate_over_regset_sections): New prototype.
2075 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2076 (armbsd_iterate_over_regset_sections): New.
2077 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2080 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2082 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2083 (alpha_linux_iterate_over_regset_sections): New.
2084 (alpha_linux_init_abi): Adjust gdbarch initialization.
2085 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2087 (alphanbsd_iterate_over_regset_sections): New prototype.
2089 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2091 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2093 (aarch64_linux_iterate_over_regset_sections): New.
2094 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2096 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2098 * fbsd-tdep.c: New file.
2099 * fbsd-tdep.h: New file.
2100 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2101 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2102 (ALLDEPFILES): Add fbsd-tdep.c.
2104 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2106 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2108 * gdbarch.h: Regenerate.
2109 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2111 (get_core_register_section): Add parameter 'regset' and use it, if
2112 set. Add parameter 'min_size' and verify the bfd section size
2114 (get_core_registers_cb): Add parameter 'regset' and pass it to
2115 get_core_register section. For the "standard" register sections
2116 ".reg" and ".reg2", set an appropriate default for human_name.
2117 (get_core_registers): Don't abort when the gdbarch has an iterator
2118 but no regset_from_core_section. Add NULL/0 for parameters
2119 'regset'/'min_size' in calls to get_core_register_section.
2120 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2121 'regset' and use it instead of calling the
2122 regset_from_core_section gdbarch method.
2123 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2124 * i386-tdep.c (i386_supply_xstateregset)
2125 (i386_collect_xstateregset, i386_xstateregset): Moved to
2127 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2129 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2130 core file support only if the regset iterator hasn't been set.
2131 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2132 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2133 Moved from i386-tdep.c and renamed to *_linux*.
2134 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2135 each callback invocation. Allow any .reg-xstate size when reading
2137 * amd64-tdep.c (amd64_supply_xstateregset)
2138 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2140 (amd64_regset_from_core_section): Remove.
2141 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2142 install an amd64-specific regset_from_core_section gdbarch method.
2143 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2144 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2145 Moved from amd64-tdep.c and renamed to *_linux*.
2146 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2147 to each callback invocation. Allow any .reg-xstate size when
2148 reading from a core file.
2149 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2150 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2151 each callback invocation.
2152 (arm_linux_init_abi): No longer set the regset_from_core_section
2154 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2155 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2156 each callback invocation.
2157 (ppc_linux_init_abi): No longer set the regset_from_core_section
2159 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2160 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2161 (s390_regset_from_core_section): Remove.
2162 (s390_iterate_over_regset_sections): Add regset parameter to each
2163 callback invocation.
2164 (s390_gdbarch_init): No longer set the regset_from_core_section
2165 gdbarch method. Drop initialization of deleted tdep fields.
2167 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2169 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2170 (amd64_linux_iterate_over_regset_sections): New.
2171 (amd64_linux_init_abi_common): Don't install the regset section
2172 list, but the new iterator in gdbarch.
2173 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2174 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2175 (arm_linux_iterate_over_regset_sections): ...here. New function.
2176 (arm_linux_init_abi): Set iterator instead of section list.
2177 * corelow.c (get_core_registers_cb): New function, logic moved
2179 (get_core_registers): ...loop body here. Use new iterator method
2180 instead of walking through the regset section list.
2181 * gdbarch.sh: Remove 'core_regset_sections'. New method
2182 'iterate_over_regset_sections'. New typedef
2183 'iterate_over_regset_sections_cb'.
2184 * gdbarch.c: Regenerate.
2185 * gdbarch.h: Likewise.
2186 * i386-linux-tdep.c (i386_linux_regset_sections)
2187 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2189 (i386_linux_iterate_over_regset_sections): New.
2190 (i386_linux_init_abi): Don't choose a regset section list, but
2191 install new iterator in gdbarch.
2192 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2193 (linux_collect_regset_section_cb): New function, logic moved
2195 (linux_collect_thread_registers): ...loop body here. Use iterator
2196 method instead of walking through list.
2197 (linux_make_corefile_notes_1): Check for presence of iterator
2198 method instead of regset section list.
2199 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2200 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2201 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2202 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2203 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2204 (ppc_linux_init_abi): Don't choose from above regset section
2205 lists, but install new iterator in gdbarch.
2206 * regset.h (struct core_regset_section): Remove.
2207 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2208 have_linux_v1, have_linux_v2, and have_tdb.
2209 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2210 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2211 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2212 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2213 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2214 (s390_iterate_over_regset_sections): ...here. New function. Use
2216 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2217 regset section lists, but install new iterator.
2219 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2221 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2223 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2225 * progspace.c (print_program_space): Don't prune program spaces
2226 before printing them.
2228 2014-09-25 Pedro Alves <palves@redhat.com>
2230 * infrun.c (user_visible_resume_ptid): Don't check
2231 singlestep_breakpoints_inserted_p.
2233 2014-09-25 Pedro Alves <palves@redhat.com>
2235 * breakpoint.c (should_be_inserted): Add debug output.
2237 2014-09-25 Pedro Alves <palves@redhat.com>
2239 * infrun.c (stepping_past_instruction_at)
2240 (clear_exit_convenience_vars): Point at infrun.h instead of
2242 (handle_signal_stop): Fix typo.
2244 2014-09-24 Yao Qi <yao@codesourcery.com>
2246 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2249 2014-09-22 Gary Benson <gbenson@redhat.com>
2251 * target.c (target_stop): Updated comment.
2253 2014-09-22 Gary Benson <gbenson@redhat.com>
2255 * target/target.h (target_stop_ptid): Renamed as...
2256 (target_stop_and_wait): New function. Updated comment.
2258 (target_continue_ptid): Renamed as...
2259 (target_continue_no_signal): New function. Updated comment.
2262 2014-09-22 Pedro Alves <palves@redhat.com>
2264 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2266 * breakpoint.c (enum ugll_insert_mode): New enum.
2267 (always_inserted_mode): Now a plain boolean.
2268 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2269 (breakpoints_always_inserted_mode): Delete.
2270 (breakpoints_should_be_inserted_now): New function.
2271 (insert_breakpoints): Pass UGLL_INSERT to
2272 update_global_location_list instead of calling
2273 insert_breakpoint_locations manually.
2274 (create_solib_event_breakpoint_1): New, factored out from ...
2275 (create_solib_event_breakpoint): ... this.
2276 (create_and_insert_solib_event_breakpoint): Use
2277 create_solib_event_breakpoint_1 instead of calling
2278 insert_breakpoint_locations manually.
2279 (update_global_location_list): Change parameter type from boolean
2280 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2281 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2282 (update_global_location_list_nothrow): Change parameter type from
2283 boolean to enum ugll_insert_mode.
2284 (_initialize_breakpoint): "breakpoint always-inserted" option is
2285 now a boolean command. Update help text.
2286 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2287 (breakpoints_should_be_inserted_now): New declaration.
2288 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2289 Remove breakpoints_always_inserted_mode check.
2290 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2291 * remote.c (remote_start_remote): Likewise.
2293 2014-09-22 Pedro Alves <palves@redhat.com>
2295 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2296 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2297 Instead, pass UGLL_INSERT to update_global_location_list.
2298 (update_global_location_list): Change parameter type from boolean
2299 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2300 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2301 (create_solib_event_breakpoint_1): New, factored out from ...
2302 (create_solib_event_breakpoint): ... this.
2303 (create_and_insert_solib_event_breakpoint): Use
2304 create_solib_event_breakpoint_1 instead of calling
2305 insert_breakpoint_locations manually.
2306 (update_global_location_list): Handle UGLL_INSERT.
2308 2014-09-22 Pedro Alves <palves@redhat.com>
2310 * breakpoint.c (enum ugll_insert_mode): New enum.
2311 (update_global_location_list)
2312 (update_global_location_list_nothrow): Change parameter type from
2313 boolean to enum ugll_insert_mode. All callers adjusted.
2315 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2317 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2318 SystemTap support in GDB.
2320 2014-09-19 Don Breazeal <donb@codesourcery.com>
2322 * linux-nat.c (linux_handle_extended_wait): Call
2323 linux_ptrace_get_extended_event.
2324 (wait_lwp): Call linux_is_extended_waitstatus.
2325 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2326 and linux_is_extended_waitstatus.
2327 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2328 linux_ptrace_get_extended_event.
2329 (linux_ptrace_get_extended_event): New function.
2330 (linux_is_extended_waitstatus): New function.
2331 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2332 (linux_is_extended_waitstatus): New declarations.
2334 2014-09-19 Yao Qi <yao@codesourcery.com>
2336 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2337 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2338 comments. Callers update.
2339 (dwarf_decode_lines): Likewise.
2340 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2341 comments. Skip the line table if 'lowpc' is greater than
2342 'address'. Don't check
2343 dwarf2_per_objfile->has_section_at_zero.
2345 2014-09-18 Doug Evans <dje@google.com>
2347 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2348 * python/py-symtab.c (stpy_get_producer): New function.
2349 (symtab_object_getset): Add "producer" attribute.
2351 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
2354 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2355 (do_captured_read_memory_integer): Remove.
2356 (safe_read_memory_integer): Use target_read_memory directly instead
2357 of catching errors in do_captured_read_memory_integer.
2359 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2361 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2364 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2366 * objc-lang.c (find_implementation_from_class): Remove dead code.
2368 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2371 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2372 "fprintf_unfiltered (gdb_stdlog...)".
2374 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2376 PR breakpoints/12526
2377 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2379 * breakpoint.c (watch_command_1): Use these fields to retain
2380 bitfield information.
2381 (extract_bitfield_from_watchpoint_value): New function.
2382 (watchpoint_check): Use it.
2383 (update_watchpoint): Use it. Optimize the address and length of a
2384 HW watchpoint pointing to a bitfield.
2385 * value.h (unpack_value_bitfield): New prototype.
2386 * value.c (unpack_value_bitfield): Make extern.
2388 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2390 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2392 * gnu-nat.c (inf_threads): New function.
2393 * gnu-nat.h (inf_threads_ftype): New typedef.
2394 (inf_threads): New declaration.
2395 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2396 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2397 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2398 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2399 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2400 (i386_gnu_dr_get_control): New functions.
2401 (reg_addr): New structure.
2402 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2403 i386 debugging register hooks.
2404 * NEWS: Mention this.
2406 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2408 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2409 vector data transfer instructions.
2410 (arm_record_coproc_data_proc): Updated.
2412 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2414 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2415 arm_record_exreg_ld_st_insn.
2416 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2419 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2421 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2422 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2423 processing instructions.
2425 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2427 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2428 for advance SIMD struct ld/st insn.
2429 (thumb2_record_decode_insn_handler): Replace stub handler with
2430 thumb2_record_asimd_struct_ld_st.
2432 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2434 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2435 for asimd, vfp and coprocessor insns.
2436 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2437 and coprocessor insns.
2438 (thumb2_record_coproc_insn): New function.
2439 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2441 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2444 2014-09-13 Doug Evans <xdje42@gmail.com>
2446 * NEWS: Mention new "queue-signal" command.
2447 * infcmd.c (queue_signal_command): New function.
2448 (_initialize_infcmd): Add new queue-signal command.
2450 2014-09-13 Doug Evans <xdje42@gmail.com>
2452 * linux-nat.c (wait_lwp): Add debugging printf.
2453 (linux_nat_wait_1): Ditto.
2455 2014-09-12 Pedro Alves <palves@redhat.com>
2457 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2458 (create_and_insert_solib_event_breakpoint): New functions.
2459 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2460 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2461 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2462 (remove_dbx_link_breakpoint): Delete function.
2463 (insert_dbx_link_bpt_in_file): Use
2464 create_and_insert_solib_event_breakpoint instead of
2465 deprecated_insert_raw_breakpoint.
2466 (procfs_wait): Don't check whether we hit __dbx_link here.
2467 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2469 * solib-irix.c (base_breakpoint): Delete global.
2470 (disable_break): Delete function.
2471 (enable_break): Use create_solib_event_breakpoint
2472 instead of deprecated_insert_raw_breakpoint.
2473 (irix_solib_handle_event): New function.
2474 (irix_solib_create_inferior_hook): Don't run the target or disable
2475 the mapping-complete breakpoint here.
2476 (_initialize_irix_solib): Install irix_solib_handle_event as
2477 so_ops->handle_event hook.
2479 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2480 Ulrich Weigand <uweigand@de.ibm.com>
2483 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2484 instead of read_memory_unsigned_integer.
2486 2014-09-12 Gary Benson <gbenson@redhat.com>
2488 * nat/linux-waitpid.c: Include common-defs.h.
2489 [GDBSERVER]: Add FIXME comment.
2490 [!GDBSERVER]: Don't include defs.h or signal.h.
2491 (linux_debug) [!GDBSERVER]: Remove empty block.
2493 2014-09-12 Gary Benson <gbenson@redhat.com>
2495 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2496 Don't include defs.h or server.h.
2498 2014-09-12 Gary Benson <gbenson@redhat.com>
2500 * nat/linux-btrace.c: Include common-defs.h.
2501 Don't include defs.h, server.h or gdbthread.h.
2502 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2504 2014-09-12 Gary Benson <gbenson@redhat.com>
2506 * common/agent.c: Include common-defs.h.
2507 Don't include defs.h or server.h.
2508 * common/buffer.c: Likewise.
2509 * common/common-debug.c: Likewise.
2510 * common/common-utils.c: Likewise.
2511 * common/errors.c: Likewise.
2512 * common/filestuff.c: Likewise.
2513 * common/format.c: Likewise.
2514 * common/gdb_vecs.c: Likewise.
2515 * common/print-utils.c: Likewise.
2516 * common/ptid.c: Likewise.
2517 * common/rsp-low.c: Likewise.
2518 * common/signals.c: Likewise.
2519 * common/vec.c: Likewise.
2520 * common/xml-utils.c: Likewise.
2521 * nat/linux-osdata.c: Likewise.
2522 * nat/linux-procfs.c: Likewise.
2523 * nat/linux-ptrace.c: Likewise.
2524 * nat/mips-linux-watch.c: Likewise.
2525 * target/waitstatus.c: Likewise.
2527 2014-09-12 Tom Tromey <tromey@redhat.com>
2528 Gary Benson <gbenson@redhat.com>
2530 * common/common-regcache.h: New file.
2531 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2532 * regcache.h: Include common-regcache.h.
2533 (regcache_read_pc): Don't declare.
2534 * regcache.c (get_thread_regcache_for_ptid): New function.
2535 * nat/linux-btrace.c: Don't include regcache.h.
2536 Include common-regcache.h.
2537 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2539 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2541 * regcache.h (struct regset): Declare.
2543 2014-09-11 Pedro Alves <palves@redhat.com>
2546 * main.c: Include "infrun.h".
2547 (catch_command_errors, catch_command_errors_const): Wait for the
2548 foreground command to complete.
2549 * top.c (maybe_wait_sync_command_done): New function, factored out
2551 (maybe_wait_sync_command_done): ... here.
2552 * top.h (maybe_wait_sync_command_done): New declaration.
2554 2014-09-11 Tom Tromey <tromey@redhat.com>
2555 Gary Benson <gbenson@redhat.com>
2557 * common/symbol.h: New file.
2558 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2559 * minsyms.c (find_minimal_symbol_address): New function.
2560 * common/agent.c: Include common/symbol.h.
2561 [!GDBSERVER]: Don't include objfiles.h.
2562 (agent_look_up_symbols): Use find_minimal_symbol_address.
2564 2014-09-11 Gary Benson <gbenson@redhat.com>
2566 * target/target.h (target_stop_ptid, target_continue_ptid):
2568 * target.c (target_stop_ptid, target_continue_ptid): New
2570 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2571 (agent_run_command): Always use target_stop_ptid and
2572 target_continue_ptid.
2574 2014-09-11 Tom Tromey <tromey@redhat.com>
2575 Gary Benson <gbenson@redhat.com>
2577 * target/target.h: New file.
2578 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2579 * target.h: Include target/target.h.
2580 (target_read_memory, target_write_memory): Don't declare.
2581 * target.c (target_read_uint32): New function.
2582 * common/agent.c: Include target/target.h.
2583 [!GDBSERVER]: Don't include target.h.
2584 (helper_thread_id): Type changed to uint32_t.
2585 (agent_get_helper_thread_id): Use target_read_uint32.
2586 (agent_run_command): Always use target_read_memory and
2587 target_write_memory.
2588 (agent_capability): Type changed to uint32_t.
2589 (agent_capability_check): Use target_read_uint32.
2591 2014-09-11 Gary Benson <gbenson@redhat.com>
2593 * common/common-debug.h (show_debug_regs): Declare.
2594 * common/common-debug.c (show_debug_regs): Define.
2595 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2596 all uses with show_debug_regs. Replace all uses that considered
2597 debug_hw_points as a multi-value integer with straight boolean
2599 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2600 with show_debug_regs.
2601 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2602 all uses with show_debug_regs.
2603 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2604 uses with show_debug_regs.
2606 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2608 * findvar.c (address_from_register): Handle targets requiring
2609 a special conversion routine even for plain pointer types.
2611 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2613 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2614 (store_register): Do not call exec_one_dummy_insn.
2616 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2618 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2619 dereference it first. Use value_enclosing_type instead of
2621 (ada_array_length): Likewise.
2623 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2625 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2626 Adjust function implementation and documentation accordingly.
2627 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2628 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2629 Update call to ada_value_ptr_subscript.
2631 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2633 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2634 instead of VAL's type.
2636 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2638 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2640 2014-09-09 Doug Evans <xdje42@gmail.com>
2643 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2644 last parameter to pkg-config, not first.
2645 * configure.ac: Pass --with-guile provided pkg-config path to
2646 GDB_GUILE_PROGRAM_NAMES.
2647 * configure: Regenerate.
2649 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2651 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2654 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2656 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2657 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2658 the list of sections determining GDB_OSABI_IRIX.
2660 2014-09-09 James Hogan <james.hogan@imgtec.com>
2662 * MAINTAINERS (Write After Approval): Add "James Hogan".
2664 2014-09-09 James Hogan <james.hogan@imgtec.com>
2666 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2668 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2670 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2672 2014-09-08 Doug Evans <xdje42@gmail.com>
2675 * guile.c: #include <signal.h>.
2676 (_initialize_guile): Block SIGCHLD while initializing Guile.
2678 Replaces the following, which is reverted.
2680 2014-07-26 Doug Evans <xdje42@gmail.com>
2683 * configure.ac: Add check for header gc/gc.h.
2684 Add check for function setenv.
2685 * configure: Regenerate.
2686 * config.in: Regenerate.
2687 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2689 2014-09-08 Doug Evans <xdje42@gmail.com>
2691 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2692 with named constant. Fix style of pointer comparison.
2693 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2695 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2698 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2699 decide whether we display the command on "show user".
2700 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2701 printing command name.
2702 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2703 * cli/cli-decode.c (cli_user_command_p): Create helper function
2704 to verify whether cmd_list_element is a user-defined command.
2706 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2709 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2710 Fix goto out of TRY_CATCH.
2712 2014-09-06 Doug Evans <xdje42@gmail.com>
2713 Tom Tromey <tromey@redhat.com>
2716 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2717 $_any_caller_matches.
2718 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2719 * python/lib/gdb/function/caller_is.py: New file.
2721 2014-09-06 Doug Evans <xdje42@gmail.com>
2723 * infcmd.c (program_info): Fix typo.
2725 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2728 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2729 'number'. New variable 'has_digit'. Rewrite code to deal with
2730 subexpressions on SDT probes.
2732 2014-09-04 Pedro Alves <palves@redhat.com>
2734 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2735 the input is only one character long.
2737 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2740 * f-valprint.c (f_val_print): Specify the correct print option to
2741 use when printing integer values.
2743 2014-09-04 Gary Benson <gbenson@redhat.com>
2745 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2746 Remove code to cope with LWPs wrapped as PIDs.
2747 Add assertions to ensure no wrapped LWPs are passed.
2749 2014-09-04 Pedro Alves <palves@redhat.com>
2751 * value.c (value_ranges_copy_adjusted): New function, factored out
2753 (value_contents_copy_raw): ... here.
2754 (unpack_value_bits_as_long_1): Rename back to ...
2755 (unpack_bits_as_long): ... this. Remove 'original_value' and
2756 'result' parameters. Change return type to LONGEST.
2757 (unpack_value_bits_as_long): Delete.
2758 (unpack_value_field_as_long_1): Delete.
2759 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2760 (unpack_value_bitfield): New function.
2761 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2762 (value_fetch_lazy): Use unpack_value_bitfield.
2763 * value.h (unpack_value_bits_as_long): Delete declaration.
2765 2014-09-03 Sasha Smundak <asmundak@google.com>
2767 * python/py-frame.c (frapy_read_register): New function.
2769 2014-09-03 James Hogan <james.hogan@imgtec.com>
2771 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2772 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2774 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2777 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2779 (add_cmd): Set "completer_handle_brkchars" to NULL.
2780 * cli/cli-decode.h (struct cmd_list_element)
2781 <completer_handle_brkchars>: New field.
2782 * command.h (completer_ftype_void): New typedef.
2783 (set_cmd_completer_handle_brkchars): New prototype.
2784 * completer.c (set_gdb_completion_word_break_characters): New
2786 (complete_line_internal): Call "completer_handle_brkchars"
2787 callback from command.
2788 * completer.h: Include "command.h".
2789 (set_gdb_completion_word_break_characters): New prototype.
2790 * python/py-cmd.c (cmdpy_completer_helper): New function.
2791 (cmdpy_completer_handle_brkchars): New function.
2792 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2793 (cmdpy_init): Set completer_handle_brkchars to
2794 cmdpy_completer_handle_brkchars.
2796 2014-09-03 Gary Benson <gbenson@redhat.com>
2798 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2799 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2800 Loop conditions changed to equivalent form.
2801 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2802 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2803 ALL_DEBUG_ADDRESS_REGISTERS.
2805 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2807 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2810 2014-09-02 Doug Evans <dje@google.com>
2812 * typeprint.c (find_global_typedef): Fix comment.
2814 2014-09-02 Gary Benson <gbenson@redhat.com>
2816 * i386-nat.h: Renamed as...
2817 * x86-nat.h: New file. All type, function and variable name
2818 prefixes changed from "i386_" to "x86_". All references updated.
2819 * i386-nat.c: Renamed as...
2820 * x86-nat.c: New file. All type, function and variable name
2821 prefixes changed from "i386_" to "x86_". All references updated.
2822 * common/i386-xstate.h: Renamed as...
2823 * common/x86-xstate.h: New file. All type, function and variable
2824 name prefixes changed from "i386_" to "x86_". All references
2826 * nat/i386-cpuid.h: Renamed as...
2827 * nat/x86-cpuid.h: New file. All type, function and variable name
2828 prefixes changed from "i386_" to "x86_". All references updated.
2829 * nat/i386-gcc-cpuid.h: Renamed as...
2830 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2831 name prefixes changed from "i386_" to "x86_". All references
2833 * nat/i386-dregs.h: Renamed as...
2834 * nat/x86-dregs.h: New file. All type, function and variable name
2835 prefixes changed from "i386_" to "x86_". All references updated.
2836 * nat/i386-dregs.c: Renamed as...
2837 * nat/x86-dregs.c: New file. All type, function and variable name
2838 prefixes changed from "i386_" to "x86_". All references updated.
2840 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2842 * varobj.c (_initialize_varobj): Move to the end of file.
2844 2014-08-29 Gary Benson <gbenson@redhat.com>
2846 * common/common-exceptions.h: New file.
2847 * common/common-exceptions.c: Likewise.
2848 * Makefile.in (SFILES): Add common/common-exceptions.c.
2849 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2850 (COMMON_OBS): Add common-exceptions.o.
2851 (common-exceptions.o): New rule.
2852 * exceptions.h (common-exceptions.h): Include.
2853 (gdb_setjmp.h): Do not include.
2854 (return_reason): Moved to common-exceptions.h.
2855 (enum return_reason): Likewise.
2856 (RETURN_MASK): Likewise.
2857 (typedef return_mask): Likewise.
2858 (enum errors): Likewise.
2859 (struct gdb_exception): Likewise.
2860 (exceptions_state_mc_init): Likewise.
2861 (exceptions_state_mc_action_iter): Likewise.
2862 (exceptions_state_mc_action_iter_1): Likewise.
2863 (TRY_CATCH): Likewise.
2864 (throw_exception): Likewise.
2865 (throw_verror): Likewise.
2866 (throw_vquit): Likewise.
2867 (throw_error): Likewise.
2868 (throw_quit): Likewise.
2869 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2870 (enum catcher_action): Likewise.
2871 (struct catcher): Likewise.
2872 (current_catcher): Likewise.
2873 (catcher_list_size): Likewise.
2874 (exceptions_state_mc_init): Likewise.
2875 (catcher_pop): Likewise.
2876 (exceptions_state_mc): Likewise.
2877 (exceptions_state_mc_action_iter): Likewise.
2878 (exceptions_state_mc_action_iter_1): Likewise.
2879 (throw_exception): Likewise.
2880 (exception_messages): Likewise.
2881 (exception_messages_size): Likewise.
2882 (throw_it): Likewise.
2883 (throw_verror): Likewise.
2884 (throw_vquit): Likewise.
2885 (throw_error): Likewise.
2886 (throw_quit): Likewise.
2887 (prepare_to_throw_exception): New function.
2889 2014-08-29 Gary Benson <gbenson@redhat.com>
2891 * common/gdb_setjmp.h: New file.
2892 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2893 * configure.ac: Move sigsetjmp check...
2894 * common/common.m4: ...here.
2895 * configure: Regenerate.
2896 * cp-support.c (SIGJMP_BUF): Delete.
2897 (SIGSETJMP): Likewise.
2898 (SIGLONGJMP): Likewise.
2899 * exceptions.h (gdb_setjmp.h): Include.
2900 (setjmp.h): Do not include.
2901 (EXCEPTIONS_SIGJMP_BUF): Delete.
2902 (EXCEPTIONS_SIGSETJMP): Likewise.
2903 (EXCEPTIONS_SIGLONGJMP): Likewise.
2904 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2906 * exceptions.c: Likewise.
2908 2014-08-29 Gary Benson <gbenson@redhat.com>
2910 * cleanups.h: Moved to...
2911 * common/cleanups.h: New file.
2912 * cleanups.c: Moved to...
2913 * common/cleanups.c: New file. Include common-defs.h and
2914 cleanups.h. Do not include defs.h.
2915 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2916 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2917 (cleanups.o): New rule.
2919 2014-08-29 Gary Benson <gbenson@redhat.com>
2921 * common/errors.h (internal_warning): New declaration.
2922 (internal_vwarning): Likewise.
2923 * common/errors.c (internal_warning): New function.
2924 * utils.h (internal_warning): Don't declare.
2925 (internal_vwarning): Likewise.
2926 * utils.c (internal_warning): Removed.
2928 2014-08-29 Gary Benson <gbenson@redhat.com>
2930 * main.c (captured_main): Use warning during startup.
2931 Prefix startup warning messages with command name.
2933 2014-08-29 Gary Benson <gbenson@redhat.com>
2935 * main.c (captured_main): Handle usage errors with error.
2937 2014-08-29 Gary Benson <gbenson@redhat.com>
2939 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2940 exit pair with a call to error. Wrap the message with _().
2942 2014-08-29 Gary Benson <gbenson@redhat.com>
2944 * main.c (captured_main): Replace a fprintf/exit
2945 pair with a call to error. Wrap the message with _().
2947 2014-08-29 Gary Benson <gbenson@redhat.com>
2949 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2950 pairs with calls to error. Wrap the message with _().
2952 2014-08-29 Gary Benson <gbenson@redhat.com>
2954 * utils.c (vwarning): Protect calls to target_terminal_ours
2957 2014-08-29 Gary Benson <gbenson@redhat.com>
2959 * exceptions.c (print_flush): Protect calls to
2960 target_terminal_ours and wrap_here.
2962 2014-08-29 Gary Benson <gbenson@redhat.com>
2964 * utils.h (filtered_printing_initialized): New declaration.
2965 * utils.c (abort_with_message): New function.
2966 (internal_vproblem): Use abort_with_message for first level
2967 recursive internal problems, and if gdb_stderr is not set up.
2968 Protect calls to target_terminal_ours, begin_line and query.
2970 2014-08-28 Doug Evans <dje@google.com>
2972 * symtab.c (in_prologue): Move definition to better spot.
2973 (skip_prologue_using_sal): Ditto.
2975 2014-08-28 Doug Evans <dje@google.com>
2977 * symtab.c (find_function_start_sal): Move definition to better spot.
2979 2014-08-28 Yao Qi <yao@codesourcery.com>
2981 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2982 found_stack_adjust in forward scan. Remove condition check
2983 on found_stack_adjust which is always true. Indent the code.
2985 2014-08-28 Yao Qi <yao@codesourcery.com>
2987 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2988 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2989 (dwarf_decode_lines): Remove argument
2990 want_line_info. Remove condition check on want_line_info.
2993 2014-08-27 Doug Evans <dje@google.com>
2995 * dwarf2read.c (dwarf_record_line): Fix typo.
2997 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2999 * target.h (struct target_ops::to_terminal_save_ours): Remove
3001 (target_terminal_save_ours): Remove macro.
3002 * target-delegates.c: Regenerate.
3003 * inf-child.c (inf_child_target): Don't set the nonexistent
3004 field to_terminal_save_ours.
3005 * inferior.h (child_terminal_save_ours): Remove declaration.
3006 * terminal.h (gdb_save_tty_state): New declaration.
3007 * inflow.c (child_terminal_save_ours): Rename to ...
3008 (gdb_save_tty_state): ... this.
3009 * tui/tui.c: Include terminal.h.
3010 (tui_enable): Use gdb_save_tty_state instead of
3011 target_terminal_save_ours.
3012 (tui_disable): Likewise.
3014 2014-08-25 Doug Evans <dje@google.com>
3016 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3017 Pass NULL instead of 0 for context pointer.
3019 2014-08-25 Yao Qi <yao@codesourcery.com>
3021 * dwarf2read.c: Fix grammatical error.
3023 2014-08-24 Yao Qi <yao@codesourcery.com>
3025 * dwarf2read.c (scan_partial_symbols): Update comments.
3026 Rename argument 'need_pc' with 'set_addrmap'.
3027 (add_partial_namespace): Rename argument 'need_pc' with
3029 (add_partial_module): Likewise.
3030 (add_partial_subprogram): Likewise. Update comments.
3031 (dwarf2_name): Fix typo.
3033 2014-08-22 Doug Evans <dje@google.com>
3036 * dwarf2read.c (dwarf_record_line_p): New function.
3037 (dwarf_decode_lines_1): Ignore subsequent line number entries
3038 for the same line if any entry had a non-zero discriminator.
3040 2014-08-22 Doug Evans <dje@google.com>
3042 * buildsym.h (record_line_ftype): New typedef.
3043 (record_line): Use it.
3044 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3045 (dwarf_decode_lines_1): Call them.
3047 2014-08-22 Yao Qi <yao@codesourcery.com>
3049 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3050 (ctf_end): Remove code.
3052 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3054 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3055 (linux_make_corefile_notes): call update_thread_list, protected against
3058 2014-08-21 Pedro Alves <palves@redhat.com>
3060 * infcmd.c (attach_command): Remove comment.
3062 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3064 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3065 unsigned LONGEST to ULONGEST.
3067 2014-08-20 Pedro Alves <palves@redhat.com>
3069 * Makefile.in (check-read1): New rule.
3071 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3073 * value.c (value_from_contents_and_address): Strip resolved_type's
3074 typedef layers before checking its TYPE_DATA_LOCATION.
3076 2014-08-20 Pedro Alves <palves@redhat.com>
3078 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3080 2014-08-20 Yao Qi <yao@codesourcery.com>
3082 * amd64-tdep.c (amd64_classify): Add a blank line after the
3083 example. Move "*/" to a new line.
3084 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3085 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3086 * dwarf2read.c (psymtab_include_file_name): Likewise.
3088 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3089 Pedro Alves <palves@redhat.com>
3093 * ada-lang.c (coerce_unspec_val_to_type): Use
3094 value_contents_copy_raw.
3095 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3096 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3097 * cp-valprint.c (cp_print_value_fields): Let the common printing
3098 code handle optimized out values.
3099 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3100 * d-valprint.c (dynamic_array_type): Use
3101 value_bits_any_optimized_out.
3102 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3103 check_any_valid fields.
3104 (check_pieced_value_bits): Delete and inline ...
3105 (check_pieced_synthetic_pointer): ... here.
3106 (check_pieced_value_validity): Delete.
3107 (check_pieced_value_invalid): Delete.
3108 (pieced_value_funcs): Remove check_validity and check_any_valid
3110 (read_pieced_value): Use mark_value_bits_optimized_out.
3111 (write_pieced_value): Switch to use
3112 mark_value_bytes_optimized_out.
3113 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3114 of assuming the whole value is optimized out.
3115 * findvar.c (read_frame_register_value): Remove special handling
3116 of optimized out registers.
3117 (value_from_register): Use mark_value_bytes_optimized_out.
3118 * frame-unwind.c (frame_unwind_got_optimized): Use
3119 mark_value_bytes_optimized_out.
3120 * jv-valprint.c (java_value_print): Adjust.
3121 (java_print_value_fields): Let the common printing code handle
3122 optimized out values.
3123 * mips-tdep.c (mips_print_register): Remove special handling of
3124 optimized out registers.
3125 * opencl-lang.c (lval_func_check_validity): Delete.
3126 (lval_func_check_any_valid): Delete.
3127 (opencl_value_funcs): Remove check_validity and check_any_valid
3129 * p-valprint.c (pascal_object_print_value_fields): Let the common
3130 printing code handle optimized out values.
3131 * stack.c (read_frame_arg): Remove special handling of optimized
3132 out values. Fetch both VAL and ENTRYVAL before comparing
3133 contents. Adjust to value_available_contents_eq rename.
3134 * valprint.c (valprint_check_validity)
3135 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3136 (val_print_array_elements): Adjust.
3137 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3138 (value_bits_any_optimized_out): New function.
3139 (value_entirely_covered_by_range_vector): New function, factored
3140 out from value_entirely_unavailable.
3141 (value_entirely_unavailable): Reimplement.
3142 (value_entirely_optimized_out): New function.
3143 (insert_into_bit_range_vector): New function, factored out from
3144 mark_value_bits_unavailable.
3145 (mark_value_bits_unavailable): Reimplement.
3146 (struct ranges_and_idx): New struct.
3147 (find_first_range_overlap_and_match): New function, factored out
3148 from value_available_contents_bits_eq.
3149 (value_available_contents_bits_eq): Rename to ...
3150 (value_contents_bits_eq): ... this. Check both unavailable
3151 contents and optimized out contents.
3152 (value_available_contents_eq): Rename to ...
3153 (value_contents_eq): ... this.
3154 (allocate_value_lazy): Remove reference to the old optimized_out
3156 (allocate_optimized_out_value): Use
3157 mark_value_bytes_optimized_out.
3158 (require_not_optimized_out): Adjust to check whether the
3159 optimized_out vec is empty.
3160 (ranges_copy_adjusted): New function, factored out from
3161 value_contents_copy_raw.
3162 (value_contents_copy_raw): Also copy the optimized out ranges.
3163 Assert the destination ranges aren't optimized out.
3164 (value_contents_copy): Update comment, remove call to
3165 require_not_optimized_out.
3166 (value_contents_equal): Adjust to check whether the optimized_out
3168 (set_value_optimized_out, value_optimized_out_const): Delete.
3169 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3171 (value_entirely_optimized_out, value_bits_valid): Delete.
3172 (value_copy): Take a VEC copy of the 'optimized_out' field.
3173 (value_primitive_field): Remove special handling of optimized out.
3174 (value_fetch_lazy): Assert that lazy values have no unavailable
3175 regions. Use value_bits_any_optimized_out. Remove some special
3176 handling for optimized out values.
3177 * value.h: Add intro comment about <optimized out> and
3179 (struct lval_funcs): Remove check_validity and check_any_valid
3181 (set_value_optimized_out, value_optimized_out_const): Remove.
3182 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3184 (value_bits_any_optimized_out): New declaration.
3185 (value_bits_valid): Delete declaration.
3186 (value_available_contents_eq): Rename to ...
3187 (value_contents_eq): ... this, and extend comments.
3189 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3191 Fix -fsanitize=address on unreadable inferior strings.
3192 * valprint.c (val_print_string): Fix access before BUFFER.
3194 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3196 * target.c (target_struct_size): Remove.
3197 (target_struct_allocsize): Remove.
3198 (DEFAULT_ALLOCSIZE): Remove.
3199 (target_ops_p): New typedef.
3200 (DEF_VEC_P (target_ops_p)): New vector type.
3201 (target_structs): Change type to VEC (target_ops_p).
3202 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3203 (find_default_run_target): Rewrite for loop following changes to
3206 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3208 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3209 Adjust code accordingly. Adjust function description comment.
3211 2014-08-19 Yao Qi <yao@codesourcery.com>
3213 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3216 2014-08-19 Alan Modra <amodra@gmail.com>
3218 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3219 * config.in: Regenerate.
3220 * configure: Regenerate.
3222 2014-08-19 Tom Tromey <tromey@redhat.com>
3223 Gary Benson <gbenson@redhat.com>
3225 * common/common-debug.h: New file.
3226 * common/common-debug.c: Likewise.
3227 * debug.c: Likewise.
3228 * Makefile.in (SFILES): Add common/common-debug.c.
3229 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3230 (COMMON_OBS): Add common-debug.o and debug.o.
3231 (common-debug.o): New rule.
3232 * common/common-defs.h: Include common-debug.h.
3233 * common/agent.c (debug_agent_printf): New function.
3234 (DEBUG_AGENT): Redefine.
3235 * nat/i386-dregs.c (debug_printf): Undefine.
3237 2014-08-19 Gary Benson <gbenson@redhat.com>
3239 * common/common-defs.h: Include print-utils.h.
3240 * utils.h: Do not include print-utils.h.
3242 2014-08-19 Tom Tromey <tromey@redhat.com>
3243 Gary Benson <gbenson@redhat.com>
3245 * common/common-types.h: New file.
3246 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3247 * common/common-defs.h: Include common-types.h.
3248 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3251 2014-08-19 Tom Tromey <tromey@redhat.com>
3252 Gary Benson <gbenson@redhat.com>
3254 * common/errors.h: New file.
3255 * common/errors.c: Likewise.
3256 * Makefile.in (SFILES): Add common/errors.c.
3257 (HFILES_NO_SRCDIR): Add common/errors.h.
3258 (COMMON_OBS): Add errors.o.
3259 (errors.o): New rule.
3260 * common/common-defs.h: Include errors.h.
3261 * utils.h (perror_with_name, error, verror, warning, vwarning):
3263 * common/common-utils.h: (malloc_failure, internal_error):
3266 2014-08-19 Gary Benson <gbenson@redhat.com>
3268 * utils.c (internal_vproblem): Always print the message.
3270 2014-08-18 Doug Evans <dje@google.com>
3272 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3274 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3276 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3277 Return 0 if TYPE is dynamic.
3278 (print_range): Add handling of dynamic ranges.
3280 2014-08-18 Keven Boell <keven.boell@intel.com>
3281 Joel Brobecker <brobecker@adacore.com>
3283 * gdbtypes.h (struct main_type): Add field "data_location".
3284 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3285 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3286 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3287 a dynamic data location.
3288 (resolve_dynamic_type): Add DW_AT_data_location handling.
3289 (copy_recursive, copy_type): Copy the data_location information
3291 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3292 * value.c (value_from_contents_and_address): Add
3293 DW_AT_data_location handling.
3295 2014-08-18 Keven Boell <keven.boell@intel.com>
3296 Joel Brobecker <brobecker@adacore.com>
3298 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3299 field "get_object_address".
3300 * dwarf2expr.c (execute_stack_op): Add handling for
3301 DW_OP_push_object_address.
3302 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3303 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3304 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3305 (dwarf_expr_get_obj_addr): New function.
3306 (dwarf_expr_ctx_funcs): Add get_object_address field.
3307 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3308 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3309 (dwarf2_evaluate_property): Add parameter "address". Use it.
3310 (needs_get_obj_addr): New function.
3311 (needs_frame_ctx_funcs): Add get_object_address field.
3312 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3313 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3314 (resolve_dynamic_array): Likewise.
3316 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3318 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3319 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3320 fixed value for records and unions for which some GNAT encodings
3323 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3325 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3326 rewrite to avoid "else if" and "else" constructs. Should be
3327 a no-op in practice.
3329 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3331 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3334 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3337 * eval.c: Update all calls to find_overload_match.
3338 * valarith.c: Likewise.
3339 (value_user_defined_cpp_op, value_user_defined_op): New
3340 argument NOSIDE. Update all callers.
3341 * valops.c (find_overload_match): New argument NOSIDE.
3342 * value.h (find_overload_match): Update signature.
3344 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3346 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3347 'items' methods instead of 'iteritems' method on dictionaries.
3349 2014-08-15 Doug Evans <dje@google.com>
3351 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3354 2014-08-15 Doug Evans <dje@google.com>
3356 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3358 2014-08-15 Doug Evans <dje@google.com>
3360 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3362 2014-08-15 Doug Evans <dje@google.com>
3364 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3367 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3369 * dcache.h: Include target.h, to avoid compile time warnings.
3371 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3373 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3374 frame_info" partial declaration.
3375 * gdbarch.h: Regenerate.
3377 2014-08-15 Yao Qi <yao@codesourcery.com>
3379 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3380 Add parameter 'decode_for_pst_p'. Callers update.
3382 2014-08-13 Yao Qi <yao@codesourcery.com>
3385 * configure.ac: Use local variable 'pos'.
3386 * configure: Regenerated.
3388 2014-08-11 Doug Evans <dje@google.com>
3390 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3391 message, it is redundant with "Reading symbols from ..." message.
3393 2014-08-10 Doug Evans <xdje42@gmail.com>
3395 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3397 2014-08-09 Yao Qi <yao@codesourcery.com>
3400 * remote.c (remote_xfer_partial): Remove dead code.
3402 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3404 * ia64-linux-tdep.c: Include "regset.h".
3405 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3406 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3407 (ia64_linux_supply_fpregset): New function.
3408 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3409 (ia64_linux_regset_from_core_section): New function.
3410 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3413 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3415 * m68klinux-tdep.c: Include "regset.h".
3416 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3417 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3418 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3419 (m68k_linux_regset_from_core_section): New function.
3420 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3423 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3425 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3426 function. Move logic to...
3427 (tilegx_linux_regmap): ... this new register map.
3428 (tilegx_linux_regset): Refer to register map, replace supply
3429 method by regcache_supply_regset, and add collect method.
3430 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3431 TILEGX_FIRST_EASY_REGNUM.
3433 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3435 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3436 that calls regcache_supply_regset and handles the EPC register
3437 separately. Move main logic to...
3438 (score7_linux_gregmap): ... this new register map.
3439 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3440 (score7_linux_gregset): Refer to register map. Add collect method.
3441 (score7_linux_regset_from_core_section): Replace
3442 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3443 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3444 (struct regset): Delete unused forward declaraction.
3445 (struct pt_regs): Delete structure definition.
3446 (elf_gregset_t): Delete typedef.
3448 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3450 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3451 (nios2_core_regset): Add collect method.
3453 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3455 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3456 platform-independent and don't write to read-only input buffer.
3457 (m32r_linux_collect_gregset): New function.
3458 (m32r_linux_gregset): Add collect method.
3460 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3462 * hppa-linux-tdep.c (greg_map): Rename to...
3463 (hppa_linux_gregmap): ... this. Also convert to
3464 regcache_map_entry format.
3465 (hppa_linux_supply_regset): Delete function.
3466 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3467 (hppa_linux_fpregmap): ... this new register map.
3468 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3469 register map, replace supply method by regcache_supply_regset, and
3470 add collect method regcache_collect_regset.
3472 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3474 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3475 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3476 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3477 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3478 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3479 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3480 (frv_linux_supply_gregset): Replace main logic by call to
3481 regcache_supply_regset, but keep clearing gr32-gr63.
3482 (frv_linux_supply_fpregset): Delete function.
3483 (frv_linux_gregset): Refer to appropriate register map and add
3484 regcache_collect_regset as the collect method.
3485 (frv_linux_fpregset): Likewise. Also exchange the supply method
3486 by regcache_supply_regset.
3488 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3490 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3491 by call to alpha_supply_int_regs.
3492 (alpha_linux_collect_gregset): New function.
3493 (alpha_linux_supply_fpregset): Replace logic by call to
3494 alpha_supply_fp_regs.
3495 (alpha_linux_collect_fpregset): New function.
3496 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3498 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3500 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3501 by call to regcache_collect_regset.
3502 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3503 instead of aarch64_linux_supply_gregset/_fpregset.
3504 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3505 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3506 header file instead.
3507 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3508 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3509 functions. Move logic to ...
3510 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3512 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3513 refer to new register maps, replace *_regset_from_core by
3514 regcache_supply_regset, and also use regcache_collect_regset.
3515 * aarch64-linux-tdep.h: Include "regset.h".
3516 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3518 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3519 macros, moved from C source file.
3520 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3521 variable declarations.
3523 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3525 * s390-linux-nat.c: Include "regset.h".
3526 (regmap_gregset): Delete macro.
3527 (s390_64_regmap_gregset): New register map for
3528 regcache_supply/_collect_regset.
3529 (s390_64_gregset): New regset.
3530 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3531 (regmap_fpregset): Delete macro.
3532 (s390_native_supply, s390_native_collect): Delete functions.
3533 (supply_gregset, fill_gregset): Replace s390-specific regmap
3534 handling by a call to regcache_supply/_collect_regset.
3535 (supply_fpregset, fill_fpregset): Call regcache_supply/
3536 _collect_regset instead of s390_native_supply/_collect.
3537 (fetch_regset, store_regset): Likewise. Also change the last
3538 parameter to a regset instead of a regmap.
3539 (s390_linux_fetch_inferior_registers)
3540 (390_linux_store_inferior_registers): Adjust last parameter in
3541 calls to fetch_regset and store_regset.
3542 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3543 (s390_gregmap): ... this. Also make static const and convert to
3544 regcache_map_entry format.
3545 (s390x_regmap_gregset): Delete.
3546 (s390_regmap_fpregset): Rename to...
3547 (s390_fpregmap): ... this. Make static const and convert to
3548 regcache_map_entry format.
3549 (s390_regmap_upper, s390_regmap_last_break)
3550 (s390x_regmap_last_break, s390_regmap_system_call)
3551 (s390_regmap_tdb): Likewise.
3552 (s390_supply_regset, s390_collect_regset): Remove functions.
3553 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3555 (s390_gregset, s390_fpregset, s390_upper_regset)
3556 (s390_last_break_regset, s390x_last_break_regset)
3557 (s390_system_call_regset, s390_tdb_regset): Make global and
3558 replace s390_supply/_collect_regset by regcache_supply/
3560 (s390x_gregset): Delete.
3561 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3562 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3563 (s390_regmap_fpregset, s390_regmap_last_break)
3564 (s390x_regmap_last_break, s390_regmap_system_call)
3565 (s390_regmap_tdb): Delete global variable declarations.
3566 (s390_gregset, s390_fpregset, s390_last_break_regset)
3567 (s390x_last_break_regset, s390_system_call_regset)
3568 (s390_tdb_regset): New global variable declarations.
3570 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3572 * regcache.c: Include "regset.h".
3573 (regcache_transfer_regset): New local function.
3574 (regcache_supply_regset, regcache_collect_regset): New functions.
3575 * regcache.h (struct regcache_map_entry): New structure.
3576 (REGCACHE_MAP_SKIP): New enum value.
3577 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3579 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3581 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3582 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3583 (ppc_linux_collect_gregset ): Likewise.
3584 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3585 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3586 (ppc_collect_vrregset): Likewise.
3587 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3590 2014-08-07 Yao Qi <yao@codesourcery.com>
3592 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3593 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3594 * remote.c (remote_read_bytes): Likewise.
3596 2014-08-07 Yao Qi <yao@codesourcery.com>
3598 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3600 2014-08-07 Yao Qi <yao@codesourcery.com>
3603 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3604 TARGET_XFER_OK instead of 0.
3606 2014-08-07 Gary Benson <gbenson@redhat.com>
3608 * common/common-defs.h: Include errno.h.
3609 * defs.h: Do not include errno.h.
3610 * ada-typeprint.c: Likewise.
3611 * c-typeprint.c: Likewise.
3612 * core-regset.c: Likewise.
3613 * corefile.c: Likewise.
3614 * corelow.c: Likewise.
3615 * event-loop.c: Likewise.
3616 * f-typeprint.c: Likewise.
3617 * gnu-nat.c: Likewise.
3618 * go32-nat.c: Likewise.
3619 * i386gnu-nat.c: Likewise.
3620 * m2-typeprint.c: Likewise.
3621 * nat/linux-btrace.c: Likewise.
3622 * p-typeprint.c: Likewise.
3623 * procfs.c: Likewise.
3624 * remote-sim.c: Likewise.
3625 * rs6000-nat.c: Likewise.
3626 * target.c: Likewise.
3627 * typeprint.c: Likewise.
3628 * ui-file.c: Likewise.
3629 * valops.c: Likewise.
3630 * valprint.c: Likewise.
3632 2014-08-07 Gary Benson <gbenson@redhat.com>
3634 * common/common-defs.h: Include string.h.
3635 * aarch64-tdep.c: Do not include string.h.
3636 * ada-exp.y: Likewise.
3637 * ada-lang.c: Likewise.
3638 * ada-lex.l: Likewise.
3639 * ada-typeprint.c: Likewise.
3640 * ada-valprint.c: Likewise.
3641 * aix-thread.c: Likewise.
3642 * alpha-linux-tdep.c: Likewise.
3643 * alpha-mdebug-tdep.c: Likewise.
3644 * alpha-nat.c: Likewise.
3645 * alpha-osf1-tdep.c: Likewise.
3646 * alpha-tdep.c: Likewise.
3647 * alphanbsd-tdep.c: Likewise.
3648 * amd64-dicos-tdep.c: Likewise.
3649 * amd64-linux-tdep.c: Likewise.
3650 * amd64-nat.c: Likewise.
3651 * amd64-sol2-tdep.c: Likewise.
3652 * amd64fbsd-tdep.c: Likewise.
3653 * amd64obsd-tdep.c: Likewise.
3654 * arch-utils.c: Likewise.
3655 * arm-linux-nat.c: Likewise.
3656 * arm-linux-tdep.c: Likewise.
3657 * arm-tdep.c: Likewise.
3658 * arm-wince-tdep.c: Likewise.
3659 * armbsd-tdep.c: Likewise.
3660 * armnbsd-nat.c: Likewise.
3661 * armnbsd-tdep.c: Likewise.
3662 * armobsd-tdep.c: Likewise.
3663 * avr-tdep.c: Likewise.
3664 * ax-gdb.c: Likewise.
3665 * ax-general.c: Likewise.
3666 * bcache.c: Likewise.
3667 * bfin-tdep.c: Likewise.
3668 * breakpoint.c: Likewise.
3669 * build-id.c: Likewise.
3670 * buildsym.c: Likewise.
3671 * c-exp.y: Likewise.
3672 * c-lang.c: Likewise.
3673 * c-typeprint.c: Likewise.
3674 * c-valprint.c: Likewise.
3675 * charset.c: Likewise.
3676 * cli-out.c: Likewise.
3677 * cli/cli-cmds.c: Likewise.
3678 * cli/cli-decode.c: Likewise.
3679 * cli/cli-dump.c: Likewise.
3680 * cli/cli-interp.c: Likewise.
3681 * cli/cli-logging.c: Likewise.
3682 * cli/cli-script.c: Likewise.
3683 * cli/cli-setshow.c: Likewise.
3684 * cli/cli-utils.c: Likewise.
3685 * coffread.c: Likewise.
3686 * common/agent.c: Likewise.
3687 * common/buffer.c: Likewise.
3688 * common/buffer.h: Likewise.
3689 * common/common-utils.c: Likewise.
3690 * common/filestuff.c: Likewise.
3691 * common/filestuff.c: Likewise.
3692 * common/format.c: Likewise.
3693 * common/print-utils.c: Likewise.
3694 * common/rsp-low.c: Likewise.
3695 * common/signals.c: Likewise.
3696 * common/vec.h: Likewise.
3697 * common/xml-utils.c: Likewise.
3698 * core-regset.c: Likewise.
3699 * corefile.c: Likewise.
3700 * corelow.c: Likewise.
3701 * cp-abi.c: Likewise.
3702 * cp-name-parser.y: Likewise.
3703 * cp-support.c: Likewise.
3704 * cp-valprint.c: Likewise.
3705 * cris-tdep.c: Likewise.
3706 * d-exp.y: Likewise.
3707 * darwin-nat.c: Likewise.
3708 * dbxread.c: Likewise.
3709 * dcache.c: Likewise.
3710 * demangle.c: Likewise.
3711 * dicos-tdep.c: Likewise.
3712 * disasm.c: Likewise.
3713 * doublest.c: Likewise.
3714 * dsrec.c: Likewise.
3715 * dummy-frame.c: Likewise.
3716 * dwarf2-frame.c: Likewise.
3717 * dwarf2loc.c: Likewise.
3718 * dwarf2read.c: Likewise.
3719 * elfread.c: Likewise.
3720 * environ.c: Likewise.
3722 * event-loop.c: Likewise.
3723 * exceptions.c: Likewise.
3725 * expprint.c: Likewise.
3726 * f-exp.y: Likewise.
3727 * f-lang.c: Likewise.
3728 * f-typeprint.c: Likewise.
3729 * f-valprint.c: Likewise.
3730 * fbsd-nat.c: Likewise.
3731 * findcmd.c: Likewise.
3732 * findvar.c: Likewise.
3733 * fork-child.c: Likewise.
3734 * frame.c: Likewise.
3735 * frv-linux-tdep.c: Likewise.
3736 * frv-tdep.c: Likewise.
3738 * gdb_bfd.c: Likewise.
3739 * gdbarch.c: Likewise.
3740 * gdbarch.sh: Likewise.
3741 * gdbtypes.c: Likewise.
3742 * gnu-nat.c: Likewise.
3743 * gnu-v2-abi.c: Likewise.
3744 * gnu-v3-abi.c: Likewise.
3745 * go-exp.y: Likewise.
3746 * go-lang.c: Likewise.
3747 * go32-nat.c: Likewise.
3748 * guile/guile.c: Likewise.
3749 * guile/scm-auto-load.c: Likewise.
3750 * hppa-hpux-tdep.c: Likewise.
3751 * hppa-linux-nat.c: Likewise.
3752 * hppanbsd-tdep.c: Likewise.
3753 * hppaobsd-tdep.c: Likewise.
3754 * i386-cygwin-tdep.c: Likewise.
3755 * i386-dicos-tdep.c: Likewise.
3756 * i386-linux-tdep.c: Likewise.
3757 * i386-nto-tdep.c: Likewise.
3758 * i386-sol2-tdep.c: Likewise.
3759 * i386-tdep.c: Likewise.
3760 * i386bsd-tdep.c: Likewise.
3761 * i386gnu-nat.c: Likewise.
3762 * i386nbsd-tdep.c: Likewise.
3763 * i386obsd-tdep.c: Likewise.
3764 * i387-tdep.c: Likewise.
3765 * ia64-libunwind-tdep.c: Likewise.
3766 * ia64-linux-nat.c: Likewise.
3767 * inf-child.c: Likewise.
3768 * inf-ptrace.c: Likewise.
3769 * inf-ttrace.c: Likewise.
3770 * infcall.c: Likewise.
3771 * infcmd.c: Likewise.
3772 * inflow.c: Likewise.
3773 * infrun.c: Likewise.
3774 * interps.c: Likewise.
3775 * iq2000-tdep.c: Likewise.
3776 * irix5-nat.c: Likewise.
3777 * jv-exp.y: Likewise.
3778 * jv-lang.c: Likewise.
3779 * jv-typeprint.c: Likewise.
3780 * jv-valprint.c: Likewise.
3781 * language.c: Likewise.
3782 * linux-fork.c: Likewise.
3783 * linux-nat.c: Likewise.
3784 * lm32-tdep.c: Likewise.
3785 * m2-exp.y: Likewise.
3786 * m2-typeprint.c: Likewise.
3787 * m32c-tdep.c: Likewise.
3788 * m32r-linux-nat.c: Likewise.
3789 * m32r-linux-tdep.c: Likewise.
3790 * m32r-rom.c: Likewise.
3791 * m32r-tdep.c: Likewise.
3792 * m68hc11-tdep.c: Likewise.
3793 * m68k-tdep.c: Likewise.
3794 * m68kbsd-tdep.c: Likewise.
3795 * m68klinux-nat.c: Likewise.
3796 * m68klinux-tdep.c: Likewise.
3797 * m88k-tdep.c: Likewise.
3798 * machoread.c: Likewise.
3799 * macrocmd.c: Likewise.
3801 * mdebugread.c: Likewise.
3802 * mem-break.c: Likewise.
3803 * memattr.c: Likewise.
3804 * memory-map.c: Likewise.
3805 * mep-tdep.c: Likewise.
3806 * mi/mi-cmd-break.c: Likewise.
3807 * mi/mi-cmd-disas.c: Likewise.
3808 * mi/mi-cmd-env.c: Likewise.
3809 * mi/mi-cmd-stack.c: Likewise.
3810 * mi/mi-cmd-var.c: Likewise.
3811 * mi/mi-cmds.c: Likewise.
3812 * mi/mi-console.c: Likewise.
3813 * mi/mi-getopt.c: Likewise.
3814 * mi/mi-interp.c: Likewise.
3815 * mi/mi-main.c: Likewise.
3816 * mi/mi-parse.c: Likewise.
3817 * microblaze-rom.c: Likewise.
3818 * microblaze-tdep.c: Likewise.
3819 * mingw-hdep.c: Likewise.
3820 * minidebug.c: Likewise.
3821 * minsyms.c: Likewise.
3822 * mips-irix-tdep.c: Likewise.
3823 * mips-linux-tdep.c: Likewise.
3824 * mips-tdep.c: Likewise.
3825 * mips64obsd-tdep.c: Likewise.
3826 * mipsnbsd-tdep.c: Likewise.
3827 * mipsread.c: Likewise.
3828 * mn10300-linux-tdep.c: Likewise.
3829 * mn10300-tdep.c: Likewise.
3830 * monitor.c: Likewise.
3831 * moxie-tdep.c: Likewise.
3832 * mt-tdep.c: Likewise.
3833 * nat/linux-btrace.c: Likewise.
3834 * nat/linux-osdata.c: Likewise.
3835 * nat/linux-procfs.c: Likewise.
3836 * nat/linux-ptrace.c: Likewise.
3837 * nat/linux-waitpid.c: Likewise.
3838 * nbsd-tdep.c: Likewise.
3839 * nios2-linux-tdep.c: Likewise.
3840 * nto-procfs.c: Likewise.
3841 * nto-tdep.c: Likewise.
3842 * objc-lang.c: Likewise.
3843 * objfiles.c: Likewise.
3844 * opencl-lang.c: Likewise.
3845 * osabi.c: Likewise.
3846 * osdata.c: Likewise.
3847 * p-exp.y: Likewise.
3848 * p-lang.c: Likewise.
3849 * p-typeprint.c: Likewise.
3850 * parse.c: Likewise.
3851 * posix-hdep.c: Likewise.
3852 * ppc-linux-nat.c: Likewise.
3853 * ppc-sysv-tdep.c: Likewise.
3854 * ppcfbsd-tdep.c: Likewise.
3855 * ppcnbsd-tdep.c: Likewise.
3856 * ppcobsd-tdep.c: Likewise.
3857 * printcmd.c: Likewise.
3858 * procfs.c: Likewise.
3859 * prologue-value.c: Likewise.
3860 * python/py-auto-load.c: Likewise.
3861 * python/py-gdb-readline.c: Likewise.
3862 * ravenscar-thread.c: Likewise.
3863 * regcache.c: Likewise.
3864 * registry.c: Likewise.
3865 * remote-fileio.c: Likewise.
3866 * remote-m32r-sdi.c: Likewise.
3867 * remote-mips.c: Likewise.
3868 * remote-notif.c: Likewise.
3869 * remote-sim.c: Likewise.
3870 * remote.c: Likewise.
3871 * reverse.c: Likewise.
3872 * rs6000-aix-tdep.c: Likewise.
3873 * ser-base.c: Likewise.
3874 * ser-go32.c: Likewise.
3875 * ser-mingw.c: Likewise.
3876 * ser-pipe.c: Likewise.
3877 * ser-tcp.c: Likewise.
3878 * ser-unix.c: Likewise.
3879 * serial.c: Likewise.
3880 * sh-tdep.c: Likewise.
3881 * sh64-tdep.c: Likewise.
3882 * shnbsd-tdep.c: Likewise.
3884 * sol-thread.c: Likewise.
3885 * solib-dsbt.c: Likewise.
3886 * solib-frv.c: Likewise.
3887 * solib-osf.c: Likewise.
3888 * solib-som.c: Likewise.
3889 * solib-spu.c: Likewise.
3890 * solib-target.c: Likewise.
3891 * solib.c: Likewise.
3892 * somread.c: Likewise.
3893 * source.c: Likewise.
3894 * sparc-nat.c: Likewise.
3895 * sparc-sol2-tdep.c: Likewise.
3896 * sparc-tdep.c: Likewise.
3897 * sparc64-tdep.c: Likewise.
3898 * sparc64fbsd-tdep.c: Likewise.
3899 * sparc64nbsd-tdep.c: Likewise.
3900 * sparcnbsd-tdep.c: Likewise.
3901 * spu-linux-nat.c: Likewise.
3902 * spu-multiarch.c: Likewise.
3903 * spu-tdep.c: Likewise.
3904 * stabsread.c: Likewise.
3905 * stack.c: Likewise.
3906 * std-regs.c: Likewise.
3907 * symfile.c: Likewise.
3908 * symmisc.c: Likewise.
3909 * symtab.c: Likewise.
3910 * target.c: Likewise.
3911 * thread.c: Likewise.
3912 * tilegx-linux-nat.c: Likewise.
3913 * tilegx-tdep.c: Likewise.
3915 * tracepoint.c: Likewise.
3916 * tui/tui-command.c: Likewise.
3917 * tui/tui-data.c: Likewise.
3918 * tui/tui-disasm.c: Likewise.
3919 * tui/tui-file.c: Likewise.
3920 * tui/tui-layout.c: Likewise.
3921 * tui/tui-out.c: Likewise.
3922 * tui/tui-regs.c: Likewise.
3923 * tui/tui-source.c: Likewise.
3924 * tui/tui-stack.c: Likewise.
3925 * tui/tui-win.c: Likewise.
3926 * tui/tui-windata.c: Likewise.
3927 * tui/tui-winsource.c: Likewise.
3928 * typeprint.c: Likewise.
3929 * ui-file.c: Likewise.
3930 * ui-out.c: Likewise.
3931 * user-regs.c: Likewise.
3932 * utils.c: Likewise.
3933 * v850-tdep.c: Likewise.
3934 * valarith.c: Likewise.
3935 * valops.c: Likewise.
3936 * valprint.c: Likewise.
3937 * value.c: Likewise.
3938 * varobj.c: Likewise.
3939 * vax-tdep.c: Likewise.
3940 * vaxnbsd-tdep.c: Likewise.
3941 * vaxobsd-tdep.c: Likewise.
3942 * windows-nat.c: Likewise.
3943 * xcoffread.c: Likewise.
3944 * xml-support.c: Likewise.
3945 * xstormy16-tdep.c: Likewise.
3946 * xtensa-linux-nat.c: Likewise.
3948 2014-08-07 Gary Benson <gbenson@redhat.com>
3950 * common/common-defs.h: Include gdb_assert.h.
3951 * aarch64-tdep.c: Do not include gdb_assert.h.
3952 * addrmap.c: Likewise.
3953 * aix-thread.c: Likewise.
3954 * alpha-linux-tdep.c: Likewise.
3955 * alpha-mdebug-tdep.c: Likewise.
3956 * alphanbsd-tdep.c: Likewise.
3957 * amd64-nat.c: Likewise.
3958 * amd64-tdep.c: Likewise.
3959 * amd64bsd-nat.c: Likewise.
3960 * amd64fbsd-nat.c: Likewise.
3961 * amd64fbsd-tdep.c: Likewise.
3962 * amd64nbsd-nat.c: Likewise.
3963 * amd64nbsd-tdep.c: Likewise.
3964 * amd64obsd-nat.c: Likewise.
3965 * amd64obsd-tdep.c: Likewise.
3966 * arch-utils.c: Likewise.
3967 * arm-tdep.c: Likewise.
3968 * armbsd-tdep.c: Likewise.
3970 * bcache.c: Likewise.
3971 * bfin-tdep.c: Likewise.
3972 * blockframe.c: Likewise.
3973 * breakpoint.c: Likewise.
3974 * bsd-kvm.c: Likewise.
3975 * bsd-uthread.c: Likewise.
3976 * buildsym.c: Likewise.
3977 * c-exp.y: Likewise.
3978 * c-lang.c: Likewise.
3979 * charset.c: Likewise.
3980 * cleanups.c: Likewise.
3981 * cli-out.c: Likewise.
3982 * cli/cli-decode.c: Likewise.
3983 * cli/cli-dump.c: Likewise.
3984 * cli/cli-logging.c: Likewise.
3985 * cli/cli-script.c: Likewise.
3986 * cli/cli-utils.c: Likewise.
3987 * coffread.c: Likewise.
3988 * common/common-utils.c: Likewise.
3989 * common/queue.h: Likewise.
3990 * common/signals.c: Likewise.
3991 * common/vec.h: Likewise.
3992 * complaints.c: Likewise.
3993 * completer.c: Likewise.
3994 * corelow.c: Likewise.
3995 * cp-abi.c: Likewise.
3996 * cp-name-parser.y: Likewise.
3997 * cp-namespace.c: Likewise.
3998 * cp-support.c: Likewise.
3999 * cris-tdep.c: Likewise.
4000 * dbxread.c: Likewise.
4001 * dictionary.c: Likewise.
4002 * doublest.c: Likewise.
4003 * dsrec.c: Likewise.
4004 * dummy-frame.c: Likewise.
4005 * dwarf2-frame-tailcall.c: Likewise.
4006 * dwarf2-frame.c: Likewise.
4007 * dwarf2expr.c: Likewise.
4008 * dwarf2loc.c: Likewise.
4009 * dwarf2read.c: Likewise.
4011 * event-loop.c: Likewise.
4012 * exceptions.c: Likewise.
4013 * expprint.c: Likewise.
4014 * f-valprint.c: Likewise.
4015 * fbsd-nat.c: Likewise.
4016 * findvar.c: Likewise.
4017 * frame-unwind.c: Likewise.
4018 * frame.c: Likewise.
4019 * frv-tdep.c: Likewise.
4020 * gcore.c: Likewise.
4021 * gdb-dlfcn.c: Likewise.
4022 * gdb_bfd.c: Likewise.
4023 * gdbarch.c: Likewise.
4024 * gdbarch.sh: Likewise.
4025 * gdbtypes.c: Likewise.
4026 * gnu-nat.c: Likewise.
4027 * gnu-v3-abi.c: Likewise.
4028 * go-lang.c: Likewise.
4029 * guile/scm-exception.c: Likewise.
4030 * guile/scm-gsmob.c: Likewise.
4031 * guile/scm-lazy-string.c: Likewise.
4032 * guile/scm-math.c: Likewise.
4033 * guile/scm-pretty-print.c: Likewise.
4034 * guile/scm-safe-call.c: Likewise.
4035 * guile/scm-utils.c: Likewise.
4036 * guile/scm-value.c: Likewise.
4037 * h8300-tdep.c: Likewise.
4038 * hppa-hpux-nat.c: Likewise.
4039 * hppa-tdep.c: Likewise.
4040 * hppanbsd-tdep.c: Likewise.
4041 * hppaobsd-tdep.c: Likewise.
4042 * i386-darwin-nat.c: Likewise.
4043 * i386-darwin-tdep.c: Likewise.
4044 * i386-nto-tdep.c: Likewise.
4045 * i386-tdep.c: Likewise.
4046 * i386bsd-nat.c: Likewise.
4047 * i386fbsd-tdep.c: Likewise.
4048 * i386gnu-nat.c: Likewise.
4049 * i386nbsd-tdep.c: Likewise.
4050 * i386obsd-tdep.c: Likewise.
4051 * i387-tdep.c: Likewise.
4052 * ia64-libunwind-tdep.c: Likewise.
4053 * ia64-tdep.c: Likewise.
4054 * inf-ptrace.c: Likewise.
4055 * inf-ttrace.c: Likewise.
4056 * infcall.c: Likewise.
4057 * infcmd.c: Likewise.
4058 * infrun.c: Likewise.
4059 * inline-frame.c: Likewise.
4060 * interps.c: Likewise.
4061 * jv-lang.c: Likewise.
4062 * jv-typeprint.c: Likewise.
4063 * linux-fork.c: Likewise.
4064 * linux-nat.c: Likewise.
4065 * linux-thread-db.c: Likewise.
4066 * m32c-tdep.c: Likewise.
4067 * m32r-linux-nat.c: Likewise.
4068 * m32r-tdep.c: Likewise.
4069 * m68k-tdep.c: Likewise.
4070 * m68kbsd-nat.c: Likewise.
4071 * m68kbsd-tdep.c: Likewise.
4072 * m88k-tdep.c: Likewise.
4073 * machoread.c: Likewise.
4074 * macroexp.c: Likewise.
4075 * macrotab.c: Likewise.
4076 * maint.c: Likewise.
4077 * mdebugread.c: Likewise.
4078 * memory-map.c: Likewise.
4079 * mep-tdep.c: Likewise.
4080 * mi/mi-common.c: Likewise.
4081 * microblaze-tdep.c: Likewise.
4082 * mingw-hdep.c: Likewise.
4083 * mips-linux-nat.c: Likewise.
4084 * mips-linux-tdep.c: Likewise.
4085 * mips-tdep.c: Likewise.
4086 * mips64obsd-tdep.c: Likewise.
4087 * mipsnbsd-tdep.c: Likewise.
4088 * mn10300-linux-tdep.c: Likewise.
4089 * mn10300-tdep.c: Likewise.
4090 * moxie-tdep.c: Likewise.
4091 * mt-tdep.c: Likewise.
4092 * nat/linux-btrace.c: Likewise.
4093 * nat/linux-osdata.c: Likewise.
4094 * nat/linux-ptrace.c: Likewise.
4095 * nat/mips-linux-watch.c: Likewise.
4096 * nios2-linux-tdep.c: Likewise.
4097 * nios2-tdep.c: Likewise.
4098 * objc-lang.c: Likewise.
4099 * objfiles.c: Likewise.
4100 * obsd-nat.c: Likewise.
4101 * opencl-lang.c: Likewise.
4102 * osabi.c: Likewise.
4103 * parse.c: Likewise.
4104 * ppc-linux-nat.c: Likewise.
4105 * ppc-sysv-tdep.c: Likewise.
4106 * ppcfbsd-nat.c: Likewise.
4107 * ppcfbsd-tdep.c: Likewise.
4108 * ppcnbsd-nat.c: Likewise.
4109 * ppcnbsd-tdep.c: Likewise.
4110 * ppcobsd-nat.c: Likewise.
4111 * ppcobsd-tdep.c: Likewise.
4112 * printcmd.c: Likewise.
4113 * procfs.c: Likewise.
4114 * prologue-value.c: Likewise.
4115 * psymtab.c: Likewise.
4116 * python/py-lazy-string.c: Likewise.
4117 * python/py-value.c: Likewise.
4118 * regcache.c: Likewise.
4119 * reggroups.c: Likewise.
4120 * registry.c: Likewise.
4121 * remote-sim.c: Likewise.
4122 * remote.c: Likewise.
4123 * rs6000-aix-tdep.c: Likewise.
4124 * rs6000-tdep.c: Likewise.
4125 * s390-linux-tdep.c: Likewise.
4126 * score-tdep.c: Likewise.
4127 * ser-base.c: Likewise.
4128 * ser-mingw.c: Likewise.
4129 * sh-tdep.c: Likewise.
4130 * sh64-tdep.c: Likewise.
4131 * solib-darwin.c: Likewise.
4132 * solib-spu.c: Likewise.
4133 * solib-svr4.c: Likewise.
4134 * source.c: Likewise.
4135 * sparc-nat.c: Likewise.
4136 * sparc-sol2-tdep.c: Likewise.
4137 * sparc-tdep.c: Likewise.
4138 * sparc64-sol2-tdep.c: Likewise.
4139 * sparc64-tdep.c: Likewise.
4140 * sparc64fbsd-tdep.c: Likewise.
4141 * sparc64nbsd-tdep.c: Likewise.
4142 * sparc64obsd-tdep.c: Likewise.
4143 * sparcnbsd-tdep.c: Likewise.
4144 * sparcobsd-tdep.c: Likewise.
4145 * spu-multiarch.c: Likewise.
4146 * spu-tdep.c: Likewise.
4147 * stabsread.c: Likewise.
4148 * stack.c: Likewise.
4149 * symfile.c: Likewise.
4150 * symtab.c: Likewise.
4151 * target-descriptions.c: Likewise.
4152 * target-memory.c: Likewise.
4153 * target.c: Likewise.
4154 * tic6x-linux-tdep.c: Likewise.
4155 * tic6x-tdep.c: Likewise.
4156 * tilegx-linux-nat.c: Likewise.
4157 * tilegx-tdep.c: Likewise.
4159 * tramp-frame.c: Likewise.
4160 * tui/tui-out.c: Likewise.
4161 * tui/tui-winsource.c: Likewise.
4162 * ui-out.c: Likewise.
4163 * user-regs.c: Likewise.
4164 * utils.c: Likewise.
4165 * v850-tdep.c: Likewise.
4166 * valops.c: Likewise.
4167 * value.c: Likewise.
4168 * varobj.c: Likewise.
4169 * vax-nat.c: Likewise.
4170 * xml-syscall.c: Likewise.
4171 * xml-tdesc.c: Likewise.
4172 * xstormy16-tdep.c: Likewise.
4173 * xtensa-linux-nat.c: Likewise.
4174 * xtensa-tdep.c: Likewise.
4176 2014-08-07 Gary Benson <gbenson@redhat.com>
4178 * common/common-defs.h: Include common-utils.h.
4179 * defs.h: Do not include common-utils.h.
4180 * common/gdb_assert.h: Likewise.
4181 * darwin-nat.h: Likewise.
4182 * nat/linux-btrace.c: Likewise.
4183 * target/waitstatus.h: Likewise.
4185 2014-08-07 Gary Benson <gbenson@redhat.com>
4187 * common/common-defs.h: Include ptid.h.
4188 * defs.h: Do not include ptid.h.
4189 * inferior.h: Likewise.
4190 * infrun.h: Likewise.
4191 * nat/linux-btrace.h: Likewise.
4192 * nat/linux-osdata.h: Likewise.
4193 * target/waitstatus.h: Likewise.
4195 2014-08-07 Gary Benson <gbenson@redhat.com>
4197 * common/common-defs.h: Include gdb_locale.h.
4198 * defs.h: Do not include gdb_locale.h.
4200 2014-08-07 Gary Benson <gbenson@redhat.com>
4202 * common/common-defs.h: Include gdb/signals.h.
4203 * defs.h: Do not include gdb/signals.h.
4205 2014-08-07 Gary Benson <gbenson@redhat.com>
4207 * common/common-defs.h: Include pathmax.h.
4208 * defs.h: Do not include pathmax.h.
4210 2014-08-07 Gary Benson <gbenson@redhat.com>
4212 * common/common-defs.h: Include libiberty.h.
4213 * defs.h: Do not include libiberty.h.
4214 * common/queue.h: Likewise.
4215 * cp-name-parser.y: Likewise.
4216 * mi/mi-cmd-catch.c: Likewise.
4217 * python/python.c: Likewise.
4219 2014-08-07 Gary Benson <gbenson@redhat.com>
4221 * common/common-defs.h: Include ansidecl.h.
4222 * defs.h: Do not include ansidecl.h.
4223 * common/buffer.h: Likewise.
4224 * common/common-utils.h: Likewise.
4226 2014-08-07 Gary Benson <gbenson@redhat.com>
4228 * common/common-defs.h: Include stddef.h.
4229 * defs.h: Do not include stddef.h.
4230 * common/common-utils.h: Likewise.
4231 * amd64fbsd-nat.c: Likewise.
4232 * bcache.c: Likewise.
4233 * charset.c: Likewise.
4234 * common/buffer.h: Likewise.
4235 * common/vec.h: Likewise.
4236 * i386bsd-nat.c: Likewise.
4237 * nat/linux-btrace.h: Likewise.
4238 * ppcfbsd-nat.c: Likewise.
4239 * ppcnbsd-tdep.h: Likewise.
4240 * ppcobsd-nat.c: Likewise.
4241 * ppcobsd-tdep.h: Likewise.
4242 * python/py-gdb-readline.c: Likewise.
4244 2014-08-07 Gary Benson <gbenson@redhat.com>
4246 * common/common-defs.h: Include stdarg.h.
4247 * defs.h: Do not include stdarg.h.
4248 * ada-lang.c: Likewise.
4249 * common/common-utils.h: Likewise.
4250 * guile/scm-string.c: Likewise.
4251 * guile/scm-utils.c: Likewise.
4252 * m32c-tdep.c: Likewise.
4254 2014-08-07 Gary Benson <gbenson@redhat.com>
4256 * common/common-defs.h: Include stdlib.h.
4257 * defs.h: Do not include stdlib.h.
4258 * addrmap.c: Likewise.
4259 * bcache.c: Likewise.
4260 * common/buffer.c: Likewise.
4261 * common/common-utils.c: Likewise.
4262 * cp-name-parser.y: Likewise.
4263 * go32-nat.c: Likewise.
4264 * mn10300-linux-tdep.c: Likewise.
4265 * nat/linux-osdata.c: Likewise.
4266 * tui/tui.c: Likewise.
4267 * windows-nat.c: Likewise.
4269 2014-08-07 Gary Benson <gbenson@redhat.com>
4271 * common/common-defs.h: Include stdio.h.
4272 * defs.h: Do not include stdio.h.
4273 * ada-lang.c: Likewise.
4274 * common/buffer.c: Likewise.
4275 * common/common-utils.c: Likewise.
4276 * cp-name-parser.y: Likewise.
4277 * gnu-nat.c: Likewise.
4278 * go32-nat.c: Likewise.
4279 * i386gnu-nat.c: Likewise.
4280 * proc-api.c: Likewise.
4281 * proc-events.c: Likewise.
4282 * proc-flags.c: Likewise.
4283 * proc-why.c: Likewise.
4284 * python/python-internal.h: Likewise.
4285 * target-memory.c: Likewise.
4286 * tui/tui-io.c: Likewise.
4287 * tui/tui.c: Likewise.
4289 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4291 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4292 (scan_dyntag_auxv): Same.
4294 2014-08-06 Yao Qi <yao@codesourcery.com>
4296 * amd64-linux-nat.c: Remove duplicated include
4298 * i386-linux-nat.c: Likewise.
4300 2014-08-06 Yao Qi <yao@codesourcery.com>
4302 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4303 operand" with "Special opcode" in comments.
4305 2014-08-05 Gary Benson <gbenson@redhat.com>
4307 * interps.c (initialize_interps): Remove prototype.
4308 (interpreter_initialized): Remove static global.
4309 (interp_add): Do not call initialize_interps.
4310 (initialize_interps): Remove function.
4312 2014-08-05 Gary Benson <gbenson@redhat.com>
4314 * utils.c (vwarning): Remove spurious va_end.
4316 2014-08-05 Alan Modra <amodra@gmail.com>
4318 * charset.c (convert_between_encodings): Cast result of obstack_base.
4319 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4320 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4321 (read_unwind_info): Use size_t for some locals.
4322 * jit.c (finalize_symtab): Likewise.
4323 * utils.c (hashtab_obstack_allocate): Likewise.
4324 * symmisc.c (print_objfile_statistics): Update format strings.
4326 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4328 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4329 (Changes in GDB 7.8): ... here.
4331 2014-08-04 Tom Tromey <tromey@redhat.com>
4333 * target.c (set_targetdebug): New function.
4334 (initialize_targets): Pass set_targetdebug when creating "set
4337 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4339 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4340 if detecting a variable-sized field that is not the last field.
4341 Fix struct type length computation.
4343 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4345 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4348 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4350 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4351 Remove "+ 8" offset in computation of CHAIN_VMA.
4353 2014-07-31 Doug Evans <dje@google.com>
4355 * inflow.c (child_terminal_inferior): Add comment.
4356 (child_terminal_ours_for_output): Add comment.
4357 (child_terminal_ours): Add comment.
4358 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4359 (linux_nat_terminal_ours): Add comment.
4361 2014-07-31 Gary Benson <gbenson@redhat.com>
4363 * common/btrace-common.h: Do not include defs.h or server.h.
4364 * nat/mips-linux-watch.h: Likewise.
4365 * gdb-dlfcn.h: Do not include defs.h.
4366 * tracefile.h: Likewise.
4368 2014-07-30 Roland McGrath <mcgrathr@google.com>
4370 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4372 2014-07-30 Tom Tromey <tromey@redhat.com>
4374 * bsd-kvm.c (bsd_kvm_open): Constify.
4375 * corelow.c (core_open): Constify.
4376 * ctf.c (ctf_open): Constify.
4377 * dbug-rom.c (dbug_open): Constify.
4378 * exec.c (exec_open): Constify.
4379 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4380 * microblaze-rom.c (picobug_open): Constify.
4381 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4383 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4384 * record-btrace.c (record_btrace_open): Constify.
4385 * record-full.c (record_full_core_open_1, record_full_open_1)
4386 (record_full_open): Constify.
4387 * remote-m32r-sdi.c (m32r_open): Constify.
4388 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4389 (rockhopper_open, lsi_open): Constify.
4390 * remote-sim.c (gdbsim_open): Constify.
4391 * remote.c (remote_open, extended_remote_open, remote_open_1):
4393 * target.h (struct target_ops) <to_open>: Make "arg" const.
4394 * tracefile-tfile.c (tfile_open): Constify.
4396 2014-07-30 Tom Tromey <tromey@redhat.com>
4398 * breakpoint.c (map_breakpoint_numbers): Update.
4399 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4400 (get_number_const): New function.
4401 (get_number): Rewrite using get_number_const.
4402 (init_number_or_range): Make "string" const.
4403 (number_is_in_list): Make "list" const.
4404 * cli/cli-utils.h (get_number_const): Declare.
4405 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4406 (init_number_or_range, number_is_in_list): Update.
4407 * printcmd.c (map_display_numbers): Update.
4408 * value.c (value_from_history_ref): Constify.
4409 * value.h (value_from_history_ref): Update.
4411 2014-07-30 Tom Tromey <tromey@redhat.com>
4413 * corefile.c (hook_type, call_extra_exec_file_hooks)
4414 (specify_exec_file_hook): Constify.
4415 * exec.c (exec_file_attach): Make "filename" const.
4416 * gdbcore.h (deprecated_exec_file_display_hook)
4417 (specify_exec_file_hook, exec_file_attach): Constify.
4418 * main.c (captured_main): Use catch_command_errors_const.
4420 2014-07-30 Tom Tromey <tromey@redhat.com>
4422 * target.c (open_target): New function.
4423 (add_target_with_completer, add_deprecated_target_alias): Use
4424 set_cmd_sfunc, set_cmd_context.
4425 (debug_to_open): Remove.
4426 (setup_target_debug): Update.
4428 2014-07-30 Yao Qi <yao@codesourcery.com>
4430 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4432 * parse.c (exp_iterate): Update comments.
4434 2014-07-30 Gary Benson <gbenson@redhat.com>
4436 * common/common-defs.h: New file.
4437 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4438 * defs.h: Include common-defs.h.
4439 Do not include config.h or build-gnulib/config.h.
4441 2014-07-30 Gary Benson <gbenson@redhat.com>
4443 * common/common-utils.h: Do not include config.h.
4444 * nat/linux-btrace.h: Likewise.
4446 2014-07-30 Gary Benson <gbenson@redhat.com>
4448 * btrace.c: Include defs.h.
4449 * common/ptid.c: Include defs.h or server.h as appropriate.
4450 * nat/mips-linux-watch.c: Likewise.
4452 2014-07-29 Tom Tromey <tromey@redhat.com>
4454 * target.c (target_is_pushed): Simplify.
4456 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4460 2014-07-29 Yao Qi <yao@codesourcery.com>
4463 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4465 2014-07-28 Doug Evans <xdje42@gmail.com>
4468 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4469 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4472 2014-07-28 Will Newton <will.newton@linaro.org>
4474 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4475 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4476 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4477 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4478 (THUMB2_EABI_SYSCALL): Likewise.
4479 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4481 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4482 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4484 2014-07-27 Doug Evans <xdje42@gmail.com>
4486 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4488 2014-07-27 Doug Evans <xdje42@gmail.com>
4490 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4492 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4493 Doug Evans <xdje42@gmail.com>
4496 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4497 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4498 * configure.ac: Try to use guild to compile an scm file, if it fails
4499 then disable guile support.
4500 * configure: Regenerate.
4501 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4503 (GUILE_COMPILED_FILES): New variable.
4504 (GUILE_FILES) Update.
4505 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4506 (stamp-guile): Compile scm files.
4507 * guile/guile.c (boot_guile_support): New function.
4508 (standard_throw_args_p): New function.
4509 (print_standard_throw_error, print_throw_error): New functions.
4510 (handle_boot_error): New function.
4511 (initialize_scheme_side): Rewrite to call boot_guile_support.
4512 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4513 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4515 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4516 Doug Evans <xdje42@gmail.com>
4519 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4520 * guile/lib/gdb/support.scm: New file.
4521 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4522 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4524 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4526 (%assert-type): Ditto, and renamed to assert-type.
4527 (%exception-print-style): Delete.
4529 2014-07-26 Doug Evans <xdje42@gmail.com>
4532 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4533 * configure: Regenerate.
4534 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4536 (PYTHON_FILES): New variable.
4537 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4538 (GUILE_FILES): New variable.
4539 (stamp-python, install-python, uninstall-python): Handle empty
4541 (stamp-guile, install-guile, uninstall-guile): Ditto.
4543 2014-07-26 Doug Evans <xdje42@gmail.com>
4546 * guile/lib/gdb.scm (pretty-printers): Export.
4547 (set-pretty-printers!): Export.
4548 * guile/lib/gdb/printing.scm (gdb module): Update.
4549 (prepend-pretty-printer!, append-pretty-printer!): Update.
4550 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4551 (pretty_printer_list_var): Delete.
4552 (pretty_printer_list): New static global.
4553 (gdbscm_pretty_printers): New function.
4554 (gdbscm_set_pretty_printers_x): New function.
4555 (ppscm_find_pretty_printer_from_gdb): Update.
4556 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4557 (gdbscm_initialize_pretty_printers): Update.
4559 2014-07-26 Doug Evans <xdje42@gmail.com>
4562 * configure.ac: Add check for header gc/gc.h.
4563 Add check for function setenv.
4564 * configure: Regenerate.
4565 * config.in: Regenerate.
4566 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4568 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4570 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4571 variation in gdbarch matching.
4573 2014-07-25 Tom Tromey <tromey@redhat.com>
4575 * exec.c (using_exec_ops): Remove.
4576 (exec_close_1): Update. Remove extraneous block, reindent.
4577 (add_target_sections): Use target_is_pushed.
4579 2014-07-25 Pedro Alves <palves@redhat.com>
4581 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4582 * monitor.c (monitor_create_inferior): Likewise.
4583 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4584 * remote-sim.c (gdbsim_create_inferior): Likewise.
4585 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4586 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4587 * windows-nat.c (do_initial_windows_stuff): Likewise.
4589 2014-07-25 Pedro Alves <palves@redhat.com>
4591 * NEWS: Mention signal passing and "signal" command changes.
4592 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4594 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4596 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4597 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4598 (jump_command): Adjust clear_proceed_status call.
4599 (signal_command): Warn if other thread that are resumed have
4600 signals that will be delivered. Adjust clear_proceed_status call.
4601 (until_next_command, finish_command)
4602 (proceed_after_attach_callback, attach_command_post_wait)
4603 (attach_command): Adjust clear_proceed_status call.
4604 * infrun.c (proceed_after_vfork_done): Likewise.
4605 (proceed_after_attach_callback): Adjust comment.
4606 (clear_proceed_status_thread): Clear stop_signal if not in pass
4608 (clear_proceed_status_callback): Delete.
4609 (clear_proceed_status): New 'step' parameter. Only clear the
4610 proceed status of threads the command being prepared is about to
4612 (proceed): If passed in an explicit signal, override stop_signal
4613 with it. Don't pass the last stop signal to the thread we're
4615 (init_wait_for_inferior): Adjust clear_proceed_status call.
4616 (switch_back_to_stepped_thread): Clear the signal if it should not
4618 * infrun.h (clear_proceed_status): New 'step' parameter.
4619 (user_visible_resume_ptid): Add comment.
4620 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4621 signal is in pass state.
4622 * remote.c (append_pending_thread_resumptions): Likewise.
4623 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4625 2014-07-25 Tom Tromey <tromey@redhat.com>
4627 * target.h (target_stopped_data_address)
4628 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4631 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4633 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4635 (avr_pointer_to_address): Likewise.
4637 2014-07-24 Tom Tromey <tromey@redhat.com>
4639 * monitor.c (compile_pattern): Update.
4640 * target.h (struct target_ops) <to_shortname, to_longname,
4643 2014-07-24 Tom Tromey <tromey@redhat.com>
4645 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4646 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4647 (add_info_alias, add_com): Make "doc" const.
4648 (print_doc_line): Make "str" const.
4649 (delete_cmd): Update.
4650 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4651 (print_doc_line): Update.
4652 * cli/cli-script.c (document_command): Update.
4653 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4654 (add_com, add_info, add_info_alias): Update.
4655 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4656 * python/py-cmd.c (cmdpy_destroyer): Update.
4658 2014-07-24 Tom Tromey <tromey@redhat.com>
4660 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4661 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4662 (help_cmd_list): Constify.
4663 (lookup_cmd): Update.
4664 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4666 (help_cmd_list, apropos_cmd): Update.
4667 * cli/cli-script.c (show_user): Update.
4668 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4669 * cli/cli-setshow.h (cmd_show_list): Update.
4670 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4671 (cmd_show_list): Update.
4672 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4673 * python/py-cmd.c (cmdpy_destroyer): Update.
4675 2014-07-24 Tom Tromey <tromey@redhat.com>
4677 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4678 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4680 * command.h (deprecate_cmd): Update.
4681 * maint.c (maintenance_do_deprecate): Add casts.
4683 2014-07-24 Tom Tromey <tromey@redhat.com>
4685 * cli/cli-decode.c (help_cmd): Make parameter "const".
4686 * cli/cli-decode.h (help_cmd): Update.
4688 2014-07-24 Tom Tromey <tromey@redhat.com>
4690 * stack.c (up_silently_base, down_silently_base): Make argument
4693 2014-07-24 Tom Tromey <tromey@redhat.com>
4695 * solib.c (solib_add): Make "pattern" const.
4696 * solib.h (solib_add): Update.
4698 2014-07-24 Tom Tromey <tromey@redhat.com>
4700 * remote.c (remote_serial_open, print_packet, putpkt)
4701 (putpkt_binary): Constify.
4702 * remote.h (putpkt): Update.
4704 2014-07-24 Tom Tromey <tromey@redhat.com>
4706 * monitor.c (monitor_open): Make "args" const.
4707 * monitor.h (monitor_open): Update.
4709 2014-07-24 Tom Tromey <tromey@redhat.com>
4711 * maint.c (match_bfd_flags): Make "string" const.
4712 (print_bfd_section_info): Remove casts.
4713 (print_objfile_section_info): Make "string" const.
4715 2014-07-24 Tom Tromey <tromey@redhat.com>
4717 * inf-child.c (inf_child_open_target): Make "arg" const.
4718 * inf-child.h (inf_child_open_target): Update.
4720 2014-07-24 Tom Tromey <tromey@redhat.com>
4722 * environ.c (unset_in_environ): Make "var" const.
4723 * environ.h (unset_in_environ): Update.
4725 2014-07-24 Tom Tromey <tromey@redhat.com>
4727 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4729 (scan_filename_with_cleanup): Likewise.
4730 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4731 Make arguments const.
4732 (restore_command): Update.
4734 2014-07-24 Pedro Alves <palves@redhat.com>
4736 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4738 2014-07-24 Tom Tromey <tromey@redhat.com>
4739 Gary Benson <gbenson@redhat.com>
4741 * nat/linux-ptrace.c (additional_flags): New global.
4742 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4743 additional_flags; don't check GDBSERVER.
4744 (linux_ptrace_set_additional_flags): New function.
4745 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4747 * linux-nat.c (_initialize_linux_nat): Call
4748 linux_ptrace_set_additional_flags.
4750 2014-07-24 Tom Tromey <tromey@redhat.com>
4752 * make-target-delegates (munge_type, write_debugmethod): New
4754 (debug_names): New global.
4755 ($TARGET_DEBUG_PRINTER): New global.
4756 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4758 Write debug methods. Generate init_debug_target.
4759 * target-debug.h: New file.
4760 * target-delegates.c: Rebuild.
4761 * target.c: Include target-debug.h.
4762 (debug_target): Hoist definition.
4763 (target_kill, target_get_section_table, target_memory_map)
4764 (target_flash_erase, target_flash_done, target_detach)
4765 (target_disconnect, target_wait, target_resume)
4766 (target_pass_signals, target_program_signals, target_follow_fork)
4767 (target_mourn_inferior, target_search_memory)
4768 (target_thread_address_space, target_close)
4769 (target_find_new_threads, target_core_of_thread)
4770 (target_verify_memory, target_insert_mask_watchpoint)
4771 (target_remove_mask_watchpoint): Remove targetdebug code.
4772 (debug_to_post_attach, debug_to_prepare_to_store)
4773 (debug_to_files_info, debug_to_insert_breakpoint)
4774 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4775 (debug_to_region_ok_for_hw_watchpoint)
4776 (debug_to_can_accel_watchpoint_condition)
4777 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4778 (debug_to_watchpoint_addr_within_range)
4779 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4780 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4781 (debug_to_terminal_init, debug_to_terminal_inferior)
4782 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4783 (debug_to_terminal_save_ours, debug_to_terminal_info)
4784 (debug_to_load, debug_to_post_startup_inferior)
4785 (debug_to_insert_fork_catchpoint)
4786 (debug_to_remove_fork_catchpoint)
4787 (debug_to_insert_vfork_catchpoint)
4788 (debug_to_remove_vfork_catchpoint)
4789 (debug_to_insert_exec_catchpoint)
4790 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4791 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4792 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4793 (setup_target_debug): Call init_debug_target.
4794 * target.h (TARGET_DEBUG_PRINTER): New macro.
4795 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4796 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4798 2014-07-24 Gary Benson <gbenson@redhat.com>
4800 * exceptions.h (throw_vfatal): Renamed to...
4801 (throw_vquit): New declaration.
4802 (throw_quit): Likewise.
4803 * exceptions.c (throw_vfatal): Renamed to...
4804 (throw_vquit): New function.
4805 (throw_quit): Likewise.
4806 (throw_error): Call throw_verror rather than throw_it.
4807 * utils.h (vfatal): Removed.
4809 * utils.c (vfatal): Removed.
4811 (internal_verror): Replaced call to fatal with call to throw_quit.
4812 (quit): Replaced calls to fatal with calls to throw_quit.
4814 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4816 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4819 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4821 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4822 less than zero in conditional expression.
4824 2014-07-23 Tom Tromey <tromey@redhat.com>
4826 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4827 ($INTRO_PART): Don't match whitespace.
4828 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4830 ($METHOD): Add $METHOD_TRAILER.
4832 (scan_target_h): New sub.
4833 Change main loop not to collect state.
4834 * target-delegates.c: Rebuild.
4836 2014-07-23 Gary Benson <gbenson@redhat.com>
4838 * cp-support.c (gdb_demangle): Fix build on systems without
4841 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4843 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4844 for reference entry value target data value.
4846 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4848 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4849 value_available_contents_eq.
4851 2014-07-22 Pedro Alves <palves@redhat.com>
4853 * value.c (allocate_optimized_out_value): Don't mark value as
4856 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4858 * MAINTAINERS (Write After Approval): Update my email address.
4860 2014-07-20 Doug Evans <dje@google.com>
4863 * remote.c (putpkt_binary): Add text to error message.
4865 2014-07-20 Yao Qi <yao@codesourcery.com>
4867 * eval.c: Remove "Chill" from comments.
4868 * gdbtypes.h: Likewise.
4869 * symtab.h: Likewise.
4871 2014-07-20 Yao Qi <yao@codesourcery.com>
4873 * std-operator.def: Update comments to TERNOP_SLICE.
4875 2014-07-20 Yao Qi <yao@codesourcery.com>
4877 * std-operator.def: Remove BINOP_RANGE.
4878 * breakpoint.c (watchpoint_exp_is_const): Update.
4879 * expprint.c (dump_subexp_body_standard): Likewise.
4880 * eval.c (init_array_element): Remove dead code.
4881 (evaluate_subexp_standard): Likewise.
4883 2014-07-20 Yao Qi <yao@codesourcery.com>
4885 * std-operator.def: Remove BINOP_IN.
4886 * breakpoint.c (watchpoint_exp_is_const): Update.
4887 * eval.c (evaluate_subexp_standard): Likewise.
4888 * expprint.c (dump_subexp_body_standard): Likewise.
4890 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4892 * microblaze-tdep.c (microblaze_register_names): Add
4893 the rshr and rslr register names.
4894 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4895 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4896 Use of tdesc_numbered_register. Use of
4897 microblaze_register_g_packet_guesses. Use of
4898 tdesc_use_registers. Use of set_gdbarch_register_type.
4899 (microblaze_register_g_packet_guesses): New.
4900 * microblaze-tdep.h (microblaze_reg_num): Add
4901 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4902 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4903 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4904 * features/microblaze-core.xml: New file.
4905 * features/microblaze-stack-protect.xml: New file.
4906 * features/microblaze-with-stack-protect.c: New file.
4907 * features/microblaze-with-stack-protect.xml: New file.
4908 * features/microblaze.xml: New file.
4909 * features/microblaze.c: New file.
4910 * features/Makefile (microblaze-with-stack-protect): Add
4911 microblaze-with-stack-protect microblaze and microblaze-expedite.
4912 * regformats/microblaze-with-stack-protect.dat: New file.
4913 * regformats/microblaze.dat: New file.
4914 * doc/gdb.texinfo (MicroBlaze Features): Added.
4916 2014-07-18 Tom Tromey <tromey@redhat.com>
4918 * exec.c (exec_ops): Now static.
4919 * exec.h (exec_ops): Don't declare.
4921 2014-07-18 Tom Tromey <tromey@redhat.com>
4923 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4924 to find_target_beneath.
4925 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4926 find_target_beneath.
4927 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4929 2014-07-18 Tom Tromey <tromey@redhat.com>
4932 * utils.c (quit): Use target_supports_terminal_ours.
4933 * target.h (target_supports_terminal_ours): Declare.
4934 * target.c (target_supports_delete_record): Don't check
4935 to_delete_record against NULL.
4936 (target_supports_terminal_ours): New function.
4938 2014-07-18 Tom Tromey <tromey@redhat.com>
4941 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4942 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4943 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4944 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4945 * windows-nat.c (windows_xfer_partial): Always delegate.
4946 * record-btrace.c (record_btrace_xfer_partial): Simplify
4948 (record_btrace_fetch_registers, record_btrace_store_registers)
4949 (record_btrace_prepare_to_store, record_btrace_resume)
4950 (record_btrace_wait, record_btrace_find_new_threads)
4951 (record_btrace_thread_alive): Likewise.
4952 * procfs.c (procfs_xfer_partial): Always delegate.
4953 * corelow.c (core_xfer_partial): Always delegate.
4954 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4956 2014-07-18 Tom Tromey <tromey@redhat.com>
4958 * exec.c (exec_make_note_section): Move earlier.
4960 2014-07-17 Doug Evans <dje@google.com>
4963 * maint.c (count_symtabs_and_blocks): Handle NULL
4964 current_program_space.
4965 (report_command_stats): Check global enabled flag in addition to
4966 recorded enabled flag.
4967 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4969 2014-07-16 Pedro Alves <palves@redhat.com>
4971 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4973 2014-07-16 Tom Tromey <tromey@redhat.com>
4975 * target.h (struct target_ops) <to_delete_record>: Reformat
4978 2014-07-16 Tom Tromey <tromey@redhat.com>
4980 * target-delegates.c: Rebuild.
4982 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4984 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4985 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4986 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4987 (avr_pointer_to_address): Likewise.
4988 (avr_address_class_type_flags): New function.
4989 (avr_address_class_type_flags_to_name): Likewise.
4990 (avr_address_class_name_to_type_flags): Likewise.
4991 (avr_gdbarch_init): Set address_class_type_flags,
4992 address_class_type_flags_to_name and
4993 address_class_name_to_type_flags.
4995 2014-07-15 Pedro Alves <palves@redhat.com>
4997 * linux-nat.c (kill_callback): Save errno and work with saved
5000 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5002 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5004 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5006 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5007 breakpoint support correctly.
5009 2014-07-14 Pedro Alves <palves@redhat.com>
5011 * utils.c (prompt_for_continue): Call target_terminal_ours.
5013 2014-07-14 Pedro Alves <palves@redhat.com>
5015 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5016 catch_errors. Don't re-enable stdin or notify observers where,
5018 (fetch_inferior_event_wrapper): Delete.
5020 2014-07-14 Pedro Alves <palves@redhat.com>
5023 * top.c: Include "inf-loop.h".
5024 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5026 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5028 (gdb_readline_wrapper): Store whether the target is async, and
5031 2014-07-14 Pedro Alves <palves@redhat.com>
5034 * top.c (gdb_readline_wrapper_line): Tweak comment.
5035 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5036 the input handler callback.
5038 2014-07-14 Pedro Alves <palves@redhat.com>
5041 * main.c: Include event-top.h.
5042 (handle_command_errors): New function.
5043 (catch_command_errors, catch_command_errors_const): Use it.
5045 2014-07-14 Pedro Alves <palves@redhat.com>
5047 * exceptions.c (catch_command_errors, catch_command_errors_const):
5049 * exceptions.h (catch_command_errors_ftype)
5050 (catch_command_errors_const_ftype): Moved to main.c.
5051 (catch_command_errors, catch_command_errors_const): Delete
5053 * main.c (catch_command_errors_ftype)
5054 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5055 (catch_command_errors, catch_command_errors_const)): Moved here
5056 from exceptions.c and make static.
5058 2014-07-14 Pedro Alves <palves@redhat.com>
5060 * exceptions.c (print_any_exception): Delete.
5061 (catch_exceptions_with_msg): Use exception_print instead of
5062 print_any_exception.
5063 (catch_errors): Use exception_fprintf instead of
5064 print_any_exception.
5065 (catch_command_errors, catch_command_errors_const): Use
5066 exception_print instead of print_any_exception.
5068 2014-07-14 Pedro Alves <palves@redhat.com>
5070 * infcall.c (run_inferior_call): Set 'sync_execution' while
5071 running the inferior call.
5073 2014-07-14 Pedro Alves <palves@redhat.com>
5075 * value.c (value_contents_equal): Delete function.
5076 * value.h (value_contents_equal): Delete declaration.
5078 2014-07-14 Tom Tromey <tromey@redhat.com>
5081 * gdbtypes.c (is_dynamic_type_internal): New function, from
5083 (is_dynamic_type): Rewrite.
5084 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5085 (resolve_dynamic_struct): Likewise.
5086 (resolve_dynamic_type_internal): New function, from
5087 resolve_dynamic_type.
5088 (resolve_dynamic_type): Rewrite.
5090 2014-07-14 Tom Tromey <tromey@redhat.com>
5092 * target.c (target_require_runnable): Also check record_stratum.
5095 2014-07-11 Yao Qi <yao@codesourcery.com>
5097 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5098 thumb_instruction_restores_sp return true.
5100 2014-07-11 Yao Qi <yao@codesourcery.com>
5102 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5103 (thumb_in_function_epilogue_p): Call
5104 thumb_instruction_restores_sp.
5106 2014-07-11 Yao Qi <yao@codesourcery.com>
5108 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5110 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5112 2014-07-11 Gary Benson <gbenson@redhat.com>
5114 * amd64-linux-nat.c (gdbcore.h): Remove include.
5115 (regset.h): Likewise.
5116 (nat/linux-btrace.h): Likewise.
5117 (btrace.h): Likewise.
5118 (gdb_assert.h): Likewise.
5119 (string.h): Likewise.
5120 (sys/uio.h): Likewise.
5121 (sys/debugreg.h): Likewise.
5122 (sys/syscall.h): Likewise.
5123 (sys/procfs.h): Likewise.
5124 (sys/user.h): Likewise.
5125 (asm/ptrace.h): Likewise.
5126 (i386-nat.h): Likewise.
5127 * i386-linux-nat.c (i386-nat.h): Likewise.
5128 (regset.h): Likewise.
5129 (target.h): Likewise.
5130 (linux-nat.h): Likewise.
5131 (nat/linux-btrace.h): Likewise.
5132 (btrace.h): Likewise.
5133 (gdb_assert.h): Likewise.
5134 (string.h): Likewise.
5135 (sys/uio.h): Likewise.
5136 (sys/user.h): Likewise.
5137 (sys/procfs.h): Likewise.
5138 (sys/reg.h): Likewise.
5139 (sys/debugreg.h): Likewise.
5140 (ORIG_EAX): Remove definition.
5142 2014-07-11 Gary Benson <gbenson@redhat.com>
5144 * i386-linux-nat.h: New file.
5145 * x86-linux-nat.h: Likewise.
5146 * x86-linux-nat.c: Likewise.
5147 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5148 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5149 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5150 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5151 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5152 (PTRACE_SETREGSET): Likewise.
5153 (arch_lwp_info): Now in x86-linux-nat.c.
5154 (have_ptrace_getregset): Now in x86-linux-nat.h.
5155 (x86_linux_dr_get): Now in x86-linux-nat.c.
5156 (x86_linux_dr_set): Likewise.
5157 (x86_linux_dr_get_addr): Likewise.
5158 (x86_linux_dr_get_control): Likewise.
5159 (x86_linux_dr_get_status): Likewise.
5160 (update_debug_registers_callback): Likewise.
5161 (x86_linux_dr_set_control): Likewise.
5162 (x86_linux_dr_set_addr): Likewise.
5163 (x86_linux_prepare_to_resume): Likewise.
5164 (x86_linux_new_thread): Likewise.
5165 (x86_linux_new_fork): Likewise.
5166 (x86_linux_get_thread_area): Likewise.
5167 (super_post_startup_inferior): Likewise.
5168 (x86_linux_child_post_startup_inferior): Likewise.
5169 (AMD64_LINUX_USER64_CS): Likewise.
5170 (AMD64_LINUX_X32_DS): Likewise.
5171 (x86_linux_read_description): Likewise.
5172 (x86_linux_enable_btrace): Likewise.
5173 (x86_linux_disable_btrace): Likewise.
5174 (x86_linux_teardown_btrace): Likewise.
5175 (x86_linux_read_btrace): Likewise.
5176 (x86_linux_create_target): Likewise.
5177 (x86_linux_add_target): Likewise.
5178 * i386-linux-nat.c (x86-linux-nat.h): New include.
5179 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5180 (PTRACE_SETREGSET): Likewise.
5181 (arch_lwp_info): Now in x86-linux-nat.c.
5182 (have_ptrace_getregset): Now in x86-linux-nat.h.
5183 (x86_linux_dr_get): Now in x86-linux-nat.c.
5184 (x86_linux_dr_set): Likewise.
5185 (x86_linux_dr_get_addr): Likewise.
5186 (x86_linux_dr_get_control): Likewise.
5187 (x86_linux_dr_get_status): Likewise.
5188 (update_debug_registers_callback): Likewise.
5189 (x86_linux_dr_set_control): Likewise.
5190 (x86_linux_dr_set_addr): Likewise.
5191 (x86_linux_prepare_to_resume): Likewise.
5192 (x86_linux_new_thread): Likewise.
5193 (x86_linux_new_fork): Likewise.
5194 (x86_linux_get_thread_area): Likewise.
5195 (super_post_startup_inferior): Likewise.
5196 (x86_linux_child_post_startup_inferior): Likewise.
5197 (AMD64_LINUX_USER64_CS): Likewise.
5198 (AMD64_LINUX_X32_DS): Likewise.
5199 (x86_linux_read_description): Likewise.
5200 (x86_linux_enable_btrace): Likewise.
5201 (x86_linux_disable_btrace): Likewise.
5202 (x86_linux_teardown_btrace): Likewise.
5203 (x86_linux_read_btrace): Likewise.
5204 (x86_linux_create_target): Likewise.
5205 (x86_linux_add_target): Likewise.
5207 2014-07-11 Gary Benson <gbenson@redhat.com>
5209 * amd64-linux-nat.c: Comment and whitespace changes.
5210 * i386-linux-nat.c: Comment and whitespace changes.
5212 2014-07-11 Gary Benson <gbenson@redhat.com>
5214 * amd64-linux-nat.c (x86_linux_create_target): New function.
5215 (x86_linux_add_target): Likewise.
5216 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5217 * i386-linux-nat.c (x86_linux_create_target): New function.
5218 (x86_linux_add_target): Likewise.
5219 (_initialize_i386_linux_nat): Delegate to the above new functions.
5221 2014-07-11 Gary Benson <gbenson@redhat.com>
5223 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5224 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5225 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5226 (ps_get_thread_area): Delegate to the above.
5228 2014-07-11 Gary Benson <gbenson@redhat.com>
5230 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5231 x86_linux_read_description. All uses updated. amd64-specific
5232 code conditionalized. Conditionalized i386-specific code added.
5233 Redundant cast removed.
5234 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5235 x86_linux_read_description. All uses updated. i386-specific
5236 code conditionalized. Conditionalized amd64-specific code added.
5237 One sizeof replaced with the actual type it is describing.
5239 2014-07-11 Gary Benson <gbenson@redhat.com>
5241 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5242 x86_linux_dr_get. All uses updated.
5243 (amd64_linux_dr_set): Renamed to
5244 x86_linux_dr_set. All uses updated.
5245 (amd64_linux_dr_get_addr): Renamed to
5246 x86_linux_dr_get_addr. All uses updated.
5247 (amd64_linux_dr_get_control): Renamed to
5248 x86_linux_dr_get_control. All uses updated.
5249 (amd64_linux_dr_get_status): Renamed to
5250 x86_linux_dr_get_status. All uses updated.
5251 (amd64_linux_dr_set_control): Renamed to
5252 x86_linux_dr_set_control. All uses updated.
5253 (amd64_linux_dr_set_addr): Renamed to
5254 x86_linux_dr_set_addr. All uses updated.
5255 (amd64_linux_prepare_to_resume): Renamed to
5256 x86_linux_prepare_to_resume. All uses updated.
5257 (amd64_linux_new_thread): Renamed to
5258 x86_linux_new_thread. All uses updated.
5259 (amd64_linux_new_fork): Renamed to
5260 x86_linux_new_fork. All uses updated.
5261 (amd64_linux_child_post_startup_inferior): Renamed to
5262 x86_linux_child_post_startup_inferior. All uses updated.
5263 (amd64_linux_enable_btrace): Renamed to
5264 x86_linux_enable_btrace. All uses updated.
5265 (amd64_linux_disable_btrace): Renamed to
5266 x86_linux_disable_btrace. All uses updated.
5267 (amd64_linux_teardown_btrace): Renamed to
5268 x86_linux_teardown_btrace. All uses updated.
5269 (amd64_linux_read_btrace): Renamed to
5270 x86_linux_read_btrace. All uses updated.
5271 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5272 x86_linux_dr_get. All uses updated.
5273 (i386_linux_dr_set): Renamed to
5274 x86_linux_dr_set. All uses updated.
5275 (i386_linux_dr_get_addr): Renamed to
5276 x86_linux_dr_get_addr. All uses updated.
5277 (i386_linux_dr_get_control): Renamed to
5278 x86_linux_dr_get_control. All uses updated.
5279 (i386_linux_dr_get_status): Renamed to
5280 x86_linux_dr_get_status. All uses updated.
5281 (i386_linux_dr_set_control): Renamed to
5282 x86_linux_dr_set_control. All uses updated.
5283 (i386_linux_dr_set_addr): Renamed to
5284 x86_linux_dr_set_addr. All uses updated.
5285 (i386_linux_prepare_to_resume): Renamed to
5286 x86_linux_prepare_to_resume. All uses updated.
5287 (i386_linux_new_thread): Renamed to
5288 x86_linux_new_thread. All uses updated.
5289 (i386_linux_new_fork): Renamed to
5290 x86_linux_new_fork. All uses updated.
5291 (i386_linux_child_post_startup_inferior): Renamed to
5292 x86_linux_child_post_startup_inferior. All uses updated.
5293 (i386_linux_enable_btrace): Renamed to
5294 x86_linux_enable_btrace. All uses updated.
5295 (i386_linux_disable_btrace): Renamed to
5296 x86_linux_disable_btrace. All uses updated.
5297 (i386_linux_teardown_btrace): Renamed to
5298 x86_linux_teardown_btrace. All uses updated.
5299 (i386_linux_read_btrace): Renamed to
5300 x86_linux_read_btrace. All uses updated.
5302 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5304 * remote.c (extended_remote_post_attach): New function.
5305 (init_extended_remote_ops): Install it as to_post_attach method.
5307 2014-07-09 Pedro Alves <palves@redhat.com>
5309 * infcmd.c (attach_command_post_wait): Don't call
5310 target_terminal_inferior here.
5311 (attach_command): Call it here instead.
5313 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5315 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5317 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5318 from varobj.c, with additional checks.
5319 (c_varobj_ops): Fill in is_path_expr_parent field.
5320 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5321 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5323 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5325 (varobj_default_is_path_expr_parent): New function.
5326 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5327 (varobj_default_is_path_expr_parent): Declare new function.
5329 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5331 * infcmd.c (finish_backward): Turn internal error into normal error.
5333 2014-07-07 Pedro Alves <palves@redhat.com>
5336 * remote.c (async_handle_remote_sigint)
5337 (async_handle_remote_sigint_twice): Call
5338 gdb_call_async_signal_handler instead of
5339 mark_async_signal_handler.
5341 2014-07-07 Tom Tromey <tromey@redhat.com>
5343 * target-delegates.c: Rebuild.
5344 * target.c (target_info_record): Remove.
5345 * record.c (info_record_command): Unconditionally call
5347 * target.h (struct target_ops) <to_info_record>: Use
5348 TARGET_DEFAULT_IGNORE.
5349 (target_info_record): Remove.
5351 2014-07-07 Tom Tromey <tromey@redhat.com>
5353 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5354 TARGET_DEFAULT_NORETURN.
5355 * target.c (generic_tls_error): New function.
5356 (target_translate_tls_address): Don't search target stack.
5357 * target-delegates.c: Rebuild.
5358 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5360 * linux-thread-db.c (thread_db_get_thread_local_address):
5361 Unconditionally call beneath target.
5363 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5365 * cli/cli-logging.c (pop_output_files): Assign targerr to
5368 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5370 * MAINTAINERS (Write After Approval): Update my email address.
5372 2014-07-02 Gary Benson <gbenson@redhat.com>
5374 * proc-service.c (ps_xfer_memory): Update comment.
5375 (ps_pstop): Remove unused function.
5376 (ps_pcontinue): Likewise.
5377 (ps_lstop): Likewise.
5378 (ps_lcontinue): Likewise.
5379 (ps_lgetxregsize): Likewise.
5380 (ps_lgetxregs): Likewise.
5381 (ps_lsetxregs): Likewise.
5382 (ps_plog): Likewise.
5383 (ps_ptread): Likewise.
5384 (ps_ptwrite): Likewise.
5386 2014-07-01 Mark Wielaard <mjw@redhat.com>
5388 * dwarf2read.c (add_array_cv_type): New function.
5389 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5390 (read_tag_volatile_type): Likewise.
5392 2014-07-01 Tom Tromey <tromey@redhat.com>
5394 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5395 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5396 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5397 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5398 * command.h (cmd_cfunc_ftype): Move earlier.
5399 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5400 (add_com, add_info): Use cmd_cfunc_ftype.
5402 2014-06-30 Tom Tromey <tromey@redhat.com>
5404 * symtab.c (operator_chars): Make parameters and return type
5406 (file_matches): Make "files" const.
5407 (struct search_symbols_data) <files>: Now const.
5408 (search_symbols): Make "regexp" and "files" parameters const.
5410 (symtab_symbol_info): Remove cast.
5411 (rbreak_command): Update.
5412 * symtab.h (search_symbols): Update.
5414 2014-06-27 Yao Qi <yao@codesourcery.com>
5416 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5417 Change parameter type to 'struct thread_info *'. Caller
5419 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5421 * dummy-frame.c (struct dummy_frame_id): New.
5422 (dummy_frame_id_eq): New function.
5423 (struct dummy_frame) <id>: Change its type to 'struct
5425 (dummy_frame_push): Add parameter ptid and save it in
5427 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5429 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5431 (lookup_dummy_frame): Change parameter type to 'struct
5432 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5433 instead of frame_id_eq.
5434 (dummy_frame_pop): Add parameter ptid. Callers updated.
5435 Update comments. Compose dummy_frame_id and pass it to
5437 (dummy_frame_discard): Add parameter ptid.
5438 (dummy_frame_sniffer): Compose dummy_frame_id and call
5439 dummy_frame_id_eq instead of frame_id_eq.
5440 (fprint_dummy_frames): Print ptid.
5441 * dummy-frame.h: Remove comments.
5442 (dummy_frame_push): Add ptid in declaration.
5443 (dummy_frame_pop, dummy_frame_discard): Likewise.
5445 2014-06-26 Tom Tromey <tromey@redhat.com>
5447 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5448 * command.h (error_no_arg): Update.
5450 2014-06-26 Tom Tromey <tromey@redhat.com>
5452 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5453 (do_show_command): Make "arg" const.
5454 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5456 2014-06-26 Tom Tromey <tromey@redhat.com>
5458 * record-full.c (record_full_get_bookmark): Make "args" const.
5459 (record_full_goto_bookmark): Make "raw_bookmark" const.
5460 * record.c (record_goto): New function.
5461 (cmd_record_goto): Use it. Now static.
5462 * record.h (record_goto): Declare.
5463 (cmd_record_goto): Remove declaration.
5464 * target-delegates.c: Rebuild.
5465 * target.h (struct target_ops) <to_get_bookmark,
5466 to_goto_bookmark>: Make parameter const.
5468 2014-06-26 Tom Tromey <tromey@redhat.com>
5470 * defs.h (generic_load): Update.
5471 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5472 * monitor.c (monitor_load): Make "args" const.
5473 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5474 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5476 (mips_load): Make "file" const.
5477 * remote-sim.c (gdbsim_load): Make "args" const.
5478 * remote.c (remote_load): Make "name" const.
5479 * symfile.c (generic_load): Make "args" const.
5480 * target-delegates.c: Rebuild.
5481 * target.c (target_load): Make "arg" const.
5482 (debug_to_load): Make "args" const.
5483 * target.h (struct target_ops) <to_load>: Make parameter const.
5484 (target_load): Update.
5486 2014-06-26 Tom Tromey <tromey@redhat.com>
5489 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5490 (dwarf2_physname, read_partial_die)
5491 (guess_partial_die_structure_name, fixup_partial_die)
5492 (guess_full_die_structure_name, anonymous_struct_prefix)
5493 (dwarf2_name): Use per-BFD obstack.
5495 2014-06-26 Yao Qi <yao@codesourcery.com>
5497 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5498 dummyframe and this_id into inner block below.
5500 2014-06-26 Yao Qi <yao@codesourcery.com>
5502 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5503 with "signal_pass[0]" in the initialization of signal_pass.
5505 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5507 * record-btrace.c (record_btrace_generating_corefile)
5508 (record_btrace_prepare_to_generate_core)
5509 (record_btrace_done_generating_core): New.
5510 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5511 (record_btrace_store_registers, record_btrace_prepare_to_store):
5512 Forward request when generating a core file.
5513 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5514 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5515 to_done_generating_core.
5517 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5519 * target.h (target_ops) <to_prepare_to_generate_core>
5520 <to_done_generating_core>: New.
5521 (target_prepare_to_generate_core, target_done_generating_core): New.
5522 * target.c (target_prepare_to_generate_core)
5523 (target_done_generating_core): New.
5524 * target-delegates.c: Regenerate.
5525 * gcore.c: (write_gcore_file): Rename to ...
5526 (write_gcore_file_1): ...this.
5527 (write_gcore_file): Call target_prepare_to_generate_core
5528 and target_done_generating_core.
5530 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5532 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5533 * gcore.c (write_gcore_file): Free memory returned from
5534 make_corefile_notes.
5535 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5536 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5538 2014-06-24 Yao Qi <yao@codesourcery.com>
5540 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5541 (arm_linux_init_abi): Set skip_trampoline_code with
5542 gdbarch_skip_trampoline_code instead of
5543 find_solib_trampoline_target.
5545 2014-06-24 Yao Qi <yao@codesourcery.com>
5547 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5548 arm_skip_bx_reg returns non-zero.
5550 2014-06-24 Yao Qi <yao@codesourcery.com>
5552 * arm-tdep.c (arm_skip_bx_reg): New function.
5553 (arm_skip_stub): Call arm_skip_bx_reg.
5555 2014-06-23 Don Breazeal <donb@codesourcery.com>
5557 * MAINTAINERS: Add myself as write-after-approval maintainer.
5559 2014-06-23 Pedro Alves <palves@redhat.com>
5561 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5562 DR_CONTROL before setting DR0..DR3.
5563 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5564 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5565 bits of DR_CONTROL related to the debug register slot being
5566 disabled. If all slots are vacant, clear local slowdown as well,
5567 and assert DR_CONTROL is 0.
5569 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5571 * python/lib/gdb/command/xmethods.py
5572 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5573 current progspace only if the string "progspace" matches LOCUS_RE.
5575 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5577 Fix --with-system-readline with readline-6.3 patch 5.
5578 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5579 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5582 2014-06-20 Tom Tromey <tromey@redhat.com>
5584 * dwarf2read.c (dw2_get_real_path): Use correct type in
5586 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5588 2014-06-20 Gary Benson <gbenson@redhat.com>
5590 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5591 * common/glibc_thread_db.h: Likewise.
5592 * common/i386-cpuid.h: Likewise.
5593 * common/i386-gcc-cpuid.h: Likewise.
5594 * common/linux-btrace.h: Likewise.
5595 * common/linux-osdata.h: Likewise.
5596 * common/linux-procfs.h: Likewise.
5597 * common/linux-ptrace.h: Likewise.
5598 * common/mips-linux-watch.h: Likewise.
5599 * common/linux-btrace.c: Moved to nat.
5600 * common/linux-osdata.c: Likewise.
5601 * common/linux-procfs.c: Likewise.
5602 * common/linux-ptrace.c: Likewise.
5603 * common/mips-linux-watch.c: Likewise.
5604 * nat/gdb_thread_db.h: Moved from common.
5605 * nat/glibc_thread_db.h: Likewise.
5606 * nat/i386-cpuid.h: Likewise.
5607 * nat/i386-gcc-cpuid.h: Likewise.
5608 * nat/linux-btrace.c: Likewise.
5609 * nat/linux-btrace.h: Likewise.
5610 * nat/linux-osdata.c: Likewise.
5611 * nat/linux-osdata.h: Likewise.
5612 * nat/linux-procfs.c: Likewise.
5613 * nat/linux-procfs.h: Likewise.
5614 * nat/linux-ptrace.c: Likewise.
5615 * nat/linux-ptrace.h: Likewise.
5616 * nat/mips-linux-watch.c: Likewise.
5617 * nat/mips-linux-watch.h: Likewise.
5618 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5619 (object file files): Reordered.
5620 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5621 of glibc_thread_db.h.
5623 2014-06-20 Gary Benson <gbenson@redhat.com>
5625 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5626 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5627 (i386_dr_low): Likewise.
5628 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5629 (i386_dr_low_set_addr): Likewise.
5630 (i386_dr_low_get_addr): Likewise.
5631 (i386_dr_low_can_set_control): Likewise.
5632 (i386_dr_low_set_control): Likewise.
5633 (i386_dr_low_get_control): Likewise.
5634 (i386_dr_low_get_status): Likewise.
5635 (i386_get_debug_register_length): Likewise.
5636 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5637 (i386_dr_low): Likewise.
5638 * nat/i386-dregs.c (i386-low.h): Remove include.
5639 (i386-nat.h): Likewise.
5640 (nat/i386-dregs.h): New include.
5641 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5642 (i386_dr_low_set_addr): Likewise.
5643 (i386_dr_low_get_addr): Likewise.
5644 (i386_dr_low_can_set_control): Likewise.
5645 (i386_dr_low_set_control): Likewise.
5646 (i386_dr_low_get_control): Likewise.
5647 (i386_dr_low_get_status): Likewise.
5648 (i386_get_debug_register_length): Likewise.
5649 (debug_hw_points): Likewise.
5651 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5653 * Makefile.in (SFILES): Add d-exp.y.
5654 (YYFILES): Add d-exp.c.
5655 (YYOBJ): Add d-exp.o.
5656 (local-maintainer-clean): Delete d-exp.c.
5657 * d-exp.y: New file.
5658 * d-lang.h (d_parse): New declaration.
5659 (d_error): New declaration.
5660 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5661 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5662 PREC_ORDER operators.
5663 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5665 2014-06-19 Yao Qi <yao@codesourcery.com>
5667 * gdbthread.h (any_running): Remove the declaration.
5668 * thread.c (any_running): Remove.
5670 2014-06-19 Yao Qi <yao@codesourcery.com>
5672 * gdbthread.h (struct thread_info) <state>: Change its type to
5673 'enum thread_state'. Update comments.
5675 2014-06-19 Pedro Alves <palves@redhat.com>
5677 * gdbthread.h (ALL_THREADS): Delete.
5678 (ALL_NON_EXITED_THREADS): New macro.
5679 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5680 instead of ALL_THREADS.
5681 * infrun.c (find_thread_needs_step_over)
5682 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5683 instead of ALL_THREADS.
5684 * record-btrace.c (record_btrace_open)
5685 (record_btrace_stop_recording, record_btrace_close)
5686 (record_btrace_is_replaying, record_btrace_resume)
5687 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5688 * remote.c (append_pending_thread_resumptions): Likewise.
5689 * thread.c (thread_apply_all_command): Likewise.
5691 2014-06-19 Gary Benson <gbenson@redhat.com>
5693 * i386-nat.c (i386_stopped_by_watchpoint):
5694 Use i386_dr_stopped_by_watchpoint.
5695 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5696 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5698 2014-06-19 Gary Benson <gbenson@redhat.com>
5700 * nat/i386-dregs.c: New file.
5701 * Makefile.in (i386-dregs.o): New rule.
5702 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5703 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5704 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5705 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5706 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5707 * config/i386/go32.mh (NATDEPFILES): Likewise.
5708 * config/i386/linux.mh (NATDEPFILES): Likewise.
5709 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5710 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5711 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5712 * i386-nat.h (debug_hw_points): New declaration.
5713 * i386-nat.c (breakpoint.h): Remove include.
5714 (command.h): Likewise.
5715 (target.h): Likewise.
5716 (gdb_assert.h): Likewise.
5717 (debug_hw_points): Made nonstatic.
5718 (debug_printf): Now in i386-dregs.c.
5719 (TARGET_HAS_DR_LEN_8): Likewise.
5720 (DR_CONTROL_SHIFT): Likewise.
5721 (DR_CONTROL_SIZE): Likewise.
5722 (DR_RW_EXECUTE): Likewise.
5723 (DR_RW_WRITE): Likewise.
5724 (DR_RW_READ): Likewise.
5725 (DR_RW_IORW): Likewise.
5726 (DR_LEN_1): Likewise.
5727 (DR_LEN_2): Likewise.
5728 (DR_LEN_4): Likewise.
5729 (DR_LEN_8): Likewise.
5730 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5731 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5732 (DR_ENABLE_SIZE): Likewise.
5733 (DR_LOCAL_SLOWDOWN): Likewise.
5734 (DR_GLOBAL_SLOWDOWN): Likewise.
5735 (DR_CONTROL_RESERVED): Likewise.
5736 (I386_DR_CONTROL_MASK): Likewise.
5737 (I386_DR_VACANT): Likewise.
5738 (I386_DR_LOCAL_ENABLE): Likewise.
5739 (I386_DR_GLOBAL_ENABLE): Likewise.
5740 (I386_DR_DISABLE): Likewise.
5741 (I386_DR_SET_RW_LEN): Likewise.
5742 (I386_DR_GET_RW_LEN): Likewise.
5743 (I386_DR_WATCH_HIT): Likewise.
5744 (i386_wp_op_t): Likewise.
5745 (i386_show_dr): Likewise.
5746 (i386_length_and_rw_bits): Likewise.
5747 (i386_insert_aligned_watchpoint): Likewise.
5748 (i386_remove_aligned_watchpoint): Likewise.
5749 (i386_handle_nonaligned_watchpoint): Likewise.
5750 (i386_update_inferior_debug_regs): Likewise.
5751 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5752 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5753 (i386_region_ok_for_watchpoint):
5754 Use i386_dr_region_ok_for_watchpoint.
5755 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5757 2014-06-19 Gary Benson <gbenson@redhat.com>
5759 * i386-nat.c (i386_insert_hw_breakpoint): Use
5760 i386_insert_watchpoint.
5761 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5763 2014-06-19 Gary Benson <gbenson@redhat.com>
5765 * i386-nat.c (i386_dr_show): Renamed to
5766 i386_show_dr and made static. All uses updated.
5767 (i386_dr_length_and_rw_bits): Renamed to
5768 i386_length_and_rw_bits and made static.
5770 (i386_dr_insert_aligned_watchpoint): Renamed to
5771 i386_insert_aligned_watchpoint and made static.
5773 (i386_dr_remove_aligned_watchpoint): Renamed to
5774 i386_remove_aligned_watchpoint and made static.
5776 (i386_dr_update_inferior_debug_regs): Renamed to
5777 i386_update_inferior_debug_regs and made static.
5779 * nat/i386-dregs.h (i386_dr_show): Removed.
5780 (i386_dr_length_and_rw_bits): Likewise.
5781 (i386_dr_insert_aligned_watchpoint): Likewise.
5782 (i386_dr_remove_aligned_watchpoint): Likewise.
5783 (i386_dr_update_inferior_debug_regs): Likewise.
5785 2014-06-19 Gary Benson <gbenson@redhat.com>
5787 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5788 * configure: Regenerate.
5789 * config.in: Likewise.
5790 * main.c (signal.h): New include.
5791 (setup_alternate_signal_stack): New function.
5792 (captured_main): Call the above.
5793 * cp-support.c (signal.h): New include.
5794 (catch_demangler_crashes): New flag.
5795 (SIGJMP_BUF): New define.
5796 (SIGSETJMP): Likewise.
5797 (SIGLONGJMP): Likewise.
5798 (gdb_demangle_jmp_buf): New static global.
5799 (gdb_demangle_attempt_core_dump): Likewise.
5800 (gdb_demangle_signal_handler): New function.
5801 (gdb_demangle): If catch_demangler_crashes is set, install the
5802 above signal handler before calling bfd_demangle, and restore
5803 the original signal handler afterwards. Display the offending
5804 symbol and call demangler_warning the first time a segmentation
5806 (_initialize_cp_support): New maint set/show command.
5808 2014-06-19 Gary Benson <gbenson@redhat.com>
5810 * utils.h (resource_limit_kind): New enum.
5811 (can_dump_core): New declaration.
5812 (warn_cant_dump_core): Likewise.
5813 (dump_core): Likewise.
5814 * utils.c (dump_core): Made nonstatic. Added new
5815 parameter "limit_kind".
5816 (can_dump_core): Made nonstatic. Moved printing code to...
5817 (warn_cant_dump_core): New function.
5818 (can_dump_core_warn): Likewise.
5819 (internal_vproblem): Replace calls to can_dump_core with
5820 calls to can_dump_core_warn. Supply new argument to each.
5822 2014-06-19 Gary Benson <gbenson@redhat.com>
5824 * utils.h (demangler_vwarning): New declaration.
5825 (demangler_warning): Likewise.
5826 * utils.c (struct internal_problem)
5827 <user_settable_should_quit>: New field.
5828 <user_settable_should_dump_core>: Likewise
5829 (internal_error_problem): Add values for above new fields.
5830 (internal_warning_problem): Likewise.
5831 (demangler_warning_problem): New static global.
5832 (demangler_vwarning): New function.
5833 (demangler_warning): Likewise.
5834 (add_internal_problem_command): Selectively add commands.
5835 (_initialize_utils): New internal problem command.
5836 * maint.c (maintenance_demangler_warning): New function.
5837 (_initialize_maint_cmds): New command.
5839 2014-06-18 Tom Tromey <tromey@redhat.com>
5841 * f-valprint.c (info_common_command_for_block): Update.
5842 * symtab.h (struct general_symbol_info) <common_block>: Now
5845 2014-06-18 Tom Tromey <tromey@redhat.com>
5847 * symtab.h (struct symtab) <blockvector>: Now const.
5848 * ada-lang.c (ada_add_global_exceptions): Update.
5849 * buildsym.c (augment_type_symtab): Update.
5850 * dwarf2read.c (dw2_lookup_symbol): Update.
5851 * jit.c (finalize_symtab): Update.
5852 * jv-lang.c (add_class_symtab_symbol): Update.
5853 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5855 * objfiles.c (objfile_relocate1): Update.
5856 * psymtab.c (lookup_symbol_aux_psymtabs)
5857 (maintenance_check_psymtabs): Update.
5858 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5860 * spu-tdep.c (spu_catch_start): Update.
5861 * symmisc.c (dump_symtab_1): Update.
5862 * symtab.c (lookup_global_symbol_from_objfile)
5863 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5864 (basic_lookup_transparent_type_quick)
5865 (basic_lookup_transparent_type, find_pc_sect_symtab)
5866 (find_pc_sect_line, search_symbols): Update.
5867 * block.c (find_block_in_blockvector): Make "bl" const.
5868 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5870 (blockvector_contains_pc): Make "bv" const.
5871 (block_for_pc_sect): Update.
5872 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5873 (blockvector_contains_pc): Update.
5874 * breakpoint.c (resolve_sal_pc): Update.
5875 * inline-frame.c (block_starting_point_at): Update.
5877 2014-06-18 Tom Tromey <tromey@redhat.com>
5879 * completer.c (complete_line): Make "line_buffer" const.
5880 * completer.h (complete_line): Update.
5882 2014-06-18 Tom Tromey <tromey@redhat.com>
5884 * symtab.c (add_macro_name): Remove unneeded cast.
5886 2014-06-18 Tom Tromey <tromey@redhat.com>
5888 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5889 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5891 2014-06-18 Tom Tromey <tromey@redhat.com>
5893 * probe.c (info_probes_for_ops): Make "arg" const.
5894 * probe.h (info_probes_for_ops): Update.
5896 2014-06-18 Tom Tromey <tromey@redhat.com>
5898 * varobj.c (varobj_create): Update.
5899 * valops.c (value_of_this): Update.
5900 * tracepoint.c (add_local_symbols, scope_info): Update.
5901 * symtab.h (struct general_symbol_info) <block>: Now const.
5902 * symtab.c (skip_prologue_sal)
5903 (default_make_symbol_completion_list_break_on)
5904 (skip_prologue_using_sal): Update.
5905 * stack.h (iterate_over_block_locals)
5906 (iterate_over_block_local_vars): Update.
5907 * stack.c (print_frame_args): Update.
5908 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5910 (get_selected_block): Make return type const.
5911 * python/py-frame.c (frapy_block): Update.
5912 * python/py-block.c (gdbpy_block_for_pc): Update.
5913 * p-exp.y (%union) <bval>: Now const.
5914 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5915 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5916 * m2-exp.y (%union) <bval>: Now const.
5917 * linespec.c (get_current_search_block): Make return type const.
5918 (create_sals_line_offset, find_label_symbols): Update.
5919 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5921 (block_starting_point_at): Make "block" const.
5922 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5923 (check_exception_resume): Update.
5924 * guile/scm-frame.c (gdbscm_frame_block): Update.
5925 * guile/scm-block.c (gdbscm_lookup_block): Update.
5926 * frame.h (get_frame_block): Update.
5927 (get_selected_block): Make return type const.
5928 * frame.c (frame_id_inner): Update.
5929 * f-valprint.c (info_common_command_for_block)
5930 (info_common_command): Update.
5931 * dwarf2loc.c (dwarf2_find_location_expression)
5932 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5933 (locexpr_describe_location_piece): Update.
5934 * c-exp.y (%union) <bval>: Now const.
5935 * breakpoint.c (resolve_sal_pc): Update.
5936 * blockframe.c (get_frame_block):Make return type const.
5937 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5938 (block_innermost_frame): Update.
5939 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5940 (block_for_pc, block_for_pc_sect): Update.
5941 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5943 (block_for_pc_sect, block_for_pc): Make return type const.
5944 * ax-gdb.c (gen_expr): Update.
5945 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5946 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5947 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5948 (ada_read_var_value): Update.
5949 * ada-exp.y (struct name_info) <block>: Now const.
5951 (block_lookup): Constify.
5953 2014-06-18 Gary Benson <gbenson@redhat.com>
5955 * nat/i386-dregs.h: New file.
5956 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5957 * i386-nat.h (i386-dregs.h): New include.
5958 (DR_FIRSTADDR): Now in i386-dregs.h.
5959 (DR_LASTADDR): Likewise.
5960 (DR_NADDR): Likewise.
5961 (DR_STATUS): Likewise.
5962 (DR_CONTROL): Likewise.
5963 (i386_debug_reg_state): Likewise.
5964 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5966 2014-06-18 Don Breazeal <donb@codesourcery.com>
5968 * breakpoint.c (set_longjmp_breakpoint): Call
5969 momentary_breakpoint_from_master with additional argument.
5970 (set_longjmp_breakpoint_for_call_dummy): Call
5971 momentary_breakpoint_from_master with additional argument.
5972 (set_std_terminate_breakpoint): Call
5973 momentary_breakpoint_from_master with additional argument.
5974 (momentary_breakpoint_from_master): Add argument to function
5975 definition and use it to initialize structure member flag.
5976 (clone_momentary_breakpoint): Call
5977 momentary_breakpoint_from_master with additional argument.
5978 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5979 member flags set in momentary_breakpoint_from_master.
5981 2014-06-18 Gary Benson <gbenson@redhat.com>
5983 * i386-nat.c (i386_show_dr): Renamed to
5984 i386_dr_show and made nonstatic. All uses updated.
5985 (i386_length_and_rw_bits): Renamed to
5986 i386_dr_length_and_rw_bits and made nonstatic.
5988 (i386_insert_aligned_watchpoint): Renamed to
5989 i386_dr_insert_aligned_watchpoint and made nonstatic.
5991 (i386_remove_aligned_watchpoint): Renamed to
5992 i386_dr_remove_aligned_watchpoint and made nonstatic.
5994 (i386_update_inferior_debug_regs): Renamed to
5995 i386_dr_update_inferior_debug_regs and made nonstatic.
5998 2014-06-18 Gary Benson <gbenson@redhat.com>
6000 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6001 (i386_dr_low_can_set_control): Likewise.
6002 (i386_dr_low_set_addr): Likewise.
6003 (i386_dr_low_set_control): Likewise.
6004 (i386_dr_low_get_addr): Likewise.
6005 (i386_dr_low_get_status): Likewise.
6006 (i386_dr_low_get_control): Likewise.
6007 (i386_insert_aligned_watchpoint): Use new macros.
6008 (i386_update_inferior_debug_regs): Likewise.
6009 (i386_stopped_data_address): Likewise.
6011 2014-06-18 Gary Benson <gbenson@redhat.com>
6013 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6014 New parameter. All uses updated.
6016 2014-06-18 Gary Benson <gbenson@redhat.com>
6018 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6021 2014-06-18 Gary Benson <gbenson@redhat.com>
6023 * i386-nat.c (debug_printf): New macro.
6024 (i386_get_debug_register_length): Likewise.
6025 (TARGET_HAS_DR_LEN_8): Use above macro.
6026 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6027 and printf_unfiltered. Use phex to format values.
6029 2014-06-18 Gary Benson <gbenson@redhat.com>
6031 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6034 2014-06-18 Gary Benson <gbenson@redhat.com>
6036 * i386-nat.c: Comment changes.
6038 2014-06-18 Gary Benson <gbenson@redhat.com>
6040 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6042 2014-06-18 Gary Benson <gbenson@redhat.com>
6044 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6045 (i386_insert_aligned_watchpoint): Likewise.
6046 (i386_remove_aligned_watchpoint): Likewise.
6047 (i386_handle_nonaligned_watchpoint): Likewise.
6049 2014-06-18 Gary Benson <gbenson@redhat.com>
6051 * i386-nat.c: Whitespace changes.
6053 2014-06-17 Samuel Bronson <naesten@gmail.com>
6055 * MAINTAINERS: Update Roland McGrath's email address.
6056 Thanks to Sergio Durigan Junior for pointing out that he left
6057 Red Hat a while ago, and giving me a current address.
6059 2014-06-17 Tom Tromey <tromey@redhat.com>
6061 * utils.h (savestring): Remove declaration.
6063 2014-06-17 Tom Tromey <tromey@redhat.com>
6065 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6067 2014-06-16 Keith Seitz <keiths@redhat.com>
6070 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6071 to update the varobj if inferior_ptid is null_ptid.
6073 2014-06-16 Tom Tromey <tromey@redhat.com>
6075 * target.h (struct target_ops) <to_info_proc>: Make parameter
6077 (target_info_proc): Update.
6078 * target.c (target_info_proc): Make "args" const.
6079 * procfs.c (procfs_info_proc): Update.
6080 * linux-tdep.c (linux_info_proc): Update.
6081 (linux_core_info_proc_mappings): Make "args" const.
6082 (linux_core_info_proc): Update.
6083 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6084 * gdbarch.c: Rebuild.
6085 * gdbarch.h: Rebuild.
6086 * corelow.c (core_info_proc): Update.
6088 2014-06-16 Tom Tromey <tromey@redhat.com>
6090 * target.h (struct target_ops) <to_disconnect>: Make parameter
6092 (target_disconnect): Update.
6093 * target.c (target_disconnect): Make "args" const.
6094 * target-delegates.c: Rebuild.
6095 * remote.c (remote_disconnect): Update.
6096 * record.h (record_disconnect): Update.
6097 * record.c (record_disconnect): Update.
6098 * inf-child.c (inf_child_disconnect): Update.
6100 2014-06-16 Tom Tromey <tromey@redhat.com>
6102 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6103 * target.c (debug_to_rcmd, default_rcmd): Update.
6104 * target-delegates.c: Rebuild.
6105 * remote.c (remote_rcmd): Update.
6106 * monitor.c (monitor_rcmd): Update.
6108 2014-06-16 Pedro Alves <palves@redhat.com>
6110 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6111 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6112 have OBJF_SHARED set.
6113 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6114 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6115 instead of OBJF_USERLOADED.
6116 * objfiles.h (OBJF_SHARED): Update comment.
6117 (userloaded_objfile_contains_address_p): Rename to ...
6118 (shared_objfile_contains_address_p): ... this, and update
6120 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6122 (remove_symbol_file_command): Skip objfiles that don't have
6125 2014-06-16 Tom Tromey <tromey@redhat.com>
6127 * minsyms.h (prim_record_minimal_symbol)
6128 (prim_record_minimal_symbol_and_info): Update comments.
6130 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6132 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6133 or --without-guile, according to how GDB was built.
6135 2014-06-13 Tom Tromey <tromey@redhat.com>
6137 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6139 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6141 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6143 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6144 help_list.Pass all_commands, not -1, to help_list.
6145 * cli/cli-dump.c (dump_command, append_command)
6146 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6147 (binary_dump_command, binary_append_command): Pass all_commands,
6148 not -1, to help_list.
6149 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6151 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6153 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6155 * top.c (set_history): Pass all_commands, not -1, to help_list.
6156 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6157 all_commands, not -1, to help_list.
6158 * symfile.c (overlay_command): Pass all_commands, not -1, to
6160 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6162 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6164 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6166 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6167 not -1, to help_list.
6168 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6169 not -1, to help_list.
6170 * maint.c (maintenance_command, maintenance_info_command)
6171 (maintenance_print_command, maintenance_set_cmd): Pass
6172 all_commands, not -1, to help_list.
6173 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6175 * language.c (set_check): Pass all_commands, not -1, to help_list.
6176 * infcmd.c (unset_command): Pass all_commands, not -1, to
6178 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6180 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6182 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6184 * breakpoint.c (save_command): Pass all_commands, not -1, to
6186 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6187 all_commands, not -1, to help_list.
6189 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6191 * regcache.c (struct register_to_invalidate): New structure.
6192 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6194 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6196 2014-06-12 Yao Qi <yao@codesourcery.com>
6198 * varobj.c (varobj_get_num_children): Call
6199 varobj_is_dynamic_p.
6200 (varobj_list_children): Likewise.
6201 (varobj_update): Likewise. Update comments.
6203 2014-06-12 Yao Qi <yao@codesourcery.com>
6205 * varobj.c (varobj_pretty_printed_p): Rename to ...
6206 (varobj_is_dynamic_p): ... this. New function.
6207 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6208 (varobj_is_dynamic_p): Declare.
6209 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6210 (mi_print_value_p, varobj_update_one): Likewise.
6212 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6213 Yao Qi <yao@codesourcery.com>
6215 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6216 (varobj_get_iterator): Wrap up code for pretty-printer by
6217 "#if HAVE_PYTHON" and "#endif".
6218 (update_dynamic_varobj_children): Likewise.
6220 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6221 Yao Qi <yao@codesourcery.com>
6223 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6224 gdb_python_initialized is false. Move some code from varobj.c.
6225 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6226 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6227 (struct varobj_item): Moved to varobj-iter.h".
6228 (varobj_clear_saved_item): New function.
6229 (update_dynamic_varobj_children): Move python-related code to
6231 (free_variable): Call varobj_clear_saved_item and
6234 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6235 Yao Qi <yao@codesourcery.com>
6237 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6238 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6239 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6240 (py-varobj.o): New rule.
6241 * python/py-varobj.c: New file.
6242 * python/python-internal.h (py_varobj_get_iterator): Declare.
6243 * varobj-iter.h: New file.
6244 * varobj.c: Include "varobj-iter.h"
6245 (struct varobj) <child_iter>: Change its type from "PyObject *"
6246 to "struct varobj_iter *".
6247 <saved_item>: Likewise.
6248 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6249 [HAVE_PYTHON] (varobj_get_iterator): New function.
6250 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6251 python-specific code to python/py-varobj.c.
6252 (install_visualizer): Call varobj_iter_delete instead of
6254 * varobj.h (varobj_ensure_python_env): Declare.
6256 2014-06-12 Yao Qi <yao@codesourcery.com>
6258 * varobj.c (struct varobj_item): New structure.
6259 (create_child_with_value): Update declaration.
6260 (varobj_add_child): Replace arguments 'name' and 'value' with
6261 'item'. All callers updated.
6262 (install_dynamic_child): Likewise.
6263 (update_dynamic_varobj_children): Likewise.
6264 (varobj_add_child): Likewise.
6265 (create_child_with_value): Likewise.
6267 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6269 * NEWS: Create a new section for the next release branch.
6270 Rename the section of the current branch, now that it has
6273 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6275 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6276 * version.in: Bump version to 7.8.50.DATE-cvs.
6278 2014-06-11 Pedro Alves <palves@redhat.com>
6281 * ser-mingw.c (net_windows_socket_check_pending): New function.
6282 (net_windows_select_thread): Ignore spurious wakeups. Use
6283 net_windows_socket_check_pending.
6284 (net_windows_wait_handle): Check for pending events with
6285 ioctlsocket, through net_windows_socket_check_pending, instead of
6286 checking the socket's event.
6288 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6290 * python/python-internal.h (gdb_PyObject_GetAttrString)
6291 (gdb_PyObject_HasAttrString): New inline function definitions.
6292 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6293 char * of the second argument to PyObject_GetAttrString.
6295 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6297 * serial.c (serial_write): Fix index of character to be printed
6298 in call to serial_logchar when serial debug traces are enabled.
6300 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6302 * gdbtypes (resolve_dynamic_range): Add function description.
6304 2014-06-09 Pedro Alves <palves@redhat.com>
6306 * linux-nat.c (linux_child_follow_fork): Initialize status with
6307 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6308 inner block. Only pass the signal to PTRACE_DETACH if in pass
6311 2014-06-09 Gary Benson <gbenson@redhat.com>
6313 * common/signals.c (gdb_signal_from_host): Reorder to separate
6314 the always-available ANSI-standard signals from the signals that
6316 (do_gdb_signal_to_host): Likewise.
6317 * proc-events.c (signal_table): Likewise.
6319 2014-06-08 Hui Zhu <hui@codesourcery.com>
6321 * common/linux-ptrace.c (linux_disable_event_reporting): New
6323 * common/linux-ptrace.h (linux_disable_event_reporting): New
6325 * linux-nat.c (linux_child_follow_fork): Do a single step before
6328 2014-06-07 Keith Seitz <keiths@redhat.com>
6332 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6333 from symbol_matches_domain in symtab.c. All local callers
6334 of symbol_matches_domain updated.
6335 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6336 search STRUCT_DOMAIN.
6337 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6338 independently. standard_lookup will do that automatically.
6339 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6340 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6341 (cp_lookup_symbol_in_namespace): Likewise.
6342 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6343 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6344 may return a STRUCT_DOMAIN match.
6345 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6346 * cp-support.c: Include language.h.
6347 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6349 * psymtab.c (match_partial_symbol): Compare the requested
6350 domain with the symbol's domain directly.
6351 (lookup_partial_symbol): Likewise.
6352 * symtab.c (lookup_symbol_in_language): Explain when/why
6353 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6354 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6355 appropriate languages.
6356 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6357 and moved to ada-lang.c
6358 (lookup_block_symbol): Explain that this function only returns
6359 symbol matching the requested DOMAIN.
6360 Compare the requested domain with the symbol's domain directly.
6361 (iterate_over_symbols): Compare the requested domain with the
6362 symbol's domain directly.
6363 * symtab.h (symbol_matches_domain): Remove.
6365 2014-06-06 Doug Evans <xdje42@gmail.com>
6367 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6368 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6369 (gdbscm_guile_version_is_at_least): Declare.
6370 (gdbscm_scm_string_to_int): Declare.
6371 * guile/guile.c (gdbscm_guile_major_version): New global.
6372 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6373 (guile_datadir): New static global.
6374 (gdbscm_guile_data_directory): New function.
6375 (initialize_scheme_side): Update.
6376 (misc_guile_functions): Add guile-data-directory.
6377 (initialize_gdb_module): Fetch guile version number.
6378 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6379 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6380 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6381 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6383 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6384 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6385 * guile/scm-value.c (gdbscm_value_to_string): Only call
6386 scm_port_conversion_strategy if Guile version >= 2.0.6.
6388 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6390 * main.c (print_gdb_help): Add -q and --silent.
6392 2014-06-06 Gary Benson <gbenson@redhat.com>
6394 * common/signals.c: Remove preprocessor conditionals for
6395 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6396 SIGSEGV and SIGTERM.
6397 * proc-events.c: Likewise.
6399 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6401 * symfile.c (symfile_free_objfile): Remove restriction to
6403 * symfile-mem.c (symbol_file_add_from_memory): Call
6404 add_target_sections_of_objfile.
6406 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6408 * guile/scm-value.c (gdbscm_history_append_x): Use
6409 'vlscm_get_value_smob_arg_unsafe' instead of
6410 'vlscm_scm_to_value'.
6412 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6415 * utils.c (printchar): Don't escape at all if quoter is NUL.
6416 Update function documentation to clarify effect of parameter
6418 * remote.c (escape_buffer): Pass '\\' as the quoter to
6419 fputstrn_unfiltered.
6420 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6421 generate the output.
6422 (mi_solib_unloaded): Same.
6424 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6426 * development.sh: Delete.
6427 * Makefile.in (config.status): Adjust dependency on development.sh.
6428 * configure.ac: Adjust development.sh source call.
6429 * configure: Regenerate.
6431 2014-06-04 Doug Evans <xdje42@gmail.com>
6433 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6434 is_scheme_bkpt, spec.
6435 (bpscm_make_breakpoint_smob): Initialize new members.
6436 (gdbscm_create_breakpoint_x): Split into two ...
6437 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6438 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6439 (scheme_function breakpoint_functions): Update.
6440 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6441 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6442 register-breakpoint!.
6444 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6447 * mem-break.c (z_type_supported): Return zero if
6448 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6450 2014-06-04 Tom Tromey <tromey@redhat.com>
6452 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6453 value_from_contents_and_address_unresolved.
6454 (ada_template_to_fixed_record_type_1): Likewise.
6455 (ada_which_variant_applies): Likewise.
6456 * value.h (value_from_contents_and_address_unresolved): Declare.
6457 * value.c (value_from_contents_and_address_unresolved): New
6459 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6460 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6461 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6463 2014-06-04 Tom Tromey <tromey@redhat.com>
6465 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6467 2014-06-04 Tom Tromey <tromey@redhat.com>
6469 * procfs.c (procfs_attach): Make "args" const.
6470 * windows-nat.c (windows_attach): Make "args" const.
6471 * nto-procfs.c (procfs_attach): Make "args" const.
6472 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6473 * go32-nat.c (go32_attach): Make "args" const.
6474 * gnu-nat.c (gnu_attach): Make "args" const.
6475 * darwin-nat.c (darwin_attach): Make "args" const.
6476 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6477 * linux-nat.c (linux_nat_attach): Make "args" const.
6478 * remote.c (extended_remote_attach_1, extended_remote_attach):
6480 * target.h (struct target_ops) <to_attach>: Make "args" const.
6481 (find_default_attach): Likewise.
6482 * utils.c (parse_pid_to_attach): Make "args" const.
6483 * utils.h (parse_pid_to_attach): Update.
6485 2014-06-04 Tom Tromey <tromey@redhat.com>
6487 * target-delegates.c: Rebuild.
6488 * target.c (default_thread_address_space): New function.
6489 (target_thread_address_space): Simplify.
6490 * target.h (struct target_ops) <to_thread_address_space>: Add
6491 TARGET_DEFAULT_FUNC.
6493 2014-06-04 Doug Evans <xdje42@gmail.com>
6495 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6497 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6499 * record-btrace.c: Include event-loop.h and inf-loop.h.
6500 (record_btrace_resume_exec_dir)
6501 (record_btrace_async_inferior_event_handler)
6502 (record_btrace_handle_async_inferior_event): New.
6503 (record_btrace_open): Create async event handler.
6504 (record_btrace_close): Delete async event handler.
6505 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6506 Mark async event handler.
6507 (record_btrace_execution_direction): New.
6508 (init_record_btrace_ops): Initialize to_execution_direction.
6510 2014-06-03 Doug Evans <xdje42@gmail.com>
6512 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6513 (gdbscm_make_parameter): Ditto.
6515 2014-06-03 Doug Evans <dje@google.com>
6517 * exec.c (exec_close_1): Call clear_section_table instead of
6518 resize_section_table.
6519 (clear_section_table): New function.
6520 (resize_section_table): Make static. Rename arg num_added to
6522 * exec.h (clear_section_table): Declare.
6523 (resize_section_table): Delete.
6524 * progspace.c (release_program_space): Call clear_section_table
6525 instead of resize_section_table.
6527 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6529 * NEWS (Python Scripting): Add entry about the new xmethods
6532 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6534 * python/py-xmethods.c: New file.
6535 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6536 (objfpy_dealloc): XDECREF on the new xmethods field.
6537 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6539 (objfpy_get_xmethods): New function.
6540 (objfile_getset): New entry 'xmethods'.
6541 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6542 (pspy_dealloc): XDECREF on the new xmethods field.
6543 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6545 (pspy_get_xmethods): New function.
6546 (pspace_getset): New entry 'xmethods'.
6547 * python/python-internal.h: Add declarations for new functions.
6548 * python/python.c (_initialize_python): Invoke
6549 gdbpy_initialize_xmethods.
6550 * python/lib/gdb/__init__.py (xmethods): New
6552 * python/lib/gdb/xmethod.py: New file.
6553 * python/lib/gdb/command/xmethods.py: New file.
6555 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6557 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6558 best match method returned by find_overload_match is an xmethod.
6559 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6560 the best matching operator returned by find_overload_match is an
6562 * valops.c: #include "extension.h".
6563 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6564 Return void. The list of matching source methods is returned in
6565 "fn_list" and a vector of matching debug method workers is
6566 returned in "xm_worker_vec". Update all callers.
6567 (value_find_oload_method_list): Likewise.
6568 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6569 non-NULL, then the index of the best matching method in this
6570 vector is returned. Update all callers.
6571 (find_overload_match): Include xmethods while performing overload
6574 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6576 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6577 * extension-priv.h (struct extension_language_ops): Add the
6579 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6580 get_matching_xmethod_workers, get_xmethod_argtypes,
6581 invoke_xmethod, free_xmethod_worker,
6582 free_xmethod_worker_vec): New functions.
6583 * extension.h: #include "common/vec.h".
6584 New function declarations.
6585 (struct xmethod_worker): New struct.
6586 (VEC (xmethod_worker_ptr)): New vector type.
6587 (xmethod_worker_ptr): New typedef.
6588 (xmethod_worker_vec): Likewise.
6589 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6591 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6592 (struct builtin_type): New field "xmethod".
6593 * valarith.c (value_ptradd): Assert that the value argument is not
6595 * valops.c (value_must_coerce_to_target): Return 0 for
6596 lval_xcallable values.
6597 * value.c (struct value): New field XM_WORKER in the field
6599 (value_address, value_raw_address): Return 0 for lval_xcallable
6601 (set_value_address): Assert that the value is not an
6603 (value_free): Free the associated xmethod worker when freeing
6604 lval_xcallable values.
6605 (set_value_component_location): Assert that the WHOLE value is not
6607 (value_of_xmethod, call_xmethod): New functions.
6608 * value.h: Declare "struct xmethod_worker".
6609 Declare new functions value_of_xmethod, call_xmethod.
6611 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6612 Pedro Alves <palves@redhat.com>
6614 PR breakpoints/17000
6615 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6616 New function, extracted from software_breakpoint_inserted_here_p.
6617 (software_breakpoint_inserted_here_p): Replace factored out code
6618 by call to find_non_raw_software_breakpoint_inserted_here.
6619 (bp_target_info_copy_insertion_state): New function.
6620 (bkpt_insert_location): Handle the case of a single-step
6621 breakpoint already inserted at the same address.
6622 (bkpt_remove_location): Handle the case of a single-step
6623 breakpoint still inserted at the same address.
6624 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6625 breakpoint already inserted at the same address.
6626 (deprecated_remove_raw_breakpoint): Handle the case of a
6627 non-raw breakpoint still inserted at the same address.
6628 (find_single_step_breakpoint): New function, extracted from
6629 single_step_breakpoint_inserted_here_p.
6630 (find_single_step_breakpoint): New function,
6631 factored out from single_step_breakpoint_inserted_here_p.
6632 (single_step_breakpoint_inserted_here_p): Reimplement.
6634 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6636 Pushed by Joel Brobecker <brobecker@adacore.com>
6637 * source.c (show_substitute_path_command): Fix display of matching
6640 2014-06-03 Gary Benson <gbenson@redhat.com>
6642 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6644 2014-06-02 Doug Evans <xdje42@gmail.com>
6646 Add parameter support for Guile.
6647 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6648 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6649 (scm-param.o): New rule.
6650 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6651 (gdbscm_misc_error): Declare.
6652 (gdbscm_canonicalize_command_name): Declare.
6653 (gdbscm_scm_to_host_string): Declare.
6654 (gdbscm_scm_from_host_string): Declare.
6655 (gdbscm_initialize_parameters): Declare.
6656 * guile/guile.c (initialize_gdb_module): Call
6657 gdbscm_initialize_parameters.
6658 * guile/lib/gdb.scm: Export parameter symbols.
6659 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6660 cmdscm_canonicalize_name and made public. All callers updated.
6661 * guile/scm-exception.c (gdbscm_misc_error): New function.
6662 * guile/scm-param.c: New file.
6663 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6664 (gdbscm_scm_to_host_string): New function.
6665 (gdbscm_scm_from_host_string): New function.
6666 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6668 2014-06-02 Doug Evans <xdje42@gmail.com>
6670 Add command support for Guile.
6671 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6672 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6673 (scm-cmd.o): New rule.
6674 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6675 (gdbscm_user_error_p): Declare.
6676 (gdbscm_parse_command_name): Declare.
6677 (gdbscm_valid_command_class_p): Declare.
6678 (gdbscm_initialize_commands): Declare.
6679 * guile/guile.c (initialize_gdb_module): Call
6680 gdbscm_initialize_commands.
6681 * guile/lib/gdb.scm: Export command symbols.
6682 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6683 (throw-user-error): New function.
6684 * guile/scm-cmd.c: New file.
6685 * guile/scm-exception.c (user_error_symbol): New static global.
6686 (gdbscm_user_error_p): New function.
6687 (gdbscm_initialize_exceptions): Set user_error_symbol.
6688 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6690 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6692 * top.c (command_loop): Handle comments here...
6693 (command_line_input): ... not here.
6695 2014-06-02 Doug Evans <xdje42@gmail.com>
6697 Add progspace support for Guile.
6698 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6699 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6700 (scm-progspace.o): New rule.
6701 * guile/guile-internal.h (pspace_smob): New typedef.
6702 (psscm_pspace_smob_pretty_printers): Declare.
6703 (psscm_pspace_smob_from_pspace): Declare.
6704 (psscm_scm_from_pspace): Declare.
6705 * guile/guile.c (initialize_gdb_module): Call
6706 gdbscm_initialize_pspaces.
6707 * guile/lib/gdb.scm: Export progspace symbols.
6708 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6710 (append-pretty-printer!): Ditto.
6711 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6713 * guile/scm-progspace.c: New file.
6715 2014-06-03 Alan Modra <amodra@gmail.com>
6717 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6718 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6720 2014-06-02 Doug Evans <dje@google.com>
6722 Add support for skeletonless type units.
6723 * dwarf2read.c (struct dwarf2_per_objfile): New member
6724 n_allocated_type_units.
6725 (struct dwarf2_per_objfile) <tu_stats>: New member
6726 nr_all_type_units_reallocs.
6727 (create_signatured_type_table_from_index): Initialize
6728 n_allocated_type_units
6729 (create_all_type_units): Ditto.
6730 (add_type_unit): Move up in file. New arg slot.
6731 All callers updated. Increase space for all_type_units more
6733 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6734 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6735 (lookup_dwp_signatured_type): Ditto.
6736 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6737 All callers updated.
6738 (build_type_psymtabs_1): Leave type_unit_groups as
6739 NULL if no TUs present.
6740 (print_tu_stats): New function.
6741 (process_skeletonless_type_unit): New function.
6742 (process_dwo_file_for_skeletonless_type_units): New
6744 (process_skeletonless_type_units): New function.
6745 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6746 Call print tu_stats if debugging enabled.
6748 2014-06-02 Pedro Alves <palves@redhat.com>
6750 * breakpoint.c (build_target_command_list): Don't build a command
6751 list if we have any duplicate location that isn't a dprintf.
6753 2014-06-02 Pedro Alves <palves@redhat.com>
6755 * breakpoint.c (dprintf_breakpoint_hit): New function.
6756 (initialize_breakpoint_ops): Install it as dprintf's
6757 breakpoint_hit method.
6759 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6761 * source.c (substitute_path_rule_matches): Simplify using
6762 filename_ncmp instead of FILENAME_CMP.
6764 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6766 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6768 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6770 * configure.ac: When Guile is available, check for the
6771 availability of 'scm_new_smob'.
6772 * configure, config.h.in: Regenerate.
6773 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6776 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6778 * frame.c (struct frame_info): Add stop_string field.
6779 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6780 (get_prev_frame_always): Old content moved into
6781 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6782 TRY_CATCH, handle MEMORY_ERROR exceptions.
6783 (frame_stop_reason_string): New function definition.
6784 * frame.h (unwind_stop_reason_to_string): Extend comment to
6785 mention frame_stop_reason_string.
6786 (frame_stop_reason_string): New function declaration.
6787 * stack.c (frame_info): Switch to frame_stop_reason_string.
6788 (backtrace_command_1): Switch to frame_stop_reason_string.
6789 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6790 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6791 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6793 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6795 * frame.c (frame_stop_reason_string): Rename to ...
6796 (unwind_stop_reason_to_string): this.
6797 * frame.h (frame_stop_reason_string): Rename to ...
6798 (unwind_stop_reason_to_string): this.
6799 * stack.c (frame_info): Update call to frame_stop_reason_string.
6800 (backtrace_command_1): Likewise.
6801 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6802 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6804 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6806 * frame.c (remove_prev_frame): New function.
6807 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6810 2014-05-29 Pedro Alves <palves@redhat.com>
6812 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6813 and make it const. When a single-step decays to a continue,
6814 clear 'step', not 'hw_step'. Pass whether the caller wanted
6815 to step to user_visible_resume_ptid, not what we ask the
6818 2014-05-29 Pedro Alves <palves@redhat.com>
6820 * infrun.c (process_event_stop_test, handle_step_into_function)
6821 (handle_step_into_function_backward): Adjust.
6822 Don't set the even thread's stop_step and call stop_waiting before
6823 calling end_stepping_range. Instead do that ...
6824 (end_stepping_range): ... here. Take an ecs pointer parameter.
6826 2014-05-29 Pedro Alves <palves@redhat.com>
6828 * infrun.c (stop_stepping): Rename to ...
6829 (stop_waiting): ... this.
6830 (proceed): Update comment.
6831 (process_event_stop_test, handle_inferior_event)
6832 (handle_signal_stop, handle_step_into_function)
6833 (handle_step_into_function_backward): Update.
6835 2014-05-29 Pedro Alves <palves@redhat.com>
6837 * infcall.c (run_inferior_call): Don't check whether the current
6838 thread is running after the proceed call.
6840 2014-05-29 Pedro Alves <palves@redhat.com>
6841 Tom Tromey <tromey@redhat.com>
6843 * NEWS: Mention "maint set target-async", "set mi-async", and that
6844 background execution commands are now always available.
6845 * target.h (target_async_permitted): Update comment.
6846 * target.c (target_async_permitted, target_async_permitted_1):
6848 (set_target_async_command): Rename to ...
6849 (maint_set_target_async_command): ... this.
6850 (show_target_async_command): Rename to ...
6851 (maint_show_target_async_command): ... this.
6852 (_initialize_target): Adjust.
6853 * infcmd.c (prepare_execution_command): Make extern.
6854 * inferior.h (prepare_execution_command): Declare.
6855 * infrun.c (set_observer_mode): Leave target async alone.
6856 * mi/mi-interp.c (mi_interpreter_init): Install
6857 mi_on_sync_execution_done as sync_execution_done observer.
6858 (mi_on_sync_execution_done): New function.
6859 (mi_execute_command_input_handler): Don't print the prompt if we
6860 just started a synchronous command with an async target.
6861 (mi_on_resume): Check sync_execution before printing prompt.
6862 * mi/mi-main.h (mi_async_p): Declare.
6863 * mi/mi-main.c: Include gdbcmd.h.
6864 (mi_async_p): New function.
6865 (mi_async, mi_async_1): New globals.
6866 (set_mi_async_command, show_mi_async_command, mi_async): New
6868 (exec_continue): Call prepare_execution_command.
6869 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6870 (mi_execute_async_cli_command): Use mi_async_p.
6871 (_initialize_mi_main): Install "set mi-async". Make
6872 "target-async" a deprecated alias.
6874 2014-05-29 Pedro Alves <palves@redhat.com>
6876 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6877 (_initialize_cli_interp): Adjust.
6878 * event-loop.c: Include "observer.h".
6879 (start_event_loop): Notify 'command_error' observers instead of
6880 calling display_gdb_prompt. Remove FIXME comment.
6881 * event-top.c (display_gdb_prompt): Remove call into the
6883 * inf-loop.c: Include "observer.h".
6884 (inferior_event_handler): Notify 'command_error' observers instead
6885 of calling display_gdb_prompt.
6886 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6887 observers instead of calling display_gdb_prompt.
6888 * interps.c (interp_set): Don't call display_gdb_prompt.
6889 (current_interp_display_prompt_p): Delete.
6890 * interps.h (interp_prompt_p): Delete declaration.
6891 (interp_prompt_p_ftype): Delete.
6892 (struct interp_procs) <prompt_proc_p>: Delete field.
6893 (current_interp_display_prompt_p): Delete declaration.
6894 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6895 (_initialize_mi_interp): Adjust.
6896 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6897 'command_error' observers.
6898 (tui_on_sync_execution_done, tui_on_command_error): New
6900 (tui_display_prompt_p): Delete.
6901 (_initialize_tui_interp): Adjust.
6903 2014-05-29 Pedro Alves <palves@redhat.com>
6906 * cli/cli-interp.c: Include infrun.h and observer.h.
6907 (cli_uiout, cli_interp): New globals.
6908 (cli_on_signal_received, cli_on_end_stepping_range)
6909 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6911 (cli_interpreter_init): Install them as 'end_stepping_range',
6912 'signal_received' 'signal_exited', 'exited' and 'no_history'
6914 (_initialize_cli_interp): Remove cli_interp local.
6915 * infrun.c (handle_inferior_event): Call the several stop reason
6916 observers instead of printing the stop reason directly.
6917 (end_stepping_range): New function.
6918 (print_end_stepping_range_reason, print_signal_exited_reason)
6919 (print_exited_reason, print_signal_received_reason)
6920 (print_no_history_reason): Make static, and add an uiout
6921 parameter. Print to that instead of to CURRENT_UIOUT.
6922 * infrun.h (print_end_stepping_range_reason)
6923 (print_signal_exited_reason, print_exited_reason)
6924 (print_signal_received_reason print_no_history_reason): New
6926 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6928 <cli_uiout>: New field.
6929 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6930 uiout for CLI output. Install 'signal_received',
6931 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6933 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6934 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6935 (mi_on_no_history): New functions.
6936 (ui_out_free_cleanup): Delete function.
6937 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6938 instead use the one already stored in the MI interpreter data.
6939 (mi_ui_out): Adjust.
6940 * tui/tui-interp.c: Include infrun.h and observer.h.
6941 (tui_interp): New global.
6942 (tui_on_signal_received, tui_on_end_stepping_range)
6943 (tui_on_signal_exited, tui_on_exited)
6944 (tui_on_no_history): New functions.
6945 (tui_init): Install them as 'end_stepping_range',
6946 'signal_received' 'signal_exited', 'exited' and 'no_history'
6948 (_initialize_tui_interp): Delete tui_interp local.
6950 2014-05-29 Pedro Alves <palves@redhat.com>
6953 * linux-nat.c (linux_nat_resume_callback): Rename the second
6954 parameter to 'except'. Skip LP if it points to EXCEPT.
6955 (linux_nat_resume): Don't mark the event lwp as not stopped
6956 before resuming sibling lwps. Instead ask
6957 linux_nat_resume_callback to skip the event lwp. Mark it as not
6958 stopped after actually resuming it.
6959 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6961 (wait_lwp): Mark the lwp as stopped here.
6962 (stop_wait_callback): Mark the lwp as not stopped right after
6963 resuming it. Don't mark lwps as stopped here.
6964 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6965 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6967 2014-05-29 Pedro Alves <palves@redhat.com>
6970 * infrun.c (resume): Determine how much to resume depending on
6971 whether the caller wanted a step, not whether we can hardware step
6972 the target. Mark all threads that we intend to run as running,
6973 unless we're calling an inferior function.
6974 (normal_stop): If the thread is running an infcall, don't finish
6976 * target.c (target_resume): Don't mark threads as running here.
6978 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6980 * serial.c (_initialize_serial): Remove support for
6981 the "set remotebaud" and "show remotebaud" commands.
6982 * NEWS: Add entry documenting the removal of that command.
6984 2014-05-28 Yao Qi <yao@codesourcery.com>
6986 * charset.c: Fix typo in comments.
6988 2014-05-27 Gary Benson <gbenson@redhat.com>
6990 * utils.c (internal_vproblem): Prompt for a bug report.
6992 2014-05-26 Andy Wingo <wingo@igalia.com>
6994 * guile/scm-arch.c (arscm_mark_arch_smob):
6995 * guile/scm-block.c (bkscm_mark_block_smob)
6996 (bkscm_mark_block_syms_progress_smob):
6997 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6998 * guile/scm-exception.c (exscm_mark_exception_smob):
6999 * guile/scm-frame.c (frscm_mark_frame_smob):
7000 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7001 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7002 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7003 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7004 (ppscm_mark_pretty_printer_worker_smob):
7005 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7006 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7007 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7008 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7010 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7013 2014-05-26 Andy Wingo <wingo@igalia.com>
7014 Doug Evans <xdje42@gmail.com>
7016 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7017 empty_base_class. All uses updated.
7018 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7019 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7021 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7022 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7023 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7024 (gdbscm_gsmob_has_property_p, add_property_name)
7025 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7026 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7027 (gdb-object-has-property?, gdb-object-properties): Remove.
7028 (gdb-object-kind): Renamed from gsmob-kind.
7030 2014-05-26 Andy Wingo <wingo@igalia.com>
7032 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7033 * configure: Regenerate.
7035 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7037 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7039 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7041 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7042 (replay_memory_access_read_only, replay_memory_access_read_write)
7043 (replay_memory_access_types, replay_memory_access)
7044 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7045 (cmd_set_record_btrace, cmd_show_record_btrace)
7046 (cmd_show_replay_memory_access): New.
7047 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7048 (record_btrace_remove_breakpoint): Replace
7049 record_btrace_allow_memory_access with replay_memory_access.
7050 (_initialize_record_btrace): Add commands.
7051 * NEWS: Announce it.
7053 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7055 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7057 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7059 * MAINTAINERS (Write After Approval): Move self back from
7062 2014-05-22 Pedro Alves <palves@redhat.com>
7064 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7065 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7066 (disable_randomization, enum exec_direction_kind)
7067 (execution_direction, stop_registers, start_remote)
7068 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7069 (wait_for_inferior, normal_stop, get_last_target_status)
7070 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7071 (insert_step_resume_breakpoint_at_sal)
7072 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7073 (set_step_info, print_stop_event, signal_stop_state)
7074 (signal_print_state, signal_pass_state, signal_stop_update)
7075 (signal_print_update, signal_pass_update)
7076 (update_signals_program_target, clear_exit_convenience_vars)
7077 (displaced_step_dump_bytes, update_observer_mode)
7078 (signal_catch_update, gdb_signal_from_command): Move
7080 * infrun.h: ... to this new file.
7081 * amd64-tdep.c: Include infrun.h.
7082 * annotate.c: Include infrun.h.
7083 * arch-utils.c: Include infrun.h.
7084 * arm-linux-tdep.c: Include infrun.h.
7085 * arm-tdep.c: Include infrun.h.
7086 * break-catch-sig.c: Include infrun.h.
7087 * breakpoint.c: Include infrun.h.
7088 * common/agent.c: Include infrun.h instead of inferior.h.
7089 * corelow.c: Include infrun.h.
7090 * event-top.c: Include infrun.h.
7091 * go32-nat.c: Include infrun.h.
7092 * i386-tdep.c: Include infrun.h.
7093 * inf-loop.c: Include infrun.h.
7094 * infcall.c: Include infrun.h.
7095 * infcmd.c: Include infrun.h.
7096 * infrun.c: Include infrun.h.
7097 * linux-fork.c: Include infrun.h.
7098 * linux-nat.c: Include infrun.h.
7099 * linux-thread-db.c: Include infrun.h.
7100 * monitor.c: Include infrun.h.
7101 * nto-tdep.c: Include infrun.h.
7102 * procfs.c: Include infrun.h.
7103 * record-btrace.c: Include infrun.h.
7104 * record-full.c: Include infrun.h.
7105 * remote-m32r-sdi.c: Include infrun.h.
7106 * remote-mips.c: Include infrun.h.
7107 * remote-notif.c: Include infrun.h.
7108 * remote-sim.c: Include infrun.h.
7109 * remote.c: Include infrun.h.
7110 * reverse.c: Include infrun.h.
7111 * rs6000-tdep.c: Include infrun.h.
7112 * s390-linux-tdep.c: Include infrun.h.
7113 * solib-irix.c: Include infrun.h.
7114 * solib-osf.c: Include infrun.h.
7115 * solib-svr4.c: Include infrun.h.
7116 * target.c: Include infrun.h.
7117 * top.c: Include infrun.h.
7118 * windows-nat.c: Include infrun.h.
7119 * mi/mi-interp.c: Include infrun.h.
7120 * mi/mi-main.c: Include infrun.h.
7121 * python/py-threadevent.c: Include infrun.h.
7123 2014-05-22 Pedro Alves <palves@redhat.com>
7125 * infrun.c (handle_inferior_event): Store the exit code for
7126 --return-child-result here, instead of ...
7127 (print_exited_reason): ... here.
7129 2014-05-21 Pedro Alves <palves@redhat.com>
7132 * gdbthread.h (struct thread_control_state): New field
7134 * infrun.c (follow_fork): Copy the new thread control field to the
7136 (clear_proceed_status_thread): Clear the new thread control field.
7137 (proceed): Set the new thread control field.
7138 * interps.h (command_interp): Declare.
7139 * interps.c (command_interpreter): New global.
7140 (command_interp): New function.
7141 (interp_exec): Set `command_interpreter' while here.
7142 * cli-out.c (cli_uiout_dtor): New function.
7143 (cli_ui_out_impl): Install it.
7144 * mi/mi-interp.c: Include cli-out.h.
7145 (mi_cmd_interpreter_exec): Add comment.
7146 (restore_current_uiout_cleanup): New function.
7147 (ui_out_free_cleanup): New function.
7148 (mi_on_normal_stop): If finishing an execution command started by
7149 a CLI command, or any kind of breakpoint-like event triggered,
7150 print the stop event to the output (CLI) stream.
7151 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7153 2014-05-21 Pedro Alves <palves@redhat.com>
7155 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7156 current source line having changed.
7157 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7158 * infrun.c (normal_stop): Adjust call to
7159 set_current_sal_from_frame.
7160 * source.c (clear_lines_listed_range): New function.
7161 (set_current_source_symtab_and_line, identify_source_line): Clear
7162 the lines listed range.
7163 (line_info): Handle the first "info line" after the current source
7164 line having changed.
7165 * stack.c (print_stack_frame): Remove center handling.
7166 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7169 2014-05-21 Pedro Alves <palves@redhat.com>
7171 * inf-child.c (inf_child_mourn_inferior): New function.
7172 * inf-child.h (inf_child_mourn_inferior): New declaration.
7173 * darwin-nat.c (darwin_mourn_inferior): Use
7174 inf_child_mourn_inferior.
7175 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7176 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7177 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7178 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7179 * windows-nat.c (windows_mourn_inferior): Likewise.
7181 2014-05-21 Doug Evans <xdje42@gmail.com>
7183 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7185 2014-05-21 Doug Evans <xdje42@gmail.com>
7187 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7188 (gdbscm_out_of_range_error): Ditto.
7189 (gdbscm_memory_error): Ditto.
7190 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7191 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7192 (gdbscm_out_of_range_error): Update.
7193 (gdbscm_memory_error): Update.
7194 (gdbscm_scm_to_target_string_unsafe): Delete.
7196 2014-05-21 Pedro Alves <palves@redhat.com>
7198 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7200 (inf_child_open_target): New function.
7201 (inf_child_open): Use inf_child_open_target to push the target
7202 instead of erroring out.
7203 (inf_child_disconnect, inf_child_close)
7204 (inf_child_maybe_unpush_target): New functions.
7205 (inf_child_target): Install inf_child_disconnect and
7206 inf_child_close. Store a pointer to the returned object.
7207 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7209 * target.c (auto_connect_native_target): New global.
7210 (show_default_run_target): New function.
7211 (find_default_run_target): Return NULL if automatically connecting
7212 to the native target is disabled.
7213 (_initialize_target): Install set/show auto-connect-native-target.
7214 * NEWS: Mention "set auto-connect-native-target", and "target
7216 * linux-nat.c (super_close): New global.
7217 (linux_nat_close): Call super_close.
7218 (linux_nat_add_target): Store a pointer to the base class's
7220 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7221 inf_child_maybe_unpush.
7222 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7224 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7225 the inferior. Use inf_child_maybe_unpush_target.
7226 (inf_ttrace_attach): Don't push the target if it is already
7228 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7229 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7230 after mourning the inferior. Use inf_child_maybe_unpush_target.
7231 (darwin_attach_pid): Don't push the target if it is already
7233 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7234 mourning the inferior. Use inf_child_maybe_unpush_target.
7235 (gnu_detach): Use inf_child_maybe_unpush_target.
7236 * go32-nat.c (go32_create_inferior): Don't push the target if it
7238 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7239 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7240 (procfs_open): Rename to ...
7241 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7242 comments. Can target_preopen before changing node. Call
7243 inf_child_open_target to push the target explicitly.
7244 (procfs_attach): Don't push the target if it is already pushed.
7245 (procfs_detach): Use inf_child_maybe_unpush_target.
7246 (procfs_create_inferior): Don't push the target if it is already
7248 (nto_native_ops): New global.
7249 (procfs_open): Reimplement.
7250 (procfs_native_open): New function.
7251 (init_procfs_targets): Install procfs_native_open as to_open of
7252 "target native". Store a pointer to the "native" target in
7254 * procfs.c (procfs_attach): Don't push the target if it is already
7256 (procfs_detach): Use inf_child_maybe_unpush_target.
7257 (procfs_mourn_inferior): Only unpush the target after mourning the
7258 inferior. Use inf_child_maybe_unpush_target.
7259 (procfs_init_inferior): Don't push the target if it is already
7261 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7262 if it is already pushed.
7264 2014-05-21 Pedro Alves <palves@redhat.com>
7266 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7267 and "procfs" targets are now called "native" instead.
7269 2014-05-21 Pedro Alves <palves@redhat.com>
7271 * go32-nat.c (go32_open): Delete.
7272 (go32_target): Don't override the to_open method.
7274 2014-05-21 Pedro Alves <palves@redhat.com>
7276 * nto-procfs.c (procfs_can_run): New function.
7277 (nto_procfs_ops): New global.
7278 (init_procfs_targets): New, based on procfs_target. Install
7279 "target native" in addition to "target procfs".
7280 (_initialize_procfs): Call init_procfs_targets instead of adding
7283 2014-05-21 Pedro Alves <palves@redhat.com>
7285 * windows-nat.c (windows_target): Don't override to_shortname,
7286 to_longname or to_doc.
7288 2014-05-21 Pedro Alves <palves@redhat.com>
7290 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7293 2014-05-21 Pedro Alves <palves@redhat.com>
7295 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7296 to_shortname, to_longname or to_doc.
7298 2014-05-21 Pedro Alves <palves@redhat.com>
7300 * go32-nat.c (go32_target): Don't override to_shortname,
7301 to_longname or to_doc.
7303 2014-05-21 Pedro Alves <palves@redhat.com>
7305 * inf-child.c (inf_child_open): Remove mention of "child".
7306 (inf_child_target): Rename target to "native" instead of "child".
7308 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7310 * Makefile.in (SFILES): Delete "regset.c".
7311 (COMMON_OBS): Delete "regset.o".
7313 * regset.h (regset_alloc): Delete prototype.
7315 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7317 * sparc-linux-tdep.c (sparc32_linux_gregset)
7318 (sparc32_linux_fpregset): New static regset structures.
7319 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7320 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7322 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7323 (sparc64_linux_fpregset): New static regset structures.
7324 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7325 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7326 New static regset structures.
7327 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7328 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7329 New static regset structures.
7330 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7331 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7332 New static regset structures.
7333 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7334 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7335 New static regset structures.
7336 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7338 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7340 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7341 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7342 register maps ("regmaps") from "*regset" to "*regmap". Do this
7343 for all regmap types and variables.
7344 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7345 (sparc32_linux_supply_core_gregset)
7346 (sparc32_linux_collect_core_gregset)
7347 (sparc32_linux_supply_core_fpregset)
7348 (sparc32_linux_collect_core_fpregset): Likewise.
7349 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7350 (sparc_gregmap, sparc_fpregmap): ... these.
7351 (sparc_supply_gregset, sparc_collect_gregset)
7352 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7353 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7354 (_initialize_sparc_nat): Rename regmaps.
7355 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7356 (sparc_gregmap, sparc_fpregmap): ... these.
7357 (sparc_supply_gregset, sparc_collect_gregset)
7358 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7359 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7361 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7362 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7364 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7366 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7367 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7368 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7370 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7371 (sparc32_bsd_fpregset): Rename to...
7372 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7373 (sparc32_bsd_fpregmap): ... these.
7374 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7375 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7376 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7377 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7378 (struct sparc_gregmap, struct sparc_fpregmap)
7379 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7380 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7381 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7382 (sparc32_supply_regset, sparc32_collect_gregset)
7383 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7385 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7386 (sparc64_linux_ptrace_gregmap): ... this.
7387 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7388 (_initialize_sparc64_linux_nat): Rename regmaps.
7389 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7390 (sparc64_linux_core_gregmap): ... this.
7391 (sparc64_linux_supply_core_gregset)
7392 (sparc64_linux_collect_core_gregset)
7393 (sparc64_linux_supply_core_fpregset)
7394 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7395 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7396 (sparc64_sol2_fpregset): Rename to...
7397 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7398 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7399 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7401 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7402 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7403 (sparc64_bsd_fpregset): Rename to...
7404 (struct sparc_gregmap, sparc64_sol2_gregmap)
7405 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7406 (sparc64_bsd_fpregmap): ... these.
7407 (sparc64_supply_gregset, sparc64_collect_gregset)
7408 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7410 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7411 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7412 (sparc64fbsd_gregmap): ... this.
7413 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7414 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7416 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7417 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7418 (sparc64nbsd_collect_fpregset): Likewise.
7419 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7420 (sparc64nbsd_gregmap): ... this.
7421 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7423 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7424 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7425 (sparc64obsd_gregmap): ... this.
7426 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7428 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7429 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7430 (sparc32nbsd_gregmap): ... this.
7431 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7434 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7436 * score-tdep.c (score7_linux_gregset): New static regset
7438 (score7_linux_regset_from_core_section): Remove dynamic regset
7440 (score_gdbarch_init): Drop allocation of tdep structure.
7441 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7443 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7445 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7447 (am33_regset_from_core_section): Remove dynamic regset
7450 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7452 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7453 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7455 (mips_linux_regset_from_core_section): Remove dynamic regset
7457 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7458 'gregset64', 'fpregset', and 'fpregset64'.
7459 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7460 deleted tdep fields.
7462 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7464 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7466 (amd64_regset_from_core_section): Remove dynamic regset
7468 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7470 (amd64obsd_regset_from_core_section): Remove dynamic regset
7472 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7474 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7475 x86-common regset supply function.
7476 * i386-tdep.c (i386_collect_gregset): Make static.
7477 (i386_gregset): New global regset structure.
7478 (i386_fpregset, i386_xstateregset): New static regset structures.
7479 (i386_regset_from_core_section): Remove dynamic regset
7481 (i386_gdbarch_init): Remove initialization of tdep fields
7482 'gregset', 'fpregset', and 'xstateregset'.
7483 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7484 'fpregset', and 'xstateregset'.
7485 (i386_collect_gregset): Remove prototype.
7486 (i386_gregset): New declaration.
7487 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7489 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7492 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7494 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7495 (arm_linux_vfpregset): New static regset structures.
7496 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7498 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7499 and 'vfpregset' fields.
7501 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7503 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7504 (aarch64_linux_fpregset): New static regset structures.
7505 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7506 of regset structures.
7507 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7510 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7512 * regset.h (struct regset): Remove gdbarch field.
7513 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7514 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7515 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7517 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7518 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7519 (ppc32_linux_vsxregset): Likewise.
7520 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7521 via the regcache instead of the regset.
7522 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7523 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7524 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7525 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7528 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7530 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7531 Constify structures.
7532 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7533 (alphanbsd_aout_gregset): Likewise.
7534 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7535 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7537 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7538 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7540 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7541 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7542 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7543 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7544 * m88k-tdep.c (m88k_gregset): Likewise.
7545 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7546 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7547 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7548 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7549 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7550 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7551 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7552 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7553 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7555 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7556 * sh-tdep.h (sh_corefile_gregset): Likewise.
7557 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7558 * vax-tdep.c (vax_gregset): Likewise.
7560 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7562 Fix TLS access for -static -pthread.
7563 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7564 (try_thread_db_load_1): Initialize it.
7565 (thread_db_get_thread_local_address): Call it if LM is zero.
7566 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7567 * target.h (struct target_ops) (to_get_thread_local_address): Add
7568 load_module_addr comment.
7570 2014-05-21 Pedro Alves <palves@redhat.com>
7572 * dcache.c (dcache_read_memory_partial): If reading the cache line
7573 fails, fallback to reading just the memory the caller wanted.
7575 2014-05-20 Doug Evans <dje@google.com>
7577 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7578 instead of get_current_arch.
7580 2014-05-20 Pedro Alves <palves@redhat.com>
7582 * NEWS: Mention that compare-sections now works with all targets.
7584 * remote.c (PACKET_qCRC): New enum value.
7585 (remote_verify_memory): Don't send qCRC if the target has no
7586 execution. Use packet_support/packet_ok. If the target doesn't
7587 support the qCRC packet, fallback to a deep memory copy.
7588 (compare_sections_command): Say "target image" instead of "remote
7590 (_initialize_remote): Add PACKET_qCRC to the list of config
7591 packets that have no associated command. Extend comment.
7592 * target.c (simple_verify_memory, default_verify_memory): New
7594 * target.h (struct target_ops) <to_verify_memory>: Default to
7595 default_verify_memory.
7596 (simple_verify_memory): New declaration.
7597 * target-delegates.c: Regenerate.
7599 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7601 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7603 2014-05-20 Hui Zhu <hui@codesourcery.com>
7604 Yao Qi <yao@codesourcery.com>
7607 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7608 and change address of sp and pc.
7610 2014-05-19 Tom Tromey <tromey@redhat.com>
7612 * gdbtypes.c (rank_function): Use XNEWVEC.
7613 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7615 2014-05-19 Doug Evans <dje@google.com>
7617 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7618 build_type_unit_groups and moved closer to only caller. Remove
7619 arguments. All references updated. Remove outdated .gdb_index
7621 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7622 build_type_psymtabs_1.
7624 2014-05-19 Doug Evans <dje@google.com>
7626 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7627 n_type_unit_groups, all_type_unit_groups. All uses removed.
7628 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7629 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7630 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7631 (add_type_unit_group_to_table): Delete.
7633 2014-05-19 Doug Evans <dje@google.com>
7635 * eval.c (evaluate_subexp_standard): Add some comments.
7637 2014-05-17 Doug Evans <xdje42@gmail.com>
7639 * progspace.c (remove_program_space): Delete, unused.
7640 * progspace.h (remove_program_space): Ditto.
7642 2014-05-17 Doug Evans <xdje42@gmail.com>
7644 * inferior.c (prune_inferiors): Fix comment.
7645 (remove_inferior_command): Call prune_program_spaces.
7647 2014-05-16 Doug Evans <dje@google.com>
7649 New command line option -D.
7651 * main.c (set_gdb_data_directory): New function.
7652 (captured_main): Recognize -D. Flag error for --data-directory "".
7653 Call set_gdb_data_directory.
7654 (print_gdb_help): Print --data-directory, -D.
7655 * main.h (set_gdb_data_directory): Declare.
7656 * top.c (staged_gdb_datadir): New static global.
7657 (set_gdb_datadir): Call set_gdb_data_directory
7658 (show_gdb_datadir): New function.
7659 (init_main): Update init of data-directory parameter.
7661 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7663 Import the "dirfd" gnulib module.
7664 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7665 * gnulib/aclocal.m4: Update.
7666 * gnulib/config.in: Update.
7667 * gnulib/configure: Update.
7668 * gnulib/import/Makefile.am: Update.
7669 * gnulib/import/Makefile.in: Update.
7670 * gnulib/import/dirfd.c: New.
7671 * gnulib/import/m4/dirfd.m4: New.
7672 * gnulib/import/m4/gnulib-cache.m4: Update.
7673 * gnulib/import/m4/gnulib-comp.m4: Update.
7675 2014-05-16 Pierre Muller <muller@sourceware.org>
7676 Yao Qi <yao@codesourcery.com>
7678 * valprint.c (print_wchar): Move the code on checking whether
7679 W is a printable wide char to the default branch of switch
7680 statement below. Call wchar_printable instead of gdb_iswprint.
7682 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7684 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7685 ldr.w and ldrd instructions.
7687 2014-05-15 Doug Evans <dje@google.com>
7689 * dwarf2read.c (read_structure_type): Delete outdated comments.
7691 2014-05-14 Tom Tromey <tromey@redhat.com>
7693 * macrocmd.c (print_macro_definition): Reindent.
7695 2014-05-13 Doug Evans <xdje42@gmail.com>
7697 * python/py-cmd.c (cmdpy_completer): Add comment.
7698 (completers): Make const.
7700 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7702 * infrun.c (resume): Remove should_resume (unused). Move up
7703 declaration of resume_ptid.
7705 2014-05-13 Tom Tromey <tromey@redhat.com>
7707 * language.h (unop_type_check): Remove.
7708 (binop_type_check): Don't declare.
7710 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7712 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7713 call to regcache_raw_collect.
7715 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7717 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7718 mi_console->quote as the quoting character.
7720 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7722 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7724 2014-04-29 Tom Tromey <tromey@redhat.com>
7726 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7727 "show debug varobj".
7729 2014-05-07 Kyle McMartin <kyle@redhat.com>
7731 Pushed by Joel Brobecker <brobecker@adacore.com>.
7732 * aarch64-tdep.c (aarch64_software_single_step): New function.
7733 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7734 with aarch64_software_single_step.
7736 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7740 2014-05-05 Keith Seitz <keiths@redhat.com>
7742 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7743 variable or history value is successfully parsed.
7745 2014-05-05 Yao Qi <yao@codesourcery.com>
7746 Pedro Alves <palves@redhat.com>
7748 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7749 address of blocks that intersects the requested range. Trim
7750 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7752 * ctf.c (ctf_xfer_partial): Likewise.
7754 2014-05-05 Yao Qi <yao@codesourcery.com>
7756 * printcmd.c (display_command): Remove the check to
7757 target_has_execution.
7759 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7761 * ppcobsd-nat.c: Include "obsd-nat.h".
7762 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7764 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7766 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7768 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7769 and 16-bit signed and unsigned arguments. Update comment.
7770 (stap_parse_probe_arguments): Extend code to handle such
7771 arguments. Use warning instead of complaint to notify about
7772 unrecognized bitness.
7774 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7776 PR breakpoints/16889
7777 * stap-probe.c (stap_parse_probe_arguments): Simplify
7778 check for non-prefixed probes (i.e., probes whose
7779 arguments do not start with "N@"). Always set the
7780 argument type to a sane value.
7782 2014-05-01 David Taylor <dtaylor@emc.com>
7784 * remote.c (compare_sections_command): Add -r option to compare
7785 all loadable read-only sections.
7787 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7789 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7790 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7792 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7793 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7794 Remove unused CORE_ADDR argument. Update all callers.
7796 2014-04-29 Pedro Alves <palves@redhat.com>
7798 * remote.c (struct packet_config) <detect>: Extend comment.
7799 (add_packet_config_cmd): Don't set the config's detect or support
7801 (init_all_packet_configs): Also initialize the config's 'detect'
7803 (reset_all_packet_configs_support): New function.
7804 (remote_open_1): Call reset_all_packet_configs_support instead of
7805 init_all_packet_configs.
7806 (_initialize_remote): Initialize all packet configs. Assert that
7807 all packets have an associated command, except a few known
7810 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7812 * dwarf2read.c (read_subrange_type): Handle dynamic
7813 DW_AT_lower_bound attributes.
7815 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7817 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7818 dynamic bounds before computing its upper bound.
7819 (ada_discrete_type_low_bound): Same as above with the lower bound.
7821 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7823 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7824 range types. Adjust the array handling implementation to
7825 take advantage of this change.
7826 (resolve_dynamic_range): New function, mostly extracted from
7827 resolve_dynamic_bounds.
7828 (resolve_dynamic_array): New function, mostly extracted from
7829 resolve_dynamic_bounds.
7830 (resolve_dynamic_bounds): Delete.
7831 (resolve_dynamic_type): Reimplement. Add handling of
7832 TYPE_CODE_RANGE types.
7834 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7836 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7837 handling of parallel ___XA types.
7839 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7841 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7842 unnecessary second call to static_unwrap_type.
7844 2014-04-27 Hui Zhu <hui@codesourcery.com>
7846 * stack.c (print_frame_info): Call do_gdb_disassembly with
7847 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7849 2014-04-26 Doug Evans <xdje42@gmail.com>
7851 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7853 2014-04-25 Pedro Alves <palves@redhat.com>
7856 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7857 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7858 and newline from built string.
7859 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7860 (linux_ptrace_attach_fail_reason): ... this.
7861 * linux-nat.c (linux_nat_attach): Adjust to use
7862 linux_ptrace_attach_fail_reason.
7864 2014-04-25 Pedro Alves <palves@redhat.com>
7866 * remote.c (struct remote_state): Remove multi_process_aware,
7867 non_stop_aware, cond_tracepoints, cond_breakpoints,
7868 breakpoint_commands, fast_tracepoints, static_tracepoints,
7869 install_in_trace, disconnected_tracing,
7870 enable_disable_tracepoints, string_tracing, and
7871 augmented_libraries_svr4_read fields.
7872 (remote_multi_process_p): Move further below in the file.
7873 (struct packet_config): Add comments.
7874 (update_packet_config): Delete function.
7875 (show_packet_config_cmd): Use packet_config_support.
7876 (add_packet_config_cmd): Use NULL as set callback.
7877 (packet_ok): "set remote foo-packet"-style commands no longer
7878 change config->supported -- adjust.
7879 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7880 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7881 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7882 (PACKET_QNonStop, PACKET_multiprocess_feature)
7883 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7884 (PACKET_DisconnectedTracing_feature)
7885 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7886 (set_remote_protocol_packet_cmd): Delete function.
7887 (packet_config_support, packet_support): New functions.
7888 (set_remote_protocol_Z_packet_cmd): Don't call
7889 update_packet_config.
7890 (remote_query_attached, remote_pass_signals)
7891 (remote_program_signals, remote_threads_info)
7892 (remote_threads_extra_info, remote_start_remote): Use
7894 (remote_start_remote): Use packet_config_support and
7896 (init_all_packet_configs): Set all packets to unknown support,
7897 instead of calling update_packet_config.
7898 (remote_check_symbols): Use packet_support.
7899 (remote_supported_packet): Unconditionally set the packet config's
7901 (remote_multi_process_feature, remote_non_stop_feature)
7902 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7903 (remote_breakpoint_commands_feature)
7904 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7905 (remote_install_in_trace_feature)
7906 (remote_disconnected_tracing_feature)
7907 (remote_enable_disable_tracepoint_feature)
7908 (remote_string_tracing_feature)
7909 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7910 (remote_protocol_features): Adjust to use remote_supported_packet
7911 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7912 "ConditionalTracepoints", "ConditionalBreakpoints",
7913 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7914 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7915 "EnableDisableTracepoints", and "tracenz".
7916 (remote_query_supported): Use packet_support.
7917 (remote_open_1): Adjust.
7918 (extended_remote_attach_1): Use packet_support. Switch on the
7919 result of packet_ok instead of checking whether the packet ended
7921 (remote_vcont_resume): Use packet_support.
7922 (remote_resume, remote_stop_ns, fetch_register_using_p)
7923 (remote_prepare_to_store, store_register_using_P)
7924 (check_binary_download, remote_write_bytes): Use packet_support.
7925 (remote_vkill): Use packet_support. Switch on the result of
7926 packet_ok instead of checking whether the packet ended up
7928 (extended_remote_supports_disable_randomization): Use
7930 (extended_remote_run): Switch on the result of packet_ok instead
7931 of checking whether the packet ended up disabled.
7932 (remote_insert_breakpoint, remote_remove_breakpoint)
7933 (remote_insert_watchpoint, remote_remove_watchpoint)
7934 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7936 (remote_search_memory): Use packet_config_support.
7937 (remote_get_thread_local_address, remote_get_tib_address)
7938 (remote_hostio_send_command, remote_can_execute_reverse): Use
7940 (remote_supports_cond_tracepoints)
7941 (remote_supports_cond_breakpoints)
7942 (remote_supports_fast_tracepoints)
7943 (remote_supports_static_tracepoints)
7944 (remote_supports_install_in_trace)
7945 (remote_supports_enable_disable_tracepoint)
7946 (remote_supports_string_tracing)
7947 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7948 the packet config says the feature is enabled or disabled.
7949 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7950 (remote_get_trace_status): Use packet_support.
7951 (remote_set_disconnected_tracing): Adjust to check whether the
7952 feature is enabled with packet_support.
7953 (remote_set_trace_buffer_size, remote_use_agent)
7954 (remote_can_use_agent, remote_supports_btrace): Use
7956 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7957 Use packet_config_support.
7958 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7959 the packet config says the feature is enabled or disabled.
7960 (set_range_stepping): Use packet_support.
7962 2014-04-25 Tom Tromey <tromey@redhat.com>
7964 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7967 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7969 * NEWS: Mention support for C99 variable length arrays.
7971 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7973 * ada-lang.c (standard_exc): Expand introductory comment.
7975 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7976 Walfred Tedeschi <walfred.tedeschi@intel.com>
7978 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7980 (amd64_linux_read_description): Add code to handle AVX512 xstate
7981 mask and return respective tdesc.
7982 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7983 and features/i386/x32-avx512-linux.c.
7984 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7985 (amd64_linux_core_read_description): Add code to handle AVX512
7986 xstate mask and return respective tdesc.
7987 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7988 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7990 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7991 (tdesc_amd64_avx512_linux): New prototype.
7992 (tdesc_x32_avx512_linux): Likewise.
7993 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7994 features/i386/x32-avx512.c.
7995 (amd64_ymm_avx512_names): New register names for pseudo
7997 (amd64_ymmh_avx512_names): New register names for raw registers
7999 (amd64_k_names): New register names for K registers.
8000 (amd64_zmmh_names): New register names for ZMM raw registers.
8001 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8002 (amd64_xmm_avx512_names): New register names for XMM16-31
8004 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8006 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8007 if feature is present.
8008 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8009 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8010 (AMD64_NUM_REGS): Adjust to new number of registers.
8011 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8012 registers supplied via XSTATE by AVX512 registers.
8013 (i386_linux_read_description): Add case for AVX512.
8014 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8015 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8016 (i386_linux_core_read_description): Add case for AVX512.
8017 (i386_linux_init_abi): Install supported register note section
8019 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8021 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8022 registers to be number of zmm7h + 1.
8023 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8024 * i386-tdep.c: Include features/i386/i386-avx512.c.
8025 (i386_zmm_names): Add ZMM pseudo register names array.
8026 (i386_zmmh_names): Add ZMM raw register names array.
8027 (i386_k_names): Add K raw register names array.
8028 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8029 registers. AVX512 has 16 more ZMM registers than there are YMM
8031 (i386_zmmh_regnum_p): Add function to look up register number of
8033 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8034 (i386_k_regnum_p): Likewise for K raw registers.
8035 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8036 registers added by AVX512.
8037 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8038 registers added by AVX512.
8039 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8041 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8042 (i386_pseudo_register_name): Add ZMM pseudo registers.
8043 (i386_zmm_type): Construct and return vector registers type for ZMM
8045 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8046 ZMM0-31 pseudo registers and K registers.
8047 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8048 and YMM16-31 registers from register cache.
8049 (i386_pseudo_register_write): Add code to write K, ZMM and
8051 (i386_register_reggroup_p): Add code to include/exclude AVX512
8052 registers in/from respective register groups.
8053 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8054 registers if feature is present in xcr0.
8055 (i386_gdbarch_init): Add code to initialize AVX512 feature
8056 variables in tdep structure, wire in pseudo registers and call
8057 initialize_tdesc_i386_avx512.
8058 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8060 (i386_regnum): Add AVX512 registers.
8061 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8062 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8063 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8064 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8066 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8067 (i386_ymm_avx512_regnum_p): Likewise.
8068 (i386_k_regnum_p): Likewise.
8069 (i386_zmm_regnum_p): Likewise.
8070 (i386_zmmh_regnum_p): Likewise.
8071 * i387-tdep.c : Update year in copyright notice.
8072 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8074 (XSAVE_YMM_AVX512_ADDR): New macro.
8075 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8077 (XSAVE_XMM_AVX512_ADDR): New macro.
8078 (xsave_avx512_k_offset): New table for K register offsets in
8080 (XSAVE_AVX512_K_ADDR): New macro.
8081 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8083 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8084 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8086 (i387_collect_xsave): Add code to collect AVX512 registers from
8088 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8089 of XMM16-31 registers.
8090 (I387_NUM_K_REGS): New define for number of K registers.
8091 (I387_K0_REGNUM): New define for K0 register number.
8092 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8093 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8094 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8096 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8097 (I387_XMM16_REGNUM): New define for XMM16 register number.
8098 (I387_YMM0_REGNUM): New define for YMM0 register number.
8099 (I387_KEND_REGNUM): New define for last K register number.
8100 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8101 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8103 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8105 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8107 * features/Makefile: Add AVX512 related files.
8108 * features/i386/32bit-avx512.xml: New file.
8109 * features/i386/64bit-avx512.xml: Likewise.
8110 * features/i386/amd64-avx512-linux.c: Likewise.
8111 * features/i386/amd64-avx512-linux.xml: Likewise.
8112 * features/i386/amd64-avx512.c: Likewise.
8113 * features/i386/amd64-avx512.xml: Likewise.
8114 * features/i386/i386-avx512-linux.c: Likewise.
8115 * features/i386/i386-avx512-linux.xml: Likewise.
8116 * features/i386/i386-avx512.c: Likewise.
8117 * features/i386/i386-avx512.xml: Likewise.
8118 * features/i386/x32-avx512-linux.c: Likewise.
8119 * features/i386/x32-avx512-linux.xml: Likewise.
8120 * features/i386/x32-avx512.c: Likewise.
8121 * features/i386/x32-avx512.xml: Likewise.
8122 * regformats/i386/amd64-avx512-linux.dat: New file.
8123 * regformats/i386/amd64-avx512.dat: Likewise.
8124 * regformats/i386/i386-avx512-linux.dat: Likewise.
8125 * regformats/i386/i386-avx512.dat: Likewise.
8126 * regformats/i386/x32-avx512-linux.dat: Likewise.
8127 * regformats/i386/x32-avx512.dat: Likewise.
8128 * NEWS: Add note about new support for AVX512.
8131 2014-04-23 Pedro Alves <palves@redhat.com>
8133 * breakpoint.c (insert_bp_location): Tolerate errors if the
8134 breakpoint is set in a user-loaded objfile.
8135 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8136 location is marked shlib_disabled. If the breakpoint is set in a
8137 user-loaded objfile is a GDB-side memory breakpoint, validate it
8138 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8139 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8141 * mem-break.c (memory_validate_breakpoint): New function.
8142 * objfiles.c (userloaded_objfile_contains_address_p): New
8144 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8145 * target.h (memory_validate_breakpoint): New declaration.
8147 2014-04-23 Pedro Alves <palves@redhat.com>
8149 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8150 the breakpoint is set in a shared library, only suppress
8151 errors for software breakpoints, not hardware breakpoints.
8153 2014-04-22 Pedro Alves <palves@redhat.com>
8155 * infrun.c (schedlock_applies): New function, factored out from
8156 find_thread_needs_step_over.
8157 (find_thread_needs_step_over): Use it.
8158 (switch_back_to_stepped_thread): Always clear trap_expected if the
8159 step over is finished. Return early if scheduler locking applies.
8160 Look for the stepping thread and a potential step-over thread with
8162 (currently_stepping_or_nexting_callback): Delete.
8164 2014-04-22 Nick Clifton <nickc@redhat.com>
8166 * NEWS: Mention that ARM sim now supports tracing.
8168 2014-04-22 Yao Qi <yao@codesourcery.com>
8170 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8172 * tracefile.c (tracefile_fetch_registers): ... it. New
8174 * tracefile.h (tracefile_fetch_registers): Declare.
8175 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8176 tracefile_fetch_registers.
8178 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8181 * windows-nat.c (thread_rec): Don't display a warning when
8182 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8183 fails for any reason, set th->suspended to -1, so that we don't
8184 try to resume such a thread. Also, don't return NULL in these
8185 cases, to avoid completely ruin the session due to "PC register is
8186 not available" error.
8187 (do_windows_fetch_inferior_registers): Check errors in
8188 GetThreadContext call.
8189 (windows_continue): Accept an additional argument KILLED; if not
8190 zero, ignore errors in the SetThreadContext call, since the
8191 inferior was killed and is shutting down.
8192 (windows_resume, get_windows_debug_event)
8193 (windows_create_inferior, windows_mourn_inferior)
8194 (windows_kill_inferior): All callers of windows_continue changed
8195 to adjust to its new calling sequence.
8197 2014-04-19 Yao Qi <yao@codesourcery.com>
8199 * ctf.c (ctf_open): Call post_create_inferior.
8201 2014-04-19 Yao Qi <yao@codesourcery.com>
8203 * ctf.c (handle_id): New static variable.
8204 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8205 value. Get the declaration of event "register" and get length
8206 of field "contents".
8208 2014-04-19 Yao Qi <yao@codesourcery.com>
8210 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8212 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8214 * valops.c (oload_method_static): Remove unnecessary argument
8215 METHOD. Update all callers.
8217 2014-04-18 Pedro alves <palves@redhat.com>
8218 Tom Tromey <tromey@redhat.com>
8221 * frame.c (get_prev_frame_1): Rename to ...
8222 (get_prev_frame_always): ... this, and make extern. Adjust.
8223 (skip_artificial_frames): Use get_prev_frame_always.
8224 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8225 (get_frame_unwind_stop_reason): Adjust to rename.
8226 * frame.h (get_prev_frame_always): Declare.
8227 * inline-frame.c: Include frame.h.
8228 (inline_frame_this_id): Use get_prev_frame_always.
8230 2014-04-18 Tristan Gingold <gingold@adacore.com>
8232 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8233 code by using bfd_mach_o_get_base_address.
8235 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8237 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8238 (spu_ax_pseudo_register_collect): New function.
8239 (spu_ax_pseudo_register_push_stack): Likewise.
8240 (spu_dwarf_reg_to_regnum): Likewise.
8241 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8243 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8245 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8246 Replace FRAME argument with FRAME_ID.
8247 * gdbarch.c, gdbarch.h: Regenerate.
8248 * findvar.c (default_value_from_register): Add GDBARCH argument;
8249 replace FRAME by FRAME_ID. No longer call get_frame_id.
8250 (value_from_register): Update call to gdbarch_value_from_register.
8251 * value.h (default_value_from_register): Update prototype.
8252 * s390-linux-tdep.c (s390_value_from_register): Update interface
8253 and call to default_value_from_register.
8254 * spu-tdep.c (spu_value_from_register): Likewise.
8256 * findvar.c (address_from_register): Remove TYPE argument.
8257 Do not call value_from_register; use gdbarch_value_from_register
8258 with null_frame_id instead.
8259 * value.h (address_from_register): Update prototype.
8260 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8261 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8262 address_from_register interface change.
8264 2014-04-17 Yao Qi <yao@codesourcery.com>
8266 * gdbtypes.h: Update comments to link to types and macros'
8269 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8271 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8273 2014-04-16 Keith Seitz <keiths@redhat.com>
8276 * dwarf2read.c (skip_one_die): Check that all relative-offset
8277 sibling DIEs fall within range of the current reader's buffer.
8278 (read_partial_die): Likewise.
8280 2014-04-16 Keith Seitz <keiths@redhat.com>
8283 * cp-namespace.c (lookup_symbol_file): If the type name of
8284 `this' is NULL, return immediately.
8286 2014-04-14 Keith Seitz <keiths@redhat.com>
8289 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8290 from symbol_matches_domain in symtab.c. All local callers
8291 of symbol_matches_domain updated.
8292 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8293 search STRUCT_DOMAIN.
8294 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8295 independently. standard_lookup will do that automatically.
8296 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8297 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8298 (cp_lookup_symbol_in_namespace): Likewise.
8299 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8300 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8301 may return a STRUCT_DOMAIN match.
8302 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8303 * cp-support.c: Include language.h.
8304 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8306 * psymtab.c (match_partial_symbol): Compare the requested
8307 domain with the symbol's domain directly.
8308 (lookup_partial_symbol): Likewise.
8309 * symtab.c (lookup_symbol_in_language): Explain when/why
8310 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8311 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8312 appropriate languages.
8313 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8314 and moved to ada-lang.c
8315 (lookup_block_symbol): Explain that this function only returns
8316 symbol matching the requested DOMAIN.
8317 Compare the requested domain with the symbol's domain directly.
8318 (iterate_over_symbols): Compare the requested domain with the
8319 symbol's domain directly.
8320 * symtab.h (symbol_matches_domain): Remove.
8322 2014-04-14 Tom Tromey <tromey@redhat.com>
8325 * c-exp.y (type_aggregate_p): New function.
8326 (qualified_name, classify_inner_name): Use it.
8327 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8328 and TYPE_TARGET_TYPE of an enum type.
8329 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8331 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8332 handle TYPE_DECLARED_CLASS.
8333 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8335 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8336 * valops.c (enum_constant_from_type): New function.
8337 (value_aggregate_elt): Use it.
8338 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8341 2014-04-14 Tom Tromey <tromey@redhat.com>
8343 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8344 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8346 * value.h (value_aggregate_elt): Update.
8348 2014-04-14 Tom Tromey <tromey@redhat.com>
8350 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8352 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8354 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8355 (evaluate_subexp_standard): Pass noside argument.
8356 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8357 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8358 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8359 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8360 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8362 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8364 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8365 points to a constant blob.
8367 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8369 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8370 property and store it as the high bound and flag the range accordingly.
8371 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8372 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8373 * gdbtypes.h (enum range_flags): New enum.
8374 (struct range_bounds): Add flags member.
8376 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8378 * c-typeprint.c (c_type_print_varspec_suffix): Added
8379 check for not yet resolved high bound. If unresolved, print
8380 "variable length" string to the console instead of random
8383 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8385 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8387 (ada_template_to_fixed_record_type_1): Likewise.
8388 (ada_to_fixed_type_1): Likewise.
8389 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8390 (cp_print_value): Likewise.
8391 * d-valprint.c (dynamic_array_type): Likewise.
8392 * findvar.c (address_of_variable): Likewise.
8393 * jv-valprint.c (java_value_print): Likewise.
8394 * valops.c (value_ind): Likewise.
8395 * value.c (coerce_ref): Likewise.
8397 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8399 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8400 value and retrieve the dynamic type size.
8402 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8404 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8405 passed to sizeof is dynamic evaluate the argument to compute the length.
8407 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8408 Joel Brobecker <brobecker@adacore.com>
8410 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8411 (dwarf2_evaluate_property): New function.
8412 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8413 * dwarf2read.c (attr_to_dynamic_prop): New function.
8414 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8416 * gdbtypes.c: Include dwarf2loc.h.
8417 (is_dynamic_type): New function.
8418 (resolve_dynamic_type): New function.
8419 (resolve_dynamic_bounds): New function.
8420 (get_type_length): New function.
8421 (check_typedef): Use get_type_length to compute type length.
8422 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8423 (TYPE_LOW_BOUND_KIND): New macro.
8424 (is_dynamic_type): New function prototype.
8425 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8426 to resolve dynamic properties of the type. Update comment.
8427 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8429 2014-04-14 Richard Henderson <rth@redhat.com>
8431 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8433 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8434 Doug Evans <xdje42@gmail.com>
8436 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8437 dereference TYPE_CODE_REF values.
8439 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8441 Revert the following changes due to regressions:
8443 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8444 (dwarf2_evaluate_property): New function.
8445 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8446 * dwarf2read.c (attr_to_dynamic_prop): New function.
8447 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8449 * gdbtypes.c: Include dwarf2loc.h.
8450 (is_dynamic_type): New function.
8451 (resolve_dynamic_type): New function.
8452 (resolve_dynamic_bounds): New function.
8453 (get_type_length): New function.
8454 (check_typedef): Use get_type_length to compute type length.
8455 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8456 (TYPE_LOW_BOUND_KIND): New macro.
8457 (is_dynamic_type): New function prototype.
8458 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8459 to resolve dynamic properties of the type. Update comment.
8460 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8462 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8463 passed to sizeof is dynamic evaluate the argument to compute the length.
8465 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8466 value and retrieve the dynamic type size.
8468 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8469 (ada_template_to_fixed_record_type_1): Likewise.
8470 (ada_to_fixed_type_1): Likewise.
8471 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8472 (cp_print_value): Likewise.
8473 * d-valprint.c (dynamic_array_type): Likewise.
8474 * eval.c (evaluate_subexp_with_coercion): Likewise.
8475 * findvar.c (address_of_variable): Likewise.
8476 * jv-valprint.c (java_value_print): Likewise.
8477 * valops.c (value_ind): Likewise.
8478 * value.c (coerce_ref): Likewise.
8480 * c-typeprint.c (c_type_print_varspec_suffix): Added
8481 check for not yet resolved high bound. If unresolved, print
8482 "variable length" string to the console instead of random
8485 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8486 property and store it as the high bound and flag the range accordingly.
8487 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8488 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8489 * gdbtypes.h (enum range_flags): New enum.
8490 (struct range_bounds): Add flags member.
8492 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8493 points to a constant blob.
8495 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8496 (evaluate_subexp_standard): Pass noside argument.
8497 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8498 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8499 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8500 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8501 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8503 2014-04-11 Keith Seitz <keiths@redhat.com>
8506 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8507 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8510 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8512 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8513 (evaluate_subexp_standard): Pass noside argument.
8514 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8515 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8516 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8517 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8518 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8520 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8522 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8523 points to a constant blob.
8525 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8527 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8528 property and store it as the high bound and flag the range accordingly.
8529 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8530 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8531 * gdbtypes.h (enum range_flags): New enum.
8532 (struct range_bounds): Add flags member.
8534 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8536 * c-typeprint.c (c_type_print_varspec_suffix): Added
8537 check for not yet resolved high bound. If unresolved, print
8538 "variable length" string to the console instead of random
8541 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8543 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8544 (ada_template_to_fixed_record_type_1): Likewise.
8545 (ada_to_fixed_type_1): Likewise.
8546 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8547 (cp_print_value): Likewise.
8548 * d-valprint.c (dynamic_array_type): Likewise.
8549 * eval.c (evaluate_subexp_with_coercion): Likewise.
8550 * findvar.c (address_of_variable): Likewise.
8551 * jv-valprint.c (java_value_print): Likewise.
8552 * valops.c (value_ind): Likewise.
8553 * value.c (coerce_ref): Likewise.
8555 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8557 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8558 value and retrieve the dynamic type size.
8560 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8562 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8563 passed to sizeof is dynamic evaluate the argument to compute the length.
8565 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8567 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8568 (dwarf2_evaluate_property): New function.
8569 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8570 * dwarf2read.c (attr_to_dynamic_prop): New function.
8571 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8573 * gdbtypes.c: Include dwarf2loc.h.
8574 (is_dynamic_type): New function.
8575 (resolve_dynamic_type): New function.
8576 (resolve_dynamic_bounds): New function.
8577 (get_type_length): New function.
8578 (check_typedef): Use get_type_length to compute type length.
8579 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8580 (TYPE_LOW_BOUND_KIND): New macro.
8581 (is_dynamic_type): New function prototype.
8582 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8583 to resolve dynamic properties of the type. Update comment.
8584 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8586 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8588 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8589 declaring high/low bounds and change uses accordingly. Call
8590 create_range_type instead of create_static_range_type.
8591 * gdbtypes.c (create_range_type): New function.
8592 (create_range_type): Convert bounds into struct bound_prop and pass
8593 them to create_range_type.
8594 * gdbtypes.h (struct bound_prop): New struct.
8595 (create_range_type): New function prototype.
8596 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8597 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8598 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8600 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8602 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8604 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8605 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8606 * ada-lang.c: All uses of create_range_type updated.
8607 * coffread.c: All uses of create_range_type updated.
8608 * dwarf2read.c: All uses of create_range_type updated.
8609 * f-exp.y: All uses of create_range_type updated.
8610 * m2-valprint.c: All uses of create_range_type updated.
8611 * mdebugread.c: All uses of create_range_type updated.
8612 * stabsread.c: All uses of create_range_type updated.
8613 * valops.c: All uses of create_range_type updated.
8614 * valprint.c: All uses of create_range_type updated.
8616 2014-04-10 Pedro Alves <palves@redhat.com>
8618 * breakpoint.c (single_step_breakpoints)
8619 (single_step_gdbarch): Move up in the file.
8620 (one_breakpoint_xfer_memory): New function, factored out from ...
8621 (breakpoint_xfer_memory): ... here. Also process single-step
8624 2014-04-09 Tristan Gingold <gingold@adacore.com>
8626 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8628 (darwin_decode_exception_message): Free port only after use.
8630 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8632 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8633 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8634 when setting the size of call_length.
8636 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8638 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8639 dereference TYPE_CODE_REF values.
8641 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8643 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8644 end of warning message.
8646 2014-04-03 Doug Evans <dje@google.com>
8648 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8649 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8651 2014-04-02 Alan Modra <amodra@gmail.com>
8653 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8654 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8655 (struct symbol_file_add_from_memory_args): Add size field.
8656 (find_vdso_size): New function.
8657 (add_vsyscall_page): Attempt to find vdso size.
8659 2014-04-01 Doug Evans <dje@google.com>
8661 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8663 2014-04-01 Tristan Gingold <gingold@adacore.com>
8665 * darwin-nat.c (darwin_encode_reply): Add prototype.
8666 (darwin_decode_exception_message): Reply to unknown inferiors.
8667 (darwin_decode_message): Handle message by id. Ignore message
8668 to unknown inferior.
8669 (darwin_wait): Discard unknown messages, add debug trace.
8671 2014-03-31 Doug Evans <dje@google.com>
8673 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8676 2014-03-31 Doug Evans <dje@google.com>
8678 New option "set print symbol-loading".
8680 * solib.c (solib_read_symbols): Only print symbol loading messages
8682 (solib_add): If symbol loading is in "brief" mode, notify user
8683 symbols are being loaded.
8684 (reload_shared_libraries_1): Ditto.
8685 * symfile.c (print_symbol_loading_off): New static global.
8686 (print_symbol_loading_brief): New static global.
8687 (print_symbol_loading_full): New static global.
8688 (print_symbol_loading_enums): New static global.
8689 (print_symbol_loading): New static global.
8690 (print_symbol_loading_p): New function.
8691 (symbol_file_add_with_addrs): Only print symbol loading messages
8693 (_initialize_symfile): Register "print symbol-loading" set/show
8695 * symfile.h (print_symbol_loading_p): Declare.
8697 2014-03-30 Doug Evans <xdje42@gmail.com>
8699 * infrun.c (set_last_target_status): New function.
8700 (handle_inferior_event): Call it.
8702 2014-03-30 Doug Evans <xdje42@gmail.com>
8704 * inferior.h (enum stop_kind): Improve comment.
8706 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8708 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8709 a reference, strip the reference layer before calling
8710 the lang_ops value_has_mutated callback.
8712 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8714 Remove some globals from our parser.
8715 * language.c (unk_lang_parser): Add "struct parser_state"
8717 * language.h (struct language_defn) <la_parser>: Likewise.
8718 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8719 (initialize_expout): Add "struct parser_state" argument.
8720 Rewrite function to use the parser state.
8721 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8722 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8723 write_exp_elt_longcst, write_exp_elt_dblcst,
8724 write_exp_elt_decfloatcst, write_exp_elt_type,
8725 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8726 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8727 write_dollar_variable): Likewise.
8728 (parse_exp_in_context_1): Use parser state.
8729 (insert_type_address_space): Add "struct parser_state" argument.
8731 (increase_expout_size): New function.
8732 * parser-defs.h: Forward declare "struct language_defn" and
8733 "struct parser_state".
8734 (expout, expout_size, expout_ptr): Remove extern declarations.
8735 (parse_gdbarch, parse_language): Rewrite macro declarations to
8736 accept the parser state.
8737 (struct parser_state): New struct.
8738 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8739 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8740 write_exp_elt_decfloatcst, write_exp_elt_type,
8741 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8742 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8743 write_exp_msymbol, write_dollar_variable,
8744 mark_struct_expression, insert_type_address_space): Add "struct
8745 parser_state" argument.
8746 (increase_expout_size): New function.
8747 * utils.c (do_clear_parser_state): New function.
8748 (make_cleanup_clear_parser_state): Likewise.
8749 * utils.h (make_cleanup_clear_parser_state): New function
8751 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8752 Update calls to write_exp* in order to pass the parser state.
8753 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8754 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8755 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8756 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8757 * stap-probe.c (stap_parse_register_operand): Likewise.
8758 (stap_parse_single_operand): Likewise.
8759 (stap_parse_argument_1): Likewise.
8760 (stap_parse_argument): Use parser state.
8761 * stap-probe.h: Include "parser-defs.h".
8762 (struct stap_parse_info) <pstate>: New field.
8763 * c-exp.y (parse_type): Rewrite to use parser state.
8764 (yyparse): Redefine to c_parse_internal.
8765 (pstate): New global variable.
8766 (parse_number): Add "struct parser_state" argument.
8767 (write_destructor_name): Likewise.
8768 (type_exp): Update calls to write_exp* and similars in order to
8770 (exp1, exp, variable, qualified_name, space_identifier,
8771 typename, typebase): Likewise.
8772 (write_destructor_name, parse_number, lex_one_token,
8773 classify_name, classify_inner_name, c_parse): Add "struct
8774 parser_state" argument. Update function to use parser state.
8775 * c-lang.h: Forward declare "struct parser_state".
8776 (c_parse): Add "struct parser_state" argument.
8777 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8778 (yyparse): Redefine macro to ada_parse_internal.
8779 (pstate): New variable.
8780 (write_int, write_object_renaming, write_var_or_type,
8781 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8782 type_int, type_long, type_long_long, type_float, type_double,
8783 type_long_double, type_char, type_boolean, type_system_address):
8784 Add "struct parser_state" argument.
8785 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8786 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8787 var_or_type, aggregate, aggregate_component_list,
8788 positional_list, others, component_group,
8789 component_associations): Update calls to write_exp* and similar
8790 functions in order to use parser state.
8791 (ada_parse, write_var_from_sym, write_int,
8792 write_exp_op_with_string, write_object_renaming,
8793 find_primitive_type, write_selectors, write_ambiguous_var,
8794 write_var_or_type, write_name_assoc, type_int, type_long,
8795 type_long_long, type_float, type_double, type_long_double,
8796 type_char, type_boolean, type_system_address): Add "struct
8797 parser_state" argument. Adjust function to use parser state.
8798 * ada-lang.c (parse): Likewise.
8799 * ada-lang.h: Forward declare "struct parser_state".
8800 (ada_parse): Add "struct parser_state" argument.
8801 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8802 calls to both functions.
8803 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8805 (yyparse): Redefine macro to f_parse_internal.
8806 (pstate): New variable.
8807 (parse_number): Add "struct parser_state" argument.
8808 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8809 and similars in order to use parser state.
8810 (parse_number): Adjust code to use parser state.
8812 (f_parse): New function.
8813 * f-lang.h: Forward declare "struct parser_state".
8814 (f_parse): Add "struct parser_state" argument.
8815 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8817 (yyparse): Redefine macro for java_parse_internal.
8818 (pstate): New variable.
8819 (push_expression_name, push_expression_name, insert_exp): Add
8820 "struct parser_state" argument.
8821 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8822 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8823 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8824 PostIncrementExpression, PostDecrementExpression,
8825 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8826 UnaryExpressionNotPlusMinus, CastExpression,
8827 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8828 RelationalExpression, EqualityExpression, AndExpression,
8829 ExclusiveOrExpression, InclusiveOrExpression,
8830 ConditionalAndExpression, ConditionalOrExpression,
8831 ConditionalExpression, Assignment, LeftHandSide): Update
8832 calls to write_exp* and similars in order to use parser state.
8833 (parse_number): Ajust code to use parser state.
8835 (java_parse): New function.
8836 (push_variable): Add "struct parser_state" argument. Adjust
8837 code to user parser state.
8838 (push_fieldnames, push_qualified_expression_name,
8839 push_expression_name, insert_exp): Likewise.
8840 * jv-lang.h: Forward declare "struct parser_state".
8841 (java_parse): Add "struct parser_state" argument.
8842 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8844 (yyparse): Redefine macro to m2_parse_internal.
8845 (pstate): New variable.
8846 (type_exp, exp, fblock, variable, type): Update calls to
8847 write_exp* and similars to use parser state.
8849 (m2_parse): New function.
8850 * m2-lang.h: Forward declare "struct parser_state".
8851 (m2_parse): Add "struct parser_state" argument.
8852 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8853 * objc-lang.h: Forward declare "struct parser_state".
8854 (end_msglist): Add "struct parser_state" argument.
8855 * p-exp.y (parse_type): Rewrite macro to use parser state.
8856 (yyparse): Redefine macro to pascal_parse_internal.
8857 (pstate): New variable.
8858 (parse_number): Add "struct parser_state" argument.
8859 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8860 write_exp* and similars in order to use parser state.
8861 (parse_number, yylex): Adjust code to use parser state.
8862 (pascal_parse): New function.
8863 * p-lang.h: Forward declare "struct parser_state".
8864 (pascal_parse): Add "struct parser_state" argument.
8865 * go-exp.y (parse_type): Rewrite macro to use parser state.
8866 (yyparse): Redefine macro to go_parse_internal.
8867 (pstate): New variable.
8868 (parse_number): Add "struct parser_state" argument.
8869 (type_exp, exp1, exp, variable, type): Update calls to
8870 write_exp* and similars in order to use parser state.
8871 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8872 to use parser state.
8873 (go_parse): Likewise.
8874 * go-lang.h: Forward declare "struct parser_state".
8875 (go_parse): Add "struct parser_state" argument.
8877 2014-03-27 Doug Evans <dje@google.com>
8879 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8881 2014-03-27 Doug Evans <dje@google.com>
8883 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8884 Remove argument abbrev_section. All callers updated.
8886 2014-03-27 Doug Evans <dje@google.com>
8888 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8889 addr_base, ranges_base.
8891 2014-03-26 Keith Seitz <keiths@redhat.com>
8893 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8894 types, not VAR_DOMAIN.
8896 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8898 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8900 * features/nios2-linux.c: Regenerated.
8901 * features/nios2.c: Regenerated.
8903 2014-03-25 Pedro Alves <palves@redhat.com>
8905 * cli/cli-script.c (script_from_file): Force the interpreter to
8908 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8910 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8911 small stack allocation.
8913 2014-03-24 Tristan Gingold <gingold@adacore.com>
8915 * darwin-nat.c (exc_server): Remove unused prototype.
8916 (darwin_dump_message): Correctly display data on x86_64.
8917 (darwin_encode_reply): Fix style.
8918 Add comments and fix indentation.
8920 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8922 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8924 2014-03-22 Doug Evans <xdje42@gmail.com>
8926 * infcmd.c: Whitespace fixes.
8927 (interrupt_command): Merge two function comments into one.
8929 2014-03-22 Doug Evans <xdje42@gmail.com>
8931 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8934 2014-03-22 Yao Qi <yao@codesourcery.com>
8936 * remote.c (target_read_live_memory): Remove.
8937 (memory_xfer_live_readonly_partial): Rename it to
8938 remote_xfer_live_readonly_partial. Remove argument 'object'.
8939 All callers updated. Call remote_read_bytes_1
8940 instead of target_read_live_memory.
8941 * tracepoint.c (set_traceframe_number): Remove.
8942 (make_cleanup_restore_traceframe_number): Likewise .
8943 * tracepoint.h (set_traceframe_number): Remove declaration.
8944 (make_cleanup_restore_traceframe_number): Likewise.
8946 2014-03-22 Yao Qi <yao@codesourcery.com>
8948 * remote.c (remote_read_bytes): Move code on reading from the
8950 (remote_read_bytes_1): ... here. New function.
8952 2014-03-22 Yao Qi <yao@codesourcery.com>
8954 * ctf.c (ctf_xfer_partial): Check the return value of
8955 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8956 return TARGET_XFER_UNAVAILABLE.
8957 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8958 * target.c (target_read_live_memory): Move it to remote.c.
8959 (memory_xfer_live_readonly_partial): Likewise.
8960 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8961 * remote.c (target_read_live_memory): Moved from target.c.
8962 (memory_xfer_live_readonly_partial): Likewise.
8963 (remote_read_bytes): Factored out from
8964 memory_xfer_partial_1.
8966 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8968 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8971 2014-03-21 Pedro Alves <palves@redhat.com>
8973 * infrun.c (normal_stop): Extend comment.
8975 2014-03-21 Hui Zhu <hui@codesourcery.com>
8976 Pedro Alves <palves@redhat.com>
8978 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8980 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8981 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8982 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8984 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8986 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8987 `z' formatted output modifier.
8989 2014-03-20 Tom Tromey <tromey@redhat.com>
8990 Sergio Durigan Junior <sergiodj@redhat.com>
8992 * probe.c (parse_probes): Turn assert into an ordinary error.
8993 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8994 exceptions when parsing probes. Rearrange the code for clarity.
8996 2014-03-20 Tom Tromey <tromey@redhat.com>
8999 * top.c (execute_command): Only dispatch events if the command
9002 2014-03-20 Tom Tromey <tromey@redhat.com>
9005 * infcall.c: Include event-top.h.
9006 (run_inferior_call): Call async_disable_stdin if needed.
9008 2014-03-20 Pedro Alves <palves@redhat.com>
9010 * infrun.c (prepare_to_proceed): Delete.
9011 (thread_still_needs_step_over): New function.
9012 (find_thread_needs_step_over): New function.
9013 (proceed): If the current thread needs a step-over, set its
9014 steping_over_breakpoint flag. Adjust to use
9015 find_thread_needs_step_over instead of prepare_to_proceed.
9016 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9017 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9019 (switch_back_to_stepped_thread): Step over breakpoints of all
9020 threads not the stepping thread, before switching back to the
9023 2014-03-20 Pedro Alves <palves@redhat.com>
9025 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9027 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9028 * infrun.c (saved_singlestep_ptid)
9029 (stepping_past_singlestep_breakpoint): Delete.
9030 (resume): Remove stepping_past_singlestep_breakpoint handling.
9031 (proceed): Store the prev_pc of the stepping thread too.
9032 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9034 (enum infwait_states): Delete infwait_thread_hop_state.
9035 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9037 (handle_inferior_event): Adjust.
9038 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9039 handling and the thread-hop code. Before removing single-step
9040 breakpoints, check whether the thread hit a single-step breakpoint
9041 of another thread. If it did, the trap is not a random signal.
9042 (switch_back_to_stepped_thread): If the event thread hit a
9043 single-step breakpoint, unblock it before switching to the
9044 stepping thread. Handle the case of the stepped thread having
9046 (keep_going): Handle the case of the current thread moving past a
9047 single-step breakpoint.
9049 2014-03-20 Pedro Alves <palves@redhat.com>
9052 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9053 are being stepped over.
9054 (breakpoint_address_match): Make extern.
9055 * breakpoint.h (breakpoint_address_match): New declaration.
9056 * inferior.h (stepping_past_instruction_at): New declaration.
9057 * infrun.c (struct step_over_info): New type.
9058 (step_over_info): New global.
9059 (set_step_over_info, clear_step_over_info)
9060 (stepping_past_instruction_at): New functions.
9061 (handle_inferior_event): Clear the step-over info when
9062 trap_expected is cleared.
9063 (resume): Remove now stale comment.
9064 (clear_proceed_status): Clear step-over info.
9065 (proceed): Adjust step-over handling to set or clear the step-over
9066 info instead of removing all breakpoints.
9067 (handle_signal_stop): When setting up a thread-hop, don't remove
9069 (stop_stepping): Clear step-over info.
9070 (keep_going): Adjust step-over handling to set or clear step-over
9071 info and then always inserting breakpoints, instead of removing
9072 all breakpoints when stepping over one.
9074 2014-03-20 Pedro Alves <palves@redhat.com>
9076 * infrun.c (previous_inferior_ptid): Adjust comment.
9077 (deferred_step_ptid): Delete.
9078 (infrun_thread_ptid_changed, prepare_to_proceed)
9079 (init_wait_for_inferior): Adjust.
9080 (handle_signal_stop): Delete deferred_step_ptid handling.
9082 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9085 * defs.h (sync_quit_force_run): New declaration.
9086 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9087 * event-top.c (async_sigterm_handler): New declaration.
9088 (async_sigterm_token): New variable.
9089 (async_init_signals): Create also async_sigterm_token.
9090 (async_sigterm_handler): New function.
9091 (sync_quit_force_run): New variable.
9092 (handle_sigterm): Replace quit_force call by other calls.
9093 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9095 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9097 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9098 offset into SPE pseudo registers.
9100 2014-03-18 Pedro Alves <palves@redhat.com>
9103 * inferior.h (print_stop_event): Declare.
9104 * infrun.c (print_stop_event): New, factored out from ...
9105 (normal_stop): ... this.
9106 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9107 of bpstat_print/print_stack_frame.
9109 2014-03-17 Tom Tromey <tromey@redhat.com>
9111 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9113 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9115 * ada-lang.c (decode_constrained_packed_array): Perform a
9116 minimal coercion for reference with coerce_ref instead of
9119 2014-03-17 Tristan Gingold <gingold@adacore.com>
9121 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9122 (darwin_solib_create_inferior_hook): Emit a warning if version
9125 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9127 * python/py-value.c (get_field_flag): Cast flag_name argument to
9128 PyObject_GetAttrString to support Python 2.4.
9130 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9132 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9133 (Global Maintainers): Remove Jan Kratochvil.
9135 2014-03-14 Pedro Alves <palves@redhat.com>
9137 * inferior.h (terminal_ours_for_output): Rename to ...
9138 (child_terminal_ours_for_output): ... this.
9139 (terminal_save_ours): Rename to ...
9140 (child_terminal_save_ours): ... this.
9141 (terminal_ours): Rename to ...
9142 (child_terminal_ours): ... this.
9143 (terminal_inferior): Rename to ...
9144 (child_terminal_inferior): ... this.
9145 (terminal_init_inferior): Rename to ...
9146 (child_terminal_init_inferior): ... this.
9147 (terminal_init_inferior_with_pgrp): Rename to ...
9148 (child_terminal_init_inferior_with_pgrp): ... this.
9149 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9150 (child_terminal_init_with_pgrp): ... this.
9151 (terminal_save_ours): Rename to ...
9152 (child_terminal_save_ours): ... this.
9153 (terminal_init_inferior): Rename to ...
9154 (child_terminal_init): ... this. Adjust.
9155 (terminal_inferior): Rename to ...
9156 (child_terminal_inferior): ... this.
9157 (terminal_ours_for_output): Rename to ...
9158 (child_terminal_ours_for_output): ... this. Adjust.
9159 (terminal_ours): Rename to ...
9160 (child_terminal_ours): ... this.
9161 (terminal_ours_1): Rename to ...
9162 (child_terminal_ours_1): ... this. Adjust.
9163 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9164 * windows-nat.c (do_initial_windows_stuff): Adjust.
9165 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9166 (gnu_terminal_init): ... this. Adjust.
9167 (gnu_target): Adjust.
9168 * inf-child.c (inf_child_target): Adjust.
9170 2014-03-13 Doug Evans <xdje42@gmail.com>
9173 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9176 2014-03-13 Doug Evans <xdje42@gmail.com>
9178 * value.c (record_latest_value): Call release_value_or_incref
9179 instead of release_value.
9181 2014-03-13 Pedro Alves <palves@redhat.com>
9183 * procfs.c (procfs_target): Don't override to_shortname,
9184 to_longname or to_doc.
9186 2014-03-13 Pedro Alves <palves@redhat.com>
9188 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9189 Unix in user visible strings.
9191 2014-03-12 Stan Shebs <stan@codesourcery.com>
9193 * gdbtypes.h: Annotate comments for Doxygen, add a page
9194 block comment with some general info.
9196 2014-03-12 Pedro Alves <palves@redhat.com>
9198 * infcmd.c (prepare_execution_command): New function, factored out
9199 from several execution commands.
9200 (run_command_1, continue_command, step_1, jump_command)
9201 (signal_command, until_command, advance_command, finish_command)
9202 (attach_command): Use prepare_execution_command.
9204 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9206 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9209 (struct arm_linux_thread_points): Removed.
9210 (struct arm_linux_process_info): New.
9211 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9212 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9213 (arm_linux_find_breakpoints_by_tid): Removed.
9214 (struct arch_lwp_info): New.
9215 (arm_linux_find_process_pid): New functions.
9216 (arm_linux_add_process): New functions.
9217 (arm_linux_process_info_get): New functions.
9218 (arm_linux_forget_process): New function.
9219 (arm_linux_get_debug_reg_state): New function.
9220 (struct update_registers_data): New.
9221 (update_registers_callback): New function.
9222 (arm_linux_insert_hw_breakpoint1): Updated.
9223 (arm_linux_remove_hw_breakpoint1): Updated.
9224 (arm_linux_insert_hw_breakpoint): Updated.
9225 (arm_linux_remove_hw_breakpoint): Updated.
9226 (arm_linux_insert_watchpoint): Updated.
9227 (arm_linux_remove_watchpoint): Updated.
9228 (arm_linux_new_thread): Updated.
9229 (arm_linux_prepare_to_resume): New function.
9230 (arm_linux_new_fork): New function.
9231 (_initialize_arm_linux_nat): Updated.
9233 2014-03-12 Pedro Alves <palves@redhat.com>
9235 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9237 2014-03-12 Tom Tromey <tromey@redhat.com>
9239 * inf-child.c (return_zero): New function.
9240 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9241 * aix-thread.c (aix_thread_inferior_created): New function.
9242 (aix_thread_attach): Remove.
9243 (init_aix_thread_ops): Don't set to_attach.
9244 (_initialize_aix_thread): Register inferior_created observer.
9245 * corelow.c (init_core_ops): Don't set to_attach or
9247 * exec.c (init_exec_ops): Don't set to_attach or
9249 * infcmd.c (run_command_1): Use find_run_target. Make direct
9251 (attach_command): Use find_attach_target. Make direct target
9253 * record-btrace.c (init_record_btrace_ops): Don't set
9255 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9257 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9258 set to_create_inferior.
9259 * target.c (complete_target_initialization): Add assertion.
9260 (target_create_inferior): Remove.
9261 (find_default_attach, find_default_create_inferior): Remove.
9262 (find_attach_target, find_run_target): New functions.
9263 (find_default_is_async_p, find_default_can_async_p)
9264 (target_supports_non_stop, target_attach): Remove.
9265 (init_dummy_target): Don't set to_create_inferior or
9266 to_supports_non_stop.
9267 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9268 TARGET_DEFAULT_FUNC.
9269 <to_create_inferior>: Add comment.
9270 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9271 TARGET_DEFAULT_RETURN.
9272 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9273 (find_attach_target, find_run_target): Declare.
9274 (target_create_inferior): Remove.
9275 (target_has_execution_1): Update comment.
9276 (target_supports_non_stop): Remove.
9277 * target-delegates.c: Rebuild.
9279 2014-03-12 Pedro Alves <palves@redhat.com>
9281 * inf-child.h: Update comment to not mention Unix.
9283 2014-03-12 Pedro Alves <palves@redhat.com>
9285 * inf-child.c: Update top comment to not mention Unix. Add
9286 generic comment describing how this target is meant to be used.
9287 (inf_child_post_attach, inf_child_post_startup_inferior)
9288 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9291 2014-03-12 Pedro Alves <palves@redhat.com>
9293 * nto-procfs.c: Include inf-child.h.
9294 (procfs_ops): Delete global.
9295 (procfs_can_run): Delete method.
9296 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9297 target pointer instead of referencing procfs_ops.
9298 (procfs_prepare_to_store): Delete.
9299 (init_procfs_ops): Delete function.
9300 (procfs_target): New function, based on init_procfs_ops, but
9301 inherit inf_child_target.
9302 (_initialize_procfs): Use procfs_target.
9304 2014-03-12 Pedro Alves <palves@redhat.com>
9306 * windows-nat.c: Include inf-child.h.
9307 (windows_ops): Delete global.
9308 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9310 (init_windows_ops): Delete function.
9311 (windows_target): New function, based on init_windows_ops, but
9312 inherit inf_child_target.
9313 (_initialize_windows_nat): Use windows_target. Install x86
9314 specific target methods here.
9316 2014-03-10 Doug Evans <xdje42@gmail.com>
9318 * guile/guile.c (call_initialize_gdb_module): New function.
9319 (initialize_guile): Replace call to scm_init_guile with call to
9322 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9324 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9325 in call to TYPE_CODE macro.
9327 2014-03-10 Jerome Guitton <guitton@adacore.com>
9329 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9330 Resolve tagged types to full view.
9332 2014-03-10 Hui Zhu <hui@codesourcery.com>
9334 * target.h (target_insert_breakpoint): Remove "hardware" from its
9337 2014-03-07 Doug Evans <dje@google.com>
9339 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9341 2014-03-07 Doug Evans <dje@google.com>
9343 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9344 Remove unused local comp_dir_attr. Assert exactly one of
9345 stub_comp_unit_die, stub_comp_dir is non-NULL.
9347 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9349 * target.h (complete_target_initialization, add_target):
9352 2014-03-07 Pedro Alves <palves@redhat.com>
9354 * go32-nat.c: Include inf-child.h.
9355 (go32_ops): Delete global.
9356 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9358 (go32_create_inferior): Push the passed in target pointer instead
9359 of referencing go32_ops.
9360 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9361 (go32_target): New function, based on init_go32_ops, but inherit
9363 (_initialize_go32_nat): Use go32_target. Move parts of
9366 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9368 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9369 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9370 SYMBOL_VALUE_ADDRESS.
9371 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9373 2014-03-06 Yao Qi <yao@codesourcery.com>
9375 * breakpoint.c (get_tracepoint_by_number): Remove argument
9376 optional_p. All callers updated. Adjust comments. Update
9378 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9380 2014-03-06 Yao Qi <yao@codesourcery.com>
9382 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9383 early if get_number returns zero. Use 'p' instead of 'args'.
9385 2014-03-06 Yao Qi <yao@codesourcery.com>
9387 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9390 2014-03-06 Yao Qi <yao@codesourcery.com>
9392 PR breakpoints/16508
9393 * tracepoint.c (check_trace_running): New function.
9394 (trace_find_command): Move code to check_trace_running and
9395 call check_trace_running.
9396 (trace_find_pc_command): Likewise.
9397 (trace_find_tracepoint_command): Likewise.
9398 (trace_find_line_command): Likewise.
9399 (trace_find_range_command): Likewise.
9400 * tracepoint.h (check_trace_running): Likewise.
9401 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9403 2014-03-06 Yao Qi <yao@codesourcery.com>
9405 * target.h (struct target_ops) <to_traceframe_info>: Use
9406 TARGET_DEFAULT_NORETURN (tcomplain ()).
9407 * target-delegates.c: Regenerated.
9409 2014-03-05 Pedro Alves <palves@redhat.com>
9412 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9413 void. Update comment.
9414 (dcache_xfer_memory): Delete.
9415 (dcache_read_memory_partial): New, based on the read bits of
9417 (dcache_update): Add status parameter. Use ULONGEST for len, and
9418 adjust. Discard cache lines if the reason for the update was
9420 * dcache.h (dcache_xfer_memory): Delete declaration.
9421 (dcache_read_memory_partial): New declaration.
9422 (dcache_update): Update prototype.
9423 * target.c (raw_memory_xfer_partial): Update the dcache here.
9424 (memory_xfer_partial_1): Don't handle dcache writes here.
9426 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9428 * remote-sim.c (gdbsim_load): Add const to prog.
9430 2014-03-03 Tom Tromey <tromey@redhat.com>
9432 * elfread.c (probe_key): Change to bfd_data.
9433 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9434 now per-BFD, not per-objfile.
9435 * stap-probe.c (stap_probe_destroy): Update comment.
9436 (handle_stap_probe): Allocate on the per-BFD obstack.
9438 2014-03-03 Tom Tromey <tromey@redhat.com>
9440 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9441 * breakpoint.c (create_longjmp_master_breakpoint): Use
9443 (add_location_to_breakpoint, bkpt_probe_insert_location)
9444 (bkpt_probe_remove_location): Update.
9445 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9446 * elfread.c (elf_symfile_relocate_probe): Remove.
9447 (elf_probe_fns): Update.
9448 (insert_exception_resume_breakpoint): Change type of "probe"
9449 parameter to bound_probe.
9450 (check_exception_resume): Update.
9451 * objfiles.c (objfile_relocate1): Don't relocate probes.
9452 * probe.c (bound_probe_s): New typedef.
9453 (parse_probes): Use get_probe_address. Set sal's objfile.
9454 (find_probe_by_pc): Return a bound_probe.
9455 (collect_probes): Return a VEC(bound_probe_s).
9456 (compare_probes): Update.
9457 (gen_ui_out_table_header_info): Change type of "probes"
9459 (info_probes_for_ops): Update.
9460 (get_probe_address): New function.
9461 (probe_safe_evaluate_at_pc): Update.
9462 * probe.h (struct probe_ops) <get_probe_address>: New field.
9463 <set_semaphore, clear_semaphore>: Add objfile parameter.
9464 (struct probe) <objfile>: Remove field.
9466 <address>: Update comment.
9467 (struct bound_probe): New.
9468 (find_probe_by_pc): Return a bound_probe.
9469 (get_probe_address): Declare.
9470 * solib-svr4.c (struct probe_and_action) <address>: New field.
9471 (hash_probe_and_action, equal_probe_and_action): Update.
9472 (register_solib_event_probe): Add address parameter.
9473 (solib_event_probe_at): Update.
9474 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9476 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9477 (stap_get_probe_address): New function.
9478 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9479 (compile_probe_arg): Update.
9480 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9482 (handle_stap_probe): Don't relocate the probe.
9483 (stap_relocate): Remove.
9484 (stap_gen_info_probes_table_values): Update.
9485 (stap_probe_ops): Remove stap_relocate.
9486 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9487 (debug_sym_probe_fns): Update.
9488 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9489 * symtab.c (init_sal): Use memset.
9490 * symtab.h (struct symtab_and_line) <objfile>: New field.
9491 * tracepoint.c (start_tracing, stop_tracing): Update.
9493 2014-03-03 Tom Tromey <tromey@redhat.com>
9495 * probe.h (parse_probes, find_probe_by_pc)
9496 (find_probes_in_objfile): Fix comments.
9498 2014-03-02 Doug Evans <xdje42@gmail.com>
9500 * infrun.c (handle_signal_stop): Replace test for
9501 TARGET_WAITKIND_STOPPED with an assert.
9503 2014-03-02 Doug Evans <xdje42@gmail.com>
9505 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9507 2014-03-02 Doug Evans <xdje42@gmail.com>
9509 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9511 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9513 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9515 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9517 * i386obsd-nat.c: Include "obsd-nat.h".
9518 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9520 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9522 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9524 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9526 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9528 * mips64obsd-nat.c: Include "obsd-nath".
9529 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9531 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9533 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9535 * amd64obsd-nat.c: Include "obsd-nat,h.
9536 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9538 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9540 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9542 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9543 (find_overload_match): Update call to find_oload_champ.
9544 (find_oload_champ_namespace_loop): Likewise
9546 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9548 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9550 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9551 * config/sparc/obsd64.mh: New file.
9552 * sparc64obsd-nat.c: New file.
9554 * obsd-nat.h: New file.
9555 * obsd-nat.c: New file.
9556 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9557 (ALLDEPFILES): Add obsd-nat.c.
9559 2014-02-28 Tom Tromey <tromey@redhat.com>
9561 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9562 * cli-out.h (cli_ui_out_impl): Now const.
9563 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9564 * ui-out.c (struct ui_out) <impl>: Now const.
9565 (default_ui_out_impl): Now const.
9566 (ui_out_new): Make 'impl' parameter const.
9567 * ui-out.h (ui_out_new): Update.
9569 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9571 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9573 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9575 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9577 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9579 Additional PR 8882 fix.
9580 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9582 2014-02-27 Pedro Alves <palves@redhat.com>
9584 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9587 2014-02-27 Pedro Alves <palves@redhat.com>
9590 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9591 * nat/linux-waitpid.c: Include string.h.
9592 (status_to_str): Moved here and made extern.
9593 * nat/linux-waitpid.h (status_to_str): New declaration.
9595 2014-02-27 Hui Zhu <hui@codesourcery.com>
9598 * infrun.c (ptid_match): Move ...
9599 * common/ptid.c (ptid_match): ... here.
9600 * inferior.h (ptid_match): Move ...
9601 * common/ptid.h (ptid_match): ... here.
9603 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9605 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9606 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9609 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9611 * obsd-tdep.c (obsd_auxv_parse): New function.
9612 (obsd_init_abi): Set auxv_parse.
9614 * gdbarch.sh (auxv_parse): New.
9615 * gdbarch.h: Regenerated.
9616 * gdbarch.c: Regenerated.
9617 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9619 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9621 * guile/scm-value.c (gdbscm_history_append_x): New function.
9622 (value_functions): Add it.
9624 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9626 * dwarf2read.c (attr_value_as_address): New function.
9627 (dwarf2_find_base_address, read_call_site_scope): Use
9628 attr_value_as_address in place of DW_ADDR.
9629 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9630 the low and high addresses. Slight rework of the handling
9631 of the high pc being a constant form, and limit it to
9632 DWARF verson 4 or higher.
9633 (dwarf2_record_block_ranges): Likewise.
9634 (read_partial_die): Likewise.
9635 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9637 2014-02-26 Tom Tromey <tromey@redhat.com>
9639 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9641 2014-02-26 Tom Tromey <tromey@redhat.com>
9643 * elfread.c (elf_read_minimal_symbols): Return early if
9644 minimal symbols have already been read. Add "ei" parameter.
9645 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9646 * minsyms.c (prim_record_minimal_symbol_full): Update.
9647 * objfiles.h (struct objstats) <n_minsyms>: Move...
9648 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9649 * symmisc.c (print_objfile_statistics): Update.
9651 2014-02-26 Tom Tromey <tromey@redhat.com>
9653 * elfread.c (elf_read_minimal_symbols): New function, from
9655 (elf_symfile_read): Call it.
9657 2014-02-26 Tom Tromey <tromey@redhat.com>
9659 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9660 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9661 (lookup_minimal_symbol_solib_trampoline)
9662 (lookup_minimal_symbol_by_pc_section_1)
9663 (lookup_minimal_symbol_and_objfile): Update.
9664 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9665 Don't allocate a minimal symbol if minsyms have already been read.
9666 (build_minimal_symbol_hash_tables): Update.
9667 (install_minimal_symbols): Do nothing if minsyms already read.
9668 Use the per-BFD obstack.
9669 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9670 * objfiles.c (allocate_objfile): Call
9671 terminate_minimal_symbol_table later.
9672 (have_minimal_symbols): Update.
9673 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9674 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9675 Move from struct objfile.
9676 <minsyms_read>: New field.
9677 (struct objfile) <msymbols, minimal_symbol_count,
9678 msymbol_hash, msymbol_demangled_hash>: Move.
9679 (ALL_OBJFILE_MSYMBOLS): Update.
9680 * symfile.c (read_symbols): Set minsyms_read.
9681 (reread_symbols): Update.
9682 * symmisc.c (dump_objfile, dump_msymbols): Update.
9684 2014-02-26 Tom Tromey <tromey@redhat.com>
9686 * minsyms.c (msymbols_sort): Remove.
9687 * minsyms.h (msymbols_sort): Remove.
9688 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9689 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9690 * elfread.c (elf_symtab_read): Don't add section offsets.
9691 * xcoffread.c (record_minimal_symbol): Don't add section offset
9692 to minimal symbol address.
9693 * somread.c (text_offset, data_offset): Remove.
9694 (som_symtab_read): Don't add section offsets to minimal symbol
9696 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9697 Don't add section offsets to minimal symbols.
9698 * coffread.c (coff_symtab_read): Don't add section offsets
9699 to minimal symbol addresses.
9700 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9701 to minimal symbol addresses.
9702 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9703 section offset to minimal symbol addresses.
9704 * mdebugread.c (parse_partial_symbols): Don't add section
9705 offset to minimal symbol addresses.
9706 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9707 offset to minimal symbol addresses.
9709 2014-02-26 Tom Tromey <tromey@redhat.com>
9711 * ada-lang.c (ada_main_name): Update.
9712 (ada_add_standard_exceptions): Update.
9713 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9714 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9715 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9716 * auxv.c (ld_so_xfer_auxv): Update.
9717 * avr-tdep.c (avr_scan_prologue): Update.
9718 * ax-gdb.c (gen_var_ref): Update.
9719 * blockframe.c (get_pc_function_start)
9720 (find_pc_partial_function_gnu_ifunc): Update.
9721 * breakpoint.c (create_overlay_event_breakpoint)
9722 (create_longjmp_master_breakpoint)
9723 (create_std_terminate_master_breakpoint)
9724 (create_exception_master_breakpoint): Update.
9725 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9726 * c-valprint.c (c_val_print): Update.
9727 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9728 * common/agent.c (agent_look_up_symbols): Update.
9729 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9730 * dwarf2loc.c (call_site_to_target_addr): Update.
9731 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9732 * elfread.c (elf_gnu_ifunc_record_cache)
9733 (elf_gnu_ifunc_resolve_by_got): Update.
9734 * findvar.c (default_read_var_value): Update.
9735 * frame.c (inside_main_func): Update.
9736 * frv-tdep.c (frv_frame_this_id): Update.
9737 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9738 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9740 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9741 (hppa_hpux_find_dummy_bpaddr): Update.
9742 * hppa-tdep.c (hppa_symbol_address): Update.
9743 * infcmd.c (until_next_command): Update.
9744 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9746 * linespec.c (minsym_found, add_minsym): Update.
9747 * linux-nat.c (get_signo): Update.
9748 * linux-thread-db.c (inferior_has_bug): Update.
9749 * m32c-tdep.c (m32c_return_value)
9750 (m32c_m16c_address_to_pointer): Update.
9751 * m32r-tdep.c (m32r_frame_this_id): Update.
9752 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9753 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9754 * maint.c (maintenance_translate_address): Update.
9755 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9756 (frob_address): New function.
9757 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9758 frob_address. Rename parameter to "pc_in".
9759 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9761 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9763 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9764 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9765 * objc-lang.c (find_objc_msgsend): Update.
9766 * objfiles.c (objfile_relocate1): Update.
9767 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9768 * p-valprint.c (pascal_val_print): Update.
9769 * parse.c (write_exp_msymbol): Update.
9770 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9771 (ppc_elfv2_skip_entrypoint): Update.
9772 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9773 * printcmd.c (build_address_symbolic, msym_info)
9774 (address_info): Update.
9775 * proc-service.c (ps_pglobal_lookup): Update.
9776 * psymtab.c (find_pc_sect_psymtab_closer)
9777 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9778 Change msymbol parameter to bound_minimal_symbol.
9779 * ravenscar-thread.c (get_running_thread_id): Update.
9780 * remote.c (remote_check_symbols): Update.
9781 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9783 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9784 * solib-dsbt.c (lm_base): Update.
9785 * solib-frv.c (lm_base, main_got): Update.
9786 * solib-irix.c (locate_base): Update.
9787 * solib-som.c (som_solib_create_inferior_hook)
9788 (link_map_start): Update.
9789 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9790 * solib-svr4.c (elf_locate_base, enable_break): Update.
9791 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9792 (flush_ea_cache): Update.
9793 * stabsread.c (define_symbol, scan_file_globals): Update.
9794 * stack.c (find_frame_funname): Update.
9795 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9796 (debug_qf_find_pc_sect_symtab): Update.
9797 * symfile.c (simple_read_overlay_table)
9798 (simple_overlay_update): Update.
9799 * symfile.h (struct quick_symbol_functions)
9800 <find_pc_sect_symtab>: Change type of msymbol to
9801 bound_minimal_symbol.
9802 * symmisc.c (dump_msymbols): Update.
9803 * symtab.c (find_pc_sect_symtab_via_partial)
9804 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9805 (search_symbols, print_msymbol_info): Update.
9806 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9807 (MSYMBOL_VALUE_ADDRESS): Redefine.
9808 (BMSYMBOL_VALUE_ADDRESS): New macro.
9809 * tracepoint.c (scope_info): Update.
9810 * tui/tui-disasm.c (tui_find_disassembly_address)
9811 (tui_get_begin_asm_address): Update.
9812 * valops.c (find_function_in_inferior): Update.
9813 * value.c (value_static_field, value_fn_field): Update.
9815 2014-02-26 Tom Tromey <tromey@redhat.com>
9817 * ada-lang.c (ada_update_initial_language): Update.
9818 (ada_main_name, ada_has_this_exception_support): Update.
9819 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9820 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9821 * arm-tdep.c (arm_skip_stub): Update.
9822 * auxv.c (ld_so_xfer_auxv): Update.
9823 * avr-tdep.c (avr_scan_prologue): Update.
9824 * ax-gdb.c (gen_var_ref): Update.
9825 * breakpoint.c (struct breakpoint_objfile_data)
9826 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9827 type to bound_minimal_symbol.
9828 (create_overlay_event_breakpoint)
9829 (create_longjmp_master_breakpoint)
9830 (create_std_terminate_master_breakpoint)
9831 (create_exception_master_breakpoint): Update.
9832 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9833 * c-exp.y (classify_name): Update.
9834 * coffread.c (coff_symfile_read): Update.
9835 * common/agent.c (agent_look_up_symbols): Update.
9836 * d-lang.c (d_main_name): Update.
9837 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9838 * dec-thread.c (enable_dec_thread): Update.
9839 * dwarf2loc.c (call_site_to_target_addr): Update.
9840 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9841 * eval.c (evaluate_subexp_standard): Update.
9842 * findvar.c (struct minsym_lookup_data) <result>: Change type
9843 to bound_minimal_symbol.
9845 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9846 * frame.c (inside_main_func): Update.
9847 * frv-tdep.c (frv_frame_this_id): Update.
9848 * gcore.c (call_target_sbrk): Update.
9849 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9850 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9852 * go-lang.c (go_main_name): Update.
9853 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9854 (hppa_hpux_find_import_stub_for_addr): Update.
9855 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9856 Update. Change return type.
9857 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9859 * jit.c (jit_breakpoint_re_set_internal): Update.
9860 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9862 * linux-nat.c (get_signo): Update.
9863 * linux-thread-db.c (inferior_has_bug): Update
9864 * m32c-tdep.c (m32c_return_value)
9865 (m32c_m16c_address_to_pointer): Update.
9866 * m32r-tdep.c (m32r_frame_this_id): Update.
9867 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9868 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9869 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9870 lookup_minimal_symbol. Change return type.
9871 (lookup_minimal_symbol): Remove.
9872 (lookup_bound_minimal_symbol): Update.
9873 (lookup_minimal_symbol_text): Change return type.
9874 (lookup_minimal_symbol_solib_trampoline): Change return type.
9875 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9876 (lookup_minimal_symbol_solib_trampoline): Change return type.
9877 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9878 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9879 (value_nsstring, find_imps): Update.
9880 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9881 * p-lang.c (pascal_main_name): Update.
9882 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9883 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9884 * proc-service.c (ps_pglobal_lookup): Update.
9885 * ravenscar-thread.c (get_running_thread_msymbol): Change
9887 (has_ravenscar_runtime, get_running_thread_id): Update.
9888 * remote.c (remote_check_symbols): Update.
9889 * sol-thread.c (ps_pglobal_lookup): Update.
9890 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9891 * solib-dsbt.c (lm_base): Update.
9892 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9894 * solib-irix.c (locate_base): Update.
9895 * solib-som.c (som_solib_create_inferior_hook)
9896 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9898 * solib-spu.c (spu_enable_break): Update.
9899 * solib-svr4.c (elf_locate_base, enable_break): Update.
9900 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9901 (flush_ea_cache): Update.
9902 * stabsread.c (define_symbol): Update.
9903 * symfile.c (simple_read_overlay_table): Update.
9904 * symtab.c (find_pc_sect_line): Update.
9905 * tracepoint.c (scope_info): Update.
9906 * tui-disasm.c (tui_get_begin_asm_address): Update.
9907 * value.c (value_static_field): Update.
9909 2014-02-26 Tom Tromey <tromey@redhat.com>
9911 * minsyms.c (prim_record_minimal_symbol_full): Use
9912 SET_MSYMBOL_VALUE_ADDRESS.
9913 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9914 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9915 SET_MSYMBOL_VALUE_ADDRESS.
9916 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9917 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9919 2014-02-26 Tom Tromey <tromey@redhat.com>
9921 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9922 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9923 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9924 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9925 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9926 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9927 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9928 * ada-lang.c (ada_main_name): Update.
9929 (ada_lookup_simple_minsym): Update.
9930 (ada_make_symbol_completion_list): Update.
9931 (ada_add_standard_exceptions): Update.
9932 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9933 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9934 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9935 * arm-tdep.c (skip_prologue_function): Update.
9936 (arm_skip_stack_protector, arm_skip_stub): Update.
9937 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9938 (arm_wince_skip_main_prologue): Update.
9939 * auxv.c (ld_so_xfer_auxv): Update.
9940 * avr-tdep.c (avr_scan_prologue): Update.
9941 * ax-gdb.c (gen_var_ref): Update.
9942 * block.c (call_site_for_pc): Update.
9943 * blockframe.c (get_pc_function_start): Update.
9944 (find_pc_partial_function_gnu_ifunc): Update.
9945 * breakpoint.c (create_overlay_event_breakpoint): Update.
9946 (create_longjmp_master_breakpoint): Update.
9947 (create_std_terminate_master_breakpoint): Update.
9948 (create_exception_master_breakpoint): Update.
9949 (resolve_sal_pc): Update.
9950 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9951 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9953 * c-valprint.c (c_val_print): Update.
9954 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9955 * coffread.c (coff_symfile_read): Update.
9956 * common/agent.c (agent_look_up_symbols): Update.
9957 * dbxread.c (find_stab_function_addr): Update.
9958 (end_psymtab): Update.
9959 * dwarf2loc.c (call_site_to_target_addr): Update.
9960 (func_verify_no_selftailcall): Update.
9961 (tailcall_dump): Update.
9962 (call_site_find_chain_1): Update.
9963 (dwarf_expr_reg_to_entry_parameter): Update.
9964 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9965 (elf_gnu_ifunc_resolve_by_got): Update.
9966 * f-valprint.c (info_common_command): Update.
9967 * findvar.c (read_var_value): Update.
9968 * frame.c (get_prev_frame_1): Update.
9969 (inside_main_func): Update.
9970 * frv-tdep.c (frv_skip_main_prologue): Update.
9971 (frv_frame_this_id): Update.
9972 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9973 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9974 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9975 (gnuv3_skip_trampoline): Update.
9976 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9977 (hppa64_hpux_in_solib_call_trampoline): Update.
9978 (hppa_hpux_skip_trampoline_code): Update.
9979 (hppa64_hpux_search_dummy_call_sequence): Update.
9980 (hppa_hpux_find_import_stub_for_addr): Update.
9981 (hppa_hpux_find_dummy_bpaddr): Update.
9982 * hppa-tdep.c (hppa_symbol_address)
9983 (hppa_lookup_stub_minimal_symbol): Update.
9984 * i386-tdep.c (i386_skip_main_prologue): Update.
9985 (i386_pe_skip_trampoline_code): Update.
9986 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9987 * infcall.c (get_function_name): Update.
9988 * infcmd.c (until_next_command): Update.
9989 * jit.c (jit_breakpoint_re_set_internal): Update.
9990 (jit_inferior_init): Update.
9991 * linespec.c (minsym_found): Update.
9992 (add_minsym): Update.
9993 * linux-fork.c (info_checkpoints_command): Update.
9994 * linux-nat.c (get_signo): Update.
9995 * linux-thread-db.c (inferior_has_bug): Update.
9996 * m32c-tdep.c (m32c_return_value): Update.
9997 (m32c_m16c_address_to_pointer): Update.
9998 (m32c_m16c_pointer_to_address): Update.
9999 * m32r-tdep.c (m32r_frame_this_id): Update.
10000 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10001 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10002 * maint.c (maintenance_translate_address): Update.
10003 * minsyms.c (add_minsym_to_hash_table): Update.
10004 (add_minsym_to_demangled_hash_table): Update.
10005 (msymbol_objfile): Update.
10006 (lookup_minimal_symbol): Update.
10007 (iterate_over_minimal_symbols): Update.
10008 (lookup_minimal_symbol_text): Update.
10009 (lookup_minimal_symbol_by_pc_name): Update.
10010 (lookup_minimal_symbol_solib_trampoline): Update.
10011 (lookup_minimal_symbol_by_pc_section_1): Update.
10012 (lookup_minimal_symbol_and_objfile): Update.
10013 (prim_record_minimal_symbol_full): Update.
10014 (compare_minimal_symbols): Update.
10015 (compact_minimal_symbols): Update.
10016 (build_minimal_symbol_hash_tables): Update.
10017 (install_minimal_symbols): Update.
10018 (terminate_minimal_symbol_table): Update.
10019 (find_solib_trampoline_target): Update.
10020 (minimal_symbol_upper_bound): Update.
10021 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10022 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10023 (mips_skip_pic_trampoline_code): Update.
10024 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10025 * objc-lang.c (selectors_info): Update.
10026 (classes_info): Update.
10027 (find_methods): Update.
10028 (find_imps): Update.
10029 (find_objc_msgsend): Update.
10030 * objfiles.c (objfile_relocate1): Update.
10031 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10032 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10033 * p-valprint.c (pascal_val_print): Update.
10034 * parse.c (write_exp_msymbol): Update.
10035 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10036 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10037 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10038 * printcmd.c (build_address_symbolic): Update.
10039 (sym_info): Update.
10040 (address_info): Update.
10041 * proc-service.c (ps_pglobal_lookup): Update.
10042 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10043 (find_pc_sect_psymtab): Update.
10044 * python/py-framefilter.c (py_print_frame): Update.
10045 * ravenscar-thread.c (get_running_thread_id): Update.
10046 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10048 * remote.c (remote_check_symbols): Update.
10049 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10050 (rs6000_skip_trampoline_code): Update.
10051 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10052 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10053 * solib-dsbt.c (lm_base): Update.
10054 * solib-frv.c (lm_base): Update.
10055 (main_got): Update.
10056 * solib-irix.c (locate_base): Update.
10057 * solib-som.c (som_solib_create_inferior_hook): Update.
10058 (som_solib_desire_dynamic_linker_symbols): Update.
10059 (link_map_start): Update.
10060 * solib-spu.c (spu_enable_break): Update.
10061 (ocl_enable_break): Update.
10062 * solib-svr4.c (elf_locate_base): Update.
10063 (enable_break): Update.
10064 * spu-tdep.c (spu_get_overlay_table): Update.
10065 (spu_catch_start): Update.
10066 (flush_ea_cache): Update.
10067 * stabsread.c (define_symbol): Update.
10068 (scan_file_globals): Update.
10069 * stack.c (find_frame_funname): Update.
10070 (frame_info): Update.
10071 * symfile.c (simple_read_overlay_table): Update.
10072 (simple_overlay_update): Update.
10073 * symmisc.c (dump_msymbols): Update.
10074 * symtab.c (fixup_section): Update.
10075 (find_pc_sect_line): Update.
10076 (skip_prologue_sal): Update.
10077 (search_symbols): Update.
10078 (print_msymbol_info): Update.
10079 (rbreak_command): Update.
10080 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10081 (completion_list_objc_symbol): Update.
10082 (default_make_symbol_completion_list_break_on): Update.
10083 * tracepoint.c (scope_info): Update.
10084 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10085 (tui_get_begin_asm_address): Update.
10086 * valops.c (find_function_in_inferior): Update.
10087 * value.c (value_static_field): Update.
10088 (value_fn_field): Update.
10090 2014-02-26 Tom Tromey <tromey@redhat.com>
10092 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10093 bound minimal symbols. Move code that knows about minsym
10095 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10097 * minsyms.h (minimal_symbol_upper_bound): Declare.
10098 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10099 minimal_symbol_upper_bound.
10101 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10103 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10104 Use the type's name if its basic type does not have a tag.
10106 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10108 * dwarf2read.c (read_subrange_type): Add comment.
10110 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10112 * dwarf2read.c (update_enumeration_type_from_children): New
10113 function, mostly extracted from process_structure_scope.
10114 (read_enumeration_type): Call update_enumeration_type_from_children.
10115 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10116 and flag_flag_enum fields.
10118 2014-02-26 Pedro Alves <palves@redhat.com>
10120 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10121 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10122 to_xfer_partial method.
10124 2014-02-26 Pedro Alves <palves@redhat.com>
10126 * target.c (complete_target_initialization): Don't install
10127 default_xfer_partial as to_xfer_partial hook.
10128 (nomemory): Delete.
10129 (update_current_target): Don't INHERIT nor de_fault
10130 deprecated_xfer_memory. Delete de_fault macro.
10131 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10132 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10133 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10136 2014-02-26 Pedro Alves <palves@redhat.com>
10138 * go32-nat.c (my_write_child): New function.
10139 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10140 (go32_xfer_partial): New function.
10141 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10142 Instead install a to_xfer_partial hook.
10144 2014-02-26 Pedro Alves <palves@redhat.com>
10146 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10147 to_xfer_partial helper. Rewrite.
10148 (procfs_xfer_partial): New function.
10149 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10150 Install a to_xfer_partial hook.
10152 2014-02-26 Pedro Alves <palves@redhat.com>
10154 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10155 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10156 (m32r_xfer_partial): New function.
10157 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10158 Install a to_xfer_partial hook.
10160 2014-02-26 Pedro Alves <palves@redhat.com>
10162 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10164 (mips_xfer_partial): New function.
10165 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10166 hook. Install a to_xfer_partial hook.
10168 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10170 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10171 * gdbtypes.c (create_array_type_with_stride): New function,
10172 renaming create_array_type, but with an added parameter
10173 called "bit_stride".
10174 (create_array_type): Re-implement using
10175 create_array_type_with_stride.
10176 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10177 and DW_AT_bit_stride attributes.
10179 2014-02-26 Pedro Alves <palves@redhat.com>
10181 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10182 task-specific breakpoints.
10184 2014-02-25 Pedro Alves <palves@redhat.com>
10186 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10187 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10189 2014-02-25 Stan Shebs <stan@codesourcery.com>
10191 * defs.h: Annotate comments for Doxygen.
10193 2014-02-25 Tom Tromey <tromey@redhat.com>
10195 * target.h (target_ignore): Don't declare.
10196 * target.c (target_ignore): Remove.
10198 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10201 * auto-load.c (auto_load_objfile_script_1): Change filename to
10204 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10206 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10207 documentation. Adjust prototype to match the target_ops
10208 to_xfer_partial method. Adjust implementation accordingly.
10210 2014-02-25 Hui Zhu <hui@codesourcery.com>
10212 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10213 to_traceframe_info.
10215 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10217 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10218 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10219 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10220 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10221 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10222 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10223 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10224 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10226 (rl78_register_type): Use a data pointer type for SP and
10227 new pseudo registers mentioned above. Use a 16 bit integer
10228 type for all other register pairs.
10229 (rl78_register_name, rl78_g10_register_name): Update for
10230 new pseudo registers.
10231 (rl78_pseudo_register_read): Likewise.
10232 (rl78_pseudo_register_write): Likewise.
10233 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10234 to the newly added pseudo registers.
10236 2014-02-24 Doug Evans <dje@google.com>
10238 * value.c (record_latest_value): Fix comment.
10239 * printcmd.c (print_command_1): Remove code to handle -1 return from
10240 record_latest_value.
10242 2014-02-24 Pedro Alves <palves@redhat.com>
10244 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10245 deprecated_xfer_memory hook.
10246 (procfs_xfer_partial): Call procfs_xfer_memory instead
10247 of the deprecated_xfer_memory target hook.
10248 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10251 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10253 * windows-nat.c (windows_xfer_shared_libraries): Return
10254 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10255 requested object is TARGET_OBJECT_LIBRARIES.
10257 2014-02-24 Yao Qi <yao@codesourcery.com>
10259 * target.h (enum target_xfer_status)
10260 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10261 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10263 * corefile.c (memory_error_message): User updated.
10264 * exec.c (section_table_read_available_memory): Likewise.
10265 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10266 * target.c (target_xfer_status_to_string): Likewise.
10267 (raw_memory_xfer_partial): Likewise.
10268 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10269 * valops.c (read_value_memory): Likewise.
10270 * exec.h: Update comments.
10272 2014-02-24 Yao Qi <yao@codesourcery.com>
10274 * target.c (target_xfer_status_to_string): Rename argument err
10276 * target.h (target_xfer_status_to_string): Update declaration.
10277 Replace target_xfer_error_to_string with
10278 target_xfer_status_to_string in comment.
10280 2014-02-24 Yao Qi <yao@codesourcery.com>
10282 * mips-linux-nat.c (super_close): Update its type.
10283 (mips_linux_close): Pass 'self' to super_close.
10285 2014-02-24 Yao Qi <yao@codesourcery.com>
10287 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10288 * corefile.c (read_memory): Adjusted.
10289 * target.c (target_write_with_progress): Adjusted.
10291 2014-02-23 Yao Qi <yao@codesourcery.com>
10293 Revert two patches:
10295 2013-10-25 Yao Qi <yao@codesourcery.com>
10297 * remote.c (remote_traceframe_info): Return early if
10298 traceframe is not selected.
10300 2013-07-19 Yao Qi <yao@codesourcery.com>
10302 * target.c (update_current_target): Change the default action
10303 of 'to_traceframe_info' from tcomplain to return_zero.
10304 * target.h (struct target_ops) <to_traceframe_info>: Add more
10307 2014-02-23 Yao Qi <yao@codesourcery.com>
10309 * valops.c (read_value_memory): Rewrite it. Call
10310 target_xfer_partial in a loop.
10311 * exec.h (section_table_available_memory): Remove declaration.
10312 Move comments to ...
10313 * exec.c (section_table_available_memory): ... here. Make it
10316 2014-02-23 Yao Qi <yao@codesourcery.com>
10318 * exec.c (section_table_read_available_memory): New function.
10319 * exec.h (section_table_read_available_memory): Declare.
10320 * ctf.c (ctf_xfer_partial): Call
10321 section_table_read_available_memory.
10322 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10324 2014-02-23 Yao Qi <yao@codesourcery.com>
10326 * ctf.c (ctf_xfer_partial): Move code to ...
10327 * exec.c (exec_read_partial_read_only): ... it. New function.
10328 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10329 * tracefile.c: Include "exec.h".
10330 * exec.h (exec_read_partial_read_only): Declare.
10332 2014-02-23 Yao Qi <yao@codesourcery.com>
10334 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10335 (tfile_has_memory): Remove.
10336 (init_tfile_ops): Don't set fields to_has_all_memory and
10337 to_has_memory of tfile_ops.
10338 * tracefile.c (tracefile_has_all_memory): New function.
10339 (tracefile_has_memory): New function.
10340 (init_tracefile_ops): Initialize fields to_has_all_memory and
10341 to_has_memory of 'ops'.
10343 2014-02-23 Yao Qi <yao@codesourcery.com>
10345 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10346 (ctf_thread_alive, ctf_get_trace_status): Remove.
10347 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10348 init_tracefile_ops.
10349 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10350 (tfile_has_stack, tfile_has_registers): Remove.
10351 (tfile_thread_alive): Remove.
10352 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10353 init_tracefile_ops.
10354 * tracefile.c (tracefile_has_stack): New function.
10355 (tracefile_has_registers): New function.
10356 (tracefile_thread_alive): New function.
10357 (tracefile_get_trace_status): New function.
10358 (init_tracefile_ops): New function.
10359 * tracefile.h (init_tracefile_ops): Declare.
10361 2014-02-23 Yao Qi <yao@codesourcery.com>
10363 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10364 (O_LARGEFILE): Likewise.
10365 (tfile_ops): Likewise.
10366 (TRACE_HEADER_SIZE): Likewise.
10367 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10368 (cur_data_size): Likewise.
10369 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10370 (tfile_close, tfile_files_info): Likewise.
10371 (tfile_get_trace_status): Likewise.
10372 (tfile_get_tracepoint_status): Likewise.
10373 (tfile_get_traceframe_address): Likewise.
10374 (tfile_trace_find, match_blocktype): Likewise.
10375 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10376 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10377 (tfile_get_trace_state_variable_value): Likewise.
10378 (tfile_has_all_memory, tfile_has_memory): Likewise.
10379 (tfile_has_stack, tfile_has_registers): Likewise.
10380 (tfile_thread_alive, build_traceframe_info): Likewise.
10381 (tfile_traceframe_info, init_tfile_ops): Likewise.
10382 (_initialize_tracepoint): Don't call init_tfile_ops
10383 and add_target_with_completer.
10384 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10385 exec.h, completer.h and filenames.h.
10386 (_initialize_tracefile_tfile): New function.
10388 2014-02-23 Yao Qi <yao@codesourcery.com>
10390 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10392 (HFILES_NO_SRCDIR): Add tracefile.h.
10393 * ctf.c: Include "tracefile.h".
10394 * tracefile.h: New file.
10395 * tracefile.c: New file
10396 * tracefile-tfile.c: New file.
10397 * tracepoint.c: Include "tracefile.h".
10398 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10399 (stop_reason_names): Add const.
10400 (trace_file_writer_xfree): Move it to tracefile.c.
10401 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10402 (trace_save_ctf): Likewise.
10403 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10404 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10405 (tfile_write_header, tfile_write_regblock_type): Likewise.
10406 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10407 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10408 (tfile_write_raw_data, tfile_end): Likewise.
10409 (tfile_trace_file_writer_new): Likewise.
10410 (free_uploaded_tp): Make it extern.
10411 (free_uploaded_tsv): Make it extern.
10412 (_initialize_tracepoint): Move code to register command 'tsave'
10414 * tracepoint.h (stop_reason_names): Declare.
10415 (struct trace_frame_write_ops): Move it to tracefile.h.
10416 (struct trace_file_write_ops): Likewise.
10417 (struct trace_file_writer): Likewise.
10418 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10420 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10423 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10425 (get_cores_used_by_process): New parameter num_cores, use it.
10426 (linux_xfer_osdata_processes): Pass num_cores to it.
10427 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10430 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10432 * target.c (memory_xfer_partial): Fix length arg in call to
10433 breakpoint_xfer_memory.
10435 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10438 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10439 number comes after the + or - signs. Adjust length of register
10440 name to be extracted.
10442 2014-02-20 Tom Tromey <tromey@redhat.com>
10444 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10445 (ada_varobj_ops): Mark "extern".
10447 2014-02-20 Tom Tromey <tromey@redhat.com>
10449 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10451 2014-02-20 Doug Evans <xdje42@gmail.com>
10453 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10454 All callers updated.
10455 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10456 All callers updated.
10457 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10458 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10460 2014-02-20 lin zuojian <manjian2006@gmail.com>
10461 Joel Brobecker <brobecker@adacore.com>
10462 Doug Evans <xdje42@gmail.com>
10465 * dwarf2read.c (struct die_info): New member in_process.
10466 (reset_die_in_process): New function.
10467 (process_die): Set it at the start, reset when returning.
10468 (inherit_abstract_dies): Only call process_die if origin_child_die
10469 not already being processed.
10471 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10473 * windows-nat.c (handle_unload_dll): Add function documentation.
10474 (do_initial_windows_stuff): Add comment explaining why we wait
10475 until after inferior initialization has finished before
10476 processing all DLLs.
10478 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10480 * windows-nat.c (get_module_name): Delete.
10481 (windows_get_exec_module_filename): New function, mostly
10482 inspired from get_module_name.
10483 (windows_pid_to_exec_file): Replace call to get_module_name
10484 by call to windows_get_exec_module_filename.
10486 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10488 * windows-nat.c (handle_load_dll): Rewrite this function's
10489 introductory comment. Remove code using get_module_name
10490 to get the DLL's name.
10492 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10494 * windows-nat.c (get_windows_debug_event): Ignore
10495 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10496 if windows_initialization_done == 0.
10497 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10498 Adjust implementation to always load all DLLs.
10499 (do_initial_windows_stuff): Replace call to
10500 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10502 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10504 * windows-nat.c (_initialize_windows_nat): Deprecate the
10505 "dll-symbols" command. Turn the "add-shared-symbol-files"
10506 and "assf" aliases into commands, and deprecate them as well.
10507 * NEWS: Add entry explaining that "dll-symbols" and its two
10508 aliases are now deprecated.
10510 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10512 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10513 new-line in debug string. Remove trailing spaces.
10515 2014-02-19 Stan Shebs <stan@codesourcery.com>
10517 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10519 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10521 * NEWS: Add entry for the new feature
10522 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10525 2014-02-19 Stan Shebs <stan@codesourcery.com>
10527 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10529 2014-02-19 Pedro Alves <palves@redhat.com>
10531 * common/ptid.h (struct ptid): Mention that process_stratum
10532 targets should prefer ptid.lwp.
10534 2014-02-19 Pedro Alves <palves@redhat.com>
10536 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10537 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10538 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10539 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10540 store remote thread ids rather than ptid.tid.
10541 (_initialize_remote): Adjust.
10543 2014-02-19 Tom Tromey <tromey@redhat.com>
10545 * target.c (target_get_unwinder): Rewrite.
10546 (target_get_tailcall_unwinder): Rewrite.
10547 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10548 (record_btrace_to_get_tailcall_unwinder): New function.
10549 (init_record_btrace_ops): Update.
10550 * target.h (struct target_ops) <to_get_unwinder,
10551 to_get_tailcall_unwinder>: Now function pointers. Use
10552 TARGET_DEFAULT_RETURN.
10554 2014-02-19 Tom Tromey <tromey@redhat.com>
10556 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10558 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10560 2014-02-19 Tom Tromey <tromey@redhat.com>
10562 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10564 * target-delegates.c: Rebuild.
10565 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10566 TARGET_DEFAULT_FUNC.
10567 * target.c (default_target_decr_pc_after_break): Rename from
10568 forward_target_decr_pc_after_break. Simplify.
10569 (target_decr_pc_after_break): Rely on delegation.
10571 2014-02-19 Tom Tromey <tromey@redhat.com>
10573 * target.c (update_current_target): Do not INHERIT to_doc or
10574 to_magic. Do not de_fault to_open or to_close.
10576 2014-02-19 Tom Tromey <tromey@redhat.com>
10578 * gcore.h (objfile_find_memory_regions): Declare.
10579 * gcore.c (objfile_find_memory_regions): No longer static. Add
10581 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10582 * exec.c: Include gcore.h.
10583 (exec_set_find_memory_regions): Remove.
10584 (exec_find_memory_regions): Remove.
10585 (exec_do_find_memory_regions): Remove.
10586 (init_exec_ops): Update.
10587 * defs.h (exec_set_find_memory_regions): Remove.
10589 2014-02-19 Tom Tromey <tromey@redhat.com>
10591 * target-delegates.c: Rebuild.
10592 * target.h (struct target_ops) <to_extra_thread_info,
10593 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10594 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10595 not 0, in TARGET_DEFAULT_RETURN.
10597 2014-02-19 Tom Tromey <tromey@redhat.com>
10599 * target.c (complete_target_initialization): Remove casts. Use
10600 return_zero_has_execution.
10601 (return_zero): Add "ignore" argument.
10602 (return_zero_has_execution): New function.
10603 (init_dummy_target): Remove casts. Use
10604 return_zero_has_execution.
10606 2014-02-19 Tom Tromey <tromey@redhat.com>
10608 * target.c (update_current_target): Update comments. Do not
10609 INHERIT to_stratum.
10611 2014-02-19 Tom Tromey <tromey@redhat.com>
10613 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10615 * corelow.c (core_read_description): Delegate when needed.
10616 * remote.c (remote_read_description): Delegate when needed.
10617 * target-delegates.c: Rebuild.
10618 * target.c (target_read_description): Rewrite.
10619 * target.h (struct target_ops) <to_read_description>: Update
10620 comment. Use TARGET_DEFAULT_RETURN.
10622 2014-02-19 Tom Tromey <tromey@redhat.com>
10624 * target-delegates.c: Rebuild.
10625 * target.c (update_current_target): Don't inherit or default
10627 (find_default_run_target): Check against delegate_can_run.
10628 * target.h (struct target_ops) <to_can_run>: Use
10629 TARGET_DEFAULT_RETURN.
10631 2014-02-19 Tom Tromey <tromey@redhat.com>
10633 * target-delegates.c: Rebuild.
10634 * target.c (target_disconnect): Unconditionally delegate.
10635 * target.h (struct target_ops) <to_disconnect>: Use
10636 TARGET_DEFAULT_NORETURN.
10638 2014-02-19 Tom Tromey <tromey@redhat.com>
10640 * record.c (record_stop): Unconditionally delegate.
10641 * target-delegates.c: Rebuild.
10642 * target.c (target_stop_recording): Unconditionally delegate.
10643 * target.h (struct target_ops) <to_stop_recording>: Use
10644 TARGET_DEFAULT_IGNORE.
10646 2014-02-19 Tom Tromey <tromey@redhat.com>
10648 * target-delegates.c: Rebuild.
10649 * target.c (target_enable_btrace): Unconditionally delegate.
10650 * target.h (struct target_ops) <to_enable_btrace>: Use
10651 TARGET_DEFAULT_NORETURN.
10653 2014-02-19 Tom Tromey <tromey@redhat.com>
10655 * target-delegates.c: Rebuild.
10656 * target.c (target_read_btrace): Unconditionally delegate.
10657 * target.h (struct target_ops) <to_read_btrace>: Use
10658 TARGET_DEFAULT_NORETURN.
10660 2014-02-19 Tom Tromey <tromey@redhat.com>
10662 * target-delegates.c: Rebuild.
10663 * target.c (target_teardown_btrace): Unconditionally delegate.
10664 * target.h (struct target_ops) <to_teardown_btrace>: Use
10665 TARGET_DEFAULT_NORETURN.
10667 2014-02-19 Tom Tromey <tromey@redhat.com>
10669 * target-delegates.c: Rebuild.
10670 * target.c (target_disable_btrace): Unconditionally delegate.
10671 * target.h (struct target_ops) <to_disable_btrace>: Use
10672 TARGET_DEFAULT_NORETURN.
10674 2014-02-19 Tom Tromey <tromey@redhat.com>
10676 * target-delegates.c: Rebuild.
10677 * target.c (default_search_memory): New function.
10678 (simple_search_memory): Update comment.
10679 (target_search_memory): Unconditionally delegate.
10680 * target.h (struct target_ops) <to_search_memory>: Use
10681 TARGET_DEFAULT_FUNC.
10683 2014-02-19 Tom Tromey <tromey@redhat.com>
10685 * auxv.c (default_auxv_parse): No longer static.
10686 (target_auxv_parse): Unconditionally delegate.
10687 * auxv.h (default_auxv_parse): Declare.
10688 * target-delegates.c: Rebuild.
10689 * target.c: Include auxv.h.
10690 * target.h (struct target_ops) <to_auxv_parse>: Use
10691 TARGET_DEFAULT_FUNC.
10693 2014-02-19 Tom Tromey <tromey@redhat.com>
10695 * target-delegates.c: Rebuild.
10696 * target.c (target_memory_map): Unconditionally delegate.
10697 * target.h (struct target_ops) <to_memory_map>: Use
10698 TARGET_DEFAULT_RETURN.
10700 2014-02-19 Tom Tromey <tromey@redhat.com>
10702 * target-delegates.c: Rebuild.
10703 * target.c (target_thread_alive): Unconditionally delegate.
10704 * target.h (struct target_ops) <to_thread_alive>: Use
10705 TARGET_DEFAULT_RETURN.
10707 2014-02-19 Tom Tromey <tromey@redhat.com>
10709 * target-delegates.c: Rebuild.
10710 * target.c (target_save_record): Unconditionally delegate.
10711 * target.h (struct target_ops) <to_save_record>: Use
10712 TARGET_DEFAULT_NORETURN.
10714 2014-02-19 Tom Tromey <tromey@redhat.com>
10716 * target-delegates.c: Rebuild.
10717 * target.c (target_delete_record): Unconditionally delegate.
10718 * target.h (struct target_ops) <to_delete_record>: Use
10719 TARGET_DEFAULT_NORETURN.
10721 2014-02-19 Tom Tromey <tromey@redhat.com>
10723 * target-delegates.c: Rebuild.
10724 * target.c (target_record_is_replaying): Unconditionally
10726 * target.h (struct target_ops) <to_record_is_replaying>: Use
10727 TARGET_DEFAULT_RETURN.
10729 2014-02-19 Tom Tromey <tromey@redhat.com>
10731 * target-delegates.c: Rebuild.
10732 * target.c (target_goto_record_begin): Unconditionally delegate.
10733 * target.h (struct target_ops) <to_goto_record_begin>: Use
10734 TARGET_DEFAULT_NORETURN.
10736 2014-02-19 Tom Tromey <tromey@redhat.com>
10738 * target-delegates.c: Rebuild.
10739 * target.c (target_goto_record_end): Unconditionally delegate.
10740 * target.h (struct target_ops) <to_goto_record_end>: Use
10741 TARGET_DEFAULT_NORETURN.
10743 2014-02-19 Tom Tromey <tromey@redhat.com>
10745 * target-delegates.c: Rebuild.
10746 * target.c (target_goto_record): Unconditionally delegate.
10747 * target.h (struct target_ops) <to_goto_record>: Use
10748 TARGET_DEFAULT_NORETURN.
10750 2014-02-19 Tom Tromey <tromey@redhat.com>
10752 * target-delegates.c: Rebuild.
10753 * target.c (target_insn_history): Unconditionally delegate.
10754 * target.h (struct target_ops) <to_insn_history>: Use
10755 TARGET_DEFAULT_NORETURN.
10757 2014-02-19 Tom Tromey <tromey@redhat.com>
10759 * target-delegates.c: Rebuild.
10760 * target.c (target_insn_history_from): Unconditionally delegate.
10761 * target.h (struct target_ops) <to_insn_history_from>: Use
10762 TARGET_DEFAULT_NORETURN.
10764 2014-02-19 Tom Tromey <tromey@redhat.com>
10766 * target-delegates.c: Rebuild.
10767 * target.c (target_insn_history_range): Unconditionally delegate.
10768 * target.h (struct target_ops) <to_insn_history_range>: Use
10769 TARGET_DEFAULT_NORETURN.
10771 2014-02-19 Tom Tromey <tromey@redhat.com>
10773 * target-delegates.c: Rebuild.
10774 * target.c (target_call_history): Unconditionally delegate.
10775 * target.h (struct target_ops) <to_call_history>: Use
10776 TARGET_DEFAULT_NORETURN.
10778 2014-02-19 Tom Tromey <tromey@redhat.com>
10780 * target-delegates.c: Rebuild.
10781 * target.c (target_call_history_from): Unconditionally delegate.
10782 * target.h (struct target_ops) <to_call_history_from>: Use
10783 TARGET_DEFAULT_NORETURN.
10785 2014-02-19 Tom Tromey <tromey@redhat.com>
10787 * target-delegates.c: Rebuild.
10788 * target.c (target_call_history_range): Unconditionally delegate.
10789 * target.h (struct target_ops) <to_call_history_range>: Use
10790 TARGET_DEFAULT_NORETURN.
10792 2014-02-19 Tom Tromey <tromey@redhat.com>
10794 * target-delegates.c: Rebuild.
10795 * target.c (target_verify_memory): Unconditionally delegate.
10796 * target.h (struct target_ops) <to_verify_memory>: Use
10797 TARGET_DEFAULT_NORETURN.
10799 2014-02-19 Tom Tromey <tromey@redhat.com>
10801 * target-delegates.c: Rebuild.
10802 * target.c (target_core_of_thread): Unconditionally delegate.
10803 * target.h (struct target_ops) <to_core_of_thread>: Use
10804 TARGET_DEFAULT_RETURN.
10806 2014-02-19 Tom Tromey <tromey@redhat.com>
10808 * target-delegates.c: Rebuild.
10809 * target.c (target_flash_done): Unconditionally delegate.
10810 * target.h (struct target_ops) <to_flash_done>: Use
10811 TARGET_DEFAULT_NORETURN.
10813 2014-02-19 Tom Tromey <tromey@redhat.com>
10815 * target-delegates.c: Rebuild.
10816 * target.c (target_flash_erase): Unconditionally delegate.
10817 * target.h (struct target_ops) <to_flash_erase>: Use
10818 TARGET_DEFAULT_NORETURN.
10820 2014-02-19 Tom Tromey <tromey@redhat.com>
10822 * target-delegates.c: Rebuild.
10823 * target.c (target_get_section_table): Unconditionally delegate.
10824 * target.h (struct target_ops) <to_get_section_table>: Use
10825 TARGET_DEFAULT_RETURN.
10827 2014-02-19 Tom Tromey <tromey@redhat.com>
10829 * target-delegates.c: Rebuild.
10830 * target.c (target_pid_to_str): Unconditionally delegate.
10831 (init_dummy_target): Don't initialize to_pid_to_str.
10832 (default_pid_to_str): Rename from dummy_pid_to_str.
10833 * target.h (struct target_ops) <to_pid_to_str>: Use
10834 TARGET_DEFAULT_FUNC.
10836 2014-02-19 Tom Tromey <tromey@redhat.com>
10838 * target-delegates.c: Rebuild.
10839 * target.c (target_find_new_threads): Unconditionally delegate.
10840 * target.h (struct target_ops) <to_find_new_threads>: Use
10841 TARGET_DEFAULT_RETURN.
10843 2014-02-19 Tom Tromey <tromey@redhat.com>
10845 * target-delegates.c: Rebuild.
10846 * target.c (target_program_signals): Unconditionally delegate.
10847 * target.h (struct target_ops) <to_program_signals>: Use
10848 TARGET_DEFAULT_IGNORE.
10850 2014-02-19 Tom Tromey <tromey@redhat.com>
10852 * target-delegates.c: Rebuild.
10853 * target.c (target_pass_signals): Unconditionally delegate.
10854 * target.h (struct target_ops) <to_pass_signals>: Use
10855 TARGET_DEFAULT_IGNORE.
10857 2014-02-19 Tom Tromey <tromey@redhat.com>
10859 * target-delegates.c: Rebuild.
10860 * target.c (default_mourn_inferior): New function.
10861 (target_mourn_inferior): Unconditionally delegate.
10862 * target.h (struct target_ops) <to_mourn_inferior>: Use
10863 TARGET_DEFAULT_FUNC.
10865 2014-02-19 Tom Tromey <tromey@redhat.com>
10867 * target-delegates.c: Rebuild.
10868 * target.c (default_follow_fork): New function.
10869 (target_follow_fork): Unconditionally delegate.
10870 * target.h (struct target_ops) <to_follow_fork>: Use
10871 TARGET_DEFAULT_FUNC.
10873 2014-02-19 Tom Tromey <tromey@redhat.com>
10875 * target-delegates.c: Rebuild.
10876 * target.c (target_kill): Unconditionally delegate.
10877 * target.h (struct target_ops) <to_kill>: Use
10878 TARGET_DEFAULT_NORETURN.
10880 2014-02-19 Tom Tromey <tromey@redhat.com>
10882 * target-delegates.c: Rebuild.
10883 * target.c (target_masked_watch_num_registers): Unconditionally
10885 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10886 Use TARGET_DEFAULT_RETURN.
10888 2014-02-19 Tom Tromey <tromey@redhat.com>
10890 * target-delegates.c: Rebuild.
10891 * target.c (target_remove_mask_watchpoint): Unconditionally
10893 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10894 TARGET_DEFAULT_RETURN.
10896 2014-02-19 Tom Tromey <tromey@redhat.com>
10898 * target-delegates.c: Rebuild.
10899 * target.c (target_insert_mask_watchpoint): Unconditionally
10901 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10902 TARGET_DEFAULT_RETURN.
10904 2014-02-19 Tom Tromey <tromey@redhat.com>
10906 * target-delegates.c: Rebuild.
10907 * target.c (target_ranged_break_num_registers): Unconditionally
10909 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10910 Use TARGET_DEFAULT_RETURN.
10912 2014-02-19 Tom Tromey <tromey@redhat.com>
10914 * target-delegates.c: Rebuild.
10915 * target.c (target_fetch_registers): Unconditionally delegate.
10916 * target.h (struct target_ops) <to_fetch_registers>: Use
10917 TARGET_DEFAULT_NORETURN.
10919 2014-02-19 Tom Tromey <tromey@redhat.com>
10921 * target-delegates.c: Rebuild.
10922 * target.c (update_current_target): Don't inherit or default
10924 * target.h (struct target_ops) <to_stop>: Use
10925 TARGET_DEFAULT_IGNORE.
10927 2014-02-19 Tom Tromey <tromey@redhat.com>
10929 * target-delegates.c: Rebuild.
10930 * target.c (update_current_target): Don't inherit or default
10931 to_can_run_breakpoint_commands.
10932 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10933 Use TARGET_DEFAULT_RETURN.
10935 2014-02-19 Tom Tromey <tromey@redhat.com>
10937 * target-delegates.c: Rebuild.
10938 * target.c (update_current_target): Don't inherit or default
10939 to_supports_evaluation_of_breakpoint_conditions.
10940 * target.h (struct target_ops)
10941 <to_supports_evaluation_of_breakpoint_conditions>: Use
10942 TARGET_DEFAULT_RETURN.
10944 2014-02-19 Tom Tromey <tromey@redhat.com>
10946 * target-delegates.c: Rebuild.
10947 * target.c (update_current_target): Don't inherit or default
10948 to_augmented_libraries_svr4_read.
10949 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10950 Use TARGET_DEFAULT_RETURN.
10952 2014-02-19 Tom Tromey <tromey@redhat.com>
10954 * target-delegates.c: Rebuild.
10955 * target.c (update_current_target): Don't inherit or default
10957 * target.h (struct target_ops) <to_can_use_agent>: Use
10958 TARGET_DEFAULT_RETURN.
10960 2014-02-19 Tom Tromey <tromey@redhat.com>
10962 * target-delegates.c: Rebuild.
10963 * target.c (update_current_target): Don't inherit or default
10965 * target.h (struct target_ops) <to_use_agent>: Use
10966 TARGET_DEFAULT_NORETURN.
10968 2014-02-19 Tom Tromey <tromey@redhat.com>
10970 * target-delegates.c: Rebuild.
10971 * target.c (update_current_target): Don't inherit or default
10972 to_traceframe_info.
10973 (return_null): Remove.
10974 * target.h (struct target_ops) <to_traceframe_info>: Use
10975 TARGET_DEFAULT_RETURN.
10977 2014-02-19 Tom Tromey <tromey@redhat.com>
10979 * target-delegates.c: Rebuild.
10980 * target.c (update_current_target): Don't inherit or default
10981 to_static_tracepoint_markers_by_strid.
10982 * target.h (struct target_ops)
10983 <to_static_tracepoint_markers_by_strid>: Use
10984 TARGET_DEFAULT_NORETURN.
10986 2014-02-19 Tom Tromey <tromey@redhat.com>
10988 * target-delegates.c: Rebuild.
10989 * target.c (update_current_target): Don't inherit or default
10990 to_static_tracepoint_marker_at.
10991 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10992 Use TARGET_DEFAULT_RETURN.
10994 2014-02-19 Tom Tromey <tromey@redhat.com>
10996 * target-delegates.c: Rebuild.
10997 * target.c (update_current_target): Don't inherit or default
10998 to_set_permissions.
10999 * target.h (struct target_ops) <to_set_permissions>: Use
11000 TARGET_DEFAULT_IGNORE.
11002 2014-02-19 Tom Tromey <tromey@redhat.com>
11004 * target-delegates.c: Rebuild.
11005 * target.c (update_current_target): Don't inherit or default
11006 to_get_tib_address.
11007 * target.h (struct target_ops) <to_get_tib_address>: Use
11008 TARGET_DEFAULT_NORETURN.
11010 2014-02-19 Tom Tromey <tromey@redhat.com>
11012 * target-delegates.c: Rebuild.
11013 * target.c (update_current_target): Don't inherit or default
11014 to_set_trace_notes.
11015 * target.h (struct target_ops) <to_set_trace_notes>: Use
11016 TARGET_DEFAULT_RETURN.
11018 2014-02-19 Tom Tromey <tromey@redhat.com>
11020 * target-delegates.c: Rebuild.
11021 * target.c (update_current_target): Don't initialize
11022 to_set_trace_buffer_size.
11023 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11024 TARGET_DEFAULT_IGNORE.
11026 2014-02-19 Tom Tromey <tromey@redhat.com>
11028 * target-delegates.c: Rebuild.
11029 * target.c (update_current_target): Don't inherit or default
11030 to_set_circular_trace_buffer.
11031 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11032 TARGET_DEFAULT_IGNORE.
11034 2014-02-19 Tom Tromey <tromey@redhat.com>
11036 * target-delegates.c: Rebuild.
11037 * target.c (update_current_target): Don't inherit or default
11038 to_set_disconnected_tracing.
11039 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11040 TARGET_DEFAULT_IGNORE.
11042 2014-02-19 Tom Tromey <tromey@redhat.com>
11044 * target-delegates.c: Rebuild.
11045 * target.c (update_current_target): Don't inherit or default
11046 to_get_min_fast_tracepoint_insn_len.
11047 (return_minus_one): Remove.
11048 * target.h (struct target_ops)
11049 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11051 2014-02-19 Tom Tromey <tromey@redhat.com>
11053 * target-delegates.c: Rebuild.
11054 * target.c (update_current_target): Don't inherit or default
11055 to_get_raw_trace_data.
11056 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11057 TARGET_DEFAULT_NORETURN.
11059 2014-02-19 Tom Tromey <tromey@redhat.com>
11061 * target-delegates.c: Rebuild.
11062 * target.c (update_current_target): Don't inherit or default
11063 to_upload_trace_state_variables.
11064 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11065 Use TARGET_DEFAULT_RETURN.
11067 2014-02-19 Tom Tromey <tromey@redhat.com>
11069 * target-delegates.c: Rebuild.
11070 * target.c (update_current_target): Don't inherit or default
11071 to_upload_tracepoints.
11072 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11073 TARGET_DEFAULT_RETURN.
11075 2014-02-19 Tom Tromey <tromey@redhat.com>
11077 * target-delegates.c: Rebuild.
11078 * target.c (update_current_target): Don't inherit or default
11079 to_save_trace_data.
11080 * target.h (struct target_ops) <to_save_trace_data>: Use
11081 TARGET_DEFAULT_NORETURN.
11083 2014-02-19 Tom Tromey <tromey@redhat.com>
11085 * target-delegates.c: Rebuild.
11086 * target.c (update_current_target): Don't inherit or default
11087 to_get_trace_state_variable_value.
11088 * target.h (struct target_ops)
11089 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11091 2014-02-19 Tom Tromey <tromey@redhat.com>
11093 * target-delegates.c: Rebuild.
11094 * target.c (update_current_target): Don't inherit or default
11096 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11098 2014-02-19 Tom Tromey <tromey@redhat.com>
11100 * target-delegates.c: Rebuild.
11101 * target.c (update_current_target): Don't inherit or default
11103 * target.h (struct target_ops) <to_trace_stop>: Use
11104 TARGET_DEFAULT_NORETURN.
11106 2014-02-19 Tom Tromey <tromey@redhat.com>
11108 * target-delegates.c: Rebuild.
11109 * target.c (update_current_target): Don't inherit or default
11110 to_get_tracepoint_status.
11111 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11112 TARGET_DEFAULT_NORETURN.
11114 2014-02-19 Tom Tromey <tromey@redhat.com>
11116 * target-delegates.c: Rebuild.
11117 * target.c (update_current_target): Don't inherit or default
11118 to_get_trace_status.
11119 * target.h (struct target_ops) <to_get_trace_status>: Use
11120 TARGET_DEFAULT_RETURN.
11122 2014-02-19 Tom Tromey <tromey@redhat.com>
11124 * target-delegates.c: Rebuild.
11125 * target.c (update_current_target): Don't inherit or default
11127 * target.h (struct target_ops) <to_trace_start>: Use
11128 TARGET_DEFAULT_NORETURN.
11130 2014-02-19 Tom Tromey <tromey@redhat.com>
11132 * target-delegates.c: Rebuild.
11133 * target.c (update_current_target): Don't inherit or default
11134 to_trace_set_readonly_regions.
11135 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11136 Use TARGET_DEFAULT_NORETURN.
11138 2014-02-19 Tom Tromey <tromey@redhat.com>
11140 * target-delegates.c: Rebuild.
11141 * target.c (update_current_target): Don't inherit or default
11142 to_disable_tracepoint.
11143 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11144 TARGET_DEFAULT_NORETURN.
11146 2014-02-19 Tom Tromey <tromey@redhat.com>
11148 * target-delegates.c: Rebuild.
11149 * target.c (update_current_target): Don't inherit or default
11150 to_enable_tracepoint.
11151 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11152 TARGET_DEFAULT_NORETURN.
11154 2014-02-19 Tom Tromey <tromey@redhat.com>
11156 * target-delegates.c: Rebuild.
11157 * target.c (update_current_target): Don't inherit or default
11158 to_download_trace_state_variable.
11159 * target.h (struct target_ops) <to_download_trace_state_variable>:
11160 Use TARGET_DEFAULT_NORETURN.
11162 2014-02-19 Tom Tromey <tromey@redhat.com>
11164 * target-delegates.c: Rebuild.
11165 * target.c (update_current_target): Don't inherit or default
11166 to_can_download_tracepoint.
11167 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11168 TARGET_DEFAULT_RETURN.
11170 2014-02-19 Tom Tromey <tromey@redhat.com>
11172 * target-delegates.c: Rebuild.
11173 * target.c (update_current_target): Don't inherit or default
11174 to_download_tracepoint.
11175 * target.h (struct target_ops) <to_download_tracepoint>: Use
11176 TARGET_DEFAULT_NORETURN.
11178 2014-02-19 Tom Tromey <tromey@redhat.com>
11180 * target-delegates.c: Rebuild.
11181 * target.c (update_current_target): Don't inherit or default
11183 * target.h (struct target_ops) <to_trace_init>: Use
11184 TARGET_DEFAULT_RETURN.
11186 2014-02-19 Tom Tromey <tromey@redhat.com>
11188 * target-delegates.c: Rebuild.
11189 * target.c (update_current_target): Don't inherit or default
11190 to_supports_string_tracing.
11191 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11192 TARGET_DEFAULT_RETURN.
11194 2014-02-19 Tom Tromey <tromey@redhat.com>
11196 * target-delegates.c: Rebuild.
11197 * target.c (update_current_target): Don't inherit or default
11198 to_supports_enable_disable_tracepoint.
11199 * target.h (struct target_ops)
11200 <to_supports_enable_disable_tracepoint>: Use
11201 TARGET_DEFAULT_RETURN.
11203 2014-02-19 Tom Tromey <tromey@redhat.com>
11205 * target-delegates.c: Rebuild.
11206 * target.c (update_current_target): Don't inherit or default
11207 to_supports_multi_process.
11208 * target.h (struct target_ops) <to_supports_multi_process>: Use
11209 TARGET_DEFAULT_RETURN.
11211 2014-02-19 Tom Tromey <tromey@redhat.com>
11213 * target-delegates.c: Rebuild.
11214 * target.c (update_current_target): Don't inherit or default
11215 to_get_ada_task_ptid.
11216 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11217 TARGET_DEFAULT_FUNC.
11219 2014-02-19 Tom Tromey <tromey@redhat.com>
11221 * target-delegates.c: Rebuild.
11222 * target.c (update_current_target): Don't inherit or default
11223 to_thread_architecture.
11224 * target.h (struct target_ops) <to_thread_architecture>: Use
11225 TARGET_DEFAULT_FUNC.
11227 2014-02-19 Tom Tromey <tromey@redhat.com>
11229 * target-delegates.c: Rebuild.
11230 * target.c (update_current_target): Don't inherit or default
11231 to_execution_direction.
11232 * target.h (struct target_ops) <to_execution_direction>: Use
11233 TARGET_DEFAULT_FUNC.
11235 2014-02-19 Tom Tromey <tromey@redhat.com>
11237 * target-delegates.c: Rebuild.
11238 * target.c (update_current_target): Don't inherit or default
11239 to_can_execute_reverse.
11240 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11241 TARGET_DEFAULT_RETURN.
11242 (target_can_execute_reverse): Unconditionally delegate.
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_goto_bookmark): Remove.
11250 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11251 * target.h (struct target_ops) <to_goto_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
11259 (dummy_get_bookmark): Remove.
11260 (init_dummy_target): Don't inherit or default to_get_bookmark.
11261 * target.h (struct target_ops) <to_get_bookmark>: Use
11262 TARGET_DEFAULT_NORETURN
11264 2014-02-19 Tom Tromey <tromey@redhat.com>
11266 * target-delegates.c: Rebuild.
11267 * target.c (update_current_target): Don't inherit or default
11268 to_make_corefile_notes.
11269 (init_dummy_target): Don't initialize to_make_corefile_notes.
11270 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11271 TARGET_DEFAULT_FUNC.
11273 2014-02-19 Tom Tromey <tromey@redhat.com>
11275 * target-delegates.c: Rebuild.
11276 * target.c (update_current_target): Don't inherit or default
11277 to_find_memory_regions.
11278 (init_dummy_target): Don't initialize to_find_memory_regions.
11279 * target.h (struct target_ops) <to_find_memory_regions>: Use
11280 TARGET_DEFAULT_FUNC.
11282 2014-02-19 Tom Tromey <tromey@redhat.com>
11284 * target-delegates.c: Rebuild.
11285 * target.c (update_current_target): Don't inherit or default
11287 * target.h (struct target_ops) <to_log_command>: Use
11288 TARGET_DEFAULT_IGNORE.
11289 (target_log_command): Unconditionally delegate.
11291 2014-02-19 Tom Tromey <tromey@redhat.com>
11293 * target-delegates.c: Rebuild.
11294 * target.c (update_current_target): Don't inherit or default
11295 to_pid_to_exec_file.
11296 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11297 TARGET_DEFAULT_RETURN.
11299 2014-02-19 Tom Tromey <tromey@redhat.com>
11301 * target-delegates.c: Rebuild.
11302 * target.c (update_current_target): Don't inherit or default
11304 (target_thread_name): Unconditionally delegate.
11305 * target.h (struct target_ops) <to_thread_name>: Use
11306 TARGET_DEFAULT_RETURN.
11308 2014-02-19 Tom Tromey <tromey@redhat.com>
11310 * target-delegates.c: Rebuild.
11311 * target.c (update_current_target): Don't inherit or default
11312 to_extra_thread_info.
11313 * target.h (struct target_ops) <to_extra_thread_info>: Use
11314 TARGET_DEFAULT_RETURN.
11316 2014-02-19 Tom Tromey <tromey@redhat.com>
11318 * target-delegates.c: Rebuild.
11319 * target.c (update_current_target): Don't inherit or default
11321 * target.h (struct target_ops) <to_has_exited>: Use
11322 TARGET_DEFAULT_RETURN..
11324 2014-02-19 Tom Tromey <tromey@redhat.com>
11326 * target-delegates.c: Rebuild.
11327 * target.c (update_current_target): Don't inherit or default
11328 to_set_syscall_catchpoint.
11329 (return_one): Remove.
11330 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11331 TARGET_DEFAULT_RETURN.
11333 2014-02-19 Tom Tromey <tromey@redhat.com>
11335 * target-delegates.c: Rebuild.
11336 * target.c (update_current_target): Don't inherit or default
11337 to_insert_exec_catchpoint.
11338 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11339 TARGET_DEFAULT_RETURN.
11341 2014-01-08 Tom Tromey <tromey@redhat.com>
11343 * target-delegates.c: Rebuild.
11344 * target.c (update_current_target): Don't inherit or default
11345 to_insert_exec_catchpoint.
11346 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11347 TARGET_DEFAULT_RETURN.
11349 2014-02-19 Tom Tromey <tromey@redhat.com>
11351 * target-delegates.c: Rebuild.
11352 * target.c (update_current_target): Don't inherit or default
11353 to_remove_vfork_catchpoint.
11354 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11355 TARGET_DEFAULT_RETURN.
11357 2014-02-19 Tom Tromey <tromey@redhat.com>
11359 * target-delegates.c: Rebuild.
11360 * target.c (update_current_target): Don't inherit or default
11361 to_insert_vfork_catchpoint.
11362 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11363 TARGET_DEFAULT_RETURN.
11365 2014-02-19 Tom Tromey <tromey@redhat.com>
11367 * target-delegates.c: Rebuild.
11368 * target.c (update_current_target): Don't inherit or default
11369 to_remove_fork_catchpoint.
11370 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11371 TARGET_DEFAULT_RETURN.
11373 2014-02-19 Tom Tromey <tromey@redhat.com>
11375 * target-delegates.c: Rebuild.
11376 * target.c (update_current_target): Don't inherit or default
11377 to_insert_fork_catchpoint.
11378 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11379 TARGET_DEFAULT_RETURN.
11381 2014-02-19 Tom Tromey <tromey@redhat.com>
11383 * target-delegates.c: Rebuild.
11384 * target.c (update_current_target): Don't inherit or default
11385 to_post_startup_inferior.
11386 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11387 TARGET_DEFAULT_IGNORE.
11389 2014-02-19 Tom Tromey <tromey@redhat.com>
11391 * target-delegates.c: Rebuild.
11392 * target.c (update_current_target): Don't inherit or default
11394 * target.h (struct target_ops) <to_load>: Use
11395 TARGET_DEFAULT_NORETURN.
11397 2014-02-19 Tom Tromey <tromey@redhat.com>
11399 * target-delegates.c: Rebuild.
11400 * target.c (update_current_target): Don't inherit or default
11402 * target.h (struct target_ops) <to_terminal_info>: Use
11403 TARGET_DEFAULT_FUNC.
11405 2014-02-19 Tom Tromey <tromey@redhat.com>
11407 * target-delegates.c: Rebuild.
11408 * target.c (update_current_target): Don't inherit or default
11409 to_terminal_save_ours.
11410 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11411 TARGET_DEFAULT_IGNORE.
11413 2014-02-19 Tom Tromey <tromey@redhat.com>
11415 * target-delegates.c: Rebuild.
11416 * target.c (update_current_target): Don't inherit or default
11418 * target.h (struct target_ops) <to_terminal_ours>: Use
11419 TARGET_DEFAULT_IGNORE.
11421 2014-02-19 Tom Tromey <tromey@redhat.com>
11423 * target-delegates.c: Rebuild.
11424 * target.c (update_current_target): Don't inherit or default
11425 to_terminal_ours_for_output.
11426 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11427 TARGET_DEFAULT_IGNORE.
11429 2014-02-19 Tom Tromey <tromey@redhat.com>
11431 * target-delegates.c: Rebuild.
11432 * target.c (update_current_target): Don't inherit or default
11433 to_terminal_inferior.
11434 * target.h (struct target_ops) <to_terminal_inferior>: Use
11435 TARGET_DEFAULT_IGNORE.
11437 2014-02-19 Tom Tromey <tromey@redhat.com>
11439 * target-delegates.c: Rebuild.
11440 * target.c (update_current_target): Don't inherit or default
11442 * target.h (struct target_ops) <to_terminal_init>: Use
11443 TARGET_DEFAULT_IGNORE.
11445 2014-02-19 Tom Tromey <tromey@redhat.com>
11447 * target-delegates.c: Rebuild.
11448 * target.c (update_current_target): Don't inherit or default
11449 to_can_accel_watchpoint_condition.
11450 * target.h (struct target_ops)
11451 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11453 2014-02-19 Tom Tromey <tromey@redhat.com>
11455 * target-delegates.c: Rebuild.
11456 * target.c (update_current_target): Don't inherit or default
11457 to_region_ok_for_hw_watchpoint.
11458 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11459 Use TARGET_DEFAULT_FUNC.
11461 2014-02-19 Tom Tromey <tromey@redhat.com>
11463 * target-delegates.c: Rebuild.
11464 * target.c (update_current_target): Don't inherit or default
11465 to_watchpoint_addr_within_range.
11466 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11467 Use TARGET_DEFAULT_FUNC.
11469 2014-02-19 Tom Tromey <tromey@redhat.com>
11471 * target-delegates.c: Rebuild.
11472 * target.c (update_current_target): Don't inherit or default
11473 to_remove_watchpoint.
11474 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11475 TARGET_DEFAULT_NORETURN.
11477 2014-02-19 Tom Tromey <tromey@redhat.com>
11479 * target-delegates.c: Rebuild.
11480 * target.c (update_current_target): Don't inherit or default
11481 to_insert_watchpoint.
11482 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11483 TARGET_DEFAULT_RETURN.
11485 2014-02-19 Tom Tromey <tromey@redhat.com>
11487 * target-delegates.c: Rebuild.
11488 * target.c (update_current_target): Don't inherit or default
11489 to_remove_hw_breakpoint.
11490 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11491 TARGET_DEFAULT_RETURN.
11493 2014-02-19 Tom Tromey <tromey@redhat.com>
11495 * target-delegates.c: Rebuild.
11496 * target.c (update_current_target): Don't inherit or default
11497 to_insert_hw_breakpoint.
11498 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11499 TARGET_DEFAULT_RETURN.
11501 2014-02-19 Tom Tromey <tromey@redhat.com>
11503 * target-delegates.c: Rebuild.
11504 * target.c (update_current_target): Don't inherit or default
11505 to_can_use_hw_breakpoint.
11506 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11507 TARGET_DEFAULT_RETURN.
11509 2014-02-19 Tom Tromey <tromey@redhat.com>
11511 * target-delegates.c: Rebuild.
11512 * target.c (update_current_target): Don't inherit or default
11514 * target.h (struct target_ops) <to_files_info>: Use
11515 TARGET_DEFAULT_IGNORE.
11517 2014-02-19 Tom Tromey <tromey@redhat.com>
11519 * target-delegates.c: Rebuild.
11520 * target.c (update_current_target): Don't inherit or default
11522 * target.h (struct target_ops) <to_store>: Use
11523 TARGET_DEFAULT_NORETURN.
11525 2014-02-19 Tom Tromey <tromey@redhat.com>
11527 * target-delegates.c: Rebuild.
11528 * target.c (update_current_target): Don't inherit or default
11530 * target.h (struct target_ops) <to_post_attach>: Use
11531 TARGET_DEFAULT_IGNORE.
11533 2014-02-19 Tom Tromey <tromey@redhat.com>
11535 * target-delegates.c: Rebuild.
11536 * target.c (update_current_target): Don't inherit or default
11538 (default_rcmd): New function.
11539 (do_monitor_command): Unconditionally delegate.
11540 * target.h (struct target_ops) <to_rmcd>: Use
11541 TARGET_DEFAULT_FUNC.
11543 2014-02-19 Tom Tromey <tromey@redhat.com>
11545 * target-delegates.c: Rebuild.
11546 * target.c (init_dummy_target): Don't initialize to_attach.
11547 (target_attach): Unconditionally delegate.
11548 * target.h (struct target_ops) <to_attach>: Use
11549 TARGET_DEFAULT_FUNC.
11551 2014-02-19 Tom Tromey <tromey@redhat.com>
11553 * target-delegates.c: Rebuild.
11554 * target.c (target_detach): Unconditionally delegate.
11555 (init_dummy_target): Don't initialize to_detach.
11556 * target.h (struct target_ops) <to_detach>: Use
11557 TARGET_DEFAULT_IGNORE.
11559 2014-02-19 Tom Tromey <tromey@redhat.com>
11561 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11563 (target_augmented_libraries_svr4_read): Add argument.
11564 * target.c (update_current_target): Update.
11565 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11568 2014-02-19 Tom Tromey <tromey@redhat.com>
11570 * target.h (struct target_ops) <to_call_history_range>: Add
11572 * target.c (target_call_history_range): Add argument.
11573 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11575 (record_btrace_call_history_from): Update.
11577 2014-02-19 Tom Tromey <tromey@redhat.com>
11579 * target.h (struct target_ops) <to_call_history_from>: Add
11581 * target.c (target_call_history_from): Add argument.
11582 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11585 2014-02-19 Tom Tromey <tromey@redhat.com>
11587 * target.h (struct target_ops) <to_call_history>: Add argument.
11588 * target.c (target_call_history): Add argument.
11589 * record-btrace.c (record_btrace_call_history): Add 'self'
11592 2014-02-19 Tom Tromey <tromey@redhat.com>
11594 * target.h (struct target_ops) <to_insn_history_range>: Add
11596 * target.c (target_insn_history_range): Add argument.
11597 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11599 (record_btrace_insn_history_from): Update.
11601 2014-02-19 Tom Tromey <tromey@redhat.com>
11603 * target.h (struct target_ops) <to_insn_history_from>: Add
11605 * target.c (target_insn_history_from): Add argument.
11606 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11609 2014-02-19 Tom Tromey <tromey@redhat.com>
11611 * target.h (struct target_ops) <to_insn_history>: Add argument.
11612 * target.c (target_insn_history): Add argument.
11613 * record-btrace.c (record_btrace_insn_history): Add 'self'
11616 2014-02-19 Tom Tromey <tromey@redhat.com>
11618 * target.h (struct target_ops) <to_goto_record>: Add argument.
11619 * target.c (target_goto_record): Add argument.
11620 * record-full.c (record_full_goto): Add 'self' argument.
11621 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11623 2014-02-19 Tom Tromey <tromey@redhat.com>
11625 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11626 * target.c (target_goto_record_end): Add argument.
11627 * record-full.c (record_full_goto_end): Add 'self' argument.
11628 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11630 2014-02-19 Tom Tromey <tromey@redhat.com>
11632 * target.h (struct target_ops) <to_goto_record_begin>: Add
11634 * target.c (target_goto_record_begin): Add argument.
11635 * record-full.c (record_full_goto_begin): Add 'self' argument.
11636 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11639 2014-02-19 Tom Tromey <tromey@redhat.com>
11641 * target.h (struct target_ops) <to_record_is_replaying>: Add
11643 * target.c (target_record_is_replaying): Add argument.
11644 * record-full.c (record_full_is_replaying): Add 'self' argument.
11645 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11647 (record_btrace_xfer_partial, record_btrace_store_registers)
11648 (record_btrace_prepare_to_store, record_btrace_resume)
11649 (record_btrace_wait, record_btrace_decr_pc_after_break)
11650 (record_btrace_find_new_threads, record_btrace_thread_alive):
11653 2014-02-19 Tom Tromey <tromey@redhat.com>
11655 * target.h (struct target_ops) <to_delete_record>: Add argument.
11656 * target.c (target_delete_record): Add argument.
11657 * record-full.c (record_full_delete): Add 'self' argument.
11659 2014-02-19 Tom Tromey <tromey@redhat.com>
11661 * target.h (struct target_ops) <to_save_record>: Add argument.
11662 * target.c (target_save_record): Add argument.
11663 * record-full.c (record_full_save): Add 'self' argument.
11664 (record_full_save): Add 'self' argument.
11666 2014-02-19 Tom Tromey <tromey@redhat.com>
11668 * target.h (struct target_ops) <to_info_record>: Add argument.
11669 * target.c (target_info_record): Add argument.
11670 * record.c (info_record_command): Add argument.
11671 * record-full.c (record_full_info): Add 'self' argument.
11672 * record-btrace.c (record_btrace_info): Add 'self' argument.
11674 2014-02-19 Tom Tromey <tromey@redhat.com>
11676 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11677 * target.c (target_stop_recording): Add argument.
11678 * record.c (record_stop): Add argument.
11679 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11682 2014-02-19 Tom Tromey <tromey@redhat.com>
11684 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11685 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11686 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11688 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11689 (_initialize_amd64_linux_nat): Use it.
11690 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11691 (_initialize_i386_linux_nat): Use it.
11693 2014-02-19 Tom Tromey <tromey@redhat.com>
11695 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11696 * target.c (target_teardown_btrace): Add argument.
11697 * remote.c (remote_teardown_btrace): Add 'self' argument.
11698 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11700 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11703 2014-02-19 Tom Tromey <tromey@redhat.com>
11705 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11706 * target.c (target_disable_btrace): Add argument.
11707 * remote.c (remote_disable_btrace): Add 'self' argument.
11708 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11710 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11713 2014-02-19 Tom Tromey <tromey@redhat.com>
11715 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11716 * target.c (target_enable_btrace): Add argument.
11717 * remote.c (remote_enable_btrace): Add 'self' argument.
11718 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11720 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11723 2014-02-19 Tom Tromey <tromey@redhat.com>
11725 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11726 (target_can_use_agent): Add argument.
11727 * target.c (update_current_target): Update.
11728 * remote.c (remote_can_use_agent): Add 'self' argument.
11729 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11731 2014-02-19 Tom Tromey <tromey@redhat.com>
11733 * target.h (struct target_ops) <to_use_agent>: Add argument.
11734 (target_use_agent): Add argument.
11735 * target.c (update_current_target): Update.
11736 * remote.c (remote_use_agent): Add 'self' argument.
11737 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11739 2014-02-19 Tom Tromey <tromey@redhat.com>
11741 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11742 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11743 (target_traceframe_info): Add argument.
11744 * target.c (update_current_target): Update.
11745 * remote.c (remote_traceframe_info): Add 'self' argument.
11746 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11748 2014-02-19 Tom Tromey <tromey@redhat.com>
11750 * target.h (target_static_tracepoint_markers_by_strid): Add
11752 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11754 * target.c (update_current_target): Update.
11755 * remote.c (struct target_ops)
11756 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11757 * linux-nat.c (struct target_ops)
11758 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11760 2014-02-19 Tom Tromey <tromey@redhat.com>
11762 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11764 (target_static_tracepoint_marker_at): Add argument.
11765 * target.c (update_current_target): Update.
11766 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11769 2014-02-19 Tom Tromey <tromey@redhat.com>
11771 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11772 (target_set_permissions): Add argument.
11773 * target.c (update_current_target): Update.
11774 * remote.c (remote_set_permissions): Add 'self' argument.
11775 (remote_start_remote): Update.
11777 2014-02-19 Tom Tromey <tromey@redhat.com>
11779 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11780 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11781 (target_get_tib_address): Add argument.
11782 * target.c (update_current_target): Update.
11783 * remote.c (remote_get_tib_address): Add 'self' argument.
11785 2014-02-19 Tom Tromey <tromey@redhat.com>
11787 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11788 (target_set_trace_notes): Add argument.
11789 * target.c (update_current_target): Update.
11790 * remote.c (remote_set_trace_notes): Add 'self' argument.
11792 2014-02-19 Tom Tromey <tromey@redhat.com>
11794 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11796 (target_set_trace_buffer_size): Add argument.
11797 * target.c (update_current_target): Update.
11798 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11800 2014-02-19 Tom Tromey <tromey@redhat.com>
11802 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11804 (target_set_circular_trace_buffer): Add argument.
11805 * target.c (update_current_target): Update.
11806 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11809 2014-02-19 Tom Tromey <tromey@redhat.com>
11811 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11813 (target_set_disconnected_tracing): Add argument.
11814 * target.c (update_current_target): Update.
11815 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11817 2014-02-19 Tom Tromey <tromey@redhat.com>
11819 * target.h (struct target_ops)
11820 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11821 (target_get_min_fast_tracepoint_insn_len): Add argument.
11822 * target.c (update_current_target): Update.
11823 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11826 2014-02-19 Tom Tromey <tromey@redhat.com>
11828 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11830 (target_get_raw_trace_data): Add argument.
11831 * target.c (update_current_target): Update.
11832 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11834 2014-02-19 Tom Tromey <tromey@redhat.com>
11836 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11838 (target_upload_trace_state_variables): Add argument.
11839 * target.c (update_current_target): Update.
11840 * remote.c (remote_upload_trace_state_variables): Add 'self'
11842 (remote_start_remote): Update.
11844 2014-02-19 Tom Tromey <tromey@redhat.com>
11846 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11848 (target_upload_tracepoints): Add argument.
11849 * target.c (update_current_target): Update.
11850 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11851 (remote_start_remote): Update.
11853 2014-02-19 Tom Tromey <tromey@redhat.com>
11855 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11856 (target_save_trace_data): Add argument.
11857 * target.c (update_current_target): Update.
11858 * remote.c (remote_save_trace_data): Add 'self' argument.
11860 2014-02-19 Tom Tromey <tromey@redhat.com>
11862 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11864 * target.h (struct target_ops)
11865 <to_get_trace_state_variable_value>: Add argument.
11866 (target_get_trace_state_variable_value): Add argument.
11867 * target.c (update_current_target): Update.
11868 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11870 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11872 2014-02-19 Tom Tromey <tromey@redhat.com>
11874 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11875 * target.h (struct target_ops) <to_trace_find>: Add argument.
11876 (target_trace_find): Add argument.
11877 * target.c (update_current_target): Update.
11878 * remote.c (remote_trace_find): Add 'self' argument.
11879 * ctf.c (ctf_trace_find): Add 'self' argument.
11881 2014-02-19 Tom Tromey <tromey@redhat.com>
11883 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11884 (target_trace_stop): Add argument.
11885 * target.c (update_current_target): Update.
11886 * remote.c (remote_trace_stop): Add 'self' argument.
11888 2014-02-19 Tom Tromey <tromey@redhat.com>
11890 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11891 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11893 (target_get_tracepoint_status): Add argument.
11894 * target.c (update_current_target): Update.
11895 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11897 2014-02-19 Tom Tromey <tromey@redhat.com>
11899 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11900 * target.h (struct target_ops) <to_get_trace_status>: Add
11902 (target_get_trace_status): Add argument.
11903 * target.c (update_current_target): Update.
11904 * remote.c (remote_get_trace_status): Add 'self' argument.
11905 (remote_start_remote, remote_can_download_tracepoint): Update.
11906 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11908 2014-02-19 Tom Tromey <tromey@redhat.com>
11910 * target.h (struct target_ops) <to_trace_start>: Add argument.
11911 (target_trace_start): Add argument.
11912 * target.c (update_current_target): Update.
11913 * remote.c (remote_trace_start): Add 'self' argument.
11915 2014-02-19 Tom Tromey <tromey@redhat.com>
11917 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11919 (target_trace_set_readonly_regions): Add argument.
11920 * target.c (update_current_target): Update.
11921 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11924 2014-02-19 Tom Tromey <tromey@redhat.com>
11926 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11928 (target_disable_tracepoint): Add argument.
11929 * target.c (update_current_target): Update.
11930 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11932 2014-02-19 Tom Tromey <tromey@redhat.com>
11934 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11936 (target_enable_tracepoint): Add argument.
11937 * target.c (update_current_target): Update.
11938 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11940 2014-02-19 Tom Tromey <tromey@redhat.com>
11942 * target.h (struct target_ops) <to_download_trace_state_variable>:
11944 (target_download_trace_state_variable): Add argument.
11945 * target.c (update_current_target): Update.
11946 * remote.c (remote_download_trace_state_variable): Add 'self'
11949 2014-02-19 Tom Tromey <tromey@redhat.com>
11951 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11953 (target_can_download_tracepoint): Add argument.
11954 * target.c (update_current_target): Update.
11955 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11957 2014-02-19 Tom Tromey <tromey@redhat.com>
11959 * target.h (struct target_ops) <to_download_tracepoint>: Add
11961 (target_download_tracepoint): Add argument.
11962 * target.c (update_current_target): Update.
11963 * remote.c (remote_download_tracepoint): Add 'self' argument.
11965 2014-02-19 Tom Tromey <tromey@redhat.com>
11967 * target.h (struct target_ops) <to_trace_init>: Add argument.
11968 (target_trace_init): Add argument.
11969 * target.c (update_current_target): Update.
11970 * remote.c (remote_trace_init): Add 'self' argument.
11972 2014-02-19 Tom Tromey <tromey@redhat.com>
11974 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11975 * target.c (target_fileio_readlink): Add argument.
11976 * remote.c (remote_hostio_readlink): Add 'self' argument.
11977 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11979 2014-02-19 Tom Tromey <tromey@redhat.com>
11981 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11982 * target.c (target_fileio_unlink): Add argument.
11983 * remote.c (remote_hostio_unlink): Add 'self' argument.
11984 (remote_file_delete): Update.
11985 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11987 2014-02-19 Tom Tromey <tromey@redhat.com>
11989 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11990 * target.c (target_fileio_close): Add argument.
11991 * remote.c (remote_hostio_close): Add 'self' argument.
11992 (remote_hostio_close_cleanup): Update.
11993 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11995 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11997 2014-02-19 Tom Tromey <tromey@redhat.com>
11999 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12000 * target.c (target_fileio_pread): Add argument.
12001 * remote.c (remote_hostio_pread): Add 'self' argument.
12002 (remote_bfd_iovec_pread, remote_file_get): Update.
12003 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12005 2014-02-19 Tom Tromey <tromey@redhat.com>
12007 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12008 * target.c (target_fileio_pwrite): Add argument.
12009 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12010 (remote_file_put): Update.
12011 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12013 2014-02-19 Tom Tromey <tromey@redhat.com>
12015 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12016 * target.c (target_fileio_open): Add argument.
12017 * remote.c (remote_hostio_open): Add 'self' argument.
12018 (remote_bfd_iovec_open): Add 'self' argument.
12019 (remote_file_put): Add 'self' argument.
12020 (remote_file_get): Add 'self' argument.
12021 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12023 2014-02-19 Tom Tromey <tromey@redhat.com>
12025 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12027 (target_can_run_breakpoint_commands): Add argument.
12028 * target.c (update_current_target): Update.
12029 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12031 (remote_insert_breakpoint): Add 'self' argument.
12032 (remote_insert_hw_breakpoint): Add 'self' argument.
12033 (remote_can_run_breakpoint_commands): Add 'self' argument.
12035 2014-02-19 Tom Tromey <tromey@redhat.com>
12037 * target.h (struct target_ops)
12038 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12039 (target_supports_evaluation_of_breakpoint_conditions): Add
12041 * target.c (update_current_target): Update.
12042 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12044 (remote_insert_breakpoint): Add 'self' argument.
12045 (remote_insert_hw_breakpoint): Add 'self' argument.
12046 (remote_supports_cond_breakpoints): Add 'self' argument.
12048 2014-02-19 Tom Tromey <tromey@redhat.com>
12050 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12052 (target_supports_string_tracing): Add argument.
12053 * target.c (update_current_target): Update.
12054 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12056 2014-02-19 Tom Tromey <tromey@redhat.com>
12058 * target.h (struct target_ops)
12059 <to_supports_disable_randomization>: Add argument.
12060 * target.c (find_default_supports_disable_randomization): Add
12062 (target_supports_disable_randomization): Add argument.
12063 (find_default_supports_disable_randomization): Add 'self'
12065 * remote.c (extended_remote_supports_disable_randomization): Add
12067 (remote_supports_disable_randomization): Add 'self' argument.
12068 (extended_remote_create_inferior): Update.
12069 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12072 2014-02-19 Tom Tromey <tromey@redhat.com>
12074 * target.h (struct target_ops)
12075 <to_supports_enable_disable_tracepoint>: Add argument.
12076 (target_supports_enable_disable_tracepoint): Add argument.
12077 * target.c (update_current_target): Update.
12078 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12081 2014-02-19 Tom Tromey <tromey@redhat.com>
12083 * target.h (struct target_ops) <to_supports_multi_process>: Add
12085 (target_supports_multi_process): Add argument.
12086 * target.c (update_current_target): Update.
12087 * remote.c (remote_supports_multi_process): Add 'self' argument.
12088 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12090 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12093 2014-02-19 Tom Tromey <tromey@redhat.com>
12095 * target.h (struct target_ops) <to_execution_direction>: Add
12097 (target_execution_direction): Add argument.
12098 * target.c (default_execution_direction): Add 'self' argument.
12099 * record-full.c (record_full_execution_direction): Add 'self'
12102 2014-02-19 Tom Tromey <tromey@redhat.com>
12104 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12106 (target_can_execute_reverse): Add argument.
12107 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12108 * record-full.c (record_full_can_execute_reverse): Add 'self'
12110 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12113 2014-02-19 Tom Tromey <tromey@redhat.com>
12115 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12116 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12118 (target_get_ada_task_ptid): Add argument.
12119 * target.c (update_current_target): Update.
12120 (default_get_ada_task_ptid): Add 'self' argument.
12121 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12122 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12123 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12125 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12127 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12129 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12131 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12132 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12135 2014-02-19 Tom Tromey <tromey@redhat.com>
12137 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12138 (target_goto_bookmark): Add argument.
12139 * target.c (dummy_goto_bookmark): Add 'self' argument.
12140 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12142 2014-02-19 Tom Tromey <tromey@redhat.com>
12144 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12145 (target_get_bookmark): Add argument.
12146 * target.c (dummy_get_bookmark): Add 'self' argument.
12147 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12149 2014-02-19 Tom Tromey <tromey@redhat.com>
12151 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12153 (target_make_corefile_notes): Add argument.
12154 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12155 * procfs.c (procfs_make_note_section): Add 'self' argument.
12156 (procfs_make_note_section): Add 'self' argument.
12157 (procfs_make_note_section): Add 'self' argument.
12158 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12160 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12161 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12162 * exec.c (exec_make_note_section): Add 'self' argument.
12163 (exec_make_note_section): Add 'self' argument.
12165 2014-02-19 Tom Tromey <tromey@redhat.com>
12167 * target.h (struct target_ops) <to_find_memory_regions>: Add
12169 (target_find_memory_regions): Add argument.
12170 * target.c (dummy_find_memory_regions): Add 'self' argument.
12171 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12172 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12173 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12174 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12175 * exec. (exec_do_find_memory_regions): New global.
12176 (exec_set_find_memory_regions): Rewrite.
12177 (exec_find_memory_regions): New function.
12178 (init_exec_ops): Use exec_find_memory_regions.
12180 2014-02-19 Tom Tromey <tromey@redhat.com>
12182 * target.h (struct target_ops) <to_supports_non_stop>: Add
12184 * target.c (find_default_supports_non_stop): Add argument.
12185 (target_supports_non_stop): Add argument.
12186 (find_default_supports_non_stop): Add 'self' argument.
12187 * remote.c (remote_supports_non_stop): Add 'self' argument.
12188 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12190 2014-02-19 Tom Tromey <tromey@redhat.com>
12192 * target.h (struct target_ops) <to_log_command>: Add argument.
12193 (target_log_command): Add argument.
12194 * serial.h (serial_log_command): Add 'self' argument.
12195 * serial.c (serial_log_command): Add 'self' argument.
12197 2014-02-19 Tom Tromey <tromey@redhat.com>
12199 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12200 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12202 (target_pid_to_exec_file): Add argument.
12203 * target.c (debug_to_pid_to_exec_file): Add argument.
12204 (update_current_target): Update.
12205 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12206 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12207 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12208 (linux_handle_extended_wait): Update.
12209 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12210 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12211 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12212 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12214 2014-02-19 Tom Tromey <tromey@redhat.com>
12216 * target.h (struct target_ops) <to_rcmd>: Add argument.
12217 (target_rcmd): Add argument.
12218 * target.c (debug_to_rcmd): Add argument.
12219 (update_current_target, do_monitor_command): Update.
12220 * remote.c (remote_rcmd): Add 'self' argument.
12221 * monitor.c (monitor_rcmd): Add 'self' argument.
12223 2014-02-19 Tom Tromey <tromey@redhat.com>
12225 * windows-nat.c (windows_stop): Add 'self' argument.
12226 * target.h (struct target_ops) <to_stop>: Add argument.
12227 * target.c (target_stop): Add argument.
12228 (debug_to_stop): Add argument.
12229 (update_current_target): Update.
12230 * remote.c (remote_stop): Add 'self' argument.
12231 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12232 (gdbsim_cntrl_c): Update.
12233 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12234 * procfs.c (procfs_stop): Add 'self' argument.
12235 * nto-procfs.c (procfs_stop): Add 'self' argument.
12236 * monitor.c (monitor_stop): Add 'self' argument.
12237 (monitor_open): Update.
12238 * linux-nat.c (linux_nat_stop): Add argument.
12239 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12240 * gnu-nat.c (gnu_stop): Add 'self' argument.
12241 * darwin-nat.c (darwin_stop): Add 'self' argument.
12243 2014-02-19 Tom Tromey <tromey@redhat.com>
12245 * target.h (struct target_ops) <to_thread_name>: Add argument.
12246 * target.c (target_thread_name): Add argument.
12247 (update_current_target): Update.
12248 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12250 2014-02-19 Tom Tromey <tromey@redhat.com>
12252 * target.h (struct target_ops) <to_extra_thread_info>: Add
12254 (target_extra_thread_info): Add argument.
12255 * target.c (update_current_target): Update.
12256 * remote.c (remote_threads_extra_info): Add 'self' argument.
12257 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12259 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12260 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12261 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12263 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12265 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12267 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12270 2014-02-19 Tom Tromey <tromey@redhat.com>
12272 * target.h (struct target_ops) <to_program_signals>: Add argument.
12273 * target.c (target_program_signals): Add argument.
12274 * remote.c (remote_program_signals): Add 'self' argument.
12276 2014-02-19 Tom Tromey <tromey@redhat.com>
12278 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12279 * target.c (target_pass_signals): Add argument.
12280 * remote.c (remote_pass_signals): Add 'self' argument.
12281 (remote_start_remote): Update.
12282 * procfs.c (procfs_pass_signals): Add 'self' argument.
12283 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12284 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12285 (linux_nat_create_inferior, linux_nat_attach): Update.
12287 2014-02-19 Tom Tromey <tromey@redhat.com>
12289 * windows-nat.c (windows_can_run): Add 'self' argument.
12290 * target.h (struct target_ops) <to_can_run>: Add argument.
12291 (target_can_run): Add argument.
12292 * target.c (debug_to_can_run): Add argument.
12293 (update_current_target): Update.
12294 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12295 * inf-child.c (inf_child_can_run): Add 'self' argument.
12296 * go32-nat.c (go32_can_run): Add 'self' argument.
12298 2014-02-19 Tom Tromey <tromey@redhat.com>
12300 * target.h (struct target_ops) <to_has_exited>: Add argument.
12301 (target_has_exited): Add argument.
12302 * target.c (debug_to_has_exited): Add argument.
12303 (update_current_target): Update.
12305 2014-02-19 Tom Tromey <tromey@redhat.com>
12307 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12309 (target_set_syscall_catchpoint): Add argument.
12310 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12312 * target.c (update_current_target): Update.
12314 2014-02-19 Tom Tromey <tromey@redhat.com>
12316 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12318 (target_remove_exec_catchpoint): Add argument.
12319 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12320 (update_current_target): Update.
12321 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12324 2014-02-19 Tom Tromey <tromey@redhat.com>
12326 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12328 (target_insert_exec_catchpoint): Add argument.
12329 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12330 (update_current_target): Update.
12331 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12334 2014-02-19 Tom Tromey <tromey@redhat.com>
12336 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12338 (target_remove_vfork_catchpoint): Add argument.
12339 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12340 (update_current_target): Update.
12341 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12344 2014-02-19 Tom Tromey <tromey@redhat.com>
12346 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12348 (target_insert_vfork_catchpoint): Add argument.
12349 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12350 (update_current_target): Update.
12351 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12354 2014-02-19 Tom Tromey <tromey@redhat.com>
12356 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12358 (target_remove_fork_catchpoint): Add argument.
12359 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12360 (update_current_target): Update.
12361 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12364 2014-02-19 Tom Tromey <tromey@redhat.com>
12366 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12368 (target_insert_fork_catchpoint): Add argument.
12369 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12370 (update_current_target): Update.
12371 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12374 2014-02-19 Tom Tromey <tromey@redhat.com>
12376 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12378 (target_post_startup_inferior): Add argument.
12379 * target.c (debug_to_post_startup_inferior): Add argument.
12380 (update_current_target): Update.
12381 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12383 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12385 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12387 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12389 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12391 (super_post_startup_inferior): Likewise.
12392 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12394 (super_post_startup_inferior): Likewise.
12395 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12396 Add 'self' argument.
12397 (super_post_startup_inferior): Likewise.
12399 2014-02-19 Tom Tromey <tromey@redhat.com>
12401 * target.h (struct target_ops) <to_load>: Add argument.
12402 * target.c (target_load): Add argument.
12403 (debug_to_load): Add argument.
12404 (update_current_target): Update.
12405 * remote.c (remote_load): Add 'self' argument.
12406 * remote-sim.c (gdbsim_load): Add 'self' argument.
12407 * remote-mips.c (mips_load): Add 'self' argument.
12408 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12409 * monitor.c (monitor_load): Add 'self' argument.
12410 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12412 2014-02-19 Tom Tromey <tromey@redhat.com>
12414 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12415 (target_terminal_info): Add argument.
12416 * target.c (debug_to_terminal_info): Add argument.
12417 (default_terminal_info): Likewise.
12418 * inflow.c (child_terminal_info): Add 'self' argument.
12419 * inferior.h (child_terminal_info): Add 'self' argument.
12420 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12422 2014-02-19 Tom Tromey <tromey@redhat.com>
12424 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12426 (target_terminal_save_ours): Add argument.
12427 * target.c (debug_to_terminal_save_ours): Add argument.
12428 (update_current_target): Update.
12429 * inflow.c (terminal_save_ours): Add 'self' argument.
12430 * inferior.h (terminal_save_ours): Add 'self' argument.
12432 2014-02-19 Tom Tromey <tromey@redhat.com>
12434 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12435 (target_terminal_ours): Add argument.
12436 * target.c (debug_to_terminal_ours): Add argument.
12437 (update_current_target): Update.
12438 * remote.c (remote_terminal_ours): Add 'self' argument.
12439 (remote_close): Update.
12440 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12441 * inflow.c (terminal_ours): Add 'self' argument.
12442 * inferior.h (terminal_ours): Add 'self' argument.
12443 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12445 2014-02-19 Pedro Alves <palves@redhat.com>
12446 Tom Tromey <tromey@redhat.com>
12448 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12450 (target_terminal_ours_for_output): Add argument.
12451 * target.c (debug_to_terminal_ours_for_output): Add argument.
12452 (update_current_target): Update.
12453 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12454 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12455 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12457 2014-02-19 Tom Tromey <tromey@redhat.com>
12459 * target.h (struct target_ops) <to_terminal_inferior>: Add
12461 * target.c (target_terminal_inferior): Add argument.
12462 (update_current_target): Update.
12463 * remote.c (remote_terminal_inferior): Add 'self' argument.
12464 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12465 * inflow.c (terminal_inferior): Add 'self' argument.
12466 * inferior.h (terminal_inferior): Add 'self' argument.
12467 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12468 (go32_terminal_inferior): Add 'self' argument.
12470 2014-02-19 Tom Tromey <tromey@redhat.com>
12472 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12473 (target_terminal_init): Add argument.
12474 * target.c (debug_to_terminal_init): Add argument.
12475 (update_current_target): Update.
12476 * inflow.c (terminal_init_inferior): Add 'self' argument.
12477 * inferior.h (terminal_init_inferior): Add 'self' argument.
12478 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12479 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12481 2014-02-19 Tom Tromey <tromey@redhat.com>
12483 * target.h (struct target_ops)
12484 <to_can_accel_watchpoint_condition>: Add argument.
12485 (target_can_accel_watchpoint_condition): Add argument.
12486 * target.c (debug_to_can_accel_watchpoint_condition): Add
12488 (update_current_target): Update.
12489 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12492 2014-02-19 Tom Tromey <tromey@redhat.com>
12494 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12496 (target_region_ok_for_hw_watchpoint): Add argument.
12497 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12498 (default_region_ok_for_hw_watchpoint): Add argument.
12499 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12500 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12502 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12504 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12506 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12508 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12510 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12512 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12513 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12515 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12516 Add 'self' argument.
12518 2014-02-19 Tom Tromey <tromey@redhat.com>
12520 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12522 (target_insert_watchpoint): Add argument.
12523 * target.c (debug_to_insert_watchpoint): Add argument.
12524 (update_current_target): Update.
12525 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12526 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12527 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12528 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12529 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12530 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12532 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12533 (procfs_insert_hw_watchpoint): Add 'self' argument.
12534 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12536 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12538 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12540 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12541 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12543 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12546 2014-02-19 Tom Tromey <tromey@redhat.com>
12548 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12550 (target_remove_watchpoint): Add argument.
12551 * target.c (debug_to_remove_watchpoint): Add argument.
12552 (update_current_target): Update.
12553 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12554 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12555 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12556 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12557 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12558 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12560 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12561 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12563 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12565 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12567 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12568 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12570 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12573 2014-02-19 Tom Tromey <tromey@redhat.com>
12575 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12577 (target_remove_hw_breakpoint): Add argument.
12578 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12579 (update_current_target): Update.
12580 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12581 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12583 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12584 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12586 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12589 2014-02-19 Tom Tromey <tromey@redhat.com>
12591 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12593 (target_insert_hw_breakpoint): Add argument.
12594 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12595 (update_current_target): Update.
12596 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12597 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12599 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12600 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12601 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12603 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12606 2014-02-19 Tom Tromey <tromey@redhat.com>
12608 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12610 (target_can_use_hardware_watchpoint): Add argument.
12611 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12612 (update_current_target): Update.
12613 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12615 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12617 * remote.c (remote_check_watch_resources): Add 'self' argument.
12618 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12619 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12621 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12622 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12624 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12626 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12628 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12630 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12632 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12634 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12635 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12637 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12640 2014-02-19 Tom Tromey <tromey@redhat.com>
12642 * target.h (struct target_ops) <to_post_attach>: Add argument.
12643 (target_post_attach): Add argument.
12644 * target.c (debug_to_post_attach): Add argument.
12645 (update_current_target): Update.
12646 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12647 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12648 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12649 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12650 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12652 2014-02-19 Tom Tromey <tromey@redhat.com>
12654 * windows-nat.c (windows_close): Add 'self' argument.
12655 * tracepoint.c (tfile_close): Add 'self' argument.
12656 * target.h (struct target_ops) <to_close>: Add argument.
12657 * target.c (target_close): Add argument.
12658 (update_current_target): Update.
12659 * remote.c (remote_close): Add 'self' argument.
12660 * remote-sim.c (gdbsim_close): Add 'self' argument.
12661 * remote-mips.c (mips_close): Add 'self' argument.
12662 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12663 * record-full.c (record_full_close): Add 'self' argument.
12664 * record-btrace.c (record_btrace_close): Add 'self' argument.
12665 * monitor.h (monitor_close): Add 'self' argument.
12666 * monitor.c (monitor_close): Add 'self' argument.
12667 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12668 * linux-nat.c (linux_nat_close): Add argument.
12669 * go32-nat.c (go32_close): Add 'self' argument.
12670 * exec.c (exec_close_1): Add 'self' argument.
12671 * ctf.c (ctf_close): Add 'self' argument.
12672 * corelow.c (core_close): Add 'self' argument.
12673 (core_close_cleanup): Update.
12674 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12675 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12677 2014-02-19 Tom Tromey <tromey@redhat.com>
12679 * remote.c (remote_load): New function.
12680 (init_remote_ops): Use it.
12682 2014-02-19 Tom Tromey <tromey@redhat.com>
12684 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12686 * common/linux-btrace.h (linux_supports_btrace): Update.
12687 * remote.c (remote_supports_btrace): Add "self" argument.
12688 * target-delegates.c: Rebuild.
12689 * target.c (target_supports_btrace): Remove.
12690 * target.h (struct target_ops) <to_supports_btrace>: Add
12691 target_ops argument.
12692 (target_supports_btrace): New define.
12694 2014-02-19 Tom Tromey <tromey@redhat.com>
12696 * record-full.c (record_full_beneath_to_resume_ops)
12697 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12698 (record_full_beneath_to_wait)
12699 (record_full_beneath_to_store_registers_ops)
12700 (record_full_beneath_to_store_registers)
12701 (record_full_beneath_to_xfer_partial_ops)
12702 (record_full_beneath_to_xfer_partial)
12703 (record_full_beneath_to_insert_breakpoint_ops)
12704 (record_full_beneath_to_insert_breakpoint)
12705 (record_full_beneath_to_remove_breakpoint_ops)
12706 (record_full_beneath_to_remove_breakpoint)
12707 (record_full_beneath_to_stopped_by_watchpoint)
12708 (record_full_beneath_to_stopped_data_address)
12709 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12710 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12711 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12712 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12713 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12714 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12715 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12716 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12717 (record_full_resume, record_full_wait_1)
12718 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12719 (record_full_store_registers, record_full_xfer_partial)
12720 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12721 (record_full_async, record_full_core_xfer_partial): Use target
12723 * target-delegates.c: Rebuild.
12724 * target.c (current_xfer_partial): Remove.
12725 (update_current_target): Do not INHERIT or de_fault
12726 to_insert_breakpoint, to_remove_breakpoint,
12727 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12728 to_is_async_p, to_async. Do not set to_xfer_partial field.
12729 (default_xfer_partial): Simplify.
12730 (current_xfer_partial): Remove.
12731 (target_wait, target_resume): Simplify.
12732 (find_default_can_async_p, find_default_is_async_p): Update.
12733 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12734 to_xfer_partial, to_stopped_by_watchpoint,
12735 to_stopped_data_address.
12736 (target_store_registers): Simplify.
12737 (forward_target_remove_breakpoint)
12738 (forward_target_insert_breakpoint): Remove.
12739 (target_remove_breakpoint, target_insert_breakpoint)
12740 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12741 * target.h (struct target_ops) <to_resume, to_wait,
12742 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12743 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12744 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12746 (forward_target_remove_breakpoint)
12747 (forward_target_insert_breakpoint): Remove.
12748 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12750 (record_btrace_insert_breakpoint): Delegate directly.
12752 2014-02-19 Tom Tromey <tromey@redhat.com>
12755 * target-delegates.c: New file.
12756 * target.c: Include target-delegates.c.
12757 (init_dummy_target): Call install_dummy_methods.
12758 (complete_target_initialization): Call install_delegators.
12759 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12760 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12761 * make-target-delegates: New file.
12763 2014-02-19 Tom Tromey <tromey@redhat.com>
12765 * record.c (find_record_target): Use find_target_at.
12766 * target.c (find_target_at): New function.
12767 * target.h (find_target_at): Declare.
12769 2014-02-19 Tom Tromey <tromey@redhat.com>
12771 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12772 Add 'ops' argument.
12773 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12775 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12776 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12778 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12780 * linux-nat.c (save_sigtrap): Update.
12781 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12782 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12783 (linux_nat_close): Update.
12784 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12786 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12788 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12789 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12790 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12791 (tmp_to_async): Add 'ops' argument.
12792 (record_full_stopped_by_watchpoint, record_full_async)
12793 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12795 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12796 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12797 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12798 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12799 (remote_is_async_p, remote_async): Add 'ops' argument.
12800 (remote_stopped_data_address): Update.
12801 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12802 * target.c (update_current_target)
12803 (find_default_can_async_p, find_default_is_async_p): Update.
12804 (init_dummy_target): Update.
12805 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12806 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12807 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12808 (target_can_async_p, target_is_async_p, target_async)
12809 (target_stopped_by_watchpoint): Update.
12811 2014-02-19 Yao Qi <yao@codesourcery.com>
12814 * gdbarch.sh: Remove startup_gdbarch.
12815 * gdbarch.c: Regenerated.
12816 * gdbarch.h: Likewise.
12818 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12820 * rl78-tdep.c (rl78_g10_register_name): New function.
12821 (rl78_return_value): Add g10 support.
12822 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12825 2014-02-17 Doug Evans <xdje42@gmail.com>
12827 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12828 (SUBDIR_GUILE_SRCS): Ditto.
12829 (scm-gsmob.o): Ditto.
12831 2014-02-17 Yao Qi <yao@codesourcery.com>
12833 * gnu-nat.c (ILL_RPC): Declare defined function.
12835 2014-02-17 Yao Qi <yao@codesourcery.com>
12837 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12838 mach_msg_type_number_t.
12839 (gnu_write_inferior): Likewise.
12841 2014-02-17 Yao Qi <yao@codesourcery.com>
12843 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12845 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12846 (inf_validate_procs, inf_signal): Likewise.
12847 (S_exception_raise_request): Likewise.
12848 (do_mach_notify_dead_name): Likewise.
12849 (steal_exc_port): Likewise.
12850 (gnu_read_inferior): Change 'copy_count''s type to
12851 mach_msg_type_number_t.
12852 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12855 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12857 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12858 flag. Adjust all users; in particular...
12859 (gnu_wait): ..., don't decrement its value in here...
12860 (gnu_create_inferior): ..., and instead set the flag in here,
12861 around the startup_inferior call, and call that one with
12862 START_INFERIOR_TRAPS_EXPECTED.
12864 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12865 (ILL_RPC): ... new macro.
12866 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12867 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12868 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12869 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12870 functions with ILL_RPC macro.
12871 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12872 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12873 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12874 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12875 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12876 (S_proc_getlogin_reply, S_proc_getsid_reply)
12877 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12878 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12879 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12880 (S_proc_getnports_reply, S_proc_is_important_reply)
12881 (S_proc_get_code_reply): New stub functions, generated with
12884 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12885 collected the type check structures.
12887 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12889 2014-02-14 Doug Evans <dje@google.com>
12891 * target.c (target_write_partial): Fix result type.
12893 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12895 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12896 the proper offsets to access fpregset_t.
12898 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12900 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12901 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12902 * h8300-tdep.c (setmachinelist): Remove global.
12903 * hppa-tdep.c (hppa_sigtramp): Remove global.
12904 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12905 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12906 * ravenscar-thread.c (update_target_observer): Remove global.
12907 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12909 2014-02-12 Tom Tromey <tromey@redhat.com>
12911 * common/rsp-low.c: Update comments.
12912 * common/rsp-low.h: Update comments.
12914 2014-02-12 Tom Tromey <tromey@redhat.com>
12916 * common/rsp-low.c (convert_ascii_to_int): Remove.
12917 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12919 2014-02-12 Tom Tromey <tromey@redhat.com>
12921 * common/rsp-low.h (unhexify): Don't declare.
12922 * common/rsp-low.c (unhexify): Remove.
12924 2014-02-12 Tom Tromey <tromey@redhat.com>
12926 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12927 * common/rsp-low.c (convert_int_to_ascii): Remove.
12929 2014-02-12 Tom Tromey <tromey@redhat.com>
12931 * common/rsp-low.h (hexify): Don't declare.
12932 * common/rsp-low.c (hexify): Remove.
12934 2014-02-12 Tom Tromey <tromey@redhat.com>
12936 * common/rsp-low.c (hexify): Never take strlen of argument.
12938 2014-02-12 Tom Tromey <tromey@redhat.com>
12940 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12941 * remote.c (extended_remote_run, remote_rcmd)
12942 (remote_download_trace_state_variable, remote_save_trace_data)
12943 (remote_set_trace_notes): Update.
12944 * tracepoint.c (encode_source_string, tfile_write_status)
12945 (tfile_write_uploaded_tsv): Update.
12947 2014-02-12 Tom Tromey <tromey@redhat.com>
12949 * tracepoint.c: Include rsp-low.h.
12950 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12951 * remote.c: Include rsp-low.h.
12952 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12953 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12954 (remote_unescape_input): Move to common/rsp-low.c.
12955 * common/rsp-low.h: New file.
12956 * common/rsp-low.c: New file.
12957 * Makefile.in (SFILES): Add common/rsp-low.c.
12958 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12959 (COMMON_OBS): Add rsp-low.o.
12960 (rsp-low.o): New target.
12962 2014-02-12 Tom Tromey <tromey@redhat.com>
12964 * utils.h: Include print-utils.h.
12965 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12966 (int_string, core_addr_to_string, core_addr_to_string_nz)
12967 (hex_string, hex_string_custom): Don't declare.
12968 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12969 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12970 (hex_string_custom, int_string, core_addr_to_string)
12971 (core_addr_to_string_nz, host_address_to_string): Move to
12972 common/print-utils.c.
12973 * common/print-utils.h: New file.
12974 * common/print-utils.c: New file
12975 * Makefile.in (SFILES): Add common/print-utils.c.
12976 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12977 (COMMON_OBS): Add print-utils.o.
12978 (print-utils.o): New target.
12980 2014-02-12 Tom Tromey <tromey@redhat.com>
12982 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12984 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12986 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12988 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12990 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12991 if a PT_IO ptrace request returns sucessfully but indicates that 0
12992 bytes were transferred.
12994 2014-02-12 Pedro Alves <palves@redhat.com>
12995 Kevin Buettner <kevinb@redhat.com>
12997 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12998 TYPE_INSTANCE_FLAG_CODE_SPACE.
13000 2014-02-12 Pedro Alves <palves@redhat.com>
13002 * h8300-tdep.c (pseudo_from_raw_register)
13003 (raw_from_pseudo_register): New functions.
13004 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13007 2014-02-12 Pedro Alves <palves@redhat.com>
13009 * h8300-tdep.c (h8300_register_sim_regno): New function.
13010 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13011 gdbarch_register_sim_regno hook.
13013 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13015 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13017 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13019 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13021 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13023 * obsd-tdep.h (obsd_init_abi): New prototype.
13024 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13025 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13026 (obsd_init_abi): New functions.
13027 * i386obsd-tdep.c: Include "obsd-tdep.h".
13028 (i386obsd_init_abi): Call obsd_init_abi.
13029 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13030 (amd64obsd_init_abi): Call obsd_init_abi.
13031 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13032 obsd-tdep.c to gdb_target_obs.
13034 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13036 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13037 double float arguments to 16-byte in the argument slots.
13039 2014-02-11 Doug Evans <xdje42@gmail.com>
13041 * configure.ac: Don't crash if pkg-config is not found and guile
13042 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13044 * configure: Regenerate.
13046 2014-02-11 Yao Qi <yao@codesourcery.com>
13048 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13049 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13050 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13051 * gnu-nat.c (gnu_xfer_memory): Likewise.
13052 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13053 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13054 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13055 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13057 2014-02-11 Yao Qi <yao@codesourcery.com>
13059 * target.h (enum target_xfer_error): Rename to ...
13060 (enum target_xfer_status): ... it. New. All users updated.
13061 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13063 (TARGET_XFER_STATUS_ERROR_P): New macro.
13064 (target_xfer_error_to_string): Remove declaration.
13065 (target_xfer_status_to_string): Declare.
13066 (target_xfer_partial_ftype): Adjust it.
13067 (struct target_ops) <to_xfer_partial>: Return
13068 target_xfer_status. Add argument xfered_len. Update
13070 * target.c (target_xfer_error_to_string): Rename to ...
13071 (target_xfer_status_to_string): ... it. New. All callers
13073 (target_read_live_memory): Likewise. Call target_xfer_partial
13074 instead of target_read.
13075 (memory_xfer_live_readonly_partial): Return
13076 target_xfer_status. Add argument xfered_len.
13077 (raw_memory_xfer_partial): Likewise.
13078 (memory_xfer_partial_1): Likewise.
13079 (memory_xfer_partial): Likewise.
13080 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13081 properly. Update debug message.
13082 (default_xfer_partial, current_xfer_partial): Likewise.
13083 (target_write_partial): Likewise.
13084 (target_read_partial): Likewise. All callers updated.
13085 (read_whatever_is_readable): Likewise.
13086 (target_write_with_progress): Likewise.
13087 (target_read_alloc_1): Likewise.
13089 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13090 * auxv.c (procfs_xfer_auxv): Likewise.
13091 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13092 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13093 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13094 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13095 * corefile.c (read_memory): Adjust.
13096 * corelow.c (core_xfer_partial): Likewise.
13097 * ctf.c (ctf_xfer_partial): Likewise.
13098 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13100 (darwin_xfer_partial): Likewise.
13101 * exec.c (section_table_xfer_memory_partial): Likewise. All
13103 (exec_xfer_partial): Likewise.
13104 * exec.h (section_table_xfer_memory_partial): Update
13106 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13108 (gnu_xfer_partial): Likewise.
13109 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13110 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13111 (ia64_hpux_xfer_solib_got): Likewise.
13112 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13113 type of 'partial_len' to ULONGEST.
13114 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13115 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13116 (linux_nat_xfer_partial): Likewise.
13117 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13118 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13119 * monitor.c (monitor_xfer_memory): Likewise.
13120 (monitor_xfer_partial): Likewise.
13121 * procfs.c (procfs_xfer_partial): Likewise.
13122 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13123 * record-full.c (record_full_xfer_partial): Likewise.
13124 (record_full_core_xfer_partial): Likewise.
13125 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13126 (gdbsim_xfer_partial): Likewise.
13127 * remote.c (remote_write_bytes_aux): Likewise. All callers
13129 (remote_write_bytes, remote_read_bytes): Likewise. All
13131 (remote_flash_erase): Likewise. All callers updated.
13132 (remote_write_qxfer): Likewise. All callers updated.
13133 (remote_read_qxfer): Likewise. All callers updated.
13134 (remote_xfer_partial): Likewise.
13135 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13136 (rs6000_xfer_shared_libraries): Likewise.
13137 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13138 (sol_thread_xfer_partial): Likewise.
13139 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13140 (sparc_xfer_partial): Likewise.
13141 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13143 (spu_xfer_partial): Likewise.
13144 * spu-multiarch.c (spu_xfer_partial): Likewise.
13145 * tracepoint.c (tfile_xfer_partial): Likewise.
13146 * windows-nat.c (windows_xfer_memory): Likewise.
13147 (windows_xfer_shared_libraries): Likewise.
13148 (windows_xfer_partial): Likewise.
13149 * valprint.c: Replace 'target_xfer_error' with
13150 'target_xfer_status' in comments.
13152 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13154 Checked in by Joel Brobecker <brobecker@adacore.com>.
13155 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13157 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13159 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13160 function parameters.
13162 2014-02-10 Will Newton <will.newton@linaro.org>
13164 * elfread.c (elf_rel_plt_read): Look for a .got section if
13165 looking up .got.plt fails.
13166 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13167 on address passed to elf_gnu_ifunc_record_cache.
13168 (elf_gnu_ifunc_resolve_addr): Likewise.
13169 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13171 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13173 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13174 (X_RETTURN): New macro.
13175 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13177 * sparc64-tdep.c (sparc64_init_abi): Hook
13178 sparc_in_function_epilogue_p.
13180 2014-02-10 Gary Benson <gbenson@redhat.com>
13182 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13183 Rename name_matcher to symbol_matcher.
13185 2014-02-10 Gary Benson <gbenson@redhat.com>
13187 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13188 Use expand_symtabs_file_matcher_ftype and
13189 expand_symtabs_symbol_matcher_ftype.
13191 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13193 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13194 (struct ada_symbol_cache): New.
13195 (ada_free_symbol_cache): Forward declare.
13196 (struct ada_pspace_data): New.
13197 (ada_pspace_data_handle): New static global.
13198 (get_ada_pspace_data, ada_pspace_data_cleanup)
13199 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13200 (cache_space, cache): Delete, now folded inside struct
13202 (ada_get_symbol_cache): New function.
13203 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13205 (_initialize_ada_language): Remove initialization of cache_space.
13206 Move call to observer_attach_inferior_exit up, grouping it
13207 with the other observer registrations inside this function.
13208 Rename command to be more general. Add call to
13209 register_program_space_data_with_cleanup.
13211 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13213 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13214 ada_new_objfile_observer.
13215 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13216 (_initialize_tasks): Update uses of ada_new_objfile_observer
13217 and ada_tasks_normal_stop_observer.
13219 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13221 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13222 returned by the 'Length attribute to integer.
13224 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13226 * ada-lang.c (_initialize_ada_language): Initialize
13227 cache_space obstack.
13229 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13231 * ada-lang.c (HASH_SIZE): New macro.
13232 (struct cache_entry): New type.
13233 (cache_space, cache): New static globals.
13234 (ada_clear_symbol_cache, find_entry): New functions.
13235 (lookup_cached_symbol, cache_symbol): Implement.
13236 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13237 (_initialize_ada_language): Attach ada_new_objfile_observer
13238 and ada_free_objfile_observer.
13240 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13242 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13243 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13244 struct block * parameter.
13245 (ada_lookup_symbol_list_worker): Constify local variable "block".
13246 Remove cast which is no longer necessary.
13248 2014-02-10 Doug Evans <xdje42@gmail.com>
13250 Add Guile as an extension language.
13251 * NEWS: Mention Guile scripting.
13252 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13253 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13254 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13255 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13256 (CLIBS): Add GUILE_LIBS.
13257 (install-guile): New rule.
13258 (guile.o): New rule.
13259 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13260 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13261 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13262 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13263 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13264 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13265 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13266 * configure.ac: New option --with-guile.
13267 * configure: Regenerate.
13268 * config.in: Regenerate.
13269 * auto-load.c: Remove #include "python/python.h". Add #include
13270 "gdb/section-scripts.h".
13271 (source_section_scripts): Handle Guile scripts.
13272 (_initialize_auto_load): Add name of Guile objfile script to
13273 scripts-directory help text.
13274 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13275 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13276 (struct breakpoint): New member scm_bp_object.
13277 * defs.h (enum command_control_type): New value guile_control.
13278 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13280 (show_user): Update comment.
13281 (_initialize_cli_cmds): Update help text for "show user". Update help
13282 text for max-user-call-depth.
13283 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13285 (multi_line_command_p): Add guile_control.
13286 (print_command_lines): Handle guile_control.
13287 (execute_control_command, recurse_read_control_structure): Ditto.
13288 (process_next_line): Recognize "guile" commands.
13289 * disasm.c (gdb_disassemble_info): Make non-static.
13290 * disasm.h: #include "dis-asm.h".
13291 (struct gdbarch): Add forward decl.
13292 (gdb_disassemble_info): Declare.
13293 * extension.c: #include "guile/guile.h".
13294 (extension_languages): Add guile.
13295 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13296 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13297 * gdbtypes.c (get_unsigned_type_max): New function.
13298 (get_signed_type_minmax): New function.
13299 * gdbtypes.h (get_unsigned_type_max): Declare.
13300 (get_signed_type_minmax): Declare.
13301 * guile/README: New file.
13302 * guile/guile-internal.h: New file.
13303 * guile/guile.c: New file.
13304 * guile/guile.h: New file.
13305 * guile/scm-arch.c: New file.
13306 * guile/scm-auto-load.c: New file.
13307 * guile/scm-block.c: New file.
13308 * guile/scm-breakpoint.c: New file.
13309 * guile/scm-disasm.c: New file.
13310 * guile/scm-exception.c: New file.
13311 * guile/scm-frame.c: New file.
13312 * guile/scm-gsmob.c: New file.
13313 * guile/scm-iterator.c: New file.
13314 * guile/scm-lazy-string.c: New file.
13315 * guile/scm-math.c: New file.
13316 * guile/scm-objfile.c: New file.
13317 * guile/scm-ports.c: New file.
13318 * guile/scm-pretty-print.c: New file.
13319 * guile/scm-safe-call.c: New file.
13320 * guile/scm-string.c: New file.
13321 * guile/scm-symbol.c: New file.
13322 * guile/scm-symtab.c: New file.
13323 * guile/scm-type.c: New file.
13324 * guile/scm-utils.c: New file.
13325 * guile/scm-value.c: New file.
13326 * guile/lib/gdb.scm: New file.
13327 * guile/lib/gdb/boot.scm: New file.
13328 * guile/lib/gdb/experimental.scm: New file.
13329 * guile/lib/gdb/init.scm: New file.
13330 * guile/lib/gdb/iterator.scm: New file.
13331 * guile/lib/gdb/printing.scm: New file.
13332 * guile/lib/gdb/types.scm: New file.
13333 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13334 (VPATH): Add $(GUILE_SRCDIR).
13335 (GUILE_DIR): New variable.
13336 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13337 (all): Add stamp-guile dependency.
13338 (stamp-guile): New rule.
13339 (clean-guile, install-guile, uninstall-guile): New rules.
13340 (install-only): Add install-guile dependency.
13341 (uninstall): Add uninstall-guile dependency.
13342 (clean): Add clean-guile dependency.
13344 2014-02-09 Doug Evans <xdje42@gmail.com>
13346 Revert this patch (which I approved, mea culpa).
13348 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13350 * Makefile.in (all-lib): Remove.
13351 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13353 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13355 Fix Python stack corruption.
13356 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13359 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13361 * Makefile.in (all-lib): Remove.
13362 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13364 2014-02-07 Doug Evans <dje@google.com>
13366 * extension-priv.h (extension_language_script_ops): Add comment.
13367 (extension_language_ops): Add comment.
13368 (active_ext_lang_state): Fix typo in comment.
13370 2014-02-07 Pedro Alves <palves@redhat.com>
13372 PR breakpoints/16292
13373 * infrun.c (handle_signal_stop) <signal arrives while stepping
13374 over a breakpoint>: Switch back to the stepping thread.
13376 2014-02-07 Yao Qi <yao@codesourcery.com>
13378 * target.c (target_xfer_partial): Return zero if LEN is zero.
13380 2014-02-07 Yao Qi <yao@codesourcery.com>
13382 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13383 (ld_so_xfer_auxv): Likewise.
13384 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13385 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13386 * corelow.c (core_xfer_partial): Likewise.
13387 * ctf.c (ctf_xfer_partial): Likewise.
13388 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13389 (darwin_xfer_partial): Likewise.
13390 * exec.c (exec_xfer_partial): Likewise.
13391 * gnu-nat.c (gnu_xfer_partial): Likewise.
13392 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13393 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13394 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13395 * linux-nat.c (linux_xfer_siginfo): Likewise.
13396 (linux_proc_xfer_spu): Likewise.
13397 * procfs.c (procfs_xfer_partial): Likewise.
13398 * record-full.c (record_full_xfer_partial): Likewise.
13399 (record_full_core_xfer_partial): Likewise.
13400 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13401 * remote.c (remote_write_qxfer): Likewise.
13402 (remote_write_qxfer, remote_read_qxfer): Likewise.
13403 (remote_xfer_partial): Likewise.
13404 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13405 (rs6000_xfer_shared_libraries): Likewise.
13406 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13407 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13408 (spu_xfer_partial): Likewise.
13409 * target.c (memory_xfer_partial_1): Likewise.
13410 * tracepoint.c (tfile_xfer_partial): Likewise.
13411 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13412 (windows_xfer_partial): Likewise.
13414 2014-02-07 Yao Qi <yao@codesourcery.com>
13416 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13418 (core_xfer_shared_libraries_aix): Likewise.
13419 * gdbarch.c, gdbarch.h: Regenerated.
13420 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13421 ULONGEST. Change 'len_avail' type to ULONGEST.
13422 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13423 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13425 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13427 2014-02-07 Yao Qi <yao@codesourcery.com>
13429 * corefile.c (memory_error): Get 'exception' from ERR and pass
13430 'exception' to throw_error.
13432 2014-02-06 Doug Evans <xdje42@gmail.com>
13434 * configure.ac (libpython checking): Remove all but python.o from
13435 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13436 * configure: Regenerate.
13438 * Makefile.in (SFILES): Add extension.c.
13439 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13440 (COMMON_OBS): Add extension.o.
13441 * extension.h: New file.
13442 * extension-priv.h: New file.
13443 * extension.c: New file.
13445 * python/python-internal.h: #include "extension.h".
13446 (gdbpy_auto_load_enabled): Declare.
13447 (gdbpy_apply_val_pretty_printer): Declare.
13448 (gdbpy_apply_frame_filter): Declare.
13449 (gdbpy_preserve_values): Declare.
13450 (gdbpy_breakpoint_cond_says_stop): Declare.
13451 (gdbpy_breakpoint_has_cond): Declare.
13452 (void source_python_script_for_objfile): Delete.
13453 * python/python.c: #include "extension-priv.h".
13454 Delete inclusion of "observer.h".
13455 (extension_language_python): Moved here and renamed from
13456 script_language_python in py-auto-load.c.
13457 Redefined to be of type extension_language_defn.
13458 (python_extension_script_ops): New global.
13459 (python_extension_ops): New global.
13460 (struct python_env): New member previous_active.
13461 (restore_python_env): Call restore_active_ext_lang.
13462 (ensure_python_env): Call set_active_ext_lang.
13463 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13465 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13467 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13469 (gdbpy_eval_from_control_command): Renamed from
13470 eval_python_from_control_command, made static. New arg extlang.
13471 (gdbpy_source_script) Renamed from source_python_script, made static.
13473 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13474 result to int. New arg extlang.
13475 (gdbpy_source_objfile_script): Renamed from
13476 source_python_script_for_objfile, made static. New arg extlang.
13477 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13478 static. New args extlang, extlang_printers. Change result type to
13480 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13481 static. New arg extlang. Rename arg printers to extlang_printers
13482 and change type to ext_lang_type_printers *.
13483 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13484 static. Replace argument arg with extlang, extlang_printers.
13485 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13486 (!HAVE_PYTHON, source_python_script): Delete.
13487 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13488 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13489 (!HAVE_PYTHON, start_type_printers): Delete.
13490 (!HAVE_PYTHON, apply_type_printers): Delete.
13491 (!HAVE_PYTHON, free_type_printers): Delete.
13492 (_initialize_python): Delete call to observer_attach_before_prompt.
13493 (finalize_python): Set/restore active extension language.
13494 (gdbpy_finish_initialization) Renamed from
13495 finish_python_initialization, made static. New arg extlang.
13496 (gdbpy_initialized): New function.
13497 * python/python.h: #include "extension.h". Delete #include
13498 "value.h", "mi/mi-cmds.h".
13499 (extension_language_python): Declare.
13500 (GDBPY_AUTO_FILE_NAME): Delete.
13501 (enum py_bt_status): Moved to extension.h and renamed to
13502 ext_lang_bt_status.
13503 (enum frame_filter_flags): Moved to extension.h.
13504 (enum py_frame_args): Moved to extension.h and renamed to
13505 ext_lang_frame_args.
13506 (finish_python_initialization): Delete.
13507 (eval_python_from_control_command): Delete.
13508 (source_python_script): Delete.
13509 (apply_val_pretty_printer): Delete.
13510 (apply_frame_filter): Delete.
13511 (preserve_python_values): Delete.
13512 (gdbpy_script_language_defn): Delete.
13513 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13514 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13516 * auto-load.c: #include "extension.h".
13517 (GDB_AUTO_FILE_NAME): Delete.
13518 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13519 (script_language_gdb): Delete, moved to extension.c and renamed to
13520 extension_language_gdb.
13521 (source_gdb_script_for_objfile): Delete.
13522 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13523 (loaded_script): Change type of language member to
13524 struct extension_language_defn *.
13525 (init_loaded_scripts_info): Initialize
13526 unsupported_script_warning_printed.
13527 (maybe_add_script): Make static. Change type of language arg to
13528 struct extension_language_defn *.
13529 (clear_section_scripts): Reset unsupported_script_warning_printed.
13530 (auto_load_objfile_script_1): Rewrite to use extension language API.
13531 (auto_load_objfile_script): Make public. Remove support-compiled-in
13532 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13533 (source_section_scripts): Rewrite to use extension language API.
13534 (load_auto_scripts_for_objfile): Rewrite to use
13535 auto_load_scripts_for_objfile.
13536 (collect_matching_scripts_data): Change type of language member to
13537 struct extension_language_defn *.
13538 (auto_load_info_scripts): Change type of language arg to
13539 struct extension_language_defn *.
13540 (unsupported_script_warning_print): New function.
13541 (script_not_found_warning_print): Make static.
13542 (_initialize_auto_load): Rewrite construction of scripts-directory
13544 * auto-load.h (struct objfile): Add forward decl.
13545 (struct script_language): Delete.
13546 (struct auto_load_pspace_info): Add forward decl.
13547 (struct extension_language_defn): Add forward decl.
13548 (maybe_add_script): Delete.
13549 (auto_load_objfile_script): Declare.
13550 (script_not_found_warning_print): Delete.
13551 (auto_load_info_scripts): Update prototype.
13552 (auto_load_gdb_scripts_enabled): Declare.
13553 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13554 auto_load_python_scripts_enabled and made public.
13555 (script_language_python): Delete, moved to python.c.
13556 (gdbpy_script_language_defn): Delete.
13557 (info_auto_load_python_scripts): Update to use
13558 extension_language_python.
13560 * breakpoint.c (condition_command): Replace call to
13561 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13562 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13563 with call to breakpoint_ext_lang_cond_says_stop.
13564 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13565 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13566 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13567 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13569 (local_setattro): Print name of extension language with existing
13572 * valprint.c (val_print, value_print): Update to call
13573 apply_ext_lang_val_pretty_printer.
13574 * cp-valprint.c (cp_print_value): Update call to
13575 apply_ext_lang_val_pretty_printer.
13576 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13577 (gdbpy_apply_val_pretty_printer): Renamed from
13578 apply_val_pretty_printer. New arg extlang.
13579 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13581 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13582 extension language API.
13583 * cli/cli-script.c (execute_control_command): Update to call
13584 eval_ext_lang_from_control_command.
13586 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13587 enum ext_lang_bt_status values. Update call to
13588 apply_ext_lang_frame_filter.
13589 (mi_cmd_stack_list_locals): Ditto.
13590 (mi_cmd_stack_list_args): Ditto.
13591 (mi_cmd_stack_list_variables): Ditto.
13592 * mi/mi-main.c: Delete #include "python/python-internal.h".
13593 Add #include "extension.h".
13594 (mi_cmd_list_features): Replace reference to python internal variable
13595 gdb_python_initialized with call to ext_lang_initialized_p.
13597 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13598 Update to use enum ext_lang_frame_args. Update to call
13599 apply_ext_lang_frame_filter.
13600 * python/py-framefilter.c (extract_sym): Update to use enum
13601 ext_lang_bt_status.
13602 (extract_value, py_print_type, py_print_value): Ditto.
13603 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13604 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13605 (py_print_frame): Ditto.
13606 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13607 New arg extlang. Update to use enum ext_lang_bt_status.
13609 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13610 finish_python_initialization. Replace with call to
13611 finish_ext_lang_initialization.
13613 * typeprint.c (do_free_global_table): Update to call
13614 free_ext_lang_type_printers.
13615 (create_global_typedef_table): Update to call
13616 start_ext_lang_type_printers.
13617 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13618 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13619 (type_print_options): Change type of global_printers from "void *"
13620 to "struct ext_lang_type_printers *".
13622 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13623 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13624 (gdbpy_preserve_values): Renamed from preserve_python_values.
13626 (!HAVE_PYTHON, preserve_python_values): Delete.
13628 * utils.c (quit_flag): Delete, moved to extension.c.
13629 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13632 * eval.c: Delete #include "python/python.h".
13633 * main.c: Delete #include "python/python.h".
13635 * defs.h: Update comment.
13637 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13641 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13643 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13646 2014-02-05 Yao Qi <yao@codesourcery.com>
13648 * remote.c (remote_pass_signals): Remove local 'buf' and use
13650 (remote_program_signals): Likewise.
13652 2014-02-05 Yao Qi <yao@codesourcery.com>
13654 * ctf.c: Include "inferior.h" and "gdbthread.h".
13655 (CTF_PID): A new macro.
13656 (ctf_open): Call inferior_appeared and add_thread_silent.
13657 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13658 (ctf_thread_alive): New function.
13659 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13661 2014-02-05 Yao Qi <yao@codesourcery.com>
13665 2013-05-24 Yao Qi <yao@codesourcery.com>
13667 * tracepoint.c (TFILE_PID): Remove.
13668 (tfile_open): Don't add thread and inferior.
13669 (tfile_close): Don't set 'inferior_ptid'. Don't call
13670 exit_inferior_silent.
13671 (tfile_thread_alive): Remove.
13672 (init_tfile_ops): Don't set field 'to_thread_alive' of
13675 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13677 * remote.c (remote_start_remote): Call remote_check_symbols even
13678 if only symbol-file (not file) has been given.
13680 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13682 * gdbarch.sh (skip_entrypoint): New callback.
13683 * gdbarch.c, gdbarch.h: Regenerate.
13684 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13685 * infrun.c (fill_in_stop_func): Likewise.
13686 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13687 (ppc_elfv2_elf_make_msymbol_special): New function.
13688 (ppc_elfv2_skip_entrypoint): Likewise.
13689 (ppc_linux_init_abi): Install them for ELFv2.
13691 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13693 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13694 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13695 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13696 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13697 structures returned in GPRs.
13699 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13701 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13702 offset to the stack parameter list for the ELFv2 ABI.
13704 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13706 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13707 set_gdbarch_convert_from_func_ptr_addr and
13708 set_gdbarch_elf_make_msymbol_special for ELFv1.
13709 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13710 function descriptors on ELFv1.
13711 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13712 set up r12 at function entry.
13714 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13716 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13717 (struct gdbarch_tdep): New member elf_abi.
13719 * rs6000-tdep.c: Include "elf/ppc64.h".
13720 (rs6000_gdbarch_init): Detect ELF ABI version.
13722 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13724 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13725 within a register pair holding a DFP 128-bit value on little-endian.
13726 (ppc64_sysv_abi_return_value_base): Likewise.
13727 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13728 (dfp_pseudo_register_write): Likewise.
13730 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13732 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13733 offset on little-endian when passing _Decimal32.
13734 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13736 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13738 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13739 of the overlapped FP register within the VSX register on little-
13741 (efpr_pseudo_register_write): Likewise.
13743 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13745 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13746 offset on little-endian when passing small structures.
13748 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13750 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13751 (struct ppc64_sysv_argpos): New data structure.
13752 (ppc64_sysv_abi_push_float): Remove.
13753 (ppc64_sysv_abi_push_val): New function.
13754 (ppc64_sysv_abi_push_integer): Likewise.
13755 (ppc64_sysv_abi_push_freg): Likewise.
13756 (ppc64_sysv_abi_push_vreg): Likewise.
13757 (ppc64_sysv_abi_push_param): Likewise.
13758 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13759 (ppc64_sysv_abi_return_value_base): New function.
13760 (ppc64_sysv_abi_return_value): Refactor to use it.
13762 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13764 * NEWS: Document new target powerpc64le-*-linux*.
13766 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13768 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13769 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13771 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13772 register set used in ELF core dumps. Add floating-point register set.
13774 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13776 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13777 dwarf2_to_gdb[] table using symbolic constants. Adjust
13778 penultimate entry from number representing the PC register
13779 to symbolic constant representing the MDR register. Add
13780 constant for the PC register to the end of the table.
13782 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13784 * bsd-kvm.c: Include <sys/param.h>
13786 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13788 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13790 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13792 * ada-lang.h (clear_ada_sym_cache): Delete.
13794 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13796 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13798 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13800 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13801 the sigreturn register save area only if the syscall is
13804 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13806 * valops.c (value_slice): Minor reformatting.
13808 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13810 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13812 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13814 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13815 New static globals.
13816 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13817 (ada_ignore_descriptive_types_p): New static global.
13818 (find_parallel_type_by_descriptive_type): Return immediately
13819 if ada_ignore_descriptive_types_p is set.
13820 (_initialize_ada_language): Register new commands "maintenance
13821 set ada", "maintenance show ada", "maintenance set ada
13822 ignore-descriptive-types" and "maintenance show ada
13823 ignore-descriptive-types".
13824 * NEWS: Add entry for new "maint ada set/show
13825 ignore-descriptive-types" commands.
13827 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13829 * record-btrace.c (record_btrace_close): Call btrace_teardown
13832 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13834 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13837 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13839 * ada-typeprint (type_is_full_subrange_of_target_type):
13841 (print_range): Add parameter bounds_prefered_p. If not set,
13842 try printing range types using the name of their base type.
13843 (print_range_type): Add parameter bounds_prefered_p.
13844 Use it in call to print_range.
13845 (print_array_type, ada_print_type): Update calls to print_range
13846 and print_range_type.
13848 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13850 * ada-typeprint.c (print_array_type, print_choices, print_range)
13851 (print_range_bound, print_dynamic_range_bound, print_range_type):
13852 Remove declaration.
13854 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13856 * ada-typeprint.c (print_range): Add missing empty line
13857 after local declaration.
13859 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13861 * ada-valprint.c (print_optional_low_bound): Get index_type's
13862 target type for as long as it is a TYPE_CODE_RANGE.
13864 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13866 * procfs.c (procfs_make_note_section): Remove assertion and
13867 associated comment.
13869 2014-01-24 Yao Qi <yao@codesourcery.com>
13871 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13872 * corelow.c (get_core_siginfo): Likewise.
13874 2014-01-24 Yao Qi <yao@codesourcery.com>
13876 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13877 ULONGEST. Don't check 'len' is negative.
13878 (remote_write_bytes): Change type of 'len' to ULONGEST.
13880 2014-01-23 Tom Tromey <tromey@redhat.com>
13883 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13884 Handle exception from frame.block.
13885 (FrameVars.fetch_frame_locals): Likewise.
13887 2014-01-23 Tom Tromey <tromey@redhat.com>
13890 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13891 on a NULL pointer. Move "goto error" to correct place.
13893 2014-01-23 Tom Tromey <tromey@redhat.com>
13896 * python/py-framefilter.c (apply_frame_filter): Call
13897 ensure_python_env after computing gdbarch.
13899 2014-01-23 Yao Qi <yao@codesourcery.com>
13901 * target.c (raw_memory_xfer_partial): Change argument type
13902 from void * to gdb_byte *.
13903 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13905 2014-01-22 Doug Evans <dje@google.com>
13907 New gdbserver option --debug-format=timestamp.
13908 * NEWS: Mention it.
13910 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13912 * syscalls/s390x-linux.xml: New file.
13913 * syscalls/s390-linux.xml: New file.
13914 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13915 (XML_SYSCALL_FILENAME_S390X): Likewise.
13916 (op_svc): New enum value for SVC opcode.
13917 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13918 (s390_linux_get_syscall_number): New function.
13919 (s390_gdbarch_init): Register '*get_syscall_number' and the
13920 syscall xml file name.
13921 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13922 "s390-linux.xml" and "s390x-linux.xml".
13923 * NEWS: Announce new feature.
13925 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13927 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13929 2014-01-22 Pedro Alves <palves@redhat.com>
13931 * xtensa-config.c: Include defs.h.
13933 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13935 * common/common-utils.h: Add "ARI:" comment beside __func__
13938 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13940 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13941 documentation a bit.
13943 2014-01-21 Roland McGrath <mcgrathr@google.com>
13945 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13946 * configure: Regenerate.
13947 * aclocal.m4: Regenerate.
13948 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13949 New substituted variables.
13950 (install-strip): New target.
13951 (INSTALL_SCRIPT): New substituted variable.
13952 (FLAGS_TO_PASS): Add it.
13953 (install-only): Use $(INSTALL_SCRIPT) rather than
13954 $(INSTALL_PROGRAM) for gcore.
13956 2014-01-20 Tom Tromey <tromey@redhat.com>
13958 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13961 2014-01-20 Tom Tromey <tromey@redhat.com>
13963 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13964 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13965 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13966 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13967 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13968 (struct cmd_list_element) <flags>: Remove.
13969 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13970 doc_allocated>: New fields.
13971 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13973 * maint.c (maintenance_do_deprecate): Update.
13974 * top.c (execute_command): Update.
13976 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13978 * xtensa-linux-nat.c: Include asm/ptrace.h.
13980 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13982 * Makefile.in (SFILES): Add d-support.c.
13983 (COMMON_OBS): Add d-support.o.
13984 * d-lang.h (d_parse_symbol): Add comment, now defined in
13986 * d-lang.c (parse_call_convention)
13987 (parse_attributes, parse_function_types)
13988 (parse_function_args, parse_type, parse_identifier)
13989 (call_convention_p, d_parse_symbol): Move functions to ...
13990 * d-support.c: ... New file.
13992 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13994 * d-lang.h (d_parse_symbol): Add declaration.
13995 * d-lang.c (extract_identifiers)
13996 (extract_type_info): Remove functions.
13997 (parse_call_convention, parse_attributes)
13998 (parse_function_types, parse_function_args)
13999 (parse_type, parse_identifier, call_convention_p)
14000 (d_parse_symbol): New functions.
14001 (d_demangle): Use d_parse_symbol to demangle D symbols.
14003 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14005 * d-lang.h (struct builtin_d_type): New data type.
14006 (builtin_d_type): Add declaration.
14007 * d-lang.c (d_language_arch_info, build_d_types)
14008 (builtin_d_type): New functions.
14009 (enum d_primitive_types): New data type.
14010 (d_language_defn): Change c_language_arch_info to
14011 d_language_arch_info.
14012 (d_type_data): New static variable.
14013 (_initialize_d_language): Initialize d_type_data.
14015 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14017 * d-lang.h (d_main_name): Add declaration.
14018 * d-lang.c (d_main_name): New function.
14019 * symtab.c (find_main_name): Add call to d_main_name.
14021 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14023 * d-lang.c (d_language_defn): Change macro_expansion_c to
14024 macro_expansion_no.
14026 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14028 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14030 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14032 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14033 gdb_exception" declaration.
14034 * remote.c (getpkt_or_notif_sane): Likewise.
14036 2014-01-17 Doug Evans <dje@google.com>
14038 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14039 function, contents of dirnames_to_char_ptr_vec_append moved here.
14040 (delim_string_to_char_ptr_vec): New function.
14041 (dirnames_to_char_ptr_vec_append): Rewrite.
14042 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14044 2014-01-17 Doug Evans <dje@google.com>
14046 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14048 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14049 #include "common-utils.h".
14050 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14051 * common/vec.h (VEC_ASSERT_PASS): Update.
14052 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14053 (MACH_CHECK_ERROR): Update.
14055 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14057 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14059 * gdbarch.h: Regenerate.
14061 2014-01-16 Tom Tromey <tromey@redhat.com>
14063 * value.c (struct value) <regnum>: Move earlier.
14065 2014-01-16 Tom Tromey <tromey@redhat.com>
14067 * remote.c (extended_remote_create_inferior): Rename from
14068 extended_remote_create_inferior_1. Add "ops" argument. Remove
14069 old implementation.
14071 2014-01-16 Pedro Alves <palves@redhat.com>
14073 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14074 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14077 2014-01-16 Doug Evans <dje@google.com>
14079 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14081 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14083 * btrace.h (btrace_thread_flag): New.
14084 (struct btrace_thread_info) <flags>: New.
14085 * record-btrace.c (record_btrace_resume_thread)
14086 (record_btrace_find_thread_to_move, btrace_step_no_history)
14087 (btrace_step_stopped, record_btrace_start_replaying)
14088 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14089 (record_btrace_find_resume_thread): New.
14090 (record_btrace_resume, record_btrace_wait): Extend.
14091 (record_btrace_can_execute_reverse): New.
14092 (record_btrace_open): Fail in non-stop mode.
14093 (record_btrace_set_replay): Split into this, ...
14094 (record_btrace_stop_replaying): ... this, ...
14095 (record_btrace_clear_histories): ... and this.
14096 (init_record_btrace_ops): Init to_can_execute_reverse.
14097 * NEWS: Announce it.
14099 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14101 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14102 (forward_target_decr_pc_after_break)
14103 (target_decr_pc_after_break): New.
14104 * target.c (forward_target_decr_pc_after_break)
14105 (target_decr_pc_after_break): New.
14106 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14107 instead of gdbarch_decr_pc_after_break.
14108 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14109 instead of gdbarch_decr_pc_after_break.
14110 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14111 instead of gdbarch_decr_pc_after_break.
14112 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14113 instead of gdbarch_decr_pc_after_break.
14114 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14115 instead of gdbarch_decr_pc_after_break.
14116 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14117 instead of gdbarch_decr_pc_after_break.
14119 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14121 * btrace.c: Include regcache.h.
14122 (btrace_add_pc): New.
14123 (btrace_enable): Call btrace_add_pc.
14124 (btrace_is_empty): New.
14125 * btrace.h (btrace_is_empty): New.
14126 * record-btrace.c (require_btrace, record_btrace_info): Call
14129 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14131 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14132 Support delta reads.
14133 (linux_disable_btrace): Change return type.
14134 * common/linux-btrace.h (linux_read_btrace): Change parameters
14135 and return type to allow error reporting. Update users.
14136 (linux_disable_btrace): Change return type. Update users.
14137 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14139 (btrace_error): New.
14140 (btrace_block) <begin>: Comment on BEGIN == 0.
14141 * btrace.c (btrace_compute_ftrace): Start from the end of
14143 (btrace_stitch_trace, btrace_clear_history): New.
14144 (btrace_fetch): Read delta trace, return if replaying.
14145 (btrace_clear): Move clear history code to btrace_clear_history.
14146 (parse_xml_btrace): Throw an error if parsing failed.
14147 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14148 and return type to allow error reporting.
14149 (target_read_btrace): Change parameters and return type to allow
14151 * target.c (target_read_btrace): Update.
14152 * remote.c (remote_read_btrace): Support delta reads. Pass
14154 * NEWS: Announce it.
14156 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14158 * record.h (record_btrace_frame_unwind)
14159 (record_btrace_tailcall_frame_unwind): New declarations.
14160 * dwarf2-frame: Include record.h
14161 (dwarf2_frame_cfa): Throw an error for btrace frames.
14162 * record-btrace.c: Include hashtab.h.
14163 (btrace_get_bfun_name): New.
14164 (btrace_call_history): Call btrace_get_bfun_name.
14165 (struct btrace_frame_cache): New.
14167 (bfcache_hash, bfcache_eq, bfcache_new): New.
14168 (btrace_get_frame_function): New.
14169 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14170 (record_btrace_frame_this_id): Compute own id.
14171 (record_btrace_frame_prev_register): Provide PC, throw_error
14172 for all other registers.
14173 (record_btrace_frame_sniffer): Detect btrace frames.
14174 (record_btrace_tailcall_frame_sniffer): New.
14175 (record_btrace_frame_dealloc_cache): New.
14176 (record_btrace_frame_unwind): Add new functions.
14177 (record_btrace_tailcall_frame_unwind): New.
14178 (_initialize_record_btrace): Allocate cache.
14179 * btrace.c (btrace_clear): Call reinit_frame_cache.
14180 * NEWS: Announce it.
14182 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14184 * record-btrace.c (record_btrace_set_replay)
14185 (record_btrace_goto_begin, record_btrace_goto_end)
14186 (record_btrace_goto): New.
14187 (init_record_btrace_ops): Initialize them.
14188 * NEWS: Announce it.
14190 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14192 * record-btrace.c (record_btrace_find_new_threads)
14193 (record_btrace_thread_alive): New.
14194 (init_record_btrace_ops): Initialize to_find_new_threads and
14197 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14199 * record-btrace.c (record_btrace_resume): New.
14200 (record_btrace_wait): New.
14201 (init_record_btrace_ops): Initialize to_wait and to_resume.
14203 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14205 * record-btrace.c (record_btrace_xfer_partial)
14206 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14207 (record_btrace_allow_memory_access): New.
14208 (init_record_btrace_ops): Initialize new methods.
14209 * target.c (raw_memory_xfer_partial): Bail out if target reports
14210 that this memory is not available.
14212 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14214 * target.h (target_ops) <to_insert_breakpoint>
14215 <to_remove_breakpoint>: Add target_ops parameter.
14216 (forward_target_insert_breakpoint): New.
14217 (forward_target_remove_breakpoint): New.
14218 (memory_remove_breakpoint, memory_insert_breakpoint):
14219 Add target_ops parameter.
14220 * target.c (target_insert_breakpoint): Split into this and ...
14221 (forward_target_insert_breakpoint): ... this.
14222 (target_remove_breakpoint): Split into this and ...
14223 (forward_target_remove_breakpoint): ... this.
14224 (debug_to_insert_breakpoint): Add target_ops parameter.
14225 Call forward_target_insert_breakpoint.
14226 (debug_to_remove_breakpoint): Add target_ops parameter.
14227 Call forward_target_remove_breakpoint.
14228 (update_current_target): Do not inherit or default to_insert_breakpoint
14229 and to_remove_breakpoint.
14230 * corelow.c (ignore): Add target_ops parameter.
14231 * exec.c (ignore): Add target_ops parameter.
14232 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14233 Add target_ops parameter.
14234 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14235 Add target_ops parameter.
14236 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14237 Add target_ops parameter.
14238 * record-full.c (record_full_beneath_to_insert_breakpoint)
14239 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14240 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14241 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14242 (record_full_core_remove_breakpoint): Add target_ops parameter.
14244 (record_full_beneath_to_insert_breakpoint_ops)
14245 (record_full_beneath_to_remove_breakpoint_ops)
14246 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14247 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14248 tmp_to_remove_breakpoint_ops,
14249 record_full_beneath_to_insert_breakpoint_ops, and
14250 record_full_beneath_to_remove_breakpoint_ops.
14251 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14252 (m32r_remove_breakpoint): Add target_ops parameter.
14253 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14254 Add target_ops parameter.
14255 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14256 Add target_ops parameter.
14258 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14259 Markus Metzger <markus.t.metzger@intel.com>
14261 * record-btrace.c: Include frame-unwind.h.
14262 (record_btrace_frame_unwind_stop_reason)
14263 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14264 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14266 (init_record_btrace_ops): Install it.
14268 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14270 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14273 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14275 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14278 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14280 * frame-unwind.c: Include target.h.
14281 (frame_unwind_try_unwinder): New function with code from ...
14282 (frame_unwind_find_by_frame): ... here. New variable
14283 unwinder_from_target, call also target_get_unwinder)
14284 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14285 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14286 * target.h (struct target_ops): New fields to_get_unwinder and
14287 to_get_tailcall_unwinder.
14288 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14290 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14292 * record-btrace.c (record_btrace_fetch_registers)
14293 (record_btrace_store_registers)
14294 (record_btrace_to_prepare_to_store): New.
14295 (init_record_btrace_ops): Add the above.
14297 2014-01-16 Tom Tromey <tromey@redhat.com>
14299 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14300 * target.h (struct target_ops) <to_prepare_to_store>: Add
14302 (target_prepare_to_store): Add argument.
14303 * target.c (debug_to_prepare_to_store): Add argument.
14304 (update_current_target): Update.
14305 * remote.c (remote_prepare_to_store): Add 'self' argument.
14306 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14307 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14308 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14309 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14311 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14312 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14313 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14314 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14315 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14317 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14319 * btrace.h (replay) <replay>: New.
14320 (btrace_is_replaying): New.
14321 * btrace.c (btrace_clear): Free replay iterator.
14322 (btrace_is_replaying): New.
14323 * record-btrace.c (record_btrace_is_replaying): New.
14324 (record_btrace_info): Print insn number if replaying.
14325 (record_btrace_insn_history): Start at replay position.
14326 (record_btrace_call_history): Start at replay position.
14327 (init_record_btrace_ops): Init to_record_is_replaying.
14329 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14331 * record-btrace.c (record_btrace_insn_history_range): Include
14333 (record_btrace_insn_history_from): Adjust range.
14334 (record_btrace_call_history_range): Include
14336 (record_btrace_call_history_from): Adjust range.
14337 * NEWS: Announce changes.
14339 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14341 * record.h (enum record_print_flag)
14342 <record_print_indent_calls>: New.
14343 * record.c (get_call_history_modifiers): Recognize /c modifier.
14344 (_initialize_record): Document /c modifier.
14345 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14346 Reorder fields. Optionally indent the function name. Update
14348 * NEWS: Announce changes.
14350 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14352 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14354 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14356 * btrace.c (ftrace_new_function): Start counting at one.
14357 * record-btrace.c (record_btrace_info): Adjust number of calls
14359 * NEWS: Announce it.
14361 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14363 * record-btrace.c (btrace_call_history_insn_range): Print
14364 insn range as [begin, end].
14366 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14368 * btrace.h (struct btrace_func_link): New.
14369 (enum btrace_function_flag): New.
14370 (struct btrace_inst): Rename to ...
14371 (struct btrace_insn): ...this. Update all users.
14372 (struct btrace_func) <ibegin, iend>: Remove.
14373 (struct btrace_func_link): New.
14374 (struct btrace_func): Rename to ...
14375 (struct btrace_function): ...this. Update all users.
14376 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14377 (number, level, flags>: New.
14378 (struct btrace_insn_iterator): Rename to ...
14379 (struct btrace_insn_history): ...this.
14381 (struct btrace_insn_iterator, btrace_call_iterator): New.
14382 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14383 (struct btrace_target_info) <begin, end, level>
14384 <insn_history, call_history>: New.
14385 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14386 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14387 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14388 (btrace_call_number, btrace_call_begin, btrace_call_end)
14389 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14390 (btrace_find_function_by_number, btrace_set_insn_history)
14391 (btrace_set_call_history): New.
14392 * btrace.c (btrace_init_insn_iterator)
14393 (btrace_init_func_iterator, compute_itrace): Remove.
14394 (ftrace_print_function_name, ftrace_print_filename)
14395 (ftrace_skip_file): Change
14396 parameter to const.
14397 (ftrace_init_func): Remove.
14398 (ftrace_debug): Use new btrace_function fields.
14399 (ftrace_function_switched): Also consider gaining and
14400 losing symbol information).
14401 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14402 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14403 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14405 (ftrace_new_function): Move. Remove debug print.
14406 (ftrace_update_lines, ftrace_update_insns): New.
14407 (ftrace_update_function): Check for call, ret, and jump.
14408 (compute_ftrace): Renamed to ...
14409 (btrace_compute_ftrace): ...this. Rewritten to compute call
14411 (btrace_fetch, btrace_clear): Updated.
14412 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14413 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14414 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14415 (btrace_call_number, btrace_call_begin, btrace_call_end)
14416 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14417 (btrace_find_function_by_number, btrace_set_insn_history)
14418 (btrace_set_call_history): New.
14419 * record-btrace.c (require_btrace): Use new btrace thread
14421 (record_btrace_info, btrace_insn_history)
14422 (record_btrace_insn_history, record_btrace_insn_history_range):
14423 Use new btrace thread info fields and new iterator.
14424 (btrace_func_history_src_line): Rename to ...
14425 (btrace_call_history_src_line): ...this. Use new btrace
14426 thread info fields.
14427 (btrace_func_history): Rename to ...
14428 (btrace_call_history): ...this. Use new btrace thread info
14429 fields and new iterator.
14430 (record_btrace_call_history, record_btrace_call_history_range):
14431 Use new btrace thread info fields and new iterator.
14433 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14435 * frame.h (frame_id_build_unavailable_stack_special): New.
14436 * frame.c (frame_id_build_unavailable_stack_special): New.
14438 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14440 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14441 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14442 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14444 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14445 (i386_insn_is_jump, i386_jmp_p): New.
14446 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14447 insn_is_jump to gdbarch.
14448 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14449 * gdbarch.h: Regenerated.
14450 * gdbarch.c: Regenerated.
14451 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14452 (default_insn_is_jump): New.
14453 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14454 (default_insn_is_jump): New.
14456 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14458 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14460 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14461 (btrace_read_type) <btrace_read_new>: Change to ...
14462 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14464 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14466 * common/linux-btrace.c (linux_read_btrace): Free trace from
14467 previous iteration.
14469 2014-01-15 Doug Evans <dje@google.com>
14471 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14474 2014-01-15 Tom Tromey <tromey@redhat.com>
14476 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14477 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14478 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14479 (set_objfile_main_name): New function.
14480 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14481 language_of_main>: New fields.
14482 (set_objfile_main_name): Declare.
14483 * symtab.c (find_main_name): Loop over objfiles to find the main
14485 (set_main_name): Now static.
14486 (get_main_info): Add comment.
14487 * symtab.h (set_main_name): Don't declare.
14489 2014-01-15 Tom Tromey <tromey@redhat.com>
14491 * symtab.c (main_progspace_key): New global.
14492 (struct main_info): New.
14493 (name_of_main, language_of_main): Remove.
14494 (get_main_info, main_info_cleanup): New function.
14495 (set_main_name, main_name, main_language): Use get_main_info.
14496 (_initialize_symtab): Initialize main_progspace_key.
14498 2014-01-15 Tom Tromey <tromey@redhat.com>
14500 * dbxread.c (process_one_symbol): Update.
14501 * dwarf2read.c (read_partial_die): Update.
14502 * symfile.c (set_initial_language): Call main_language.
14503 * symtab.c (language_of_main): Now static.
14504 (set_main_name): Add 'lang' parameter.
14505 (find_main_name): Update.
14506 (main_language): New function.
14507 (symtab_observer_executable_changed): Update.
14508 * symtab.h (set_main_name): Update.
14509 (language_of_main): Remove.
14510 (main_language): Declare.
14512 2014-01-15 Tom Tromey <tromey@redhat.com>
14514 * symfile.c (init_entry_point_info): Use new "initialized" field.
14516 * objfiles.h (struct entry_point) <initialized>: New field.
14517 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14518 (struct objfile) <ei>: ...here. Remove.
14519 * objfiles.c (entry_point_address_query): Update.
14521 2014-01-15 Tom Tromey <tromey@redhat.com>
14523 * objfiles.c (entry_point_address_query): Relocate entry point
14525 (objfile_relocate1): Do not relocate entry point address.
14526 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14527 <the_bfd_section_index>: New field.
14528 * symfile.c (init_entry_point_info): Find the entry point's
14531 2014-01-15 Tom Tromey <tromey@redhat.com>
14533 * solib-frv.c (enable_break): Use entry_point_address_query.
14535 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14537 * NEWS: Add note on improved process record-replay on
14538 arm*-linux* targets.
14540 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14542 * arm-tdep.c (enum arm_record_result): New enum.
14543 (arm_record_unsupported_insn): New function.
14544 (arm_record_coproc_data_proc): Removed.
14545 (thumb2_record_ld_st_multiple): New function.
14546 (thumb2_record_ld_st_dual_ex_tbb): New function.
14547 (thumb2_record_data_proc_sreg_mimm): New function.
14548 (thumb2_record_ps_dest_generic): New function.
14549 (thumb2_record_branch_misc_cntrl): New function.
14550 (thumb2_record_str_single_data): New function.
14551 (thumb2_record_ld_mem_hints): New function.
14552 (thumb2_record_ld_word): New function.
14553 (thumb2_record_lmul_lmla_div): New function.
14554 (thumb2_record_decode_insn_handler): New function.
14555 (decode_insn): Add thumb32 instruction handlers.
14557 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14559 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14560 (struct arm_linux_record_tdep): Declare.
14561 (arm_canonicalize_syscall): New function.
14562 (arm_all_but_pc_registers_record): New function.
14563 (arm_linux_syscall_record): New function.
14564 (arm_linux_init_abi): Add syscall recording constructs.
14565 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14566 decoding. (arm_record_coproc_data_proc): Update arm syscall
14568 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14569 <arm_syscall_record>: New field.
14570 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14573 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14575 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14576 register for push instruction recording.
14578 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14580 * arm-tdep.c (thumb_record_misc): Update to correct logical
14581 error while recording ldm, ldmia and pop instructions.
14583 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14585 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14587 2014-01-15 Pedro Alves <palves@redhat.com>
14589 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14590 (go32_resume, go32_fetch_registers, store_register)
14591 (go32_store_registers, go32_prepare_to_store)
14592 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14593 (go32_create_inferior, go32_can_run, go32_terminal_init)
14594 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14597 2014-01-15 Tom Tromey <tromey@redhat.com>
14599 * target.h (async_callback_ftype): New typedef.
14600 (struct target_ops) <to_async>: Use it.
14602 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14604 * python/py-value.c (get_field_type): Remove unnecessary curly
14605 braces for single-statement if block.
14607 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14609 * python/py-type.c (convert_field): Add missing empty line
14610 after declarations.
14612 2014-01-14 Doug Evans <dje@google.com>
14614 * symfile.h (expand_symtabs_matching): Renamed from
14615 expand_partial_symbol_names. Update prototype.
14616 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14617 * symfile.c (expand_symtabs_matching): Renamed from
14618 expand_partial_symbol_names. New args file_matcher, kind.
14619 Rename arg fun to symbol_matcher.
14620 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14621 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14622 ada_expand_partial_symbol_name.
14623 (ada_make_symbol_completion_list): Update to call
14624 expand_symtabs_matching.
14625 (ada_add_global_exceptions): Call expand_symtabs_matching.
14626 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14627 call map_symbol_filenames.
14628 * symtab.c (sources_info): Update to call map_symbol_filenames.
14629 (search_symbols): Call expand_symtabs_matching.
14630 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14631 (default_make_symbol_completion_list_break_on): Update to call
14632 expand_symtabs_matching.
14633 (make_source_files_completion_list): Update to call
14634 map_symbol_filenames.
14636 2014-01-14 Doug Evans <dje@google.com>
14638 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14639 (expand_symtabs_symbol_matcher_ftype): New typedef.
14640 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14641 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14642 * symfile.c (expand_partial_symbol_names): Update to use
14643 expand_symtabs_symbol_matcher_ftype.
14644 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14645 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14646 Arg name_matcher renamed to symbol_matcher.
14647 * psymtab.c (recursively_search_psymtabs): Update to use
14648 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14650 (expand_symtabs_matching_via_partial): Update to use
14651 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14652 Arg name_matcher renamed to symbol_matcher.
14654 2014-01-14 Doug Evans <dje@google.com>
14656 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14657 (map_partial_symbol_filenames): Ditto.
14658 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14659 (map_partial_symbol_filenames): Ditto.
14660 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14661 (map_partial_symbol_filenames): Ditto.
14662 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14663 (map_partial_symbol_filenames): Ditto.
14664 * symtab.c: Delete #include "psymtab.h".
14666 2014-01-14 Pedro Alves <palves@redhat.com>
14667 Tom Tromey <tromey@redhat.com>
14669 * infrun.c (use_displaced_stepping): Use find_record_target
14670 instead of RECORD_IS_USED.
14671 (adjust_pc_after_break): Use record_full_is_used instead of
14673 * record-btrace.c (record_btrace_open): Call record_preopen
14674 instead of checking RECORD_IS_USED.
14675 * record-full.c (record_full_shortname)
14676 (record_full_core_shortname): New globals.
14677 (record_full_is_used): New function.
14678 (find_full_open): Call record_preopen instead of checking
14680 (init_record_full_ops): Set the target's shortname to
14681 record_full_shortname.
14682 (init_record_full_core_ops): Set the target's shortname to
14683 record_full_core_shortname.
14684 * record-full.h (record_full_is_used): Declare.
14685 * record.c (find_record_target): Make extern.
14686 (record_preopen): New function.
14687 * record.h (RECORD_IS_USED): Delete macro.
14688 (find_record_target, record_preopen): Declare functions.
14690 2014-01-14 Yao Qi <yao@codesourcery.com>
14692 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14693 'len''s type to ULONGEST.
14694 (core_xfer_shared_libraries_aix): Likewise.
14695 * gdbarch.c, gdbarch.h: Regenerated.
14696 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14697 Change type of 'len' to ULONGEST.
14698 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14699 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14701 2014-01-14 Yao Qi <yao@codesourcery.com>
14703 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14704 type of 'len' to ULONGEST.
14705 (linux_xfer_osdata_processgroups): Likewise.
14706 (linux_xfer_osdata_threads): Likewise.
14707 (linux_xfer_osdata_fds): Likewise.
14708 (linux_xfer_osdata_isockets): Likewise.
14709 (linux_xfer_osdata_shm): Likewise.
14710 (linux_xfer_osdata_sem): Likewise.
14711 (linux_xfer_osdata_msg): Likewise.
14712 (linux_common_xfer_osdata): Likewise.
14713 (struct osdata_type) <getter>: Likewise.
14714 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14717 2014-01-14 Yao Qi <yao@codesourcery.com>
14719 * target.h (target_xfer_partial_ftype): Update.
14720 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14722 * aix-thread.c (aix_thread_xfer_partial): Change type of
14723 argument 'len' to ULONGEST.
14724 * auxv.c (procfs_xfer_auxv): Likewise.
14725 (ld_so_xfer_auxv): Likewise.
14726 (memory_xfer_auxv): Likewise.
14727 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14728 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14729 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14730 * corelow.c (core_xfer_partial): Likewise.
14731 * ctf.c (ctf_xfer_partial): Likewise.
14732 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14734 (darwin_read_dyld_info): Likewise.
14735 (darwin_xfer_partial): Likewise.
14736 * exec.c (section_table_xfer_memory_partial): Likewise.
14737 (exec_xfer_partial): Likewise.
14738 * exec.h (section_table_xfer_memory_partial): Update
14740 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14741 instead of plongest.
14742 (gnu_xfer_partial): Likewise.
14743 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14744 (ia64_hpux_xfer_solib_got): Likewise.
14745 (ia64_hpux_xfer_partial): Likewise.
14746 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14747 * inf-ptrace.c (inf_ptrace_xfer_partial):
14748 * inf-ttrace.c (inf_ttrace_xfer_partial):
14749 * linux-nat.c (linux_xfer_siginfo): Likewise.
14750 (linux_nat_xfer_partial): Likewise.
14751 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14752 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14753 * monitor.c (monitor_xfer_memory): Likewise.
14754 (monitor_xfer_partial): Likewise.
14755 * procfs.c (procfs_xfer_partial): Likewise.
14756 * record-full.c (record_full_xfer_partial): Likewise.
14757 (record_full_core_xfer_partial): Likewise.
14758 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14759 instead of plongest.
14760 (gdbsim_xfer_partial): Likewise.
14761 * remote.c (remote_xfer_partial): Likewise.
14762 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14763 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14765 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14766 (rs6000_xfer_shared_libraries): Likewise.
14767 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14768 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14769 (sparc_xfer_partial): Likewise.
14770 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14771 (spu_xfer_partial): Likewise.
14772 * spu-multiarch.c (spu_xfer_partial): Likewise.
14773 * target.c (target_read_live_memory): Likewise.
14774 (memory_xfer_live_readonly_partial): Likewise.
14775 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14776 (target_xfer_partial, default_xfer_partial): Likewise.
14777 (current_xfer_partial): Likewise.
14778 * tracepoint.c (tfile_xfer_partial): Likewise.
14779 * windows-nat.c (windows_xfer_memory): Likewise. Call
14780 pulongest instead of plongest.
14781 (windows_xfer_partial): Likewise.
14782 (windows_xfer_shared_libraries): Likewise.
14784 2014-01-14 Yao Qi <yao@codesourcery.com>
14786 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14787 target_xfer_partial_ftype.
14789 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14793 * valops.c (value_struct_elt_bitpos): New function
14794 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14795 object to 'None' if the field name is an empty string ("").
14796 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14797 attribute to look for a field when 'name' is 'None'.
14798 (get_field_type): New function
14800 2014-01-13 Doug Evans <dje@google.com>
14803 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14804 (try_open_dwop_file): Ditto.
14805 * gdb_bfd.c: #include "vec.h".
14806 (bfdp): New typedef.
14807 (struct gdb_bfd_data): New member included_bfds.
14808 (gdb_bfd_unref): Unref all included bfds.
14809 (gdb_bfd_record_inclusion): New function.
14810 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14812 2014-01-13 Tom Tromey <tromey@redhat.com>
14814 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14816 2014-01-13 Tom Tromey <tromey@redhat.com>
14818 * defs.h (use_windows): Remove.
14819 * gdb.c (main): Update.
14820 * main.c (captured_main, gdb_main): Update.
14821 * main.h (struct captured_main_args) <use_windows>: Remove.
14822 * top.c (use_windows): Remove.
14824 2014-01-13 Tom Tromey <tromey@redhat.com>
14826 * defs.h (deprecated_flush_hook): Remove.
14828 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14831 * linux-thread-db.c (try_thread_db_load): Add parameter
14832 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14833 (try_thread_db_load_from_pdir_1): Move it there from here.
14834 (try_thread_db_load_from_sdir): Update caller.
14835 (try_thread_db_load_from_dir): Move it there from here.
14837 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14839 * regformats/regdat.sh: Always rewrite the register file.
14841 2014-01-13 Pedro Alves <palves@redhat.com>
14843 * Makefile.in (CHECK_HEADERS): New variable.
14844 (check-headers:): New rule.
14846 2014-01-13 Tom Tromey <tromey@redhat.com>
14848 * cli/cli-setshow.c (do_set_command): Update.
14849 * defs.h (deprecated_set_hook): Remove.
14850 * top.c (deprecated_set_hook): Remove.
14852 2014-01-13 Pedro Alves <palves@redhat.com>
14854 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14855 the tracepoint if the PC is a pseudo-register.
14857 2014-01-13 Tom Tromey <tromey@redhat.com>
14859 * defs.h (XCALLOC): Remove.
14860 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14861 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14862 * dwarf2loc.c (allocate_piece_closure): Likewise.
14863 * elfread.c (elf_symfile_segments): Likewise.
14864 (elf_symfile_segments): Likewise.
14865 * gdbtypes.c (copy_type_recursive): Likewise.
14866 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14867 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14868 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14870 * mt-tdep.c (mt_gdbarch_init): Likewise.
14871 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14873 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14874 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14875 * registry.c (registry_alloc_data): Likewise.
14876 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14877 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14878 * serial.c (serial_fdopen_ops): Likewise.
14879 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14881 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14882 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14885 2014-01-13 Tom Tromey <tromey@redhat.com>
14887 * defs.h (XMALLOC): Remove.
14888 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14889 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14890 * cli-out.c (struct ui_out *): Likewise.
14891 * cli/cli-dump.c (add_dump_command): Likewise.
14892 (add_dump_command): Likewise.
14893 * complaints.c (get_complaints): Likewise.
14894 (find_complaint): Likewise.
14895 * dwarf2-frame.c (execute_cfa_program): Likewise.
14896 * dwarf2read.c (abbrev_table_read_table): Likewise.
14897 * gdbarch.sh: Likewise.
14898 * gdbarch.c: Rebuild.
14899 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14900 * interps.c (interp_new): Likewise.
14901 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14902 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14903 * mi/mi-console.c (mi_console_file_new): Likewise.
14904 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14905 * mi/mi-out.c (mi_out_new): Likewise.
14906 * mi/mi-parse.c (mi_parse): Likewise.
14907 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14908 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14909 * observer.c (xalloc_observer_list_node): Likewise.
14910 * regcache.c (regcache_xmalloc_1): Likewise.
14911 * reggroups.c (reggroup_new): Likewise.
14912 (_initialize_reggroup): Likewise.
14913 * registry.c (register_data_with_cleanup): Likewise.
14914 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14915 * ser-base.c (serial_ttystate): Likewise.
14916 * ser-mingw.c (make_pipe_state): Likewise.
14917 * ser-pipe.c (pipe_open): Likewise.
14918 * serial.c (serial_open): Likewise.
14919 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14920 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14921 (tui_alloc_win_info): Likewise.
14922 (tui_add_content_elements): Likewise.
14923 * tui/tui-file.c (tui_file_new): Likewise.
14924 * tui/tui-out.c (tui_out_new): Likewise.
14925 * ui-file.c (mem_file_new): Likewise.
14926 * ui-out.c (push_level): Likewise.
14927 (make_cleanup_ui_out_end): Likewise.
14928 (append_header_to_list): Likewise.
14929 (ui_out_new): Likewise.
14930 * user-regs.c (user_reg_add_builtin): Likewise.
14932 2014-01-13 Tom Tromey <tromey@redhat.com>
14934 * defs.h (XZALLOC): Remove.
14935 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14936 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14937 (get_ada_tasks_inferior_data): Likewise.
14938 * auto-load.c (get_auto_load_pspace_data): Likewise.
14939 * auxv.c (get_auxv_inferior_data): Likewise.
14940 * bfd-target.c (target_bfd_reopen): Likewise.
14941 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14942 (deprecated_insert_raw_breakpoint): Likewise.
14943 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14944 * corelow.c (core_open): Likewise.
14945 * darwin-nat.c (darwin_check_new_threads): Likewise.
14946 (darwin_attach_pid): Likewise.
14947 * dummy-frame.c (dummy_frame_push): Likewise.
14948 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14949 * dwarf2loc.c (allocate_piece_closure): Likewise.
14950 * elfread.c (elf_symfile_segments): Likewise.
14951 * eval.c (ptrmath_type_p): Likewise.
14952 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14953 * gdbtypes.c (alloc_type_arch): Likewise.
14954 (alloc_type_instance): Likewise.
14955 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14956 * inf-child.c (inf_child_can_use_agent): Likewise.
14957 * inflow.c (get_inflow_inferior_data): Likewise.
14958 * infrun.c (save_infcall_suspend_state): Likewise.
14959 * jit.c (jit_reader_load): Likewise.
14960 (get_jit_objfile_data): Likewise.
14961 (get_jit_program_space_data): Likewise.
14962 (jit_object_open_impl): Likewise.
14963 (jit_symtab_open_impl): Likewise.
14964 (jit_block_open_impl): Likewise.
14965 (jit_frame_sniffer): Likewise.
14966 * linux-fork.c (add_fork): Likewise.
14967 * maint.c (make_command_stats_cleanup): Likewise.
14968 * objfiles.c (get_objfile_pspace_data): Likewise.
14969 * opencl-lang.c (struct lval_closure): Likewise.
14970 * osdata.c (osdata_start_osdata): Likewise.
14971 * progspace.c (new_address_space): Likewise.
14972 (add_program_space): Likewise.
14973 * remote-sim.c (get_sim_inferior_data): Likewise.
14974 * sh-tdep.c (sh_gdbarch_init): Likewise.
14975 * skip.c (Ignore): Likewise.
14976 (skip_delete_command): Likewise.
14977 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14978 (library_list_start_library): Likewise.
14979 (solib_aix_current_sos): Likewise.
14980 * solib-darwin.c (get_darwin_info): Likewise.
14981 (darwin_current_sos): Likewise.
14982 * solib-dsbt.c (get_dsbt_info): Likewise.
14983 * solib-ia64-hpux.c (new_so_list): Likewise.
14984 (ia64_hpux_get_solib_linkage_addr): Likewise.
14985 * solib-spu.c (append_ocl_sos): Likewise.
14986 (spu_current_sos): Likewise.
14987 * solib-svr4.c (get_svr4_info): Likewise.
14988 (svr4_keep_data_in_core): Likewise.
14989 (library_list_start_library): Likewise.
14990 (svr4_default_sos): Likewise.
14991 (svr4_read_so_list): Likewise.
14992 * solib-target.c (library_list_start_library): Likewise.
14993 (solib_target_current_sos): Likewise.
14994 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14995 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14996 * symfile.c (default_symfile_segments): Likewise.
14997 * target-descriptions.c (tdesc_data_init): Likewise.
14998 (tdesc_create_reg): Likewise.
14999 (struct tdesc_type *): Likewise.
15000 (tdesc_create_vector): Likewise.
15001 (tdesc_set_struct_size): Likewise.
15002 (struct tdesc_type *): Likewise.
15003 (tdesc_free_feature): Likewise.
15004 (tdesc_create_feature): Likewise.
15005 * windows-nat.c (windows_add_thread): Likewise.
15006 (windows_make_so): Likewise.
15007 * xml-support.c (gdb_xml_body_text): Likewise.
15008 (gdb_xml_create_parser_and_cleanup): Likewise.
15009 (xml_process_xincludes): Likewise.
15010 * xml-syscall.c (allocate_syscalls_info): Likewise.
15011 (syscall_create_syscall_desc): Likewise.
15013 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15015 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15016 function, with code from i386_stap_parse_special_token.
15017 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15018 (i386_stap_parse_special_token): Move code to the two functions
15019 above; simplify it.
15021 2014-01-09 Pedro Alves <palves@redhat.com>
15022 Hui Zhu <hui@codesourcery.com>
15025 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15026 bp_err_string. Don't mark the location shlib_disabled if the
15027 error thrown wasn't a generic or memory error. Catch errors
15028 thrown while inserting breakpoints in overlayed code. Output
15029 error message of software breakpoints.
15030 * remote.c (remote_insert_breakpoint): If this breakpoint has
15031 target-side commands but this stub doesn't support Z0 packets,
15032 throw NOT_SUPPORTED_ERROR error.
15033 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15034 * target.h (target_insert_breakpoint): Extend comment.
15035 (target_insert_hw_breakpoint): Add comment.
15037 2014-01-08 Pedro Alves <palves@redhat.com>
15039 * remote.c (remote_add_thread): Add threads silently if starting
15041 (remote_notice_new_inferior): If in all-stop, and starting up,
15042 don't call notice_new_inferior.
15043 (get_current_thread): New function, factored out from ...
15044 (add_current_inferior_and_thread): ... this. Adjust.
15045 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15046 found any thread, then select the remote's current thread as GDB's
15047 current thread too.
15049 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15051 * NEWS: Create a new section for the next release branch.
15052 Rename the section of the current branch, now that it has
15055 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15057 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15058 * version.in: Bump version to 7.7.50.DATE-cvs.
15060 2014-01-08 Yao Qi <yao@codesourcery.com>
15062 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15063 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15064 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15066 2014-01-08 Yao Qi <yao@codesourcery.com>
15068 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15069 return value of bfd_get_filename to symbol_file_add_from_bfd.
15071 2014-01-08 Pierre Muller <muller@sourceware.org>
15074 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15075 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15076 to prim_record_mininal_symbol_and_info.
15077 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15078 in call to prim_record_minimal_symbol_and_info.
15079 (read_pe_exported_syms): Set index field of section_data.
15081 2014-01-07 Andrew Pinski <apinski@cavium.com>
15083 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15084 * features/aarch64.c: Regenerate.
15086 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15088 * target.c (return_null): Define.
15089 (update_current_target): Use it instead of return_zero for
15090 functions that return a pointer.
15092 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15094 * source.c (add_path): Fix check for duplicated paths in the previously
15097 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15099 * ada-lang.c: Remove duplicated include statements.
15100 * alphabsd-nat.c: Ditto.
15101 * amd64-darwin-tdep.c: Ditto.
15102 * amd64fbsd-nat.c: Ditto.
15103 * auto-load.c: Ditto.
15105 * breakpoint.c: Ditto.
15106 * dbxread.c: Ditto.
15107 * fork-child.c: Ditto.
15108 * gdb_usleep.c: Ditto.
15109 * i386-darwin-tdep.c: Ditto.
15110 * i386fbsd-nat.c: Ditto.
15112 * inferior.c: Ditto.
15113 * jv-lang.c: Ditto.
15114 * linux-nat.c: Ditto.
15115 * linux-tdep.c: Ditto.
15116 * m68kbsd-nat.c: Ditto.
15117 * m68klinux-nat.c: Ditto.
15118 * microblaze-tdep.c: Ditto.
15119 * mips-linux-tdep.c: Ditto.
15120 * mn10300-tdep.c: Ditto.
15121 * nto-tdep.c: Ditto.
15122 * opencl-lang.c: Ditto.
15124 * printcmd.c: Ditto.
15125 * regcache.c: Ditto.
15126 * remote-m32r-sdi.c: Ditto.
15128 * symfile.c: Ditto.
15130 * tilegx-linux-nat.c: Ditto.
15131 * tilegx-tdep.c: Ditto.
15132 * tracepoint.c: Ditto.
15134 * vaxbsd-nat.c: Ditto.
15135 * windows-nat.c: Ditto.
15136 * xtensa-tdep.c: Ditto.
15138 2014-01-07 Yao Qi <yao@codesourcery.com>
15140 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15142 2014-01-07 Yao Qi <yao@codesourcery.com>
15143 Joel Brobecker <brobecker@adacore.com>
15145 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15146 (pdc_write_regs): Likewise.
15147 (fetch_regs_kernel_thread): Likewise.
15148 (store_regs_kernel_thread): Likewise.
15150 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15152 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15153 tagged type objects to their actual type.
15155 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15157 * ada-valprint.c (print_field_values): Add "language" parameter.
15158 Update calls to print_field_values and print_variant_part.
15159 Pass new parameter "language" in call to val_print instead
15160 of "current_language". Replace call to ada_val_print by call
15162 (print_variant_part): Add "language" parameter.
15163 (ada_val_print_struct_union): Update call to print_field_values.
15165 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15167 * ada-valprint.c (ui_memcpy): Delete.
15168 (ada_print_floating): Update documentation. Add empty line
15169 between between function documentation and implementation.
15170 Delete variable "buffer". Use ui_file_xstrdup in place of
15171 ui_file_put. Minor adjustments following this change.
15173 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15175 * ada-valprint.c (ada_val_print_string): New function,
15176 extracted from ada_val_print_array.
15177 (ada_val_print_array): Replace extracted code by call
15178 to ada_val_print_string followed by a return. Move
15179 "else" branch to the function's top block.
15181 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15183 * ada-valprint.c (ada_val_print_array): Move implementation
15184 down. Rename parameter "offset" and "val" into "offset_aligned"
15185 and "original_value" respectively. Add parameter "offset".
15187 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15189 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15190 re-organizing the code. Change the "???" message printed
15191 when target type is a TYPE_CODE_UNDEF into
15192 "<ref to undefined type>".
15194 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15196 * ada-valprint.c (print_record): Delete, implementation inlined...
15197 (ada_val_print_struct_union): ... here. Remove call to
15198 ada_check_typedef in inlined implementation.
15200 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15202 * ada-valprint.c (ada_val_print_gnat_array): New function,
15203 extracted from ada_val_print_1;
15204 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15205 (ada_val_print_flt, ada_val_print_struct_union)
15206 (ada_val_print_ref): Likewise.
15207 (ada_val_print_1): Delete variables i and elttype.
15208 Replace extracted-out code by call to corresponding
15211 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15213 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15215 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15217 * ada-valprint.c (ada_val_print_1): Replace calls to
15218 ada_val_print_1 by calls to val_print.
15220 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15222 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15223 Update calls to self accordingly. Replace calls to c_val_print
15224 by calls to val_print.
15226 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15228 * ada-valprint.c (print_record): Delete declaration.
15229 (adjust_type_signedness, ada_val_print_1): Likewise.
15230 (ada_val_print): Move function implementation down.
15231 (print_variant_part, print_field_values, print_record):
15232 Move function implementation up.
15234 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15236 * python/py-type.c (typy_get_name): New function.
15237 (type_object_getset): Add entry for attribute "name".
15238 * NEWS: Add entry mentioning this new attribute.
15240 2014-01-07 Yao Qi <yao@codesourcery.com>
15242 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15245 2014-01-07 Yao Qi <yao@codesourcery.com>
15247 * gnu-nat.c (info_port_rights): Add qualifier const to
15250 2014-01-07 Yao Qi <yao@codesourcery.com>
15252 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15254 2014-01-07 Yao Qi <yao@codesourcery.com>
15256 * gnu-nat.c (make_inf) Update declaration.
15257 (make_inf): Make it static.
15258 (inf_set_traced): Likewise.
15259 (inf_port_to_thread, inf_task_died_status): Likewise.
15261 2014-01-07 Yao Qi <yao@codesourcery.com>
15263 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15265 2014-01-07 Yao Qi <yao@codesourcery.com>
15267 * gnu-nat.c (_initialize_gnu_nat): Declare.
15269 2014-01-07 Yao Qi <yao@codesourcery.com>
15271 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15273 (struct gdbarch_info) <byte_order>: Change type to
15275 <byte_order_for_code>: Likewise.
15276 * gdbarch.c, gdbarch.h: Regenerated.
15278 2014-01-06 Sasha Smundak <asmundak@google.com>
15280 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15282 2014-01-06 Tom Tromey <tromey@redhat.com>
15284 * doublest.c (convert_doublest_to_floatformat): Use const, not
15286 * somread.c (som_symtab_read): Likewise.
15288 2014-01-07 Hui Zhu <hui@codesourcery.com>
15290 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15291 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15292 (gdb_bfd_fopen): Ditto.
15293 (gdb_bfd_openr): Ditto.
15294 (gdb_bfd_openw): Ditto.
15295 (gdb_bfd_openr_iovec): Ditto.
15296 (gdb_bfd_fdopenr): Ditto.
15297 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15298 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15300 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15302 * symfile-mem.c (symbol_file_add_from_memory): Removed
15303 gdb_bfd_stash_filename.
15305 2014-01-03 Doug Evans <dje@google.com>
15307 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15310 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15312 Update year range in copyright notice of all files.
15314 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15316 * top.c (print_gdb_version): Set copyright year to 2014.
15318 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15320 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15322 For older changes see ChangeLog-2013.
15328 version-control: never